@ckeditor/ckeditor5-comments 44.2.0-alpha.8 → 44.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x6d4757,icons as _0x1e8625,ContextPlugin as _0x2cbc05,PendingActions as ht,Command as _0x8b2a9a,Plugin as _0x42c114,Context as _0x391be8}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x4bbdea,uid as _0x42b28d,KeystrokeHandler as jt,FocusTracker as _0x3be5c0,diff as _0x29dfe6,Collection as _0x4d5ac6,Rect as _0xcfd41d,CKEditorError as _0x521d6f,first as _0x49692a,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x543313,keyCodes as _0x5b085d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x2e81f8,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0xee681,ConfirmMixin as ti,LateFocusButtonView as _0x3cb068,trimHtml as _0x4c8ed3,LateFocusDropdownButtonView as _0x1aca4a,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x1b5b13}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x1cfc5d}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x1ff815,ViewCollection as _0x1a3f90,createDropdown as _0x2cf9ce,ListView as _0x50afa6,focusChildOnDropdownOpen as _0x353f83,ListItemView as _0x36ce49,MenuBarMenuListItemButtonView as _0x1108e4,BodyCollection as _0x301351,BalloonPanelView as _0x3553bd,ContextualBalloon as _0x2304cc,Dialog as _0x1517e7,DialogViewPosition as _0x3b0fc9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x4c8c63}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 _0x2e1a60}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x1de271}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
- _0x4bbdea(){['model'];['view'];constructor(_0x2ec2b1,_0x4ce2b3){super(),this['model']=_0x2ec2b1,this['model']['_isAttached']=!0x0,this['view']=_0x4ce2b3,this['listenTo'](_0x4ce2b3,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x4ce2b3,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x4ce2b3,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x4ce2b3,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x4ce2b3,'addComment',(_0xcf85f7,_0x993b3a)=>this['addComment'](_0x993b3a)),this['listenTo'](_0x4ce2b3,'updateComment',(_0x3ef48a,_0x5a3130,_0x3f7503)=>this['updateComment'](_0x5a3130,_0x3f7503)),this['listenTo'](_0x4ce2b3,'removeComment',(_0x769fd6,_0x331b3a)=>this['removeComment'](_0x331b3a));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x50cd96){this['model']['addComment']({'content':_0x50cd96,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x2ac843,_0x44abf3){this['model']['getComment'](_0x2ac843)['update']({'content':_0x44abf3});}['removeComment'](_0x41eb3e){this['model']['getComment'](_0x41eb3e)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0xe6a2b8,_0x3ba4cf,_0x349531){const t=_0xe6a2b8['t'];switch(_0x3ba4cf){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'},_0x349531);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'},_0x349531);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'},_0x349531);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'},_0x349531);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x349531);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'},_0x349531);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'},_0x349531);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'},_0x349531);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(_0x1efe1d,_0x4f086d){super(_0x1efe1d);const _0x39f857=_0x42b28d();this['main']=this['createCollection'](),this['editable']=new $t(_0x1efe1d,_0x4f086d,void 0x0,{'label':()=>S(_0x1efe1d,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x1efe1d['uiLanguageDirection'],'lang':_0x1efe1d['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x39f857},'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(_0x508ad4){super(_0x508ad4),this['view']=new Xt(_0x508ad4['locale'],_0x508ad4['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x1c2dbd=this['editor']['editing']['view'],_0x526369=this['view']['editable'],_0x15f8eb=_0x1c2dbd['document']['getRoot']();_0x526369['name']=_0x15f8eb['rootName'],this['view']['render']();const _0x151494=_0x526369['element'];this['setEditableElement'](_0x526369['name'],_0x151494),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1c2dbd['attachDomRoot'](_0x151494),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
25
- _0x4bbdea(_0x6d4757){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Rt)());constructor(_0x46a726={}){function _0x171fe3(_0x3ffadd){return _0x3ffadd['map'](_0x2da568=>String['fromCharCode'](_0x2da568))['join']('');}(_0x46a726=Object['assign']({},_0x46a726))['plugins']||(_0x46a726['plugins']=Ut['defaultPlugins']),super(_0x46a726),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[_0x171fe3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x171fe3([0x76,0x69,0x65,0x77])][_0x171fe3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x171fe3([0x61,0x75,0x74,0x6f]),this[_0x171fe3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x171fe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x171fe3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x171fe3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x171fe3([0x6f,0x6b])});}['create'](){const _0x423463=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x423463))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5b826c=>{const _0x4088a9=this['model']['document']['getRoot'](),_0x1f2a58=_0x4088a9&&_0x4088a9['getChild'](_0x4088a9['childCount']-0x1);_0x5b826c['setSelection'](_0x1f2a58,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x2ce87=this['editing']['view'],_0x57dcba=_0x2ce87['document']['getRoot'](),_0x44f9c5=_0x57dcba['getChild'](0x0);_0x57dcba['childCount']>0x1||!_0x44f9c5||'p'!=_0x44f9c5['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x2ce87,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x44f9c5['placeholder']=this['placeholder']),St({'view':_0x2ce87,'element':_0x44f9c5,'keepOnFocus':!0x0}),this['placeholderElement']=_0x44f9c5);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x5ce9db,_0x4ebc9d={}){super(_0x5ce9db),this['editor']=null,this['_editorConfig']=_0x4ebc9d,this['set']('value',_0x4ebc9d['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x5ce9db,'Reply...')),this['set']('submitLabel',S(_0x5ce9db,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x3be5c0(),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',(_0x16caf2,_0x27f150)=>{this['cancelButtonView']['fire']('execute'),_0x27f150();}),this['keystrokes']['set']('Ctrl+Enter',(_0x1e9927,_0x3236a6)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x3236a6());}),this['on']('submit',(_0x45d186,_0x2397be)=>{_0x2397be['length']>0xfde8?(alert(S(_0x5ce9db,'TOO_LONG_COMMENT_ALERT',[_0x2397be['length'],0xfde8])),_0x45d186['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 _0x57ab47=this['editor'];this['element']['insertBefore'](_0x57ab47['ui']['element'],this['element']['firstChild']),_0x57ab47['model']['document']['on']('change',()=>this['value']=_0x57ab47['getData']()),_0x57ab47['bind']('placeholder')['to'](this),this['focusables']['add'](_0x57ab47['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x2a62f2){-0x1===_0x2a62f2?(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:_0x172737}=this,_0x104ded=new _0x1ff815(_0x172737);return _0x104ded['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x104ded['withText']=!0x0,_0x104ded['bind']('label')['to'](this,'submitLabel'),_0x104ded['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x104ded['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x2ae4d6,_0x4caa88)=>!_0x4caa88&&!!_0x2ae4d6['trim']()),_0x104ded;}['_createCancelButton'](){const {locale:_0xc89f90}=this,_0x13ca2c=new _0x1ff815(_0xc89f90);return _0x13ca2c['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x13ca2c['label']=S(_0xc89f90,'Cancel'),_0x13ca2c['withText']=!0x0,_0x13ca2c['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x13ca2c;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x2c9e54=>{this['focusTracker']['add'](_0x2c9e54['element']);}),this['focusables']['on']('change',(_0x1b337f,_0x377f75)=>{for(const _0x47094c of Array['from'](_0x377f75['added'])['reverse']())this['focusTracker']['add'](_0x47094c['element']);});}}class ie extends kt{constructor(_0x59f1da,_0x5aea5f,_0x1088e8){super(_0x59f1da),this['commentInputView']=new os(_0x59f1da,_0x1088e8),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x3bec14,_0x108acc)=>_0x3bec14||!!_0x108acc),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 _0x2e81f8(_0x59f1da,_0x5aea5f),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'](_0x32138f){this['commentInputView']['focus'](_0x32138f);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x32a669,_0x3c574e)=>{const {submitButtonView:_0x3d490d,cancelButtonView:_0x5bd006,editor:_0x2258c9}=this['commentInputView'];[_0x3d490d['element'],_0x5bd006['element'],_0x2258c9?_0x2258c9['editing']['view']['getDomRoot']():null]['filter'](_0x1e5bba=>_0x1e5bba)['some'](_0x5e6335=>_0x5e6335['contains'](_0x3c574e['target']))||(this['focus'](),_0x3c574e['preventDefault']());});}}class cs extends kt{constructor(_0x39e274){super(_0x39e274);const _0x516972=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x516972['to']('count',_0x4fd0b2=>S(_0x39e274,'NUMBER_OF_COMMENTS',_0x4fd0b2))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x134a40,_0x1a9b08,_0x2e09c9){super(_0x134a40);const _0x5f81=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x1a9b08['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x1a9b08,this['_config']=_0x2e09c9,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x3be5c0(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x564066=>this['commentViews']['map'](_0x204e2f=>_0x204e2f['element'])['includes'](_0x564066['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x134a40),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x345b6f=>_0x345b6f-this['_config']['maxCommentsWhenCollapsed']);for(const _0x55be0b of _0x1a9b08['comments'])this['_handleNewCommentModel'](_0x55be0b);this['_handleInfoComment'](),this['listenTo'](_0x1a9b08['comments'],'add',(_0x303fae,_0x10a8ee)=>{const _0x2be428=this['_calculatePosition'](_0x10a8ee);this['length']++,this['_handleNewCommentModel'](_0x10a8ee,_0x2be428),this['refreshVisibleViews']();}),this['listenTo'](_0x1a9b08['comments'],'remove',(_0x5dd181,_0x3aef99)=>{this['length']--,this['_handleRemoveCommentModel'](_0x3aef99),this['refreshVisibleViews']();}),this['listenTo'](_0x1a9b08,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x1a9b08,'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',_0x5f81['if']('length','ck-hidden',_0x4032b7=>!_0x4032b7)],'aria-label':S(_0x134a40,'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'](_0x4fcc9c){-0x1===_0x4fcc9c?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3c6ce3 of this['commentViews'])_0x3c6ce3['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x14c01b,_0x417419){const _0x49b590=new this['_config']['CommentView'](this['locale'],_0x14c01b,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x49b590['viewUid']=_0x14c01b['id'],_0x49b590['delegate']('removeComment')['to'](this),_0x49b590['delegate']('updateComment')['to'](this),_0x49b590['delegate']('resolveCommentThread')['to'](this),_0x49b590['delegate']('editorReady')['to'](this),_0x49b590['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x49b590,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x49b590,_0x417419);}['_calculatePosition'](_0x57c990){const _0x4ebffb=this['_model']['_findOptimalIndex'](_0x57c990);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x57c990['authoredAt']?_0x4ebffb-0x1:_0x4ebffb:_0x4ebffb-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x35ab5d={'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'],_0x35ab5d,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x35ab5d));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x2b1608){const _0x4c386d=this['commentViews']['remove'](_0x2b1608['id']);this['stopListening'](_0x4c386d),_0x4c386d['isEditMode']&&this['_updateHasDirtyComment'](),_0x4c386d['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x134b0b=>_0x134b0b['isEditMode']);}['_rearrangeCollapse'](){const _0x4dc2d2=function(_0x578943){const _0x23918b=new _0x4d5ac6();for(const _0xca7bb3 of _0x578943)_0x23918b['add'](_0xca7bb3);return _0x23918b;}(this['commentViews']),_0x1ce061=this['_collapsedCommentsView']['count'];for(let _0x191410=0x1;_0x191410<=_0x1ce061;_0x191410++)_0x4dc2d2['remove'](0x1);for(const _0x2c6fc6 of _0x4dc2d2)_0x2c6fc6['collapse']();_0x1ce061>0x0&&_0x4dc2d2['add'](this['_collapsedCommentsView'],0x1),as(_0x29dfe6(Array['from'](this['visibleViews']),Array['from'](_0x4dc2d2)),this['visibleViews'],_0x4dc2d2);}['_rearrangeExpand'](){as(_0x29dfe6(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x314a63 of this['visibleViews'])_0x314a63['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x37b331=>{this['focusTracker']['add'](_0x37b331['element']),this['keystrokes']['listenTo'](_0x37b331['element']);}),this['commentViews']['on']('change',(_0x12a7e8,_0x7da82b)=>{for(const _0x387c5b of _0x7da82b['removed'])this['focusTracker']['remove'](_0x387c5b['element']),this['keystrokes']['stopListening'](_0x387c5b['element']);for(const _0x48cf24 of Array['from'](_0x7da82b['added'])['reverse']())this['focusTracker']['add'](_0x48cf24['element']),this['keystrokes']['listenTo'](_0x48cf24['element']);});}}function as(_0x38cb62,_0x337312,_0x55eae4){let _0x58c334=0x0;for(const _0x1184a0 of _0x38cb62)switch(_0x1184a0){case'insert':_0x337312['add'](_0x55eae4['get'](_0x58c334),_0x58c334),_0x58c334++;break;case'delete':_0x337312['remove'](_0x58c334);break;case'equal':_0x58c334++;}}class ls extends kt{constructor(_0x188fd3){super(_0x188fd3);const _0x1be6b5=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x1be6b5['to']('contextValue',_0x38072b=>S(_0x188fd3,'THREAD_CONTEXT_LABEL',_0x38072b)),'tabindex':-0x1},'children':[{'text':_0x1be6b5['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2d3570,_0xcb9981){super(_0x2d3570);const _0x49da02=this['bindTemplate'];this['_model']=_0xcb9981,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x3be5c0(),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',_0x11c198=>!!_0x11c198),this['bind']('contextValue')['to'](this['_model'],'context',_0x14d7d1=>_0x14d7d1&&_0x14d7d1['value']?this['_trimContextValue'](_0x14d7d1['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',_0x49da02['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 _0x470d2f=new _0x1ff815(this['locale']);return _0x470d2f['label']=S(this['locale'],'Reopen'),_0x470d2f['tooltip']=S(this['locale'],'Reopen'),_0x470d2f['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>',_0x470d2f['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x373c54=>!_0x373c54),_0x470d2f['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x18e664,_0x437f9c)=>_0x18e664&&_0x437f9c),_0x470d2f['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x470d2f;}['_trimContextValue'](_0xb8be68){if(_0xb8be68['length']<0x96)return _0xb8be68;const _0x49b1f6=_0xb8be68['lastIndexOf']('\x20',0x93);return _0xb8be68['substring'](0x0,_0x49b1f6>-0x1?_0x49b1f6:0x93)+'...';}['_attachContextActions'](){const _0x5833cc=this['element']['querySelector']('.ck-context'),_0x37c077=_0x5833cc['querySelector']('.ck-context__value');this['listenTo'](_0x5833cc,'mouseenter',()=>{_0x37c077['offsetWidth']<_0x37c077['scrollWidth']&&_0x5833cc['classList']['add']('overlay');}),this['listenTo'](_0x5833cc,'mouseleave',()=>{_0x5833cc['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x58b372 of this['focusables'])this['focusTracker']['add'](_0x58b372['element']),this['keystrokes']['listenTo'](_0x58b372['element']);}['_createContextView'](){const _0x554d39=new ls(this['locale']);return _0x554d39['bind']('contextValue')['to'](this),_0x554d39;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x167d31,_0xd49825,_0xaf4a4,_0x588db9){super(_0x167d31),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xd49825,this['_localUser']=_0xaf4a4,this['_config']=_0x588db9,this['commentThreadHeaderView']=new Zt(_0x167d31,_0xd49825),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x167d31,S(_0x167d31,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x167d31,_0xd49825,Object['assign']({'CommentView':this['_config']['CommentView']},_0x588db9)),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',(_0x208b3c,_0x242c6f)=>_0x208b3c||!!_0x242c6f),this['bind']('isUnlinked')['to'](_0xd49825,'unlinkedAt',_0x54d75f=>!!_0x54d75f),this['bind']('ariaLabel')['to'](this,'length',_0xe3ff3=>{const _0x4a9f11=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0xe3ff3,_0x4a9f11]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x3be5c0(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2fe901=>_0x2fe901['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0xee681(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x565773=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x49eedd=_0x565773['commentInputView'];return _0x565773['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x49eedd,'value',(_0x737fe3,_0x493c9f,_0x5d0b34,_0x2bc428,_0x483cca)=>!!_0x483cca||!!_0x2bc428&&_0x5d0b34&&!_0x493c9f||_0x737fe3&&_0x5d0b34&&!_0x493c9f),_0x49eedd['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x38ac0b,_0x418f22,_0x31b5b4)=>{let _0xe32ca8;return _0xe32ca8=_0x31b5b4&&_0x418f22?'Reply\x20to\x20reopen\x20discussion...':_0x38ac0b?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0xe32ca8);}),_0x49eedd['bind']('submitLabel')['to'](this,'length',_0x586cb8=>S(this['locale'],_0x586cb8?'Reply':'Comment')),_0x49eedd['on']('submit',(_0x24c23f,_0x224174)=>{this['fire']('addComment',_0x224174),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x49eedd['on']('cancel',()=>{this['focus']();}),_0x49eedd['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x49eedd['on']('cancel',_0x4fbb77=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x4fbb77['stop']());}),this['on']('change:isActive',(_0x2b3802,_0xeab597,_0x21a71f)=>{_0x21a71f||this['length']||_0x49eedd['value']||this['fire']('removeCommentThread');}),_0x565773;}}class vt extends/* #__PURE__ -- @preserve */
27
- ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x9ebc2b,_0x38d3bb,_0x49c66a,_0x56c6f2){super(_0x9ebc2b,_0x38d3bb,_0x49c66a,_0x56c6f2),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x9ebc2b,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x1e6773,_0x28acd3,_0x1d7c3f)=>{_0x1d7c3f||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x292f97,_0x1691e1,_0x10688e)=>{_0x10688e&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x3989c8=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x3989c8['if']('isActive','ck-thread--active'),_0x3989c8['if']('isUnlinked','ck-thread--unlinked'),_0x3989c8['if']('isConfirm','ck-thread--remove-confirmation'),_0x3989c8['to']('actionIndicator',_0x3cece4=>_0x3cece4?'ck-thread--'+_0x3cece4:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x3989c8['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 _0x14b2fc of this['commentsListView']['commentViews'])_0x14b2fc['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x4ab071}=this,_0x4535f8=this['commentsListView']['commentViews']['get'](0x0);_0x4535f8===this['_boundFirstCommentView']||_0x4535f8['isSystemComment']||(this['_boundFirstCommentView']=_0x4535f8,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x4535f8,'actionIndicator',_0x1d1b45=>'remove'===_0x1d1b45?'remove':null),_0x4535f8['placeholder']=S(_0x4ab071,'Write\x20a\x20comment...'),_0x4535f8['removeButton']['on']('execute',_0x5a9f30=>{_0x5a9f30['stop'](),this['showConfirm'](S(_0x4ab071,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x4535f8['focus']();}),_0x4535f8['actionBar']['add'](this['resolveButton'],0x0),_0x4535f8['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x1bedc0=new _0x3cb068(this['locale']);return _0x1bedc0['label']=S(this['locale'],'Resolve'),_0x1bedc0['tooltip']=S(this['locale'],'Resolve'),_0x1bedc0['icon']=_0x1e8625['check'],_0x1bedc0['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x1bedc0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x145f70=>!_0x145f70),_0x1bedc0['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x66eb08,_0x40858b)=>_0x66eb08&&!_0x40858b),_0x1bedc0['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x1bedc0;}['_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(_0x33eb40){super(_0x33eb40),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x9fcf8f,_0x5e5e8c,_0x3cf4b7)=>{this['element']['innerHTML']=_0x3cf4b7;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x23c18f,_0x3192bc,_0x28d0cd){super(_0x23c18f),this['_model']=_0x3192bc,this['_config']=_0x28d0cd,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x3192bc,'content',_0x3192bc,'authoredAt',(_0x3a114c,_0x160a63)=>S(_0x23c18f,'COMMENT_ARIA_LABEL',[_0x3192bc['author']['name'],_0x28d0cd['formatDateTime'](_0x160a63),new DOMParser()['parseFromString'](_0x3a114c,'text/html')['body']['textContent'],_0x3192bc['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x23c18f,S(_0x23c18f,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x1a3f90(),this['focusTracker']=new _0x3be5c0(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x53def4=>_0x53def4['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 _0x46d29a=new hs(this['locale']);return _0x46d29a['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x1e05e3,_0x58d8b9)=>_0x58d8b9?_0x4c8ed3(_0x1e05e3,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x1e05e3),_0x46d29a;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x512ee2=new os(this['locale'],this['_config']['editorConfig']);return _0x512ee2['value']=this['_model']['content'],_0x512ee2['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x512ee2['submitLabel']=S(this['locale'],'Save'),_0x512ee2['on']('submit',(_0x673dcf,_0x2b1131)=>{this['fire']('updateComment',this['_model']['id'],_0x2b1131),this['switchToDisplayMode'](),this['focus']();}),_0x512ee2['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x512ee2['once']('editorReady',()=>{_0x512ee2['focus']();}),_0x512ee2['createEditor'](),_0x512ee2['delegate']('editorReady')['to'](this),_0x512ee2['delegate']('editorDestroyed')['to'](this),_0x512ee2;}['_setupKeyboardNavigation'](){const _0xe2ae1=this['element'];this['keystrokes']['listenTo'](_0xe2ae1);for(const _0x1c2af4 of this['focusables'])this['focusTracker']['add'](_0x1c2af4['element']),this['keystrokes']['listenTo'](_0x1c2af4['element']);this['focusables']['on']('change',(_0xb264a1,_0x3d4e1b)=>{for(const _0x298359 of _0x3d4e1b['removed'])this['focusTracker']['remove'](_0x298359['element']),this['keystrokes']['stopListening'](_0x298359['element']);for(const _0x94459d of _0x3d4e1b['added'])this['focusTracker']['add'](_0x94459d['element']),this['keystrokes']['listenTo'](_0x94459d['element']);}),this['keystrokes']['set']('enter',(_0x1e212a,_0x2a7da1)=>{_0xe2ae1===_0x1e212a['target']&&(this['focusCycler']['focusFirst'](),_0x2a7da1());}),this['keystrokes']['set']('esc',(_0x20f586,_0x14f7cb)=>{_0xe2ae1!==_0x20f586['target']&&(this['focus'](),_0x14f7cb());});}}class gt extends/* #__PURE__ -- @preserve */
28
- ti(rs){['actionBar'];['userView'];constructor(_0x140e64,_0x3e5194,_0x55817b){super(_0x140e64,_0x3e5194,_0x55817b),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x140e64,'Reply...')),this['bind']('authoredAt')['to'](_0x3e5194),this['bind']('resolvedAt')['to'](_0x3e5194),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 _0x2e81f8(_0x140e64,_0x3e5194['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x3e5194,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x17a160=this['bindTemplate'],_0x138015=[{'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':_0x17a160['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x17a160['to']('authoredAt',_0x232db5=>this['_config']['formatDateTime'](_0x232db5))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x17a160['if']('isEditMode','ck-comment__actions--hidden'),_0x17a160['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']&&_0x138015['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x17a160['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x17a160['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x17a160['if']('isEditMode','ck-comment--edit'),_0x17a160['if']('isSystemComment','ck-comment--info'),_0x17a160['to']('actionIndicator',_0x40765c=>_0x40765c?'ck-comment--'+_0x40765c:'')],'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':_0x138015}]}]};}['_createEditButton'](){const _0x133999=new _0x1ff815(this['locale']);return _0x133999['label']=S(this['locale'],'Edit'),_0x133999['icon']=_0x1e8625['pencil'],_0x133999['withText']=!0x0,_0x133999['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x133999['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4a828b=>!_0x4a828b),_0x133999['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x133999['on']('execute',()=>this['switchToEditMode']()),_0x133999;}['_createRemoveButton'](){const _0x3190e0=new _0x1ff815(this['locale']);return _0x3190e0['label']=S(this['locale'],'Remove'),_0x3190e0['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',_0x3190e0['withText']=!0x0,_0x3190e0['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x3190e0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x8f75e9=>!_0x8f75e9),_0x3190e0['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x3190e0['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x3190e0;}['_createDropdown'](){const _0x44379e=_0x2cf9ce(this['locale'],_0x1aca4a),_0x32a5bc=_0x44379e['panelView']['children'],_0x1c5f40=new _0x50afa6(this['locale']),_0x4f1649=_0x44379e['bindTemplate'];_0x353f83(_0x44379e,()=>this['items']['find'](_0x1b4250=>_0x1b4250['isVisible'])),_0x44379e['extendTemplate']({'attributes':{'class':[_0x4f1649['if']('isVisible','ck-hidden',_0x2a7a50=>!_0x2a7a50)]}});const _0x4ce553=(_0x1eefe6,_0x16707a=-0x1)=>{const _0x4c1656=new _0x36ce49(this['locale']);_0x4c1656['children']['add'](_0x1eefe6);const _0x231cbe=_0x16707a>-0x1?_0x16707a:_0x1c5f40['items']['length'];_0x1c5f40['items']['add'](_0x4c1656,_0x231cbe);const _0x4d0959=Array['from'](this['items']);_0x44379e['unbind']('isEnabled','isVisible'),_0x44379e['bind']('isEnabled')['toMany'](_0x4d0959,'isEnabled',(..._0x46d989)=>_0x46d989['some'](_0xdec786=>_0xdec786)),_0x44379e['bind']('isVisible')['toMany'](_0x4d0959,'isVisible',(..._0x47ea78)=>_0x47ea78['some'](_0x348c2d=>_0x348c2d));};_0x44379e['panelPosition']='sw',_0x44379e['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x1e8625['threeVerticalDots']});for(const _0x55dbe9 of this['items'])_0x4ce553(_0x55dbe9);return _0x32a5bc['add'](_0x1c5f40),_0x44379e['listenTo'](this['items'],'add',(_0x45473f,_0x21e5e0,_0x4fec0f)=>{_0x4ce553(_0x21e5e0,_0x4fec0f);}),_0x44379e['listenTo'](this['items'],'remove',(_0x340fd6,_0x4f1ad6,_0x52ea50)=>{_0x1c5f40['items']['remove'](_0x52ea50);}),_0x44379e;}['_attachActions'](_0x49b43f,_0x43fa6f){const _0x4dc733=_0x49b43f&&_0x49b43f['element'];_0x4dc733&&(this['listenTo'](_0x4dc733,'mouseenter',()=>this['actionIndicator']=_0x43fa6f),this['listenTo'](_0x4dc733,'focus',()=>this['actionIndicator']=_0x43fa6f),this['listenTo'](_0x4dc733,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x4dc733,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x30173d=super['_createCommentInputView']();return _0x30173d['bind']('placeholder')['to'](this),_0x30173d;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0xebd6ed){const _0x52eb8e=Dt(_0xebd6ed,0x1e),_0x4ab590=new MutationObserver(_0x3047ff=>{for(const _0x84ae52 of _0x3047ff)('attributes'==_0x84ae52['type']&&'class'==_0x84ae52['attributeName']||'childList'==_0x84ae52['type']||'characterData'==_0x84ae52['type'])&&_0x52eb8e();});return{'attach'(_0x1dc74a){_0x4ab590['observe'](_0x1dc74a,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x4ab590['disconnect'](),_0x52eb8e['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x21ccc5,_0x310edf){super(_0x21ccc5),this['id']=_0x42b28d(),this['focusTracker']=new _0x3be5c0(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x483ad3,_0x357273)=>this['fire']('Esc',_0x357273)),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'](_0x310edf),this['mainView']=_0x310edf;const _0x5a6f4a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x5a6f4a['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 _0x29d9a1=this['element']['clientHeight'];_0x29d9a1&&(this['height']=_0x29d9a1);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x4bbdea(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x58b8c6,target:_0x5baa59,type:_0x2894a0,isVisible:_0x3860bf=!0x0}){super(),this['view']=_0x58b8c6,this['view']['element']||this['view']['render'](),this['_type']=_0x2894a0,this['_target']=_0x5baa59,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x4d5ac6([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x453f5e,_0x3561e5)=>{this['view']['focusTracker']['add'](_0x3561e5);}),this['focusableElements']['on']('remove',(_0x5318c0,_0x262a9a)=>{this['view']['focusTracker']['remove'](_0x262a9a);}),this['set']('isVisible',_0x3860bf);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x43c644=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x43c644),_0x43c644;}get['targetRect'](){const _0xc2de70=this['target'];if(null===_0xc2de70)return null;if(_0xc2de70 instanceof _0xcfd41d)return _0xc2de70;const _0x301125=_0xc2de70['filter'](_0x47ba32=>function(_0x4cde23){const _0x2fddee=_0x4cde23['offsetParent'];if(_0x2fddee)return!0x0;const _0x1f9a92=_0x4cde23['getClientRects']()['item'](0x0);return!!_0x1f9a92;}(_0x47ba32));return 0x0===_0x301125['length']?null:new _0xcfd41d(_0x301125[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5d94ad){this['view']['isActive']=_0x5d94ad,this['view']['mainView']['isActive']=_0x5d94ad;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x4c5f60){if(!(null===_0x4c5f60||_0x4c5f60 instanceof _0xcfd41d||Array['isArray'](_0x4c5f60)&&_0x4c5f60['every'](_0x5b3bbe=>ne(_0x5b3bbe))))throw new _0x521d6f('annotation-invalid-target',null,{'target':_0x4c5f60});}['_getNormalizedTarget'](){const _0x1ff8d2='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x1ff8d2)?[_0x1ff8d2]:_0x1ff8d2;}}function ne(_0x24c4d7){return null!==_0x24c4d7&&'object'==typeof _0x24c4d7&&'nodeType'in _0x24c4d7&&0x1===_0x24c4d7['nodeType'];}class x extends _0x4d5ac6{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x1173a5=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x3be5c0(),this['_focusTracker']['on']('change:isFocused',(_0x20a97b,_0x53e1fd,_0x3f9700)=>{_0x3f9700||this['fire']('blur');});for(const _0xecc0d4 of _0x1173a5)this['add'](_0xecc0d4);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x175eae){if(this['has'](_0x175eae))throw new _0x521d6f('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x175eae['innerView'],_0x175eae),this['_viewToAnnotation']['set'](_0x175eae['view'],_0x175eae);for(const _0x698744 of _0x175eae['focusableElements'])this['_focusTracker']['add'](_0x698744);this['listenTo'](_0x175eae['focusableElements'],'add',(_0x49c3fd,_0x83d9a4)=>{this['_focusTracker']['add'](_0x83d9a4);}),this['listenTo'](_0x175eae['focusableElements'],'remove',(_0x990740,_0x316c03)=>{this['_focusTracker']['remove'](_0x316c03);}),this['listenTo'](_0x175eae['view']['focusTracker'],'change:isFocused',(_0x51b9fb,_0xa8dd6c,_0x232fa4)=>{_0x232fa4&&this['fire']('focus',_0x175eae);}),_0x175eae['updateTargetRect']();const _0x73f119=this['_getOrderInContent'](_0x175eae['view']['targetRect']);return super['add'](_0x175eae,_0x73f119);}['remove'](_0x28423a){if(!this['has'](_0x28423a))throw new _0x521d6f('annotationcollection-not-existing-item',null);this['stopListening'](_0x28423a['view']['focusTracker']),this['stopListening'](_0x28423a['focusableElements']);for(const _0x507538 of _0x28423a['focusableElements'])this['_focusTracker']['remove'](_0x507538);return this['_viewToAnnotation']['delete'](_0x28423a['view']),this['_innerViewToAnnotation']['delete'](_0x28423a['innerView']),super['remove'](_0x28423a);}['getByInnerView'](_0x21ad5e){return this['_innerViewToAnnotation']['get'](_0x21ad5e);}['getByView'](_0xbb66b7){return this['_viewToAnnotation']['get'](_0xbb66b7);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0xa488c2 of this)_0xa488c2['updateTargetRect']();this['_sort']();}['_sort'](){const _0x41d0e5=Array['from'](this)['sort']((_0x8e454a,_0x347e6a)=>v(_0x8e454a['view']['targetRect'],_0x347e6a['view']['targetRect']));for(let _0x64bf8a=_0x41d0e5['length']-0x1;_0x64bf8a>0x0;_0x64bf8a--){const _0x267e4e=_0x41d0e5[_0x64bf8a];_0x64bf8a!==this['getIndex'](_0x267e4e)&&(this['remove'](_0x267e4e),this['add'](_0x267e4e));}}['_getOrderInContent'](_0xec4e8){let _0x516ca7=0x0;if(!_0xec4e8)return this['length'];for(const _0x107229 of this){const _0x44624f=_0x107229['view']['targetRect'];if(_0x44624f){if(v(_0xec4e8,_0x44624f)<0x0)return _0x516ca7;_0x516ca7++;}}return _0x516ca7;}}function v(_0x24a1c3,_0x3268dc){if(null===_0x24a1c3&&null===_0x3268dc)return 0x0;if(null===_0x24a1c3)return-0x1;if(null===_0x3268dc)return 0x1;const _0x52f9cc=_0x24a1c3['top']-_0x3268dc['top'];return 0x0==_0x52f9cc?_0x24a1c3['left']-_0x3268dc['left']:_0x52f9cc;}class N extends _0x2cbc05{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44dea3){if(super(_0x44dea3),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x44dea3 instanceof _0x6d4757){const _0x3014f7=_0x44dea3['locale'];_0x44dea3['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x3014f7,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x3014f7,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x3014f7,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x3014f7,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x3014f7,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x3014f7,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x3014f7,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2ea4b3){this['collection']['add'](_0x2ea4b3);}['remove'](_0x3f0861){this['collection']['remove'](_0x3f0861),_0x3f0861['destroy']();}['refreshVisibility'](){for(const _0x1111bf of this['collection'])_0x1111bf['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x281ffe){return this['collection']['getByInnerView'](_0x281ffe);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1b2422 of this['collection'])_0x1b2422['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x5881b4){this['fire']('_activateAnnotation',_0x5881b4);}['createAnnotation'](_0x3eb2ae){return new d(_0x3eb2ae);}['createAnnotationView'](_0x27d18a,_0x4b9fbc){return new T(_0x27d18a,_0x4b9fbc);}['_addActiveAnnotation'](_0x13d944){const _0x5c2994=new Set(this['activeAnnotations']);_0x5c2994['add'](_0x13d944),this['activeAnnotations']=_0x5c2994;}['_removeActiveAnnotation'](_0x526b14){const _0xefa4c8=new Set(this['activeAnnotations']);_0xefa4c8['delete'](_0x526b14),this['activeAnnotations']=_0xefa4c8;}['_bindAnnotationsToVisibleAnnotations'](){const _0x55bcdf=this['collection'],_0x26ed68=this['_visibleAnnotations'];function _0x2376ea(_0x4e66db){const _0x41dee1=_0x4e66db['source'];_0x41dee1['isVisible']&&!_0x26ed68['has'](_0x41dee1)?_0x26ed68['add'](_0x41dee1):!_0x41dee1['isVisible']&&_0x26ed68['has'](_0x41dee1)&&_0x26ed68['remove'](_0x41dee1),_0x41dee1['view']['focusTracker']['remove'](_0x41dee1['view']['element']),_0x41dee1['view']['focusTracker']['add'](_0x41dee1['view']['element']);}this['listenTo'](_0x55bcdf,'add',(_0xcdf1a2,_0x265e8a)=>{_0x265e8a['isVisible']&&_0x26ed68['add'](_0x265e8a),this['listenTo'](_0x265e8a,'change:isVisible',_0x2376ea);}),this['listenTo'](_0x55bcdf,'remove',(_0x419dba,_0x3f7a24)=>{_0x26ed68['has'](_0x3f7a24)&&_0x26ed68['remove'](_0x3f7a24),this['stopListening'](_0x3f7a24,'change:isVisible',_0x2376ea);});}['_setupEnterAnnotationKeystroke'](){const _0x4dfa06=_0xb71310=>{_0xb71310['on']('ready',()=>{_0xb71310['keystrokes']['set'](_0x2e1a60,(_0x4d47e4,_0xeb9573)=>{const _0xebcefc=_0x49692a(this['activeAnnotations']['values']());_0xebcefc&&(_0xebcefc['view']['focus'](),_0xeb9573());});});};this['context']instanceof _0x6d4757?_0x4dfa06(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x2265bc,_0x4ce5bc)=>{_0x4dfa06(_0x4ce5bc);});}['_setupEscapeAnnotationHandling'](){const _0x25c177=_0x142640=>{const _0x1b8ad6=_0x142640['source'],_0x59ffaa=[];let _0x538637;if(Array['isArray'](_0x1b8ad6['target'])){_0x538637=_0x1b8ad6['target'][0x0],this['context']instanceof _0x6d4757?_0x59ffaa['push'](this['context']):this['context']['editors']&&_0x59ffaa['push'](...this['context']['editors']);for(const _0x330a83 of _0x59ffaa)for(const _0x5d9421 of _0x330a83['editing']['view']['domRoots']['values']())if(_0x5d9421['contains'](_0x538637))return void _0x330a83['editing']['view']['focus']();_0x538637['focus']();}};this['listenTo'](this['collection'],'add',(_0xa1f8df,_0x347b34)=>{this['listenTo'](_0x347b34,'escape',_0x25c177,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0xaf6e46,_0x2fe8da)=>{this['stopListening'](_0x2fe8da,'escape',_0x25c177);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x2cbc05{['_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(_0x5ba59a){super(_0x5ba59a),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x38d5ce=this['context']['config'];_0x38d5ce['define']('comments.maxCommentsWhenCollapsed',0x2),_0x38d5ce['define']('comments.maxThreadTotalWeight',0x1f4),_0x38d5ce['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x38d5ce['define']('comments.CommentThreadView',vt),_0x38d5ce['define']('comments.CommentView',gt),_0x38d5ce['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x273641=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x286d4f,_0x1f3552)=>this['_addCommentThread'](_0x1f3552)),this['on']('submitCommentThread',(_0x2228bf,_0x2ba274)=>this['_submitCommentThread'](_0x2ba274)),this['on']('resolveCommentThread',(_0x447025,_0x323888)=>this['_resolveCommentThread'](_0x323888)),this['on']('resolveCommentThread',(_0x37adf5,_0x5c74ac)=>this['_updateActiveAnnotation'](_0x5c74ac),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x561544,_0x4f1f6b)=>this['_reopenCommentThread'](_0x4f1f6b)),this['on']('reopenCommentThread',(_0x214d93,_0x7e910b)=>this['_updateActiveAnnotation'](_0x7e910b),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x30dfc3,_0x444f91)=>this['_removeCommentThread'](_0x444f91)),this['on']('updateCommentThread',(_0x1f2ec1,_0x297d45)=>this['_updateCommentThread'](_0x297d45)),this['on']('updateCommentThread',(_0x4b9aef,_0x1e652d)=>this['_updateActiveAnnotation'](_0x1e652d),{'priority':'lowest'}),this['on']('addComment',(_0x3b6ffb,_0x56d0b7)=>this['_addComment'](_0x56d0b7)),this['on']('updateComment',(_0x2df6c3,_0x947556)=>this['_updateComment'](_0x947556)),this['on']('removeComment',(_0x2a541a,_0x259c6b)=>this['_removeComment'](_0x259c6b)),this['on']('addComment',(_0x4b01ef,{threadId:_0x4d980a,isFromAdapter:_0x14ffca})=>{if(_0x14ffca)return;const _0x3fd161=this['getCommentThread'](_0x4d980a),_0x2c6ece=_0x3fd161&&this['_threadToController']['get'](_0x3fd161);_0x2c6ece&&_0x2c6ece['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x273641,'change:activeAnnotations',(_0x49cc22,_0x1c1a6a,_0x52dcec)=>{const _0x3c44ce=Array['from'](_0x52dcec)['map'](_0x58ebac=>this['_viewToController']['get'](_0x58ebac['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x3c44ce?_0x3c44ce['model']:null;});}set['adapter'](_0x585904){if(this['_adapter'])throw new _0x521d6f('commentsrepository-adapter-already-set');this['_adapter']=_0x585904;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x27f0b7=Tt,threadId:_0x573ac0=_0x42b28d(),comments:_0x439978=[],unlinkedAt:_0x431604=null,resolvedAt:_0x5eca3f=null,resolvedBy:_0x435023=null,target:_0x45d8fd=null,context:_0x2939e0=null,attributes:_0x18e4eb={},isResolvable:_0x343d33=!0x0,isSubmitted:_0x3729d9=!0x1,isFromAdapter:_0x2925f9=!0x1}={}){return this['fire'](bt('addCommentThread',_0x27f0b7),{'channelId':_0x27f0b7,'threadId':_0x573ac0,'comments':_0x439978,'unlinkedAt':_0x431604,'resolvedAt':_0x5eca3f,'resolvedBy':_0x435023,'target':_0x45d8fd,'context':_0x2939e0,'attributes':_0x18e4eb,'isFromAdapter':_0x2925f9,'isResolvable':_0x343d33,'isSubmitted':_0x3729d9}),this['getCommentThread'](_0x573ac0);}['openNewCommentThread']({channelId:_0x124d35=Tt,threadId:_0x4666d3=_0x42b28d(),target:_0x4fd233,context:_0x175514=null,isResolvable:_0x26053b=!0x0}){if(this['_readOnlyChannels']['has'](_0x124d35)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x4fd233)throw new _0x521d6f('commentsrepository-missing-target');const _0x26c77f=this['addCommentThread']({'channelId':_0x124d35,'threadId':_0x4666d3,'target':_0x4fd233,'context':_0x175514,'isResolvable':_0x26053b});if(!_0x26c77f)return null;const _0x186d30=this['_threadToController']['get'](_0x26c77f),_0x3f196e=_0x186d30['view']['commentThreadInputView']['commentInputView'],_0x1fe9b2=this['context']['plugins']['get'](N),_0x15cf71=_0x1fe9b2['getByInnerView'](_0x186d30['view']);return _0x1fe9b2['activate'](_0x15cf71),_0x3f196e['once']('editorReady',()=>_0x3f196e['focus']()),_0x26c77f;}['hasCommentThread'](_0x49a5c1){if('string'!=typeof _0x49a5c1)throw new _0x521d6f('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x49a5c1);}['updateCommentThread']({channelId:_0x34ff33=Tt,threadId:_0x42e205,context:_0x2e7b01,unlinkedAt:_0x543def,attributes:_0x534d25,isFromAdapter:_0x5687c4=!0x1}){return this['fire'](bt('updateCommentThread',_0x34ff33),{'channelId':_0x34ff33,'threadId':_0x42e205,'context':_0x2e7b01,'unlinkedAt':_0x543def,'attributes':_0x534d25,'isFromAdapter':_0x5687c4}),this['getCommentThread'](_0x42e205);}['getCommentThread'](_0x21d773){if('string'!=typeof _0x21d773)throw new _0x521d6f('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x21d773);}['fetchCommentThread']({channelId:_0x559f8a,threadId:_0x1c0b83}={}){const _0x12ccd6=this['getCommentThread'](_0x1c0b83);if(_0x12ccd6)return Promise['resolve'](_0x12ccd6);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x521d6f('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x559f8a,'threadId':_0x1c0b83})['then'](_0x16b4b3=>this['hasCommentThread'](_0x1c0b83)?this['getCommentThread'](_0x1c0b83):_0x16b4b3?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x559f8a},_0x16b4b3)):void 0x0)['catch'](_0x5baef8=>{throw console['error'](_0x5baef8),new _0x521d6f('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0xc2e025,skipNotAttached:_0x51daa2=!0x1,skipEmpty:_0x3114d4=!0x1,toJSON:_0x2f70ac=!0x1}={}){const _0x4412fa=[];for(const _0x48ffd6 of this['_threads']['values']())_0xc2e025&&_0x48ffd6['channelId']!==_0xc2e025||_0x51daa2&&!_0x48ffd6['isAttached']||_0x3114d4&&0x0===_0x48ffd6['length']||_0x4412fa['push'](_0x48ffd6);return _0x2f70ac?_0x4412fa['map'](_0x2c35cd=>_0x2c35cd['toJSON']()):_0x4412fa;}['setActiveCommentThread'](_0x441354){const _0x442a62=this['context']['plugins']['get'](N);if(!_0x441354)return void(this['activeCommentThread']&&_0x442a62['deactivateAll']());const _0xe665b2=this['getCommentThread'](_0x441354);if(!_0xe665b2)throw new _0x521d6f('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x441354});if(!this['_threadToController']['has'](_0xe665b2))throw new _0x521d6f('commentsrepository-active-not-attached',null,{'threadId':_0x441354});const _0x44fcf8=_0x442a62['getByInnerView'](this['_threadToController']['get'](_0xe665b2)['view']);_0x442a62['activate'](_0x44fcf8);}['switchReadOnly'](_0x12da1d,_0x12b17c){_0x12da1d?this['_readOnlyChannels']['add'](_0x12b17c):this['_readOnlyChannels']['delete'](_0x12b17c),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x1d2958){return this['_readOnlyChannels']['has'](_0x1d2958)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x37f453,_0x1e15f1){return new Ct(_0x37f453,_0x1e15f1);}['setPermissions'](_0x471f58,_0x143e24=Tt){this['_permissions']['set'](_0x143e24,_0x471f58),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x113495=Tt){return this['_permissions']['has'](_0x113495)?this['_permissions']['get'](_0x113495):_t;}['_addCommentThread']({channelId:_0x1ac850,threadId:_0x102a92,comments:_0x41db8e,unlinkedAt:_0x497563,resolvedAt:_0x2b437b,resolvedBy:_0x9dea29,target:_0x4b2154,context:_0x4471fa,attributes:_0x151998,isFromAdapter:_0x3db4cc,isResolvable:_0x45224b,isSubmitted:_0x414379}){if('string'!=typeof _0x102a92)throw new _0x521d6f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x102a92});if(this['hasCommentThread'](_0x102a92))throw new _0x521d6f('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x102a92});const _0xa20286=new oe(this,{'channelId':_0x1ac850,'id':_0x102a92,'context':_0x4471fa,'attributes':_0x151998,'unlinkedAt':_0x497563,'resolvedAt':_0x2b437b,'resolvedBy':_0x9dea29?this['context']['plugins']['get'](it)['getUser'](_0x9dea29):null,'isResolvable':_0x45224b,'isSubmitted':_0x414379||_0x3db4cc});this['_threads']['set'](_0x102a92,_0xa20286);for(const _0x391bbc of _0x41db8e)_0xa20286['_add'](this['_createNewComment']({'threadId':_0x102a92,..._0x391bbc}));return _0x4b2154&&_0xa20286['attachTo'](_0x4b2154),_0x3db4cc||!_0xa20286['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x1ac850,'threadId':_0x102a92});}['_submitCommentThread']({channelId:_0x48fad7,threadId:_0x2eac97}){if(!this['hasCommentThread'](_0x2eac97))throw new _0x521d6f('commentsrepository-missing-comment-thread',this);const _0x30a540=this['getCommentThread'](_0x2eac97);if(_0x30a540['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x2917c8,comments:_0x626cd4,resolvedAt:_0x12073e,resolvedBy:_0x325cc1,context:_0x4b83eb,attributes:_0x24a55d}=_0x30a540,_0xb5c1c1=this['context']['plugins']['get']('PendingActions'),_0x1a4db7=_0xb5c1c1['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x48fad7,'threadId':_0x2917c8,'comments':_0x626cd4['map'](_0x5153a0=>_0x5153a0['toJSON']()),'resolvedAt':_0x12073e,'resolvedBy':_0x325cc1?_0x325cc1['id']:_0x325cc1,'context':_0x4b83eb,'attributes':_0x24a55d})['then'](({comments:_0x10463e})=>{_0xb5c1c1['remove'](_0x1a4db7);for(const _0x411ed6 of _0x10463e)this['_updateComment']({'channelId':_0x48fad7,'threadId':_0x2eac97,'commentId':_0x411ed6['commentId'],'createdAt':_0x411ed6['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x50c697=>{throw console['error'](_0x50c697),new _0x521d6f('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x407394,target:_0x29df78}){const _0x36e69d=this['getCommentThread'](_0x407394);if(!_0x36e69d)throw new _0x521d6f('commentsrepository-attach-missing-comment-thread',this);const _0x3703f5=this['context']['plugins']['get']('PendingActions'),_0x47c670=this['context']['plugins']['get'](N),_0x4ca5cd=this['_createCommentThreadView'](_0x36e69d),_0x1b9213=new Ct(_0x36e69d,_0x4ca5cd);let _0x339ac0=null;_0x4ca5cd['on']('change:isDirty',(_0x1628e4,_0x363302,_0x1c047b)=>{_0x1c047b?_0x339ac0=_0x3703f5['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x339ac0&&(_0x3703f5['remove'](_0x339ac0),_0x339ac0=null);}),this['_threadToController']['set'](_0x36e69d,_0x1b9213),this['_viewToController']['set'](_0x4ca5cd,_0x1b9213);const _0x1a0e10=new T(this['context']['locale'],_0x4ca5cd);_0x1a0e10['bind']('length')['to'](_0x4ca5cd),_0x1a0e10['bind']('isDirty')['to'](_0x4ca5cd,'isDirty',_0x4ca5cd,'length',(_0x5ee0e7,_0x1f91d2)=>_0x5ee0e7||!_0x1f91d2),_0x1a0e10['bind']('isActive')['to'](_0x4ca5cd),_0x1a0e10['type']='comment';const _0x3638c5=new d({'view':_0x1a0e10,'target':_0x29df78,'type':'comment','isVisible':!_0x36e69d['archivedAt']});return _0x4ca5cd['on']('escape',()=>{_0x3638c5['fire']('escape');}),this['_bindAnnotationToEditors'](_0x4ca5cd,_0x3638c5),_0x47c670['add'](_0x3638c5),_0x3638c5;}['_bindAnnotationToEditors'](_0x877a4e,_0x7d3878){this['listenTo'](_0x877a4e,'editorReady',(_0x522bef,_0x21b9d5)=>{const _0x2f51b1=_0x21b9d5['ui']['view']['body']['bodyCollectionContainer'];_0x7d3878['focusableElements']['add'](_0x2f51b1),this['context']instanceof _0x6d4757&&this['context']['ui']['focusTracker']['add'](_0x2f51b1);},{'priority':'highest'}),this['listenTo'](_0x877a4e,'editorDestroyed',(_0x779ae6,_0x285f8d)=>{const _0x4aa1f7=_0x285f8d['ui']['view']['body']['bodyCollectionContainer'];_0x7d3878['focusableElements']['has'](_0x4aa1f7)&&_0x7d3878['focusableElements']['remove'](_0x4aa1f7),this['context']instanceof _0x6d4757&&this['context']['ui']['focusTracker']['remove'](_0x4aa1f7);});}['_unbindEditors'](_0x5a740e){this['stopListening'](_0x5a740e,'editorReady'),this['stopListening'](_0x5a740e,'editorDestroyed');}['_createCommentThreadView'](_0x1a1f53){const _0x1a9337=this['context']['plugins']['get'](it),{config:_0x48f2a3,locale:_0x1b1ac8}=this['context'],_0x1f63f5=lt(_0x48f2a3['get']('locale'));return new(0x0,(_0x48f2a3['get']('comments'))['CommentThreadView'])(_0x1b1ac8,_0x1a1f53,_0x1a9337['me'],{'editorConfig':{..._0x48f2a3['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x48f2a3['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x48f2a3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x48f2a3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x48f2a3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1f63f5,'CommentView':_0x48f2a3['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x491178,channelId:_0x70b247,resolvedAt:_0x44f389,resolvedBy:_0x4a6795,isFromAdapter:_0x5b34ee}){if(!this['hasCommentThread'](_0x491178))throw new _0x521d6f('commentsrepository-missing-comment-thread',null,{'threadId':_0x491178});const _0x6c6548=this['getCommentThread'](_0x491178);if(_0x6c6548['isResolved'])throw new _0x521d6f('commentsrepository-resolved-comment-thread',null,{'threadId':_0x491178});const _0x1de3a0=this['context']['plugins']['get'](it);if(_0x6c6548['resolvedBy']=_0x1de3a0['getUser'](_0x4a6795),_0x6c6548['resolvedAt']=_0x44f389,_0x5b34ee||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x4d208a=this['context']['plugins']['get']('PendingActions'),_0x1de580=_0x4d208a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x70b247,'threadId':_0x491178})['then'](({resolvedAt:_0x3dc473,resolvedBy:_0x3d5567})=>{_0x4d208a['remove'](_0x1de580),_0x6c6548['resolvedBy']['id']!==_0x3d5567&&(_0x6c6548['resolvedBy']=_0x1de3a0['getUser'](_0x3d5567)),_0x6c6548['resolvedAt']=_0x3dc473;})['catch'](_0x526155=>{throw console['error'](_0x526155),new _0x521d6f('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x31145e,channelId:_0x2ae511,isFromAdapter:_0x3c4849}){if(!this['hasCommentThread'](_0x31145e))throw new _0x521d6f('commentsrepository-missing-comment-thread',null,{'threadId':_0x31145e});const _0x2828c0=this['getCommentThread'](_0x31145e);if(!_0x2828c0['isResolved'])throw new _0x521d6f('commentsrepository-reopen-comment-thread',null,{'threadId':_0x31145e});if(_0x2828c0['resolvedBy']=null,_0x2828c0['resolvedAt']=null,_0x3c4849||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x27ec91=this['context']['plugins']['get']('PendingActions'),_0x413ea1=_0x27ec91['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x2ae511,'threadId':_0x31145e})['then'](()=>_0x27ec91['remove'](_0x413ea1))['catch'](_0x2530fe=>{throw console['error'](_0x2530fe),new _0x521d6f('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x209afc,isFromAdapter:_0x27afe1}){const _0x133c94=this['getCommentThread'](_0x209afc);if(!_0x133c94)throw new _0x521d6f('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x209afc),this['_threads']['delete'](_0x209afc),!_0x133c94['isSubmitted']||_0x27afe1||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x186c2a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x321218}=_0x133c94,_0x5e0ee1=_0x186c2a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x321218,'threadId':_0x209afc})['then'](()=>_0x186c2a['remove'](_0x5e0ee1))['catch'](_0x283ddd=>{throw console['error'](_0x283ddd),new _0x521d6f('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x2be33b,unlinkedAt:_0x2cd4ea,context:_0x33e239,attributes:_0x17a35e,isFromAdapter:_0x345a7b}){if('string'!=typeof _0x2be33b)throw new _0x521d6f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x2be33b});if(!this['hasCommentThread'](_0x2be33b))throw new _0x521d6f('commentsrepository-missing-comment-thread',null,{'threadId':_0x2be33b});const _0x170fa0=this['getCommentThread'](_0x2be33b);let _0x4dfd69=!0x1;if(void 0x0!==_0x33e239&&_0x170fa0['context']!==_0x33e239&&(_0x170fa0['context']=_0x33e239,_0x4dfd69=!0x0),void 0x0!==_0x2cd4ea&&_0x170fa0['unlinkedAt']!==_0x2cd4ea&&(_0x170fa0['unlinkedAt']=_0x2cd4ea,_0x4dfd69=!0x0),_0x17a35e&&!wt(_0x17a35e,_0x170fa0['attributes'])&&(_0x170fa0['attributes']=_0x17a35e,_0x4dfd69=!0x0),!_0x4dfd69)return Promise['resolve']();if(!_0x170fa0['isSubmitted']||_0x345a7b||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x471a73=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4dcbe3}=_0x170fa0,_0x2c9649=_0x471a73['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x4dcbe3,'threadId':_0x2be33b,'context':_0x33e239,'unlinkedAt':_0x2cd4ea,'attributes':_0x17a35e})['then'](()=>_0x471a73['remove'](_0x2c9649))['catch'](_0x2e0a7d=>{throw console['error'](_0x2e0a7d),new _0x521d6f('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x56c230){const _0x10c589=this['context']['plugins']['get'](N),_0x1afff0=this['getCommentThread'](_0x56c230);if(_0x1afff0['_isAttached']=!0x1,this['_threadToController']['has'](_0x1afff0)){const _0x3236dc=this['_threadToController']['get'](_0x1afff0),_0x2d7ec1=_0x3236dc['view'],_0x413289=_0x10c589['getByInnerView'](_0x2d7ec1);this['_threadToController']['delete'](_0x1afff0),this['_viewToController']['delete'](_0x2d7ec1),_0x413289&&_0x10c589['remove'](_0x413289),_0x3236dc['destroy'](),_0x2d7ec1['destroy']()['then'](()=>{this['_unbindEditors'](_0x2d7ec1);});}}['_updateActiveAnnotation']({threadId:_0x33a1e9,resolvedAt:_0x4d73ea}){const _0x377a91=!!_0x4d73ea,_0x22c490=this['context']['plugins']['get'](N),_0x4599f0=this['getCommentThread'](_0x33a1e9);if(this['_threadToController']['has'](_0x4599f0)){const _0x1434e0=this['_threadToController']['get'](_0x4599f0)['view'],_0x442c0b=_0x22c490['getByInnerView'](_0x1434e0);_0x442c0b&&(_0x377a91&&_0x22c490['_removeActiveAnnotation'](_0x442c0b),_0x442c0b['refreshVisibility']());}}['_getExternalAuthor'](_0x516d15){const _0x2f3289=this['context']['plugins']['get'](it),_0xe845f4=pt('external:'+_0x516d15),_0x37b822=_0x2f3289['getUser'](_0xe845f4);return _0x37b822||_0x2f3289['addUser']({'id':_0xe845f4,'name':_0x516d15});}['_createNewComment']({threadId:_0x4edf2c,commentId:_0x162ba4=_0x42b28d(),content:_0x36eecd,authorId:_0x484043,createdAt:_0x2c557d,attributes:_0x8c4d6e}){if('string'!=typeof _0x162ba4)throw new _0x521d6f('commentsrepository-invalid-commentid');if('string'!=typeof _0x484043)throw new _0x521d6f('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x36eecd||!_0x36eecd['trim']())throw new _0x521d6f('commentsrepository-invalid-comment-content');const _0x4bd6da=this['context']['plugins']['get'](it)['getUser'](_0x484043);if(!_0x4bd6da)throw new _0x521d6f('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x484043});let _0x4fca03=null,_0x4f4931=_0x2c557d;return _0x8c4d6e&&_0x8c4d6e['@external']&&(_0x4fca03=this['_getExternalAuthor'](_0x8c4d6e['@external']['authorName']),_0x4f4931=new Date(_0x8c4d6e['@external']['createdAt'])),new re(this,{'threadId':_0x4edf2c,'id':_0x162ba4,'author':_0x4fca03||_0x4bd6da,'creator':_0x4bd6da,'content':_0x36eecd,'createdAt':_0x2c557d,'authoredAt':_0x4f4931,'attributes':_0x8c4d6e});}['_addComment'](_0x5c1c0d){let {threadId:_0x1035e8,content:_0x17d33c,attributes:_0xad7763,isFromAdapter:_0x2ade07}=_0x5c1c0d;const _0x1ea179=this['getCommentThread'](_0x5c1c0d['threadId']);if(!_0x1ea179)throw new _0x521d6f('commentsrepository-add-comment-to-missing-comment-thread',this);const _0xa9cba7=this['_createNewComment'](_0x5c1c0d),{id:_0x3cdca4}=_0xa9cba7;if(_0x1ea179['_add'](_0xa9cba7),_0x2ade07||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x1ea179['isSubmitted'])return Promise['resolve']();const _0x59bbec=this['context']['plugins']['get']('PendingActions'),{channelId:_0x34ac01}=_0x1ea179,_0x505e7a=_0x59bbec['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0xad7763||(_0xad7763={}),this['adapter']['addComment']({'channelId':_0x34ac01,'threadId':_0x1035e8,'commentId':_0x3cdca4,'content':_0x17d33c,'attributes':_0xad7763})['then'](_0x212d71=>{_0x59bbec['remove'](_0x505e7a),_0x212d71&&this['_updateComment']({'channelId':_0x34ac01,'threadId':_0x1035e8,'commentId':_0x3cdca4,'createdAt':_0x212d71['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5d210d=>{throw console['error'](_0x5d210d),new _0x521d6f('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x4bd3bb,commentId:_0x2681ad,content:_0x25bb5e,createdAt:_0x11ca80,attributes:_0x53ab3f,isFromAdapter:_0x1414e7}){if(void 0x0!==_0x25bb5e&&('string'!=typeof _0x25bb5e||!_0x25bb5e['trim']()['length']))throw new _0x521d6f('commentsrepository-update-comment-invalid-content');const _0xc0b1b4=this['getCommentThread'](_0x4bd3bb),_0x2781e3=_0xc0b1b4['getComment'](_0x2681ad);if(!_0x2781e3)throw new _0x521d6f('commentsrepository-update-missing-comment',this);let _0x52ae56=!0x1;if(_0x25bb5e&&_0x25bb5e!==_0x2781e3['content']&&(_0x2781e3['isEditable']||_0x1414e7)&&(_0x2781e3['content']=_0x25bb5e,_0x52ae56=!0x0),_0x11ca80&&_0x11ca80!==_0x2781e3['createdAt']&&(_0x2781e3['createdAt']=_0x11ca80,_0x2781e3['attributes']&&_0x2781e3['attributes']['@external']||(_0x2781e3['authoredAt']=_0x11ca80),_0x52ae56=!0x0),_0x53ab3f&&!wt(_0x53ab3f,_0x2781e3['attributes'])&&(_0x2781e3['attributes']=_0x53ab3f,_0x52ae56=!0x0),!_0x52ae56)return Promise['resolve']();if(_0xc0b1b4['fire']('commentUpdated'),_0x1414e7||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x16c8c7=this['context']['plugins']['get']('PendingActions'),{channelId:_0x218b08}=this['getCommentThread'](_0x2781e3['threadId']),_0x4df35a=_0x16c8c7['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x218b08,'threadId':_0x4bd3bb,'commentId':_0x2681ad,'content':_0x25bb5e,'attributes':_0x53ab3f})['then'](()=>_0x16c8c7['remove'](_0x4df35a))['catch'](_0x872285=>{throw console['error'](_0x872285),new _0x521d6f('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x263296,commentId:_0xf9562f,isFromAdapter:_0x418c0f}){const _0x4b69c6=this['getCommentThread'](_0x263296),_0x2a82cf=_0x4b69c6['getComment'](_0xf9562f);if(!_0x2a82cf)throw new _0x521d6f('commentsrepository-remove-missing-comment',this);if(_0x4b69c6['_remove'](_0x2a82cf),_0x418c0f||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0xcd36be=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5df631}=_0x4b69c6,_0xd686b5=_0xcd36be['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x5df631,'threadId':_0x263296,'commentId':_0xf9562f})['then'](()=>_0xcd36be['remove'](_0xd686b5))['catch'](_0x106510=>{throw console['error'](_0x106510),new _0x521d6f('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
- _0x4bbdea(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x38f8d3,_0x23fdb4){super();const _0x2a395e=_0x23fdb4['isResolvable'];this['channelId']=_0x23fdb4['channelId'],this['id']=_0x23fdb4['id'],this['comments']=new _0x4d5ac6(),this['_repository']=_0x38f8d3,this['_isAttached']=!0x1,this['_isSubmitted']=_0x23fdb4['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x38f8d3,'_permissions',_0x38f8d3,'_readOnlyChannels',()=>_0x38f8d3['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x38f8d3,'_permissions',()=>_0x38f8d3['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x38f8d3,'_permissions',()=>{const _0x35262a=_0x38f8d3['getPermissions'](this['channelId']);return _0x35262a['write']||_0x35262a['admin'];}),this['bind']('isResolvable')['to'](_0x38f8d3,'_permissions',()=>_0x2a395e&&_0x38f8d3['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x23fdb4['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x27202b,_0x104ef3)=>_0x27202b?_0x104ef3?_0x27202b<_0x104ef3?_0x27202b:_0x104ef3:_0x27202b:_0x104ef3),this['set']('unlinkedAt',_0x23fdb4['unlinkedAt']||null),this['set']('resolvedAt',_0x23fdb4['resolvedAt']||null),this['set']('resolvedBy',_0x23fdb4['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x381d8c=>!!_0x381d8c),this['set']('attributes',_0x23fdb4['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x4892ab,_0x3658c1)=>_0x4892ab+_0x3658c1['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x2b881f,id:_0xcbfd68}=this;this['_repository']['fire'](bt('submitCommentThread',_0x2b881f),{'channelId':_0x2b881f,'threadId':_0xcbfd68});}['setUnlinkedAt'](_0x505767){this['_update']({'unlinkedAt':_0x505767});}['resolve']({resolvedAt:_0x39cebd=new Date(),resolvedBy:_0x3813a3=null,isFromAdapter:_0x5ee84c=!0x1}={}){const _0x4f844a=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x50c909,id:_0x44aa3d}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x50c909),{'channelId':_0x50c909,'threadId':_0x44aa3d,'resolvedAt':_0x39cebd,'resolvedBy':_0x3813a3||_0x4f844a['id'],'isFromAdapter':_0x5ee84c});}['reopen']({isFromAdapter:_0x107cc2=!0x1}={}){const {channelId:_0x5d4606,id:_0xa602}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x5d4606),{'channelId':_0x5d4606,'threadId':_0xa602,'isFromAdapter':_0x107cc2});}['setContext'](_0x4edd89){this['context']||this['_update']({'context':_0x4edd89});}['setAttribute'](_0x44976a,_0x4ce6dd){const _0x558292=It(this['attributes']);At(_0x558292,_0x44976a,_0x4ce6dd),this['_update']({'attributes':_0x558292});}['removeAttribute'](_0x21d0bc){const _0x526336=It(this['attributes']);yt(_0x526336,_0x21d0bc),this['_update']({'attributes':_0x526336});}['remove']({isFromAdapter:_0x2e492f=!0x1}={}){const {channelId:_0x3c49e2,id:_0x1d4050}=this;this['_repository']['fire'](bt('removeCommentThread',_0x3c49e2),{'channelId':_0x3c49e2,'threadId':_0x1d4050,'isFromAdapter':_0x2e492f});}['attachTo'](_0x2c4393){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x2c4393});}['addComment'](_0x40d22b){const {channelId:_0x3dabcb,id:_0x510371}=this;this['_repository']['fire'](bt('addComment',_0x3dabcb,_0x510371),Object['assign']({'channelId':_0x3dabcb,'threadId':_0x510371},_0x40d22b));}['getComment'](_0x4977be){if('string'!=typeof _0x4977be)throw new _0x521d6f('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x4977be});return this['comments']['get'](_0x4977be);}['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'](_0x4558f4=>_0x4558f4['toJSON']()),'attributes':this['attributes']};}['_add'](_0x499380){return this['listenTo'](_0x499380,'change:authoredAt',()=>{const _0x4ed501=this['_findOptimalIndex'](_0x499380),_0xca2304=this['comments'];_0x4ed501-0x1!=_0xca2304['getIndex'](_0x499380)&&_0x4ed501+0x1!=_0xca2304['getIndex'](_0x499380)&&(this['_remove'](_0x499380),this['_add'](_0x499380));}),this['comments']['add'](_0x499380,this['_findOptimalIndex'](_0x499380));}['_update'](_0x25dc80){const {channelId:_0xc38c1,id:_0x523e55}=this;this['_repository']['fire'](bt('updateCommentThread',_0xc38c1),{..._0x25dc80,'channelId':_0xc38c1,'threadId':_0x523e55});}['_remove'](_0x29b905){return this['stopListening'](_0x29b905),_0x29b905['destroy'](),this['comments']['remove'](_0x29b905);}['_findOptimalIndex'](_0x2f754b){const _0x395b08=this['comments']['find'](_0x4e2b93=>new Date(_0x4e2b93['authoredAt'])['getTime']()>new Date(_0x2f754b['authoredAt'])['getTime']());return _0x395b08?this['comments']['getIndex'](_0x395b08):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
- _0x4bbdea(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x418cba,_0x1915c4){super();const _0x335e6b=_0x418cba['context']['plugins']['get'](it)['me'],_0x3ace43=_0x418cba['getCommentThread'](_0x1915c4['threadId']),_0x40af96=0x0===_0x3ace43['comments']['length'],_0x389587=_0x335e6b===_0x1915c4['author'];this['id']=_0x1915c4['id'],this['threadId']=_0x1915c4['threadId'],this['author']=_0x1915c4['author'],this['creator']=_0x1915c4['creator'],this['isExternal']=Boolean(_0x1915c4['attributes']&&_0x1915c4['attributes']['@external']),this['set']('content',_0x1915c4['content']),this['createdAt']=_0x1915c4['createdAt']||new Date(),this['set']('authoredAt',_0x1915c4['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x3ace43,'resolvedAt'),this['set']('attributes',_0x1915c4['attributes']||{}),this['bind']('isEditable')['to'](_0x418cba,'_permissions',()=>{const _0x1ce5b2=_0x418cba['getPermissions'](_0x3ace43['channelId'])['write'],_0x4d19c3=_0x418cba['getPermissions'](_0x3ace43['channelId'])['modifyAll'];return _0x389587&&_0x1ce5b2||!_0x389587&&_0x4d19c3;}),this['bind']('isRemovable')['to'](_0x3ace43,'isRemovable',_0x418cba,'_permissions',_0x16ea6e=>{const _0x56a1af=_0x418cba['getPermissions'](_0x3ace43['channelId'])['write'],_0x22bb41=_0x418cba['getPermissions'](_0x3ace43['channelId'])['modifyAll'];return _0x389587&&_0x56a1af||_0x16ea6e&&_0x40af96||!_0x389587&&_0x22bb41&&!_0x40af96;}),this['bind']('isReadOnly')['to'](_0x3ace43,'isReadOnly'),this['_repository']=_0x418cba;}get['weight'](){return Math['max'](function(_0xbd7353){const _0x26f96c=document['createElement']('div');return _0x26f96c['innerHTML']=_0xbd7353,_0x26f96c['textContent']['length'];}(this['content']),0xc8);}['update'](_0x304d87){const {threadId:_0x4e4abf,id:_0x5a407e}=this;if(!this['_repository']['hasCommentThread'](_0x4e4abf))throw new _0x521d6f('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x4a4d57}=this['_repository']['getCommentThread'](_0x4e4abf);this['_repository']['fire'](bt('updateComment',_0x4a4d57,_0x4e4abf),{'channelId':_0x4a4d57,'threadId':_0x4e4abf,'commentId':_0x5a407e,..._0x304d87});}['setAttribute'](_0x2a7da8,_0x160a30){const _0x1631cd=It(this['attributes']);At(_0x1631cd,_0x2a7da8,_0x160a30),this['update']({'attributes':_0x1631cd});}['removeAttribute'](_0x14c81a){const _0x6634a4=It(this['attributes']);yt(_0x6634a4,_0x14c81a),this['update']({'attributes':_0x6634a4});}['remove'](_0x5316b2={}){if(!_0x5316b2['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x11ca35,id:_0x47eb66}=this;if(!this['_repository']['hasCommentThread'](_0x11ca35))throw new _0x521d6f('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x283ec4}=this['_repository']['getCommentThread'](_0x11ca35);this['_repository']['fire'](bt('removeComment',_0x283ec4,_0x11ca35),{'channelId':_0x283ec4,'threadId':_0x11ca35,'commentId':_0x47eb66,..._0x5316b2});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x31bf3f,..._0x1a5ef1){for(const _0x1b3d31 of _0x1a5ef1)void 0x0!==_0x1b3d31&&(_0x31bf3f+=':'+String(_0x1b3d31));return _0x31bf3f;}class J extends _0x8b2a9a{['refresh'](){const _0x590ed4=this['editor']['model']['document']['selection'];for(const _0x438ea0 of _0x590ed4['getRanges']())if(this['_hasContent'](_0x438ea0))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x277154=_0x42b28d()}={}){const _0x125f13=this['editor']['model'],_0x4203f8=[];for(const _0x53b6f8 of _0x125f13['document']['selection']['getRanges']())this['_hasContent'](_0x53b6f8)&&_0x4203f8['push'](this['_trimToContent'](_0x53b6f8));_0x125f13['change'](_0x36e400=>{for(const _0x1178ac of _0x4203f8){const _0x8b407d=_0x42b28d()['substr'](0x1,0x5),_0x3e6965='comment:'+_0x277154+':'+_0x8b407d;_0x36e400['addMarker'](_0x3e6965,{'range':_0x1178ac,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x58f71d){for(const _0x432d68 of _0x58f71d['getItems']())if(this['_itemIsContent'](_0x432d68))return!0x0;return!0x1;}['_itemIsContent'](_0x356c06){return _0x356c06['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x356c06)&&!_0x356c06['is']('element','tableCell');}['_trimToContent'](_0x155afb){const _0x59335b=_0x2d0ddf=>!this['_itemIsContent'](_0x2d0ddf['item']),_0x43c212=_0x155afb['start']['getLastMatchingPosition'](_0x59335b),_0x159bd0=_0x155afb['end']['getLastMatchingPosition'](_0x59335b,{'direction':'backward'});return this['editor']['model']['createRange'](_0x43c212,_0x159bd0);}}class P extends _0x42c114{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36ec28){super(_0x36ec28),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x35428a=this['editor'],_0x2b0f59=_0x35428a['model']['document']['selection'],_0x4fe33e=_0x1cfc5d(()=>this['refreshSelectedViews'](),0xa);_0x2b0f59['on']('change:range',(_0x5e061b,_0x263e04)=>{_0x263e04['directChange']&&(_0x4fe33e['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x35428a['editing']['view']['document'],'change:isFocused',(_0x490e87,_0x933319,_0x3c3c48)=>{_0x3c3c48&&_0x4fe33e();}),this['listenTo'](_0x35428a['ui']['focusTracker'],'change:isFocused',(_0x1009fb,_0x24edc7,_0x708d11)=>{_0x708d11||_0x35428a['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x215857=>this['_editorAnnotationsData']['has'](_0x215857['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0xa7ef9b){if(this['_editorAnnotations']['has'](_0xa7ef9b['view']))return;this['_editorAnnotations']['add'](_0xa7ef9b['view']),this['editor']['ui']['focusTracker']['add'](_0xa7ef9b['view']['element']);const _0x39b3fc=this['editor']['plugins']['get'](N);this['listenTo'](_0x39b3fc['collection'],'remove',(_0x341867,_0xfa334)=>{this['editor']['ui']['focusTracker']['remove'](_0xfa334['view']['element']),this['_editorAnnotations']['delete'](_0xfa334['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x1623d3){if('function'!=typeof _0x1623d3)throw new _0x521d6f('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x1623d3);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0xd645d5,annotations:_0x340002}){const _0x5b5f68=[],_0x15ded7=this['editor']['model']['document']['selection'],_0x11f401=Array['from'](_0x15ded7['getRanges']());for(const [_0x50a484,_0x2681be]of this['_editorAnnotationsData']){const _0x119135=_0x3c8ac8(_0x2681be),_0x11da58=_0x340002['getByInnerView'](_0x50a484);_0x119135&&_0x11da58&&_0x5b5f68['push']({'annotation':_0x11da58,'range':_0x119135});}function _0x3c8ac8(_0x3370ee){for(const _0x49735a of _0x3370ee)for(const _0x493c55 of _0x11f401)if(_0x49735a['containsRange'](_0x493c55,!_0x15ded7['isCollapsed']))return _0x49735a;return null;}return _0x5b5f68['sort']((_0x1383d4,_0x448be8)=>{const _0x11755b=_0x1383d4['range'],_0x429d27=_0x448be8['range'];if(!_0x11755b['isEqual'](_0x429d27)){if(_0x11755b['containsRange'](_0x429d27,!0x0))return 0x1;if(_0x429d27['containsRange'](_0x11755b,!0x0))return-0x1;}return _0x1383d4['annotation']==_0xd645d5?-0x1:_0x448be8['annotation']==_0xd645d5?0x1:0x0;})['map'](_0x4a0979=>_0x4a0979['annotation']);}get['_editorAnnotationsData'](){const _0x11e3a8=new Map();for(const _0x326fdb of Array['from'](this['_dataCollectors']))for(const [_0x50272a,_0x459987]of _0x326fdb())_0x11e3a8['set'](_0x50272a,_0x459987);return _0x11e3a8;}}class st extends _0x42c114{['afterInit'](){const _0x4ef6b7=this['editor'];if(!_0x4ef6b7['plugins']['has']('RestrictedEditingModeEditing'))return;_0x4ef6b7['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x42c114{constructor(_0x241456){super(_0x241456),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x189b5e=this['editor'],_0x453c67=_0x189b5e['commands']['get']('importWord'),_0x31468e=_0x189b5e['plugins']['get'](it);_0x453c67&&(_0x453c67['on']('execute',(_0x4f27d4,[,_0x2be160])=>{_0x2be160['collaboration_features']={'comments':!0x0,'user_id':_0x31468e['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x453c67,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0xb7f9e8,_0x5edfc4){const {comment_threads:_0x36f5c0}=_0x5edfc4;_0x36f5c0&&_0x36f5c0['forEach'](({thread_id:_0x38a524,comments:_0x4c06a3,is_resolved:_0x202f41})=>{const _0x2b1b6f=new Date(),_0x5f10e5=_0x4c06a3['map'](({author:_0x2fae46,content:_0x10e7c4,created_at:_0x4f5b13})=>({'content':_0x10e7c4,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x2b1b6f,'attributes':{'@external':{'authorName':_0x2fae46,'createdAt':_0x4f5b13?new Date(_0x4f5b13):new Date(),'source':'importWord'}}})),_0x402229=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x402229,'threadId':_0x38a524,'comments':_0x5f10e5,'resolvedAt':_0x202f41?_0x2b1b6f:null});});}}class at extends _0x42c114{constructor(_0x2546cd){super(_0x2546cd),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x2372ec=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x2372ec,'contentInsertion',(_0x406022,_0xf62ced)=>this['_removeMarkersWithoutThreads'](_0xf62ced['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4ddefd){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4ddefd;const _0x58fff3=this['editor']['plugins']['get']('CommentsRepository');for(const _0x5aaaff of _0x4ddefd['keys']()){const [_0x159af8,_0x4e06c7]=_0x5aaaff['split'](':');'comment'!=_0x159af8||_0x58fff3['hasCommentThread'](_0x4e06c7)||_0x4ddefd['delete'](_0x5aaaff);}return _0x4ddefd;}['_registerMarkerInClipboardPipeline'](){const _0x5111f1=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x554ef8=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x554ef8&&_0x5111f1['_registerMarkerToCopy']('comment',_0x554ef8);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x4f55e3){switch(_0x4f55e3){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 _0x42c114{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x2a819e,_0x35e7db)=>{if(!_0x35e7db['options']['showCommentHighlights'])return null;if(_0x35e7db['options']['ignoreResolvedComments']){const {id:_0x2e691e}=er(_0x2a819e['markerName']),_0x5108da=this['editor']['plugins']['get'](o)['getCommentThread'](_0x2e691e);if(_0x5108da&&_0x5108da['isResolved']&&_0x2a819e['item'])return _0x35e7db['consumable']['consume'](_0x2a819e['item'],'addMarker:'+_0x2a819e['markerName']),_0x35e7db['consumable']['consume'](_0x2a819e['item'],'removeMarker:'+_0x2a819e['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x439f89=>{_0x439f89['on']('addMarker:comment',(_0x1d5b48,_0x2e63ea,_0x4a9012)=>{if(!_0x4a9012['options']['showCommentHighlights'])return;const _0x35ced8=_0x2e63ea['item'];if(!_0x35ced8)return;const _0x5d2230=_0x4a9012['mapper']['toViewElement'](_0x35ced8);this['editor']['model']['schema']['isObject'](_0x35ced8)&&_0x5d2230&&!_0x5d2230['getCustomProperty']('widget')&&_0x5d2230['is']('containerElement')&&_0x1de271(_0x5d2230,_0x4a9012['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xc2258b,{writer:_0x2f0158,options:_0x1ee3a9})=>{if(!_0x1ee3a9['showCommentHighlights'])return null;const _0x281697=_0x2f0158['createContainerElement']('div'),_0x39e1ee=_0x2f0158['createEmptyElement']('hr');return _0x2f0158['addClass']('ck-horizontal-line',_0x281697),_0x2f0158['insert'](_0x2f0158['createPositionAt'](_0x281697,0x0),_0x39e1ee),_0x281697;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x5ceebf,{writer:_0x3e126a,options:_0x487a39})=>{if(!_0x487a39['showCommentHighlights'])return null;const _0x45ffe5=_0x3e126a['createContainerElement']('span'),_0x1f091f=_0x3e126a['createEmptyElement']('img');return _0x3e126a['addClass']('image-inline',_0x45ffe5),_0x3e126a['insert'](_0x3e126a['createPositionAt'](_0x45ffe5,0x0),_0x1f091f),_0x45ffe5;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5a6ed6,{writer:_0x539b2e,options:_0x45a8e0})=>{if(_0x45a8e0['showCommentHighlights'])return _0x539b2e['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x441a4f,_0x4852f3,_0xc694c5)=>{_0xc694c5['options']['showCommentHighlights']&&_0x441a4f['stop']();},{'priority':'high'});}}class r extends _0x42c114{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(_0x1bef5b){super(_0x1bef5b),this['set']('isThreadsLoadingPaused',!0x0),_0x1bef5b['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x495940,_0x5b1b1d,_0x522848,_0x5bb2e3)=>{const _0x3d23da=_0x1bef5b['plugins']['get'](o),_0x2efe3a=_0x522848?er(_0x522848)['id']:null;_0x1bef5b['model']['change'](()=>{if(_0x2efe3a){const _0x321a81=this['getAllMarkersForId'](_0x2efe3a);for(const _0x327c54 of _0x321a81)_0x1bef5b['editing']['reconvertMarker'](_0x327c54);}if(_0x5bb2e3){const {id:_0x3a0351}=er(_0x5bb2e3),_0x507180=_0x3d23da['getCommentThread'](_0x3a0351);if(_0x507180&&!_0x507180['isAttached'])return;const _0x85f826=this['getAllMarkersForId'](_0x3a0351);for(const _0x2818ca of _0x85f826)_0x1bef5b['editing']['reconvertMarker'](_0x2818ca);}}),_0x2efe3a&&this['scrollToThreadMarker'](_0x2efe3a);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x53f81a=this['editor'],_0x373c43=_0x53f81a['plugins']['get'](o),_0x5a6b00=_0x53f81a['config']['get']('collaboration.channelId'),_0x12358c=_0x373c43['getCommentThreads']()['filter'](_0x1defdf=>_0x1defdf['channelId']!==_0x5a6b00);_0x53f81a['commands']['add']('addCommentThread',new J(_0x53f81a)),this['listenTo'](_0x53f81a,'change:isReadOnly',(_0x11afec,_0x5bf42d,_0x556ae3)=>{_0x373c43['switchReadOnly'](_0x556ae3,_0x53f81a['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x373c43,ft('addCommentThread',_0x5a6b00),(_0x43e6dd,{threadId:_0x1e8eea})=>{const _0xd7b2c=this['editor']['plugins']['get'](o)['getCommentThread'](_0x1e8eea);_0xd7b2c&&_0xd7b2c['unlinkedAt']&&this['_attachArchivedThread'](_0x1e8eea);}),this['listenTo'](_0x373c43,ft('removeCommentThread',_0x5a6b00),(_0x282530,{threadId:_0x32b307})=>{_0x53f81a['model']['enqueueChange']({'isUndoable':!0x1},_0xef583d=>{const _0x1faf43=this['getAllMarkersForId'](_0x32b307);for(const _0x3eebd0 of _0x1faf43)_0xef583d['removeMarker'](_0x3eebd0);});}),this['listenTo'](_0x373c43,ft('resolveCommentThread',_0x5a6b00),(_0x28e219,{threadId:_0x2c365f})=>{(this['_reconvertMarkers'](_0x2c365f),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x2c365f)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x373c43,ft('reopenCommentThread',_0x5a6b00),(_0x346393,{threadId:_0x40d06d})=>{this['_reconvertMarkers'](_0x40d06d);},{'priority':'low'}),this['listenTo'](_0x373c43,ft('addComment',_0x5a6b00),(_0x461994,{threadId:_0xcadd4a,isFromAdapter:_0x1bbd2e})=>{const _0x28bdf9=this['getAllMarkersForId'](_0xcadd4a);if(_0x1bbd2e||0x0==_0x28bdf9['length']||!_0x373c43['hasCommentThread'](_0xcadd4a))return;0x1===_0x373c43['getCommentThread'](_0xcadd4a)['length']&&_0x53f81a['model']['enqueueChange']({'isUndoable':!0x1},_0x578da1=>{for(const _0x5cc308 of _0x28bdf9)_0x578da1['updateMarker'](_0x5cc308,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x12358c);}['afterInit'](){!async function(_0x343d12){const _0x5b1c14=_0x148048([0x74,0x58,0x71,0x32,0x6d,0x64,0x6c,0x77,0x62,0x4c,0x63,0x59,0x6e,0x35,0x36,0x30,0x70,0x61,0x42,0x69,0x65,0x49,0x37,0x34,0x6f,0x38,0x75,0x51,0x7a,0x4d,0x4b,0x6b,0x55,0x47,0x4a,0x31,0x54,0x5a,0x53,0x4f,0x46,0x76,0x57,0x66,0x6a,0x44,0x73,0x50,0x33,0x45,0x67,0x78,0x72,0x52,0x4e,0x48,0x79,0x56,0x68,0x43,0x39,0x41]),_0xa89f8f=0x77227c8c,_0x405116=0x77252204^_0xa89f8f,_0x156c11=window[_0x148048([0x44,0x61,0x74,0x65])][_0x148048([0x6e,0x6f,0x77])](),_0x18b103=_0x343d12[_0x148048([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30273d=new window[(_0x148048([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c6549=>{_0x18b103[_0x148048([0x6f,0x6e,0x63,0x65])](_0x148048([0x72,0x65,0x61,0x64,0x79]),_0x1c6549);}),_0x4afe77={[_0x148048([0x6b,0x74,0x79])]:_0x148048([0x45,0x43]),[_0x148048([0x75,0x73,0x65])]:_0x148048([0x73,0x69,0x67]),[_0x148048([0x63,0x72,0x76])]:_0x148048([0x50,0x2d,0x32,0x35,0x36]),[_0x148048([0x78])]:_0x148048([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]),[_0x148048([0x79])]:_0x148048([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]),[_0x148048([0x61,0x6c,0x67])]:_0x148048([0x45,0x53,0x32,0x35,0x36])},_0x11d2ac=_0x18b103[_0x148048([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x148048([0x67,0x65,0x74])](_0x148048([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x435c74(){let _0x4e7d0c,_0x29b446=null,_0x5e6edf=null;try{if(_0x11d2ac==_0x148048([0x47,0x50,0x4c]))return _0x148048([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e7d0c=_0x2dd444(),!_0x4e7d0c)return _0x148048([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e7d0c[_0x148048([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e6edf=_0x28774c(_0x4e7d0c[_0x148048([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e7d0c[_0x148048([0x6a,0x74,0x69])])),await _0x2932bc()?_0x4ef41d()?_0x19f3f4()?_0x148048([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a1dd7()?(_0x4e7d0c[_0x148048([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x148048([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29b446=_0x1f8986(_0x148048([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e7d0c[_0x148048([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x148048([0x74,0x72,0x69,0x61,0x6c])&&(_0x29b446=_0x1f8986(_0x148048([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2fc3c5()):_0x148048([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x148048([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x148048([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4387ce){return _0x148048([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x19f3f4(){const _0x24c8a1=[_0x148048([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x148048([0x74,0x72,0x69,0x61,0x6c])][_0x148048([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e7d0c[_0x148048([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x156c11/0x3e8:0xe10*_0x405116;return _0x4e7d0c[_0x148048([0x65,0x78,0x70])]<_0x24c8a1;}function _0x4ef41d(){const _0x5aabbb=_0x4e7d0c[_0x148048([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5aabbb)return!0x1;if(_0x5aabbb[_0x148048([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x148048([0x2a])))return!0x0;if(_0x5aabbb[_0x148048([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x148048([0x43,0x4d,0x54])))return!0x0;if(_0x5aabbb[_0x148048([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x148048([0x52,0x43,0x4d,0x54]))){if(_0x3abad5())return!0x0;if(_0x25e2d4()||_0x4399d9())return!0x0;}return!0x1;}function _0x5a1dd7(){const _0x1ff4f8=_0x4e7d0c[_0x148048([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1ff4f8||0x0==_0x1ff4f8[_0x148048([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a45c2}=new URL(window[_0x148048([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1ff4f8[_0x148048([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a45c2))return!0x0;const _0x5bfe7b=_0x5a45c2[_0x148048([0x73,0x70,0x6c,0x69,0x74])](_0x148048([0x2e]));return _0x1ff4f8[_0x148048([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ff89c=>_0x2ff89c[_0x148048([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x148048([0x2a])))[_0x148048([0x6d,0x61,0x70])](_0x2186f2=>_0x2186f2[_0x148048([0x73,0x70,0x6c,0x69,0x74])](_0x148048([0x2e])))[_0x148048([0x73,0x6f,0x6d,0x65])](_0x22b3a5=>_0x5bfe7b[_0x148048([0x65,0x76,0x65,0x72,0x79])]((_0x1a3e93,_0x5374bc)=>_0x22b3a5[_0x5374bc]===_0x1a3e93||_0x22b3a5[_0x5374bc]===_0x148048([0x2a])));}function _0x2fc3c5(){return _0x29b446&&_0x5e6edf?new window[(_0x148048([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44a80d,_0x504fe2)=>{_0x29b446[_0x148048([0x74,0x68,0x65,0x6e])](_0x44a80d,_0x504fe2),_0x5e6edf[_0x148048([0x74,0x68,0x65,0x6e])](_0x10921e=>{_0x10921e!=_0x148048([0x56,0x61,0x6c,0x69,0x64])&&_0x44a80d(_0x10921e);},_0x504fe2);}):_0x29b446||_0x5e6edf||_0x148048([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28774c(_0xaad52,_0x4e73a3){return new window[(_0x148048([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49226c=>{if(_0x39f20f())return _0x49226c(_0x148048([0x56,0x61,0x6c,0x69,0x64]));_0x5e4f92(),_0x18b103[_0x148048([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x148048([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x46875f=!0x1;const _0x58977f=_0x42b28d();function _0x3a5875(_0xf01d31){return!!_0xf01d31&&(typeof _0xf01d31===_0x148048([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf01d31===_0x148048([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf01d31[_0x148048([0x74,0x68,0x65,0x6e])]===_0x148048([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf01d31[_0x148048([0x63,0x61,0x74,0x63,0x68])]===_0x148048([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1309cc(_0x38c488){_0x147d8a(_0x38c488)[_0x148048([0x74,0x68,0x65,0x6e])](_0x5df326=>{if(!_0x5df326||_0x5df326[_0x148048([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x148048([0x6f,0x6b]))return _0x148048([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2fed30(_0x14f305(_0x58977f+_0x4e73a3))!=_0x5df326[_0x148048([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x148048([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x148048([0x56,0x61,0x6c,0x69,0x64]);})[_0x148048([0x74,0x68,0x65,0x6e])](_0x474e8e=>(_0x4b5a68(),_0x474e8e),()=>{const _0x4a844f=_0x2ebbd0();return null==_0x4a844f?(_0x4b5a68(),_0x148048([0x56,0x61,0x6c,0x69,0x64])):_0x148048(_0x156c11-_0x4a844f>(0x532ef88c^_0xa89f8f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x148048([0x74,0x68,0x65,0x6e])](_0x49226c)[_0x148048([0x63,0x61,0x74,0x63,0x68])](()=>{_0x49226c(_0x148048([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10f4e1=0x7714920c^_0xa89f8f;function _0x4b5a68(){const _0x59bad9=_0x148048([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fed30(_0x14f305(_0xaad52)),_0x2fd6ac=_0x39d0c6(_0x2fed30(window[_0x148048([0x4d,0x61,0x74,0x68])][_0x148048([0x63,0x65,0x69,0x6c])](_0x156c11/_0x10f4e1)));window[_0x148048([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x148048([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59bad9,_0x2fd6ac);}function _0x2ebbd0(){const _0x47898b=_0x148048([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fed30(_0x14f305(_0xaad52)),_0x474043=window[_0x148048([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x148048([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47898b);return _0x474043?window[_0x148048([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39d0c6(_0x474043),0x10)*_0x10f4e1:null;}function _0x147d8a(_0x23c27e){return new window[(_0x148048([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e508e,_0x537237)=>{_0x23c27e[_0x148048([0x74,0x68,0x65,0x6e])](_0x4e508e,_0x537237),window[_0x148048([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x537237,0x7723a84c^_0xa89f8f);});}}_0x18b103[_0x148048([0x6f,0x6e])](_0x148048([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5df055,_0x48dc1c)=>{if(_0x48dc1c[0x0]!=_0xaad52)return _0x49226c(_0x148048([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x48dc1c[0x1]={..._0x48dc1c[0x1],[_0x148048([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58977f};},{[_0x148048([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x148048([0x68,0x69,0x67,0x68])}),_0x18b103[_0x148048([0x6f,0x6e])](_0x148048([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x183e03=>{_0x3a5875(_0x183e03[_0x148048([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x46875f=!0x0,_0x1309cc(_0x183e03[_0x148048([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x148048([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x148048([0x6c,0x6f,0x77])}),_0x30273d[_0x148048([0x74,0x68,0x65,0x6e])](()=>{_0x46875f||_0x49226c(_0x148048([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x39f20f(){return _0x18b103[_0x148048([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x148048([0x76,0x69,0x65,0x77])][_0x148048([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x148048([0x61,0x75,0x74,0x6f]);}function _0x5e4f92(){_0x18b103[_0x148048([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x148048([0x76,0x69,0x65,0x77])][_0x148048([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x148048([0x61,0x75,0x74,0x6f]);}}function _0x1f8986(_0xc0a75e){const _0x35f3eb=[new window[(_0x148048([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36cd3d=>setTimeout(_0x36cd3d,0x772b4240^_0xa89f8f)),_0x30273d[_0x148048([0x74,0x68,0x65,0x6e])](()=>new window[(_0x148048([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b75df=>{let _0x4d874c=0x0;_0x18b103[_0x148048([0x6d,0x6f,0x64,0x65,0x6c])][_0x148048([0x6f,0x6e])](_0x148048([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d3bbb,_0x597cce)=>{_0x597cce[0x0][_0x148048([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4d874c++,_0x4d874c==(0x77227d74^_0xa89f8f)&&(_0x5b75df(),_0x4d3bbb[_0x148048([0x6f,0x66,0x66])]());});}))];return window[_0x148048([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x148048([0x72,0x61,0x63,0x65])](_0x35f3eb)[_0x148048([0x74,0x68,0x65,0x6e])](()=>_0xc0a75e);}async function _0x3986a0(){await _0x30273d,_0x18b103[_0x148048([0x6d,0x6f,0x64,0x65,0x6c])][_0x148048([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x219dfc,_0x18b103[_0x148048([0x6d,0x6f,0x64,0x65,0x6c])][_0x148048([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x219dfc,_0x18b103[_0x148048([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x148048([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3abad5(){return _0xc74ada(_0x148048([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5b684a(_0x148048([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x148048([0x73,0x74,0x61,0x74,0x65])]==_0x148048([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x25e2d4(){return _0xc74ada(_0x148048([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 _0x4399d9(){return _0xc74ada(_0x148048([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x49aa5b(_0x2d6868){const _0x3f996e=_0x540a1d();_0x18b103[_0x3f996e]=_0x148048([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d6868,_0x2d6868!=_0x148048([0x56,0x61,0x6c,0x69,0x64])&&_0x3986a0();}function _0x540a1d(){const _0x4eccea=window[_0x148048([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x148048([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x148048([0x6e,0x6f,0x77])]())[_0x148048([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x148048([0x2e]),'');let _0x23028c=_0x148048([0x74]);for(let _0x432931=0x0;_0x432931<_0x4eccea[_0x148048([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x432931+=0x2){let _0x3f4515=window[_0x148048([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4eccea[_0x148048([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x432931,_0x432931+0x2));_0x3f4515>=_0x5b1c14[_0x148048([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f4515-=_0x5b1c14[_0x148048([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23028c+=_0x5b1c14[_0x3f4515];}return _0x23028c;}function _0x2dd444(){const _0x54067c=_0x11d2ac[_0x148048([0x73,0x70,0x6c,0x69,0x74])](_0x148048([0x2e]));if(0x3!=_0x54067c[_0x148048([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42d9d1(_0x54067c[0x1]);function _0x42d9d1(_0x1731b9){const _0x527ca3=_0x40d965(_0x1731b9);return _0x527ca3&&_0x1a41ab()?_0x527ca3:null;function _0x1a41ab(){const _0x32d0af=_0x527ca3[_0x148048([0x6a,0x74,0x69])],_0x16007f=window[_0x148048([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32d0af[_0x148048([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32d0af[_0x148048([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50eb68={..._0x527ca3,[_0x148048([0x6a,0x74,0x69])]:_0x32d0af[_0x148048([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32d0af[_0x148048([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50eb68[_0x148048([0x76,0x63])],_0x14f305(_0x50eb68)==_0x16007f;}}}async function _0x2932bc(){let _0xa9e1c5=!0x0;try{const _0x57ad3b=_0x11d2ac[_0x148048([0x73,0x70,0x6c,0x69,0x74])](_0x148048([0x2e])),[_0x35e8f9,_0x311492,_0x489aa8]=_0x57ad3b;return _0x4fb509(_0x35e8f9),await _0x355fb1(_0x35e8f9,_0x311492,_0x489aa8),_0xa9e1c5;}catch(_0x5db51e){return!0x1;}function _0x4fb509(_0x3333ca){const _0x3df17a=_0x40d965(_0x3333ca);_0x3df17a&&_0x3df17a[_0x148048([0x61,0x6c,0x67])]==_0x148048([0x45,0x53,0x32,0x35,0x36])||(_0xa9e1c5=!0x1);}async function _0x355fb1(_0xf7d4c3,_0x203f83,_0x3f9b05){const _0x24f4fc=window[_0x148048([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x148048([0x66,0x72,0x6f,0x6d])](_0x20046c(_0x3f9b05),_0x40e319=>_0x40e319[_0x148048([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e7d4f=new window[(_0x148048([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x148048([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf7d4c3+_0x148048([0x2e])+_0x203f83),_0x1b12b2=window[_0x148048([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x148048([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b12b2)return;const _0x67b320=await _0x1b12b2[_0x148048([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x148048([0x6a,0x77,0x6b]),_0x4afe77,{[_0x148048([0x6e,0x61,0x6d,0x65])]:_0x148048([0x45,0x43,0x44,0x53,0x41]),[_0x148048([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x148048([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x148048([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b12b2[_0x148048([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x148048([0x6e,0x61,0x6d,0x65])]:_0x148048([0x45,0x43,0x44,0x53,0x41]),[_0x148048([0x68,0x61,0x73,0x68])]:{[_0x148048([0x6e,0x61,0x6d,0x65])]:_0x148048([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x67b320,_0x24f4fc,_0x1e7d4f)||(_0xa9e1c5=!0x1);}}function _0x40d965(_0x5ed3ef){return _0x5ed3ef[_0x148048([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x148048([0x65,0x79]))?JSON[_0x148048([0x70,0x61,0x72,0x73,0x65])](_0x20046c(_0x5ed3ef)):null;}function _0x20046c(_0x157992){return window[_0x148048([0x61,0x74,0x6f,0x62])](_0x157992[_0x148048([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x148048([0x2b]))[_0x148048([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x148048([0x2f])));}function _0x14f305(_0x5523e4){let _0x175b04=0x1505;function _0x1b4832(_0xe26e1b){for(let _0x370106=0x0;_0x370106<_0xe26e1b[_0x148048([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x370106++){const _0x53f9a=_0xe26e1b[_0x148048([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x370106);_0x175b04=(_0x175b04<<0x5)+_0x175b04+_0x53f9a,_0x175b04&=_0x175b04;}}function _0x39de62(_0x182684){Array[_0x148048([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x182684)?_0x182684[_0x148048([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39de62):_0x182684&&typeof _0x182684==_0x148048([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x148048([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x182684)[_0x148048([0x73,0x6f,0x72,0x74])]()[_0x148048([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x47f7cd,_0x5f0320])=>{_0x1b4832(_0x47f7cd),_0x39de62(_0x5f0320);}):_0x1b4832(window[_0x148048([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x182684));}return _0x39de62(_0x5523e4),_0x175b04>>>0x0;}function _0x2fed30(_0x2de16b){return _0x2de16b[_0x148048([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x148048([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x148048([0x30]));}function _0x39d0c6(_0x451290){return _0x451290[_0x148048([0x73,0x70,0x6c,0x69,0x74])]('')[_0x148048([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x148048([0x6a,0x6f,0x69,0x6e])]('');}function _0xc74ada(_0x1d8fca){return _0x18b103[_0x148048([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x148048([0x68,0x61,0x73])](_0x1d8fca);}function _0x5b684a(_0x141f41){return _0x18b103[_0x148048([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x148048([0x67,0x65,0x74])](_0x141f41);}function _0x219dfc(){}function _0x148048(_0x1ac0f3){return _0x1ac0f3['map'](_0x356f37=>String['fromCharCode'](_0x356f37))['join']('');}_0x49aa5b(await _0x435c74());}(this);}['destroy'](){const _0x8bbca1=this['editor']['plugins']['get'](o),_0x5a6639=this['editor']['config']['get']('collaboration.channelId');for(const _0x21646b of _0x8bbca1['getCommentThreads']({'channelId':_0x5a6639}))_0x8bbca1['_detachCommentThread'](_0x21646b['id']),_0x8bbca1['_threads']['delete'](_0x21646b['id']);super['destroy']();}['hasMarkerForId'](_0x44490c){return this['getAllMarkersForId'](_0x44490c)['length']>0x0;}['getAllMarkersForId'](_0x140408){const _0x4885c1=[];for(const _0x111dbe of this['editor']['model']['markers'])_0x111dbe['name']['startsWith']('comment:'+_0x140408)&&_0x4885c1['push'](_0x111dbe);return _0x4885c1;}['scrollToThreadMarker'](_0x162e51){const _0x440079=this['_getTargetForId'](_0x162e51);_0x440079&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x162e51&&rt({'target':_0x440079[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x25ae20){this['editor']['model']['change'](()=>{for(const _0xea6afa of this['getAllMarkersForId'](_0x25ae20))this['editor']['editing']['reconvertMarker'](_0xea6afa);});}['_attachArchivedThread'](_0x4641ac){const _0x4d1e9e=this['editor']['plugins']['get'](o),_0x577532=this['editor']['plugins']['get'](P),_0x1989a6=_0x4d1e9e['getCommentThread'](_0x4641ac);if(!_0x1989a6['isAttached']){const _0x36faf9=_0x1989a6['attachTo'](()=>this['_getTargetForId'](_0x1989a6['id']));_0x577532['registerAnnotation'](_0x36faf9),_0x1989a6['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x5191ca=this['editor'],_0x3bcefd=_0x5191ca['plugins']['get'](it);_0x5191ca['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x17f14a,_0x55b84e)=>{const {id:_0x4f7734}=er(_0x17f14a['markerName']),_0x241b90=_0x5191ca['plugins']['get'](o)['getCommentThread'](_0x4f7734),_0x2d01b1=this['activeMarker']&&er(this['activeMarker'])['id']===_0x4f7734;let _0x1b92ee;if(_0x241b90&&_0x241b90['isResolved']&&!_0x2d01b1&&_0x17f14a['item'])return _0x55b84e['consumable']['consume'](_0x17f14a['item'],'addMarker:'+_0x17f14a['markerName']),_0x55b84e['consumable']['consume'](_0x17f14a['item'],'removeMarker:'+_0x17f14a['markerName']),null;const _0x98ee1=['ck-comment-marker'];return _0x2d01b1&&_0x98ee1['push']('ck-comment-marker--active'),_0x1b92ee=_0x241b90&&_0x241b90['length']?_0x241b90['comments']['first']['author']['id']:_0x3bcefd['me']['id'],{'classes':_0x98ee1,'attributes':{'data-comment':_0x4f7734,'data-author-id':_0x1b92ee}};}}),_0x5191ca['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x313dc0,{options:_0x4149c8})=>{if(_0x4149c8['showCommentHighlights'])return null;const _0x578383=_0x5191ca['plugins']['get'](o),_0x2dbc23=_0x5191ca['model']['markers']['get'](_0x313dc0),{id:_0x3839c4,part:_0x19b2fe}=er(_0x313dc0);if(_0x2dbc23&&!_0x2dbc23['affectsData'])return null;if(_0x4149c8['ignoreResolvedComments']){const _0x10265e=_0x578383['getCommentThread'](_0x3839c4);if(_0x10265e&&_0x10265e['isResolved'])return null;}return{'group':'comment','name':_0x19b2fe?_0x3839c4+':'+_0x19b2fe:_0x3839c4};}}),_0x5191ca['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0xde9fa1,{writer:_0xe6e514})=>_0xe6e514['createElement']('$marker',{'data-name':'comment:'+_0xde9fa1['getAttribute']('id')})}),_0x5191ca['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3df7fa=this['editor'],_0x15b10f=_0x3df7fa['plugins']['get'](o),_0x5e9f91=new Set(),_0x249307=new Set();_0x3df7fa['model']['document']['registerPostFixer'](_0x58e289=>{let _0x4cb0e3=!0x1;for(const {name:_0x34d94b,data:_0x19effd}of _0x3df7fa['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3c948d,id:_0x4fb740}=er(_0x34d94b);let _0x33cea7=_0x19effd['newRange'];if('comment'!==_0x3c948d||!_0x33cea7)continue;const _0x33d8f8='$graveyard'===_0x33cea7['root']['rootName'];_0x33d8f8||(_0x33cea7=dt(_0x33cea7,_0x3df7fa['model']),!_0x33cea7||_0x33cea7['isCollapsed']||!_0x19effd['newRange']||_0x33cea7['isEqual'](_0x19effd['newRange']))?_0x3df7fa['model']['hasContent'](_0x33cea7)&&!_0x33d8f8?this['isThreadsLoadingPaused']?_0x5e9f91['add'](_0x34d94b):this['_handleThreadMarker'](_0x34d94b,_0x4fb740):(_0x249307['add'](_0x34d94b),_0x5e9f91['delete'](_0x34d94b),_0x58e289['removeMarker'](_0x34d94b),_0x4cb0e3=!0x0):(_0x58e289['updateMarker'](_0x34d94b,{'range':_0x33cea7}),_0x4cb0e3=!0x0);}return _0x4cb0e3;}),this['on']('change:isThreadsLoadingPaused',(_0xc939c,_0x1dd8c4,_0x5d8fe6)=>{if(!_0x5d8fe6&&_0x5e9f91['size'])for(const _0x623203 of _0x5e9f91){const {id:_0xf4bf82}=er(_0x623203);_0x5e9f91['delete'](_0x623203),_0x3df7fa['model']['markers']['get'](_0x623203)&&this['_handleThreadMarker'](_0x623203,_0xf4bf82);}}),this['listenTo'](_0x3df7fa['model']['document'],'change',()=>{for(const {name:_0x10c345,data:{newRange:_0x29f452}}of _0x3df7fa['model']['document']['differ']['getChangedMarkers']()){const {group:_0x30ccb5,id:_0x18fcf2}=er(_0x10c345);if('comment'!==_0x30ccb5)continue;const _0x2a202c=_0x15b10f['getCommentThread'](_0x18fcf2),_0x47c5f9=this['hasMarkerForId'](_0x18fcf2);_0x2a202c&&(!_0x2a202c['_hasTargetInContent']&&_0x29f452&&_0x3df7fa['editing']['view']['once']('render',()=>{const _0x201407=_0x3df7fa['plugins']['get'](N),_0xa3facb=_0x15b10f['_threadToController']['get'](_0x2a202c)['view'];_0x201407['getByInnerView'](_0xa3facb)['refreshVisibility']();},{'priority':'low'}),_0x2a202c['_hasTargetInContent']=_0x47c5f9||!!_0x29f452),_0x29f452||(_0x249307['add'](_0x10c345),_0x5e9f91['delete'](_0x10c345));}for(const _0x4bbc69 of _0x249307){const {id:_0x12be5b}=er(_0x4bbc69),_0x1f0074=_0x15b10f['getCommentThread'](_0x12be5b);if(_0x5e9f91['delete'](_0x4bbc69),!_0x1f0074)continue;const _0x795e92=this['hasMarkerForId'](_0x12be5b);_0x795e92||_0x1f0074['isSubmitted']?_0x795e92||_0x1f0074['unlinkedAt']||_0x1f0074['setUnlinkedAt'](new Date()):_0x1f0074['remove']();}_0x249307['clear']();});}['_handleInitialThreads'](_0x2f4936){_0x2f4936['forEach'](_0x4cd917=>{_0x4cd917['unlinkedAt']&&this['_attachArchivedThread'](_0x4cd917['id']);});}['_getTargetForId'](_0x58047e){const _0x2153cd=this['editor'],_0x20a78c=this['getAllMarkersForId'](_0x58047e);return et(_0x2153cd['editing'],_0x20a78c);}['_getTextContext'](_0x540203){const _0x19369c=this['getAllMarkersForId'](_0x540203);let _0x1aafd2='',_0x2e39af=!0x1;for(const _0x4377dd of _0x19369c){const _0x283363=_0x4377dd['getRange']();for(const _0x2093cd of Array['from'](_0x283363['getItems']()))_0x2093cd['is']('$textProxy')?(_0x1aafd2&&_0x2e39af&&(_0x1aafd2+='\x20',_0x2e39af=!0x1),_0x1aafd2+=_0x2093cd['data']):_0x2e39af=!0x0;_0x2e39af=!0x0;}return _0x1aafd2['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x302fcf,_0x208197){const _0x31501a=this['editor'],_0x42209e=_0x31501a['plugins']['get'](o);let _0x3a2194=_0x42209e['getCommentThread'](_0x208197);const _0x3e3a8f=_0x31501a['config']['get']('collaboration.channelId'),_0x1de90a=_0x31501a['plugins']['get'](P);if(_0x3a2194&&(_0x3a2194['unlinkedAt']&&_0x3a2194['setUnlinkedAt'](null),_0x3a2194['isAttached']))return _0x3a2194;return!this['getAllMarkersForId'](_0x208197)[0x0]['managedUsingOperations']?_0x31501a['editing']['view']['once']('render',()=>{if(_0x42209e['getCommentThread'](_0x208197))return;const _0x117f3a=_0x31501a['plugins']['get'](N);_0x3a2194=_0x42209e['openNewCommentThread']({'channelId':_0x3e3a8f,'threadId':_0x208197,'target':()=>this['_getTargetForId'](_0x208197),'context':{'type':'text','value':this['_getTextContext'](_0x208197)}});const _0x1011da=_0x42209e['_threadToController']['get'](_0x3a2194)['view'],_0x5a6144=_0x117f3a['getByInnerView'](_0x1011da);_0x5a6144&&_0x1de90a['registerAnnotation'](_0x5a6144);},{'priority':'low'}):_0x42209e['fetchCommentThread']({'channelId':_0x3e3a8f,'threadId':_0x208197})['then'](_0x8c84cb=>{if('destroyed'!==_0x31501a['state']){if(_0x3a2194=_0x8c84cb,_0x3a2194&&!_0x3a2194['isAttached']){const _0x3ecd24=_0x3a2194['attachTo'](()=>this['_getTargetForId'](_0x208197));_0x1de90a['registerAnnotation'](_0x3ecd24),_0x3a2194['isResolved']&&this['_reconvertMarkers'](_0x208197);}else{if(!_0x3a2194){const _0x5e8846=this['getAllMarkersForId'](_0x208197);_0x31501a['model']['change'](_0x528611=>{for(const _0x95e55a of _0x5e8846)_0x528611['removeMarker'](_0x95e55a);});}}}}),_0x3a2194;}['_handleThreadMarker'](_0x22dd5f,_0x55a3bb){const _0x34d5e8=this['_attachMarkerToThread'](_0x22dd5f,_0x55a3bb);_0x34d5e8&&!_0x34d5e8['context']&&_0x34d5e8['setContext']({'type':'text','value':this['_getTextContext'](_0x55a3bb)});}['_initAriaMarkerChangeAnnouncements'](){const _0x5e3a57=this['editor'];ot(_0x5e3a57['model'],({left:_0x3af3ed,entered:_0x396b86})=>{for(const _0x7b7eb2 of _0x3af3ed)if(mt(_0x7b7eb2)){_0x5e3a57['ui']['ariaLiveAnnouncer']['announce'](S(_0x5e3a57['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x4a6c9e of _0x396b86)if(mt(_0x4a6c9e)){_0x5e3a57['ui']['ariaLiveAnnouncer']['announce'](S(_0x5e3a57['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x1b5b13)));break;}});}}function ft(_0x5d92f9,_0x5f3c98){return _0x5f3c98?_0x5d92f9+':'+_0x5f3c98:_0x5d92f9;}function er(_0xbd9b20){const _0x1a662b=_0xbd9b20['split'](':');return{'group':_0x1a662b[0x0],'id':_0x1a662b[0x1],'part':_0x1a662b[0x2]};}function dt(_0x5d5695,_0x535513){const _0x34fee1=_0x535513['schema'],_0x3347b3=_0x535513['createRange'](_0x5d5695['start']);for(const _0x1b79a5 of _0x5d5695['getWalker']()){const {type:_0x5d07dc,item:_0x4f6348,nextPosition:_0xb9a9e4}=_0x1b79a5;if('text'===_0x5d07dc||_0x34fee1['isObject'](_0x4f6348)){const _0x4ad919=_0x535513['createPositionBefore'](_0x4f6348);_0x3347b3['isCollapsed']&&(_0x3347b3['start']=_0x4ad919),_0x3347b3['end']=_0xb9a9e4;}}return _0x3347b3;}function mt(_0x41d9b3){return'comment'===er(_0x41d9b3['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 _0x42c114{['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 _0x548339=this['editor'],_0x24fe36=_0x548339['plugins']['get'](o),_0xe482c9=_0x548339['plugins']['get'](r),_0x46be5f=_0x548339['plugins']['get'](N),_0x4d3d08=_0x548339['plugins']['get'](P);_0x548339['ui']['componentFactory']['add']('comment',()=>{const _0x48b3fb=this['_createUIButton'](_0x1ff815);return _0x48b3fb['tooltip']=!0x0,_0x48b3fb;}),_0x548339['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x1108e4)),_0x4d3d08['addSourceCollector'](()=>{const _0x501c9b=[];for(const [_0x38e719,_0xa3a8d6]of _0x24fe36['_threadToController']){const _0x1861b1=_0xe482c9['getAllMarkersForId'](_0x38e719['id']),_0x50c16d=_0x1861b1['map'](_0x40dd0a=>_0x40dd0a['getRange']());_0x1861b1['length']>0x0&&_0x501c9b['push']([_0xa3a8d6['view'],_0x50c16d]);}return _0x501c9b;}),this['listenTo'](_0x46be5f,'change:activeAnnotations',(_0x449f43,_0x4c646d,_0x3e75c2)=>{const _0x399790=Array['from'](_0x3e75c2)['map'](_0x2624ce=>_0x2624ce['innerView'])['find'](_0x59428f=>_0x24fe36['_viewToController']['has'](_0x59428f));if(!_0x399790)return void(_0xe482c9['activeMarker']=null);const _0x2e6ae8=_0x24fe36['_viewToController']['get'](_0x399790)['model']['id'],_0x4074bf='comment:'+_0x2e6ae8;_0x2e6ae8&&_0xe482c9['hasMarkerForId'](_0x2e6ae8)?_0xe482c9['activeMarker']=_0x4074bf:_0xe482c9['activeMarker']&&(_0xe482c9['activeMarker']=null);}),this['listenTo'](_0x24fe36,'removeCommentThread',(_0xa1eb69,{threadId:_0x55b65c,isFromAdapter:_0x591c59})=>{!_0x591c59&&_0x548339['ui']['focusTracker']['isFocused']&&_0xe482c9['hasMarkerForId'](_0x55b65c)&&_0x548339['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x24fe36,'addComment',(_0x36264e,{threadId:_0x290d58,isFromAdapter:_0xe271fd})=>{if(_0xe271fd||!_0xe482c9['hasMarkerForId'](_0x290d58)||!_0x24fe36['hasCommentThread'](_0x290d58))return;0x1===_0x24fe36['getCommentThread'](_0x290d58)['length']&&(_0x548339['editing']['view']['focus'](),_0x36264e['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1e05b9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44de2b;for(const _0x490371 in _0x1e05b9){const _0x3eecfa=_0x490371,_0x4c43c3=_0x1e05b9[_0x3eecfa];if('commentsLicenseKeyValid'==_0x4c43c3||'commentsLicenseKeyInvalid'==_0x4c43c3||'commentsLicenseKeyExpired'==_0x4c43c3||'commentsLicenseKeyDomainLimit'==_0x4c43c3||'commentsLicenseKeyNotAllowed'==_0x4c43c3||'commentsLicenseKeyEvaluationLimit'==_0x4c43c3||'commentsLicenseKeyTrialLimit'==_0x4c43c3||'commentsLicenseKeyUsageLimit'==_0x4c43c3){delete _0x1e05b9[_0x3eecfa],_0x44de2b=_0x4c43c3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x44de2b&&_0x1e05b9['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x44de2b&&_0x1e05b9['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x44de2b&&_0x1e05b9['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x44de2b&&_0x1e05b9['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x44de2b&&_0x1e05b9['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x44de2b&&_0x1e05b9['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x44de2b&&_0x1e05b9['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x40217b){const _0xd48012=this['editor'],_0x44e0c1=new _0x40217b(_0xd48012['locale']),_0x131931=_0xd48012['commands']['get']('addCommentThread');return _0x44e0c1['set']({'label':S(_0xd48012['locale'],'Comment'),'icon':xt}),_0x44e0c1['bind']('isEnabled')['to'](_0x131931),this['listenTo'](_0x44e0c1,'execute',()=>{_0xd48012['editing']['view']['focus'](),_0x131931['execute']();}),_0x44e0c1;}}class s extends _0x42c114{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x51b0ad){super(_0x51b0ad),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x2fb5c2,_0x5cec9f,_0x279daf)=>{_0x279daf?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x2e5499,_0x22b1d3]of this['editor']['commands'])_0x22b1d3['affectsData']&&'addCommentThread'!==_0x2e5499&&_0x22b1d3['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 _0x5be9cd=this['editor']['editing']['view']['document'];this['listenTo'](_0x5be9cd,'cut',_0x433137=>_0x433137['stop'](),{'priority':'highest'}),this['listenTo'](_0x5be9cd,'clipboardInput',_0x59da05=>_0x59da05['stop'](),{'priority':'highest'}),this['listenTo'](_0x5be9cd,'delete',_0x48560b=>_0x48560b['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x33047b,_0x158557]of this['editor']['commands'])_0x158557['affectsData']&&'addCommentThread'!==_0x33047b&&_0x158557['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 _0x2cbc05{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x391a87){super(_0x391a87),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x2a8e3b=this['context']['plugins']['get'](N);this['listenTo'](_0x2a8e3b,'_activateAnnotation',(_0x2bfafe,_0x508e6d)=>{for(const _0x38300f of this['activeUIs']){const _0x123f1c=this['_uis']['get'](_0x38300f);(0x0,this['_uisData']['get'](_0x38300f)['filter'])(_0x508e6d)&&_0x123f1c['setActiveAnnotation'](_0x508e6d);}}),this['listenTo'](_0x2a8e3b,'_deactivateAllAnnotations',()=>{for(const _0x2769e6 of this['activeUIs']){this['_uis']['get'](_0x2769e6)['setActiveAnnotation'](null);}}),this['listenTo'](_0x2a8e3b['_visibleAnnotations'],'add',(_0x4df1df,_0x5a40b4)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5a40b4);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4f5e05){return this['activeUIs']['has'](_0x4f5e05);}['activate'](_0xe994c3,_0x24aabe=()=>!0x0){const _0x280e8a=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0xe994c3))throw new _0x521d6f('annotationsuis-missing-ui',this,{'uiName':_0xe994c3});this['isActive'](_0xe994c3)&&this['deactivate'](_0xe994c3),this['activeUIs']['add'](_0xe994c3);const _0xbdc486=new x();!function({source:_0x41d21b,target:_0x13a277,filter:_0x199e8d}){for(const _0x1f1fff of _0x41d21b)_0x199e8d(_0x1f1fff)&&_0x13a277['add'](_0x1f1fff);_0x13a277['listenTo'](_0x41d21b,'add',(_0x2223cc,_0x130062)=>{_0x199e8d(_0x130062)&&_0x13a277['add'](_0x130062);}),_0x13a277['listenTo'](_0x41d21b,'remove',(_0x21fb71,_0x363b88)=>{_0x13a277['has'](_0x363b88)&&_0x13a277['remove'](_0x363b88);});}({'source':_0x280e8a['_visibleAnnotations'],'target':_0xbdc486,'filter':_0x24aabe}),this['_uisData']['set'](_0xe994c3,{'collection':_0xbdc486,'filter':_0x24aabe});const _0x46a957=this['_uis']['get'](_0xe994c3);_0x46a957['attach'](_0xbdc486),this['listenTo'](_0x46a957,'change:activeAnnotation',(_0x1d5ab1,_0x313ff5,_0x20c46b,_0x1dc90a)=>{_0x1dc90a&&_0x280e8a['_removeActiveAnnotation'](_0x1dc90a),_0x20c46b&&_0x280e8a['_addActiveAnnotation'](_0x20c46b);});}['deactivate'](_0x256853){if(this['activeUIs']['delete'](_0x256853),!this['_uis']['has'](_0x256853))throw new _0x521d6f('annotationsuis-missing-ui',this,{'uiName':_0x256853});const _0x470e90=this['_uis']['get'](_0x256853);_0x470e90['detach'](),this['stopListening'](_0x470e90),this['_uisData']['get'](_0x256853)['collection']['destroy'](),this['_uisData']['delete'](_0x256853);}['switchTo'](_0xd22b5a){if(!this['_uis']['has'](_0xd22b5a))throw new _0x521d6f('annotationsuis-missing-ui',this,{'uiName':_0xd22b5a});const _0x55a23b=this['context']['plugins']['get'](N),_0xccbfd4=Array['from'](_0x55a23b['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0xd22b5a);const _0x2529c7=this['_uis']['get'](_0xd22b5a);_0x2529c7['setActiveAnnotation'](_0xccbfd4),_0x2529c7['_setSelectedAnnotations']&&_0xccbfd4&&_0x2529c7['_setSelectedAnnotations']([_0xccbfd4]);}['deactivateAll'](){for(const _0x50eb6a of this['activeUIs'])this['deactivate'](_0x50eb6a);}['register'](_0xab61d5,_0x26bb6f){if(this['_uis']['has'](_0xab61d5))throw new _0x521d6f('annotationsuis-register-already-registered');if('function'!=typeof _0x26bb6f['attach']||'function'!=typeof _0x26bb6f['detach']||'function'!=typeof _0x26bb6f['setActiveAnnotation'])throw new _0x521d6f('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0xab61d5,_0x26bb6f);}['refilterAnnotations'](){const _0x1271d3=this['context']['plugins']['get'](N)['collection'],_0x217bad=new Map(),_0x2e766f=Array['from'](this['activeUIs']);for(const _0x3af27e of this['activeUIs']){const _0xf8c3e5=this['_uisData']['get'](_0x3af27e)['collection'];for(const _0x59e2c7 of _0xf8c3e5)_0x217bad['set'](_0x59e2c7,_0x3af27e);}for(const _0x339ba1 of _0x1271d3){const _0x5e8bae=_0x217bad['get'](_0x339ba1);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x339ba1);const _0x2111a8=_0x2e766f['find'](_0x937286=>this['_uisData']['get'](_0x937286)['filter'](_0x339ba1));_0x5e8bae!==_0x2111a8&&(_0x5e8bae&&this['_uisData']['get'](_0x5e8bae)['collection']['remove'](_0x339ba1),_0x2111a8&&this['_uisData']['get'](_0x2111a8)['collection']['add'](_0x339ba1));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x444340){const _0xab1568=[];for(const _0x3ea6eb of this['activeUIs']){(0x0,this['_uisData']['get'](_0x3ea6eb)['filter'])(_0x444340)&&_0xab1568['push'](_0x3ea6eb);}if(_0xab1568['length']>0x1)throw new _0x521d6f('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0xab1568,'annotationType':_0x444340['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x2d0de2){super(_0x2d0de2);const _0x1935e0=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 _0x3be5c0(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x1935e0['to']('class')],'style':{'minHeight':_0x1935e0['to']('minHeight',_0x5894b1=>'number'==typeof _0x5894b1?he(_0x5894b1+0xa):null)},'dir':_0x2d0de2['uiLanguageDirection'],'role':'application','aria-label':S(_0x2d0de2,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x2d0de2,'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',_0x125134=>{this['_updateItemPositionInFocusables'](_0x125134['source']);}),this['list']['forEach'](_0x4e8dae=>{this['focusTracker']['add'](_0x4e8dae['element']),this['_updateItemPositionInFocusables'](_0x4e8dae);}),this['list']['on']('change',(_0x5278a6,_0x274433)=>{for(const _0x38c9ed of _0x274433['removed'])this['focusTracker']['remove'](_0x38c9ed['element']),this['focusables']['remove'](_0x38c9ed);for(const _0x3180b4 of _0x274433['added'])this['focusTracker']['add'](_0x3180b4['element']),this['_updateItemPositionInFocusables'](_0x3180b4);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x3eed70){const _0x5e0488=this['focusables']['getIndex'](_0x3eed70);let _0x3d25c1,_0x3b0585;for(const _0x2b3220 of this['focusables'])if(_0x3eed70['top']<_0x2b3220['top']){_0x3d25c1=_0x2b3220;break;}if(_0x3b0585=_0x3d25c1?this['focusables']['getIndex'](_0x3d25c1):this['focusables']['length'],-0x1!==_0x5e0488){if(_0x5e0488===_0x3b0585-0x1)return;this['focusables']['remove'](_0x3eed70),_0x3b0585=_0x3d25c1?this['focusables']['getIndex'](_0x3d25c1):this['focusables']['length'];}this['focusables']['add'](_0x3eed70,_0x3b0585);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x20cac2){super(_0x20cac2),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x14ffba,_0x48ee16)=>_0x14ffba+_0x48ee16),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x57d0f8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x57d0f8['to']('isAnimationDisabled',_0x9328d6=>_0x9328d6?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x57d0f8['to']('top',_0x11834f=>qt(_0x11834f))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x34e199=this['element']['clientHeight'];_0x34e199&&(this['height']=_0x34e199);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x2cbc05{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f09a1){super(_0x2f09a1),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 _0x50ad5e=this['context']['config']['get']('sidebar.container');_0x50ad5e&&this['setContainer'](_0x50ad5e);}['setContainer'](_0x44e839){if(!y(_0x44e839))throw new _0x521d6f('sidebar-setcontainer-invalid-element');this['container']=_0x44e839;}['_attachToContainer']({viewClass:_0x3ab03c='',spaceBetweenItems:_0x5dd5e0=0x19}={}){if(!y(this['container']))throw new _0x521d6f('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3ab03c,this['_spaceBetweenItems']=_0x5dd5e0;}['rearrange']({removedAnnotation:_0x24d70f,previousAnnotation:_0x30f899,nextAnnotation:_0x54bbac}){const _0x3573a7=this['getSidebarItemView'](_0x24d70f);this['view']['list']['remove'](_0x3573a7),this['_destroySidebarItemView'](_0x24d70f),_0x30f899&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x30f899)),_0x54bbac&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x54bbac)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x155542,activatedAnnotation:_0x4e9b67,disableAnimationOnActivatedAnnotation:_0x15a98e}){if(this['_activeAnnotation']=_0x4e9b67,_0x155542){_0x155542['isActive']=!0x1;const _0x1ec185=this['getSidebarItemView'](_0x155542);_0x1ec185&&_0x15a98e&&(_0x1ec185['isAnimationDisabled']=!0x1);}if(_0x4e9b67){const _0x5f29d2=this['getSidebarItemView'](_0x4e9b67);_0x5f29d2&&(_0x4e9b67['isActive']=!0x0,_0x15a98e&&(_0x5f29d2['isAnimationDisabled']=!0x0,_0x5f29d2['top']+=0x1),this['_alignToTargetRect'](_0x5f29d2));}}['_detachFromContainer'](_0x14981a){if(this['view']['element']['remove'](),_0x14981a){for(const _0x56ced2 of _0x14981a)this['_destroySidebarItemView'](_0x56ced2);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x4ca33b,_0x207985){_0x207985||(_0x207985=_0x4ca33b['view']);const _0xac9029=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0xac9029,_0x4ca33b),this['_annotationToSidebarItemView']['set'](_0x4ca33b,_0xac9029),_0xac9029['content']['add'](_0x207985),this['listenTo'](_0x4ca33b['view'],'change:targetRect',(_0x5f2ed4,_0x53040b,_0x6c6d40)=>{const _0xb7d8a8=this['_getTargetTop'](_0x4ca33b,_0x6c6d40);_0xac9029['_targetTop']!=_0xb7d8a8&&(_0xac9029['_targetTop']=_0xb7d8a8,this['_setItemTop'](_0xac9029,_0xb7d8a8));}),this['listenTo'](_0xac9029,'change:top',()=>{this['_recalculate'](_0xac9029,'top');}),this['listenTo'](_0xac9029,'change:bottom',()=>{this['_recalculate'](_0xac9029,'bottom');}),this['_alignToTargetRect'](_0xac9029);const _0x51b610=this['_getItemBefore'](_0xac9029);if(_0x51b610)this['_alignAfterItem'](_0x51b610,_0xac9029)||this['_alignToTargetRect'](_0xac9029);else this['_alignToTargetRect'](_0xac9029);return this['_updateLastItem'](),this['view']['list']['add'](_0xac9029),_0xac9029;}['_alignForTopChange'](_0x204a16){if(!_0x204a16['content']['length'])return;const _0x13250a=this['_getItemBefore'](_0x204a16);if(!_0x13250a)return;const _0x505cc3=this['_sidebarItemViewToAnnotation']['get'](_0x13250a),_0x7de68d=this['_activeAnnotation'];_0x7de68d&&_0x7de68d===_0x505cc3?this['_alignAfterItem'](_0x13250a,_0x204a16):this['_alignBeforeItem'](_0x204a16,_0x13250a);}['_alignForBottomChange'](_0x43ff7f){if(!_0x43ff7f['content']['length'])return;const _0x2b2aa1=this['_getItemAfter'](_0x43ff7f);if(!_0x2b2aa1)return;const _0x175fcd=this['_sidebarItemViewToAnnotation']['get'](_0x2b2aa1),_0x4bb743=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x44756f=this['_activeAnnotation'];_0x44756f&&_0x44756f===_0x175fcd&&_0x4bb743?(this['_alignBeforeItem'](_0x2b2aa1,_0x43ff7f),this['_alignAfterItem'](_0x43ff7f,_0x2b2aa1)):_0x44756f&&_0x44756f===_0x175fcd?this['_alignBeforeItem'](_0x2b2aa1,_0x43ff7f):this['_alignAfterItem'](_0x43ff7f,_0x2b2aa1);}['_recalculate'](_0x18608e,_0x4e5e0b){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x1053bc,changedProp:_0x4701e4}of this['_recalculateBuffer'])'top'===_0x4701e4?this['_alignForTopChange'](_0x1053bc):this['_alignForBottomChange'](_0x1053bc);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x18608e,'changedProp':_0x4e5e0b});}['getSidebarItemView'](_0x16b66e){return this['_annotationToSidebarItemView']['get'](_0x16b66e);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x33407a){const _0x3e2e5d=this['getSidebarItemView'](_0x33407a);this['stopListening'](_0x3e2e5d),this['stopListening'](_0x33407a['view']),_0x3e2e5d['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x33407a),this['_sidebarItemViewToAnnotation']['delete'](_0x3e2e5d);}['_createSidebarView'](){const _0x4173c0=new V(this['context']['locale']);return _0x4173c0['render'](),this['on']('change:_lastItem',(_0x10d947,_0x5864f1,_0x1b21fb,_0x3d0aa2)=>{_0x3d0aa2&&_0x4173c0['unbind']('minHeight'),_0x1b21fb?_0x4173c0['bind']('minHeight')['to'](_0x1b21fb,'bottom'):_0x4173c0['minHeight']=null;}),_0x4173c0;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x5ece7b){const _0x296141=this['_sidebarItemViewToAnnotation']['get'](_0x5ece7b),_0x13aa0c=_0x296141&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x296141)-0x1);return _0x13aa0c&&this['getSidebarItemView'](_0x13aa0c)||null;}['_getItemAfter'](_0x384f46){const _0x38c003=this['_sidebarItemViewToAnnotation']['get'](_0x384f46),_0x115122=_0x38c003&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x38c003)+0x1);return _0x115122&&this['getSidebarItemView'](_0x115122)||null;}['_alignBeforeItem'](_0x44314a,_0x5a2225){_0x44314a['updateHeight']();const _0x219ad8=R(_0x5a2225['bottom']+this['_spaceBetweenItems'],_0x44314a['top']);return!!_0x219ad8&&(this['_setItemTop'](_0x5a2225,_0x5a2225['top']-_0x219ad8),!0x0);}['_alignAfterItem'](_0x52d783,_0x48e7d8){_0x52d783['updateHeight']();const _0x4622c2=R(_0x52d783['bottom']+this['_spaceBetweenItems'],_0x48e7d8['top']);return!!_0x4622c2&&(this['_setItemTop'](_0x48e7d8,_0x48e7d8['top']+_0x4622c2,!0x1),!0x0);}['_alignToTargetRect'](_0x52a2dc){const _0x5460b0=this['_sidebarItemViewToAnnotation']['get'](_0x52a2dc);if(!_0x5460b0||!_0x5460b0['target']||!_0x5460b0['targetRect'])return;const _0x21a201=this['_getTargetTop'](_0x5460b0,_0x5460b0['targetRect']);this['_setItemTop'](_0x52a2dc,_0x21a201);}['_getTargetTop'](_0x2e8d0a,_0x5c92ee){if(null===_0x5c92ee)return 0x0;if(_0x2e8d0a['target']instanceof _0xcfd41d)return _0x5c92ee['top'];{const _0x3f9998=new _0xcfd41d(this['view']['element'])['top'];return _0x5c92ee['top']-_0x3f9998;}}['_setItemTop'](_0xedabdc,_0x26fce7,_0x278682=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x278682&&(_0x26fce7=Math['max'](_0x26fce7,this['_getMaxAvailableTop'](_0xedabdc))),_0xedabdc['top']=_0x26fce7;}['_getMaxAvailableTop'](_0x51f11c){let _0x1bf194=this['_getItemBefore'](_0x51f11c),_0x4eaba0=0x0;for(;_0x1bf194;)_0x1bf194['updateHeight'](),_0x4eaba0+=this['_spaceBetweenItems']+_0x1bf194['height'],_0x1bf194=this['_getItemBefore'](_0x1bf194);return _0x4eaba0;}}function R(_0x3d529d,_0x12e25b){return Math['max'](_0x3d529d-_0x12e25b,0x0);}function y(_0x5b831a){return null!==_0x5b831a&&'object'==typeof _0x5b831a&&0x1===_0x5b831a['nodeType'];}class e extends _0x2cbc05{['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(_0x55e2b2){super(_0x55e2b2),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x4d5ac6(),this['_refreshPositioningDebounced']=_0x1cfc5d(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x22e60a=this['context']['plugins']['get'](M),_0x291d7f=this['context']['plugins']['get'](z);_0x22e60a['register']('wideSidebar',this),_0x291d7f['container']&&_0x22e60a['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3077d1){if(_0x3077d1===this['activeAnnotation'])return;const _0x4256ba=this['context']['plugins']['get'](z);_0x4256ba['_activeAnnotation']=_0x3077d1;const _0x5edf1a=this['activeAnnotation'];_0x4256ba['refresh']({'blurredAnnotation':_0x5edf1a,'activatedAnnotation':_0x3077d1}),this['activeAnnotation']=_0x3077d1;}['attach'](_0x19bdc1){this['annotations']=_0x19bdc1;const _0x9834eb=this['context']['plugins']['get'](z);if(_0x9834eb['_annotations']=_0x19bdc1,this['isAttached'])throw new _0x521d6f('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x9834eb,'set:container',()=>{this['detach'](),this['listenTo'](_0x9834eb,'change:container',_0x91ba2c=>{_0x91ba2c['off'](),this['attach'](_0x19bdc1);});}),_0x9834eb['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x19d4f7=_0x43572=>{_0x43572['updateTargetRect'](),_0x9834eb['addAnnotation'](_0x43572);};for(const _0x32b4de of _0x19bdc1)_0x19d4f7(_0x32b4de);this['listenTo'](_0x19bdc1,'add',(_0x1a7841,_0x3f962b)=>{_0x19d4f7(_0x3f962b);}),this['listenTo'](_0x19bdc1,'remove',(_0x533efb,_0x594c02,_0x1fea86)=>{_0x9834eb['rearrange']({'removedAnnotation':_0x594c02,'previousAnnotation':_0x19bdc1['get'](_0x1fea86-0x1),'nextAnnotation':_0x19bdc1['get'](_0x1fea86+0x1)}),_0x594c02===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x19bdc1,'focus',(_0x958fff,_0x3871e3)=>{this['setActiveAnnotation'](_0x3871e3);}),this['listenTo'](_0x19bdc1,'blur',()=>{this['setActiveAnnotation'](null);});const _0x181fc9=this['context']instanceof _0x391be8?this['context']['editors']:new _0x4d5ac6([this['context']]);for(const _0x532320 of _0x181fc9)this['_integrateWithEditorAnnotations'](_0x532320);this['listenTo'](_0x181fc9,'add',(_0x2d70c6,_0x3c78d1)=>{this['listenTo'](_0x3c78d1,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x3c78d1);});}),this['listenTo'](_0x181fc9,'remove',(_0x52c49e,_0x36dc4c)=>{_0x36dc4c['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x36dc4c['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x521d6f('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x4e1ddb=this['context']['plugins']['get'](z);_0x4e1ddb['_detachFromContainer'](this['annotations']),this['stopListening'](_0x4e1ddb),this['stopListening'](this['annotations']),this['context']instanceof _0x391be8&&this['stopListening'](this['context']['editors']);for(const _0xa6e9e6 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0xa6e9e6);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x1129d1){if(!_0x1129d1['plugins']['has']('EditorAnnotations'))return;const _0x32aa77=_0x1129d1['plugins']['get']('EditorAnnotations'),_0x3023db=()=>{const _0x209ed2=_0x32aa77['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x209ed2[0x0]||null);};this['listenTo'](_0x32aa77,'refresh',_0x3023db),this['listenTo'](_0x32aa77,'blur',(_0x3ded4e,{isAnnotationTracked:_0xf02fea})=>{this['activeAnnotation']&&_0xf02fea(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x32aa77,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x1089e0=>{_0x32aa77['hasDomSelection']()&&(_0x3023db(),_0x1089e0['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x32aa77);}['_destroyEditorAnnotationsIntegration'](_0x35fb43){this['stopListening'](_0x35fb43),this['_editorAnnotations']['remove'](_0x35fb43);}}class D extends _0x1ff815{['counterView'];constructor(_0x2ae4c6){super(_0x2ae4c6);const _0xf4d914=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x5114b4,_0x2646cf)=>_0x5114b4?'...':_0x2646cf['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',_0xf4d914['to']('annotationType',_0x21ed5b=>'ck-annotation-counter__badge--'+_0x21ed5b),_0xf4d914['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0xf4d914['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x2cbc05{['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(_0xf25867){super(_0xf25867),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x543313),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x4d5ac6(),this['_refreshPositioningDebounced']=_0x1cfc5d(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x301351(this['context']['locale']),this['balloonPanelView']=new _0x3553bd(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x539f8b){this['annotations']=_0x539f8b;const _0x1e4b06=this['context']['plugins']['get'](z),_0x32b2c1=this['balloonPanelView'];if(_0x1e4b06['_annotations']=_0x539f8b,this['isAttached'])throw new _0x521d6f('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x1e4b06,'set:container',()=>{this['detach'](),this['listenTo'](_0x1e4b06,'change:container',_0x10dd26=>{_0x10dd26['off'](),this['attach'](_0x539f8b);});}),_0x1e4b06['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x521181=_0x3bf48e=>{const _0x244ce3=new D(this['context']['locale']);_0x1e4b06['addAnnotation'](_0x3bf48e,_0x244ce3),this['_annotationToNarrowView']['set'](_0x3bf48e,_0x244ce3),_0x244ce3['bind']('isDirty','annotationType','number')['to'](_0x3bf48e['view'],'isDirty','type','length'),_0x244ce3['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x32b2c1['content']['first']!==_0x3bf48e['view']?(this['_showBalloon'](_0x3bf48e),_0x3bf48e['view']['element']['focus'](),this['setActiveAnnotation'](_0x3bf48e)):this['setActiveAnnotation'](null);});};for(const _0x47a423 of _0x539f8b)_0x521181(_0x47a423);this['listenTo'](_0x539f8b,'add',(_0x42688a,_0x201842)=>{_0x521181(_0x201842);}),this['listenTo'](_0x539f8b,'remove',(_0x255559,_0xce6033,_0x1f6271)=>{this['_annotationToNarrowView']['get'](_0xce6033)['destroy'](),this['_annotationToNarrowView']['delete'](_0xce6033),_0x1e4b06['rearrange']({'removedAnnotation':_0xce6033,'previousAnnotation':_0x539f8b['get'](_0x1f6271-0x1),'nextAnnotation':_0x539f8b['get'](_0x1f6271+0x1)}),_0xce6033===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x539f8b,'focus',(_0x40ef72,_0x22cc1f)=>{this['setActiveAnnotation'](_0x22cc1f);}),this['listenTo'](_0x539f8b,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x3e5166,_0x49be9c)=>{_0x49be9c['keyCode']===_0x5b085d['esc']&&_0x32b2c1['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x32b2c1['content']['first']),this['_hideBalloon'](),_0x49be9c['stopPropagation'](),_0x49be9c['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x379e00,_0x408779)=>{const _0x30ca75=_0x408779['target'];_0x32b2c1['isVisible']&&_0x32b2c1['element']['contains'](_0x30ca75)||_0x1e4b06['view']['element']['contains'](_0x30ca75)||_0x379e00['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x57ea32=>_0x57ea32['contains'](_0x30ca75))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x363f05=this['context']instanceof _0x391be8?this['context']['editors']:new _0x4d5ac6([this['context']]);for(const _0x29168e of _0x363f05)this['_integrateWithEditorAnnotations'](_0x29168e);this['listenTo'](_0x363f05,'add',(_0x2a4006,_0xf6a440)=>{this['listenTo'](_0xf6a440,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xf6a440);});}),this['listenTo'](_0x363f05,'remove',(_0x380d44,_0x292843)=>{_0x292843['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x292843['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x2cd1e5){if(_0x2cd1e5===this['activeAnnotation'])return;const _0x18c45f=this['context']['plugins']['get'](z);if(_0x18c45f['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2cd1e5,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2cd1e5)_0x18c45f['getSidebarItemView'](_0x2cd1e5)?this['_showBalloon'](_0x2cd1e5):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x2cd1e5;}['detach'](){if(!this['isAttached'])throw new _0x521d6f('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x66ba2e=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x1cd3d2=>_0x1cd3d2['destroy']()),this['_annotationToNarrowView']['clear'](),_0x66ba2e['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x391be8&&this['stopListening'](this['context']['editors']);for(const _0x306cee of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x306cee);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'](_0x3792b9){if(!_0x3792b9['plugins']['has']('EditorAnnotations'))return;const _0x1855f7=_0x3792b9['plugins']['get']('EditorAnnotations'),_0x30c7a3=this['context']['plugins']['get'](z),_0x237e66=this['annotations'],_0x537b33=this['balloonPanelView'],_0x28f882=()=>{const _0x532b47=_0x1855f7['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x532b47),this['setActiveAnnotation'](_0x532b47[0x0]||null);};this['listenTo'](_0x1855f7,'refresh',_0x28f882),this['listenTo'](_0x1855f7,'blur',(_0x19d7f0,{isAnnotationTracked:_0x3fb08f})=>{this['activeAnnotation']&&_0x3fb08f(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1855f7,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x237e66,'blur',_0x10bd49=>{_0x1855f7['hasDomSelection']()&&_0x10bd49['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x356061,_0x726f02)=>{const _0x4b3798=_0x726f02['target'];_0x537b33['isVisible']&&_0x537b33['element']['contains'](_0x4b3798)||_0x30c7a3['view']['element']['contains'](_0x4b3798)||this['activeAnnotation']&&_0x1855f7['hasDomSelection']()&&(_0x28f882(),_0x356061['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1855f7);}['_destroyEditorAnnotationsIntegration'](_0x402a81){_0x402a81&&(this['stopListening'](_0x402a81),this['_editorAnnotations']['remove'](_0x402a81));}['_setSelectedAnnotations'](_0x39aaa7){for(const _0x1c0753 of this['_selectedAnnotations'])_0x39aaa7['includes'](_0x1c0753)||this['_manuallyClosedAnnotationViews']['delete'](_0x1c0753['view']);this['_selectedAnnotations']=_0x39aaa7;}['_refreshPositioning'](){const _0x448035=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x448035['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x4478e3){if(this['_manuallyClosedAnnotationViews']['has'](_0x4478e3['view']))return;const _0x2e412b=this['balloonPanelView']['content']['first'];_0x2e412b!==_0x4478e3['view']?(_0x2e412b&&this['_detachListeners'](_0x2e412b),this['_attachListeners'](_0x4478e3['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x4478e3['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x35494f=this['balloonPanelView']['content']['first'],_0x422ff7=_0x35494f&&this['annotations']['getByView'](_0x35494f);if(!_0x422ff7||!this['_annotationToNarrowView']['has'](_0x422ff7))return;const _0x506574=this['_annotationToNarrowView']['get'](_0x422ff7)['element'],_0x1e030b=(function(){const _0x4522c7=_0x3553bd['defaultPositions'];return[_0x4522c7['southArrowNorthEast'],_0x4522c7['northArrowSouthEast'],_0x4522c7['southArrowNorth'],_0x4522c7['northArrowSouth'],_0x4522c7['southArrowNorthWest'],_0x4522c7['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x506574,'positions':_0x1e030b});}['_hideBalloon'](){const _0x5204b9=this['balloonPanelView'],_0x448586=_0x5204b9['content']['first'];_0x448586&&(this['_detachListeners'](_0x448586),_0x5204b9['unpin'](),_0x5204b9['content']['clear']());}['_attachListeners'](_0x523534){this['listenTo'](_0x523534,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x523534,'Esc',(_0x4376e8,_0x165ddf)=>{this['_manuallyClosedAnnotationViews']['add'](_0x523534),this['_hideBalloon'](),_0x165ddf();});}['_detachListeners'](_0x467e16){this['stopListening'](_0x467e16);}}class c extends _0x42c114{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x2304cc,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14ca0f){super(_0x14ca0f),_0x14ca0f['editing']['view']['addObserver'](_0x4c8c63),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x14ca0f['plugins']['get'](_0x2304cc),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x4606d9=this['editor']['plugins']['get'](M);_0x4606d9['context']===this['editor']&&(_0x4606d9['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x14fdbd,_0x2d8271)=>{const _0x585ff7=this['_balloon'];if(this['isAttached']&&_0x585ff7['visibleView']){const _0x47272d=this['annotations']['getByView'](_0x585ff7['visibleView']);_0x47272d&&this['_closeAnnotation'](_0x47272d),_0x2d8271();}}));}['afterInit'](){const _0x4378a8=this['editor']['plugins']['get'](M);_0x4378a8['context']===this['editor']&&(_0x4378a8['hasActive']()||_0x4378a8['switchTo']('inline'));}['setActiveAnnotation'](_0x21ba80){_0x21ba80!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x21ba80&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x21ba80)&&this['_addAnnotationToBalloon'](_0x21ba80,!0x0),_0x21ba80['isActive']=!0x0),_0x21ba80||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x21ba80);}['attach'](_0x2b10be){this['annotations']=_0x2b10be;const _0x153a1e=this['editor']['plugins']['get'](M),_0x199370=this['_balloon'];if(this['isAttached'])throw new _0x521d6f('inlineannotations-attach-already-attached',this);if(_0x153a1e['context']!==this['editor'])throw new _0x521d6f('inlineannotations-not-allowed-with-context',this);const _0x34c251=this['editor']['plugins']['get'](P);this['listenTo'](_0x34c251,'refresh',()=>{const _0x6af613=_0x34c251['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x16ccaf,_0x20df79;!this['_forceRefresh']&&(_0x16ccaf=_0x6af613,_0x20df79=this['_selectedAnnotations'],_0x16ccaf['length']===_0x20df79['length']&&_0x16ccaf['every'](_0x29c073=>_0x20df79['includes'](_0x29c073)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x6af613),this['setActiveAnnotation'](_0x6af613[0x0]||null));}),this['listenTo'](_0x34c251,'blur',(_0x252c64,{isAnnotationTracked:_0x9095cc})=>{this['activeAnnotation']&&_0x9095cc(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x28a86b,_0x3eec9d,_0x3dbc61)=>{_0x3dbc61||this['setActiveAnnotation'](null);}),this['listenTo'](_0x2b10be,'remove',(_0x3a5150,_0x5f2592)=>{this['_removeAnnotationFromBalloon'](_0x5f2592),_0x5f2592===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x199370,'change:visibleView',(_0x515446,_0x2cf7fe,_0x4d6974,_0x552553)=>{_0x552553&&this['stopListening'](_0x552553);const _0xb4d20=_0x2b10be['getByView'](_0x4d6974);_0x4d6974&&_0xb4d20&&(this['listenTo'](_0x4d6974,'change:height',()=>{_0x199370['updatePosition']();}),this['listenTo'](_0x4d6974,'Esc',()=>{this['_closeAnnotation'](_0xb4d20),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0xb4d20&&this['setActiveAnnotation'](_0xb4d20));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x199370['visibleView']&&(_0x2b10be['getByView'](_0x199370['visibleView'])&&_0x199370['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 _0x521d6f('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x3a7ca4 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x3a7ca4);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x3d73e3){for(const _0x1ce911 of this['_selectedAnnotations'])_0x3d73e3['includes'](_0x1ce911)||this['_manuallyClosed']['delete'](_0x1ce911);for(const _0x4e505e of this['annotations'])_0x3d73e3['includes'](_0x4e505e)||this['_removeAnnotationFromBalloon'](_0x4e505e);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x3422d9 of _0x3d73e3)this['_addAnnotationToBalloon'](_0x3422d9);}this['_selectedAnnotations']=_0x3d73e3;}['_addAnnotationToBalloon'](_0x24f59c,_0x185d2e=!0x1){this['_manuallyClosed']['has'](_0x24f59c)||(this['_addedAnnotations']['has'](_0x24f59c)||this['_balloon']['hasView'](_0x24f59c['view'])||(this['_addedAnnotations']['add'](_0x24f59c),this['_balloon']['add']({'stackId':_0x24f59c['view']['id'],'view':_0x24f59c['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x24f59c)}})),_0x185d2e&&this['_balloon']['showStack'](_0x24f59c['view']['id']));}['_getBalloonTargetForAnnotation'](_0x375f88){const _0x2fa539=_0x375f88['target'],_0x240f33=this['editor']['editing']['view'],_0xbb6edc=_0x240f33['document']['selection']['getFirstRange'](),_0x50270c=_0x240f33['domConverter']['viewRangeToDom'](_0xbb6edc);if(_0x50270c['collapse'](!0x0),_0x2fa539){if(_0x2fa539 instanceof _0xcfd41d)return _0x2fa539;let _0x292b90=[];for(const _0x560e26 of _0x2fa539)_0x292b90['push'](...(_0x5b20b9=_0x560e26['getClientRects'](),Array['from'](_0x5b20b9)['map'](DOMRect['fromRect'])));_0x292b90=function(_0x2436fe){const _0x25186c=[];let _0x52fb82=_0x2436fe[0x0];for(let _0x15471b=0x1;_0x15471b<_0x2436fe['length'];_0x15471b++)b(_0x52fb82,_0x2436fe[_0x15471b])?_0x52fb82['width']+=_0x2436fe[_0x15471b]['width']:(_0x25186c['push'](_0x52fb82),_0x52fb82=_0x2436fe[_0x15471b]);return _0x25186c['push'](_0x52fb82),_0x25186c;}(_0x292b90);const _0xc08e86=_0x50270c['getBoundingClientRect']();return _0x292b90['find'](_0x570f4d=>_0x570f4d['top']<=_0xc08e86['top']&&_0x570f4d['bottom']>=_0xc08e86['bottom']&&_0x570f4d['left']<=_0xc08e86['left']&&_0x570f4d['right']>=_0xc08e86['right'])||_0x292b90[0x0];}var _0x5b20b9;return _0x375f88['targetRect']||_0x50270c;}['_removeAnnotationFromBalloon'](_0x3fe107){this['_addedAnnotations']['has'](_0x3fe107)&&this['_balloon']['hasView'](_0x3fe107['view'])&&(this['_addedAnnotations']['delete'](_0x3fe107),this['_balloon']['remove'](_0x3fe107['view']));}['_closeAnnotation'](_0x18da55){this['_manuallyClosed']['add'](_0x18da55),this['_removeAnnotationFromBalloon'](_0x18da55);}}function b(_0x2b8082,_0x5983c3){return _0x2b8082['top']===_0x5983c3['top']&&_0x2b8082['bottom']===_0x5983c3['bottom']&&_0x2b8082['right']===_0x5983c3['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(_0x5ddcaf,_0x35e747){super(_0x5ddcaf),this['set']('isEmpty',!_0x35e747['length']),this['focusTracker']=new _0x3be5c0(),this['_annotationViews']=_0x35e747,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x35e747,'focusTracker':this['focusTracker']}),this['listenTo'](_0x35e747,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x35e747,'remove',(_0x53f9ac,_0x2de059)=>{_0x2de059['isActive']&&this['focus'](),_0x35e747['length']||(this['isEmpty']=!0x0);});const _0x1f6e77=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x5ddcaf,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x35e747},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x1f6e77['if']('isEmpty','ck-hidden',_0x3d2cce=>!_0x3d2cce)]},'children':[{'text':S(_0x5ddcaf,'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 _0x342314 of this['_annotationViews'])this['focusTracker']['add'](_0x342314['element']);this['_annotationViews']['on']('change',(_0x24cef0,{added:_0x3ba6c7,removed:_0x517a1d})=>{for(const _0x1aa404 of _0x3ba6c7)this['focusTracker']['add'](_0x1aa404['element']);for(const _0x1a55da of _0x517a1d)this['focusTracker']['remove'](_0x1a55da['element']);});}}class f extends _0x2cbc05{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0xb40a77){super(_0xb40a77),this['archivedThreads']=new _0x4d5ac6();}['init'](){const _0x2bcc80=this['context'],_0x5a0c7a=_0x2bcc80['plugins']['get'](o),_0x42818d=_0x2bcc80['plugins']['get'](N);this['listenTo'](_0x5a0c7a,'addCommentThread',(_0x5d7bd6,{threadId:_0x2e5274})=>{const _0x51e2ee=_0x5a0c7a['getCommentThread'](_0x2e5274);_0x51e2ee['archivedAt']&&this['archivedThreads']['add'](_0x51e2ee,this['_calculatePosition'](_0x51e2ee['archivedAt'])),this['listenTo'](_0x51e2ee,'change:archivedAt',(_0x53fc5b,_0x43d43f,_0x26b85c)=>{_0x26b85c?this['archivedThreads']['has'](_0x51e2ee)||this['archivedThreads']['add'](_0x51e2ee,this['_calculatePosition'](_0x51e2ee['archivedAt'])):this['archivedThreads']['has'](_0x51e2ee)&&this['archivedThreads']['remove'](_0x51e2ee);});}),this['listenTo'](_0x5a0c7a,'removeCommentThread',(_0x124045,{threadId:_0xf135b3})=>{const _0x38199d=_0x5a0c7a['getCommentThread'](_0xf135b3);this['stopListening'](_0x38199d),this['archivedThreads']['has'](_0x38199d)&&this['archivedThreads']['remove'](_0x38199d);},{'priority':'highest'}),this['listenTo'](_0x42818d['collection'],'focus',(_0xb5beee,_0x5d6dac)=>{_0x5d6dac['isVisible']||(_0x5d6dac['isActive']=!0x0,_0x42818d['activate'](_0x5d6dac));});}['_calculatePosition'](_0x52285a){const _0x1e0b95=[...this['archivedThreads']]['findIndex'](_0x1b9d11=>_0x1b9d11['archivedAt']<_0x52285a);return _0x1e0b95>-0x1?_0x1e0b95:this['archivedThreads']['length'];}}class a extends _0x42c114{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x1517e7];}constructor(_0xd8e198){super(_0xd8e198),this['annotationViews']=new _0x1a3f90(),this['_pendingThreads']=[];}['init'](){const _0x224e03=this['editor'],_0x3ba608=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x224e03['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x1ff815,!0x0)),_0x224e03['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x4b97e9=this['_createCommentsArchiveButton'](_0x1108e4);return _0x4b97e9['set']({'role':'menuitemcheckbox'}),_0x4b97e9;});const _0x512a59=_0x224e03['plugins']['get'](f),_0x587f78=_0x224e03['plugins']['get']('Annotations'),_0x9aa3e6=_0x224e03['plugins']['get']('CommentsRepository');_0x512a59['archivedThreads']['forEach'](_0x30409a=>{this['_handleNewThread'](_0x30409a);}),this['listenTo'](_0x512a59['archivedThreads'],'add',(_0xd10a0b,_0x9ec4b1)=>{this['_handleNewThread'](_0x9ec4b1);}),this['listenTo'](_0x587f78['collection'],'add',(_0xe53970,_0x2e34ea)=>{const _0x2f564d=this['_pendingThreads']['find'](_0x5d1584=>{const _0x382441=_0x9aa3e6['_threadToController']['get'](_0x5d1584);return _0x382441&&_0x2e34ea['innerView']===_0x382441['view'];});if(_0x2f564d){const _0x2b9261=this['_calculatePosition'](_0x2f564d['archivedAt']);this['annotationViews']['add'](_0x2e34ea['view'],_0x2b9261),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2f564d),0x1);}}),this['listenTo'](_0x512a59['archivedThreads'],'remove',(_0x507818,_0x430e1a)=>{const _0x28e109=_0x224e03['config']['get']('collaboration.channelId');if(!_0x28e109||_0x430e1a['channelId']===_0x28e109){const _0xf0c166=_0x9aa3e6['_threadToController']['get'](_0x430e1a),_0x390f2a=_0x587f78['getByInnerView'](_0xf0c166['view']);this['annotationViews']['remove'](_0x390f2a['view']),this['stopListening'](_0x390f2a['focusableElements']);}}),this['listenTo'](_0x587f78['collection'],'add',(_0x576941,_0x145a4e)=>{this['listenTo'](_0x145a4e,'escape',_0x3ba608);}),this['listenTo'](_0x587f78['collection'],'remove',(_0x11e739,_0x2820df)=>{this['stopListening'](_0x2820df,'escape',_0x3ba608);});}['_handleNewThread'](_0x6bce3f){const _0x4037ba=this['editor']['plugins']['get']('CommentsRepository'),_0x28f655=this['editor']['plugins']['get']('Annotations'),_0x18c585=this['editor']['config']['get']('collaboration.channelId');if(!_0x18c585||_0x6bce3f['channelId']===_0x18c585){const _0x2d9ff6=_0x4037ba['_threadToController']['get'](_0x6bce3f);if(!_0x2d9ff6)return void this['_pendingThreads']['push'](_0x6bce3f);const _0x272a6a=this['_calculatePosition'](_0x6bce3f['archivedAt']),_0x4e38e7=_0x28f655['getByInnerView'](_0x2d9ff6['view']);_0x4e38e7['isVisible']&&_0x28f655['_visibleAnnotations']['remove'](_0x4e38e7),this['annotationViews']['add'](_0x4e38e7['view'],_0x272a6a);}}['_calculatePosition'](_0xed993c){const _0x3d4a67=this['editor']['config']['get']('collaboration.channelId'),_0x3f6733=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x216b23=>_0x216b23['channelId']===_0x3d4a67)['findIndex'](_0xf15625=>_0xf15625['archivedAt']<_0xed993c);return _0x3f6733<0x0||_0x3f6733>this['annotationViews']['length']?this['annotationViews']['length']:_0x3f6733-0x1;}['_toggleDialog'](){const _0x467391=this['editor'],_0x8aee1f=_0x467391['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x467391['locale'],this['annotationViews'])),'commentsArchive'===_0x8aee1f['id']?_0x8aee1f['hide']():_0x8aee1f['show']({'id':'commentsArchive','title':S(_0x467391['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x3b0fc9['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x423553,_0x43e579=!0x1){const _0x3c51e0=this['editor']['locale'],_0xb843ad=this['editor']['plugins']['get']('Dialog'),_0x40584b=new _0x423553(_0x3c51e0);return _0x40584b['bind']('isEnabled')['to'](this,'isEnabled'),_0x40584b['bind']('isOn')['to'](_0xb843ad,'id',_0x2b9271=>'commentsArchive'===_0x2b9271),_0x40584b['set']({'label':S(_0x3c51e0,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x43e579&&(_0x40584b['tooltip']=!0x0),this['listenTo'](_0x40584b,'execute',()=>this['_toggleDialog']()),_0x40584b;}['_hideDialogOnAnnotationEscape']=_0x57a109=>{const _0x105087=_0x57a109['source'];if(!this['annotationViews']['has'](_0x105087['view']))return;const _0x3a9265=this['editor']['plugins']['get']('Dialog');_0x3a9265['isOpen']&&'commentsArchive'===_0x3a9265['id']&&(_0x3a9265['hide'](),_0x57a109['stop']());};}class p extends _0x42c114{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 _0x1870c6,icons as _0x3e9873,ContextPlugin as _0x3ad1aa,PendingActions as ht,Command as _0x2cb33e,Plugin as _0x3aeecf,Context as _0x3bf87a}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x2b4de1,uid as _0x7cc9c8,KeystrokeHandler as jt,FocusTracker as _0x35c4e6,diff as _0x198a15,Collection as _0x5e9e9a,Rect as _0x3e2117,CKEditorError as _0x2bc58,first as _0x468b9a,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x9a49c,keyCodes as _0xf4221d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x1f157c,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x4ee718,ConfirmMixin as ti,LateFocusButtonView as _0x537dfe,trimHtml as _0x4ffa1f,LateFocusDropdownButtonView as _0x2757a5,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x258438}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x66005e}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x5da28,ViewCollection as _0x4e28be,createDropdown as _0x23761b,ListView as _0x1d60ea,focusChildOnDropdownOpen as _0xe6a1a7,ListItemView as _0x58ad45,MenuBarMenuListItemButtonView as _0x59fd94,BodyCollection as _0x54a996,BalloonPanelView as _0x178867,ContextualBalloon as _0x3d6f46,Dialog as _0x29eee3,DialogViewPosition as _0x1c0ef6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x26b260}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 _0x442a01}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x49a077}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
+ _0x2b4de1(){['model'];['view'];constructor(_0x42558a,_0x2ca564){super(),this['model']=_0x42558a,this['model']['_isAttached']=!0x0,this['view']=_0x2ca564,this['listenTo'](_0x2ca564,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x2ca564,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x2ca564,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x2ca564,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x2ca564,'addComment',(_0x20daa7,_0x26cba1)=>this['addComment'](_0x26cba1)),this['listenTo'](_0x2ca564,'updateComment',(_0x1cad9e,_0x35b3c9,_0x506848)=>this['updateComment'](_0x35b3c9,_0x506848)),this['listenTo'](_0x2ca564,'removeComment',(_0x3e93d7,_0x353523)=>this['removeComment'](_0x353523));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x1bb1aa){this['model']['addComment']({'content':_0x1bb1aa,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x30e547,_0x65dadb){this['model']['getComment'](_0x30e547)['update']({'content':_0x65dadb});}['removeComment'](_0x2a6d52){this['model']['getComment'](_0x2a6d52)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x9f16f4,_0x61e0c8,_0x1866b7){const t=_0x9f16f4['t'];switch(_0x61e0c8){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'},_0x1866b7);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'},_0x1866b7);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'},_0x1866b7);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'},_0x1866b7);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x1866b7);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'},_0x1866b7);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'},_0x1866b7);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'},_0x1866b7);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(_0x273106,_0x4e760f){super(_0x273106);const _0x589120=_0x7cc9c8();this['main']=this['createCollection'](),this['editable']=new $t(_0x273106,_0x4e760f,void 0x0,{'label':()=>S(_0x273106,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x273106['uiLanguageDirection'],'lang':_0x273106['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x589120},'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(_0x4da4b8){super(_0x4da4b8),this['view']=new Xt(_0x4da4b8['locale'],_0x4da4b8['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x12bfdd=this['editor']['editing']['view'],_0x1a3076=this['view']['editable'],_0x3ec471=_0x12bfdd['document']['getRoot']();_0x1a3076['name']=_0x3ec471['rootName'],this['view']['render']();const _0x4e18ee=_0x1a3076['element'];this['setEditableElement'](_0x1a3076['name'],_0x4e18ee),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x12bfdd['attachDomRoot'](_0x4e18ee),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
25
+ _0x2b4de1(_0x1870c6){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Rt)());constructor(_0x230097={}){function _0x531660(_0x17c27d){return _0x17c27d['map'](_0x539982=>String['fromCharCode'](_0x539982))['join']('');}(_0x230097=Object['assign']({},_0x230097))['plugins']||(_0x230097['plugins']=Ut['defaultPlugins']),super(_0x230097),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[_0x531660([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x531660([0x76,0x69,0x65,0x77])][_0x531660([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x531660([0x61,0x75,0x74,0x6f]),this[_0x531660([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x531660([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x531660([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x531660([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x531660([0x6f,0x6b])});}['create'](){const _0x3ce30e=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x3ce30e))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x30ba35=>{const _0x2d2b6d=this['model']['document']['getRoot'](),_0x4091a7=_0x2d2b6d&&_0x2d2b6d['getChild'](_0x2d2b6d['childCount']-0x1);_0x30ba35['setSelection'](_0x4091a7,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x56f2ca=this['editing']['view'],_0x2b619c=_0x56f2ca['document']['getRoot'](),_0x43a068=_0x2b619c['getChild'](0x0);_0x2b619c['childCount']>0x1||!_0x43a068||'p'!=_0x43a068['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x56f2ca,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x43a068['placeholder']=this['placeholder']),St({'view':_0x56f2ca,'element':_0x43a068,'keepOnFocus':!0x0}),this['placeholderElement']=_0x43a068);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x431b9b,_0x241856={}){super(_0x431b9b),this['editor']=null,this['_editorConfig']=_0x241856,this['set']('value',_0x241856['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x431b9b,'Reply...')),this['set']('submitLabel',S(_0x431b9b,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x35c4e6(),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',(_0x12b9fe,_0x508ba5)=>{this['cancelButtonView']['fire']('execute'),_0x508ba5();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4f25e2,_0x2e2a7e)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x2e2a7e());}),this['on']('submit',(_0x328ff2,_0x4f6968)=>{_0x4f6968['length']>0xfde8?(alert(S(_0x431b9b,'TOO_LONG_COMMENT_ALERT',[_0x4f6968['length'],0xfde8])),_0x328ff2['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 _0x23711b=this['editor'];this['element']['insertBefore'](_0x23711b['ui']['element'],this['element']['firstChild']),_0x23711b['model']['document']['on']('change',()=>this['value']=_0x23711b['getData']()),_0x23711b['bind']('placeholder')['to'](this),this['focusables']['add'](_0x23711b['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x147328){-0x1===_0x147328?(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:_0x17100e}=this,_0xebee14=new _0x5da28(_0x17100e);return _0xebee14['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0xebee14['withText']=!0x0,_0xebee14['bind']('label')['to'](this,'submitLabel'),_0xebee14['on']('execute',()=>{this['fire']('submit',this['value']);}),_0xebee14['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x1844b6,_0x415415)=>!_0x415415&&!!_0x1844b6['trim']()),_0xebee14;}['_createCancelButton'](){const {locale:_0x4e372c}=this,_0x1c4d43=new _0x5da28(_0x4e372c);return _0x1c4d43['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x1c4d43['label']=S(_0x4e372c,'Cancel'),_0x1c4d43['withText']=!0x0,_0x1c4d43['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x1c4d43;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x41684d=>{this['focusTracker']['add'](_0x41684d['element']);}),this['focusables']['on']('change',(_0x163791,_0xc7d3e)=>{for(const _0x5d8be0 of Array['from'](_0xc7d3e['added'])['reverse']())this['focusTracker']['add'](_0x5d8be0['element']);});}}class ie extends kt{constructor(_0x57baf2,_0x1a45f2,_0x2d5a2f){super(_0x57baf2),this['commentInputView']=new os(_0x57baf2,_0x2d5a2f),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x4f10f0,_0x507d56)=>_0x4f10f0||!!_0x507d56),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 _0x1f157c(_0x57baf2,_0x1a45f2),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'](_0x2c4849){this['commentInputView']['focus'](_0x2c4849);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x4292c6,_0x2a2af1)=>{const {submitButtonView:_0x5f3e05,cancelButtonView:_0x5b3fc5,editor:_0x1ddf61}=this['commentInputView'];[_0x5f3e05['element'],_0x5b3fc5['element'],_0x1ddf61?_0x1ddf61['editing']['view']['getDomRoot']():null]['filter'](_0x17c817=>_0x17c817)['some'](_0x46ac80=>_0x46ac80['contains'](_0x2a2af1['target']))||(this['focus'](),_0x2a2af1['preventDefault']());});}}class cs extends kt{constructor(_0x18a3f6){super(_0x18a3f6);const _0x3e58ad=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x3e58ad['to']('count',_0x415534=>S(_0x18a3f6,'NUMBER_OF_COMMENTS',_0x415534))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x3b533a,_0x546284,_0x649918){super(_0x3b533a);const _0x320e50=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x546284['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x546284,this['_config']=_0x649918,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x35c4e6(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2aa211=>this['commentViews']['map'](_0x406f34=>_0x406f34['element'])['includes'](_0x2aa211['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x3b533a),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x4dca8c=>_0x4dca8c-this['_config']['maxCommentsWhenCollapsed']);for(const _0x1adfd3 of _0x546284['comments'])this['_handleNewCommentModel'](_0x1adfd3);this['_handleInfoComment'](),this['listenTo'](_0x546284['comments'],'add',(_0x123784,_0x5d3aee)=>{const _0x1ae1cb=this['_calculatePosition'](_0x5d3aee);this['length']++,this['_handleNewCommentModel'](_0x5d3aee,_0x1ae1cb),this['refreshVisibleViews']();}),this['listenTo'](_0x546284['comments'],'remove',(_0x515bc7,_0x4d3f79)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4d3f79),this['refreshVisibleViews']();}),this['listenTo'](_0x546284,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x546284,'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',_0x320e50['if']('length','ck-hidden',_0x5d5361=>!_0x5d5361)],'aria-label':S(_0x3b533a,'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'](_0x33ca65){-0x1===_0x33ca65?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x28299f of this['commentViews'])_0x28299f['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x4e5e46,_0x14eb44){const _0xd68df6=new this['_config']['CommentView'](this['locale'],_0x4e5e46,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0xd68df6['viewUid']=_0x4e5e46['id'],_0xd68df6['delegate']('removeComment')['to'](this),_0xd68df6['delegate']('updateComment')['to'](this),_0xd68df6['delegate']('resolveCommentThread')['to'](this),_0xd68df6['delegate']('editorReady')['to'](this),_0xd68df6['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0xd68df6,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0xd68df6,_0x14eb44);}['_calculatePosition'](_0x57a310){const _0x42383e=this['_model']['_findOptimalIndex'](_0x57a310);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x57a310['authoredAt']?_0x42383e-0x1:_0x42383e:_0x42383e-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x10dd24={'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'],_0x10dd24,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x10dd24));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3ce46d){const _0x4b1cd6=this['commentViews']['remove'](_0x3ce46d['id']);this['stopListening'](_0x4b1cd6),_0x4b1cd6['isEditMode']&&this['_updateHasDirtyComment'](),_0x4b1cd6['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x50cc39=>_0x50cc39['isEditMode']);}['_rearrangeCollapse'](){const _0x5d9606=function(_0x3a05a7){const _0x2bc20d=new _0x5e9e9a();for(const _0x4d754e of _0x3a05a7)_0x2bc20d['add'](_0x4d754e);return _0x2bc20d;}(this['commentViews']),_0x40c919=this['_collapsedCommentsView']['count'];for(let _0xdb8d4a=0x1;_0xdb8d4a<=_0x40c919;_0xdb8d4a++)_0x5d9606['remove'](0x1);for(const _0x5e22c9 of _0x5d9606)_0x5e22c9['collapse']();_0x40c919>0x0&&_0x5d9606['add'](this['_collapsedCommentsView'],0x1),as(_0x198a15(Array['from'](this['visibleViews']),Array['from'](_0x5d9606)),this['visibleViews'],_0x5d9606);}['_rearrangeExpand'](){as(_0x198a15(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x265931 of this['visibleViews'])_0x265931['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x3c517d=>{this['focusTracker']['add'](_0x3c517d['element']),this['keystrokes']['listenTo'](_0x3c517d['element']);}),this['commentViews']['on']('change',(_0x4350a4,_0x23a711)=>{for(const _0x4520f1 of _0x23a711['removed'])this['focusTracker']['remove'](_0x4520f1['element']),this['keystrokes']['stopListening'](_0x4520f1['element']);for(const _0x5489b2 of Array['from'](_0x23a711['added'])['reverse']())this['focusTracker']['add'](_0x5489b2['element']),this['keystrokes']['listenTo'](_0x5489b2['element']);});}}function as(_0x37f07b,_0x25e018,_0x42f801){let _0x369c24=0x0;for(const _0x58084c of _0x37f07b)switch(_0x58084c){case'insert':_0x25e018['add'](_0x42f801['get'](_0x369c24),_0x369c24),_0x369c24++;break;case'delete':_0x25e018['remove'](_0x369c24);break;case'equal':_0x369c24++;}}class ls extends kt{constructor(_0x3ed08b){super(_0x3ed08b);const _0x3230b3=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x3230b3['to']('contextValue',_0x516ba5=>S(_0x3ed08b,'THREAD_CONTEXT_LABEL',_0x516ba5)),'tabindex':-0x1},'children':[{'text':_0x3230b3['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1dae79,_0x3f8ec6){super(_0x1dae79);const _0x6e3ef3=this['bindTemplate'];this['_model']=_0x3f8ec6,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x35c4e6(),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',_0x5003d4=>!!_0x5003d4),this['bind']('contextValue')['to'](this['_model'],'context',_0x4943e8=>_0x4943e8&&_0x4943e8['value']?this['_trimContextValue'](_0x4943e8['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',_0x6e3ef3['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 _0x2a0205=new _0x5da28(this['locale']);return _0x2a0205['label']=S(this['locale'],'Reopen'),_0x2a0205['tooltip']=S(this['locale'],'Reopen'),_0x2a0205['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>',_0x2a0205['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x43d8af=>!_0x43d8af),_0x2a0205['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x476b4a,_0x45c642)=>_0x476b4a&&_0x45c642),_0x2a0205['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x2a0205;}['_trimContextValue'](_0x1dc7de){if(_0x1dc7de['length']<0x96)return _0x1dc7de;const _0x3a4f2c=_0x1dc7de['lastIndexOf']('\x20',0x93);return _0x1dc7de['substring'](0x0,_0x3a4f2c>-0x1?_0x3a4f2c:0x93)+'...';}['_attachContextActions'](){const _0x141896=this['element']['querySelector']('.ck-context'),_0x18f6de=_0x141896['querySelector']('.ck-context__value');this['listenTo'](_0x141896,'mouseenter',()=>{_0x18f6de['offsetWidth']<_0x18f6de['scrollWidth']&&_0x141896['classList']['add']('overlay');}),this['listenTo'](_0x141896,'mouseleave',()=>{_0x141896['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x593cb of this['focusables'])this['focusTracker']['add'](_0x593cb['element']),this['keystrokes']['listenTo'](_0x593cb['element']);}['_createContextView'](){const _0x3a9130=new ls(this['locale']);return _0x3a9130['bind']('contextValue')['to'](this),_0x3a9130;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1ea59b,_0x325097,_0x3127e5,_0x20f459){super(_0x1ea59b),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x325097,this['_localUser']=_0x3127e5,this['_config']=_0x20f459,this['commentThreadHeaderView']=new Zt(_0x1ea59b,_0x325097),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x1ea59b,S(_0x1ea59b,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x1ea59b,_0x325097,Object['assign']({'CommentView':this['_config']['CommentView']},_0x20f459)),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',(_0xd9049b,_0x2958ff)=>_0xd9049b||!!_0x2958ff),this['bind']('isUnlinked')['to'](_0x325097,'unlinkedAt',_0x359c20=>!!_0x359c20),this['bind']('ariaLabel')['to'](this,'length',_0x4f1604=>{const _0xde95bb=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x4f1604,_0xde95bb]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x35c4e6(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x67c2fa=>_0x67c2fa['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x4ee718(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x531abd=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3f5d89=_0x531abd['commentInputView'];return _0x531abd['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x3f5d89,'value',(_0x2fdc4c,_0x9b5ea4,_0x4f1f5d,_0x4d7943,_0x356341)=>!!_0x356341||!!_0x4d7943&&_0x4f1f5d&&!_0x9b5ea4||_0x2fdc4c&&_0x4f1f5d&&!_0x9b5ea4),_0x3f5d89['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x172051,_0x16e59b,_0x25460b)=>{let _0x392ec3;return _0x392ec3=_0x25460b&&_0x16e59b?'Reply\x20to\x20reopen\x20discussion...':_0x172051?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x392ec3);}),_0x3f5d89['bind']('submitLabel')['to'](this,'length',_0x2716bf=>S(this['locale'],_0x2716bf?'Reply':'Comment')),_0x3f5d89['on']('submit',(_0x363889,_0x972b03)=>{this['fire']('addComment',_0x972b03),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x3f5d89['on']('cancel',()=>{this['focus']();}),_0x3f5d89['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x3f5d89['on']('cancel',_0x1a1a56=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x1a1a56['stop']());}),this['on']('change:isActive',(_0x4480b1,_0x391c38,_0x44ea02)=>{_0x44ea02||this['length']||_0x3f5d89['value']||this['fire']('removeCommentThread');}),_0x531abd;}}class vt extends/* #__PURE__ -- @preserve */
27
+ ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x21bfe5,_0x32456f,_0x329407,_0x5dfe5a){super(_0x21bfe5,_0x32456f,_0x329407,_0x5dfe5a),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x21bfe5,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0xa9a278,_0x2d8ce2,_0x4081d0)=>{_0x4081d0||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x2ee7d9,_0x93c421,_0x54718e)=>{_0x54718e&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0xa4a2d2=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0xa4a2d2['if']('isActive','ck-thread--active'),_0xa4a2d2['if']('isUnlinked','ck-thread--unlinked'),_0xa4a2d2['if']('isConfirm','ck-thread--remove-confirmation'),_0xa4a2d2['to']('actionIndicator',_0x16cd37=>_0x16cd37?'ck-thread--'+_0x16cd37:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0xa4a2d2['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 _0xaae763 of this['commentsListView']['commentViews'])_0xaae763['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0xc9fd7}=this,_0x200585=this['commentsListView']['commentViews']['get'](0x0);_0x200585===this['_boundFirstCommentView']||_0x200585['isSystemComment']||(this['_boundFirstCommentView']=_0x200585,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x200585,'actionIndicator',_0x545b00=>'remove'===_0x545b00?'remove':null),_0x200585['placeholder']=S(_0xc9fd7,'Write\x20a\x20comment...'),_0x200585['removeButton']['on']('execute',_0x5e0f91=>{_0x5e0f91['stop'](),this['showConfirm'](S(_0xc9fd7,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x200585['focus']();}),_0x200585['actionBar']['add'](this['resolveButton'],0x0),_0x200585['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x41d046=new _0x537dfe(this['locale']);return _0x41d046['label']=S(this['locale'],'Resolve'),_0x41d046['tooltip']=S(this['locale'],'Resolve'),_0x41d046['icon']=_0x3e9873['check'],_0x41d046['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x41d046['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3d5a5a=>!_0x3d5a5a),_0x41d046['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x29d6f3,_0x3d347e)=>_0x29d6f3&&!_0x3d347e),_0x41d046['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x41d046;}['_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(_0xef8f3b){super(_0xef8f3b),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0xdca80a,_0x1eba4b,_0x4efaa3)=>{this['element']['innerHTML']=_0x4efaa3;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5bc332,_0xfaab54,_0x42c95c){super(_0x5bc332),this['_model']=_0xfaab54,this['_config']=_0x42c95c,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0xfaab54,'content',_0xfaab54,'authoredAt',(_0xda0bf2,_0x1115a3)=>S(_0x5bc332,'COMMENT_ARIA_LABEL',[_0xfaab54['author']['name'],_0x42c95c['formatDateTime'](_0x1115a3),new DOMParser()['parseFromString'](_0xda0bf2,'text/html')['body']['textContent'],_0xfaab54['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x5bc332,S(_0x5bc332,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x4e28be(),this['focusTracker']=new _0x35c4e6(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3ab453=>_0x3ab453['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 _0x50c530=new hs(this['locale']);return _0x50c530['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x337285,_0x3d77c8)=>_0x3d77c8?_0x4ffa1f(_0x337285,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x337285),_0x50c530;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x1e10b2=new os(this['locale'],this['_config']['editorConfig']);return _0x1e10b2['value']=this['_model']['content'],_0x1e10b2['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1e10b2['submitLabel']=S(this['locale'],'Save'),_0x1e10b2['on']('submit',(_0x3a91f5,_0x10fdec)=>{this['fire']('updateComment',this['_model']['id'],_0x10fdec),this['switchToDisplayMode'](),this['focus']();}),_0x1e10b2['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x1e10b2['once']('editorReady',()=>{_0x1e10b2['focus']();}),_0x1e10b2['createEditor'](),_0x1e10b2['delegate']('editorReady')['to'](this),_0x1e10b2['delegate']('editorDestroyed')['to'](this),_0x1e10b2;}['_setupKeyboardNavigation'](){const _0x453e0d=this['element'];this['keystrokes']['listenTo'](_0x453e0d);for(const _0x3e3204 of this['focusables'])this['focusTracker']['add'](_0x3e3204['element']),this['keystrokes']['listenTo'](_0x3e3204['element']);this['focusables']['on']('change',(_0x193393,_0x4b7292)=>{for(const _0x4c0183 of _0x4b7292['removed'])this['focusTracker']['remove'](_0x4c0183['element']),this['keystrokes']['stopListening'](_0x4c0183['element']);for(const _0x470631 of _0x4b7292['added'])this['focusTracker']['add'](_0x470631['element']),this['keystrokes']['listenTo'](_0x470631['element']);}),this['keystrokes']['set']('enter',(_0x533105,_0xa78b43)=>{_0x453e0d===_0x533105['target']&&(this['focusCycler']['focusFirst'](),_0xa78b43());}),this['keystrokes']['set']('esc',(_0x111ab2,_0x3b2749)=>{_0x453e0d!==_0x111ab2['target']&&(this['focus'](),_0x3b2749());});}}class gt extends/* #__PURE__ -- @preserve */
28
+ ti(rs){['actionBar'];['userView'];constructor(_0x41ab09,_0x48602b,_0x2a8039){super(_0x41ab09,_0x48602b,_0x2a8039),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x41ab09,'Reply...')),this['bind']('authoredAt')['to'](_0x48602b),this['bind']('resolvedAt')['to'](_0x48602b),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 _0x1f157c(_0x41ab09,_0x48602b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x48602b,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x511987=this['bindTemplate'],_0x577376=[{'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':_0x511987['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x511987['to']('authoredAt',_0x25c387=>this['_config']['formatDateTime'](_0x25c387))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x511987['if']('isEditMode','ck-comment__actions--hidden'),_0x511987['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']&&_0x577376['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x511987['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x511987['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x511987['if']('isEditMode','ck-comment--edit'),_0x511987['if']('isSystemComment','ck-comment--info'),_0x511987['to']('actionIndicator',_0xee69c=>_0xee69c?'ck-comment--'+_0xee69c:'')],'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':_0x577376}]}]};}['_createEditButton'](){const _0x5dec06=new _0x5da28(this['locale']);return _0x5dec06['label']=S(this['locale'],'Edit'),_0x5dec06['icon']=_0x3e9873['pencil'],_0x5dec06['withText']=!0x0,_0x5dec06['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x5dec06['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2cf704=>!_0x2cf704),_0x5dec06['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x5dec06['on']('execute',()=>this['switchToEditMode']()),_0x5dec06;}['_createRemoveButton'](){const _0x6e3234=new _0x5da28(this['locale']);return _0x6e3234['label']=S(this['locale'],'Remove'),_0x6e3234['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',_0x6e3234['withText']=!0x0,_0x6e3234['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x6e3234['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x188a15=>!_0x188a15),_0x6e3234['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x6e3234['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x6e3234;}['_createDropdown'](){const _0x8a28d7=_0x23761b(this['locale'],_0x2757a5),_0x1151de=_0x8a28d7['panelView']['children'],_0x18b57a=new _0x1d60ea(this['locale']),_0x457afb=_0x8a28d7['bindTemplate'];_0xe6a1a7(_0x8a28d7,()=>this['items']['find'](_0x3efc58=>_0x3efc58['isVisible'])),_0x8a28d7['extendTemplate']({'attributes':{'class':[_0x457afb['if']('isVisible','ck-hidden',_0x1d4548=>!_0x1d4548)]}});const _0x2b705d=(_0x3a614e,_0x4091ad=-0x1)=>{const _0x250a7c=new _0x58ad45(this['locale']);_0x250a7c['children']['add'](_0x3a614e);const _0x180949=_0x4091ad>-0x1?_0x4091ad:_0x18b57a['items']['length'];_0x18b57a['items']['add'](_0x250a7c,_0x180949);const _0x379967=Array['from'](this['items']);_0x8a28d7['unbind']('isEnabled','isVisible'),_0x8a28d7['bind']('isEnabled')['toMany'](_0x379967,'isEnabled',(..._0xa3be6b)=>_0xa3be6b['some'](_0x204642=>_0x204642)),_0x8a28d7['bind']('isVisible')['toMany'](_0x379967,'isVisible',(..._0x28d8e7)=>_0x28d8e7['some'](_0x11dfcb=>_0x11dfcb));};_0x8a28d7['panelPosition']='sw',_0x8a28d7['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x3e9873['threeVerticalDots']});for(const _0x1cae68 of this['items'])_0x2b705d(_0x1cae68);return _0x1151de['add'](_0x18b57a),_0x8a28d7['listenTo'](this['items'],'add',(_0x5a5957,_0x2b5804,_0x14b438)=>{_0x2b705d(_0x2b5804,_0x14b438);}),_0x8a28d7['listenTo'](this['items'],'remove',(_0x2bf61c,_0x3de833,_0xfa65d6)=>{_0x18b57a['items']['remove'](_0xfa65d6);}),_0x8a28d7;}['_attachActions'](_0x1cf867,_0x19bae3){const _0x4a44a3=_0x1cf867&&_0x1cf867['element'];_0x4a44a3&&(this['listenTo'](_0x4a44a3,'mouseenter',()=>this['actionIndicator']=_0x19bae3),this['listenTo'](_0x4a44a3,'focus',()=>this['actionIndicator']=_0x19bae3),this['listenTo'](_0x4a44a3,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x4a44a3,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x59f7ee=super['_createCommentInputView']();return _0x59f7ee['bind']('placeholder')['to'](this),_0x59f7ee;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x54fb01){const _0x491582=Dt(_0x54fb01,0x1e),_0x53b372=new MutationObserver(_0x40849a=>{for(const _0x6cc8e8 of _0x40849a)('attributes'==_0x6cc8e8['type']&&'class'==_0x6cc8e8['attributeName']||'childList'==_0x6cc8e8['type']||'characterData'==_0x6cc8e8['type'])&&_0x491582();});return{'attach'(_0x409f85){_0x53b372['observe'](_0x409f85,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x53b372['disconnect'](),_0x491582['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x2fa9ae,_0xe6c775){super(_0x2fa9ae),this['id']=_0x7cc9c8(),this['focusTracker']=new _0x35c4e6(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0xc3d31b,_0x1edcce)=>this['fire']('Esc',_0x1edcce)),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'](_0xe6c775),this['mainView']=_0xe6c775;const _0x2aa07d=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x2aa07d['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 _0x2884f3=this['element']['clientHeight'];_0x2884f3&&(this['height']=_0x2884f3);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x2b4de1(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x5d0483,target:_0x4eb8af,type:_0x1de271,isVisible:_0x1c947d=!0x0}){super(),this['view']=_0x5d0483,this['view']['element']||this['view']['render'](),this['_type']=_0x1de271,this['_target']=_0x4eb8af,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x5e9e9a([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0xcef4a2,_0x25c430)=>{this['view']['focusTracker']['add'](_0x25c430);}),this['focusableElements']['on']('remove',(_0x35249c,_0x35765b)=>{this['view']['focusTracker']['remove'](_0x35765b);}),this['set']('isVisible',_0x1c947d);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x23c503=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x23c503),_0x23c503;}get['targetRect'](){const _0x494554=this['target'];if(null===_0x494554)return null;if(_0x494554 instanceof _0x3e2117)return _0x494554;const _0x392a2b=_0x494554['filter'](_0x571c1b=>function(_0x25597b){const _0x19967d=_0x25597b['offsetParent'];if(_0x19967d)return!0x0;const _0x1c4765=_0x25597b['getClientRects']()['item'](0x0);return!!_0x1c4765;}(_0x571c1b));return 0x0===_0x392a2b['length']?null:new _0x3e2117(_0x392a2b[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x13ff41){this['view']['isActive']=_0x13ff41,this['view']['mainView']['isActive']=_0x13ff41;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x290dac){if(!(null===_0x290dac||_0x290dac instanceof _0x3e2117||Array['isArray'](_0x290dac)&&_0x290dac['every'](_0x13dbdc=>ne(_0x13dbdc))))throw new _0x2bc58('annotation-invalid-target',null,{'target':_0x290dac});}['_getNormalizedTarget'](){const _0x4da62e='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x4da62e)?[_0x4da62e]:_0x4da62e;}}function ne(_0x16ac3d){return null!==_0x16ac3d&&'object'==typeof _0x16ac3d&&'nodeType'in _0x16ac3d&&0x1===_0x16ac3d['nodeType'];}class x extends _0x5e9e9a{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x1312ea=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x35c4e6(),this['_focusTracker']['on']('change:isFocused',(_0x370b39,_0x3fa25c,_0x4365b1)=>{_0x4365b1||this['fire']('blur');});for(const _0x1f12d4 of _0x1312ea)this['add'](_0x1f12d4);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x3a25f9){if(this['has'](_0x3a25f9))throw new _0x2bc58('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x3a25f9['innerView'],_0x3a25f9),this['_viewToAnnotation']['set'](_0x3a25f9['view'],_0x3a25f9);for(const _0x2257ec of _0x3a25f9['focusableElements'])this['_focusTracker']['add'](_0x2257ec);this['listenTo'](_0x3a25f9['focusableElements'],'add',(_0x1d03fa,_0x5e5270)=>{this['_focusTracker']['add'](_0x5e5270);}),this['listenTo'](_0x3a25f9['focusableElements'],'remove',(_0x43851e,_0x8b5585)=>{this['_focusTracker']['remove'](_0x8b5585);}),this['listenTo'](_0x3a25f9['view']['focusTracker'],'change:isFocused',(_0x3a7615,_0x18ee66,_0x555599)=>{_0x555599&&this['fire']('focus',_0x3a25f9);}),_0x3a25f9['updateTargetRect']();const _0x362def=this['_getOrderInContent'](_0x3a25f9['view']['targetRect']);return super['add'](_0x3a25f9,_0x362def);}['remove'](_0x3c2cfd){if(!this['has'](_0x3c2cfd))throw new _0x2bc58('annotationcollection-not-existing-item',null);this['stopListening'](_0x3c2cfd['view']['focusTracker']),this['stopListening'](_0x3c2cfd['focusableElements']);for(const _0x1f9f7c of _0x3c2cfd['focusableElements'])this['_focusTracker']['remove'](_0x1f9f7c);return this['_viewToAnnotation']['delete'](_0x3c2cfd['view']),this['_innerViewToAnnotation']['delete'](_0x3c2cfd['innerView']),super['remove'](_0x3c2cfd);}['getByInnerView'](_0x1bafa8){return this['_innerViewToAnnotation']['get'](_0x1bafa8);}['getByView'](_0x349e63){return this['_viewToAnnotation']['get'](_0x349e63);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x31a4d4 of this)_0x31a4d4['updateTargetRect']();this['_sort']();}['_sort'](){const _0x1ae3b2=Array['from'](this)['sort']((_0x559661,_0x4ea8ec)=>v(_0x559661['view']['targetRect'],_0x4ea8ec['view']['targetRect']));for(let _0x501074=_0x1ae3b2['length']-0x1;_0x501074>0x0;_0x501074--){const _0x28265d=_0x1ae3b2[_0x501074];_0x501074!==this['getIndex'](_0x28265d)&&(this['remove'](_0x28265d),this['add'](_0x28265d));}}['_getOrderInContent'](_0x44e87d){let _0x194bad=0x0;if(!_0x44e87d)return this['length'];for(const _0x39c521 of this){const _0x299061=_0x39c521['view']['targetRect'];if(_0x299061){if(v(_0x44e87d,_0x299061)<0x0)return _0x194bad;_0x194bad++;}}return _0x194bad;}}function v(_0x584304,_0x28f022){if(null===_0x584304&&null===_0x28f022)return 0x0;if(null===_0x584304)return-0x1;if(null===_0x28f022)return 0x1;const _0x259bd6=_0x584304['top']-_0x28f022['top'];return 0x0==_0x259bd6?_0x584304['left']-_0x28f022['left']:_0x259bd6;}class N extends _0x3ad1aa{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3de581){if(super(_0x3de581),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x3de581 instanceof _0x1870c6){const _0x1a1129=_0x3de581['locale'];_0x3de581['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x1a1129,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x1a1129,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x1a1129,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x1a1129,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x1a1129,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x1a1129,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x1a1129,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0xd5d299){this['collection']['add'](_0xd5d299);}['remove'](_0x32b0e5){this['collection']['remove'](_0x32b0e5),_0x32b0e5['destroy']();}['refreshVisibility'](){for(const _0x54899d of this['collection'])_0x54899d['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x1c6246){return this['collection']['getByInnerView'](_0x1c6246);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x12fd10 of this['collection'])_0x12fd10['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x588dbe){this['fire']('_activateAnnotation',_0x588dbe);}['createAnnotation'](_0x54a9de){return new d(_0x54a9de);}['createAnnotationView'](_0x217741,_0x2359fb){return new T(_0x217741,_0x2359fb);}['_addActiveAnnotation'](_0x24244c){const _0x564206=new Set(this['activeAnnotations']);_0x564206['add'](_0x24244c),this['activeAnnotations']=_0x564206;}['_removeActiveAnnotation'](_0x1add61){const _0x2932cf=new Set(this['activeAnnotations']);_0x2932cf['delete'](_0x1add61),this['activeAnnotations']=_0x2932cf;}['_bindAnnotationsToVisibleAnnotations'](){const _0x11d2c5=this['collection'],_0x34147c=this['_visibleAnnotations'];function _0x5d5691(_0x2a5cb6){const _0x371420=_0x2a5cb6['source'];_0x371420['isVisible']&&!_0x34147c['has'](_0x371420)?_0x34147c['add'](_0x371420):!_0x371420['isVisible']&&_0x34147c['has'](_0x371420)&&_0x34147c['remove'](_0x371420),_0x371420['view']['focusTracker']['remove'](_0x371420['view']['element']),_0x371420['view']['focusTracker']['add'](_0x371420['view']['element']);}this['listenTo'](_0x11d2c5,'add',(_0x5d9964,_0x1ca028)=>{_0x1ca028['isVisible']&&_0x34147c['add'](_0x1ca028),this['listenTo'](_0x1ca028,'change:isVisible',_0x5d5691);}),this['listenTo'](_0x11d2c5,'remove',(_0x462bd2,_0x153880)=>{_0x34147c['has'](_0x153880)&&_0x34147c['remove'](_0x153880),this['stopListening'](_0x153880,'change:isVisible',_0x5d5691);});}['_setupEnterAnnotationKeystroke'](){const _0x1eacd6=_0x30945a=>{_0x30945a['on']('ready',()=>{_0x30945a['keystrokes']['set'](_0x442a01,(_0x121dac,_0x79314f)=>{const _0x57f59b=_0x468b9a(this['activeAnnotations']['values']());_0x57f59b&&(_0x57f59b['view']['focus'](),_0x79314f());});});};this['context']instanceof _0x1870c6?_0x1eacd6(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x3a0f1a,_0x1604b7)=>{_0x1eacd6(_0x1604b7);});}['_setupEscapeAnnotationHandling'](){const _0x522736=_0x153865=>{const _0x547091=_0x153865['source'],_0x301d8=[];let _0x50bed0;if(Array['isArray'](_0x547091['target'])){_0x50bed0=_0x547091['target'][0x0],this['context']instanceof _0x1870c6?_0x301d8['push'](this['context']):this['context']['editors']&&_0x301d8['push'](...this['context']['editors']);for(const _0x45f2bc of _0x301d8)for(const _0x16664b of _0x45f2bc['editing']['view']['domRoots']['values']())if(_0x16664b['contains'](_0x50bed0))return void _0x45f2bc['editing']['view']['focus']();_0x50bed0['focus']();}};this['listenTo'](this['collection'],'add',(_0x2f6a25,_0x52c98a)=>{this['listenTo'](_0x52c98a,'escape',_0x522736,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x14efdd,_0x30a2da)=>{this['stopListening'](_0x30a2da,'escape',_0x522736);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x3ad1aa{['_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(_0x8399d0){super(_0x8399d0),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x3d61db=this['context']['config'];_0x3d61db['define']('comments.maxCommentsWhenCollapsed',0x2),_0x3d61db['define']('comments.maxThreadTotalWeight',0x1f4),_0x3d61db['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x3d61db['define']('comments.CommentThreadView',vt),_0x3d61db['define']('comments.CommentView',gt),_0x3d61db['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x579a7c=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x2d3b0b,_0x47ceb5)=>this['_addCommentThread'](_0x47ceb5)),this['on']('submitCommentThread',(_0x339968,_0x2cb2d8)=>this['_submitCommentThread'](_0x2cb2d8)),this['on']('resolveCommentThread',(_0x446142,_0x57e8bb)=>this['_resolveCommentThread'](_0x57e8bb)),this['on']('resolveCommentThread',(_0x577a14,_0x58b55c)=>this['_updateActiveAnnotation'](_0x58b55c),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0xa12e8e,_0x381d6c)=>this['_reopenCommentThread'](_0x381d6c)),this['on']('reopenCommentThread',(_0x34f9fc,_0x2dbc23)=>this['_updateActiveAnnotation'](_0x2dbc23),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x22e375,_0x48fae1)=>this['_removeCommentThread'](_0x48fae1)),this['on']('updateCommentThread',(_0x123f1f,_0x37fa9b)=>this['_updateCommentThread'](_0x37fa9b)),this['on']('updateCommentThread',(_0x55897e,_0x44ff64)=>this['_updateActiveAnnotation'](_0x44ff64),{'priority':'lowest'}),this['on']('addComment',(_0x241b91,_0x220526)=>this['_addComment'](_0x220526)),this['on']('updateComment',(_0x4ff5f5,_0x3f33e8)=>this['_updateComment'](_0x3f33e8)),this['on']('removeComment',(_0x42b89f,_0x87e3ca)=>this['_removeComment'](_0x87e3ca)),this['on']('addComment',(_0x28d0b2,{threadId:_0x223e40,isFromAdapter:_0x426fa0})=>{if(_0x426fa0)return;const _0x19035c=this['getCommentThread'](_0x223e40),_0x2e4fe8=_0x19035c&&this['_threadToController']['get'](_0x19035c);_0x2e4fe8&&_0x2e4fe8['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x579a7c,'change:activeAnnotations',(_0x18bf56,_0x33ee75,_0x541de6)=>{const _0xa67336=Array['from'](_0x541de6)['map'](_0x30afff=>this['_viewToController']['get'](_0x30afff['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xa67336?_0xa67336['model']:null;});}set['adapter'](_0x206d8b){if(this['_adapter'])throw new _0x2bc58('commentsrepository-adapter-already-set');this['_adapter']=_0x206d8b;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x8819c7=Tt,threadId:_0x492a9c=_0x7cc9c8(),comments:_0x5197c1=[],unlinkedAt:_0xddeab=null,resolvedAt:_0x31068d=null,resolvedBy:_0x445d09=null,target:_0x1ba16c=null,context:_0x378521=null,attributes:_0x44d044={},isResolvable:_0x281410=!0x0,isSubmitted:_0xd456c8=!0x1,isFromAdapter:_0x213ea1=!0x1}={}){return this['fire'](bt('addCommentThread',_0x8819c7),{'channelId':_0x8819c7,'threadId':_0x492a9c,'comments':_0x5197c1,'unlinkedAt':_0xddeab,'resolvedAt':_0x31068d,'resolvedBy':_0x445d09,'target':_0x1ba16c,'context':_0x378521,'attributes':_0x44d044,'isFromAdapter':_0x213ea1,'isResolvable':_0x281410,'isSubmitted':_0xd456c8}),this['getCommentThread'](_0x492a9c);}['openNewCommentThread']({channelId:_0x28ae22=Tt,threadId:_0x51b9c7=_0x7cc9c8(),target:_0x341699,context:_0x1eda2b=null,isResolvable:_0x24420e=!0x0}){if(this['_readOnlyChannels']['has'](_0x28ae22)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x341699)throw new _0x2bc58('commentsrepository-missing-target');const _0x579852=this['addCommentThread']({'channelId':_0x28ae22,'threadId':_0x51b9c7,'target':_0x341699,'context':_0x1eda2b,'isResolvable':_0x24420e});if(!_0x579852)return null;const _0x1bc5fb=this['_threadToController']['get'](_0x579852),_0x26da4f=_0x1bc5fb['view']['commentThreadInputView']['commentInputView'],_0x5ea601=this['context']['plugins']['get'](N),_0x879c47=_0x5ea601['getByInnerView'](_0x1bc5fb['view']);return _0x5ea601['activate'](_0x879c47),_0x26da4f['once']('editorReady',()=>_0x26da4f['focus']()),_0x579852;}['hasCommentThread'](_0x4bb78f){if('string'!=typeof _0x4bb78f)throw new _0x2bc58('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x4bb78f);}['updateCommentThread']({channelId:_0x2b56f1=Tt,threadId:_0x448bdb,context:_0x58ecb7,unlinkedAt:_0x52b46d,attributes:_0x4294f8,isFromAdapter:_0x26b609=!0x1}){return this['fire'](bt('updateCommentThread',_0x2b56f1),{'channelId':_0x2b56f1,'threadId':_0x448bdb,'context':_0x58ecb7,'unlinkedAt':_0x52b46d,'attributes':_0x4294f8,'isFromAdapter':_0x26b609}),this['getCommentThread'](_0x448bdb);}['getCommentThread'](_0x5084d8){if('string'!=typeof _0x5084d8)throw new _0x2bc58('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x5084d8);}['fetchCommentThread']({channelId:_0x5ebcc3,threadId:_0xba1fe2}={}){const _0x5e7d61=this['getCommentThread'](_0xba1fe2);if(_0x5e7d61)return Promise['resolve'](_0x5e7d61);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x2bc58('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x5ebcc3,'threadId':_0xba1fe2})['then'](_0x585669=>this['hasCommentThread'](_0xba1fe2)?this['getCommentThread'](_0xba1fe2):_0x585669?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x5ebcc3},_0x585669)):void 0x0)['catch'](_0x32798b=>{throw console['error'](_0x32798b),new _0x2bc58('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x26e1e3,skipNotAttached:_0x41b8bc=!0x1,skipEmpty:_0x382f14=!0x1,toJSON:_0x2ca6b0=!0x1}={}){const _0x46f5f1=[];for(const _0x50ac5f of this['_threads']['values']())_0x26e1e3&&_0x50ac5f['channelId']!==_0x26e1e3||_0x41b8bc&&!_0x50ac5f['isAttached']||_0x382f14&&0x0===_0x50ac5f['length']||_0x46f5f1['push'](_0x50ac5f);return _0x2ca6b0?_0x46f5f1['map'](_0x81197c=>_0x81197c['toJSON']()):_0x46f5f1;}['setActiveCommentThread'](_0x1cdced){const _0x3408dd=this['context']['plugins']['get'](N);if(!_0x1cdced)return void(this['activeCommentThread']&&_0x3408dd['deactivateAll']());const _0x439420=this['getCommentThread'](_0x1cdced);if(!_0x439420)throw new _0x2bc58('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x1cdced});if(!this['_threadToController']['has'](_0x439420))throw new _0x2bc58('commentsrepository-active-not-attached',null,{'threadId':_0x1cdced});const _0x400aed=_0x3408dd['getByInnerView'](this['_threadToController']['get'](_0x439420)['view']);_0x3408dd['activate'](_0x400aed);}['switchReadOnly'](_0x1f2ad8,_0x4294f9){_0x1f2ad8?this['_readOnlyChannels']['add'](_0x4294f9):this['_readOnlyChannels']['delete'](_0x4294f9),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x248981){return this['_readOnlyChannels']['has'](_0x248981)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x5844d2,_0x2d6356){return new Ct(_0x5844d2,_0x2d6356);}['setPermissions'](_0x2baa9b,_0x22a770=Tt){this['_permissions']['set'](_0x22a770,_0x2baa9b),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x28fc60=Tt){return this['_permissions']['has'](_0x28fc60)?this['_permissions']['get'](_0x28fc60):_t;}['_addCommentThread']({channelId:_0x5443bc,threadId:_0x16c90a,comments:_0x1b124d,unlinkedAt:_0x30608c,resolvedAt:_0x160cf4,resolvedBy:_0x35cb65,target:_0x5131cc,context:_0x2f81be,attributes:_0x545b15,isFromAdapter:_0x431710,isResolvable:_0x39d96c,isSubmitted:_0x154560}){if('string'!=typeof _0x16c90a)throw new _0x2bc58('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x16c90a});if(this['hasCommentThread'](_0x16c90a))throw new _0x2bc58('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x16c90a});const _0x191bba=new oe(this,{'channelId':_0x5443bc,'id':_0x16c90a,'context':_0x2f81be,'attributes':_0x545b15,'unlinkedAt':_0x30608c,'resolvedAt':_0x160cf4,'resolvedBy':_0x35cb65?this['context']['plugins']['get'](it)['getUser'](_0x35cb65):null,'isResolvable':_0x39d96c,'isSubmitted':_0x154560||_0x431710});this['_threads']['set'](_0x16c90a,_0x191bba);for(const _0x52f794 of _0x1b124d)_0x191bba['_add'](this['_createNewComment']({'threadId':_0x16c90a,..._0x52f794}));return _0x5131cc&&_0x191bba['attachTo'](_0x5131cc),_0x431710||!_0x191bba['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x5443bc,'threadId':_0x16c90a});}['_submitCommentThread']({channelId:_0x2ac222,threadId:_0x5cb099}){if(!this['hasCommentThread'](_0x5cb099))throw new _0x2bc58('commentsrepository-missing-comment-thread',this);const _0x3064e6=this['getCommentThread'](_0x5cb099);if(_0x3064e6['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x448d63,comments:_0x144988,resolvedAt:_0x50c033,resolvedBy:_0x43d816,context:_0xa19b3,attributes:_0x5ab56d}=_0x3064e6,_0x50fa93=this['context']['plugins']['get']('PendingActions'),_0x163d26=_0x50fa93['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x2ac222,'threadId':_0x448d63,'comments':_0x144988['map'](_0xd073a5=>_0xd073a5['toJSON']()),'resolvedAt':_0x50c033,'resolvedBy':_0x43d816?_0x43d816['id']:_0x43d816,'context':_0xa19b3,'attributes':_0x5ab56d})['then'](({comments:_0x15d378})=>{_0x50fa93['remove'](_0x163d26);for(const _0x16be77 of _0x15d378)this['_updateComment']({'channelId':_0x2ac222,'threadId':_0x5cb099,'commentId':_0x16be77['commentId'],'createdAt':_0x16be77['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2fd25b=>{throw console['error'](_0x2fd25b),new _0x2bc58('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0xb1a89b,target:_0x48e133}){const _0x159464=this['getCommentThread'](_0xb1a89b);if(!_0x159464)throw new _0x2bc58('commentsrepository-attach-missing-comment-thread',this);const _0x5a113b=this['context']['plugins']['get']('PendingActions'),_0x55b61e=this['context']['plugins']['get'](N),_0x359905=this['_createCommentThreadView'](_0x159464),_0x7c9f0e=new Ct(_0x159464,_0x359905);let _0x5423da=null;_0x359905['on']('change:isDirty',(_0x44c2c8,_0x25cef8,_0xa5f24b)=>{_0xa5f24b?_0x5423da=_0x5a113b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x5423da&&(_0x5a113b['remove'](_0x5423da),_0x5423da=null);}),this['_threadToController']['set'](_0x159464,_0x7c9f0e),this['_viewToController']['set'](_0x359905,_0x7c9f0e);const _0x5a0ce3=new T(this['context']['locale'],_0x359905);_0x5a0ce3['bind']('length')['to'](_0x359905),_0x5a0ce3['bind']('isDirty')['to'](_0x359905,'isDirty',_0x359905,'length',(_0x356693,_0x1a5fc4)=>_0x356693||!_0x1a5fc4),_0x5a0ce3['bind']('isActive')['to'](_0x359905),_0x5a0ce3['type']='comment';const _0x11acb3=new d({'view':_0x5a0ce3,'target':_0x48e133,'type':'comment','isVisible':!_0x159464['archivedAt']});return _0x359905['on']('escape',()=>{_0x11acb3['fire']('escape');}),this['_bindAnnotationToEditors'](_0x359905,_0x11acb3),_0x55b61e['add'](_0x11acb3),_0x11acb3;}['_bindAnnotationToEditors'](_0x6ac60b,_0xaad9da){this['listenTo'](_0x6ac60b,'editorReady',(_0x3958a1,_0x5d57e4)=>{const _0x225998=_0x5d57e4['ui']['view']['body']['bodyCollectionContainer'];_0xaad9da['focusableElements']['add'](_0x225998),this['context']instanceof _0x1870c6&&this['context']['ui']['focusTracker']['add'](_0x225998);},{'priority':'highest'}),this['listenTo'](_0x6ac60b,'editorDestroyed',(_0x5b897e,_0x451665)=>{const _0x37d9ec=_0x451665['ui']['view']['body']['bodyCollectionContainer'];_0xaad9da['focusableElements']['has'](_0x37d9ec)&&_0xaad9da['focusableElements']['remove'](_0x37d9ec),this['context']instanceof _0x1870c6&&this['context']['ui']['focusTracker']['remove'](_0x37d9ec);});}['_unbindEditors'](_0x3b9c6f){this['stopListening'](_0x3b9c6f,'editorReady'),this['stopListening'](_0x3b9c6f,'editorDestroyed');}['_createCommentThreadView'](_0x147679){const _0x1de804=this['context']['plugins']['get'](it),{config:_0x2c17de,locale:_0x7d5fb7}=this['context'],_0x46f8b2=lt(_0x2c17de['get']('locale'));return new(0x0,(_0x2c17de['get']('comments'))['CommentThreadView'])(_0x7d5fb7,_0x147679,_0x1de804['me'],{'editorConfig':{..._0x2c17de['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x2c17de['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x2c17de['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2c17de['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2c17de['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x46f8b2,'CommentView':_0x2c17de['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x559749,channelId:_0x13ec5e,resolvedAt:_0x41ee02,resolvedBy:_0x2c00f8,isFromAdapter:_0x11eef6}){if(!this['hasCommentThread'](_0x559749))throw new _0x2bc58('commentsrepository-missing-comment-thread',null,{'threadId':_0x559749});const _0xc9c45d=this['getCommentThread'](_0x559749);if(_0xc9c45d['isResolved'])throw new _0x2bc58('commentsrepository-resolved-comment-thread',null,{'threadId':_0x559749});const _0x4718de=this['context']['plugins']['get'](it);if(_0xc9c45d['resolvedBy']=_0x4718de['getUser'](_0x2c00f8),_0xc9c45d['resolvedAt']=_0x41ee02,_0x11eef6||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x386525=this['context']['plugins']['get']('PendingActions'),_0x4a423a=_0x386525['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x13ec5e,'threadId':_0x559749})['then'](({resolvedAt:_0x36f780,resolvedBy:_0x36d839})=>{_0x386525['remove'](_0x4a423a),_0xc9c45d['resolvedBy']['id']!==_0x36d839&&(_0xc9c45d['resolvedBy']=_0x4718de['getUser'](_0x36d839)),_0xc9c45d['resolvedAt']=_0x36f780;})['catch'](_0x53d6cc=>{throw console['error'](_0x53d6cc),new _0x2bc58('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x3a40fd,channelId:_0x4fb9ce,isFromAdapter:_0x2a4b8f}){if(!this['hasCommentThread'](_0x3a40fd))throw new _0x2bc58('commentsrepository-missing-comment-thread',null,{'threadId':_0x3a40fd});const _0x1349b5=this['getCommentThread'](_0x3a40fd);if(!_0x1349b5['isResolved'])throw new _0x2bc58('commentsrepository-reopen-comment-thread',null,{'threadId':_0x3a40fd});if(_0x1349b5['resolvedBy']=null,_0x1349b5['resolvedAt']=null,_0x2a4b8f||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x281071=this['context']['plugins']['get']('PendingActions'),_0x57f63f=_0x281071['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x4fb9ce,'threadId':_0x3a40fd})['then'](()=>_0x281071['remove'](_0x57f63f))['catch'](_0x296fcf=>{throw console['error'](_0x296fcf),new _0x2bc58('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x3ddd8a,isFromAdapter:_0x2651bf}){const _0x2db7d5=this['getCommentThread'](_0x3ddd8a);if(!_0x2db7d5)throw new _0x2bc58('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x3ddd8a),this['_threads']['delete'](_0x3ddd8a),!_0x2db7d5['isSubmitted']||_0x2651bf||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x190295=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3c468e}=_0x2db7d5,_0xf1a0cf=_0x190295['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x3c468e,'threadId':_0x3ddd8a})['then'](()=>_0x190295['remove'](_0xf1a0cf))['catch'](_0x1b5923=>{throw console['error'](_0x1b5923),new _0x2bc58('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x4cd583,unlinkedAt:_0x2a1f13,context:_0x161208,attributes:_0x3c14f8,isFromAdapter:_0x4aa150}){if('string'!=typeof _0x4cd583)throw new _0x2bc58('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4cd583});if(!this['hasCommentThread'](_0x4cd583))throw new _0x2bc58('commentsrepository-missing-comment-thread',null,{'threadId':_0x4cd583});const _0x52c014=this['getCommentThread'](_0x4cd583);let _0x3ab720=!0x1;if(void 0x0!==_0x161208&&_0x52c014['context']!==_0x161208&&(_0x52c014['context']=_0x161208,_0x3ab720=!0x0),void 0x0!==_0x2a1f13&&_0x52c014['unlinkedAt']!==_0x2a1f13&&(_0x52c014['unlinkedAt']=_0x2a1f13,_0x3ab720=!0x0),_0x3c14f8&&!wt(_0x3c14f8,_0x52c014['attributes'])&&(_0x52c014['attributes']=_0x3c14f8,_0x3ab720=!0x0),!_0x3ab720)return Promise['resolve']();if(!_0x52c014['isSubmitted']||_0x4aa150||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x2870f4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3c7b37}=_0x52c014,_0x3d4828=_0x2870f4['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x3c7b37,'threadId':_0x4cd583,'context':_0x161208,'unlinkedAt':_0x2a1f13,'attributes':_0x3c14f8})['then'](()=>_0x2870f4['remove'](_0x3d4828))['catch'](_0x446703=>{throw console['error'](_0x446703),new _0x2bc58('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x407e86){const _0x506563=this['context']['plugins']['get'](N),_0x311016=this['getCommentThread'](_0x407e86);if(_0x311016['_isAttached']=!0x1,this['_threadToController']['has'](_0x311016)){const _0x1c9a54=this['_threadToController']['get'](_0x311016),_0x1d6077=_0x1c9a54['view'],_0x9e0f40=_0x506563['getByInnerView'](_0x1d6077);this['_threadToController']['delete'](_0x311016),this['_viewToController']['delete'](_0x1d6077),_0x9e0f40&&_0x506563['remove'](_0x9e0f40),_0x1c9a54['destroy'](),_0x1d6077['destroy']()['then'](()=>{this['_unbindEditors'](_0x1d6077);});}}['_updateActiveAnnotation']({threadId:_0x5ea47e,resolvedAt:_0x1b4fe6}){const _0x2930e3=!!_0x1b4fe6,_0x3e9cf7=this['context']['plugins']['get'](N),_0x578312=this['getCommentThread'](_0x5ea47e);if(this['_threadToController']['has'](_0x578312)){const _0x46ef68=this['_threadToController']['get'](_0x578312)['view'],_0x26c8ff=_0x3e9cf7['getByInnerView'](_0x46ef68);_0x26c8ff&&(_0x2930e3&&_0x3e9cf7['_removeActiveAnnotation'](_0x26c8ff),_0x26c8ff['refreshVisibility']());}}['_getExternalAuthor'](_0x4bf6c2){const _0x37aa64=this['context']['plugins']['get'](it),_0x144360=pt('external:'+_0x4bf6c2),_0x2f9589=_0x37aa64['getUser'](_0x144360);return _0x2f9589||_0x37aa64['addUser']({'id':_0x144360,'name':_0x4bf6c2});}['_createNewComment']({threadId:_0x2210f8,commentId:_0x1744f9=_0x7cc9c8(),content:_0x38eb5b,authorId:_0xfa6e2e,createdAt:_0x3c50e1,attributes:_0x2d0494}){if('string'!=typeof _0x1744f9)throw new _0x2bc58('commentsrepository-invalid-commentid');if('string'!=typeof _0xfa6e2e)throw new _0x2bc58('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x38eb5b||!_0x38eb5b['trim']())throw new _0x2bc58('commentsrepository-invalid-comment-content');const _0x2158d7=this['context']['plugins']['get'](it)['getUser'](_0xfa6e2e);if(!_0x2158d7)throw new _0x2bc58('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0xfa6e2e});let _0xb394c3=null,_0x385f11=_0x3c50e1;return _0x2d0494&&_0x2d0494['@external']&&(_0xb394c3=this['_getExternalAuthor'](_0x2d0494['@external']['authorName']),_0x385f11=new Date(_0x2d0494['@external']['createdAt'])),new re(this,{'threadId':_0x2210f8,'id':_0x1744f9,'author':_0xb394c3||_0x2158d7,'creator':_0x2158d7,'content':_0x38eb5b,'createdAt':_0x3c50e1,'authoredAt':_0x385f11,'attributes':_0x2d0494});}['_addComment'](_0x48d336){let {threadId:_0x38420f,content:_0x57b82,attributes:_0x4557b0,isFromAdapter:_0x1b54b5}=_0x48d336;const _0x50824a=this['getCommentThread'](_0x48d336['threadId']);if(!_0x50824a)throw new _0x2bc58('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x2d58fd=this['_createNewComment'](_0x48d336),{id:_0x2e7f23}=_0x2d58fd;if(_0x50824a['_add'](_0x2d58fd),_0x1b54b5||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x50824a['isSubmitted'])return Promise['resolve']();const _0x21f0e9=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3ecff8}=_0x50824a,_0x4196de=_0x21f0e9['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x4557b0||(_0x4557b0={}),this['adapter']['addComment']({'channelId':_0x3ecff8,'threadId':_0x38420f,'commentId':_0x2e7f23,'content':_0x57b82,'attributes':_0x4557b0})['then'](_0x267202=>{_0x21f0e9['remove'](_0x4196de),_0x267202&&this['_updateComment']({'channelId':_0x3ecff8,'threadId':_0x38420f,'commentId':_0x2e7f23,'createdAt':_0x267202['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x1c6687=>{throw console['error'](_0x1c6687),new _0x2bc58('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x3e5cd3,commentId:_0x2f75e6,content:_0x25b36d,createdAt:_0x4eb6ec,attributes:_0x437d62,isFromAdapter:_0x15c719}){if(void 0x0!==_0x25b36d&&('string'!=typeof _0x25b36d||!_0x25b36d['trim']()['length']))throw new _0x2bc58('commentsrepository-update-comment-invalid-content');const _0x1c4bd0=this['getCommentThread'](_0x3e5cd3),_0x441afc=_0x1c4bd0['getComment'](_0x2f75e6);if(!_0x441afc)throw new _0x2bc58('commentsrepository-update-missing-comment',this);let _0x53f7e2=!0x1;if(_0x25b36d&&_0x25b36d!==_0x441afc['content']&&(_0x441afc['isEditable']||_0x15c719)&&(_0x441afc['content']=_0x25b36d,_0x53f7e2=!0x0),_0x4eb6ec&&_0x4eb6ec!==_0x441afc['createdAt']&&(_0x441afc['createdAt']=_0x4eb6ec,_0x441afc['attributes']&&_0x441afc['attributes']['@external']||(_0x441afc['authoredAt']=_0x4eb6ec),_0x53f7e2=!0x0),_0x437d62&&!wt(_0x437d62,_0x441afc['attributes'])&&(_0x441afc['attributes']=_0x437d62,_0x53f7e2=!0x0),!_0x53f7e2)return Promise['resolve']();if(_0x1c4bd0['fire']('commentUpdated'),_0x15c719||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x55db1d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x482e1d}=this['getCommentThread'](_0x441afc['threadId']),_0x5aefdb=_0x55db1d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x482e1d,'threadId':_0x3e5cd3,'commentId':_0x2f75e6,'content':_0x25b36d,'attributes':_0x437d62})['then'](()=>_0x55db1d['remove'](_0x5aefdb))['catch'](_0xbc8a68=>{throw console['error'](_0xbc8a68),new _0x2bc58('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x2b99b1,commentId:_0x2e9d36,isFromAdapter:_0x589810}){const _0xd2adfa=this['getCommentThread'](_0x2b99b1),_0x3c3652=_0xd2adfa['getComment'](_0x2e9d36);if(!_0x3c3652)throw new _0x2bc58('commentsrepository-remove-missing-comment',this);if(_0xd2adfa['_remove'](_0x3c3652),_0x589810||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x1f5da5=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1c2194}=_0xd2adfa,_0x12b1d0=_0x1f5da5['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x1c2194,'threadId':_0x2b99b1,'commentId':_0x2e9d36})['then'](()=>_0x1f5da5['remove'](_0x12b1d0))['catch'](_0x52598d=>{throw console['error'](_0x52598d),new _0x2bc58('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
+ _0x2b4de1(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x44829c,_0x559009){super();const _0x15da58=_0x559009['isResolvable'];this['channelId']=_0x559009['channelId'],this['id']=_0x559009['id'],this['comments']=new _0x5e9e9a(),this['_repository']=_0x44829c,this['_isAttached']=!0x1,this['_isSubmitted']=_0x559009['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x44829c,'_permissions',_0x44829c,'_readOnlyChannels',()=>_0x44829c['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x44829c,'_permissions',()=>_0x44829c['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x44829c,'_permissions',()=>{const _0x5960b6=_0x44829c['getPermissions'](this['channelId']);return _0x5960b6['write']||_0x5960b6['admin'];}),this['bind']('isResolvable')['to'](_0x44829c,'_permissions',()=>_0x15da58&&_0x44829c['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x559009['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x596103,_0x22b558)=>_0x596103?_0x22b558?_0x596103<_0x22b558?_0x596103:_0x22b558:_0x596103:_0x22b558),this['set']('unlinkedAt',_0x559009['unlinkedAt']||null),this['set']('resolvedAt',_0x559009['resolvedAt']||null),this['set']('resolvedBy',_0x559009['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x14cfc1=>!!_0x14cfc1),this['set']('attributes',_0x559009['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x4b862c,_0xdf1001)=>_0x4b862c+_0xdf1001['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x173aaf,id:_0x1159bf}=this;this['_repository']['fire'](bt('submitCommentThread',_0x173aaf),{'channelId':_0x173aaf,'threadId':_0x1159bf});}['setUnlinkedAt'](_0x3680ea){this['_update']({'unlinkedAt':_0x3680ea});}['resolve']({resolvedAt:_0x2afe49=new Date(),resolvedBy:_0x4d66d4=null,isFromAdapter:_0x1b8e50=!0x1}={}){const _0xd55168=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x3444cb,id:_0x510c50}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x3444cb),{'channelId':_0x3444cb,'threadId':_0x510c50,'resolvedAt':_0x2afe49,'resolvedBy':_0x4d66d4||_0xd55168['id'],'isFromAdapter':_0x1b8e50});}['reopen']({isFromAdapter:_0x1c14f1=!0x1}={}){const {channelId:_0x5a02bb,id:_0x72093d}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x5a02bb),{'channelId':_0x5a02bb,'threadId':_0x72093d,'isFromAdapter':_0x1c14f1});}['setContext'](_0x28f063){this['context']||this['_update']({'context':_0x28f063});}['setAttribute'](_0x20c4d1,_0x121e91){const _0x4e4823=It(this['attributes']);At(_0x4e4823,_0x20c4d1,_0x121e91),this['_update']({'attributes':_0x4e4823});}['removeAttribute'](_0x3bce11){const _0x341afb=It(this['attributes']);yt(_0x341afb,_0x3bce11),this['_update']({'attributes':_0x341afb});}['remove']({isFromAdapter:_0x367968=!0x1}={}){const {channelId:_0x4dfd02,id:_0x59c309}=this;this['_repository']['fire'](bt('removeCommentThread',_0x4dfd02),{'channelId':_0x4dfd02,'threadId':_0x59c309,'isFromAdapter':_0x367968});}['attachTo'](_0x1c6514){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x1c6514});}['addComment'](_0x3d94e6){const {channelId:_0x451820,id:_0x46f21f}=this;this['_repository']['fire'](bt('addComment',_0x451820,_0x46f21f),Object['assign']({'channelId':_0x451820,'threadId':_0x46f21f},_0x3d94e6));}['getComment'](_0x19267e){if('string'!=typeof _0x19267e)throw new _0x2bc58('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x19267e});return this['comments']['get'](_0x19267e);}['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'](_0x3dac16=>_0x3dac16['toJSON']()),'attributes':this['attributes']};}['_add'](_0x1fe7dd){return this['listenTo'](_0x1fe7dd,'change:authoredAt',()=>{const _0x73d284=this['_findOptimalIndex'](_0x1fe7dd),_0x14aa1f=this['comments'];_0x73d284-0x1!=_0x14aa1f['getIndex'](_0x1fe7dd)&&_0x73d284+0x1!=_0x14aa1f['getIndex'](_0x1fe7dd)&&(this['_remove'](_0x1fe7dd),this['_add'](_0x1fe7dd));}),this['comments']['add'](_0x1fe7dd,this['_findOptimalIndex'](_0x1fe7dd));}['_update'](_0x2e83cf){const {channelId:_0x46ee29,id:_0x5848aa}=this;this['_repository']['fire'](bt('updateCommentThread',_0x46ee29),{..._0x2e83cf,'channelId':_0x46ee29,'threadId':_0x5848aa});}['_remove'](_0x993416){return this['stopListening'](_0x993416),_0x993416['destroy'](),this['comments']['remove'](_0x993416);}['_findOptimalIndex'](_0x147e87){const _0x75ec76=this['comments']['find'](_0x229109=>new Date(_0x229109['authoredAt'])['getTime']()>new Date(_0x147e87['authoredAt'])['getTime']());return _0x75ec76?this['comments']['getIndex'](_0x75ec76):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
+ _0x2b4de1(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x22534f,_0x132f8b){super();const _0x5049d7=_0x22534f['context']['plugins']['get'](it)['me'],_0x253489=_0x22534f['getCommentThread'](_0x132f8b['threadId']),_0x207010=0x0===_0x253489['comments']['length'],_0x5a5b29=_0x5049d7===_0x132f8b['author'];this['id']=_0x132f8b['id'],this['threadId']=_0x132f8b['threadId'],this['author']=_0x132f8b['author'],this['creator']=_0x132f8b['creator'],this['isExternal']=Boolean(_0x132f8b['attributes']&&_0x132f8b['attributes']['@external']),this['set']('content',_0x132f8b['content']),this['createdAt']=_0x132f8b['createdAt']||new Date(),this['set']('authoredAt',_0x132f8b['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x253489,'resolvedAt'),this['set']('attributes',_0x132f8b['attributes']||{}),this['bind']('isEditable')['to'](_0x22534f,'_permissions',()=>{const _0x5be674=_0x22534f['getPermissions'](_0x253489['channelId'])['write'],_0x246793=_0x22534f['getPermissions'](_0x253489['channelId'])['modifyAll'];return _0x5a5b29&&_0x5be674||!_0x5a5b29&&_0x246793;}),this['bind']('isRemovable')['to'](_0x253489,'isRemovable',_0x22534f,'_permissions',_0x5eeed9=>{const _0xcf4b67=_0x22534f['getPermissions'](_0x253489['channelId'])['write'],_0x3853e8=_0x22534f['getPermissions'](_0x253489['channelId'])['modifyAll'];return _0x5a5b29&&_0xcf4b67||_0x5eeed9&&_0x207010||!_0x5a5b29&&_0x3853e8&&!_0x207010;}),this['bind']('isReadOnly')['to'](_0x253489,'isReadOnly'),this['_repository']=_0x22534f;}get['weight'](){return Math['max'](function(_0x4ae517){const _0x52f13e=document['createElement']('div');return _0x52f13e['innerHTML']=_0x4ae517,_0x52f13e['textContent']['length'];}(this['content']),0xc8);}['update'](_0x4cce59){const {threadId:_0xf870ce,id:_0x3d27e0}=this;if(!this['_repository']['hasCommentThread'](_0xf870ce))throw new _0x2bc58('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x404f08}=this['_repository']['getCommentThread'](_0xf870ce);this['_repository']['fire'](bt('updateComment',_0x404f08,_0xf870ce),{'channelId':_0x404f08,'threadId':_0xf870ce,'commentId':_0x3d27e0,..._0x4cce59});}['setAttribute'](_0x2a359c,_0x2fb460){const _0x336f69=It(this['attributes']);At(_0x336f69,_0x2a359c,_0x2fb460),this['update']({'attributes':_0x336f69});}['removeAttribute'](_0x35a13f){const _0x35f248=It(this['attributes']);yt(_0x35f248,_0x35a13f),this['update']({'attributes':_0x35f248});}['remove'](_0x4e129d={}){if(!_0x4e129d['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x350b75,id:_0xfc6eda}=this;if(!this['_repository']['hasCommentThread'](_0x350b75))throw new _0x2bc58('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x37acdb}=this['_repository']['getCommentThread'](_0x350b75);this['_repository']['fire'](bt('removeComment',_0x37acdb,_0x350b75),{'channelId':_0x37acdb,'threadId':_0x350b75,'commentId':_0xfc6eda,..._0x4e129d});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x4d15f0,..._0x452a53){for(const _0x1c2ed2 of _0x452a53)void 0x0!==_0x1c2ed2&&(_0x4d15f0+=':'+String(_0x1c2ed2));return _0x4d15f0;}class J extends _0x2cb33e{['refresh'](){const _0x389c3a=this['editor']['model']['document']['selection'];for(const _0x4a6673 of _0x389c3a['getRanges']())if(this['_hasContent'](_0x4a6673))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x39a2da=_0x7cc9c8()}={}){const _0x501dfa=this['editor']['model'],_0x22de48=[];for(const _0x307708 of _0x501dfa['document']['selection']['getRanges']())this['_hasContent'](_0x307708)&&_0x22de48['push'](this['_trimToContent'](_0x307708));_0x501dfa['change'](_0x1b5d0d=>{for(const _0x34f05a of _0x22de48){const _0x41c702=_0x7cc9c8()['substr'](0x1,0x5),_0x13611b='comment:'+_0x39a2da+':'+_0x41c702;_0x1b5d0d['addMarker'](_0x13611b,{'range':_0x34f05a,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x9c0190){for(const _0xc89f3e of _0x9c0190['getItems']())if(this['_itemIsContent'](_0xc89f3e))return!0x0;return!0x1;}['_itemIsContent'](_0x17f2d8){return _0x17f2d8['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x17f2d8)&&!_0x17f2d8['is']('element','tableCell');}['_trimToContent'](_0x36052f){const _0x55e7fa=_0x125ff2=>!this['_itemIsContent'](_0x125ff2['item']),_0x328392=_0x36052f['start']['getLastMatchingPosition'](_0x55e7fa),_0x5b4187=_0x36052f['end']['getLastMatchingPosition'](_0x55e7fa,{'direction':'backward'});return this['editor']['model']['createRange'](_0x328392,_0x5b4187);}}class P extends _0x3aeecf{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d3e9c){super(_0x2d3e9c),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x444720=this['editor'],_0x4b6c86=_0x444720['model']['document']['selection'],_0x25c592=_0x66005e(()=>this['refreshSelectedViews'](),0xa);_0x4b6c86['on']('change:range',(_0x4f1fcf,_0x546dbf)=>{_0x546dbf['directChange']&&(_0x25c592['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x444720['editing']['view']['document'],'change:isFocused',(_0x425d46,_0x2fae39,_0x47b3a2)=>{_0x47b3a2&&_0x25c592();}),this['listenTo'](_0x444720['ui']['focusTracker'],'change:isFocused',(_0x42c60f,_0x96f7a3,_0x46b188)=>{_0x46b188||_0x444720['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x1c8dd6=>this['_editorAnnotationsData']['has'](_0x1c8dd6['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x309bee){if(this['_editorAnnotations']['has'](_0x309bee['view']))return;this['_editorAnnotations']['add'](_0x309bee['view']),this['editor']['ui']['focusTracker']['add'](_0x309bee['view']['element']);const _0x197462=this['editor']['plugins']['get'](N);this['listenTo'](_0x197462['collection'],'remove',(_0x1e5f74,_0x758163)=>{this['editor']['ui']['focusTracker']['remove'](_0x758163['view']['element']),this['_editorAnnotations']['delete'](_0x758163['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x201a2b){if('function'!=typeof _0x201a2b)throw new _0x2bc58('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x201a2b);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x585a4e,annotations:_0xd3ec7c}){const _0x4d66ab=[],_0x37b6cf=this['editor']['model']['document']['selection'],_0x20a451=Array['from'](_0x37b6cf['getRanges']());for(const [_0x113971,_0x2ba279]of this['_editorAnnotationsData']){const _0x5d65f8=_0x236703(_0x2ba279),_0x2db9c8=_0xd3ec7c['getByInnerView'](_0x113971);_0x5d65f8&&_0x2db9c8&&_0x4d66ab['push']({'annotation':_0x2db9c8,'range':_0x5d65f8});}function _0x236703(_0x557b4e){for(const _0x5bdd09 of _0x557b4e)for(const _0x485df1 of _0x20a451)if(_0x5bdd09['containsRange'](_0x485df1,!_0x37b6cf['isCollapsed']))return _0x5bdd09;return null;}return _0x4d66ab['sort']((_0x13b2ba,_0x45ceb8)=>{const _0x9b67fc=_0x13b2ba['range'],_0x2103d5=_0x45ceb8['range'];if(!_0x9b67fc['isEqual'](_0x2103d5)){if(_0x9b67fc['containsRange'](_0x2103d5,!0x0))return 0x1;if(_0x2103d5['containsRange'](_0x9b67fc,!0x0))return-0x1;}return _0x13b2ba['annotation']==_0x585a4e?-0x1:_0x45ceb8['annotation']==_0x585a4e?0x1:0x0;})['map'](_0x2fd098=>_0x2fd098['annotation']);}get['_editorAnnotationsData'](){const _0x57a00f=new Map();for(const _0x3ea986 of Array['from'](this['_dataCollectors']))for(const [_0x1ddf0b,_0x4152ff]of _0x3ea986())_0x57a00f['set'](_0x1ddf0b,_0x4152ff);return _0x57a00f;}}class st extends _0x3aeecf{['afterInit'](){const _0x170b58=this['editor'];if(!_0x170b58['plugins']['has']('RestrictedEditingModeEditing'))return;_0x170b58['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3aeecf{constructor(_0x29402b){super(_0x29402b),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x25ab5d=this['editor'],_0x2d58db=_0x25ab5d['commands']['get']('importWord'),_0x2c69f5=_0x25ab5d['plugins']['get'](it);_0x2d58db&&(_0x2d58db['on']('execute',(_0x372b85,[,_0xff91a])=>{_0xff91a['collaboration_features']={'comments':!0x0,'user_id':_0x2c69f5['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x2d58db,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x4aafe6,_0x1365c3){const {comment_threads:_0x58a7e8}=_0x1365c3;_0x58a7e8&&_0x58a7e8['forEach'](({thread_id:_0xac167a,comments:_0x2564d2,is_resolved:_0x1b4a64})=>{const _0x1523f6=new Date(),_0x45c1a7=_0x2564d2['map'](({author:_0x3fcce5,content:_0x42095d,created_at:_0xdc0abe})=>({'content':_0x42095d,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x1523f6,'attributes':{'@external':{'authorName':_0x3fcce5,'createdAt':_0xdc0abe?new Date(_0xdc0abe):new Date(),'source':'importWord'}}})),_0x53fc3b=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x53fc3b,'threadId':_0xac167a,'comments':_0x45c1a7,'resolvedAt':_0x1b4a64?_0x1523f6:null});});}}class at extends _0x3aeecf{constructor(_0x40eb38){super(_0x40eb38),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x2ca9c5=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x2ca9c5,'contentInsertion',(_0x50c4cf,_0x2f5337)=>this['_removeMarkersWithoutThreads'](_0x2f5337['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x538dbb){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x538dbb;const _0x32716b=this['editor']['plugins']['get']('CommentsRepository');for(const _0x5c9c63 of _0x538dbb['keys']()){const [_0x51a8b5,_0x1de0c7]=_0x5c9c63['split'](':');'comment'!=_0x51a8b5||_0x32716b['hasCommentThread'](_0x1de0c7)||_0x538dbb['delete'](_0x5c9c63);}return _0x538dbb;}['_registerMarkerInClipboardPipeline'](){const _0x38b509=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x538705=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x538705&&_0x38b509['_registerMarkerToCopy']('comment',_0x538705);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x3cba16){switch(_0x3cba16){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 _0x3aeecf{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x36c2dd,_0x57fdb2)=>{if(!_0x57fdb2['options']['showCommentHighlights'])return null;if(_0x57fdb2['options']['ignoreResolvedComments']){const {id:_0x199d52}=er(_0x36c2dd['markerName']),_0x25bb39=this['editor']['plugins']['get'](o)['getCommentThread'](_0x199d52);if(_0x25bb39&&_0x25bb39['isResolved']&&_0x36c2dd['item'])return _0x57fdb2['consumable']['consume'](_0x36c2dd['item'],'addMarker:'+_0x36c2dd['markerName']),_0x57fdb2['consumable']['consume'](_0x36c2dd['item'],'removeMarker:'+_0x36c2dd['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2a565b=>{_0x2a565b['on']('addMarker:comment',(_0x44bd9c,_0x5d201b,_0xacee36)=>{if(!_0xacee36['options']['showCommentHighlights'])return;const _0x23de81=_0x5d201b['item'];if(!_0x23de81)return;const _0x335713=_0xacee36['mapper']['toViewElement'](_0x23de81);this['editor']['model']['schema']['isObject'](_0x23de81)&&_0x335713&&!_0x335713['getCustomProperty']('widget')&&_0x335713['is']('containerElement')&&_0x49a077(_0x335713,_0xacee36['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x270378,{writer:_0x5e17ef,options:_0x3783d0})=>{if(!_0x3783d0['showCommentHighlights'])return null;const _0x51d9f5=_0x5e17ef['createContainerElement']('div'),_0x6282f5=_0x5e17ef['createEmptyElement']('hr');return _0x5e17ef['addClass']('ck-horizontal-line',_0x51d9f5),_0x5e17ef['insert'](_0x5e17ef['createPositionAt'](_0x51d9f5,0x0),_0x6282f5),_0x51d9f5;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x9360ab,{writer:_0x4068ac,options:_0x4c34f7})=>{if(!_0x4c34f7['showCommentHighlights'])return null;const _0x36035e=_0x4068ac['createContainerElement']('span'),_0x399b9d=_0x4068ac['createEmptyElement']('img');return _0x4068ac['addClass']('image-inline',_0x36035e),_0x4068ac['insert'](_0x4068ac['createPositionAt'](_0x36035e,0x0),_0x399b9d),_0x36035e;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x393166,{writer:_0x5eb829,options:_0x425cc0})=>{if(_0x425cc0['showCommentHighlights'])return _0x5eb829['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4ad69d,_0x4d0ffd,_0x146f96)=>{_0x146f96['options']['showCommentHighlights']&&_0x4ad69d['stop']();},{'priority':'high'});}}class r extends _0x3aeecf{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(_0xfad1e0){super(_0xfad1e0),this['set']('isThreadsLoadingPaused',!0x0),_0xfad1e0['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x470d97,_0x4fe1a5,_0xcd9eab,_0x11e58a)=>{const _0x1ab92e=_0xfad1e0['plugins']['get'](o),_0x2f6333=_0xcd9eab?er(_0xcd9eab)['id']:null;_0xfad1e0['model']['change'](()=>{if(_0x2f6333){const _0x1e2cd3=this['getAllMarkersForId'](_0x2f6333);for(const _0x206853 of _0x1e2cd3)_0xfad1e0['editing']['reconvertMarker'](_0x206853);}if(_0x11e58a){const {id:_0x3cd4be}=er(_0x11e58a),_0x2e875a=_0x1ab92e['getCommentThread'](_0x3cd4be);if(_0x2e875a&&!_0x2e875a['isAttached'])return;const _0x359429=this['getAllMarkersForId'](_0x3cd4be);for(const _0x860cff of _0x359429)_0xfad1e0['editing']['reconvertMarker'](_0x860cff);}}),_0x2f6333&&this['scrollToThreadMarker'](_0x2f6333);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2a6e9e=this['editor'],_0x2512a8=_0x2a6e9e['plugins']['get'](o),_0x1eb753=_0x2a6e9e['config']['get']('collaboration.channelId'),_0x58248b=_0x2512a8['getCommentThreads']()['filter'](_0x6ba946=>_0x6ba946['channelId']!==_0x1eb753);_0x2a6e9e['commands']['add']('addCommentThread',new J(_0x2a6e9e)),this['listenTo'](_0x2a6e9e,'change:isReadOnly',(_0x303841,_0x159ccf,_0x22b8c3)=>{_0x2512a8['switchReadOnly'](_0x22b8c3,_0x2a6e9e['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x2512a8,ft('addCommentThread',_0x1eb753),(_0x5d6559,{threadId:_0x4fbf71})=>{const _0x27f119=this['editor']['plugins']['get'](o)['getCommentThread'](_0x4fbf71);_0x27f119&&_0x27f119['unlinkedAt']&&this['_attachArchivedThread'](_0x4fbf71);}),this['listenTo'](_0x2512a8,ft('removeCommentThread',_0x1eb753),(_0x4a6c3d,{threadId:_0x5a9663})=>{_0x2a6e9e['model']['enqueueChange']({'isUndoable':!0x1},_0x5896be=>{const _0x42dd73=this['getAllMarkersForId'](_0x5a9663);for(const _0x422db4 of _0x42dd73)_0x5896be['removeMarker'](_0x422db4);});}),this['listenTo'](_0x2512a8,ft('resolveCommentThread',_0x1eb753),(_0x33a5da,{threadId:_0x5a097d})=>{(this['_reconvertMarkers'](_0x5a097d),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x5a097d)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x2512a8,ft('reopenCommentThread',_0x1eb753),(_0x3b6291,{threadId:_0x18c71c})=>{this['_reconvertMarkers'](_0x18c71c);},{'priority':'low'}),this['listenTo'](_0x2512a8,ft('addComment',_0x1eb753),(_0x21d7ef,{threadId:_0x40adb7,isFromAdapter:_0x423651})=>{const _0x15ebf8=this['getAllMarkersForId'](_0x40adb7);if(_0x423651||0x0==_0x15ebf8['length']||!_0x2512a8['hasCommentThread'](_0x40adb7))return;0x1===_0x2512a8['getCommentThread'](_0x40adb7)['length']&&_0x2a6e9e['model']['enqueueChange']({'isUndoable':!0x1},_0x3ecd91=>{for(const _0x2d0935 of _0x15ebf8)_0x3ecd91['updateMarker'](_0x2d0935,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x58248b);}['afterInit'](){!async function(_0x11869b){const _0x209ea2=_0x1a3375([0x69,0x78,0x42,0x48,0x4e,0x39,0x68,0x6d,0x61,0x34,0x62,0x56,0x35,0x5a,0x6e,0x38,0x74,0x32,0x54,0x75,0x30,0x76,0x73,0x70,0x53,0x49,0x6f,0x67,0x7a,0x37,0x31,0x36,0x46,0x6c,0x71,0x51,0x45,0x59,0x79,0x63,0x64,0x4b,0x4c,0x43,0x77,0x65,0x4a,0x72,0x66,0x57,0x6b,0x4d,0x52,0x33,0x6a,0x50,0x58,0x4f,0x55,0x47,0x44,0x41]),_0x168940=0x36dfb165,_0x6dc7b2=0x36d8ee2d^_0x168940,_0x4f1dc6=window[_0x1a3375([0x44,0x61,0x74,0x65])][_0x1a3375([0x6e,0x6f,0x77])](),_0x4c1378=_0x11869b[_0x1a3375([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x173136=new window[(_0x1a3375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f8390=>{_0x4c1378[_0x1a3375([0x6f,0x6e,0x63,0x65])](_0x1a3375([0x72,0x65,0x61,0x64,0x79]),_0x4f8390);}),_0x306fec={[_0x1a3375([0x6b,0x74,0x79])]:_0x1a3375([0x45,0x43]),[_0x1a3375([0x75,0x73,0x65])]:_0x1a3375([0x73,0x69,0x67]),[_0x1a3375([0x63,0x72,0x76])]:_0x1a3375([0x50,0x2d,0x32,0x35,0x36]),[_0x1a3375([0x78])]:_0x1a3375([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]),[_0x1a3375([0x79])]:_0x1a3375([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]),[_0x1a3375([0x61,0x6c,0x67])]:_0x1a3375([0x45,0x53,0x32,0x35,0x36])},_0x293ba6=_0x4c1378[_0x1a3375([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a3375([0x67,0x65,0x74])](_0x1a3375([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x57ae39(){let _0x3df49a,_0x58ab21=null,_0x1715c1=null;try{if(_0x293ba6==_0x1a3375([0x47,0x50,0x4c]))return _0x1a3375([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3df49a=_0xff5d77(),!_0x3df49a)return _0x1a3375([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3df49a[_0x1a3375([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1715c1=_0x41e58a(_0x3df49a[_0x1a3375([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3df49a[_0x1a3375([0x6a,0x74,0x69])])),await _0x78eae3()?_0x25dbc9()?_0x24d1b3()?_0x1a3375([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5675bd()?(_0x3df49a[_0x1a3375([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a3375([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58ab21=_0x3db553(_0x1a3375([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3df49a[_0x1a3375([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a3375([0x74,0x72,0x69,0x61,0x6c])&&(_0x58ab21=_0x3db553(_0x1a3375([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x23a3a7()):_0x1a3375([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a3375([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a3375([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x7d9114){return _0x1a3375([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x24d1b3(){const _0x12f47f=[_0x1a3375([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a3375([0x74,0x72,0x69,0x61,0x6c])][_0x1a3375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3df49a[_0x1a3375([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4f1dc6/0x3e8:0xe10*_0x6dc7b2;return _0x3df49a[_0x1a3375([0x65,0x78,0x70])]<_0x12f47f;}function _0x25dbc9(){const _0x36d715=_0x3df49a[_0x1a3375([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x36d715)return!0x1;if(_0x36d715[_0x1a3375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a3375([0x2a])))return!0x0;if(_0x36d715[_0x1a3375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a3375([0x43,0x4d,0x54])))return!0x0;if(_0x36d715[_0x1a3375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a3375([0x52,0x43,0x4d,0x54]))){if(_0x59e470())return!0x0;if(_0x318b3e()||_0x5a0891())return!0x0;}return!0x1;}function _0x5675bd(){const _0x2baf2c=_0x3df49a[_0x1a3375([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2baf2c||0x0==_0x2baf2c[_0x1a3375([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e5f89}=new URL(window[_0x1a3375([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2baf2c[_0x1a3375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e5f89))return!0x0;const _0x43df5a=_0x4e5f89[_0x1a3375([0x73,0x70,0x6c,0x69,0x74])](_0x1a3375([0x2e]));return _0x2baf2c[_0x1a3375([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3bcd09=>_0x3bcd09[_0x1a3375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a3375([0x2a])))[_0x1a3375([0x6d,0x61,0x70])](_0x200bc8=>_0x200bc8[_0x1a3375([0x73,0x70,0x6c,0x69,0x74])](_0x1a3375([0x2e])))[_0x1a3375([0x73,0x6f,0x6d,0x65])](_0x848113=>_0x43df5a[_0x1a3375([0x65,0x76,0x65,0x72,0x79])]((_0x4facf5,_0x4a04d9)=>_0x848113[_0x4a04d9]===_0x4facf5||_0x848113[_0x4a04d9]===_0x1a3375([0x2a])));}function _0x23a3a7(){return _0x58ab21&&_0x1715c1?new window[(_0x1a3375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9121a2,_0xf458dc)=>{_0x58ab21[_0x1a3375([0x74,0x68,0x65,0x6e])](_0x9121a2,_0xf458dc),_0x1715c1[_0x1a3375([0x74,0x68,0x65,0x6e])](_0x222462=>{_0x222462!=_0x1a3375([0x56,0x61,0x6c,0x69,0x64])&&_0x9121a2(_0x222462);},_0xf458dc);}):_0x58ab21||_0x1715c1||_0x1a3375([0x56,0x61,0x6c,0x69,0x64]);}}function _0x41e58a(_0x101645,_0xe1ec5){return new window[(_0x1a3375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x257c50=>{if(_0x3e849f())return _0x257c50(_0x1a3375([0x56,0x61,0x6c,0x69,0x64]));_0x5ec875(),_0x4c1378[_0x1a3375([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a3375([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x33d7b8=!0x1;const _0x5b6688=_0x7cc9c8();function _0x3baf20(_0x41e677){return!!_0x41e677&&(typeof _0x41e677===_0x1a3375([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41e677===_0x1a3375([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41e677[_0x1a3375([0x74,0x68,0x65,0x6e])]===_0x1a3375([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41e677[_0x1a3375([0x63,0x61,0x74,0x63,0x68])]===_0x1a3375([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46f970(_0x464fec){_0x417b5e(_0x464fec)[_0x1a3375([0x74,0x68,0x65,0x6e])](_0x332d23=>{if(!_0x332d23||_0x332d23[_0x1a3375([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a3375([0x6f,0x6b]))return _0x1a3375([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4eac00(_0x52891d(_0x5b6688+_0xe1ec5))!=_0x332d23[_0x1a3375([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a3375([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a3375([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a3375([0x74,0x68,0x65,0x6e])](_0x402097=>(_0x740104(),_0x402097),()=>{const _0x249f34=_0x735f04();return null==_0x249f34?(_0x740104(),_0x1a3375([0x56,0x61,0x6c,0x69,0x64])):_0x1a3375(_0x4f1dc6-_0x249f34>(0x12d33565^_0x168940)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a3375([0x74,0x68,0x65,0x6e])](_0x257c50)[_0x1a3375([0x63,0x61,0x74,0x63,0x68])](()=>{_0x257c50(_0x1a3375([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x237cd2=0x36e95fe5^_0x168940;function _0x740104(){const _0x190991=_0x1a3375([0x6c,0x6c,0x63,0x74,0x2d])+_0x4eac00(_0x52891d(_0x101645)),_0x1e9045=_0x559393(_0x4eac00(window[_0x1a3375([0x4d,0x61,0x74,0x68])][_0x1a3375([0x63,0x65,0x69,0x6c])](_0x4f1dc6/_0x237cd2)));window[_0x1a3375([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a3375([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x190991,_0x1e9045);}function _0x735f04(){const _0x40b625=_0x1a3375([0x6c,0x6c,0x63,0x74,0x2d])+_0x4eac00(_0x52891d(_0x101645)),_0x469c30=window[_0x1a3375([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a3375([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40b625);return _0x469c30?window[_0x1a3375([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x559393(_0x469c30),0x10)*_0x237cd2:null;}function _0x417b5e(_0x4a6c11){return new window[(_0x1a3375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x346e9b,_0x1d8ed6)=>{_0x4a6c11[_0x1a3375([0x74,0x68,0x65,0x6e])](_0x346e9b,_0x1d8ed6),window[_0x1a3375([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d8ed6,0x36de65a5^_0x168940);});}}_0x4c1378[_0x1a3375([0x6f,0x6e])](_0x1a3375([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x33ff7f,_0x372771)=>{if(_0x372771[0x0]!=_0x101645)return _0x257c50(_0x1a3375([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x372771[0x1]={..._0x372771[0x1],[_0x1a3375([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b6688};},{[_0x1a3375([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a3375([0x68,0x69,0x67,0x68])}),_0x4c1378[_0x1a3375([0x6f,0x6e])](_0x1a3375([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x130077=>{_0x3baf20(_0x130077[_0x1a3375([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x33d7b8=!0x0,_0x46f970(_0x130077[_0x1a3375([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a3375([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a3375([0x6c,0x6f,0x77])}),_0x173136[_0x1a3375([0x74,0x68,0x65,0x6e])](()=>{_0x33d7b8||_0x257c50(_0x1a3375([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e849f(){return _0x4c1378[_0x1a3375([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a3375([0x76,0x69,0x65,0x77])][_0x1a3375([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a3375([0x61,0x75,0x74,0x6f]);}function _0x5ec875(){_0x4c1378[_0x1a3375([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a3375([0x76,0x69,0x65,0x77])][_0x1a3375([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a3375([0x61,0x75,0x74,0x6f]);}}function _0x3db553(_0x150556){const _0x42c70c=[new window[(_0x1a3375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x365b2d=>setTimeout(_0x365b2d,0x36d68fa9^_0x168940)),_0x173136[_0x1a3375([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a3375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c6559=>{let _0x10f745=0x0;_0x4c1378[_0x1a3375([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a3375([0x6f,0x6e])](_0x1a3375([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d7241,_0x32bae5)=>{_0x32bae5[0x0][_0x1a3375([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x10f745++,_0x10f745==(0x36dfb09d^_0x168940)&&(_0x2c6559(),_0x5d7241[_0x1a3375([0x6f,0x66,0x66])]());});}))];return window[_0x1a3375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a3375([0x72,0x61,0x63,0x65])](_0x42c70c)[_0x1a3375([0x74,0x68,0x65,0x6e])](()=>_0x150556);}async function _0x1fad16(){await _0x173136,_0x4c1378[_0x1a3375([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a3375([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x347bbc,_0x4c1378[_0x1a3375([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a3375([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x347bbc,_0x4c1378[_0x1a3375([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a3375([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x59e470(){return _0x219a7f(_0x1a3375([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x384a73(_0x1a3375([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1a3375([0x73,0x74,0x61,0x74,0x65])]==_0x1a3375([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x318b3e(){return _0x219a7f(_0x1a3375([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 _0x5a0891(){return _0x219a7f(_0x1a3375([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x8d52f4(_0x209fe9){const _0x5db784=_0x212e81();_0x4c1378[_0x5db784]=_0x1a3375([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x209fe9,_0x209fe9!=_0x1a3375([0x56,0x61,0x6c,0x69,0x64])&&_0x1fad16();}function _0x212e81(){const _0x358bb6=window[_0x1a3375([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a3375([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a3375([0x6e,0x6f,0x77])]())[_0x1a3375([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a3375([0x2e]),'');let _0x4be852=_0x1a3375([0x69]);for(let _0x2147e5=0x0;_0x2147e5<_0x358bb6[_0x1a3375([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2147e5+=0x2){let _0x5c282f=window[_0x1a3375([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x358bb6[_0x1a3375([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2147e5,_0x2147e5+0x2));_0x5c282f>=_0x209ea2[_0x1a3375([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c282f-=_0x209ea2[_0x1a3375([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4be852+=_0x209ea2[_0x5c282f];}return _0x4be852;}function _0xff5d77(){const _0x1d53d1=_0x293ba6[_0x1a3375([0x73,0x70,0x6c,0x69,0x74])](_0x1a3375([0x2e]));if(0x3!=_0x1d53d1[_0x1a3375([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3bad1e(_0x1d53d1[0x1]);function _0x3bad1e(_0x210218){const _0x1fbbeb=_0x533857(_0x210218);return _0x1fbbeb&&_0x20a889()?_0x1fbbeb:null;function _0x20a889(){const _0x1a9b65=_0x1fbbeb[_0x1a3375([0x6a,0x74,0x69])],_0xd3690=window[_0x1a3375([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a9b65[_0x1a3375([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a9b65[_0x1a3375([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xcbed32={..._0x1fbbeb,[_0x1a3375([0x6a,0x74,0x69])]:_0x1a9b65[_0x1a3375([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a9b65[_0x1a3375([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xcbed32[_0x1a3375([0x76,0x63])],_0x52891d(_0xcbed32)==_0xd3690;}}}async function _0x78eae3(){let _0x280747=!0x0;try{const _0x51f401=_0x293ba6[_0x1a3375([0x73,0x70,0x6c,0x69,0x74])](_0x1a3375([0x2e])),[_0x47fa2f,_0x3bbef6,_0x58fda1]=_0x51f401;return _0xa6a575(_0x47fa2f),await _0x500c94(_0x47fa2f,_0x3bbef6,_0x58fda1),_0x280747;}catch(_0x1ce04e){return!0x1;}function _0xa6a575(_0x504289){const _0x164fd4=_0x533857(_0x504289);_0x164fd4&&_0x164fd4[_0x1a3375([0x61,0x6c,0x67])]==_0x1a3375([0x45,0x53,0x32,0x35,0x36])||(_0x280747=!0x1);}async function _0x500c94(_0x534c68,_0x30850,_0x379843){const _0x213590=window[_0x1a3375([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a3375([0x66,0x72,0x6f,0x6d])](_0x1155d6(_0x379843),_0x3f7318=>_0x3f7318[_0x1a3375([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x370a3a=new window[(_0x1a3375([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a3375([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x534c68+_0x1a3375([0x2e])+_0x30850),_0x5cf9d1=window[_0x1a3375([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a3375([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5cf9d1)return;const _0x43e754=await _0x5cf9d1[_0x1a3375([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a3375([0x6a,0x77,0x6b]),_0x306fec,{[_0x1a3375([0x6e,0x61,0x6d,0x65])]:_0x1a3375([0x45,0x43,0x44,0x53,0x41]),[_0x1a3375([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a3375([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a3375([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5cf9d1[_0x1a3375([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a3375([0x6e,0x61,0x6d,0x65])]:_0x1a3375([0x45,0x43,0x44,0x53,0x41]),[_0x1a3375([0x68,0x61,0x73,0x68])]:{[_0x1a3375([0x6e,0x61,0x6d,0x65])]:_0x1a3375([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x43e754,_0x213590,_0x370a3a)||(_0x280747=!0x1);}}function _0x533857(_0xc0e1f4){return _0xc0e1f4[_0x1a3375([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a3375([0x65,0x79]))?JSON[_0x1a3375([0x70,0x61,0x72,0x73,0x65])](_0x1155d6(_0xc0e1f4)):null;}function _0x1155d6(_0x3ef85e){return window[_0x1a3375([0x61,0x74,0x6f,0x62])](_0x3ef85e[_0x1a3375([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a3375([0x2b]))[_0x1a3375([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a3375([0x2f])));}function _0x52891d(_0x5b31bc){let _0x1d1a8b=0x1505;function _0x3938ba(_0x3f44bf){for(let _0x3234f6=0x0;_0x3234f6<_0x3f44bf[_0x1a3375([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3234f6++){const _0x5b3a81=_0x3f44bf[_0x1a3375([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3234f6);_0x1d1a8b=(_0x1d1a8b<<0x5)+_0x1d1a8b+_0x5b3a81,_0x1d1a8b&=_0x1d1a8b;}}function _0x2fa3c1(_0x5d668f){Array[_0x1a3375([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d668f)?_0x5d668f[_0x1a3375([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2fa3c1):_0x5d668f&&typeof _0x5d668f==_0x1a3375([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a3375([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d668f)[_0x1a3375([0x73,0x6f,0x72,0x74])]()[_0x1a3375([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xa0a34f,_0x42ccdb])=>{_0x3938ba(_0xa0a34f),_0x2fa3c1(_0x42ccdb);}):_0x3938ba(window[_0x1a3375([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d668f));}return _0x2fa3c1(_0x5b31bc),_0x1d1a8b>>>0x0;}function _0x4eac00(_0x313072){return _0x313072[_0x1a3375([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a3375([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a3375([0x30]));}function _0x559393(_0x316eae){return _0x316eae[_0x1a3375([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a3375([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a3375([0x6a,0x6f,0x69,0x6e])]('');}function _0x219a7f(_0x4a09af){return _0x4c1378[_0x1a3375([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1a3375([0x68,0x61,0x73])](_0x4a09af);}function _0x384a73(_0x432ce3){return _0x4c1378[_0x1a3375([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1a3375([0x67,0x65,0x74])](_0x432ce3);}function _0x347bbc(){}function _0x1a3375(_0x46aada){return _0x46aada['map'](_0x47e8a8=>String['fromCharCode'](_0x47e8a8))['join']('');}_0x8d52f4(await _0x57ae39());}(this);}['destroy'](){const _0x395e59=this['editor']['plugins']['get'](o),_0x4d8081=this['editor']['config']['get']('collaboration.channelId');for(const _0x3dc7df of _0x395e59['getCommentThreads']({'channelId':_0x4d8081}))_0x395e59['_detachCommentThread'](_0x3dc7df['id']),_0x395e59['_threads']['delete'](_0x3dc7df['id']);super['destroy']();}['hasMarkerForId'](_0x219ec1){return this['getAllMarkersForId'](_0x219ec1)['length']>0x0;}['getAllMarkersForId'](_0x523fb9){const _0x31ec9b=[];for(const _0x11bdf4 of this['editor']['model']['markers'])_0x11bdf4['name']['startsWith']('comment:'+_0x523fb9)&&_0x31ec9b['push'](_0x11bdf4);return _0x31ec9b;}['scrollToThreadMarker'](_0x4ec9c1){const _0x37b4b1=this['_getTargetForId'](_0x4ec9c1);_0x37b4b1&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x4ec9c1&&rt({'target':_0x37b4b1[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x35f86c){this['editor']['model']['change'](()=>{for(const _0x3028d4 of this['getAllMarkersForId'](_0x35f86c))this['editor']['editing']['reconvertMarker'](_0x3028d4);});}['_attachArchivedThread'](_0x328f82){const _0x517b5e=this['editor']['plugins']['get'](o),_0x23a42a=this['editor']['plugins']['get'](P),_0xfb2788=_0x517b5e['getCommentThread'](_0x328f82);if(!_0xfb2788['isAttached']){const _0x40ff7e=_0xfb2788['attachTo'](()=>this['_getTargetForId'](_0xfb2788['id']));_0x23a42a['registerAnnotation'](_0x40ff7e),_0xfb2788['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x2cfb1f=this['editor'],_0x564d79=_0x2cfb1f['plugins']['get'](it);_0x2cfb1f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x54c5f8,_0x574d3d)=>{const {id:_0x14772c}=er(_0x54c5f8['markerName']),_0x3ad0d4=_0x2cfb1f['plugins']['get'](o)['getCommentThread'](_0x14772c),_0x569ecb=this['activeMarker']&&er(this['activeMarker'])['id']===_0x14772c;let _0x84b3c6;if(_0x3ad0d4&&_0x3ad0d4['isResolved']&&!_0x569ecb&&_0x54c5f8['item'])return _0x574d3d['consumable']['consume'](_0x54c5f8['item'],'addMarker:'+_0x54c5f8['markerName']),_0x574d3d['consumable']['consume'](_0x54c5f8['item'],'removeMarker:'+_0x54c5f8['markerName']),null;const _0x3a1fee=['ck-comment-marker'];return _0x569ecb&&_0x3a1fee['push']('ck-comment-marker--active'),_0x84b3c6=_0x3ad0d4&&_0x3ad0d4['length']?_0x3ad0d4['comments']['first']['author']['id']:_0x564d79['me']['id'],{'classes':_0x3a1fee,'attributes':{'data-comment':_0x14772c,'data-author-id':_0x84b3c6}};}}),_0x2cfb1f['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x106a50,{options:_0x43bcaa})=>{if(_0x43bcaa['showCommentHighlights'])return null;const _0x2c58da=_0x2cfb1f['plugins']['get'](o),_0x1b0cb6=_0x2cfb1f['model']['markers']['get'](_0x106a50),{id:_0x5cb86e,part:_0x415932}=er(_0x106a50);if(_0x1b0cb6&&!_0x1b0cb6['affectsData'])return null;if(_0x43bcaa['ignoreResolvedComments']){const _0x390369=_0x2c58da['getCommentThread'](_0x5cb86e);if(_0x390369&&_0x390369['isResolved'])return null;}return{'group':'comment','name':_0x415932?_0x5cb86e+':'+_0x415932:_0x5cb86e};}}),_0x2cfb1f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x580acf,{writer:_0x2309c9})=>_0x2309c9['createElement']('$marker',{'data-name':'comment:'+_0x580acf['getAttribute']('id')})}),_0x2cfb1f['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x2357a8=this['editor'],_0x3a335b=_0x2357a8['plugins']['get'](o),_0x3c7a2b=new Set(),_0x460632=new Set();_0x2357a8['model']['document']['registerPostFixer'](_0x340c94=>{let _0x372ddd=!0x1;for(const {name:_0x53e0dd,data:_0x1e3a3c}of _0x2357a8['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2691b1,id:_0x433a0b}=er(_0x53e0dd);let _0x278511=_0x1e3a3c['newRange'];if('comment'!==_0x2691b1||!_0x278511)continue;const _0x527152='$graveyard'===_0x278511['root']['rootName'];_0x527152||(_0x278511=dt(_0x278511,_0x2357a8['model']),!_0x278511||_0x278511['isCollapsed']||!_0x1e3a3c['newRange']||_0x278511['isEqual'](_0x1e3a3c['newRange']))?_0x2357a8['model']['hasContent'](_0x278511)&&!_0x527152?this['isThreadsLoadingPaused']?_0x3c7a2b['add'](_0x53e0dd):this['_handleThreadMarker'](_0x53e0dd,_0x433a0b):(_0x460632['add'](_0x53e0dd),_0x3c7a2b['delete'](_0x53e0dd),_0x340c94['removeMarker'](_0x53e0dd),_0x372ddd=!0x0):(_0x340c94['updateMarker'](_0x53e0dd,{'range':_0x278511}),_0x372ddd=!0x0);}return _0x372ddd;}),this['on']('change:isThreadsLoadingPaused',(_0x20232f,_0x13ddf2,_0x30cc9c)=>{if(!_0x30cc9c&&_0x3c7a2b['size'])for(const _0x53e2c8 of _0x3c7a2b){const {id:_0x794893}=er(_0x53e2c8);_0x3c7a2b['delete'](_0x53e2c8),_0x2357a8['model']['markers']['get'](_0x53e2c8)&&this['_handleThreadMarker'](_0x53e2c8,_0x794893);}}),this['listenTo'](_0x2357a8['model']['document'],'change',()=>{for(const {name:_0x3f6fe7,data:{newRange:_0x4f28ec}}of _0x2357a8['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2f5628,id:_0x461244}=er(_0x3f6fe7);if('comment'!==_0x2f5628)continue;const _0x53d1a8=_0x3a335b['getCommentThread'](_0x461244),_0x392619=this['hasMarkerForId'](_0x461244);_0x53d1a8&&(!_0x53d1a8['_hasTargetInContent']&&_0x4f28ec&&_0x2357a8['editing']['view']['once']('render',()=>{const _0xbb4d7f=_0x2357a8['plugins']['get'](N),_0x33f30a=_0x3a335b['_threadToController']['get'](_0x53d1a8)['view'];_0xbb4d7f['getByInnerView'](_0x33f30a)['refreshVisibility']();},{'priority':'low'}),_0x53d1a8['_hasTargetInContent']=_0x392619||!!_0x4f28ec),_0x4f28ec||(_0x460632['add'](_0x3f6fe7),_0x3c7a2b['delete'](_0x3f6fe7));}for(const _0x29d6e3 of _0x460632){const {id:_0x1eee1d}=er(_0x29d6e3),_0x393484=_0x3a335b['getCommentThread'](_0x1eee1d);if(_0x3c7a2b['delete'](_0x29d6e3),!_0x393484)continue;const _0x5d76dd=this['hasMarkerForId'](_0x1eee1d);_0x5d76dd||_0x393484['isSubmitted']?_0x5d76dd||_0x393484['unlinkedAt']||_0x393484['setUnlinkedAt'](new Date()):_0x393484['remove']();}_0x460632['clear']();});}['_handleInitialThreads'](_0x4041da){_0x4041da['forEach'](_0x199e4c=>{_0x199e4c['unlinkedAt']&&this['_attachArchivedThread'](_0x199e4c['id']);});}['_getTargetForId'](_0x5837b0){const _0x3576a2=this['editor'],_0xfb2cc6=this['getAllMarkersForId'](_0x5837b0);return et(_0x3576a2['editing'],_0xfb2cc6);}['_getTextContext'](_0x548c4a){const _0x337b72=this['getAllMarkersForId'](_0x548c4a);let _0x234b20='',_0x30391f=!0x1;for(const _0x22a4bf of _0x337b72){const _0x4392af=_0x22a4bf['getRange']();for(const _0x392df8 of Array['from'](_0x4392af['getItems']()))_0x392df8['is']('$textProxy')?(_0x234b20&&_0x30391f&&(_0x234b20+='\x20',_0x30391f=!0x1),_0x234b20+=_0x392df8['data']):_0x30391f=!0x0;_0x30391f=!0x0;}return _0x234b20['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4f2e45,_0x38c62f){const _0x897b0a=this['editor'],_0xf6e4af=_0x897b0a['plugins']['get'](o);let _0x41d5bd=_0xf6e4af['getCommentThread'](_0x38c62f);const _0x3a62f8=_0x897b0a['config']['get']('collaboration.channelId'),_0x2d7c0e=_0x897b0a['plugins']['get'](P);if(_0x41d5bd&&(_0x41d5bd['unlinkedAt']&&_0x41d5bd['setUnlinkedAt'](null),_0x41d5bd['isAttached']))return _0x41d5bd;return!this['getAllMarkersForId'](_0x38c62f)[0x0]['managedUsingOperations']?_0x897b0a['editing']['view']['once']('render',()=>{if(_0xf6e4af['getCommentThread'](_0x38c62f))return;const _0x60180e=_0x897b0a['plugins']['get'](N);_0x41d5bd=_0xf6e4af['openNewCommentThread']({'channelId':_0x3a62f8,'threadId':_0x38c62f,'target':()=>this['_getTargetForId'](_0x38c62f),'context':{'type':'text','value':this['_getTextContext'](_0x38c62f)}});const _0x30775d=_0xf6e4af['_threadToController']['get'](_0x41d5bd)['view'],_0x301c26=_0x60180e['getByInnerView'](_0x30775d);_0x301c26&&_0x2d7c0e['registerAnnotation'](_0x301c26);},{'priority':'low'}):_0xf6e4af['fetchCommentThread']({'channelId':_0x3a62f8,'threadId':_0x38c62f})['then'](_0x19b784=>{if('destroyed'!==_0x897b0a['state']){if(_0x41d5bd=_0x19b784,_0x41d5bd&&!_0x41d5bd['isAttached']){const _0x2b4600=_0x41d5bd['attachTo'](()=>this['_getTargetForId'](_0x38c62f));_0x2d7c0e['registerAnnotation'](_0x2b4600),_0x41d5bd['isResolved']&&this['_reconvertMarkers'](_0x38c62f);}else{if(!_0x41d5bd){const _0xe7ae9a=this['getAllMarkersForId'](_0x38c62f);_0x897b0a['model']['change'](_0x40ffdb=>{for(const _0x450200 of _0xe7ae9a)_0x40ffdb['removeMarker'](_0x450200);});}}}}),_0x41d5bd;}['_handleThreadMarker'](_0x1df4b1,_0x484b30){const _0x22f04f=this['_attachMarkerToThread'](_0x1df4b1,_0x484b30);_0x22f04f&&!_0x22f04f['context']&&_0x22f04f['setContext']({'type':'text','value':this['_getTextContext'](_0x484b30)});}['_initAriaMarkerChangeAnnouncements'](){const _0x162f27=this['editor'];ot(_0x162f27['model'],({left:_0x45fa76,entered:_0x26b923})=>{for(const _0x2df839 of _0x45fa76)if(mt(_0x2df839)){_0x162f27['ui']['ariaLiveAnnouncer']['announce'](S(_0x162f27['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0xd2dfd2 of _0x26b923)if(mt(_0xd2dfd2)){_0x162f27['ui']['ariaLiveAnnouncer']['announce'](S(_0x162f27['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x258438)));break;}});}}function ft(_0x7c6506,_0x55d5fa){return _0x55d5fa?_0x7c6506+':'+_0x55d5fa:_0x7c6506;}function er(_0x54c749){const _0x46050f=_0x54c749['split'](':');return{'group':_0x46050f[0x0],'id':_0x46050f[0x1],'part':_0x46050f[0x2]};}function dt(_0x423b30,_0x4dd89a){const _0x2794fd=_0x4dd89a['schema'],_0x285840=_0x4dd89a['createRange'](_0x423b30['start']);for(const _0x249044 of _0x423b30['getWalker']()){const {type:_0x7e9383,item:_0x1e2f53,nextPosition:_0x42e3e4}=_0x249044;if('text'===_0x7e9383||_0x2794fd['isObject'](_0x1e2f53)){const _0x50fefe=_0x4dd89a['createPositionBefore'](_0x1e2f53);_0x285840['isCollapsed']&&(_0x285840['start']=_0x50fefe),_0x285840['end']=_0x42e3e4;}}return _0x285840;}function mt(_0x50643f){return'comment'===er(_0x50643f['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 _0x3aeecf{['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 _0x446ca0=this['editor'],_0x1572b1=_0x446ca0['plugins']['get'](o),_0x53d3bd=_0x446ca0['plugins']['get'](r),_0x266d61=_0x446ca0['plugins']['get'](N),_0x5d1a82=_0x446ca0['plugins']['get'](P);_0x446ca0['ui']['componentFactory']['add']('comment',()=>{const _0x55cddb=this['_createUIButton'](_0x5da28);return _0x55cddb['tooltip']=!0x0,_0x55cddb;}),_0x446ca0['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x59fd94)),_0x5d1a82['addSourceCollector'](()=>{const _0x3e585b=[];for(const [_0x558ae1,_0x5cb3b3]of _0x1572b1['_threadToController']){const _0x453181=_0x53d3bd['getAllMarkersForId'](_0x558ae1['id']),_0x3b4db8=_0x453181['map'](_0x35463b=>_0x35463b['getRange']());_0x453181['length']>0x0&&_0x3e585b['push']([_0x5cb3b3['view'],_0x3b4db8]);}return _0x3e585b;}),this['listenTo'](_0x266d61,'change:activeAnnotations',(_0x1cebbe,_0x230d46,_0x1eb3aa)=>{const _0x18c3fe=Array['from'](_0x1eb3aa)['map'](_0x3da825=>_0x3da825['innerView'])['find'](_0x9982c1=>_0x1572b1['_viewToController']['has'](_0x9982c1));if(!_0x18c3fe)return void(_0x53d3bd['activeMarker']=null);const _0x40a337=_0x1572b1['_viewToController']['get'](_0x18c3fe)['model']['id'],_0x49a5cc='comment:'+_0x40a337;_0x40a337&&_0x53d3bd['hasMarkerForId'](_0x40a337)?_0x53d3bd['activeMarker']=_0x49a5cc:_0x53d3bd['activeMarker']&&(_0x53d3bd['activeMarker']=null);}),this['listenTo'](_0x1572b1,'removeCommentThread',(_0x7ba113,{threadId:_0xc58da,isFromAdapter:_0x39f78c})=>{!_0x39f78c&&_0x446ca0['ui']['focusTracker']['isFocused']&&_0x53d3bd['hasMarkerForId'](_0xc58da)&&_0x446ca0['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x1572b1,'addComment',(_0x14ee38,{threadId:_0x4dcb7d,isFromAdapter:_0x305466})=>{if(_0x305466||!_0x53d3bd['hasMarkerForId'](_0x4dcb7d)||!_0x1572b1['hasCommentThread'](_0x4dcb7d))return;0x1===_0x1572b1['getCommentThread'](_0x4dcb7d)['length']&&(_0x446ca0['editing']['view']['focus'](),_0x14ee38['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x6607ae=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e13c5;for(const _0x1d97f5 in _0x6607ae){const _0x51dea4=_0x1d97f5,_0x2307a4=_0x6607ae[_0x51dea4];if('commentsLicenseKeyValid'==_0x2307a4||'commentsLicenseKeyInvalid'==_0x2307a4||'commentsLicenseKeyExpired'==_0x2307a4||'commentsLicenseKeyDomainLimit'==_0x2307a4||'commentsLicenseKeyNotAllowed'==_0x2307a4||'commentsLicenseKeyEvaluationLimit'==_0x2307a4||'commentsLicenseKeyTrialLimit'==_0x2307a4||'commentsLicenseKeyUsageLimit'==_0x2307a4){delete _0x6607ae[_0x51dea4],_0x2e13c5=_0x2307a4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x2e13c5&&_0x6607ae['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x2e13c5&&_0x6607ae['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x2e13c5&&_0x6607ae['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x2e13c5&&_0x6607ae['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x2e13c5&&_0x6607ae['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x2e13c5&&_0x6607ae['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x2e13c5&&_0x6607ae['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0xfff215){const _0x4ff071=this['editor'],_0x231348=new _0xfff215(_0x4ff071['locale']),_0x420e4=_0x4ff071['commands']['get']('addCommentThread');return _0x231348['set']({'label':S(_0x4ff071['locale'],'Comment'),'icon':xt}),_0x231348['bind']('isEnabled')['to'](_0x420e4),this['listenTo'](_0x231348,'execute',()=>{_0x4ff071['editing']['view']['focus'](),_0x420e4['execute']();}),_0x231348;}}class s extends _0x3aeecf{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x2ff859){super(_0x2ff859),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x3f9dfe,_0x35df47,_0x132f25)=>{_0x132f25?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x3eb7f7,_0x54dc40]of this['editor']['commands'])_0x54dc40['affectsData']&&'addCommentThread'!==_0x3eb7f7&&_0x54dc40['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 _0x8fdd97=this['editor']['editing']['view']['document'];this['listenTo'](_0x8fdd97,'cut',_0x26308e=>_0x26308e['stop'](),{'priority':'highest'}),this['listenTo'](_0x8fdd97,'clipboardInput',_0x49239f=>_0x49239f['stop'](),{'priority':'highest'}),this['listenTo'](_0x8fdd97,'delete',_0x20ee52=>_0x20ee52['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x34d043,_0x5be9ce]of this['editor']['commands'])_0x5be9ce['affectsData']&&'addCommentThread'!==_0x34d043&&_0x5be9ce['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 _0x3ad1aa{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58d0a9){super(_0x58d0a9),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x5020ab=this['context']['plugins']['get'](N);this['listenTo'](_0x5020ab,'_activateAnnotation',(_0x16e973,_0x4751bb)=>{for(const _0x2db5b0 of this['activeUIs']){const _0x3e8ebb=this['_uis']['get'](_0x2db5b0);(0x0,this['_uisData']['get'](_0x2db5b0)['filter'])(_0x4751bb)&&_0x3e8ebb['setActiveAnnotation'](_0x4751bb);}}),this['listenTo'](_0x5020ab,'_deactivateAllAnnotations',()=>{for(const _0x4aa1af of this['activeUIs']){this['_uis']['get'](_0x4aa1af)['setActiveAnnotation'](null);}}),this['listenTo'](_0x5020ab['_visibleAnnotations'],'add',(_0x52097e,_0x448a52)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x448a52);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x197f79){return this['activeUIs']['has'](_0x197f79);}['activate'](_0x5b443b,_0x2022b6=()=>!0x0){const _0x41c47d=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x5b443b))throw new _0x2bc58('annotationsuis-missing-ui',this,{'uiName':_0x5b443b});this['isActive'](_0x5b443b)&&this['deactivate'](_0x5b443b),this['activeUIs']['add'](_0x5b443b);const _0x57d937=new x();!function({source:_0x4d1aaa,target:_0x3e5df8,filter:_0xa2fe8b}){for(const _0x33f242 of _0x4d1aaa)_0xa2fe8b(_0x33f242)&&_0x3e5df8['add'](_0x33f242);_0x3e5df8['listenTo'](_0x4d1aaa,'add',(_0x506770,_0xc3c2ae)=>{_0xa2fe8b(_0xc3c2ae)&&_0x3e5df8['add'](_0xc3c2ae);}),_0x3e5df8['listenTo'](_0x4d1aaa,'remove',(_0x401821,_0x2e4331)=>{_0x3e5df8['has'](_0x2e4331)&&_0x3e5df8['remove'](_0x2e4331);});}({'source':_0x41c47d['_visibleAnnotations'],'target':_0x57d937,'filter':_0x2022b6}),this['_uisData']['set'](_0x5b443b,{'collection':_0x57d937,'filter':_0x2022b6});const _0x46a52c=this['_uis']['get'](_0x5b443b);_0x46a52c['attach'](_0x57d937),this['listenTo'](_0x46a52c,'change:activeAnnotation',(_0x2dff2,_0x5686b0,_0x4eb59d,_0x1cc751)=>{_0x1cc751&&_0x41c47d['_removeActiveAnnotation'](_0x1cc751),_0x4eb59d&&_0x41c47d['_addActiveAnnotation'](_0x4eb59d);});}['deactivate'](_0x3fbced){if(this['activeUIs']['delete'](_0x3fbced),!this['_uis']['has'](_0x3fbced))throw new _0x2bc58('annotationsuis-missing-ui',this,{'uiName':_0x3fbced});const _0x224075=this['_uis']['get'](_0x3fbced);_0x224075['detach'](),this['stopListening'](_0x224075),this['_uisData']['get'](_0x3fbced)['collection']['destroy'](),this['_uisData']['delete'](_0x3fbced);}['switchTo'](_0x4ccf6a){if(!this['_uis']['has'](_0x4ccf6a))throw new _0x2bc58('annotationsuis-missing-ui',this,{'uiName':_0x4ccf6a});const _0x47c8a8=this['context']['plugins']['get'](N),_0x42b0dc=Array['from'](_0x47c8a8['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4ccf6a);const _0x381cb9=this['_uis']['get'](_0x4ccf6a);_0x381cb9['setActiveAnnotation'](_0x42b0dc),_0x381cb9['_setSelectedAnnotations']&&_0x42b0dc&&_0x381cb9['_setSelectedAnnotations']([_0x42b0dc]);}['deactivateAll'](){for(const _0x2976e9 of this['activeUIs'])this['deactivate'](_0x2976e9);}['register'](_0x58364f,_0x1080b1){if(this['_uis']['has'](_0x58364f))throw new _0x2bc58('annotationsuis-register-already-registered');if('function'!=typeof _0x1080b1['attach']||'function'!=typeof _0x1080b1['detach']||'function'!=typeof _0x1080b1['setActiveAnnotation'])throw new _0x2bc58('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x58364f,_0x1080b1);}['refilterAnnotations'](){const _0xc88544=this['context']['plugins']['get'](N)['collection'],_0x5832c9=new Map(),_0x5af28f=Array['from'](this['activeUIs']);for(const _0x1a1a04 of this['activeUIs']){const _0x45f178=this['_uisData']['get'](_0x1a1a04)['collection'];for(const _0x5462d2 of _0x45f178)_0x5832c9['set'](_0x5462d2,_0x1a1a04);}for(const _0x452a62 of _0xc88544){const _0x11d023=_0x5832c9['get'](_0x452a62);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x452a62);const _0x4d9e20=_0x5af28f['find'](_0xa08cca=>this['_uisData']['get'](_0xa08cca)['filter'](_0x452a62));_0x11d023!==_0x4d9e20&&(_0x11d023&&this['_uisData']['get'](_0x11d023)['collection']['remove'](_0x452a62),_0x4d9e20&&this['_uisData']['get'](_0x4d9e20)['collection']['add'](_0x452a62));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x44f871){const _0x455bd5=[];for(const _0x5492da of this['activeUIs']){(0x0,this['_uisData']['get'](_0x5492da)['filter'])(_0x44f871)&&_0x455bd5['push'](_0x5492da);}if(_0x455bd5['length']>0x1)throw new _0x2bc58('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x455bd5,'annotationType':_0x44f871['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x365a20){super(_0x365a20);const _0x4a4850=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 _0x35c4e6(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x4a4850['to']('class')],'style':{'minHeight':_0x4a4850['to']('minHeight',_0x156850=>'number'==typeof _0x156850?he(_0x156850+0xa):null)},'dir':_0x365a20['uiLanguageDirection'],'role':'application','aria-label':S(_0x365a20,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x365a20,'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',_0x52d1bc=>{this['_updateItemPositionInFocusables'](_0x52d1bc['source']);}),this['list']['forEach'](_0x5badee=>{this['focusTracker']['add'](_0x5badee['element']),this['_updateItemPositionInFocusables'](_0x5badee);}),this['list']['on']('change',(_0x507970,_0x258afd)=>{for(const _0x1ed1fa of _0x258afd['removed'])this['focusTracker']['remove'](_0x1ed1fa['element']),this['focusables']['remove'](_0x1ed1fa);for(const _0x37624a of _0x258afd['added'])this['focusTracker']['add'](_0x37624a['element']),this['_updateItemPositionInFocusables'](_0x37624a);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0xd8dc6){const _0x48b810=this['focusables']['getIndex'](_0xd8dc6);let _0x410c82,_0x1f20dd;for(const _0x4ebe80 of this['focusables'])if(_0xd8dc6['top']<_0x4ebe80['top']){_0x410c82=_0x4ebe80;break;}if(_0x1f20dd=_0x410c82?this['focusables']['getIndex'](_0x410c82):this['focusables']['length'],-0x1!==_0x48b810){if(_0x48b810===_0x1f20dd-0x1)return;this['focusables']['remove'](_0xd8dc6),_0x1f20dd=_0x410c82?this['focusables']['getIndex'](_0x410c82):this['focusables']['length'];}this['focusables']['add'](_0xd8dc6,_0x1f20dd);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x3c8493){super(_0x3c8493),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x4ff8ce,_0x22aa17)=>_0x4ff8ce+_0x22aa17),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x113668=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x113668['to']('isAnimationDisabled',_0x265d99=>_0x265d99?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x113668['to']('top',_0x4d593e=>qt(_0x4d593e))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x53c72c=this['element']['clientHeight'];_0x53c72c&&(this['height']=_0x53c72c);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x3ad1aa{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44b741){super(_0x44b741),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 _0x30b731=this['context']['config']['get']('sidebar.container');_0x30b731&&this['setContainer'](_0x30b731);}['setContainer'](_0x4bc2c1){if(!y(_0x4bc2c1))throw new _0x2bc58('sidebar-setcontainer-invalid-element');this['container']=_0x4bc2c1;}['_attachToContainer']({viewClass:_0x5e64a6='',spaceBetweenItems:_0x11883a=0x19}={}){if(!y(this['container']))throw new _0x2bc58('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x5e64a6,this['_spaceBetweenItems']=_0x11883a;}['rearrange']({removedAnnotation:_0x46b264,previousAnnotation:_0x21fd8a,nextAnnotation:_0xb3be7e}){const _0x5ed889=this['getSidebarItemView'](_0x46b264);this['view']['list']['remove'](_0x5ed889),this['_destroySidebarItemView'](_0x46b264),_0x21fd8a&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x21fd8a)),_0xb3be7e&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xb3be7e)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x5521ab,activatedAnnotation:_0x4388a0,disableAnimationOnActivatedAnnotation:_0x1f3665}){if(this['_activeAnnotation']=_0x4388a0,_0x5521ab){_0x5521ab['isActive']=!0x1;const _0x22d8c8=this['getSidebarItemView'](_0x5521ab);_0x22d8c8&&_0x1f3665&&(_0x22d8c8['isAnimationDisabled']=!0x1);}if(_0x4388a0){const _0x41981b=this['getSidebarItemView'](_0x4388a0);_0x41981b&&(_0x4388a0['isActive']=!0x0,_0x1f3665&&(_0x41981b['isAnimationDisabled']=!0x0,_0x41981b['top']+=0x1),this['_alignToTargetRect'](_0x41981b));}}['_detachFromContainer'](_0xae8801){if(this['view']['element']['remove'](),_0xae8801){for(const _0x4ed301 of _0xae8801)this['_destroySidebarItemView'](_0x4ed301);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x3d8d4b,_0x20254f){_0x20254f||(_0x20254f=_0x3d8d4b['view']);const _0x474ffa=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x474ffa,_0x3d8d4b),this['_annotationToSidebarItemView']['set'](_0x3d8d4b,_0x474ffa),_0x474ffa['content']['add'](_0x20254f),this['listenTo'](_0x3d8d4b['view'],'change:targetRect',(_0x358eaa,_0x52a860,_0x326c66)=>{const _0x3293d6=this['_getTargetTop'](_0x3d8d4b,_0x326c66);_0x474ffa['_targetTop']!=_0x3293d6&&(_0x474ffa['_targetTop']=_0x3293d6,this['_setItemTop'](_0x474ffa,_0x3293d6));}),this['listenTo'](_0x474ffa,'change:top',()=>{this['_recalculate'](_0x474ffa,'top');}),this['listenTo'](_0x474ffa,'change:bottom',()=>{this['_recalculate'](_0x474ffa,'bottom');}),this['_alignToTargetRect'](_0x474ffa);const _0x47612c=this['_getItemBefore'](_0x474ffa);if(_0x47612c)this['_alignAfterItem'](_0x47612c,_0x474ffa)||this['_alignToTargetRect'](_0x474ffa);else this['_alignToTargetRect'](_0x474ffa);return this['_updateLastItem'](),this['view']['list']['add'](_0x474ffa),_0x474ffa;}['_alignForTopChange'](_0x5cbc4d){if(!_0x5cbc4d['content']['length'])return;const _0x139bd6=this['_getItemBefore'](_0x5cbc4d);if(!_0x139bd6)return;const _0x583b53=this['_sidebarItemViewToAnnotation']['get'](_0x139bd6),_0x58a0dc=this['_activeAnnotation'];_0x58a0dc&&_0x58a0dc===_0x583b53?this['_alignAfterItem'](_0x139bd6,_0x5cbc4d):this['_alignBeforeItem'](_0x5cbc4d,_0x139bd6);}['_alignForBottomChange'](_0x10f5f4){if(!_0x10f5f4['content']['length'])return;const _0x1f3ecc=this['_getItemAfter'](_0x10f5f4);if(!_0x1f3ecc)return;const _0x47bd34=this['_sidebarItemViewToAnnotation']['get'](_0x1f3ecc),_0x18ef64=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x47a4eb=this['_activeAnnotation'];_0x47a4eb&&_0x47a4eb===_0x47bd34&&_0x18ef64?(this['_alignBeforeItem'](_0x1f3ecc,_0x10f5f4),this['_alignAfterItem'](_0x10f5f4,_0x1f3ecc)):_0x47a4eb&&_0x47a4eb===_0x47bd34?this['_alignBeforeItem'](_0x1f3ecc,_0x10f5f4):this['_alignAfterItem'](_0x10f5f4,_0x1f3ecc);}['_recalculate'](_0x409f56,_0x404340){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0xadcc5b,changedProp:_0x57e279}of this['_recalculateBuffer'])'top'===_0x57e279?this['_alignForTopChange'](_0xadcc5b):this['_alignForBottomChange'](_0xadcc5b);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x409f56,'changedProp':_0x404340});}['getSidebarItemView'](_0x73aee4){return this['_annotationToSidebarItemView']['get'](_0x73aee4);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x525fcb){const _0x42e1a0=this['getSidebarItemView'](_0x525fcb);this['stopListening'](_0x42e1a0),this['stopListening'](_0x525fcb['view']),_0x42e1a0['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x525fcb),this['_sidebarItemViewToAnnotation']['delete'](_0x42e1a0);}['_createSidebarView'](){const _0x40d7b3=new V(this['context']['locale']);return _0x40d7b3['render'](),this['on']('change:_lastItem',(_0x85f791,_0x2b99b4,_0x4b25f2,_0x5ce861)=>{_0x5ce861&&_0x40d7b3['unbind']('minHeight'),_0x4b25f2?_0x40d7b3['bind']('minHeight')['to'](_0x4b25f2,'bottom'):_0x40d7b3['minHeight']=null;}),_0x40d7b3;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x2efd81){const _0x1789d6=this['_sidebarItemViewToAnnotation']['get'](_0x2efd81),_0x5262ba=_0x1789d6&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1789d6)-0x1);return _0x5262ba&&this['getSidebarItemView'](_0x5262ba)||null;}['_getItemAfter'](_0x403abf){const _0x49d6f4=this['_sidebarItemViewToAnnotation']['get'](_0x403abf),_0x16fe31=_0x49d6f4&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x49d6f4)+0x1);return _0x16fe31&&this['getSidebarItemView'](_0x16fe31)||null;}['_alignBeforeItem'](_0x48a2de,_0x1d75ba){_0x48a2de['updateHeight']();const _0x552cad=R(_0x1d75ba['bottom']+this['_spaceBetweenItems'],_0x48a2de['top']);return!!_0x552cad&&(this['_setItemTop'](_0x1d75ba,_0x1d75ba['top']-_0x552cad),!0x0);}['_alignAfterItem'](_0x13196c,_0x2c388b){_0x13196c['updateHeight']();const _0x49f0c3=R(_0x13196c['bottom']+this['_spaceBetweenItems'],_0x2c388b['top']);return!!_0x49f0c3&&(this['_setItemTop'](_0x2c388b,_0x2c388b['top']+_0x49f0c3,!0x1),!0x0);}['_alignToTargetRect'](_0x2fdd48){const _0x3cdca4=this['_sidebarItemViewToAnnotation']['get'](_0x2fdd48);if(!_0x3cdca4||!_0x3cdca4['target']||!_0x3cdca4['targetRect'])return;const _0x2fc971=this['_getTargetTop'](_0x3cdca4,_0x3cdca4['targetRect']);this['_setItemTop'](_0x2fdd48,_0x2fc971);}['_getTargetTop'](_0xdb4441,_0x286942){if(null===_0x286942)return 0x0;if(_0xdb4441['target']instanceof _0x3e2117)return _0x286942['top'];{const _0x1ce4e1=new _0x3e2117(this['view']['element'])['top'];return _0x286942['top']-_0x1ce4e1;}}['_setItemTop'](_0x4de9eb,_0x5d09a4,_0x1c1a9d=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x1c1a9d&&(_0x5d09a4=Math['max'](_0x5d09a4,this['_getMaxAvailableTop'](_0x4de9eb))),_0x4de9eb['top']=_0x5d09a4;}['_getMaxAvailableTop'](_0x5b7de7){let _0x58a6b6=this['_getItemBefore'](_0x5b7de7),_0x3344d8=0x0;for(;_0x58a6b6;)_0x58a6b6['updateHeight'](),_0x3344d8+=this['_spaceBetweenItems']+_0x58a6b6['height'],_0x58a6b6=this['_getItemBefore'](_0x58a6b6);return _0x3344d8;}}function R(_0x1f1c6b,_0x5b8dd0){return Math['max'](_0x1f1c6b-_0x5b8dd0,0x0);}function y(_0x1ede4b){return null!==_0x1ede4b&&'object'==typeof _0x1ede4b&&0x1===_0x1ede4b['nodeType'];}class e extends _0x3ad1aa{['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(_0x3767dd){super(_0x3767dd),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x5e9e9a(),this['_refreshPositioningDebounced']=_0x66005e(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x58b814=this['context']['plugins']['get'](M),_0x17cab0=this['context']['plugins']['get'](z);_0x58b814['register']('wideSidebar',this),_0x17cab0['container']&&_0x58b814['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x33b284){if(_0x33b284===this['activeAnnotation'])return;const _0x2e896d=this['context']['plugins']['get'](z);_0x2e896d['_activeAnnotation']=_0x33b284;const _0x40d332=this['activeAnnotation'];_0x2e896d['refresh']({'blurredAnnotation':_0x40d332,'activatedAnnotation':_0x33b284}),this['activeAnnotation']=_0x33b284;}['attach'](_0x41c169){this['annotations']=_0x41c169;const _0x4f2118=this['context']['plugins']['get'](z);if(_0x4f2118['_annotations']=_0x41c169,this['isAttached'])throw new _0x2bc58('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4f2118,'set:container',()=>{this['detach'](),this['listenTo'](_0x4f2118,'change:container',_0x234309=>{_0x234309['off'](),this['attach'](_0x41c169);});}),_0x4f2118['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x2cee3a=_0x4d375b=>{_0x4d375b['updateTargetRect'](),_0x4f2118['addAnnotation'](_0x4d375b);};for(const _0x5769ff of _0x41c169)_0x2cee3a(_0x5769ff);this['listenTo'](_0x41c169,'add',(_0x5ccd8b,_0x43be94)=>{_0x2cee3a(_0x43be94);}),this['listenTo'](_0x41c169,'remove',(_0x5a52be,_0x19af17,_0x3a90dd)=>{_0x4f2118['rearrange']({'removedAnnotation':_0x19af17,'previousAnnotation':_0x41c169['get'](_0x3a90dd-0x1),'nextAnnotation':_0x41c169['get'](_0x3a90dd+0x1)}),_0x19af17===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x41c169,'focus',(_0x1132c3,_0x2793f0)=>{this['setActiveAnnotation'](_0x2793f0);}),this['listenTo'](_0x41c169,'blur',()=>{this['setActiveAnnotation'](null);});const _0x12e120=this['context']instanceof _0x3bf87a?this['context']['editors']:new _0x5e9e9a([this['context']]);for(const _0x2582ce of _0x12e120)this['_integrateWithEditorAnnotations'](_0x2582ce);this['listenTo'](_0x12e120,'add',(_0x57fb39,_0x137c60)=>{this['listenTo'](_0x137c60,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x137c60);});}),this['listenTo'](_0x12e120,'remove',(_0x3e7dad,_0x49c5a8)=>{_0x49c5a8['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x49c5a8['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x2bc58('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3be6da=this['context']['plugins']['get'](z);_0x3be6da['_detachFromContainer'](this['annotations']),this['stopListening'](_0x3be6da),this['stopListening'](this['annotations']),this['context']instanceof _0x3bf87a&&this['stopListening'](this['context']['editors']);for(const _0x230bf5 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x230bf5);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x5bd27c){if(!_0x5bd27c['plugins']['has']('EditorAnnotations'))return;const _0x53e309=_0x5bd27c['plugins']['get']('EditorAnnotations'),_0x3c950b=()=>{const _0x4731eb=_0x53e309['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4731eb[0x0]||null);};this['listenTo'](_0x53e309,'refresh',_0x3c950b),this['listenTo'](_0x53e309,'blur',(_0x2ad7fa,{isAnnotationTracked:_0x1840c6})=>{this['activeAnnotation']&&_0x1840c6(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x53e309,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x52b708=>{_0x53e309['hasDomSelection']()&&(_0x3c950b(),_0x52b708['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x53e309);}['_destroyEditorAnnotationsIntegration'](_0x16af8d){this['stopListening'](_0x16af8d),this['_editorAnnotations']['remove'](_0x16af8d);}}class D extends _0x5da28{['counterView'];constructor(_0x4a83bd){super(_0x4a83bd);const _0x3f7eb5=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x449577,_0x22377d)=>_0x449577?'...':_0x22377d['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',_0x3f7eb5['to']('annotationType',_0x34598b=>'ck-annotation-counter__badge--'+_0x34598b),_0x3f7eb5['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x3f7eb5['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x3ad1aa{['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(_0x14b234){super(_0x14b234),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x9a49c),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x5e9e9a(),this['_refreshPositioningDebounced']=_0x66005e(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x54a996(this['context']['locale']),this['balloonPanelView']=new _0x178867(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x227321){this['annotations']=_0x227321;const _0x5f58d1=this['context']['plugins']['get'](z),_0xdcbcd8=this['balloonPanelView'];if(_0x5f58d1['_annotations']=_0x227321,this['isAttached'])throw new _0x2bc58('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5f58d1,'set:container',()=>{this['detach'](),this['listenTo'](_0x5f58d1,'change:container',_0x1968fd=>{_0x1968fd['off'](),this['attach'](_0x227321);});}),_0x5f58d1['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x1a2ad9=_0x202c3c=>{const _0x51022d=new D(this['context']['locale']);_0x5f58d1['addAnnotation'](_0x202c3c,_0x51022d),this['_annotationToNarrowView']['set'](_0x202c3c,_0x51022d),_0x51022d['bind']('isDirty','annotationType','number')['to'](_0x202c3c['view'],'isDirty','type','length'),_0x51022d['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0xdcbcd8['content']['first']!==_0x202c3c['view']?(this['_showBalloon'](_0x202c3c),_0x202c3c['view']['element']['focus'](),this['setActiveAnnotation'](_0x202c3c)):this['setActiveAnnotation'](null);});};for(const _0x46f3ed of _0x227321)_0x1a2ad9(_0x46f3ed);this['listenTo'](_0x227321,'add',(_0x163ef4,_0x30db02)=>{_0x1a2ad9(_0x30db02);}),this['listenTo'](_0x227321,'remove',(_0xdd64f,_0x3717ba,_0x326444)=>{this['_annotationToNarrowView']['get'](_0x3717ba)['destroy'](),this['_annotationToNarrowView']['delete'](_0x3717ba),_0x5f58d1['rearrange']({'removedAnnotation':_0x3717ba,'previousAnnotation':_0x227321['get'](_0x326444-0x1),'nextAnnotation':_0x227321['get'](_0x326444+0x1)}),_0x3717ba===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x227321,'focus',(_0x3a750a,_0x1a9c3e)=>{this['setActiveAnnotation'](_0x1a9c3e);}),this['listenTo'](_0x227321,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x144204,_0x3f0a59)=>{_0x3f0a59['keyCode']===_0xf4221d['esc']&&_0xdcbcd8['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0xdcbcd8['content']['first']),this['_hideBalloon'](),_0x3f0a59['stopPropagation'](),_0x3f0a59['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x4fc593,_0x3249b2)=>{const _0x6e3ded=_0x3249b2['target'];_0xdcbcd8['isVisible']&&_0xdcbcd8['element']['contains'](_0x6e3ded)||_0x5f58d1['view']['element']['contains'](_0x6e3ded)||_0x4fc593['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x154151=>_0x154151['contains'](_0x6e3ded))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x203f82=this['context']instanceof _0x3bf87a?this['context']['editors']:new _0x5e9e9a([this['context']]);for(const _0x48cf9f of _0x203f82)this['_integrateWithEditorAnnotations'](_0x48cf9f);this['listenTo'](_0x203f82,'add',(_0xd027be,_0x3cb4a5)=>{this['listenTo'](_0x3cb4a5,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x3cb4a5);});}),this['listenTo'](_0x203f82,'remove',(_0x4f69a8,_0x5908d6)=>{_0x5908d6['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5908d6['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x1c8d64){if(_0x1c8d64===this['activeAnnotation'])return;const _0x1c68cc=this['context']['plugins']['get'](z);if(_0x1c68cc['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1c8d64,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1c8d64)_0x1c68cc['getSidebarItemView'](_0x1c8d64)?this['_showBalloon'](_0x1c8d64):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x1c8d64;}['detach'](){if(!this['isAttached'])throw new _0x2bc58('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3a6b04=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x4ff62f=>_0x4ff62f['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3a6b04['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x3bf87a&&this['stopListening'](this['context']['editors']);for(const _0x348cf1 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x348cf1);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'](_0x45fbf3){if(!_0x45fbf3['plugins']['has']('EditorAnnotations'))return;const _0x1dbc2f=_0x45fbf3['plugins']['get']('EditorAnnotations'),_0x543aad=this['context']['plugins']['get'](z),_0x184cbd=this['annotations'],_0x5dc1f7=this['balloonPanelView'],_0x1a1dfb=()=>{const _0x51b433=_0x1dbc2f['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x51b433),this['setActiveAnnotation'](_0x51b433[0x0]||null);};this['listenTo'](_0x1dbc2f,'refresh',_0x1a1dfb),this['listenTo'](_0x1dbc2f,'blur',(_0x27da87,{isAnnotationTracked:_0x357014})=>{this['activeAnnotation']&&_0x357014(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1dbc2f,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x184cbd,'blur',_0x425298=>{_0x1dbc2f['hasDomSelection']()&&_0x425298['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x328176,_0x5cc1fe)=>{const _0x1bdda4=_0x5cc1fe['target'];_0x5dc1f7['isVisible']&&_0x5dc1f7['element']['contains'](_0x1bdda4)||_0x543aad['view']['element']['contains'](_0x1bdda4)||this['activeAnnotation']&&_0x1dbc2f['hasDomSelection']()&&(_0x1a1dfb(),_0x328176['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1dbc2f);}['_destroyEditorAnnotationsIntegration'](_0x453c8d){_0x453c8d&&(this['stopListening'](_0x453c8d),this['_editorAnnotations']['remove'](_0x453c8d));}['_setSelectedAnnotations'](_0x4415a9){for(const _0x2a9c52 of this['_selectedAnnotations'])_0x4415a9['includes'](_0x2a9c52)||this['_manuallyClosedAnnotationViews']['delete'](_0x2a9c52['view']);this['_selectedAnnotations']=_0x4415a9;}['_refreshPositioning'](){const _0x598e5=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x598e5['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x34fcbd){if(this['_manuallyClosedAnnotationViews']['has'](_0x34fcbd['view']))return;const _0x499a37=this['balloonPanelView']['content']['first'];_0x499a37!==_0x34fcbd['view']?(_0x499a37&&this['_detachListeners'](_0x499a37),this['_attachListeners'](_0x34fcbd['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x34fcbd['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x551b2c=this['balloonPanelView']['content']['first'],_0x2e4747=_0x551b2c&&this['annotations']['getByView'](_0x551b2c);if(!_0x2e4747||!this['_annotationToNarrowView']['has'](_0x2e4747))return;const _0x338221=this['_annotationToNarrowView']['get'](_0x2e4747)['element'],_0x440a77=(function(){const _0x66b61a=_0x178867['defaultPositions'];return[_0x66b61a['southArrowNorthEast'],_0x66b61a['northArrowSouthEast'],_0x66b61a['southArrowNorth'],_0x66b61a['northArrowSouth'],_0x66b61a['southArrowNorthWest'],_0x66b61a['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x338221,'positions':_0x440a77});}['_hideBalloon'](){const _0x3863c9=this['balloonPanelView'],_0x4a6d67=_0x3863c9['content']['first'];_0x4a6d67&&(this['_detachListeners'](_0x4a6d67),_0x3863c9['unpin'](),_0x3863c9['content']['clear']());}['_attachListeners'](_0x3eba5e){this['listenTo'](_0x3eba5e,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x3eba5e,'Esc',(_0x5d039b,_0x1216f3)=>{this['_manuallyClosedAnnotationViews']['add'](_0x3eba5e),this['_hideBalloon'](),_0x1216f3();});}['_detachListeners'](_0x4ef781){this['stopListening'](_0x4ef781);}}class c extends _0x3aeecf{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x3d6f46,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d0d5d){super(_0x3d0d5d),_0x3d0d5d['editing']['view']['addObserver'](_0x26b260),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x3d0d5d['plugins']['get'](_0x3d6f46),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0xd2abb3=this['editor']['plugins']['get'](M);_0xd2abb3['context']===this['editor']&&(_0xd2abb3['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x2e5d32,_0x1af69f)=>{const _0x54f22d=this['_balloon'];if(this['isAttached']&&_0x54f22d['visibleView']){const _0x5e2fcd=this['annotations']['getByView'](_0x54f22d['visibleView']);_0x5e2fcd&&this['_closeAnnotation'](_0x5e2fcd),_0x1af69f();}}));}['afterInit'](){const _0x410729=this['editor']['plugins']['get'](M);_0x410729['context']===this['editor']&&(_0x410729['hasActive']()||_0x410729['switchTo']('inline'));}['setActiveAnnotation'](_0x428c7a){_0x428c7a!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x428c7a&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x428c7a)&&this['_addAnnotationToBalloon'](_0x428c7a,!0x0),_0x428c7a['isActive']=!0x0),_0x428c7a||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x428c7a);}['attach'](_0x57c155){this['annotations']=_0x57c155;const _0xc38d89=this['editor']['plugins']['get'](M),_0x2f30b7=this['_balloon'];if(this['isAttached'])throw new _0x2bc58('inlineannotations-attach-already-attached',this);if(_0xc38d89['context']!==this['editor'])throw new _0x2bc58('inlineannotations-not-allowed-with-context',this);const _0x45bf4c=this['editor']['plugins']['get'](P);this['listenTo'](_0x45bf4c,'refresh',()=>{const _0x3657d3=_0x45bf4c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x8a9f80,_0x272708;!this['_forceRefresh']&&(_0x8a9f80=_0x3657d3,_0x272708=this['_selectedAnnotations'],_0x8a9f80['length']===_0x272708['length']&&_0x8a9f80['every'](_0x43662b=>_0x272708['includes'](_0x43662b)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x3657d3),this['setActiveAnnotation'](_0x3657d3[0x0]||null));}),this['listenTo'](_0x45bf4c,'blur',(_0x651680,{isAnnotationTracked:_0x140b73})=>{this['activeAnnotation']&&_0x140b73(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1dec33,_0x18ba3f,_0x4c32f4)=>{_0x4c32f4||this['setActiveAnnotation'](null);}),this['listenTo'](_0x57c155,'remove',(_0x6a686f,_0x4183df)=>{this['_removeAnnotationFromBalloon'](_0x4183df),_0x4183df===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2f30b7,'change:visibleView',(_0x48d52b,_0x4b287d,_0x533a4d,_0x239894)=>{_0x239894&&this['stopListening'](_0x239894);const _0x52aecb=_0x57c155['getByView'](_0x533a4d);_0x533a4d&&_0x52aecb&&(this['listenTo'](_0x533a4d,'change:height',()=>{_0x2f30b7['updatePosition']();}),this['listenTo'](_0x533a4d,'Esc',()=>{this['_closeAnnotation'](_0x52aecb),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x52aecb&&this['setActiveAnnotation'](_0x52aecb));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x2f30b7['visibleView']&&(_0x57c155['getByView'](_0x2f30b7['visibleView'])&&_0x2f30b7['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 _0x2bc58('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x9ffc58 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x9ffc58);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x560be0){for(const _0x423bc0 of this['_selectedAnnotations'])_0x560be0['includes'](_0x423bc0)||this['_manuallyClosed']['delete'](_0x423bc0);for(const _0x32c77d of this['annotations'])_0x560be0['includes'](_0x32c77d)||this['_removeAnnotationFromBalloon'](_0x32c77d);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x2fa7e4 of _0x560be0)this['_addAnnotationToBalloon'](_0x2fa7e4);}this['_selectedAnnotations']=_0x560be0;}['_addAnnotationToBalloon'](_0x4de2a9,_0x27c45a=!0x1){this['_manuallyClosed']['has'](_0x4de2a9)||(this['_addedAnnotations']['has'](_0x4de2a9)||this['_balloon']['hasView'](_0x4de2a9['view'])||(this['_addedAnnotations']['add'](_0x4de2a9),this['_balloon']['add']({'stackId':_0x4de2a9['view']['id'],'view':_0x4de2a9['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x4de2a9)}})),_0x27c45a&&this['_balloon']['showStack'](_0x4de2a9['view']['id']));}['_getBalloonTargetForAnnotation'](_0x1619ca){const _0x1de82b=_0x1619ca['target'],_0x532c4a=this['editor']['editing']['view'],_0x1fe787=_0x532c4a['document']['selection']['getFirstRange'](),_0x391e1c=_0x532c4a['domConverter']['viewRangeToDom'](_0x1fe787);if(_0x391e1c['collapse'](!0x0),_0x1de82b){if(_0x1de82b instanceof _0x3e2117)return _0x1de82b;let _0x4c7936=[];for(const _0x27eb5b of _0x1de82b)_0x4c7936['push'](...(_0x1f9809=_0x27eb5b['getClientRects'](),Array['from'](_0x1f9809)['map'](DOMRect['fromRect'])));_0x4c7936=function(_0x153468){const _0x23ef9a=[];let _0x1488e5=_0x153468[0x0];for(let _0x1c203d=0x1;_0x1c203d<_0x153468['length'];_0x1c203d++)b(_0x1488e5,_0x153468[_0x1c203d])?_0x1488e5['width']+=_0x153468[_0x1c203d]['width']:(_0x23ef9a['push'](_0x1488e5),_0x1488e5=_0x153468[_0x1c203d]);return _0x23ef9a['push'](_0x1488e5),_0x23ef9a;}(_0x4c7936);const _0x3d8f1c=_0x391e1c['getBoundingClientRect']();return _0x4c7936['find'](_0x4f2bdc=>_0x4f2bdc['top']<=_0x3d8f1c['top']&&_0x4f2bdc['bottom']>=_0x3d8f1c['bottom']&&_0x4f2bdc['left']<=_0x3d8f1c['left']&&_0x4f2bdc['right']>=_0x3d8f1c['right'])||_0x4c7936[0x0];}var _0x1f9809;return _0x1619ca['targetRect']||_0x391e1c;}['_removeAnnotationFromBalloon'](_0x1a8a5c){this['_addedAnnotations']['has'](_0x1a8a5c)&&this['_balloon']['hasView'](_0x1a8a5c['view'])&&(this['_addedAnnotations']['delete'](_0x1a8a5c),this['_balloon']['remove'](_0x1a8a5c['view']));}['_closeAnnotation'](_0x546eea){this['_manuallyClosed']['add'](_0x546eea),this['_removeAnnotationFromBalloon'](_0x546eea);}}function b(_0x54e428,_0x4172aa){return _0x54e428['top']===_0x4172aa['top']&&_0x54e428['bottom']===_0x4172aa['bottom']&&_0x54e428['right']===_0x4172aa['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(_0x597e27,_0x4e0aad){super(_0x597e27),this['set']('isEmpty',!_0x4e0aad['length']),this['focusTracker']=new _0x35c4e6(),this['_annotationViews']=_0x4e0aad,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x4e0aad,'focusTracker':this['focusTracker']}),this['listenTo'](_0x4e0aad,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x4e0aad,'remove',(_0x5a7490,_0x592c3b)=>{_0x592c3b['isActive']&&this['focus'](),_0x4e0aad['length']||(this['isEmpty']=!0x0);});const _0x28cf35=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x597e27,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x4e0aad},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x28cf35['if']('isEmpty','ck-hidden',_0x416568=>!_0x416568)]},'children':[{'text':S(_0x597e27,'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 _0x4967b2 of this['_annotationViews'])this['focusTracker']['add'](_0x4967b2['element']);this['_annotationViews']['on']('change',(_0x1e351e,{added:_0x40493b,removed:_0x541287})=>{for(const _0x59cbd3 of _0x40493b)this['focusTracker']['add'](_0x59cbd3['element']);for(const _0x5a9cdf of _0x541287)this['focusTracker']['remove'](_0x5a9cdf['element']);});}}class f extends _0x3ad1aa{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0xaf767e){super(_0xaf767e),this['archivedThreads']=new _0x5e9e9a();}['init'](){const _0x290c20=this['context'],_0x39a705=_0x290c20['plugins']['get'](o),_0x3235da=_0x290c20['plugins']['get'](N);this['listenTo'](_0x39a705,'addCommentThread',(_0x39501f,{threadId:_0x3fe36e})=>{const _0x1d13d2=_0x39a705['getCommentThread'](_0x3fe36e);_0x1d13d2['archivedAt']&&this['archivedThreads']['add'](_0x1d13d2,this['_calculatePosition'](_0x1d13d2['archivedAt'])),this['listenTo'](_0x1d13d2,'change:archivedAt',(_0xd5e972,_0x18e924,_0x190d6a)=>{_0x190d6a?this['archivedThreads']['has'](_0x1d13d2)||this['archivedThreads']['add'](_0x1d13d2,this['_calculatePosition'](_0x1d13d2['archivedAt'])):this['archivedThreads']['has'](_0x1d13d2)&&this['archivedThreads']['remove'](_0x1d13d2);});}),this['listenTo'](_0x39a705,'removeCommentThread',(_0x521fcf,{threadId:_0x1420ae})=>{const _0x13e860=_0x39a705['getCommentThread'](_0x1420ae);this['stopListening'](_0x13e860),this['archivedThreads']['has'](_0x13e860)&&this['archivedThreads']['remove'](_0x13e860);},{'priority':'highest'}),this['listenTo'](_0x3235da['collection'],'focus',(_0x1d1878,_0x4ebcfc)=>{_0x4ebcfc['isVisible']||(_0x4ebcfc['isActive']=!0x0,_0x3235da['activate'](_0x4ebcfc));});}['_calculatePosition'](_0x14cc8a){const _0x1f556c=[...this['archivedThreads']]['findIndex'](_0x2405db=>_0x2405db['archivedAt']<_0x14cc8a);return _0x1f556c>-0x1?_0x1f556c:this['archivedThreads']['length'];}}class a extends _0x3aeecf{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x29eee3];}constructor(_0x1dce0e){super(_0x1dce0e),this['annotationViews']=new _0x4e28be(),this['_pendingThreads']=[];}['init'](){const _0x475726=this['editor'],_0x46beeb=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x475726['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x5da28,!0x0)),_0x475726['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x15f539=this['_createCommentsArchiveButton'](_0x59fd94);return _0x15f539['set']({'role':'menuitemcheckbox'}),_0x15f539;});const _0x5b2c2e=_0x475726['plugins']['get'](f),_0xeace91=_0x475726['plugins']['get']('Annotations'),_0x59a5c1=_0x475726['plugins']['get']('CommentsRepository');_0x5b2c2e['archivedThreads']['forEach'](_0x241604=>{this['_handleNewThread'](_0x241604);}),this['listenTo'](_0x5b2c2e['archivedThreads'],'add',(_0x3c0d6a,_0x5bdc8b)=>{this['_handleNewThread'](_0x5bdc8b);}),this['listenTo'](_0xeace91['collection'],'add',(_0x3271cd,_0x5d1d3f)=>{const _0x49fbdf=this['_pendingThreads']['find'](_0x51bfc1=>{const _0x311fd1=_0x59a5c1['_threadToController']['get'](_0x51bfc1);return _0x311fd1&&_0x5d1d3f['innerView']===_0x311fd1['view'];});if(_0x49fbdf){const _0x1f47bb=this['_calculatePosition'](_0x49fbdf['archivedAt']);this['annotationViews']['add'](_0x5d1d3f['view'],_0x1f47bb),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x49fbdf),0x1);}}),this['listenTo'](_0x5b2c2e['archivedThreads'],'remove',(_0x183fc5,_0x496953)=>{const _0x2ac332=_0x475726['config']['get']('collaboration.channelId');if(!_0x2ac332||_0x496953['channelId']===_0x2ac332){const _0x300288=_0x59a5c1['_threadToController']['get'](_0x496953),_0x18ced2=_0xeace91['getByInnerView'](_0x300288['view']);this['annotationViews']['remove'](_0x18ced2['view']),this['stopListening'](_0x18ced2['focusableElements']);}}),this['listenTo'](_0xeace91['collection'],'add',(_0x2344dd,_0x4613db)=>{this['listenTo'](_0x4613db,'escape',_0x46beeb);}),this['listenTo'](_0xeace91['collection'],'remove',(_0x3e87bb,_0x3817dc)=>{this['stopListening'](_0x3817dc,'escape',_0x46beeb);});}['_handleNewThread'](_0x2c63f2){const _0x4c6900=this['editor']['plugins']['get']('CommentsRepository'),_0x439834=this['editor']['plugins']['get']('Annotations'),_0x3dc185=this['editor']['config']['get']('collaboration.channelId');if(!_0x3dc185||_0x2c63f2['channelId']===_0x3dc185){const _0xed74c3=_0x4c6900['_threadToController']['get'](_0x2c63f2);if(!_0xed74c3)return void this['_pendingThreads']['push'](_0x2c63f2);const _0x108290=this['_calculatePosition'](_0x2c63f2['archivedAt']),_0x334aa2=_0x439834['getByInnerView'](_0xed74c3['view']);_0x334aa2['isVisible']&&_0x439834['_visibleAnnotations']['remove'](_0x334aa2),this['annotationViews']['add'](_0x334aa2['view'],_0x108290);}}['_calculatePosition'](_0x5121d7){const _0x1274a3=this['editor']['config']['get']('collaboration.channelId'),_0x110fcd=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x38129f=>_0x38129f['channelId']===_0x1274a3)['findIndex'](_0x46c0f2=>_0x46c0f2['archivedAt']<_0x5121d7);return _0x110fcd<0x0||_0x110fcd>this['annotationViews']['length']?this['annotationViews']['length']:_0x110fcd-0x1;}['_toggleDialog'](){const _0x12f6b0=this['editor'],_0x45842e=_0x12f6b0['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x12f6b0['locale'],this['annotationViews'])),'commentsArchive'===_0x45842e['id']?_0x45842e['hide']():_0x45842e['show']({'id':'commentsArchive','title':S(_0x12f6b0['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x1c0ef6['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x1f868f,_0x26d7e4=!0x1){const _0x524649=this['editor']['locale'],_0x4f281e=this['editor']['plugins']['get']('Dialog'),_0x2cefc3=new _0x1f868f(_0x524649);return _0x2cefc3['bind']('isEnabled')['to'](this,'isEnabled'),_0x2cefc3['bind']('isOn')['to'](_0x4f281e,'id',_0x6ffb96=>'commentsArchive'===_0x6ffb96),_0x2cefc3['set']({'label':S(_0x524649,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x26d7e4&&(_0x2cefc3['tooltip']=!0x0),this['listenTo'](_0x2cefc3,'execute',()=>this['_toggleDialog']()),_0x2cefc3;}['_hideDialogOnAnnotationEscape']=_0xcdb712=>{const _0x1d262b=_0xcdb712['source'];if(!this['annotationViews']['has'](_0x1d262b['view']))return;const _0x547fca=this['editor']['plugins']['get']('Dialog');_0x547fca['isOpen']&&'commentsArchive'===_0x547fca['id']&&(_0x547fca['hide'](),_0xcdb712['stop']());};}class p extends _0x3aeecf{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};