@ckeditor/ckeditor5-comments 44.2.0-alpha.10 → 44.2.0-alpha.12

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 _0x45a0eb,icons as _0x5038b8,ContextPlugin as _0x10ef99,PendingActions as ht,Command as _0x338491,Plugin as _0x5e07b6,Context as _0x5dddf0}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x4cfe2a,uid as _0x3dae5e,KeystrokeHandler as jt,FocusTracker as _0x3dc026,diff as _0x37465a,Collection as _0x385f24,Rect as _0x104051,CKEditorError as _0x1a0aec,first as _0x28c379,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x7ec307,keyCodes as _0x4f6d8c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x2daa32,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x5a555a,ConfirmMixin as ti,LateFocusButtonView as _0x357499,trimHtml as _0x363024,LateFocusDropdownButtonView as _0xc67a49,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x2101c4}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x283364}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x2c634f,ViewCollection as _0x2939e2,createDropdown as _0x234da7,ListView as _0x19a940,focusChildOnDropdownOpen as _0x4b98e8,ListItemView as _0x3aa6f0,MenuBarMenuListItemButtonView as _0x3edae7,BodyCollection as _0x33f8e7,BalloonPanelView as _0x47385e,ContextualBalloon as _0x2ecb8d,Dialog as _0x525cbd,DialogViewPosition as _0x3c0459}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x134d18}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 _0x51a6c2}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x68fda3}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
- _0x4cfe2a(){['model'];['view'];constructor(_0x2c76d5,_0x45bf82){super(),this['model']=_0x2c76d5,this['model']['_isAttached']=!0x0,this['view']=_0x45bf82,this['listenTo'](_0x45bf82,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x45bf82,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x45bf82,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x45bf82,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x45bf82,'addComment',(_0xc00708,_0x27f8ec)=>this['addComment'](_0x27f8ec)),this['listenTo'](_0x45bf82,'updateComment',(_0x30a3c0,_0x396585,_0x309876)=>this['updateComment'](_0x396585,_0x309876)),this['listenTo'](_0x45bf82,'removeComment',(_0x4bc1b8,_0x2f4eda)=>this['removeComment'](_0x2f4eda));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x21dd9b){this['model']['addComment']({'content':_0x21dd9b,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x54ca9a,_0x4d5b48){this['model']['getComment'](_0x54ca9a)['update']({'content':_0x4d5b48});}['removeComment'](_0x413047){this['model']['getComment'](_0x413047)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x3e56b1,_0x20d83f,_0x4e88e9){const t=_0x3e56b1['t'];switch(_0x20d83f){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'},_0x4e88e9);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'},_0x4e88e9);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'},_0x4e88e9);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'},_0x4e88e9);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x4e88e9);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'},_0x4e88e9);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'},_0x4e88e9);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'},_0x4e88e9);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(_0xb304b,_0x303837){super(_0xb304b);const _0x47687b=_0x3dae5e();this['main']=this['createCollection'](),this['editable']=new $t(_0xb304b,_0x303837,void 0x0,{'label':()=>S(_0xb304b,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0xb304b['uiLanguageDirection'],'lang':_0xb304b['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x47687b},'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(_0x5a7d4f){super(_0x5a7d4f),this['view']=new Xt(_0x5a7d4f['locale'],_0x5a7d4f['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x28971f=this['editor']['editing']['view'],_0x1c9f49=this['view']['editable'],_0x358ecc=_0x28971f['document']['getRoot']();_0x1c9f49['name']=_0x358ecc['rootName'],this['view']['render']();const _0x11f2be=_0x1c9f49['element'];this['setEditableElement'](_0x1c9f49['name'],_0x11f2be),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x28971f['attachDomRoot'](_0x11f2be),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
25
- _0x4cfe2a(_0x45a0eb){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Rt)());constructor(_0x519497={}){function _0x295ee2(_0x260c69){return _0x260c69['map'](_0x293720=>String['fromCharCode'](_0x293720))['join']('');}(_0x519497=Object['assign']({},_0x519497))['plugins']||(_0x519497['plugins']=Ut['defaultPlugins']),super(_0x519497),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[_0x295ee2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x295ee2([0x76,0x69,0x65,0x77])][_0x295ee2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x295ee2([0x61,0x75,0x74,0x6f]),this[_0x295ee2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x295ee2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x295ee2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x295ee2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x295ee2([0x6f,0x6b])});}['create'](){const _0x648e00=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x648e00))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x4b3397=>{const _0x125f63=this['model']['document']['getRoot'](),_0x431e9b=_0x125f63&&_0x125f63['getChild'](_0x125f63['childCount']-0x1);_0x4b3397['setSelection'](_0x431e9b,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x104bcc=this['editing']['view'],_0x3c64bd=_0x104bcc['document']['getRoot'](),_0x317172=_0x3c64bd['getChild'](0x0);_0x3c64bd['childCount']>0x1||!_0x317172||'p'!=_0x317172['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x104bcc,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x317172['placeholder']=this['placeholder']),St({'view':_0x104bcc,'element':_0x317172,'keepOnFocus':!0x0}),this['placeholderElement']=_0x317172);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x5825dc,_0x206d3f={}){super(_0x5825dc),this['editor']=null,this['_editorConfig']=_0x206d3f,this['set']('value',_0x206d3f['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x5825dc,'Reply...')),this['set']('submitLabel',S(_0x5825dc,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x3dc026(),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',(_0x52dcf5,_0x55c6aa)=>{this['cancelButtonView']['fire']('execute'),_0x55c6aa();}),this['keystrokes']['set']('Ctrl+Enter',(_0x5a27f7,_0xf86f5c)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0xf86f5c());}),this['on']('submit',(_0x24a099,_0x1bd828)=>{_0x1bd828['length']>0xfde8?(alert(S(_0x5825dc,'TOO_LONG_COMMENT_ALERT',[_0x1bd828['length'],0xfde8])),_0x24a099['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 _0x3e310e=this['editor'];this['element']['insertBefore'](_0x3e310e['ui']['element'],this['element']['firstChild']),_0x3e310e['model']['document']['on']('change',()=>this['value']=_0x3e310e['getData']()),_0x3e310e['bind']('placeholder')['to'](this),this['focusables']['add'](_0x3e310e['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x30682b){-0x1===_0x30682b?(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:_0x5de687}=this,_0x36b9cb=new _0x2c634f(_0x5de687);return _0x36b9cb['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x36b9cb['withText']=!0x0,_0x36b9cb['bind']('label')['to'](this,'submitLabel'),_0x36b9cb['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x36b9cb['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x27c12f,_0x3cadf5)=>!_0x3cadf5&&!!_0x27c12f['trim']()),_0x36b9cb;}['_createCancelButton'](){const {locale:_0x4aaa17}=this,_0x494b34=new _0x2c634f(_0x4aaa17);return _0x494b34['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x494b34['label']=S(_0x4aaa17,'Cancel'),_0x494b34['withText']=!0x0,_0x494b34['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x494b34;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x444921=>{this['focusTracker']['add'](_0x444921['element']);}),this['focusables']['on']('change',(_0xf832fb,_0x400511)=>{for(const _0x351310 of Array['from'](_0x400511['added'])['reverse']())this['focusTracker']['add'](_0x351310['element']);});}}class ie extends kt{constructor(_0x654f22,_0x2f5c14,_0x4ca323){super(_0x654f22),this['commentInputView']=new os(_0x654f22,_0x4ca323),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x3bc002,_0x2ffb21)=>_0x3bc002||!!_0x2ffb21),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 _0x2daa32(_0x654f22,_0x2f5c14),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'](_0x4e6d00){this['commentInputView']['focus'](_0x4e6d00);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0xb7be7,_0x441052)=>{const {submitButtonView:_0x33267c,cancelButtonView:_0x9100f4,editor:_0x315e97}=this['commentInputView'];[_0x33267c['element'],_0x9100f4['element'],_0x315e97?_0x315e97['editing']['view']['getDomRoot']():null]['filter'](_0x2d734c=>_0x2d734c)['some'](_0x2c9605=>_0x2c9605['contains'](_0x441052['target']))||(this['focus'](),_0x441052['preventDefault']());});}}class cs extends kt{constructor(_0x34d483){super(_0x34d483);const _0x5f045c=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x5f045c['to']('count',_0x2c0648=>S(_0x34d483,'NUMBER_OF_COMMENTS',_0x2c0648))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x23ae94,_0x301740,_0x559915){super(_0x23ae94);const _0x3f1267=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x301740['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x301740,this['_config']=_0x559915,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x3dc026(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x44b02a=>this['commentViews']['map'](_0x86a0e6=>_0x86a0e6['element'])['includes'](_0x44b02a['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x23ae94),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x450240=>_0x450240-this['_config']['maxCommentsWhenCollapsed']);for(const _0x5eb920 of _0x301740['comments'])this['_handleNewCommentModel'](_0x5eb920);this['_handleInfoComment'](),this['listenTo'](_0x301740['comments'],'add',(_0x4594e3,_0x947e68)=>{const _0x29ae80=this['_calculatePosition'](_0x947e68);this['length']++,this['_handleNewCommentModel'](_0x947e68,_0x29ae80),this['refreshVisibleViews']();}),this['listenTo'](_0x301740['comments'],'remove',(_0x48004c,_0x5e05e9)=>{this['length']--,this['_handleRemoveCommentModel'](_0x5e05e9),this['refreshVisibleViews']();}),this['listenTo'](_0x301740,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x301740,'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',_0x3f1267['if']('length','ck-hidden',_0x5d0541=>!_0x5d0541)],'aria-label':S(_0x23ae94,'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'](_0x33eb3e){-0x1===_0x33eb3e?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x28917f of this['commentViews'])_0x28917f['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x20c6b6,_0x397c76){const _0x185d20=new this['_config']['CommentView'](this['locale'],_0x20c6b6,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x185d20['viewUid']=_0x20c6b6['id'],_0x185d20['delegate']('removeComment')['to'](this),_0x185d20['delegate']('updateComment')['to'](this),_0x185d20['delegate']('resolveCommentThread')['to'](this),_0x185d20['delegate']('editorReady')['to'](this),_0x185d20['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x185d20,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x185d20,_0x397c76);}['_calculatePosition'](_0x167b5c){const _0xde859c=this['_model']['_findOptimalIndex'](_0x167b5c);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x167b5c['authoredAt']?_0xde859c-0x1:_0xde859c:_0xde859c-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x181fbf={'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'],_0x181fbf,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x181fbf));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x201e07){const _0x44fbff=this['commentViews']['remove'](_0x201e07['id']);this['stopListening'](_0x44fbff),_0x44fbff['isEditMode']&&this['_updateHasDirtyComment'](),_0x44fbff['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x137fc6=>_0x137fc6['isEditMode']);}['_rearrangeCollapse'](){const _0x58ed69=function(_0x382257){const _0x202bf0=new _0x385f24();for(const _0x470a7d of _0x382257)_0x202bf0['add'](_0x470a7d);return _0x202bf0;}(this['commentViews']),_0x5a325b=this['_collapsedCommentsView']['count'];for(let _0x4b1314=0x1;_0x4b1314<=_0x5a325b;_0x4b1314++)_0x58ed69['remove'](0x1);for(const _0x4e654f of _0x58ed69)_0x4e654f['collapse']();_0x5a325b>0x0&&_0x58ed69['add'](this['_collapsedCommentsView'],0x1),as(_0x37465a(Array['from'](this['visibleViews']),Array['from'](_0x58ed69)),this['visibleViews'],_0x58ed69);}['_rearrangeExpand'](){as(_0x37465a(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x4c7c65 of this['visibleViews'])_0x4c7c65['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x4964f3=>{this['focusTracker']['add'](_0x4964f3['element']),this['keystrokes']['listenTo'](_0x4964f3['element']);}),this['commentViews']['on']('change',(_0x282237,_0xf42b2b)=>{for(const _0x59eed9 of _0xf42b2b['removed'])this['focusTracker']['remove'](_0x59eed9['element']),this['keystrokes']['stopListening'](_0x59eed9['element']);for(const _0x327aef of Array['from'](_0xf42b2b['added'])['reverse']())this['focusTracker']['add'](_0x327aef['element']),this['keystrokes']['listenTo'](_0x327aef['element']);});}}function as(_0x17bf48,_0x560e87,_0x421ba5){let _0x30df4f=0x0;for(const _0x5ac077 of _0x17bf48)switch(_0x5ac077){case'insert':_0x560e87['add'](_0x421ba5['get'](_0x30df4f),_0x30df4f),_0x30df4f++;break;case'delete':_0x560e87['remove'](_0x30df4f);break;case'equal':_0x30df4f++;}}class ls extends kt{constructor(_0x127dd2){super(_0x127dd2);const _0x15cb8c=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x15cb8c['to']('contextValue',_0x296d38=>S(_0x127dd2,'THREAD_CONTEXT_LABEL',_0x296d38)),'tabindex':-0x1},'children':[{'text':_0x15cb8c['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x453a50,_0x3049b3){super(_0x453a50);const _0x75391c=this['bindTemplate'];this['_model']=_0x3049b3,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x3dc026(),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',_0x150cfe=>!!_0x150cfe),this['bind']('contextValue')['to'](this['_model'],'context',_0x50e789=>_0x50e789&&_0x50e789['value']?this['_trimContextValue'](_0x50e789['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',_0x75391c['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 _0x1253a2=new _0x2c634f(this['locale']);return _0x1253a2['label']=S(this['locale'],'Reopen'),_0x1253a2['tooltip']=S(this['locale'],'Reopen'),_0x1253a2['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>',_0x1253a2['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4bddf6=>!_0x4bddf6),_0x1253a2['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x537921,_0x2c96c3)=>_0x537921&&_0x2c96c3),_0x1253a2['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x1253a2;}['_trimContextValue'](_0x4c876b){if(_0x4c876b['length']<0x96)return _0x4c876b;const _0x221c7f=_0x4c876b['lastIndexOf']('\x20',0x93);return _0x4c876b['substring'](0x0,_0x221c7f>-0x1?_0x221c7f:0x93)+'...';}['_attachContextActions'](){const _0x50e41f=this['element']['querySelector']('.ck-context'),_0x4ca4bc=_0x50e41f['querySelector']('.ck-context__value');this['listenTo'](_0x50e41f,'mouseenter',()=>{_0x4ca4bc['offsetWidth']<_0x4ca4bc['scrollWidth']&&_0x50e41f['classList']['add']('overlay');}),this['listenTo'](_0x50e41f,'mouseleave',()=>{_0x50e41f['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x5d8899 of this['focusables'])this['focusTracker']['add'](_0x5d8899['element']),this['keystrokes']['listenTo'](_0x5d8899['element']);}['_createContextView'](){const _0x576def=new ls(this['locale']);return _0x576def['bind']('contextValue')['to'](this),_0x576def;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xd2d6db,_0x3e69a4,_0x55bd2b,_0x2297cb){super(_0xd2d6db),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x3e69a4,this['_localUser']=_0x55bd2b,this['_config']=_0x2297cb,this['commentThreadHeaderView']=new Zt(_0xd2d6db,_0x3e69a4),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0xd2d6db,S(_0xd2d6db,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0xd2d6db,_0x3e69a4,Object['assign']({'CommentView':this['_config']['CommentView']},_0x2297cb)),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',(_0x49c8d0,_0x1758d5)=>_0x49c8d0||!!_0x1758d5),this['bind']('isUnlinked')['to'](_0x3e69a4,'unlinkedAt',_0x1313ad=>!!_0x1313ad),this['bind']('ariaLabel')['to'](this,'length',_0x2643a=>{const _0x3b1fa0=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x2643a,_0x3b1fa0]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x3dc026(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3e8691=>_0x3e8691['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x5a555a(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x554fb2=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1249d1=_0x554fb2['commentInputView'];return _0x554fb2['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x1249d1,'value',(_0x563706,_0x28efe1,_0x27ba2f,_0x139a44,_0x2c490b)=>!!_0x2c490b||!!_0x139a44&&_0x27ba2f&&!_0x28efe1||_0x563706&&_0x27ba2f&&!_0x28efe1),_0x1249d1['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x573912,_0x9cb26,_0x27daec)=>{let _0x2f52ac;return _0x2f52ac=_0x27daec&&_0x9cb26?'Reply\x20to\x20reopen\x20discussion...':_0x573912?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x2f52ac);}),_0x1249d1['bind']('submitLabel')['to'](this,'length',_0x31dc44=>S(this['locale'],_0x31dc44?'Reply':'Comment')),_0x1249d1['on']('submit',(_0xd561f1,_0x916a7e)=>{this['fire']('addComment',_0x916a7e),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x1249d1['on']('cancel',()=>{this['focus']();}),_0x1249d1['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1249d1['on']('cancel',_0x3b6fdd=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3b6fdd['stop']());}),this['on']('change:isActive',(_0xf750e7,_0x52abb0,_0x44713a)=>{_0x44713a||this['length']||_0x1249d1['value']||this['fire']('removeCommentThread');}),_0x554fb2;}}class vt extends/* #__PURE__ -- @preserve */
27
- ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x14c412,_0x5e3f55,_0xea5f23,_0x2dc645){super(_0x14c412,_0x5e3f55,_0xea5f23,_0x2dc645),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x14c412,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0xd35582,_0x5dd568,_0x54a0a5)=>{_0x54a0a5||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x5d9626,_0x41b227,_0x281a63)=>{_0x281a63&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x1c932d=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x1c932d['if']('isActive','ck-thread--active'),_0x1c932d['if']('isUnlinked','ck-thread--unlinked'),_0x1c932d['if']('isConfirm','ck-thread--remove-confirmation'),_0x1c932d['to']('actionIndicator',_0x2e32b8=>_0x2e32b8?'ck-thread--'+_0x2e32b8:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1c932d['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 _0x4428fa of this['commentsListView']['commentViews'])_0x4428fa['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3f89e0}=this,_0x410aa6=this['commentsListView']['commentViews']['get'](0x0);_0x410aa6===this['_boundFirstCommentView']||_0x410aa6['isSystemComment']||(this['_boundFirstCommentView']=_0x410aa6,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x410aa6,'actionIndicator',_0x321d36=>'remove'===_0x321d36?'remove':null),_0x410aa6['placeholder']=S(_0x3f89e0,'Write\x20a\x20comment...'),_0x410aa6['removeButton']['on']('execute',_0x5b16b2=>{_0x5b16b2['stop'](),this['showConfirm'](S(_0x3f89e0,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x410aa6['focus']();}),_0x410aa6['actionBar']['add'](this['resolveButton'],0x0),_0x410aa6['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x3504d1=new _0x357499(this['locale']);return _0x3504d1['label']=S(this['locale'],'Resolve'),_0x3504d1['tooltip']=S(this['locale'],'Resolve'),_0x3504d1['icon']=_0x5038b8['check'],_0x3504d1['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x3504d1['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5364f7=>!_0x5364f7),_0x3504d1['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4e1c4d,_0x15a8b8)=>_0x4e1c4d&&!_0x15a8b8),_0x3504d1['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x3504d1;}['_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(_0x5b4fb7){super(_0x5b4fb7),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x5d5c96,_0x1b60c8,_0x33557e)=>{this['element']['innerHTML']=_0x33557e;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x13c975,_0x4dcf5e,_0x1b6ac8){super(_0x13c975),this['_model']=_0x4dcf5e,this['_config']=_0x1b6ac8,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x4dcf5e,'content',_0x4dcf5e,'authoredAt',(_0x5751a3,_0x2088ab)=>S(_0x13c975,'COMMENT_ARIA_LABEL',[_0x4dcf5e['author']['name'],_0x1b6ac8['formatDateTime'](_0x2088ab),new DOMParser()['parseFromString'](_0x5751a3,'text/html')['body']['textContent'],_0x4dcf5e['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x13c975,S(_0x13c975,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x2939e2(),this['focusTracker']=new _0x3dc026(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1b7a00=>_0x1b7a00['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 _0x2bf96b=new hs(this['locale']);return _0x2bf96b['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x5592a9,_0x583607)=>_0x583607?_0x363024(_0x5592a9,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x5592a9),_0x2bf96b;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x1b1cb3=new os(this['locale'],this['_config']['editorConfig']);return _0x1b1cb3['value']=this['_model']['content'],_0x1b1cb3['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1b1cb3['submitLabel']=S(this['locale'],'Save'),_0x1b1cb3['on']('submit',(_0x21de39,_0x7114bb)=>{this['fire']('updateComment',this['_model']['id'],_0x7114bb),this['switchToDisplayMode'](),this['focus']();}),_0x1b1cb3['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x1b1cb3['once']('editorReady',()=>{_0x1b1cb3['focus']();}),_0x1b1cb3['createEditor'](),_0x1b1cb3['delegate']('editorReady')['to'](this),_0x1b1cb3['delegate']('editorDestroyed')['to'](this),_0x1b1cb3;}['_setupKeyboardNavigation'](){const _0xfbe5ff=this['element'];this['keystrokes']['listenTo'](_0xfbe5ff);for(const _0x3848e5 of this['focusables'])this['focusTracker']['add'](_0x3848e5['element']),this['keystrokes']['listenTo'](_0x3848e5['element']);this['focusables']['on']('change',(_0x4f0ff1,_0x57cc1d)=>{for(const _0x3dd1d1 of _0x57cc1d['removed'])this['focusTracker']['remove'](_0x3dd1d1['element']),this['keystrokes']['stopListening'](_0x3dd1d1['element']);for(const _0x37237b of _0x57cc1d['added'])this['focusTracker']['add'](_0x37237b['element']),this['keystrokes']['listenTo'](_0x37237b['element']);}),this['keystrokes']['set']('enter',(_0x46f55a,_0x2a8db2)=>{_0xfbe5ff===_0x46f55a['target']&&(this['focusCycler']['focusFirst'](),_0x2a8db2());}),this['keystrokes']['set']('esc',(_0xcad2b,_0x99efca)=>{_0xfbe5ff!==_0xcad2b['target']&&(this['focus'](),_0x99efca());});}}class gt extends/* #__PURE__ -- @preserve */
28
- ti(rs){['actionBar'];['userView'];constructor(_0x4634e0,_0x1a5fd2,_0x33c35e){super(_0x4634e0,_0x1a5fd2,_0x33c35e),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x4634e0,'Reply...')),this['bind']('authoredAt')['to'](_0x1a5fd2),this['bind']('resolvedAt')['to'](_0x1a5fd2),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 _0x2daa32(_0x4634e0,_0x1a5fd2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x1a5fd2,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5b380b=this['bindTemplate'],_0x4986c4=[{'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':_0x5b380b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5b380b['to']('authoredAt',_0x1ea85f=>this['_config']['formatDateTime'](_0x1ea85f))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x5b380b['if']('isEditMode','ck-comment__actions--hidden'),_0x5b380b['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']&&_0x4986c4['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x5b380b['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x5b380b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x5b380b['if']('isEditMode','ck-comment--edit'),_0x5b380b['if']('isSystemComment','ck-comment--info'),_0x5b380b['to']('actionIndicator',_0x5e26a1=>_0x5e26a1?'ck-comment--'+_0x5e26a1:'')],'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':_0x4986c4}]}]};}['_createEditButton'](){const _0x28952c=new _0x2c634f(this['locale']);return _0x28952c['label']=S(this['locale'],'Edit'),_0x28952c['icon']=_0x5038b8['pencil'],_0x28952c['withText']=!0x0,_0x28952c['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x28952c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4e5dcd=>!_0x4e5dcd),_0x28952c['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x28952c['on']('execute',()=>this['switchToEditMode']()),_0x28952c;}['_createRemoveButton'](){const _0x45928e=new _0x2c634f(this['locale']);return _0x45928e['label']=S(this['locale'],'Remove'),_0x45928e['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',_0x45928e['withText']=!0x0,_0x45928e['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x45928e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5e9f21=>!_0x5e9f21),_0x45928e['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x45928e['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x45928e;}['_createDropdown'](){const _0x17321c=_0x234da7(this['locale'],_0xc67a49),_0x38574c=_0x17321c['panelView']['children'],_0x50ecaa=new _0x19a940(this['locale']),_0x3ff891=_0x17321c['bindTemplate'];_0x4b98e8(_0x17321c,()=>this['items']['find'](_0x48052b=>_0x48052b['isVisible'])),_0x17321c['extendTemplate']({'attributes':{'class':[_0x3ff891['if']('isVisible','ck-hidden',_0x13e832=>!_0x13e832)]}});const _0xf5ab38=(_0x36b100,_0x4e7f3f=-0x1)=>{const _0x5ae855=new _0x3aa6f0(this['locale']);_0x5ae855['children']['add'](_0x36b100);const _0x442c5c=_0x4e7f3f>-0x1?_0x4e7f3f:_0x50ecaa['items']['length'];_0x50ecaa['items']['add'](_0x5ae855,_0x442c5c);const _0x332436=Array['from'](this['items']);_0x17321c['unbind']('isEnabled','isVisible'),_0x17321c['bind']('isEnabled')['toMany'](_0x332436,'isEnabled',(..._0x1a3689)=>_0x1a3689['some'](_0x24e8bd=>_0x24e8bd)),_0x17321c['bind']('isVisible')['toMany'](_0x332436,'isVisible',(..._0x41f08a)=>_0x41f08a['some'](_0x487e8f=>_0x487e8f));};_0x17321c['panelPosition']='sw',_0x17321c['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x5038b8['threeVerticalDots']});for(const _0x4ca606 of this['items'])_0xf5ab38(_0x4ca606);return _0x38574c['add'](_0x50ecaa),_0x17321c['listenTo'](this['items'],'add',(_0x527386,_0x130785,_0x2fdda8)=>{_0xf5ab38(_0x130785,_0x2fdda8);}),_0x17321c['listenTo'](this['items'],'remove',(_0x30cd8d,_0x536829,_0xd872a6)=>{_0x50ecaa['items']['remove'](_0xd872a6);}),_0x17321c;}['_attachActions'](_0x2302d9,_0x3ddd85){const _0x3e9936=_0x2302d9&&_0x2302d9['element'];_0x3e9936&&(this['listenTo'](_0x3e9936,'mouseenter',()=>this['actionIndicator']=_0x3ddd85),this['listenTo'](_0x3e9936,'focus',()=>this['actionIndicator']=_0x3ddd85),this['listenTo'](_0x3e9936,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x3e9936,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0xc736fe=super['_createCommentInputView']();return _0xc736fe['bind']('placeholder')['to'](this),_0xc736fe;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x1e7065){const _0x8d7a65=Dt(_0x1e7065,0x1e),_0x13e86c=new MutationObserver(_0x24ce03=>{for(const _0x5b7ad0 of _0x24ce03)('attributes'==_0x5b7ad0['type']&&'class'==_0x5b7ad0['attributeName']||'childList'==_0x5b7ad0['type']||'characterData'==_0x5b7ad0['type'])&&_0x8d7a65();});return{'attach'(_0x1c490c){_0x13e86c['observe'](_0x1c490c,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x13e86c['disconnect'](),_0x8d7a65['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x14ebb5,_0x10a71d){super(_0x14ebb5),this['id']=_0x3dae5e(),this['focusTracker']=new _0x3dc026(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0xbb805a,_0x3c7eca)=>this['fire']('Esc',_0x3c7eca)),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'](_0x10a71d),this['mainView']=_0x10a71d;const _0x7ce729=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x7ce729['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 _0x3a27d1=this['element']['clientHeight'];_0x3a27d1&&(this['height']=_0x3a27d1);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x4cfe2a(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x42b59f,target:_0x4c8caf,type:_0x1b0a05,isVisible:_0x28fd37=!0x0}){super(),this['view']=_0x42b59f,this['view']['element']||this['view']['render'](),this['_type']=_0x1b0a05,this['_target']=_0x4c8caf,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x385f24([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x137bc8,_0x59e7fc)=>{this['view']['focusTracker']['add'](_0x59e7fc);}),this['focusableElements']['on']('remove',(_0x1491bb,_0x1f4f26)=>{this['view']['focusTracker']['remove'](_0x1f4f26);}),this['set']('isVisible',_0x28fd37);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x4ae433=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x4ae433),_0x4ae433;}get['targetRect'](){const _0x1007e9=this['target'];if(null===_0x1007e9)return null;if(_0x1007e9 instanceof _0x104051)return _0x1007e9;const _0x2b865f=_0x1007e9['filter'](_0x355072=>function(_0x3661b7){const _0x455f6e=_0x3661b7['offsetParent'];if(_0x455f6e)return!0x0;const _0x2a5457=_0x3661b7['getClientRects']()['item'](0x0);return!!_0x2a5457;}(_0x355072));return 0x0===_0x2b865f['length']?null:new _0x104051(_0x2b865f[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5b2bbe){this['view']['isActive']=_0x5b2bbe,this['view']['mainView']['isActive']=_0x5b2bbe;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x160921){if(!(null===_0x160921||_0x160921 instanceof _0x104051||Array['isArray'](_0x160921)&&_0x160921['every'](_0x2378d8=>ne(_0x2378d8))))throw new _0x1a0aec('annotation-invalid-target',null,{'target':_0x160921});}['_getNormalizedTarget'](){const _0x30baff='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x30baff)?[_0x30baff]:_0x30baff;}}function ne(_0x498a96){return null!==_0x498a96&&'object'==typeof _0x498a96&&'nodeType'in _0x498a96&&0x1===_0x498a96['nodeType'];}class x extends _0x385f24{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x85fac8=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x3dc026(),this['_focusTracker']['on']('change:isFocused',(_0x25ab38,_0x1731eb,_0x13dda)=>{_0x13dda||this['fire']('blur');});for(const _0x338505 of _0x85fac8)this['add'](_0x338505);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x3dc0ba){if(this['has'](_0x3dc0ba))throw new _0x1a0aec('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x3dc0ba['innerView'],_0x3dc0ba),this['_viewToAnnotation']['set'](_0x3dc0ba['view'],_0x3dc0ba);for(const _0x4827af of _0x3dc0ba['focusableElements'])this['_focusTracker']['add'](_0x4827af);this['listenTo'](_0x3dc0ba['focusableElements'],'add',(_0x44477e,_0x1d9900)=>{this['_focusTracker']['add'](_0x1d9900);}),this['listenTo'](_0x3dc0ba['focusableElements'],'remove',(_0x1e4dd0,_0x23f05c)=>{this['_focusTracker']['remove'](_0x23f05c);}),this['listenTo'](_0x3dc0ba['view']['focusTracker'],'change:isFocused',(_0x3774db,_0x1a82f8,_0x4c392b)=>{_0x4c392b&&this['fire']('focus',_0x3dc0ba);}),_0x3dc0ba['updateTargetRect']();const _0x49c0d9=this['_getOrderInContent'](_0x3dc0ba['view']['targetRect']);return super['add'](_0x3dc0ba,_0x49c0d9);}['remove'](_0x293db6){if(!this['has'](_0x293db6))throw new _0x1a0aec('annotationcollection-not-existing-item',null);this['stopListening'](_0x293db6['view']['focusTracker']),this['stopListening'](_0x293db6['focusableElements']);for(const _0x57ce6a of _0x293db6['focusableElements'])this['_focusTracker']['remove'](_0x57ce6a);return this['_viewToAnnotation']['delete'](_0x293db6['view']),this['_innerViewToAnnotation']['delete'](_0x293db6['innerView']),super['remove'](_0x293db6);}['getByInnerView'](_0x5e016f){return this['_innerViewToAnnotation']['get'](_0x5e016f);}['getByView'](_0x2b24b5){return this['_viewToAnnotation']['get'](_0x2b24b5);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x6eda8b of this)_0x6eda8b['updateTargetRect']();this['_sort']();}['_sort'](){const _0x5031d2=Array['from'](this)['sort']((_0x2cff5f,_0x2c8aaa)=>v(_0x2cff5f['view']['targetRect'],_0x2c8aaa['view']['targetRect']));for(let _0x59e136=_0x5031d2['length']-0x1;_0x59e136>0x0;_0x59e136--){const _0xf7809b=_0x5031d2[_0x59e136];_0x59e136!==this['getIndex'](_0xf7809b)&&(this['remove'](_0xf7809b),this['add'](_0xf7809b));}}['_getOrderInContent'](_0x38ec49){let _0x134a41=0x0;if(!_0x38ec49)return this['length'];for(const _0x187c12 of this){const _0x12d578=_0x187c12['view']['targetRect'];if(_0x12d578){if(v(_0x38ec49,_0x12d578)<0x0)return _0x134a41;_0x134a41++;}}return _0x134a41;}}function v(_0x37ef47,_0x3fc56b){if(null===_0x37ef47&&null===_0x3fc56b)return 0x0;if(null===_0x37ef47)return-0x1;if(null===_0x3fc56b)return 0x1;const _0x11ee7b=_0x37ef47['top']-_0x3fc56b['top'];return 0x0==_0x11ee7b?_0x37ef47['left']-_0x3fc56b['left']:_0x11ee7b;}class N extends _0x10ef99{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4c84fe){if(super(_0x4c84fe),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x4c84fe instanceof _0x45a0eb){const _0x189a3b=_0x4c84fe['locale'];_0x4c84fe['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x189a3b,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x189a3b,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x189a3b,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x189a3b,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x189a3b,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x189a3b,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x189a3b,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2a0a01){this['collection']['add'](_0x2a0a01);}['remove'](_0x5522d2){this['collection']['remove'](_0x5522d2),_0x5522d2['destroy']();}['refreshVisibility'](){for(const _0x3daf60 of this['collection'])_0x3daf60['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x3ac69d){return this['collection']['getByInnerView'](_0x3ac69d);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x253b2c of this['collection'])_0x253b2c['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x273375){this['fire']('_activateAnnotation',_0x273375);}['createAnnotation'](_0x4c1d1b){return new d(_0x4c1d1b);}['createAnnotationView'](_0x1a0828,_0x282cb8){return new T(_0x1a0828,_0x282cb8);}['_addActiveAnnotation'](_0x4ae60b){const _0x455fac=new Set(this['activeAnnotations']);_0x455fac['add'](_0x4ae60b),this['activeAnnotations']=_0x455fac;}['_removeActiveAnnotation'](_0x50ff9d){const _0x1c4b13=new Set(this['activeAnnotations']);_0x1c4b13['delete'](_0x50ff9d),this['activeAnnotations']=_0x1c4b13;}['_bindAnnotationsToVisibleAnnotations'](){const _0x29c638=this['collection'],_0x48f7df=this['_visibleAnnotations'];function _0x2dbca0(_0xe473b7){const _0x4c2bda=_0xe473b7['source'];_0x4c2bda['isVisible']&&!_0x48f7df['has'](_0x4c2bda)?_0x48f7df['add'](_0x4c2bda):!_0x4c2bda['isVisible']&&_0x48f7df['has'](_0x4c2bda)&&_0x48f7df['remove'](_0x4c2bda),_0x4c2bda['view']['focusTracker']['remove'](_0x4c2bda['view']['element']),_0x4c2bda['view']['focusTracker']['add'](_0x4c2bda['view']['element']);}this['listenTo'](_0x29c638,'add',(_0x20efc2,_0x6e1d4f)=>{_0x6e1d4f['isVisible']&&_0x48f7df['add'](_0x6e1d4f),this['listenTo'](_0x6e1d4f,'change:isVisible',_0x2dbca0);}),this['listenTo'](_0x29c638,'remove',(_0x252ece,_0x535f62)=>{_0x48f7df['has'](_0x535f62)&&_0x48f7df['remove'](_0x535f62),this['stopListening'](_0x535f62,'change:isVisible',_0x2dbca0);});}['_setupEnterAnnotationKeystroke'](){const _0x3af929=_0x1dd055=>{_0x1dd055['on']('ready',()=>{_0x1dd055['keystrokes']['set'](_0x51a6c2,(_0x56763c,_0x186b0e)=>{const _0x445183=_0x28c379(this['activeAnnotations']['values']());_0x445183&&(_0x445183['view']['focus'](),_0x186b0e());});});};this['context']instanceof _0x45a0eb?_0x3af929(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x1e9719,_0x217a37)=>{_0x3af929(_0x217a37);});}['_setupEscapeAnnotationHandling'](){const _0x333f4c=_0x1a9dea=>{const _0xd8432f=_0x1a9dea['source'],_0x3168f1=[];let _0x3ea887;if(Array['isArray'](_0xd8432f['target'])){_0x3ea887=_0xd8432f['target'][0x0],this['context']instanceof _0x45a0eb?_0x3168f1['push'](this['context']):this['context']['editors']&&_0x3168f1['push'](...this['context']['editors']);for(const _0x25b914 of _0x3168f1)for(const _0x35970d of _0x25b914['editing']['view']['domRoots']['values']())if(_0x35970d['contains'](_0x3ea887))return void _0x25b914['editing']['view']['focus']();_0x3ea887['focus']();}};this['listenTo'](this['collection'],'add',(_0x2f69cd,_0x5bed1b)=>{this['listenTo'](_0x5bed1b,'escape',_0x333f4c,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x276358,_0x1a1a1c)=>{this['stopListening'](_0x1a1a1c,'escape',_0x333f4c);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x10ef99{['_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(_0x53bb5b){super(_0x53bb5b),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x5b2533=this['context']['config'];_0x5b2533['define']('comments.maxCommentsWhenCollapsed',0x2),_0x5b2533['define']('comments.maxThreadTotalWeight',0x1f4),_0x5b2533['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x5b2533['define']('comments.CommentThreadView',vt),_0x5b2533['define']('comments.CommentView',gt),_0x5b2533['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x35ae98=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x5c5bc7,_0x123419)=>this['_addCommentThread'](_0x123419)),this['on']('submitCommentThread',(_0x136715,_0x151ea0)=>this['_submitCommentThread'](_0x151ea0)),this['on']('resolveCommentThread',(_0x34c086,_0x27fa84)=>this['_resolveCommentThread'](_0x27fa84)),this['on']('resolveCommentThread',(_0x2677a9,_0x361055)=>this['_updateActiveAnnotation'](_0x361055),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x25b62f,_0x75ee6f)=>this['_reopenCommentThread'](_0x75ee6f)),this['on']('reopenCommentThread',(_0x9cf124,_0x9db8f0)=>this['_updateActiveAnnotation'](_0x9db8f0),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x3da54a,_0x3c540a)=>this['_removeCommentThread'](_0x3c540a)),this['on']('updateCommentThread',(_0x3619de,_0x42ec16)=>this['_updateCommentThread'](_0x42ec16)),this['on']('updateCommentThread',(_0x1c8f2d,_0x389f3a)=>this['_updateActiveAnnotation'](_0x389f3a),{'priority':'lowest'}),this['on']('addComment',(_0x568cb9,_0x5153dc)=>this['_addComment'](_0x5153dc)),this['on']('updateComment',(_0x173ac5,_0x1f6f5b)=>this['_updateComment'](_0x1f6f5b)),this['on']('removeComment',(_0x5d5602,_0x407bb6)=>this['_removeComment'](_0x407bb6)),this['on']('addComment',(_0x56a644,{threadId:_0x227961,isFromAdapter:_0x2a45e8})=>{if(_0x2a45e8)return;const _0x2390d5=this['getCommentThread'](_0x227961),_0x5d35a5=_0x2390d5&&this['_threadToController']['get'](_0x2390d5);_0x5d35a5&&_0x5d35a5['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x35ae98,'change:activeAnnotations',(_0x31a5e8,_0x2ad918,_0x2081b8)=>{const _0x1ce88d=Array['from'](_0x2081b8)['map'](_0x475b3a=>this['_viewToController']['get'](_0x475b3a['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x1ce88d?_0x1ce88d['model']:null;});}set['adapter'](_0xc25d60){if(this['_adapter'])throw new _0x1a0aec('commentsrepository-adapter-already-set');this['_adapter']=_0xc25d60;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x348489=Tt,threadId:_0x1d110c=_0x3dae5e(),comments:_0x3a56ae=[],unlinkedAt:_0xcb7df9=null,resolvedAt:_0xf2ff49=null,resolvedBy:_0x2a2de7=null,target:_0x465428=null,context:_0x34a51f=null,attributes:_0x3da8d4={},isResolvable:_0x9a7753=!0x0,isSubmitted:_0x22dcd1=!0x1,isFromAdapter:_0x26cb9f=!0x1}={}){return this['fire'](bt('addCommentThread',_0x348489),{'channelId':_0x348489,'threadId':_0x1d110c,'comments':_0x3a56ae,'unlinkedAt':_0xcb7df9,'resolvedAt':_0xf2ff49,'resolvedBy':_0x2a2de7,'target':_0x465428,'context':_0x34a51f,'attributes':_0x3da8d4,'isFromAdapter':_0x26cb9f,'isResolvable':_0x9a7753,'isSubmitted':_0x22dcd1}),this['getCommentThread'](_0x1d110c);}['openNewCommentThread']({channelId:_0x5db44f=Tt,threadId:_0x3f5f5e=_0x3dae5e(),target:_0x1a7f01,context:_0x3b4dda=null,isResolvable:_0x359dce=!0x0}){if(this['_readOnlyChannels']['has'](_0x5db44f)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x1a7f01)throw new _0x1a0aec('commentsrepository-missing-target');const _0x2b6589=this['addCommentThread']({'channelId':_0x5db44f,'threadId':_0x3f5f5e,'target':_0x1a7f01,'context':_0x3b4dda,'isResolvable':_0x359dce});if(!_0x2b6589)return null;const _0x4bbb33=this['_threadToController']['get'](_0x2b6589),_0x2d3405=_0x4bbb33['view']['commentThreadInputView']['commentInputView'],_0x2d26f6=this['context']['plugins']['get'](N),_0x465914=_0x2d26f6['getByInnerView'](_0x4bbb33['view']);return _0x2d26f6['activate'](_0x465914),_0x2d3405['once']('editorReady',()=>_0x2d3405['focus']()),_0x2b6589;}['hasCommentThread'](_0x175d0f){if('string'!=typeof _0x175d0f)throw new _0x1a0aec('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x175d0f);}['updateCommentThread']({channelId:_0x5deb1d=Tt,threadId:_0x31c2be,context:_0x44a378,unlinkedAt:_0x2106c7,attributes:_0x4736e0,isFromAdapter:_0x563c84=!0x1}){return this['fire'](bt('updateCommentThread',_0x5deb1d),{'channelId':_0x5deb1d,'threadId':_0x31c2be,'context':_0x44a378,'unlinkedAt':_0x2106c7,'attributes':_0x4736e0,'isFromAdapter':_0x563c84}),this['getCommentThread'](_0x31c2be);}['getCommentThread'](_0x21ef00){if('string'!=typeof _0x21ef00)throw new _0x1a0aec('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x21ef00);}['fetchCommentThread']({channelId:_0x4986ad,threadId:_0x1c8ebe}={}){const _0x6d8902=this['getCommentThread'](_0x1c8ebe);if(_0x6d8902)return Promise['resolve'](_0x6d8902);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x1a0aec('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x4986ad,'threadId':_0x1c8ebe})['then'](_0x1b5afa=>this['hasCommentThread'](_0x1c8ebe)?this['getCommentThread'](_0x1c8ebe):_0x1b5afa?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x4986ad},_0x1b5afa)):void 0x0)['catch'](_0x453162=>{throw console['error'](_0x453162),new _0x1a0aec('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x47315b,skipNotAttached:_0x2df8a5=!0x1,skipEmpty:_0x41ca1=!0x1,toJSON:_0x56d71d=!0x1}={}){const _0xfc99ed=[];for(const _0x531554 of this['_threads']['values']())_0x47315b&&_0x531554['channelId']!==_0x47315b||_0x2df8a5&&!_0x531554['isAttached']||_0x41ca1&&0x0===_0x531554['length']||_0xfc99ed['push'](_0x531554);return _0x56d71d?_0xfc99ed['map'](_0x409523=>_0x409523['toJSON']()):_0xfc99ed;}['setActiveCommentThread'](_0x575380){const _0x5591c1=this['context']['plugins']['get'](N);if(!_0x575380)return void(this['activeCommentThread']&&_0x5591c1['deactivateAll']());const _0x37a64b=this['getCommentThread'](_0x575380);if(!_0x37a64b)throw new _0x1a0aec('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x575380});if(!this['_threadToController']['has'](_0x37a64b))throw new _0x1a0aec('commentsrepository-active-not-attached',null,{'threadId':_0x575380});const _0x3b5fc2=_0x5591c1['getByInnerView'](this['_threadToController']['get'](_0x37a64b)['view']);_0x5591c1['activate'](_0x3b5fc2);}['switchReadOnly'](_0x1273c7,_0x9aaa64){_0x1273c7?this['_readOnlyChannels']['add'](_0x9aaa64):this['_readOnlyChannels']['delete'](_0x9aaa64),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x8f01b3){return this['_readOnlyChannels']['has'](_0x8f01b3)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x4bb777,_0x1538f0){return new Ct(_0x4bb777,_0x1538f0);}['setPermissions'](_0x7dda11,_0x5100ff=Tt){this['_permissions']['set'](_0x5100ff,_0x7dda11),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x2a36ff=Tt){return this['_permissions']['has'](_0x2a36ff)?this['_permissions']['get'](_0x2a36ff):_t;}['_addCommentThread']({channelId:_0x4a39c6,threadId:_0x491ea2,comments:_0x1a05c0,unlinkedAt:_0x26952d,resolvedAt:_0x173fe6,resolvedBy:_0x103420,target:_0x26e6fc,context:_0x1c4edd,attributes:_0x38fbbd,isFromAdapter:_0x13fd62,isResolvable:_0x5a81a1,isSubmitted:_0x218040}){if('string'!=typeof _0x491ea2)throw new _0x1a0aec('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x491ea2});if(this['hasCommentThread'](_0x491ea2))throw new _0x1a0aec('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x491ea2});const _0x4b1521=new oe(this,{'channelId':_0x4a39c6,'id':_0x491ea2,'context':_0x1c4edd,'attributes':_0x38fbbd,'unlinkedAt':_0x26952d,'resolvedAt':_0x173fe6,'resolvedBy':_0x103420?this['context']['plugins']['get'](it)['getUser'](_0x103420):null,'isResolvable':_0x5a81a1,'isSubmitted':_0x218040||_0x13fd62});this['_threads']['set'](_0x491ea2,_0x4b1521);for(const _0xd8df05 of _0x1a05c0)_0x4b1521['_add'](this['_createNewComment']({'threadId':_0x491ea2,..._0xd8df05}));return _0x26e6fc&&_0x4b1521['attachTo'](_0x26e6fc),_0x13fd62||!_0x4b1521['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x4a39c6,'threadId':_0x491ea2});}['_submitCommentThread']({channelId:_0xe5c844,threadId:_0x44ce0a}){if(!this['hasCommentThread'](_0x44ce0a))throw new _0x1a0aec('commentsrepository-missing-comment-thread',this);const _0x3faf82=this['getCommentThread'](_0x44ce0a);if(_0x3faf82['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x343eee,comments:_0x36cba4,resolvedAt:_0x16e32b,resolvedBy:_0x31b131,context:_0x301fd4,attributes:_0x3724ea}=_0x3faf82,_0x11c8cc=this['context']['plugins']['get']('PendingActions'),_0x58896e=_0x11c8cc['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0xe5c844,'threadId':_0x343eee,'comments':_0x36cba4['map'](_0x4a1e44=>_0x4a1e44['toJSON']()),'resolvedAt':_0x16e32b,'resolvedBy':_0x31b131?_0x31b131['id']:_0x31b131,'context':_0x301fd4,'attributes':_0x3724ea})['then'](({comments:_0x45da77})=>{_0x11c8cc['remove'](_0x58896e);for(const _0x58f399 of _0x45da77)this['_updateComment']({'channelId':_0xe5c844,'threadId':_0x44ce0a,'commentId':_0x58f399['commentId'],'createdAt':_0x58f399['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x254fe5=>{throw console['error'](_0x254fe5),new _0x1a0aec('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0xa4407e,target:_0x3c246c}){const _0x4b14fc=this['getCommentThread'](_0xa4407e);if(!_0x4b14fc)throw new _0x1a0aec('commentsrepository-attach-missing-comment-thread',this);const _0x5a393c=this['context']['plugins']['get']('PendingActions'),_0x1341be=this['context']['plugins']['get'](N),_0x5c430f=this['_createCommentThreadView'](_0x4b14fc),_0x5842da=new Ct(_0x4b14fc,_0x5c430f);let _0x3587e3=null;_0x5c430f['on']('change:isDirty',(_0x5ee70b,_0x280afa,_0x264ad8)=>{_0x264ad8?_0x3587e3=_0x5a393c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x3587e3&&(_0x5a393c['remove'](_0x3587e3),_0x3587e3=null);}),this['_threadToController']['set'](_0x4b14fc,_0x5842da),this['_viewToController']['set'](_0x5c430f,_0x5842da);const _0x15d7ab=new T(this['context']['locale'],_0x5c430f);_0x15d7ab['bind']('length')['to'](_0x5c430f),_0x15d7ab['bind']('isDirty')['to'](_0x5c430f,'isDirty',_0x5c430f,'length',(_0x6f3030,_0x1209fa)=>_0x6f3030||!_0x1209fa),_0x15d7ab['bind']('isActive')['to'](_0x5c430f),_0x15d7ab['type']='comment';const _0x4f5283=new d({'view':_0x15d7ab,'target':_0x3c246c,'type':'comment','isVisible':!_0x4b14fc['archivedAt']});return _0x5c430f['on']('escape',()=>{_0x4f5283['fire']('escape');}),this['_bindAnnotationToEditors'](_0x5c430f,_0x4f5283),_0x1341be['add'](_0x4f5283),_0x4f5283;}['_bindAnnotationToEditors'](_0x2fbc90,_0x32f71a){this['listenTo'](_0x2fbc90,'editorReady',(_0x52e4ac,_0x377694)=>{const _0x496f1c=_0x377694['ui']['view']['body']['bodyCollectionContainer'];_0x32f71a['focusableElements']['add'](_0x496f1c),this['context']instanceof _0x45a0eb&&this['context']['ui']['focusTracker']['add'](_0x496f1c);},{'priority':'highest'}),this['listenTo'](_0x2fbc90,'editorDestroyed',(_0x2534e6,_0x3624c1)=>{const _0x4c24b5=_0x3624c1['ui']['view']['body']['bodyCollectionContainer'];_0x32f71a['focusableElements']['has'](_0x4c24b5)&&_0x32f71a['focusableElements']['remove'](_0x4c24b5),this['context']instanceof _0x45a0eb&&this['context']['ui']['focusTracker']['remove'](_0x4c24b5);});}['_unbindEditors'](_0x494577){this['stopListening'](_0x494577,'editorReady'),this['stopListening'](_0x494577,'editorDestroyed');}['_createCommentThreadView'](_0x1ed65a){const _0x28b56e=this['context']['plugins']['get'](it),{config:_0x27edb5,locale:_0x192460}=this['context'],_0x5898a3=lt(_0x27edb5['get']('locale'));return new(0x0,(_0x27edb5['get']('comments'))['CommentThreadView'])(_0x192460,_0x1ed65a,_0x28b56e['me'],{'editorConfig':{..._0x27edb5['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x27edb5['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x27edb5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x27edb5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x27edb5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5898a3,'CommentView':_0x27edb5['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x5d823b,channelId:_0x29ede0,resolvedAt:_0x4446f8,resolvedBy:_0x1eb905,isFromAdapter:_0x2b3504}){if(!this['hasCommentThread'](_0x5d823b))throw new _0x1a0aec('commentsrepository-missing-comment-thread',null,{'threadId':_0x5d823b});const _0x2d2eb6=this['getCommentThread'](_0x5d823b);if(_0x2d2eb6['isResolved'])throw new _0x1a0aec('commentsrepository-resolved-comment-thread',null,{'threadId':_0x5d823b});const _0x5b4ea7=this['context']['plugins']['get'](it);if(_0x2d2eb6['resolvedBy']=_0x5b4ea7['getUser'](_0x1eb905),_0x2d2eb6['resolvedAt']=_0x4446f8,_0x2b3504||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x1d7d8a=this['context']['plugins']['get']('PendingActions'),_0x554978=_0x1d7d8a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x29ede0,'threadId':_0x5d823b})['then'](({resolvedAt:_0x4d4463,resolvedBy:_0x5c2664})=>{_0x1d7d8a['remove'](_0x554978),_0x2d2eb6['resolvedBy']['id']!==_0x5c2664&&(_0x2d2eb6['resolvedBy']=_0x5b4ea7['getUser'](_0x5c2664)),_0x2d2eb6['resolvedAt']=_0x4d4463;})['catch'](_0x542b28=>{throw console['error'](_0x542b28),new _0x1a0aec('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x509f90,channelId:_0x354168,isFromAdapter:_0x398805}){if(!this['hasCommentThread'](_0x509f90))throw new _0x1a0aec('commentsrepository-missing-comment-thread',null,{'threadId':_0x509f90});const _0x2b44d5=this['getCommentThread'](_0x509f90);if(!_0x2b44d5['isResolved'])throw new _0x1a0aec('commentsrepository-reopen-comment-thread',null,{'threadId':_0x509f90});if(_0x2b44d5['resolvedBy']=null,_0x2b44d5['resolvedAt']=null,_0x398805||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x3b5d1e=this['context']['plugins']['get']('PendingActions'),_0x1055d3=_0x3b5d1e['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x354168,'threadId':_0x509f90})['then'](()=>_0x3b5d1e['remove'](_0x1055d3))['catch'](_0x5b78b2=>{throw console['error'](_0x5b78b2),new _0x1a0aec('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x31c039,isFromAdapter:_0x3936d2}){const _0x2b5caf=this['getCommentThread'](_0x31c039);if(!_0x2b5caf)throw new _0x1a0aec('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x31c039),this['_threads']['delete'](_0x31c039),!_0x2b5caf['isSubmitted']||_0x3936d2||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x35ded6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x349a12}=_0x2b5caf,_0x5ab225=_0x35ded6['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x349a12,'threadId':_0x31c039})['then'](()=>_0x35ded6['remove'](_0x5ab225))['catch'](_0x2324cc=>{throw console['error'](_0x2324cc),new _0x1a0aec('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x4a1161,unlinkedAt:_0x130c4a,context:_0x568f47,attributes:_0x12ae4c,isFromAdapter:_0x15deee}){if('string'!=typeof _0x4a1161)throw new _0x1a0aec('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4a1161});if(!this['hasCommentThread'](_0x4a1161))throw new _0x1a0aec('commentsrepository-missing-comment-thread',null,{'threadId':_0x4a1161});const _0xe2e4e2=this['getCommentThread'](_0x4a1161);let _0x206511=!0x1;if(void 0x0!==_0x568f47&&_0xe2e4e2['context']!==_0x568f47&&(_0xe2e4e2['context']=_0x568f47,_0x206511=!0x0),void 0x0!==_0x130c4a&&_0xe2e4e2['unlinkedAt']!==_0x130c4a&&(_0xe2e4e2['unlinkedAt']=_0x130c4a,_0x206511=!0x0),_0x12ae4c&&!wt(_0x12ae4c,_0xe2e4e2['attributes'])&&(_0xe2e4e2['attributes']=_0x12ae4c,_0x206511=!0x0),!_0x206511)return Promise['resolve']();if(!_0xe2e4e2['isSubmitted']||_0x15deee||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x278f30=this['context']['plugins']['get']('PendingActions'),{channelId:_0x173910}=_0xe2e4e2,_0x541cdd=_0x278f30['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x173910,'threadId':_0x4a1161,'context':_0x568f47,'unlinkedAt':_0x130c4a,'attributes':_0x12ae4c})['then'](()=>_0x278f30['remove'](_0x541cdd))['catch'](_0x2ac7ab=>{throw console['error'](_0x2ac7ab),new _0x1a0aec('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x42ac9f){const _0x8299b6=this['context']['plugins']['get'](N),_0x2c6ae3=this['getCommentThread'](_0x42ac9f);if(_0x2c6ae3['_isAttached']=!0x1,this['_threadToController']['has'](_0x2c6ae3)){const _0x5144b0=this['_threadToController']['get'](_0x2c6ae3),_0x771ffb=_0x5144b0['view'],_0x29e3b6=_0x8299b6['getByInnerView'](_0x771ffb);this['_threadToController']['delete'](_0x2c6ae3),this['_viewToController']['delete'](_0x771ffb),_0x29e3b6&&_0x8299b6['remove'](_0x29e3b6),_0x5144b0['destroy'](),_0x771ffb['destroy']()['then'](()=>{this['_unbindEditors'](_0x771ffb);});}}['_updateActiveAnnotation']({threadId:_0x4c45cb,resolvedAt:_0x451541}){const _0xa88b47=!!_0x451541,_0x35d524=this['context']['plugins']['get'](N),_0x32c665=this['getCommentThread'](_0x4c45cb);if(this['_threadToController']['has'](_0x32c665)){const _0x49c8bc=this['_threadToController']['get'](_0x32c665)['view'],_0x8a1838=_0x35d524['getByInnerView'](_0x49c8bc);_0x8a1838&&(_0xa88b47&&_0x35d524['_removeActiveAnnotation'](_0x8a1838),_0x8a1838['refreshVisibility']());}}['_getExternalAuthor'](_0x3bcb52){const _0x3eb927=this['context']['plugins']['get'](it),_0x3af5e5=pt('external:'+_0x3bcb52),_0x2c0264=_0x3eb927['getUser'](_0x3af5e5);return _0x2c0264||_0x3eb927['addUser']({'id':_0x3af5e5,'name':_0x3bcb52});}['_createNewComment']({threadId:_0x159c73,commentId:_0x1b767f=_0x3dae5e(),content:_0x35a813,authorId:_0x58bdd8,createdAt:_0x4e0d44,attributes:_0x308484}){if('string'!=typeof _0x1b767f)throw new _0x1a0aec('commentsrepository-invalid-commentid');if('string'!=typeof _0x58bdd8)throw new _0x1a0aec('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x35a813||!_0x35a813['trim']())throw new _0x1a0aec('commentsrepository-invalid-comment-content');const _0x4078b3=this['context']['plugins']['get'](it)['getUser'](_0x58bdd8);if(!_0x4078b3)throw new _0x1a0aec('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x58bdd8});let _0xe3c5cf=null,_0x182a46=_0x4e0d44;return _0x308484&&_0x308484['@external']&&(_0xe3c5cf=this['_getExternalAuthor'](_0x308484['@external']['authorName']),_0x182a46=new Date(_0x308484['@external']['createdAt'])),new re(this,{'threadId':_0x159c73,'id':_0x1b767f,'author':_0xe3c5cf||_0x4078b3,'creator':_0x4078b3,'content':_0x35a813,'createdAt':_0x4e0d44,'authoredAt':_0x182a46,'attributes':_0x308484});}['_addComment'](_0xc1a4b8){let {threadId:_0x6c5a10,content:_0x52e64b,attributes:_0x22ef5c,isFromAdapter:_0x340e2c}=_0xc1a4b8;const _0x4f6a27=this['getCommentThread'](_0xc1a4b8['threadId']);if(!_0x4f6a27)throw new _0x1a0aec('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x564b44=this['_createNewComment'](_0xc1a4b8),{id:_0x15dbb5}=_0x564b44;if(_0x4f6a27['_add'](_0x564b44),_0x340e2c||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x4f6a27['isSubmitted'])return Promise['resolve']();const _0xb7a1d9=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4ad705}=_0x4f6a27,_0x39c60f=_0xb7a1d9['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x22ef5c||(_0x22ef5c={}),this['adapter']['addComment']({'channelId':_0x4ad705,'threadId':_0x6c5a10,'commentId':_0x15dbb5,'content':_0x52e64b,'attributes':_0x22ef5c})['then'](_0x5c9642=>{_0xb7a1d9['remove'](_0x39c60f),_0x5c9642&&this['_updateComment']({'channelId':_0x4ad705,'threadId':_0x6c5a10,'commentId':_0x15dbb5,'createdAt':_0x5c9642['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x52c79d=>{throw console['error'](_0x52c79d),new _0x1a0aec('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x478176,commentId:_0x28297b,content:_0x2de196,createdAt:_0x1214e3,attributes:_0x8c293,isFromAdapter:_0x556c34}){if(void 0x0!==_0x2de196&&('string'!=typeof _0x2de196||!_0x2de196['trim']()['length']))throw new _0x1a0aec('commentsrepository-update-comment-invalid-content');const _0x2fbd8c=this['getCommentThread'](_0x478176),_0x11cf71=_0x2fbd8c['getComment'](_0x28297b);if(!_0x11cf71)throw new _0x1a0aec('commentsrepository-update-missing-comment',this);let _0x50657a=!0x1;if(_0x2de196&&_0x2de196!==_0x11cf71['content']&&(_0x11cf71['isEditable']||_0x556c34)&&(_0x11cf71['content']=_0x2de196,_0x50657a=!0x0),_0x1214e3&&_0x1214e3!==_0x11cf71['createdAt']&&(_0x11cf71['createdAt']=_0x1214e3,_0x11cf71['attributes']&&_0x11cf71['attributes']['@external']||(_0x11cf71['authoredAt']=_0x1214e3),_0x50657a=!0x0),_0x8c293&&!wt(_0x8c293,_0x11cf71['attributes'])&&(_0x11cf71['attributes']=_0x8c293,_0x50657a=!0x0),!_0x50657a)return Promise['resolve']();if(_0x2fbd8c['fire']('commentUpdated'),_0x556c34||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x490f08=this['context']['plugins']['get']('PendingActions'),{channelId:_0x57dc56}=this['getCommentThread'](_0x11cf71['threadId']),_0x3d3665=_0x490f08['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x57dc56,'threadId':_0x478176,'commentId':_0x28297b,'content':_0x2de196,'attributes':_0x8c293})['then'](()=>_0x490f08['remove'](_0x3d3665))['catch'](_0x1fddac=>{throw console['error'](_0x1fddac),new _0x1a0aec('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x5567bc,commentId:_0x4c691a,isFromAdapter:_0x5c63c3}){const _0x233d44=this['getCommentThread'](_0x5567bc),_0x51c166=_0x233d44['getComment'](_0x4c691a);if(!_0x51c166)throw new _0x1a0aec('commentsrepository-remove-missing-comment',this);if(_0x233d44['_remove'](_0x51c166),_0x5c63c3||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4a3599=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4ee191}=_0x233d44,_0x399459=_0x4a3599['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x4ee191,'threadId':_0x5567bc,'commentId':_0x4c691a})['then'](()=>_0x4a3599['remove'](_0x399459))['catch'](_0x2c14d6=>{throw console['error'](_0x2c14d6),new _0x1a0aec('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
- _0x4cfe2a(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x4c886d,_0x508145){super();const _0x46b6fa=_0x508145['isResolvable'];this['channelId']=_0x508145['channelId'],this['id']=_0x508145['id'],this['comments']=new _0x385f24(),this['_repository']=_0x4c886d,this['_isAttached']=!0x1,this['_isSubmitted']=_0x508145['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x4c886d,'_permissions',_0x4c886d,'_readOnlyChannels',()=>_0x4c886d['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x4c886d,'_permissions',()=>_0x4c886d['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x4c886d,'_permissions',()=>{const _0x3763f9=_0x4c886d['getPermissions'](this['channelId']);return _0x3763f9['write']||_0x3763f9['admin'];}),this['bind']('isResolvable')['to'](_0x4c886d,'_permissions',()=>_0x46b6fa&&_0x4c886d['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x508145['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x372138,_0x2d417f)=>_0x372138?_0x2d417f?_0x372138<_0x2d417f?_0x372138:_0x2d417f:_0x372138:_0x2d417f),this['set']('unlinkedAt',_0x508145['unlinkedAt']||null),this['set']('resolvedAt',_0x508145['resolvedAt']||null),this['set']('resolvedBy',_0x508145['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x2f895a=>!!_0x2f895a),this['set']('attributes',_0x508145['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x2349b6,_0x54392f)=>_0x2349b6+_0x54392f['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x2f6415,id:_0x530d81}=this;this['_repository']['fire'](bt('submitCommentThread',_0x2f6415),{'channelId':_0x2f6415,'threadId':_0x530d81});}['setUnlinkedAt'](_0x38f329){this['_update']({'unlinkedAt':_0x38f329});}['resolve']({resolvedAt:_0x3c6d54=new Date(),resolvedBy:_0x131f9c=null,isFromAdapter:_0x11fd8a=!0x1}={}){const _0x1d9efb=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x13b333,id:_0x53e768}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x13b333),{'channelId':_0x13b333,'threadId':_0x53e768,'resolvedAt':_0x3c6d54,'resolvedBy':_0x131f9c||_0x1d9efb['id'],'isFromAdapter':_0x11fd8a});}['reopen']({isFromAdapter:_0x2851ed=!0x1}={}){const {channelId:_0x26459e,id:_0xb77d36}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x26459e),{'channelId':_0x26459e,'threadId':_0xb77d36,'isFromAdapter':_0x2851ed});}['setContext'](_0x556ef4){this['context']||this['_update']({'context':_0x556ef4});}['setAttribute'](_0x2f01cb,_0x2544c1){const _0x26fec0=It(this['attributes']);At(_0x26fec0,_0x2f01cb,_0x2544c1),this['_update']({'attributes':_0x26fec0});}['removeAttribute'](_0x1f8e2d){const _0x588990=It(this['attributes']);yt(_0x588990,_0x1f8e2d),this['_update']({'attributes':_0x588990});}['remove']({isFromAdapter:_0x4526d9=!0x1}={}){const {channelId:_0x11f214,id:_0x113daf}=this;this['_repository']['fire'](bt('removeCommentThread',_0x11f214),{'channelId':_0x11f214,'threadId':_0x113daf,'isFromAdapter':_0x4526d9});}['attachTo'](_0xc2e33b){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0xc2e33b});}['addComment'](_0x1875f){const {channelId:_0x16c20a,id:_0x1a11c5}=this;this['_repository']['fire'](bt('addComment',_0x16c20a,_0x1a11c5),Object['assign']({'channelId':_0x16c20a,'threadId':_0x1a11c5},_0x1875f));}['getComment'](_0x50c445){if('string'!=typeof _0x50c445)throw new _0x1a0aec('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x50c445});return this['comments']['get'](_0x50c445);}['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'](_0x302b9=>_0x302b9['toJSON']()),'attributes':this['attributes']};}['_add'](_0x2fcb34){return this['listenTo'](_0x2fcb34,'change:authoredAt',()=>{const _0xb119f=this['_findOptimalIndex'](_0x2fcb34),_0x21f45a=this['comments'];_0xb119f-0x1!=_0x21f45a['getIndex'](_0x2fcb34)&&_0xb119f+0x1!=_0x21f45a['getIndex'](_0x2fcb34)&&(this['_remove'](_0x2fcb34),this['_add'](_0x2fcb34));}),this['comments']['add'](_0x2fcb34,this['_findOptimalIndex'](_0x2fcb34));}['_update'](_0x359717){const {channelId:_0x5f1d4b,id:_0x1a667d}=this;this['_repository']['fire'](bt('updateCommentThread',_0x5f1d4b),{..._0x359717,'channelId':_0x5f1d4b,'threadId':_0x1a667d});}['_remove'](_0x33db7f){return this['stopListening'](_0x33db7f),_0x33db7f['destroy'](),this['comments']['remove'](_0x33db7f);}['_findOptimalIndex'](_0x49e3b4){const _0x4aeb4c=this['comments']['find'](_0x369b82=>new Date(_0x369b82['authoredAt'])['getTime']()>new Date(_0x49e3b4['authoredAt'])['getTime']());return _0x4aeb4c?this['comments']['getIndex'](_0x4aeb4c):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
- _0x4cfe2a(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x5edaba,_0x2ab6b3){super();const _0x576015=_0x5edaba['context']['plugins']['get'](it)['me'],_0x10eb41=_0x5edaba['getCommentThread'](_0x2ab6b3['threadId']),_0x3e4c7d=0x0===_0x10eb41['comments']['length'],_0x1ac7a0=_0x576015===_0x2ab6b3['author'];this['id']=_0x2ab6b3['id'],this['threadId']=_0x2ab6b3['threadId'],this['author']=_0x2ab6b3['author'],this['creator']=_0x2ab6b3['creator'],this['isExternal']=Boolean(_0x2ab6b3['attributes']&&_0x2ab6b3['attributes']['@external']),this['set']('content',_0x2ab6b3['content']),this['createdAt']=_0x2ab6b3['createdAt']||new Date(),this['set']('authoredAt',_0x2ab6b3['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x10eb41,'resolvedAt'),this['set']('attributes',_0x2ab6b3['attributes']||{}),this['bind']('isEditable')['to'](_0x5edaba,'_permissions',()=>{const _0x471a85=_0x5edaba['getPermissions'](_0x10eb41['channelId'])['write'],_0x2a4474=_0x5edaba['getPermissions'](_0x10eb41['channelId'])['modifyAll'];return _0x1ac7a0&&_0x471a85||!_0x1ac7a0&&_0x2a4474;}),this['bind']('isRemovable')['to'](_0x10eb41,'isRemovable',_0x5edaba,'_permissions',_0x38a2e5=>{const _0x2a579e=_0x5edaba['getPermissions'](_0x10eb41['channelId'])['write'],_0x3b53bd=_0x5edaba['getPermissions'](_0x10eb41['channelId'])['modifyAll'];return _0x1ac7a0&&_0x2a579e||_0x38a2e5&&_0x3e4c7d||!_0x1ac7a0&&_0x3b53bd&&!_0x3e4c7d;}),this['bind']('isReadOnly')['to'](_0x10eb41,'isReadOnly'),this['_repository']=_0x5edaba;}get['weight'](){return Math['max'](function(_0x37174a){const _0x359bc2=document['createElement']('div');return _0x359bc2['innerHTML']=_0x37174a,_0x359bc2['textContent']['length'];}(this['content']),0xc8);}['update'](_0xe43188){const {threadId:_0x64c7f,id:_0x251faf}=this;if(!this['_repository']['hasCommentThread'](_0x64c7f))throw new _0x1a0aec('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x386afb}=this['_repository']['getCommentThread'](_0x64c7f);this['_repository']['fire'](bt('updateComment',_0x386afb,_0x64c7f),{'channelId':_0x386afb,'threadId':_0x64c7f,'commentId':_0x251faf,..._0xe43188});}['setAttribute'](_0x44f0a5,_0x36f6b8){const _0x48df51=It(this['attributes']);At(_0x48df51,_0x44f0a5,_0x36f6b8),this['update']({'attributes':_0x48df51});}['removeAttribute'](_0x2227f8){const _0x299956=It(this['attributes']);yt(_0x299956,_0x2227f8),this['update']({'attributes':_0x299956});}['remove'](_0x8e98d3={}){if(!_0x8e98d3['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x490377,id:_0x270286}=this;if(!this['_repository']['hasCommentThread'](_0x490377))throw new _0x1a0aec('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x6ef14e}=this['_repository']['getCommentThread'](_0x490377);this['_repository']['fire'](bt('removeComment',_0x6ef14e,_0x490377),{'channelId':_0x6ef14e,'threadId':_0x490377,'commentId':_0x270286,..._0x8e98d3});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x28ffcc,..._0xa26d54){for(const _0x223b1f of _0xa26d54)void 0x0!==_0x223b1f&&(_0x28ffcc+=':'+String(_0x223b1f));return _0x28ffcc;}class J extends _0x338491{['refresh'](){const _0x5602b4=this['editor']['model']['document']['selection'];for(const _0x3ca4b2 of _0x5602b4['getRanges']())if(this['_hasContent'](_0x3ca4b2))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0xd0364b=_0x3dae5e()}={}){const _0x4fbe90=this['editor']['model'],_0x38c445=[];for(const _0x1e627e of _0x4fbe90['document']['selection']['getRanges']())this['_hasContent'](_0x1e627e)&&_0x38c445['push'](this['_trimToContent'](_0x1e627e));_0x4fbe90['change'](_0x3af306=>{for(const _0x143aab of _0x38c445){const _0x4caf07=_0x3dae5e()['substr'](0x1,0x5),_0x3a669c='comment:'+_0xd0364b+':'+_0x4caf07;_0x3af306['addMarker'](_0x3a669c,{'range':_0x143aab,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x921aa7){for(const _0xfb4f72 of _0x921aa7['getItems']())if(this['_itemIsContent'](_0xfb4f72))return!0x0;return!0x1;}['_itemIsContent'](_0x227821){return _0x227821['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x227821)&&!_0x227821['is']('element','tableCell');}['_trimToContent'](_0x47ae3b){const _0x2987ee=_0x13b54b=>!this['_itemIsContent'](_0x13b54b['item']),_0x3466ac=_0x47ae3b['start']['getLastMatchingPosition'](_0x2987ee),_0x14a4b1=_0x47ae3b['end']['getLastMatchingPosition'](_0x2987ee,{'direction':'backward'});return this['editor']['model']['createRange'](_0x3466ac,_0x14a4b1);}}class P extends _0x5e07b6{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5610ea){super(_0x5610ea),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x3f04cc=this['editor'],_0x1d55b3=_0x3f04cc['model']['document']['selection'],_0x26b9f6=_0x283364(()=>this['refreshSelectedViews'](),0xa);_0x1d55b3['on']('change:range',(_0x3e9ea6,_0x4fe552)=>{_0x4fe552['directChange']&&(_0x26b9f6['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x3f04cc['editing']['view']['document'],'change:isFocused',(_0x3b3aa7,_0x1926c7,_0x277d71)=>{_0x277d71&&_0x26b9f6();}),this['listenTo'](_0x3f04cc['ui']['focusTracker'],'change:isFocused',(_0x1e56f4,_0xeaf945,_0x5e922d)=>{_0x5e922d||_0x3f04cc['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x13b355=>this['_editorAnnotationsData']['has'](_0x13b355['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x44a5eb){if(this['_editorAnnotations']['has'](_0x44a5eb['view']))return;this['_editorAnnotations']['add'](_0x44a5eb['view']),this['editor']['ui']['focusTracker']['add'](_0x44a5eb['view']['element']);const _0x35ff33=this['editor']['plugins']['get'](N);this['listenTo'](_0x35ff33['collection'],'remove',(_0x5d8bee,_0x16e898)=>{this['editor']['ui']['focusTracker']['remove'](_0x16e898['view']['element']),this['_editorAnnotations']['delete'](_0x16e898['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x94fa5e){if('function'!=typeof _0x94fa5e)throw new _0x1a0aec('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x94fa5e);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x534c8d,annotations:_0x919e6b}){const _0x4c5e98=[],_0x56c646=this['editor']['model']['document']['selection'],_0x2d6c4c=Array['from'](_0x56c646['getRanges']());for(const [_0x28a729,_0x50be35]of this['_editorAnnotationsData']){const _0x90e59=_0x2312c0(_0x50be35),_0x7d4d68=_0x919e6b['getByInnerView'](_0x28a729);_0x90e59&&_0x7d4d68&&_0x4c5e98['push']({'annotation':_0x7d4d68,'range':_0x90e59});}function _0x2312c0(_0x17517a){for(const _0x12ebb7 of _0x17517a)for(const _0x3bea3b of _0x2d6c4c)if(_0x12ebb7['containsRange'](_0x3bea3b,!_0x56c646['isCollapsed']))return _0x12ebb7;return null;}return _0x4c5e98['sort']((_0x3c3d0c,_0x6a17ad)=>{const _0x56d0ca=_0x3c3d0c['range'],_0x3cbe50=_0x6a17ad['range'];if(!_0x56d0ca['isEqual'](_0x3cbe50)){if(_0x56d0ca['containsRange'](_0x3cbe50,!0x0))return 0x1;if(_0x3cbe50['containsRange'](_0x56d0ca,!0x0))return-0x1;}return _0x3c3d0c['annotation']==_0x534c8d?-0x1:_0x6a17ad['annotation']==_0x534c8d?0x1:0x0;})['map'](_0x3c7cfa=>_0x3c7cfa['annotation']);}get['_editorAnnotationsData'](){const _0x579246=new Map();for(const _0x3302ae of Array['from'](this['_dataCollectors']))for(const [_0x1d580a,_0x2b3231]of _0x3302ae())_0x579246['set'](_0x1d580a,_0x2b3231);return _0x579246;}}class st extends _0x5e07b6{['afterInit'](){const _0x5906c5=this['editor'];if(!_0x5906c5['plugins']['has']('RestrictedEditingModeEditing'))return;_0x5906c5['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x5e07b6{constructor(_0x5308dd){super(_0x5308dd),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x7e9f3e=this['editor'],_0x55d829=_0x7e9f3e['commands']['get']('importWord'),_0x135a30=_0x7e9f3e['plugins']['get'](it);_0x55d829&&(_0x55d829['on']('execute',(_0x287544,[,_0x1c5e8f])=>{_0x1c5e8f['collaboration_features']={'comments':!0x0,'user_id':_0x135a30['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x55d829,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x3c6fb7,_0x416c6e){const {comment_threads:_0x120ace}=_0x416c6e;_0x120ace&&_0x120ace['forEach'](({thread_id:_0x4d82a9,comments:_0x2db696,is_resolved:_0x428bad})=>{const _0xeabd55=new Date(),_0x209c90=_0x2db696['map'](({author:_0x379673,content:_0x20f588,created_at:_0x56df12})=>({'content':_0x20f588,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0xeabd55,'attributes':{'@external':{'authorName':_0x379673,'createdAt':_0x56df12?new Date(_0x56df12):new Date(),'source':'importWord'}}})),_0x135c15=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x135c15,'threadId':_0x4d82a9,'comments':_0x209c90,'resolvedAt':_0x428bad?_0xeabd55:null});});}}class at extends _0x5e07b6{constructor(_0x5ce09b){super(_0x5ce09b),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x476e58=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x476e58,'contentInsertion',(_0x28d66d,_0x1c7edf)=>this['_removeMarkersWithoutThreads'](_0x1c7edf['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x440c0a){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x440c0a;const _0x41e0bb=this['editor']['plugins']['get']('CommentsRepository');for(const _0x9b865 of _0x440c0a['keys']()){const [_0x20770f,_0x1cbd24]=_0x9b865['split'](':');'comment'!=_0x20770f||_0x41e0bb['hasCommentThread'](_0x1cbd24)||_0x440c0a['delete'](_0x9b865);}return _0x440c0a;}['_registerMarkerInClipboardPipeline'](){const _0x1226ed=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x2ea8c0=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x2ea8c0&&_0x1226ed['_registerMarkerToCopy']('comment',_0x2ea8c0);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x29305a){switch(_0x29305a){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 _0x5e07b6{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0xf3f236,_0x263f5b)=>{if(!_0x263f5b['options']['showCommentHighlights'])return null;if(_0x263f5b['options']['ignoreResolvedComments']){const {id:_0x23a682}=er(_0xf3f236['markerName']),_0x3ec08a=this['editor']['plugins']['get'](o)['getCommentThread'](_0x23a682);if(_0x3ec08a&&_0x3ec08a['isResolved']&&_0xf3f236['item'])return _0x263f5b['consumable']['consume'](_0xf3f236['item'],'addMarker:'+_0xf3f236['markerName']),_0x263f5b['consumable']['consume'](_0xf3f236['item'],'removeMarker:'+_0xf3f236['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x526819=>{_0x526819['on']('addMarker:comment',(_0x325e2e,_0xd3debf,_0x36716e)=>{if(!_0x36716e['options']['showCommentHighlights'])return;const _0x2cfd54=_0xd3debf['item'];if(!_0x2cfd54)return;const _0x2dbf68=_0x36716e['mapper']['toViewElement'](_0x2cfd54);this['editor']['model']['schema']['isObject'](_0x2cfd54)&&_0x2dbf68&&!_0x2dbf68['getCustomProperty']('widget')&&_0x2dbf68['is']('containerElement')&&_0x68fda3(_0x2dbf68,_0x36716e['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1e3772,{writer:_0x4790ce,options:_0xcc5eaa})=>{if(!_0xcc5eaa['showCommentHighlights'])return null;const _0x3315c6=_0x4790ce['createContainerElement']('div'),_0x4e33dc=_0x4790ce['createEmptyElement']('hr');return _0x4790ce['addClass']('ck-horizontal-line',_0x3315c6),_0x4790ce['insert'](_0x4790ce['createPositionAt'](_0x3315c6,0x0),_0x4e33dc),_0x3315c6;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x4445b5,{writer:_0x3ada6e,options:_0x5c1b7b})=>{if(!_0x5c1b7b['showCommentHighlights'])return null;const _0x2705fe=_0x3ada6e['createContainerElement']('span'),_0x4eb89e=_0x3ada6e['createEmptyElement']('img');return _0x3ada6e['addClass']('image-inline',_0x2705fe),_0x3ada6e['insert'](_0x3ada6e['createPositionAt'](_0x2705fe,0x0),_0x4eb89e),_0x2705fe;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4cc1ed,{writer:_0x2fd60c,options:_0x59fffa})=>{if(_0x59fffa['showCommentHighlights'])return _0x2fd60c['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x45de12,_0x59bf0f,_0xc320d4)=>{_0xc320d4['options']['showCommentHighlights']&&_0x45de12['stop']();},{'priority':'high'});}}class r extends _0x5e07b6{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(_0x4986c3){super(_0x4986c3),this['set']('isThreadsLoadingPaused',!0x0),_0x4986c3['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x4b8aae,_0x314536,_0x1865f7,_0x4bef34)=>{const _0x1bd19a=_0x4986c3['plugins']['get'](o),_0x56afb9=_0x1865f7?er(_0x1865f7)['id']:null;_0x4986c3['model']['change'](()=>{if(_0x56afb9){const _0x493cec=this['getAllMarkersForId'](_0x56afb9);for(const _0x2878f4 of _0x493cec)_0x4986c3['editing']['reconvertMarker'](_0x2878f4);}if(_0x4bef34){const {id:_0x4e66d3}=er(_0x4bef34),_0x5e3e22=_0x1bd19a['getCommentThread'](_0x4e66d3);if(_0x5e3e22&&!_0x5e3e22['isAttached'])return;const _0x421cae=this['getAllMarkersForId'](_0x4e66d3);for(const _0x229318 of _0x421cae)_0x4986c3['editing']['reconvertMarker'](_0x229318);}}),_0x56afb9&&this['scrollToThreadMarker'](_0x56afb9);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4a451c=this['editor'],_0x3c72c8=_0x4a451c['plugins']['get'](o),_0x91c39c=_0x4a451c['config']['get']('collaboration.channelId'),_0x48d383=_0x3c72c8['getCommentThreads']()['filter'](_0x33091d=>_0x33091d['channelId']!==_0x91c39c);_0x4a451c['commands']['add']('addCommentThread',new J(_0x4a451c)),this['listenTo'](_0x4a451c,'change:isReadOnly',(_0x4676d8,_0x390fde,_0x480b4e)=>{_0x3c72c8['switchReadOnly'](_0x480b4e,_0x4a451c['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x3c72c8,ft('addCommentThread',_0x91c39c),(_0xba0e55,{threadId:_0x1191cd})=>{const _0x4fb6f5=this['editor']['plugins']['get'](o)['getCommentThread'](_0x1191cd);_0x4fb6f5&&_0x4fb6f5['unlinkedAt']&&this['_attachArchivedThread'](_0x1191cd);}),this['listenTo'](_0x3c72c8,ft('removeCommentThread',_0x91c39c),(_0x1f4f96,{threadId:_0x24fb86})=>{_0x4a451c['model']['enqueueChange']({'isUndoable':!0x1},_0x55184c=>{const _0x340b33=this['getAllMarkersForId'](_0x24fb86);for(const _0x588895 of _0x340b33)_0x55184c['removeMarker'](_0x588895);});}),this['listenTo'](_0x3c72c8,ft('resolveCommentThread',_0x91c39c),(_0x18f36b,{threadId:_0x262f3c})=>{(this['_reconvertMarkers'](_0x262f3c),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x262f3c)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x3c72c8,ft('reopenCommentThread',_0x91c39c),(_0x4361e3,{threadId:_0x40ccbc})=>{this['_reconvertMarkers'](_0x40ccbc);},{'priority':'low'}),this['listenTo'](_0x3c72c8,ft('addComment',_0x91c39c),(_0x322c51,{threadId:_0x18d7b4,isFromAdapter:_0x7b85ed})=>{const _0x30398b=this['getAllMarkersForId'](_0x18d7b4);if(_0x7b85ed||0x0==_0x30398b['length']||!_0x3c72c8['hasCommentThread'](_0x18d7b4))return;0x1===_0x3c72c8['getCommentThread'](_0x18d7b4)['length']&&_0x4a451c['model']['enqueueChange']({'isUndoable':!0x1},_0x194a4b=>{for(const _0x4d9c96 of _0x30398b)_0x194a4b['updateMarker'](_0x4d9c96,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x48d383);}['afterInit'](){!async function(_0x10cb4c){const _0x1095d1=_0xa44b2([0x58,0x6d,0x4f,0x63,0x6c,0x49,0x6f,0x62,0x75,0x31,0x5a,0x78,0x4c,0x35,0x36,0x77,0x33,0x39,0x51,0x4d,0x73,0x53,0x4a,0x76,0x69,0x46,0x45,0x4e,0x4b,0x71,0x50,0x6a,0x34,0x68,0x30,0x47,0x54,0x74,0x65,0x42,0x32,0x38,0x67,0x61,0x70,0x43,0x37,0x41,0x6b,0x52,0x66,0x79,0x44,0x59,0x6e,0x57,0x48,0x7a,0x56,0x64,0x55,0x72]),_0x2d8cf1=0x865d118,_0x217a76=0x8628fa0^_0x2d8cf1,_0x3c2263=window[_0xa44b2([0x44,0x61,0x74,0x65])][_0xa44b2([0x6e,0x6f,0x77])](),_0x93f455=_0x10cb4c[_0xa44b2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x467ab9=new window[(_0xa44b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c44d8=>{_0x93f455[_0xa44b2([0x6f,0x6e,0x63,0x65])](_0xa44b2([0x72,0x65,0x61,0x64,0x79]),_0x3c44d8);}),_0x5c3939={[_0xa44b2([0x6b,0x74,0x79])]:_0xa44b2([0x45,0x43]),[_0xa44b2([0x75,0x73,0x65])]:_0xa44b2([0x73,0x69,0x67]),[_0xa44b2([0x63,0x72,0x76])]:_0xa44b2([0x50,0x2d,0x32,0x35,0x36]),[_0xa44b2([0x78])]:_0xa44b2([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]),[_0xa44b2([0x79])]:_0xa44b2([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]),[_0xa44b2([0x61,0x6c,0x67])]:_0xa44b2([0x45,0x53,0x32,0x35,0x36])},_0x198d6c=_0x93f455[_0xa44b2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa44b2([0x67,0x65,0x74])](_0xa44b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52a22f(){let _0x19c4e0,_0x1dc61a=null,_0x52c689=null;try{if(_0x198d6c==_0xa44b2([0x47,0x50,0x4c]))return _0xa44b2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19c4e0=_0x37442e(),!_0x19c4e0)return _0xa44b2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19c4e0[_0xa44b2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x52c689=_0x30604f(_0x19c4e0[_0xa44b2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19c4e0[_0xa44b2([0x6a,0x74,0x69])])),await _0x506c93()?_0x5668b4()?_0x774ac5()?_0xa44b2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2dc15e()?(_0x19c4e0[_0xa44b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa44b2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1dc61a=_0x324959(_0xa44b2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19c4e0[_0xa44b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa44b2([0x74,0x72,0x69,0x61,0x6c])&&(_0x1dc61a=_0x324959(_0xa44b2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x404083()):_0xa44b2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa44b2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa44b2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x10a563){return _0xa44b2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x774ac5(){const _0x4c2b83=[_0xa44b2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa44b2([0x74,0x72,0x69,0x61,0x6c])][_0xa44b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19c4e0[_0xa44b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c2263/0x3e8:0xe10*_0x217a76;return _0x19c4e0[_0xa44b2([0x65,0x78,0x70])]<_0x4c2b83;}function _0x5668b4(){const _0x3dc496=_0x19c4e0[_0xa44b2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3dc496)return!0x1;if(_0x3dc496[_0xa44b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa44b2([0x2a])))return!0x0;if(_0x3dc496[_0xa44b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa44b2([0x43,0x4d,0x54])))return!0x0;if(_0x3dc496[_0xa44b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa44b2([0x52,0x43,0x4d,0x54]))){if(_0x52117a())return!0x0;if(_0x294522()||_0x1916b3())return!0x0;}return!0x1;}function _0x2dc15e(){const _0x195c28=_0x19c4e0[_0xa44b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x195c28||0x0==_0x195c28[_0xa44b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36c9ff}=new URL(window[_0xa44b2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x195c28[_0xa44b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36c9ff))return!0x0;const _0x3b036c=_0x36c9ff[_0xa44b2([0x73,0x70,0x6c,0x69,0x74])](_0xa44b2([0x2e]));return _0x195c28[_0xa44b2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33a2a2=>_0x33a2a2[_0xa44b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa44b2([0x2a])))[_0xa44b2([0x6d,0x61,0x70])](_0x35cb5a=>_0x35cb5a[_0xa44b2([0x73,0x70,0x6c,0x69,0x74])](_0xa44b2([0x2e])))[_0xa44b2([0x73,0x6f,0x6d,0x65])](_0x5f4b2e=>_0x3b036c[_0xa44b2([0x65,0x76,0x65,0x72,0x79])]((_0x6a4caf,_0x5d6c1c)=>_0x5f4b2e[_0x5d6c1c]===_0x6a4caf||_0x5f4b2e[_0x5d6c1c]===_0xa44b2([0x2a])));}function _0x404083(){return _0x1dc61a&&_0x52c689?new window[(_0xa44b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20c4c5,_0x5dd2e1)=>{_0x1dc61a[_0xa44b2([0x74,0x68,0x65,0x6e])](_0x20c4c5,_0x5dd2e1),_0x52c689[_0xa44b2([0x74,0x68,0x65,0x6e])](_0x21f426=>{_0x21f426!=_0xa44b2([0x56,0x61,0x6c,0x69,0x64])&&_0x20c4c5(_0x21f426);},_0x5dd2e1);}):_0x1dc61a||_0x52c689||_0xa44b2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30604f(_0x2a808c,_0xb5ffee){return new window[(_0xa44b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54eb36=>{if(_0x2af895())return _0x54eb36(_0xa44b2([0x56,0x61,0x6c,0x69,0x64]));_0x716b22(),_0x93f455[_0xa44b2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa44b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5eb5c4=!0x1;const _0x50865d=_0x3dae5e();function _0x4694ae(_0x2167a4){return!!_0x2167a4&&(typeof _0x2167a4===_0xa44b2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2167a4===_0xa44b2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2167a4[_0xa44b2([0x74,0x68,0x65,0x6e])]===_0xa44b2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2167a4[_0xa44b2([0x63,0x61,0x74,0x63,0x68])]===_0xa44b2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x135b1c(_0x242f06){_0x2e81d0(_0x242f06)[_0xa44b2([0x74,0x68,0x65,0x6e])](_0x5698e5=>{if(!_0x5698e5||_0x5698e5[_0xa44b2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa44b2([0x6f,0x6b]))return _0xa44b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19bf9c(_0x2dbe2f(_0x50865d+_0xb5ffee))!=_0x5698e5[_0xa44b2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa44b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa44b2([0x56,0x61,0x6c,0x69,0x64]);})[_0xa44b2([0x74,0x68,0x65,0x6e])](_0x52ddbf=>(_0x2e59f2(),_0x52ddbf),()=>{const _0x181ac4=_0x2f75b1();return null==_0x181ac4?(_0x2e59f2(),_0xa44b2([0x56,0x61,0x6c,0x69,0x64])):_0xa44b2(_0x3c2263-_0x181ac4>(0x2c695518^_0x2d8cf1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa44b2([0x74,0x68,0x65,0x6e])](_0x54eb36)[_0xa44b2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54eb36(_0xa44b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xef8900=0x8533f98^_0x2d8cf1;function _0x2e59f2(){const _0xd325ef=_0xa44b2([0x6c,0x6c,0x63,0x74,0x2d])+_0x19bf9c(_0x2dbe2f(_0x2a808c)),_0x1680ab=_0x4c958f(_0x19bf9c(window[_0xa44b2([0x4d,0x61,0x74,0x68])][_0xa44b2([0x63,0x65,0x69,0x6c])](_0x3c2263/_0xef8900)));window[_0xa44b2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa44b2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd325ef,_0x1680ab);}function _0x2f75b1(){const _0x36e170=_0xa44b2([0x6c,0x6c,0x63,0x74,0x2d])+_0x19bf9c(_0x2dbe2f(_0x2a808c)),_0x446d7f=window[_0xa44b2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa44b2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36e170);return _0x446d7f?window[_0xa44b2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c958f(_0x446d7f),0x10)*_0xef8900:null;}function _0x2e81d0(_0x5f2d9b){return new window[(_0xa44b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e7312,_0x57bfb9)=>{_0x5f2d9b[_0xa44b2([0x74,0x68,0x65,0x6e])](_0x3e7312,_0x57bfb9),window[_0xa44b2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x57bfb9,0x86405d8^_0x2d8cf1);});}}_0x93f455[_0xa44b2([0x6f,0x6e])](_0xa44b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1fe8f2,_0xc27df7)=>{if(_0xc27df7[0x0]!=_0x2a808c)return _0x54eb36(_0xa44b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xc27df7[0x1]={..._0xc27df7[0x1],[_0xa44b2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x50865d};},{[_0xa44b2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa44b2([0x68,0x69,0x67,0x68])}),_0x93f455[_0xa44b2([0x6f,0x6e])](_0xa44b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x393651=>{_0x4694ae(_0x393651[_0xa44b2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5eb5c4=!0x0,_0x135b1c(_0x393651[_0xa44b2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa44b2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa44b2([0x6c,0x6f,0x77])}),_0x467ab9[_0xa44b2([0x74,0x68,0x65,0x6e])](()=>{_0x5eb5c4||_0x54eb36(_0xa44b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2af895(){return _0x93f455[_0xa44b2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa44b2([0x76,0x69,0x65,0x77])][_0xa44b2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa44b2([0x61,0x75,0x74,0x6f]);}function _0x716b22(){_0x93f455[_0xa44b2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa44b2([0x76,0x69,0x65,0x77])][_0xa44b2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa44b2([0x61,0x75,0x74,0x6f]);}}function _0x324959(_0x1e2256){const _0x29220c=[new window[(_0xa44b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5be4ee=>setTimeout(_0x5be4ee,0x86cefd4^_0x2d8cf1)),_0x467ab9[_0xa44b2([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa44b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15865c=>{let _0x41fb60=0x0;_0x93f455[_0xa44b2([0x6d,0x6f,0x64,0x65,0x6c])][_0xa44b2([0x6f,0x6e])](_0xa44b2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ae896,_0x1801b4)=>{_0x1801b4[0x0][_0xa44b2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x41fb60++,_0x41fb60==(0x865d0e0^_0x2d8cf1)&&(_0x15865c(),_0x1ae896[_0xa44b2([0x6f,0x66,0x66])]());});}))];return window[_0xa44b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa44b2([0x72,0x61,0x63,0x65])](_0x29220c)[_0xa44b2([0x74,0x68,0x65,0x6e])](()=>_0x1e2256);}async function _0x149f40(){await _0x467ab9,_0x93f455[_0xa44b2([0x6d,0x6f,0x64,0x65,0x6c])][_0xa44b2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e5727,_0x93f455[_0xa44b2([0x6d,0x6f,0x64,0x65,0x6c])][_0xa44b2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e5727,_0x93f455[_0xa44b2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa44b2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x52117a(){return _0x3e0a15(_0xa44b2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x14a77e(_0xa44b2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xa44b2([0x73,0x74,0x61,0x74,0x65])]==_0xa44b2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x294522(){return _0x3e0a15(_0xa44b2([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 _0x1916b3(){return _0x3e0a15(_0xa44b2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x551bfd(_0x3cb587){const _0x33e8a4=_0x275c8b();_0x93f455[_0x33e8a4]=_0xa44b2([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3cb587,_0x3cb587!=_0xa44b2([0x56,0x61,0x6c,0x69,0x64])&&_0x149f40();}function _0x275c8b(){const _0x3809ee=window[_0xa44b2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa44b2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa44b2([0x6e,0x6f,0x77])]())[_0xa44b2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa44b2([0x2e]),'');let _0x542555=_0xa44b2([0x58]);for(let _0x502cee=0x0;_0x502cee<_0x3809ee[_0xa44b2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x502cee+=0x2){let _0xfbabd7=window[_0xa44b2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3809ee[_0xa44b2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x502cee,_0x502cee+0x2));_0xfbabd7>=_0x1095d1[_0xa44b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xfbabd7-=_0x1095d1[_0xa44b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x542555+=_0x1095d1[_0xfbabd7];}return _0x542555;}function _0x37442e(){const _0x19cc9e=_0x198d6c[_0xa44b2([0x73,0x70,0x6c,0x69,0x74])](_0xa44b2([0x2e]));if(0x3!=_0x19cc9e[_0xa44b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e6b4b(_0x19cc9e[0x1]);function _0x3e6b4b(_0x581ae4){const _0x335b42=_0xd17d5d(_0x581ae4);return _0x335b42&&_0x34967f()?_0x335b42:null;function _0x34967f(){const _0x1ba4d4=_0x335b42[_0xa44b2([0x6a,0x74,0x69])],_0x484044=window[_0xa44b2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ba4d4[_0xa44b2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ba4d4[_0xa44b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x14183f={..._0x335b42,[_0xa44b2([0x6a,0x74,0x69])]:_0x1ba4d4[_0xa44b2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ba4d4[_0xa44b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x14183f[_0xa44b2([0x76,0x63])],_0x2dbe2f(_0x14183f)==_0x484044;}}}async function _0x506c93(){let _0x19ba5a=!0x0;try{const _0x384c2b=_0x198d6c[_0xa44b2([0x73,0x70,0x6c,0x69,0x74])](_0xa44b2([0x2e])),[_0x72381c,_0x56f913,_0xad9f3a]=_0x384c2b;return _0x307646(_0x72381c),await _0x474e3f(_0x72381c,_0x56f913,_0xad9f3a),_0x19ba5a;}catch(_0x1dfe9e){return!0x1;}function _0x307646(_0x5d01ad){const _0x79c0ee=_0xd17d5d(_0x5d01ad);_0x79c0ee&&_0x79c0ee[_0xa44b2([0x61,0x6c,0x67])]==_0xa44b2([0x45,0x53,0x32,0x35,0x36])||(_0x19ba5a=!0x1);}async function _0x474e3f(_0x3e9a15,_0x33f700,_0x2f16f4){const _0x594d1b=window[_0xa44b2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa44b2([0x66,0x72,0x6f,0x6d])](_0x587ebd(_0x2f16f4),_0x29eda2=>_0x29eda2[_0xa44b2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x524b3f=new window[(_0xa44b2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa44b2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e9a15+_0xa44b2([0x2e])+_0x33f700),_0x4500a6=window[_0xa44b2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa44b2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4500a6)return;const _0x65e5d=await _0x4500a6[_0xa44b2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa44b2([0x6a,0x77,0x6b]),_0x5c3939,{[_0xa44b2([0x6e,0x61,0x6d,0x65])]:_0xa44b2([0x45,0x43,0x44,0x53,0x41]),[_0xa44b2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa44b2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa44b2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4500a6[_0xa44b2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa44b2([0x6e,0x61,0x6d,0x65])]:_0xa44b2([0x45,0x43,0x44,0x53,0x41]),[_0xa44b2([0x68,0x61,0x73,0x68])]:{[_0xa44b2([0x6e,0x61,0x6d,0x65])]:_0xa44b2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x65e5d,_0x594d1b,_0x524b3f)||(_0x19ba5a=!0x1);}}function _0xd17d5d(_0x52c411){return _0x52c411[_0xa44b2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa44b2([0x65,0x79]))?JSON[_0xa44b2([0x70,0x61,0x72,0x73,0x65])](_0x587ebd(_0x52c411)):null;}function _0x587ebd(_0x38be3d){return window[_0xa44b2([0x61,0x74,0x6f,0x62])](_0x38be3d[_0xa44b2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa44b2([0x2b]))[_0xa44b2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa44b2([0x2f])));}function _0x2dbe2f(_0x45347a){let _0xdec2b9=0x1505;function _0x4746cb(_0x31cf67){for(let _0x546fbb=0x0;_0x546fbb<_0x31cf67[_0xa44b2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x546fbb++){const _0x43ca92=_0x31cf67[_0xa44b2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x546fbb);_0xdec2b9=(_0xdec2b9<<0x5)+_0xdec2b9+_0x43ca92,_0xdec2b9&=_0xdec2b9;}}function _0x70b5b6(_0x3572af){Array[_0xa44b2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3572af)?_0x3572af[_0xa44b2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x70b5b6):_0x3572af&&typeof _0x3572af==_0xa44b2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa44b2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3572af)[_0xa44b2([0x73,0x6f,0x72,0x74])]()[_0xa44b2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29554a,_0x222f36])=>{_0x4746cb(_0x29554a),_0x70b5b6(_0x222f36);}):_0x4746cb(window[_0xa44b2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3572af));}return _0x70b5b6(_0x45347a),_0xdec2b9>>>0x0;}function _0x19bf9c(_0x18d80f){return _0x18d80f[_0xa44b2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa44b2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa44b2([0x30]));}function _0x4c958f(_0x3efadc){return _0x3efadc[_0xa44b2([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa44b2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa44b2([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e0a15(_0x2703fa){return _0x93f455[_0xa44b2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa44b2([0x68,0x61,0x73])](_0x2703fa);}function _0x14a77e(_0x3c01d1){return _0x93f455[_0xa44b2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa44b2([0x67,0x65,0x74])](_0x3c01d1);}function _0x4e5727(){}function _0xa44b2(_0x460b5a){return _0x460b5a['map'](_0x4fabdd=>String['fromCharCode'](_0x4fabdd))['join']('');}_0x551bfd(await _0x52a22f());}(this);}['destroy'](){const _0x41f429=this['editor']['plugins']['get'](o),_0x29a934=this['editor']['config']['get']('collaboration.channelId');for(const _0x437b53 of _0x41f429['getCommentThreads']({'channelId':_0x29a934}))_0x41f429['_detachCommentThread'](_0x437b53['id']),_0x41f429['_threads']['delete'](_0x437b53['id']);super['destroy']();}['hasMarkerForId'](_0x836b){return this['getAllMarkersForId'](_0x836b)['length']>0x0;}['getAllMarkersForId'](_0x213169){const _0x1c359d=[];for(const _0x4e50bc of this['editor']['model']['markers'])_0x4e50bc['name']['startsWith']('comment:'+_0x213169)&&_0x1c359d['push'](_0x4e50bc);return _0x1c359d;}['scrollToThreadMarker'](_0x26b686){const _0x36302a=this['_getTargetForId'](_0x26b686);_0x36302a&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x26b686&&rt({'target':_0x36302a[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x19d649){this['editor']['model']['change'](()=>{for(const _0x13f9af of this['getAllMarkersForId'](_0x19d649))this['editor']['editing']['reconvertMarker'](_0x13f9af);});}['_attachArchivedThread'](_0x50834f){const _0x33be5e=this['editor']['plugins']['get'](o),_0x3c0b15=this['editor']['plugins']['get'](P),_0x2b60ca=_0x33be5e['getCommentThread'](_0x50834f);if(!_0x2b60ca['isAttached']){const _0x55679b=_0x2b60ca['attachTo'](()=>this['_getTargetForId'](_0x2b60ca['id']));_0x3c0b15['registerAnnotation'](_0x55679b),_0x2b60ca['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x29f43e=this['editor'],_0xd09682=_0x29f43e['plugins']['get'](it);_0x29f43e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x12d16f,_0x175100)=>{const {id:_0x16a008}=er(_0x12d16f['markerName']),_0x5b69a5=_0x29f43e['plugins']['get'](o)['getCommentThread'](_0x16a008),_0x50154e=this['activeMarker']&&er(this['activeMarker'])['id']===_0x16a008;let _0x357566;if(_0x5b69a5&&_0x5b69a5['isResolved']&&!_0x50154e&&_0x12d16f['item'])return _0x175100['consumable']['consume'](_0x12d16f['item'],'addMarker:'+_0x12d16f['markerName']),_0x175100['consumable']['consume'](_0x12d16f['item'],'removeMarker:'+_0x12d16f['markerName']),null;const _0x15e827=['ck-comment-marker'];return _0x50154e&&_0x15e827['push']('ck-comment-marker--active'),_0x357566=_0x5b69a5&&_0x5b69a5['length']?_0x5b69a5['comments']['first']['author']['id']:_0xd09682['me']['id'],{'classes':_0x15e827,'attributes':{'data-comment':_0x16a008,'data-author-id':_0x357566}};}}),_0x29f43e['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x117d07,{options:_0x15da1c})=>{if(_0x15da1c['showCommentHighlights'])return null;const _0x1273d5=_0x29f43e['plugins']['get'](o),_0x53bed9=_0x29f43e['model']['markers']['get'](_0x117d07),{id:_0x5526cd,part:_0x3c2dff}=er(_0x117d07);if(_0x53bed9&&!_0x53bed9['affectsData'])return null;if(_0x15da1c['ignoreResolvedComments']){const _0x40491a=_0x1273d5['getCommentThread'](_0x5526cd);if(_0x40491a&&_0x40491a['isResolved'])return null;}return{'group':'comment','name':_0x3c2dff?_0x5526cd+':'+_0x3c2dff:_0x5526cd};}}),_0x29f43e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x25a9db,{writer:_0x2284d8})=>_0x2284d8['createElement']('$marker',{'data-name':'comment:'+_0x25a9db['getAttribute']('id')})}),_0x29f43e['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x35e903=this['editor'],_0x166ba3=_0x35e903['plugins']['get'](o),_0x208391=new Set(),_0xf8a356=new Set();_0x35e903['model']['document']['registerPostFixer'](_0x495936=>{let _0x3ad626=!0x1;for(const {name:_0x3681dd,data:_0x267d30}of _0x35e903['model']['document']['differ']['getChangedMarkers']()){const {group:_0xe56416,id:_0x3c1178}=er(_0x3681dd);let _0x35e530=_0x267d30['newRange'];if('comment'!==_0xe56416||!_0x35e530)continue;const _0x16c88d='$graveyard'===_0x35e530['root']['rootName'];_0x16c88d||(_0x35e530=dt(_0x35e530,_0x35e903['model']),!_0x35e530||_0x35e530['isCollapsed']||!_0x267d30['newRange']||_0x35e530['isEqual'](_0x267d30['newRange']))?_0x35e903['model']['hasContent'](_0x35e530)&&!_0x16c88d?this['isThreadsLoadingPaused']?_0x208391['add'](_0x3681dd):this['_handleThreadMarker'](_0x3681dd,_0x3c1178):(_0xf8a356['add'](_0x3681dd),_0x208391['delete'](_0x3681dd),_0x495936['removeMarker'](_0x3681dd),_0x3ad626=!0x0):(_0x495936['updateMarker'](_0x3681dd,{'range':_0x35e530}),_0x3ad626=!0x0);}return _0x3ad626;}),this['on']('change:isThreadsLoadingPaused',(_0x2ae385,_0x1617fc,_0x1afb5f)=>{if(!_0x1afb5f&&_0x208391['size'])for(const _0x3d91d1 of _0x208391){const {id:_0x1e3cb6}=er(_0x3d91d1);_0x208391['delete'](_0x3d91d1),_0x35e903['model']['markers']['get'](_0x3d91d1)&&this['_handleThreadMarker'](_0x3d91d1,_0x1e3cb6);}}),this['listenTo'](_0x35e903['model']['document'],'change',()=>{for(const {name:_0x1c72b1,data:{newRange:_0xcab5fc}}of _0x35e903['model']['document']['differ']['getChangedMarkers']()){const {group:_0xe414fd,id:_0x41f558}=er(_0x1c72b1);if('comment'!==_0xe414fd)continue;const _0xbbe0bd=_0x166ba3['getCommentThread'](_0x41f558),_0x29de3a=this['hasMarkerForId'](_0x41f558);_0xbbe0bd&&(!_0xbbe0bd['_hasTargetInContent']&&_0xcab5fc&&_0x35e903['editing']['view']['once']('render',()=>{const _0x24e1fd=_0x35e903['plugins']['get'](N),_0x4dd39f=_0x166ba3['_threadToController']['get'](_0xbbe0bd)['view'];_0x24e1fd['getByInnerView'](_0x4dd39f)['refreshVisibility']();},{'priority':'low'}),_0xbbe0bd['_hasTargetInContent']=_0x29de3a||!!_0xcab5fc),_0xcab5fc||(_0xf8a356['add'](_0x1c72b1),_0x208391['delete'](_0x1c72b1));}for(const _0x42fc4d of _0xf8a356){const {id:_0x4d78fd}=er(_0x42fc4d),_0x5060e4=_0x166ba3['getCommentThread'](_0x4d78fd);if(_0x208391['delete'](_0x42fc4d),!_0x5060e4)continue;const _0x34a145=this['hasMarkerForId'](_0x4d78fd);_0x34a145||_0x5060e4['isSubmitted']?_0x34a145||_0x5060e4['unlinkedAt']||_0x5060e4['setUnlinkedAt'](new Date()):_0x5060e4['remove']();}_0xf8a356['clear']();});}['_handleInitialThreads'](_0x1b969c){_0x1b969c['forEach'](_0x4e3030=>{_0x4e3030['unlinkedAt']&&this['_attachArchivedThread'](_0x4e3030['id']);});}['_getTargetForId'](_0x27a39b){const _0x559a72=this['editor'],_0x4272e8=this['getAllMarkersForId'](_0x27a39b);return et(_0x559a72['editing'],_0x4272e8);}['_getTextContext'](_0x214c85){const _0x491572=this['getAllMarkersForId'](_0x214c85);let _0x6d4c18='',_0x26f5f0=!0x1;for(const _0x49c4f1 of _0x491572){const _0x1a988b=_0x49c4f1['getRange']();for(const _0x23ace4 of Array['from'](_0x1a988b['getItems']()))_0x23ace4['is']('$textProxy')?(_0x6d4c18&&_0x26f5f0&&(_0x6d4c18+='\x20',_0x26f5f0=!0x1),_0x6d4c18+=_0x23ace4['data']):_0x26f5f0=!0x0;_0x26f5f0=!0x0;}return _0x6d4c18['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x848f33,_0x265db6){const _0x4f6f75=this['editor'],_0x5613dd=_0x4f6f75['plugins']['get'](o);let _0x534960=_0x5613dd['getCommentThread'](_0x265db6);const _0x52edd8=_0x4f6f75['config']['get']('collaboration.channelId'),_0x726b29=_0x4f6f75['plugins']['get'](P);if(_0x534960&&(_0x534960['unlinkedAt']&&_0x534960['setUnlinkedAt'](null),_0x534960['isAttached']))return _0x534960;return!this['getAllMarkersForId'](_0x265db6)[0x0]['managedUsingOperations']?_0x4f6f75['editing']['view']['once']('render',()=>{if(_0x5613dd['getCommentThread'](_0x265db6))return;const _0x2b7112=_0x4f6f75['plugins']['get'](N);_0x534960=_0x5613dd['openNewCommentThread']({'channelId':_0x52edd8,'threadId':_0x265db6,'target':()=>this['_getTargetForId'](_0x265db6),'context':{'type':'text','value':this['_getTextContext'](_0x265db6)}});const _0x518b5f=_0x5613dd['_threadToController']['get'](_0x534960)['view'],_0x32dacc=_0x2b7112['getByInnerView'](_0x518b5f);_0x32dacc&&_0x726b29['registerAnnotation'](_0x32dacc);},{'priority':'low'}):_0x5613dd['fetchCommentThread']({'channelId':_0x52edd8,'threadId':_0x265db6})['then'](_0x54deae=>{if('destroyed'!==_0x4f6f75['state']){if(_0x534960=_0x54deae,_0x534960&&!_0x534960['isAttached']){const _0x517ee1=_0x534960['attachTo'](()=>this['_getTargetForId'](_0x265db6));_0x726b29['registerAnnotation'](_0x517ee1),_0x534960['isResolved']&&this['_reconvertMarkers'](_0x265db6);}else{if(!_0x534960){const _0x16efe9=this['getAllMarkersForId'](_0x265db6);_0x4f6f75['model']['change'](_0x4799af=>{for(const _0x4bedf6 of _0x16efe9)_0x4799af['removeMarker'](_0x4bedf6);});}}}}),_0x534960;}['_handleThreadMarker'](_0x5afc04,_0x30dc44){const _0x447bd5=this['_attachMarkerToThread'](_0x5afc04,_0x30dc44);_0x447bd5&&!_0x447bd5['context']&&_0x447bd5['setContext']({'type':'text','value':this['_getTextContext'](_0x30dc44)});}['_initAriaMarkerChangeAnnouncements'](){const _0x18eb15=this['editor'];ot(_0x18eb15['model'],({left:_0x562027,entered:_0xafe684})=>{for(const _0x2b16f8 of _0x562027)if(mt(_0x2b16f8)){_0x18eb15['ui']['ariaLiveAnnouncer']['announce'](S(_0x18eb15['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x4244e1 of _0xafe684)if(mt(_0x4244e1)){_0x18eb15['ui']['ariaLiveAnnouncer']['announce'](S(_0x18eb15['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x2101c4)));break;}});}}function ft(_0x49ba50,_0x433707){return _0x433707?_0x49ba50+':'+_0x433707:_0x49ba50;}function er(_0x2f99dd){const _0x3ed676=_0x2f99dd['split'](':');return{'group':_0x3ed676[0x0],'id':_0x3ed676[0x1],'part':_0x3ed676[0x2]};}function dt(_0x9de401,_0x523832){const _0x2adab6=_0x523832['schema'],_0x56dbe6=_0x523832['createRange'](_0x9de401['start']);for(const _0x22454e of _0x9de401['getWalker']()){const {type:_0x20dd3a,item:_0x4095b7,nextPosition:_0x163859}=_0x22454e;if('text'===_0x20dd3a||_0x2adab6['isObject'](_0x4095b7)){const _0x5f21ad=_0x523832['createPositionBefore'](_0x4095b7);_0x56dbe6['isCollapsed']&&(_0x56dbe6['start']=_0x5f21ad),_0x56dbe6['end']=_0x163859;}}return _0x56dbe6;}function mt(_0x4b61fc){return'comment'===er(_0x4b61fc['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 _0x5e07b6{['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 _0x5314de=this['editor'],_0x2022d8=_0x5314de['plugins']['get'](o),_0x20fb10=_0x5314de['plugins']['get'](r),_0x464147=_0x5314de['plugins']['get'](N),_0x5e0d0a=_0x5314de['plugins']['get'](P);_0x5314de['ui']['componentFactory']['add']('comment',()=>{const _0x34157b=this['_createUIButton'](_0x2c634f);return _0x34157b['tooltip']=!0x0,_0x34157b;}),_0x5314de['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x3edae7)),_0x5e0d0a['addSourceCollector'](()=>{const _0x2080f7=[];for(const [_0x5155e4,_0xb3ee3f]of _0x2022d8['_threadToController']){const _0x202aad=_0x20fb10['getAllMarkersForId'](_0x5155e4['id']),_0x36cf2e=_0x202aad['map'](_0x25c7b0=>_0x25c7b0['getRange']());_0x202aad['length']>0x0&&_0x2080f7['push']([_0xb3ee3f['view'],_0x36cf2e]);}return _0x2080f7;}),this['listenTo'](_0x464147,'change:activeAnnotations',(_0x334231,_0x4eef89,_0x46cf1d)=>{const _0x576c1e=Array['from'](_0x46cf1d)['map'](_0x52c30f=>_0x52c30f['innerView'])['find'](_0x2375ff=>_0x2022d8['_viewToController']['has'](_0x2375ff));if(!_0x576c1e)return void(_0x20fb10['activeMarker']=null);const _0x664882=_0x2022d8['_viewToController']['get'](_0x576c1e)['model']['id'],_0x24d368='comment:'+_0x664882;_0x664882&&_0x20fb10['hasMarkerForId'](_0x664882)?_0x20fb10['activeMarker']=_0x24d368:_0x20fb10['activeMarker']&&(_0x20fb10['activeMarker']=null);}),this['listenTo'](_0x2022d8,'removeCommentThread',(_0x32fc92,{threadId:_0x3012e5,isFromAdapter:_0x32c0f3})=>{!_0x32c0f3&&_0x5314de['ui']['focusTracker']['isFocused']&&_0x20fb10['hasMarkerForId'](_0x3012e5)&&_0x5314de['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x2022d8,'addComment',(_0x3e85fc,{threadId:_0x1d1da1,isFromAdapter:_0x44662e})=>{if(_0x44662e||!_0x20fb10['hasMarkerForId'](_0x1d1da1)||!_0x2022d8['hasCommentThread'](_0x1d1da1))return;0x1===_0x2022d8['getCommentThread'](_0x1d1da1)['length']&&(_0x5314de['editing']['view']['focus'](),_0x3e85fc['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x548687=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa42674;for(const _0x1a120b in _0x548687){const _0x70149c=_0x1a120b,_0x46f641=_0x548687[_0x70149c];if('commentsLicenseKeyValid'==_0x46f641||'commentsLicenseKeyInvalid'==_0x46f641||'commentsLicenseKeyExpired'==_0x46f641||'commentsLicenseKeyDomainLimit'==_0x46f641||'commentsLicenseKeyNotAllowed'==_0x46f641||'commentsLicenseKeyEvaluationLimit'==_0x46f641||'commentsLicenseKeyTrialLimit'==_0x46f641||'commentsLicenseKeyUsageLimit'==_0x46f641){delete _0x548687[_0x70149c],_0xa42674=_0x46f641,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0xa42674&&_0x548687['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0xa42674&&_0x548687['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0xa42674&&_0x548687['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0xa42674&&_0x548687['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0xa42674&&_0x548687['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0xa42674&&_0x548687['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0xa42674&&_0x548687['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x5371dc){const _0x2ac2f6=this['editor'],_0x1f2fa1=new _0x5371dc(_0x2ac2f6['locale']),_0x16ab76=_0x2ac2f6['commands']['get']('addCommentThread');return _0x1f2fa1['set']({'label':S(_0x2ac2f6['locale'],'Comment'),'icon':xt}),_0x1f2fa1['bind']('isEnabled')['to'](_0x16ab76),this['listenTo'](_0x1f2fa1,'execute',()=>{_0x2ac2f6['editing']['view']['focus'](),_0x16ab76['execute']();}),_0x1f2fa1;}}class s extends _0x5e07b6{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x5a56fa){super(_0x5a56fa),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x456b06,_0xdd409,_0x43df3d)=>{_0x43df3d?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x43ff2c,_0x42af97]of this['editor']['commands'])_0x42af97['affectsData']&&'addCommentThread'!==_0x43ff2c&&_0x42af97['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 _0x4741fe=this['editor']['editing']['view']['document'];this['listenTo'](_0x4741fe,'cut',_0x2e718b=>_0x2e718b['stop'](),{'priority':'highest'}),this['listenTo'](_0x4741fe,'clipboardInput',_0x5ae48e=>_0x5ae48e['stop'](),{'priority':'highest'}),this['listenTo'](_0x4741fe,'delete',_0x38424f=>_0x38424f['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x3bb4e4,_0x3d75f7]of this['editor']['commands'])_0x3d75f7['affectsData']&&'addCommentThread'!==_0x3bb4e4&&_0x3d75f7['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 _0x10ef99{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27be57){super(_0x27be57),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0xacfc38=this['context']['plugins']['get'](N);this['listenTo'](_0xacfc38,'_activateAnnotation',(_0x564456,_0xc28ede)=>{for(const _0x3b44e8 of this['activeUIs']){const _0x597b05=this['_uis']['get'](_0x3b44e8);(0x0,this['_uisData']['get'](_0x3b44e8)['filter'])(_0xc28ede)&&_0x597b05['setActiveAnnotation'](_0xc28ede);}}),this['listenTo'](_0xacfc38,'_deactivateAllAnnotations',()=>{for(const _0x53be15 of this['activeUIs']){this['_uis']['get'](_0x53be15)['setActiveAnnotation'](null);}}),this['listenTo'](_0xacfc38['_visibleAnnotations'],'add',(_0xdc99d6,_0x376c9f)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x376c9f);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x843fa3){return this['activeUIs']['has'](_0x843fa3);}['activate'](_0x435956,_0x49070a=()=>!0x0){const _0x23eaed=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x435956))throw new _0x1a0aec('annotationsuis-missing-ui',this,{'uiName':_0x435956});this['isActive'](_0x435956)&&this['deactivate'](_0x435956),this['activeUIs']['add'](_0x435956);const _0x37f47a=new x();!function({source:_0x455da6,target:_0xac181c,filter:_0x1f8ed4}){for(const _0xb42e48 of _0x455da6)_0x1f8ed4(_0xb42e48)&&_0xac181c['add'](_0xb42e48);_0xac181c['listenTo'](_0x455da6,'add',(_0x50a5a6,_0x5c338a)=>{_0x1f8ed4(_0x5c338a)&&_0xac181c['add'](_0x5c338a);}),_0xac181c['listenTo'](_0x455da6,'remove',(_0x11efb6,_0x5ee638)=>{_0xac181c['has'](_0x5ee638)&&_0xac181c['remove'](_0x5ee638);});}({'source':_0x23eaed['_visibleAnnotations'],'target':_0x37f47a,'filter':_0x49070a}),this['_uisData']['set'](_0x435956,{'collection':_0x37f47a,'filter':_0x49070a});const _0x403a3f=this['_uis']['get'](_0x435956);_0x403a3f['attach'](_0x37f47a),this['listenTo'](_0x403a3f,'change:activeAnnotation',(_0x2aeeeb,_0x4eb0d2,_0x4be617,_0x24f6f6)=>{_0x24f6f6&&_0x23eaed['_removeActiveAnnotation'](_0x24f6f6),_0x4be617&&_0x23eaed['_addActiveAnnotation'](_0x4be617);});}['deactivate'](_0x618bc){if(this['activeUIs']['delete'](_0x618bc),!this['_uis']['has'](_0x618bc))throw new _0x1a0aec('annotationsuis-missing-ui',this,{'uiName':_0x618bc});const _0x5eeb1c=this['_uis']['get'](_0x618bc);_0x5eeb1c['detach'](),this['stopListening'](_0x5eeb1c),this['_uisData']['get'](_0x618bc)['collection']['destroy'](),this['_uisData']['delete'](_0x618bc);}['switchTo'](_0x288585){if(!this['_uis']['has'](_0x288585))throw new _0x1a0aec('annotationsuis-missing-ui',this,{'uiName':_0x288585});const _0x8ca731=this['context']['plugins']['get'](N),_0x3da7e9=Array['from'](_0x8ca731['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x288585);const _0x339055=this['_uis']['get'](_0x288585);_0x339055['setActiveAnnotation'](_0x3da7e9),_0x339055['_setSelectedAnnotations']&&_0x3da7e9&&_0x339055['_setSelectedAnnotations']([_0x3da7e9]);}['deactivateAll'](){for(const _0x178d05 of this['activeUIs'])this['deactivate'](_0x178d05);}['register'](_0x34503d,_0x360f2d){if(this['_uis']['has'](_0x34503d))throw new _0x1a0aec('annotationsuis-register-already-registered');if('function'!=typeof _0x360f2d['attach']||'function'!=typeof _0x360f2d['detach']||'function'!=typeof _0x360f2d['setActiveAnnotation'])throw new _0x1a0aec('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x34503d,_0x360f2d);}['refilterAnnotations'](){const _0x29c949=this['context']['plugins']['get'](N)['collection'],_0x5b2ebb=new Map(),_0x4bb50a=Array['from'](this['activeUIs']);for(const _0x371b17 of this['activeUIs']){const _0x1e0023=this['_uisData']['get'](_0x371b17)['collection'];for(const _0x2972d6 of _0x1e0023)_0x5b2ebb['set'](_0x2972d6,_0x371b17);}for(const _0x1cdbdf of _0x29c949){const _0x1f20d7=_0x5b2ebb['get'](_0x1cdbdf);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1cdbdf);const _0x4f5c76=_0x4bb50a['find'](_0x515c66=>this['_uisData']['get'](_0x515c66)['filter'](_0x1cdbdf));_0x1f20d7!==_0x4f5c76&&(_0x1f20d7&&this['_uisData']['get'](_0x1f20d7)['collection']['remove'](_0x1cdbdf),_0x4f5c76&&this['_uisData']['get'](_0x4f5c76)['collection']['add'](_0x1cdbdf));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x190ade){const _0x4ea7f7=[];for(const _0x36713d of this['activeUIs']){(0x0,this['_uisData']['get'](_0x36713d)['filter'])(_0x190ade)&&_0x4ea7f7['push'](_0x36713d);}if(_0x4ea7f7['length']>0x1)throw new _0x1a0aec('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x4ea7f7,'annotationType':_0x190ade['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0xbbee7e){super(_0xbbee7e);const _0x3c2d92=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 _0x3dc026(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x3c2d92['to']('class')],'style':{'minHeight':_0x3c2d92['to']('minHeight',_0x40f72e=>'number'==typeof _0x40f72e?he(_0x40f72e+0xa):null)},'dir':_0xbbee7e['uiLanguageDirection'],'role':'application','aria-label':S(_0xbbee7e,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0xbbee7e,'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',_0x2ee779=>{this['_updateItemPositionInFocusables'](_0x2ee779['source']);}),this['list']['forEach'](_0x593e84=>{this['focusTracker']['add'](_0x593e84['element']),this['_updateItemPositionInFocusables'](_0x593e84);}),this['list']['on']('change',(_0x46f6b9,_0x589aa9)=>{for(const _0x208926 of _0x589aa9['removed'])this['focusTracker']['remove'](_0x208926['element']),this['focusables']['remove'](_0x208926);for(const _0x33f26c of _0x589aa9['added'])this['focusTracker']['add'](_0x33f26c['element']),this['_updateItemPositionInFocusables'](_0x33f26c);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x46340b){const _0xd929a5=this['focusables']['getIndex'](_0x46340b);let _0x3584a9,_0x20c168;for(const _0x4f413c of this['focusables'])if(_0x46340b['top']<_0x4f413c['top']){_0x3584a9=_0x4f413c;break;}if(_0x20c168=_0x3584a9?this['focusables']['getIndex'](_0x3584a9):this['focusables']['length'],-0x1!==_0xd929a5){if(_0xd929a5===_0x20c168-0x1)return;this['focusables']['remove'](_0x46340b),_0x20c168=_0x3584a9?this['focusables']['getIndex'](_0x3584a9):this['focusables']['length'];}this['focusables']['add'](_0x46340b,_0x20c168);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x3962d6){super(_0x3962d6),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x15627e,_0x436f6d)=>_0x15627e+_0x436f6d),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x5cac5b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x5cac5b['to']('isAnimationDisabled',_0x49de35=>_0x49de35?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x5cac5b['to']('top',_0x100df0=>qt(_0x100df0))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0xecc355=this['element']['clientHeight'];_0xecc355&&(this['height']=_0xecc355);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x10ef99{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37591e){super(_0x37591e),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 _0x3616db=this['context']['config']['get']('sidebar.container');_0x3616db&&this['setContainer'](_0x3616db);}['setContainer'](_0x204a0f){if(!y(_0x204a0f))throw new _0x1a0aec('sidebar-setcontainer-invalid-element');this['container']=_0x204a0f;}['_attachToContainer']({viewClass:_0x2841f8='',spaceBetweenItems:_0x263e54=0x19}={}){if(!y(this['container']))throw new _0x1a0aec('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x2841f8,this['_spaceBetweenItems']=_0x263e54;}['rearrange']({removedAnnotation:_0x20d54a,previousAnnotation:_0x1626e9,nextAnnotation:_0x1d1f26}){const _0x4c5dd7=this['getSidebarItemView'](_0x20d54a);this['view']['list']['remove'](_0x4c5dd7),this['_destroySidebarItemView'](_0x20d54a),_0x1626e9&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1626e9)),_0x1d1f26&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1d1f26)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x24afa1,activatedAnnotation:_0x5d9196,disableAnimationOnActivatedAnnotation:_0x161fb1}){if(this['_activeAnnotation']=_0x5d9196,_0x24afa1){_0x24afa1['isActive']=!0x1;const _0x4f0494=this['getSidebarItemView'](_0x24afa1);_0x4f0494&&_0x161fb1&&(_0x4f0494['isAnimationDisabled']=!0x1);}if(_0x5d9196){const _0x548c4c=this['getSidebarItemView'](_0x5d9196);_0x548c4c&&(_0x5d9196['isActive']=!0x0,_0x161fb1&&(_0x548c4c['isAnimationDisabled']=!0x0,_0x548c4c['top']+=0x1),this['_alignToTargetRect'](_0x548c4c));}}['_detachFromContainer'](_0x1b9605){if(this['view']['element']['remove'](),_0x1b9605){for(const _0xdea321 of _0x1b9605)this['_destroySidebarItemView'](_0xdea321);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x26a0a0,_0x2aac72){_0x2aac72||(_0x2aac72=_0x26a0a0['view']);const _0x2f9c84=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x2f9c84,_0x26a0a0),this['_annotationToSidebarItemView']['set'](_0x26a0a0,_0x2f9c84),_0x2f9c84['content']['add'](_0x2aac72),this['listenTo'](_0x26a0a0['view'],'change:targetRect',(_0x55c820,_0x129476,_0x4e4f72)=>{const _0x1e1966=this['_getTargetTop'](_0x26a0a0,_0x4e4f72);_0x2f9c84['_targetTop']!=_0x1e1966&&(_0x2f9c84['_targetTop']=_0x1e1966,this['_setItemTop'](_0x2f9c84,_0x1e1966));}),this['listenTo'](_0x2f9c84,'change:top',()=>{this['_recalculate'](_0x2f9c84,'top');}),this['listenTo'](_0x2f9c84,'change:bottom',()=>{this['_recalculate'](_0x2f9c84,'bottom');}),this['_alignToTargetRect'](_0x2f9c84);const _0x4eaed3=this['_getItemBefore'](_0x2f9c84);if(_0x4eaed3)this['_alignAfterItem'](_0x4eaed3,_0x2f9c84)||this['_alignToTargetRect'](_0x2f9c84);else this['_alignToTargetRect'](_0x2f9c84);return this['_updateLastItem'](),this['view']['list']['add'](_0x2f9c84),_0x2f9c84;}['_alignForTopChange'](_0x4c54e8){if(!_0x4c54e8['content']['length'])return;const _0x1e2ee4=this['_getItemBefore'](_0x4c54e8);if(!_0x1e2ee4)return;const _0x432ef6=this['_sidebarItemViewToAnnotation']['get'](_0x1e2ee4),_0xc653b6=this['_activeAnnotation'];_0xc653b6&&_0xc653b6===_0x432ef6?this['_alignAfterItem'](_0x1e2ee4,_0x4c54e8):this['_alignBeforeItem'](_0x4c54e8,_0x1e2ee4);}['_alignForBottomChange'](_0x570d25){if(!_0x570d25['content']['length'])return;const _0x2623cb=this['_getItemAfter'](_0x570d25);if(!_0x2623cb)return;const _0x3580e0=this['_sidebarItemViewToAnnotation']['get'](_0x2623cb),_0x5424d0=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x35a202=this['_activeAnnotation'];_0x35a202&&_0x35a202===_0x3580e0&&_0x5424d0?(this['_alignBeforeItem'](_0x2623cb,_0x570d25),this['_alignAfterItem'](_0x570d25,_0x2623cb)):_0x35a202&&_0x35a202===_0x3580e0?this['_alignBeforeItem'](_0x2623cb,_0x570d25):this['_alignAfterItem'](_0x570d25,_0x2623cb);}['_recalculate'](_0x9404d4,_0x264e70){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x204a68,changedProp:_0x549e47}of this['_recalculateBuffer'])'top'===_0x549e47?this['_alignForTopChange'](_0x204a68):this['_alignForBottomChange'](_0x204a68);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x9404d4,'changedProp':_0x264e70});}['getSidebarItemView'](_0x3f33d1){return this['_annotationToSidebarItemView']['get'](_0x3f33d1);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x3414ee){const _0x536a8e=this['getSidebarItemView'](_0x3414ee);this['stopListening'](_0x536a8e),this['stopListening'](_0x3414ee['view']),_0x536a8e['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x3414ee),this['_sidebarItemViewToAnnotation']['delete'](_0x536a8e);}['_createSidebarView'](){const _0xc5e088=new V(this['context']['locale']);return _0xc5e088['render'](),this['on']('change:_lastItem',(_0x1e96ac,_0x5d29f4,_0x36d239,_0x1fec94)=>{_0x1fec94&&_0xc5e088['unbind']('minHeight'),_0x36d239?_0xc5e088['bind']('minHeight')['to'](_0x36d239,'bottom'):_0xc5e088['minHeight']=null;}),_0xc5e088;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x2cbc61){const _0x4b8458=this['_sidebarItemViewToAnnotation']['get'](_0x2cbc61),_0x241d3c=_0x4b8458&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x4b8458)-0x1);return _0x241d3c&&this['getSidebarItemView'](_0x241d3c)||null;}['_getItemAfter'](_0x3efa27){const _0x3a24dd=this['_sidebarItemViewToAnnotation']['get'](_0x3efa27),_0x2dd31c=_0x3a24dd&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x3a24dd)+0x1);return _0x2dd31c&&this['getSidebarItemView'](_0x2dd31c)||null;}['_alignBeforeItem'](_0x49cb88,_0x5e1e2c){_0x49cb88['updateHeight']();const _0x10c149=R(_0x5e1e2c['bottom']+this['_spaceBetweenItems'],_0x49cb88['top']);return!!_0x10c149&&(this['_setItemTop'](_0x5e1e2c,_0x5e1e2c['top']-_0x10c149),!0x0);}['_alignAfterItem'](_0x58421c,_0x132b20){_0x58421c['updateHeight']();const _0x2408e3=R(_0x58421c['bottom']+this['_spaceBetweenItems'],_0x132b20['top']);return!!_0x2408e3&&(this['_setItemTop'](_0x132b20,_0x132b20['top']+_0x2408e3,!0x1),!0x0);}['_alignToTargetRect'](_0x4ff23b){const _0x18c2e4=this['_sidebarItemViewToAnnotation']['get'](_0x4ff23b);if(!_0x18c2e4||!_0x18c2e4['target']||!_0x18c2e4['targetRect'])return;const _0x52e67f=this['_getTargetTop'](_0x18c2e4,_0x18c2e4['targetRect']);this['_setItemTop'](_0x4ff23b,_0x52e67f);}['_getTargetTop'](_0x4ddf9f,_0x24d042){if(null===_0x24d042)return 0x0;if(_0x4ddf9f['target']instanceof _0x104051)return _0x24d042['top'];{const _0x417dda=new _0x104051(this['view']['element'])['top'];return _0x24d042['top']-_0x417dda;}}['_setItemTop'](_0x280124,_0x4174f7,_0x510bd6=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x510bd6&&(_0x4174f7=Math['max'](_0x4174f7,this['_getMaxAvailableTop'](_0x280124))),_0x280124['top']=_0x4174f7;}['_getMaxAvailableTop'](_0x1cbcb7){let _0x28f7ae=this['_getItemBefore'](_0x1cbcb7),_0x488832=0x0;for(;_0x28f7ae;)_0x28f7ae['updateHeight'](),_0x488832+=this['_spaceBetweenItems']+_0x28f7ae['height'],_0x28f7ae=this['_getItemBefore'](_0x28f7ae);return _0x488832;}}function R(_0x423f50,_0x2d97c1){return Math['max'](_0x423f50-_0x2d97c1,0x0);}function y(_0x5c6660){return null!==_0x5c6660&&'object'==typeof _0x5c6660&&0x1===_0x5c6660['nodeType'];}class e extends _0x10ef99{['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(_0xdbf82){super(_0xdbf82),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x385f24(),this['_refreshPositioningDebounced']=_0x283364(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x4aac95=this['context']['plugins']['get'](M),_0x206220=this['context']['plugins']['get'](z);_0x4aac95['register']('wideSidebar',this),_0x206220['container']&&_0x4aac95['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x2c5d74){if(_0x2c5d74===this['activeAnnotation'])return;const _0x555b6b=this['context']['plugins']['get'](z);_0x555b6b['_activeAnnotation']=_0x2c5d74;const _0x45cab8=this['activeAnnotation'];_0x555b6b['refresh']({'blurredAnnotation':_0x45cab8,'activatedAnnotation':_0x2c5d74}),this['activeAnnotation']=_0x2c5d74;}['attach'](_0x28438f){this['annotations']=_0x28438f;const _0x4050b6=this['context']['plugins']['get'](z);if(_0x4050b6['_annotations']=_0x28438f,this['isAttached'])throw new _0x1a0aec('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4050b6,'set:container',()=>{this['detach'](),this['listenTo'](_0x4050b6,'change:container',_0x651b78=>{_0x651b78['off'](),this['attach'](_0x28438f);});}),_0x4050b6['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x5024ac=_0x3660a2=>{_0x3660a2['updateTargetRect'](),_0x4050b6['addAnnotation'](_0x3660a2);};for(const _0x48b8ed of _0x28438f)_0x5024ac(_0x48b8ed);this['listenTo'](_0x28438f,'add',(_0x3b1620,_0x3eb9be)=>{_0x5024ac(_0x3eb9be);}),this['listenTo'](_0x28438f,'remove',(_0x245086,_0x122f01,_0xb558a2)=>{_0x4050b6['rearrange']({'removedAnnotation':_0x122f01,'previousAnnotation':_0x28438f['get'](_0xb558a2-0x1),'nextAnnotation':_0x28438f['get'](_0xb558a2+0x1)}),_0x122f01===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x28438f,'focus',(_0x5041b0,_0x51c031)=>{this['setActiveAnnotation'](_0x51c031);}),this['listenTo'](_0x28438f,'blur',()=>{this['setActiveAnnotation'](null);});const _0xfb437e=this['context']instanceof _0x5dddf0?this['context']['editors']:new _0x385f24([this['context']]);for(const _0x5b12b1 of _0xfb437e)this['_integrateWithEditorAnnotations'](_0x5b12b1);this['listenTo'](_0xfb437e,'add',(_0x481c98,_0x10d917)=>{this['listenTo'](_0x10d917,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x10d917);});}),this['listenTo'](_0xfb437e,'remove',(_0x83eb2,_0x45503f)=>{_0x45503f['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x45503f['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x1a0aec('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x481c53=this['context']['plugins']['get'](z);_0x481c53['_detachFromContainer'](this['annotations']),this['stopListening'](_0x481c53),this['stopListening'](this['annotations']),this['context']instanceof _0x5dddf0&&this['stopListening'](this['context']['editors']);for(const _0x4d05b2 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4d05b2);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x4c0d6a){if(!_0x4c0d6a['plugins']['has']('EditorAnnotations'))return;const _0x4cc017=_0x4c0d6a['plugins']['get']('EditorAnnotations'),_0x21c1d5=()=>{const _0x1165cd=_0x4cc017['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x1165cd[0x0]||null);};this['listenTo'](_0x4cc017,'refresh',_0x21c1d5),this['listenTo'](_0x4cc017,'blur',(_0x374240,{isAnnotationTracked:_0x3dfda8})=>{this['activeAnnotation']&&_0x3dfda8(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4cc017,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x49f856=>{_0x4cc017['hasDomSelection']()&&(_0x21c1d5(),_0x49f856['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4cc017);}['_destroyEditorAnnotationsIntegration'](_0x130ebe){this['stopListening'](_0x130ebe),this['_editorAnnotations']['remove'](_0x130ebe);}}class D extends _0x2c634f{['counterView'];constructor(_0x33c003){super(_0x33c003);const _0x520867=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x13748c,_0x940723)=>_0x13748c?'...':_0x940723['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',_0x520867['to']('annotationType',_0x230dae=>'ck-annotation-counter__badge--'+_0x230dae),_0x520867['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x520867['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x10ef99{['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(_0x2bb5d7){super(_0x2bb5d7),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x7ec307),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x385f24(),this['_refreshPositioningDebounced']=_0x283364(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x33f8e7(this['context']['locale']),this['balloonPanelView']=new _0x47385e(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x5b25b9){this['annotations']=_0x5b25b9;const _0x38f0ba=this['context']['plugins']['get'](z),_0x136081=this['balloonPanelView'];if(_0x38f0ba['_annotations']=_0x5b25b9,this['isAttached'])throw new _0x1a0aec('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x38f0ba,'set:container',()=>{this['detach'](),this['listenTo'](_0x38f0ba,'change:container',_0x171536=>{_0x171536['off'](),this['attach'](_0x5b25b9);});}),_0x38f0ba['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x8c7f3b=_0x2bdb2c=>{const _0x55177b=new D(this['context']['locale']);_0x38f0ba['addAnnotation'](_0x2bdb2c,_0x55177b),this['_annotationToNarrowView']['set'](_0x2bdb2c,_0x55177b),_0x55177b['bind']('isDirty','annotationType','number')['to'](_0x2bdb2c['view'],'isDirty','type','length'),_0x55177b['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x136081['content']['first']!==_0x2bdb2c['view']?(this['_showBalloon'](_0x2bdb2c),_0x2bdb2c['view']['element']['focus'](),this['setActiveAnnotation'](_0x2bdb2c)):this['setActiveAnnotation'](null);});};for(const _0x513ed5 of _0x5b25b9)_0x8c7f3b(_0x513ed5);this['listenTo'](_0x5b25b9,'add',(_0x28ed6a,_0x451891)=>{_0x8c7f3b(_0x451891);}),this['listenTo'](_0x5b25b9,'remove',(_0x4b3758,_0x2c8a17,_0x1c7121)=>{this['_annotationToNarrowView']['get'](_0x2c8a17)['destroy'](),this['_annotationToNarrowView']['delete'](_0x2c8a17),_0x38f0ba['rearrange']({'removedAnnotation':_0x2c8a17,'previousAnnotation':_0x5b25b9['get'](_0x1c7121-0x1),'nextAnnotation':_0x5b25b9['get'](_0x1c7121+0x1)}),_0x2c8a17===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x5b25b9,'focus',(_0xc8503d,_0x1d1da6)=>{this['setActiveAnnotation'](_0x1d1da6);}),this['listenTo'](_0x5b25b9,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x61d392,_0x24d6ec)=>{_0x24d6ec['keyCode']===_0x4f6d8c['esc']&&_0x136081['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x136081['content']['first']),this['_hideBalloon'](),_0x24d6ec['stopPropagation'](),_0x24d6ec['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x3ef201,_0x25e385)=>{const _0x5267ff=_0x25e385['target'];_0x136081['isVisible']&&_0x136081['element']['contains'](_0x5267ff)||_0x38f0ba['view']['element']['contains'](_0x5267ff)||_0x3ef201['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x2723ae=>_0x2723ae['contains'](_0x5267ff))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x45dc98=this['context']instanceof _0x5dddf0?this['context']['editors']:new _0x385f24([this['context']]);for(const _0x1225fa of _0x45dc98)this['_integrateWithEditorAnnotations'](_0x1225fa);this['listenTo'](_0x45dc98,'add',(_0x3e7afc,_0x19e802)=>{this['listenTo'](_0x19e802,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x19e802);});}),this['listenTo'](_0x45dc98,'remove',(_0x431160,_0x4b75f9)=>{_0x4b75f9['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4b75f9['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0xc9d9e8){if(_0xc9d9e8===this['activeAnnotation'])return;const _0x381d48=this['context']['plugins']['get'](z);if(_0x381d48['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0xc9d9e8,'disableAnimationOnActivatedAnnotation':!0x0}),_0xc9d9e8)_0x381d48['getSidebarItemView'](_0xc9d9e8)?this['_showBalloon'](_0xc9d9e8):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0xc9d9e8;}['detach'](){if(!this['isAttached'])throw new _0x1a0aec('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x46fa8b=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x632e6a=>_0x632e6a['destroy']()),this['_annotationToNarrowView']['clear'](),_0x46fa8b['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x5dddf0&&this['stopListening'](this['context']['editors']);for(const _0x1cc849 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1cc849);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'](_0x1af712){if(!_0x1af712['plugins']['has']('EditorAnnotations'))return;const _0x4353bd=_0x1af712['plugins']['get']('EditorAnnotations'),_0x4f35cc=this['context']['plugins']['get'](z),_0x47948c=this['annotations'],_0x4ad08d=this['balloonPanelView'],_0x392a6c=()=>{const _0x5769ee=_0x4353bd['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x5769ee),this['setActiveAnnotation'](_0x5769ee[0x0]||null);};this['listenTo'](_0x4353bd,'refresh',_0x392a6c),this['listenTo'](_0x4353bd,'blur',(_0x3cccd5,{isAnnotationTracked:_0xb3a5f8})=>{this['activeAnnotation']&&_0xb3a5f8(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x4353bd,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x47948c,'blur',_0x47ffa7=>{_0x4353bd['hasDomSelection']()&&_0x47ffa7['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x336ebd,_0x534c8f)=>{const _0x1b277f=_0x534c8f['target'];_0x4ad08d['isVisible']&&_0x4ad08d['element']['contains'](_0x1b277f)||_0x4f35cc['view']['element']['contains'](_0x1b277f)||this['activeAnnotation']&&_0x4353bd['hasDomSelection']()&&(_0x392a6c(),_0x336ebd['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4353bd);}['_destroyEditorAnnotationsIntegration'](_0x451c04){_0x451c04&&(this['stopListening'](_0x451c04),this['_editorAnnotations']['remove'](_0x451c04));}['_setSelectedAnnotations'](_0x44df34){for(const _0x37ae56 of this['_selectedAnnotations'])_0x44df34['includes'](_0x37ae56)||this['_manuallyClosedAnnotationViews']['delete'](_0x37ae56['view']);this['_selectedAnnotations']=_0x44df34;}['_refreshPositioning'](){const _0x4e83d3=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x4e83d3['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x2d4907){if(this['_manuallyClosedAnnotationViews']['has'](_0x2d4907['view']))return;const _0x1e93c2=this['balloonPanelView']['content']['first'];_0x1e93c2!==_0x2d4907['view']?(_0x1e93c2&&this['_detachListeners'](_0x1e93c2),this['_attachListeners'](_0x2d4907['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x2d4907['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x26617c=this['balloonPanelView']['content']['first'],_0x4adf7d=_0x26617c&&this['annotations']['getByView'](_0x26617c);if(!_0x4adf7d||!this['_annotationToNarrowView']['has'](_0x4adf7d))return;const _0x210c8c=this['_annotationToNarrowView']['get'](_0x4adf7d)['element'],_0x31288a=(function(){const _0x53c6ca=_0x47385e['defaultPositions'];return[_0x53c6ca['southArrowNorthEast'],_0x53c6ca['northArrowSouthEast'],_0x53c6ca['southArrowNorth'],_0x53c6ca['northArrowSouth'],_0x53c6ca['southArrowNorthWest'],_0x53c6ca['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x210c8c,'positions':_0x31288a});}['_hideBalloon'](){const _0x169694=this['balloonPanelView'],_0x54e3e2=_0x169694['content']['first'];_0x54e3e2&&(this['_detachListeners'](_0x54e3e2),_0x169694['unpin'](),_0x169694['content']['clear']());}['_attachListeners'](_0x3810d7){this['listenTo'](_0x3810d7,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x3810d7,'Esc',(_0x2e8c04,_0x75ba73)=>{this['_manuallyClosedAnnotationViews']['add'](_0x3810d7),this['_hideBalloon'](),_0x75ba73();});}['_detachListeners'](_0x273652){this['stopListening'](_0x273652);}}class c extends _0x5e07b6{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x2ecb8d,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37047a){super(_0x37047a),_0x37047a['editing']['view']['addObserver'](_0x134d18),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x37047a['plugins']['get'](_0x2ecb8d),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x11a512=this['editor']['plugins']['get'](M);_0x11a512['context']===this['editor']&&(_0x11a512['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x50abf2,_0x501e9a)=>{const _0x3efac1=this['_balloon'];if(this['isAttached']&&_0x3efac1['visibleView']){const _0x9a12ed=this['annotations']['getByView'](_0x3efac1['visibleView']);_0x9a12ed&&this['_closeAnnotation'](_0x9a12ed),_0x501e9a();}}));}['afterInit'](){const _0x3ad262=this['editor']['plugins']['get'](M);_0x3ad262['context']===this['editor']&&(_0x3ad262['hasActive']()||_0x3ad262['switchTo']('inline'));}['setActiveAnnotation'](_0x53f866){_0x53f866!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x53f866&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x53f866)&&this['_addAnnotationToBalloon'](_0x53f866,!0x0),_0x53f866['isActive']=!0x0),_0x53f866||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x53f866);}['attach'](_0x252f3d){this['annotations']=_0x252f3d;const _0xb8a4eb=this['editor']['plugins']['get'](M),_0x4255f3=this['_balloon'];if(this['isAttached'])throw new _0x1a0aec('inlineannotations-attach-already-attached',this);if(_0xb8a4eb['context']!==this['editor'])throw new _0x1a0aec('inlineannotations-not-allowed-with-context',this);const _0x18f3d3=this['editor']['plugins']['get'](P);this['listenTo'](_0x18f3d3,'refresh',()=>{const _0x3f5db5=_0x18f3d3['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x4291a6,_0x6736bc;!this['_forceRefresh']&&(_0x4291a6=_0x3f5db5,_0x6736bc=this['_selectedAnnotations'],_0x4291a6['length']===_0x6736bc['length']&&_0x4291a6['every'](_0x2dc361=>_0x6736bc['includes'](_0x2dc361)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x3f5db5),this['setActiveAnnotation'](_0x3f5db5[0x0]||null));}),this['listenTo'](_0x18f3d3,'blur',(_0x51c23d,{isAnnotationTracked:_0x1a2083})=>{this['activeAnnotation']&&_0x1a2083(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x18f925,_0x37e079,_0x764a7e)=>{_0x764a7e||this['setActiveAnnotation'](null);}),this['listenTo'](_0x252f3d,'remove',(_0x3176fe,_0x1b3d25)=>{this['_removeAnnotationFromBalloon'](_0x1b3d25),_0x1b3d25===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4255f3,'change:visibleView',(_0x337f0b,_0x32f0f8,_0x548230,_0x4d0d97)=>{_0x4d0d97&&this['stopListening'](_0x4d0d97);const _0x2d04a8=_0x252f3d['getByView'](_0x548230);_0x548230&&_0x2d04a8&&(this['listenTo'](_0x548230,'change:height',()=>{_0x4255f3['updatePosition']();}),this['listenTo'](_0x548230,'Esc',()=>{this['_closeAnnotation'](_0x2d04a8),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x2d04a8&&this['setActiveAnnotation'](_0x2d04a8));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x4255f3['visibleView']&&(_0x252f3d['getByView'](_0x4255f3['visibleView'])&&_0x4255f3['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 _0x1a0aec('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x43bf16 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x43bf16);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x740e25){for(const _0x8860be of this['_selectedAnnotations'])_0x740e25['includes'](_0x8860be)||this['_manuallyClosed']['delete'](_0x8860be);for(const _0x35725f of this['annotations'])_0x740e25['includes'](_0x35725f)||this['_removeAnnotationFromBalloon'](_0x35725f);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x4c8aff of _0x740e25)this['_addAnnotationToBalloon'](_0x4c8aff);}this['_selectedAnnotations']=_0x740e25;}['_addAnnotationToBalloon'](_0xaac3df,_0x21174a=!0x1){this['_manuallyClosed']['has'](_0xaac3df)||(this['_addedAnnotations']['has'](_0xaac3df)||this['_balloon']['hasView'](_0xaac3df['view'])||(this['_addedAnnotations']['add'](_0xaac3df),this['_balloon']['add']({'stackId':_0xaac3df['view']['id'],'view':_0xaac3df['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xaac3df)}})),_0x21174a&&this['_balloon']['showStack'](_0xaac3df['view']['id']));}['_getBalloonTargetForAnnotation'](_0x19209e){const _0x48ca80=_0x19209e['target'],_0x534657=this['editor']['editing']['view'],_0x4439d6=_0x534657['document']['selection']['getFirstRange'](),_0x14f028=_0x534657['domConverter']['viewRangeToDom'](_0x4439d6);if(_0x14f028['collapse'](!0x0),_0x48ca80){if(_0x48ca80 instanceof _0x104051)return _0x48ca80;let _0x3cc1a6=[];for(const _0x417b59 of _0x48ca80)_0x3cc1a6['push'](...(_0x10f4fe=_0x417b59['getClientRects'](),Array['from'](_0x10f4fe)['map'](DOMRect['fromRect'])));_0x3cc1a6=function(_0x652644){const _0x4143f4=[];let _0x3b1de5=_0x652644[0x0];for(let _0x1a2ee2=0x1;_0x1a2ee2<_0x652644['length'];_0x1a2ee2++)b(_0x3b1de5,_0x652644[_0x1a2ee2])?_0x3b1de5['width']+=_0x652644[_0x1a2ee2]['width']:(_0x4143f4['push'](_0x3b1de5),_0x3b1de5=_0x652644[_0x1a2ee2]);return _0x4143f4['push'](_0x3b1de5),_0x4143f4;}(_0x3cc1a6);const _0x11a0eb=_0x14f028['getBoundingClientRect']();return _0x3cc1a6['find'](_0xac7434=>_0xac7434['top']<=_0x11a0eb['top']&&_0xac7434['bottom']>=_0x11a0eb['bottom']&&_0xac7434['left']<=_0x11a0eb['left']&&_0xac7434['right']>=_0x11a0eb['right'])||_0x3cc1a6[0x0];}var _0x10f4fe;return _0x19209e['targetRect']||_0x14f028;}['_removeAnnotationFromBalloon'](_0x1a24f2){this['_addedAnnotations']['has'](_0x1a24f2)&&this['_balloon']['hasView'](_0x1a24f2['view'])&&(this['_addedAnnotations']['delete'](_0x1a24f2),this['_balloon']['remove'](_0x1a24f2['view']));}['_closeAnnotation'](_0x23d7b2){this['_manuallyClosed']['add'](_0x23d7b2),this['_removeAnnotationFromBalloon'](_0x23d7b2);}}function b(_0x4043be,_0x3e40db){return _0x4043be['top']===_0x3e40db['top']&&_0x4043be['bottom']===_0x3e40db['bottom']&&_0x4043be['right']===_0x3e40db['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(_0x533fb4,_0x136ad2){super(_0x533fb4),this['set']('isEmpty',!_0x136ad2['length']),this['focusTracker']=new _0x3dc026(),this['_annotationViews']=_0x136ad2,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x136ad2,'focusTracker':this['focusTracker']}),this['listenTo'](_0x136ad2,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x136ad2,'remove',(_0x4e8e4a,_0x424523)=>{_0x424523['isActive']&&this['focus'](),_0x136ad2['length']||(this['isEmpty']=!0x0);});const _0x2d43b5=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x533fb4,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x136ad2},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2d43b5['if']('isEmpty','ck-hidden',_0x1f208c=>!_0x1f208c)]},'children':[{'text':S(_0x533fb4,'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 _0xb34f02 of this['_annotationViews'])this['focusTracker']['add'](_0xb34f02['element']);this['_annotationViews']['on']('change',(_0x26aa6a,{added:_0x1b785d,removed:_0x743735})=>{for(const _0x53520c of _0x1b785d)this['focusTracker']['add'](_0x53520c['element']);for(const _0x3ba8ac of _0x743735)this['focusTracker']['remove'](_0x3ba8ac['element']);});}}class f extends _0x10ef99{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x47e915){super(_0x47e915),this['archivedThreads']=new _0x385f24();}['init'](){const _0xdf1fd5=this['context'],_0x53a8cd=_0xdf1fd5['plugins']['get'](o),_0x5baeac=_0xdf1fd5['plugins']['get'](N);this['listenTo'](_0x53a8cd,'addCommentThread',(_0x5c0dc0,{threadId:_0xd3961b})=>{const _0x9cd6f8=_0x53a8cd['getCommentThread'](_0xd3961b);_0x9cd6f8['archivedAt']&&this['archivedThreads']['add'](_0x9cd6f8,this['_calculatePosition'](_0x9cd6f8['archivedAt'])),this['listenTo'](_0x9cd6f8,'change:archivedAt',(_0x470641,_0x5e75bc,_0x1f0380)=>{_0x1f0380?this['archivedThreads']['has'](_0x9cd6f8)||this['archivedThreads']['add'](_0x9cd6f8,this['_calculatePosition'](_0x9cd6f8['archivedAt'])):this['archivedThreads']['has'](_0x9cd6f8)&&this['archivedThreads']['remove'](_0x9cd6f8);});}),this['listenTo'](_0x53a8cd,'removeCommentThread',(_0xfa6075,{threadId:_0x163885})=>{const _0x8b7ae2=_0x53a8cd['getCommentThread'](_0x163885);this['stopListening'](_0x8b7ae2),this['archivedThreads']['has'](_0x8b7ae2)&&this['archivedThreads']['remove'](_0x8b7ae2);},{'priority':'highest'}),this['listenTo'](_0x5baeac['collection'],'focus',(_0x353b3e,_0x5acfc2)=>{_0x5acfc2['isVisible']||(_0x5acfc2['isActive']=!0x0,_0x5baeac['activate'](_0x5acfc2));});}['_calculatePosition'](_0x24c2f9){const _0x199f0a=[...this['archivedThreads']]['findIndex'](_0x228afe=>_0x228afe['archivedAt']<_0x24c2f9);return _0x199f0a>-0x1?_0x199f0a:this['archivedThreads']['length'];}}class a extends _0x5e07b6{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x525cbd];}constructor(_0x14293f){super(_0x14293f),this['annotationViews']=new _0x2939e2(),this['_pendingThreads']=[];}['init'](){const _0x1d8be6=this['editor'],_0x3f6857=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x1d8be6['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x2c634f,!0x0)),_0x1d8be6['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x5cd3bd=this['_createCommentsArchiveButton'](_0x3edae7);return _0x5cd3bd['set']({'role':'menuitemcheckbox'}),_0x5cd3bd;});const _0x50b018=_0x1d8be6['plugins']['get'](f),_0x391649=_0x1d8be6['plugins']['get']('Annotations'),_0x293bc3=_0x1d8be6['plugins']['get']('CommentsRepository');_0x50b018['archivedThreads']['forEach'](_0x22087d=>{this['_handleNewThread'](_0x22087d);}),this['listenTo'](_0x50b018['archivedThreads'],'add',(_0x51e98e,_0x48b394)=>{this['_handleNewThread'](_0x48b394);}),this['listenTo'](_0x391649['collection'],'add',(_0x2e2c73,_0x31a5a8)=>{const _0x221e4b=this['_pendingThreads']['find'](_0x50a426=>{const _0x5558b3=_0x293bc3['_threadToController']['get'](_0x50a426);return _0x5558b3&&_0x31a5a8['innerView']===_0x5558b3['view'];});if(_0x221e4b){const _0x528682=this['_calculatePosition'](_0x221e4b['archivedAt']);this['annotationViews']['add'](_0x31a5a8['view'],_0x528682),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x221e4b),0x1);}}),this['listenTo'](_0x50b018['archivedThreads'],'remove',(_0x3ccc33,_0x375c51)=>{const _0x482238=_0x1d8be6['config']['get']('collaboration.channelId');if(!_0x482238||_0x375c51['channelId']===_0x482238){const _0x2cbf01=_0x293bc3['_threadToController']['get'](_0x375c51),_0xa7127f=_0x391649['getByInnerView'](_0x2cbf01['view']);this['annotationViews']['remove'](_0xa7127f['view']),this['stopListening'](_0xa7127f['focusableElements']);}}),this['listenTo'](_0x391649['collection'],'add',(_0x1fea07,_0x4ae385)=>{this['listenTo'](_0x4ae385,'escape',_0x3f6857);}),this['listenTo'](_0x391649['collection'],'remove',(_0x3a359a,_0x22fde3)=>{this['stopListening'](_0x22fde3,'escape',_0x3f6857);});}['_handleNewThread'](_0x1f953c){const _0x20ce47=this['editor']['plugins']['get']('CommentsRepository'),_0x4b74d4=this['editor']['plugins']['get']('Annotations'),_0x4d4aab=this['editor']['config']['get']('collaboration.channelId');if(!_0x4d4aab||_0x1f953c['channelId']===_0x4d4aab){const _0x3d8c7f=_0x20ce47['_threadToController']['get'](_0x1f953c);if(!_0x3d8c7f)return void this['_pendingThreads']['push'](_0x1f953c);const _0x4e4eb0=this['_calculatePosition'](_0x1f953c['archivedAt']),_0x231e4c=_0x4b74d4['getByInnerView'](_0x3d8c7f['view']);_0x231e4c['isVisible']&&_0x4b74d4['_visibleAnnotations']['remove'](_0x231e4c),this['annotationViews']['add'](_0x231e4c['view'],_0x4e4eb0);}}['_calculatePosition'](_0x5baee1){const _0x2e0d2e=this['editor']['config']['get']('collaboration.channelId'),_0x4211d6=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x38839a=>_0x38839a['channelId']===_0x2e0d2e)['findIndex'](_0xd921fa=>_0xd921fa['archivedAt']<_0x5baee1);return _0x4211d6<0x0||_0x4211d6>this['annotationViews']['length']?this['annotationViews']['length']:_0x4211d6-0x1;}['_toggleDialog'](){const _0x46750e=this['editor'],_0x5b7dc5=_0x46750e['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x46750e['locale'],this['annotationViews'])),'commentsArchive'===_0x5b7dc5['id']?_0x5b7dc5['hide']():_0x5b7dc5['show']({'id':'commentsArchive','title':S(_0x46750e['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x3c0459['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x5c32d6,_0x5014ef=!0x1){const _0x5676ed=this['editor']['locale'],_0x209fd1=this['editor']['plugins']['get']('Dialog'),_0x246562=new _0x5c32d6(_0x5676ed);return _0x246562['bind']('isEnabled')['to'](this,'isEnabled'),_0x246562['bind']('isOn')['to'](_0x209fd1,'id',_0x2847ff=>'commentsArchive'===_0x2847ff),_0x246562['set']({'label':S(_0x5676ed,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x5014ef&&(_0x246562['tooltip']=!0x0),this['listenTo'](_0x246562,'execute',()=>this['_toggleDialog']()),_0x246562;}['_hideDialogOnAnnotationEscape']=_0x62a6bc=>{const _0x10676a=_0x62a6bc['source'];if(!this['annotationViews']['has'](_0x10676a['view']))return;const _0xf285a1=this['editor']['plugins']['get']('Dialog');_0xf285a1['isOpen']&&'commentsArchive'===_0xf285a1['id']&&(_0xf285a1['hide'](),_0x62a6bc['stop']());};}class p extends _0x5e07b6{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 _0x1edf4f,icons as _0x18f5e4,ContextPlugin as _0x579572,PendingActions as ht,Command as _0x206fea,Plugin as _0x3dc7ee,Context as _0x2e228a}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x2bd7ef,uid as _0x461a8b,KeystrokeHandler as jt,FocusTracker as _0x4272aa,diff as _0x582b50,Collection as _0xc841e1,Rect as _0x14d501,CKEditorError as _0x1d8fe5,first as _0x228b20,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x1ae35e,keyCodes as _0x3bbd18}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x4c0d0f,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x2a9841,ConfirmMixin as ti,LateFocusButtonView as _0x4f58f9,trimHtml as _0x3d74ea,LateFocusDropdownButtonView as _0x492444,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x405ad0}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x2238e8}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0xefe3d5,ViewCollection as _0x4578e3,createDropdown as _0x595391,ListView as _0x116dce,focusChildOnDropdownOpen as _0x46bfcf,ListItemView as _0x214f55,MenuBarMenuListItemButtonView as _0x3ae33b,BodyCollection as _0xffceee,BalloonPanelView as _0x583625,ContextualBalloon as _0x2e0fbc,Dialog as _0x212454,DialogViewPosition as _0x340c8b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x273130}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 _0x30ae24}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x51169c}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
+ _0x2bd7ef(){['model'];['view'];constructor(_0x40e688,_0x4b61d4){super(),this['model']=_0x40e688,this['model']['_isAttached']=!0x0,this['view']=_0x4b61d4,this['listenTo'](_0x4b61d4,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x4b61d4,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x4b61d4,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x4b61d4,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x4b61d4,'addComment',(_0x42674b,_0x59c958)=>this['addComment'](_0x59c958)),this['listenTo'](_0x4b61d4,'updateComment',(_0x86aae1,_0x4c12b8,_0x3a2ca2)=>this['updateComment'](_0x4c12b8,_0x3a2ca2)),this['listenTo'](_0x4b61d4,'removeComment',(_0x2ef394,_0x3f37c8)=>this['removeComment'](_0x3f37c8));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x2ea1be){this['model']['addComment']({'content':_0x2ea1be,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x86f141,_0x50834c){this['model']['getComment'](_0x86f141)['update']({'content':_0x50834c});}['removeComment'](_0xded2c0){this['model']['getComment'](_0xded2c0)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x484b90,_0x5ae163,_0x5014b4){const t=_0x484b90['t'];switch(_0x5ae163){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'},_0x5014b4);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'},_0x5014b4);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'},_0x5014b4);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'},_0x5014b4);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x5014b4);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'},_0x5014b4);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'},_0x5014b4);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'},_0x5014b4);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(_0x9974a5,_0x35fa01){super(_0x9974a5);const _0x1a1eda=_0x461a8b();this['main']=this['createCollection'](),this['editable']=new $t(_0x9974a5,_0x35fa01,void 0x0,{'label':()=>S(_0x9974a5,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x9974a5['uiLanguageDirection'],'lang':_0x9974a5['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x1a1eda},'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(_0x49d60b){super(_0x49d60b),this['view']=new Xt(_0x49d60b['locale'],_0x49d60b['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x3efe85=this['editor']['editing']['view'],_0x30fde1=this['view']['editable'],_0x346bbf=_0x3efe85['document']['getRoot']();_0x30fde1['name']=_0x346bbf['rootName'],this['view']['render']();const _0x158232=_0x30fde1['element'];this['setEditableElement'](_0x30fde1['name'],_0x158232),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3efe85['attachDomRoot'](_0x158232),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
25
+ _0x2bd7ef(_0x1edf4f){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Rt)());constructor(_0x16fc85={}){function _0x4815d4(_0x40554f){return _0x40554f['map'](_0x3168ae=>String['fromCharCode'](_0x3168ae))['join']('');}(_0x16fc85=Object['assign']({},_0x16fc85))['plugins']||(_0x16fc85['plugins']=Ut['defaultPlugins']),super(_0x16fc85),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[_0x4815d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4815d4([0x76,0x69,0x65,0x77])][_0x4815d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4815d4([0x61,0x75,0x74,0x6f]),this[_0x4815d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4815d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4815d4([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4815d4([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4815d4([0x6f,0x6b])});}['create'](){const _0x3ba25f=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x3ba25f))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5f35e9=>{const _0x4ccf28=this['model']['document']['getRoot'](),_0x49dfb8=_0x4ccf28&&_0x4ccf28['getChild'](_0x4ccf28['childCount']-0x1);_0x5f35e9['setSelection'](_0x49dfb8,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x507839=this['editing']['view'],_0x4634cd=_0x507839['document']['getRoot'](),_0x9b83a8=_0x4634cd['getChild'](0x0);_0x4634cd['childCount']>0x1||!_0x9b83a8||'p'!=_0x9b83a8['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x507839,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x9b83a8['placeholder']=this['placeholder']),St({'view':_0x507839,'element':_0x9b83a8,'keepOnFocus':!0x0}),this['placeholderElement']=_0x9b83a8);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x4f1329,_0x205321={}){super(_0x4f1329),this['editor']=null,this['_editorConfig']=_0x205321,this['set']('value',_0x205321['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x4f1329,'Reply...')),this['set']('submitLabel',S(_0x4f1329,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x4272aa(),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',(_0x7b322,_0x5e7a1d)=>{this['cancelButtonView']['fire']('execute'),_0x5e7a1d();}),this['keystrokes']['set']('Ctrl+Enter',(_0x37ce15,_0x340bc8)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x340bc8());}),this['on']('submit',(_0x5b205f,_0x238207)=>{_0x238207['length']>0xfde8?(alert(S(_0x4f1329,'TOO_LONG_COMMENT_ALERT',[_0x238207['length'],0xfde8])),_0x5b205f['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 _0x15e66a=this['editor'];this['element']['insertBefore'](_0x15e66a['ui']['element'],this['element']['firstChild']),_0x15e66a['model']['document']['on']('change',()=>this['value']=_0x15e66a['getData']()),_0x15e66a['bind']('placeholder')['to'](this),this['focusables']['add'](_0x15e66a['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x3cd9be){-0x1===_0x3cd9be?(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:_0x1b44ec}=this,_0x4f48f0=new _0xefe3d5(_0x1b44ec);return _0x4f48f0['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x4f48f0['withText']=!0x0,_0x4f48f0['bind']('label')['to'](this,'submitLabel'),_0x4f48f0['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x4f48f0['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x4d50cf,_0x6d890b)=>!_0x6d890b&&!!_0x4d50cf['trim']()),_0x4f48f0;}['_createCancelButton'](){const {locale:_0x125873}=this,_0x53eaa8=new _0xefe3d5(_0x125873);return _0x53eaa8['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x53eaa8['label']=S(_0x125873,'Cancel'),_0x53eaa8['withText']=!0x0,_0x53eaa8['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x53eaa8;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x53c764=>{this['focusTracker']['add'](_0x53c764['element']);}),this['focusables']['on']('change',(_0x5575c2,_0x37b46)=>{for(const _0x452e49 of Array['from'](_0x37b46['added'])['reverse']())this['focusTracker']['add'](_0x452e49['element']);});}}class ie extends kt{constructor(_0x3bc96e,_0x48d6a6,_0x404d6f){super(_0x3bc96e),this['commentInputView']=new os(_0x3bc96e,_0x404d6f),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x1569ed,_0x4db895)=>_0x1569ed||!!_0x4db895),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 _0x4c0d0f(_0x3bc96e,_0x48d6a6),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'](_0x46d27d){this['commentInputView']['focus'](_0x46d27d);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x11aa8b,_0x42eaae)=>{const {submitButtonView:_0x53b464,cancelButtonView:_0x23bc26,editor:_0x50d9a7}=this['commentInputView'];[_0x53b464['element'],_0x23bc26['element'],_0x50d9a7?_0x50d9a7['editing']['view']['getDomRoot']():null]['filter'](_0x5b69b0=>_0x5b69b0)['some'](_0x13c1e2=>_0x13c1e2['contains'](_0x42eaae['target']))||(this['focus'](),_0x42eaae['preventDefault']());});}}class cs extends kt{constructor(_0x4e8f90){super(_0x4e8f90);const _0x34d945=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x34d945['to']('count',_0x4c9dbc=>S(_0x4e8f90,'NUMBER_OF_COMMENTS',_0x4c9dbc))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x36a9b1,_0x18e6ee,_0x2dc4f4){super(_0x36a9b1);const _0xee1adc=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x18e6ee['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x18e6ee,this['_config']=_0x2dc4f4,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x4272aa(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1dd16f=>this['commentViews']['map'](_0x5a766b=>_0x5a766b['element'])['includes'](_0x1dd16f['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x36a9b1),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x494a0e=>_0x494a0e-this['_config']['maxCommentsWhenCollapsed']);for(const _0x2f1bf1 of _0x18e6ee['comments'])this['_handleNewCommentModel'](_0x2f1bf1);this['_handleInfoComment'](),this['listenTo'](_0x18e6ee['comments'],'add',(_0xbb3072,_0x5bfc4c)=>{const _0x15ea1e=this['_calculatePosition'](_0x5bfc4c);this['length']++,this['_handleNewCommentModel'](_0x5bfc4c,_0x15ea1e),this['refreshVisibleViews']();}),this['listenTo'](_0x18e6ee['comments'],'remove',(_0x249c5a,_0x180e50)=>{this['length']--,this['_handleRemoveCommentModel'](_0x180e50),this['refreshVisibleViews']();}),this['listenTo'](_0x18e6ee,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x18e6ee,'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',_0xee1adc['if']('length','ck-hidden',_0x4cab9c=>!_0x4cab9c)],'aria-label':S(_0x36a9b1,'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'](_0x47396d){-0x1===_0x47396d?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x538f30 of this['commentViews'])_0x538f30['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x5d744f,_0x16baf5){const _0x54aba9=new this['_config']['CommentView'](this['locale'],_0x5d744f,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x54aba9['viewUid']=_0x5d744f['id'],_0x54aba9['delegate']('removeComment')['to'](this),_0x54aba9['delegate']('updateComment')['to'](this),_0x54aba9['delegate']('resolveCommentThread')['to'](this),_0x54aba9['delegate']('editorReady')['to'](this),_0x54aba9['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x54aba9,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x54aba9,_0x16baf5);}['_calculatePosition'](_0x5f4e12){const _0x1d5086=this['_model']['_findOptimalIndex'](_0x5f4e12);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x5f4e12['authoredAt']?_0x1d5086-0x1:_0x1d5086:_0x1d5086-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x96e1e9={'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'],_0x96e1e9,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x96e1e9));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x45664a){const _0xb9be=this['commentViews']['remove'](_0x45664a['id']);this['stopListening'](_0xb9be),_0xb9be['isEditMode']&&this['_updateHasDirtyComment'](),_0xb9be['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x7edc85=>_0x7edc85['isEditMode']);}['_rearrangeCollapse'](){const _0x45f8da=function(_0x5cb600){const _0xc242a2=new _0xc841e1();for(const _0x2fcf11 of _0x5cb600)_0xc242a2['add'](_0x2fcf11);return _0xc242a2;}(this['commentViews']),_0x4a0924=this['_collapsedCommentsView']['count'];for(let _0x2bd236=0x1;_0x2bd236<=_0x4a0924;_0x2bd236++)_0x45f8da['remove'](0x1);for(const _0x239c98 of _0x45f8da)_0x239c98['collapse']();_0x4a0924>0x0&&_0x45f8da['add'](this['_collapsedCommentsView'],0x1),as(_0x582b50(Array['from'](this['visibleViews']),Array['from'](_0x45f8da)),this['visibleViews'],_0x45f8da);}['_rearrangeExpand'](){as(_0x582b50(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1b0f5a of this['visibleViews'])_0x1b0f5a['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x404a50=>{this['focusTracker']['add'](_0x404a50['element']),this['keystrokes']['listenTo'](_0x404a50['element']);}),this['commentViews']['on']('change',(_0x12db93,_0x2c9b5b)=>{for(const _0xe0c0d8 of _0x2c9b5b['removed'])this['focusTracker']['remove'](_0xe0c0d8['element']),this['keystrokes']['stopListening'](_0xe0c0d8['element']);for(const _0x10c9e4 of Array['from'](_0x2c9b5b['added'])['reverse']())this['focusTracker']['add'](_0x10c9e4['element']),this['keystrokes']['listenTo'](_0x10c9e4['element']);});}}function as(_0x1523d7,_0x208434,_0x577e20){let _0x3b989f=0x0;for(const _0x1b6851 of _0x1523d7)switch(_0x1b6851){case'insert':_0x208434['add'](_0x577e20['get'](_0x3b989f),_0x3b989f),_0x3b989f++;break;case'delete':_0x208434['remove'](_0x3b989f);break;case'equal':_0x3b989f++;}}class ls extends kt{constructor(_0x2de80f){super(_0x2de80f);const _0x384157=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x384157['to']('contextValue',_0x596018=>S(_0x2de80f,'THREAD_CONTEXT_LABEL',_0x596018)),'tabindex':-0x1},'children':[{'text':_0x384157['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x4df4fa,_0x16298b){super(_0x4df4fa);const _0x14dd4c=this['bindTemplate'];this['_model']=_0x16298b,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x4272aa(),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',_0x1a1e35=>!!_0x1a1e35),this['bind']('contextValue')['to'](this['_model'],'context',_0x166578=>_0x166578&&_0x166578['value']?this['_trimContextValue'](_0x166578['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',_0x14dd4c['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 _0x47aa37=new _0xefe3d5(this['locale']);return _0x47aa37['label']=S(this['locale'],'Reopen'),_0x47aa37['tooltip']=S(this['locale'],'Reopen'),_0x47aa37['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>',_0x47aa37['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3ddce2=>!_0x3ddce2),_0x47aa37['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0xb9f34e,_0x22a53c)=>_0xb9f34e&&_0x22a53c),_0x47aa37['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x47aa37;}['_trimContextValue'](_0x6d2798){if(_0x6d2798['length']<0x96)return _0x6d2798;const _0x3ffe10=_0x6d2798['lastIndexOf']('\x20',0x93);return _0x6d2798['substring'](0x0,_0x3ffe10>-0x1?_0x3ffe10:0x93)+'...';}['_attachContextActions'](){const _0x5c63ca=this['element']['querySelector']('.ck-context'),_0x412f51=_0x5c63ca['querySelector']('.ck-context__value');this['listenTo'](_0x5c63ca,'mouseenter',()=>{_0x412f51['offsetWidth']<_0x412f51['scrollWidth']&&_0x5c63ca['classList']['add']('overlay');}),this['listenTo'](_0x5c63ca,'mouseleave',()=>{_0x5c63ca['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x3b889e of this['focusables'])this['focusTracker']['add'](_0x3b889e['element']),this['keystrokes']['listenTo'](_0x3b889e['element']);}['_createContextView'](){const _0x455d3b=new ls(this['locale']);return _0x455d3b['bind']('contextValue')['to'](this),_0x455d3b;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x386ffd,_0x5e8446,_0x1a7bae,_0x127f0f){super(_0x386ffd),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x5e8446,this['_localUser']=_0x1a7bae,this['_config']=_0x127f0f,this['commentThreadHeaderView']=new Zt(_0x386ffd,_0x5e8446),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x386ffd,S(_0x386ffd,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x386ffd,_0x5e8446,Object['assign']({'CommentView':this['_config']['CommentView']},_0x127f0f)),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',(_0x2d109a,_0x1280d6)=>_0x2d109a||!!_0x1280d6),this['bind']('isUnlinked')['to'](_0x5e8446,'unlinkedAt',_0x3e36df=>!!_0x3e36df),this['bind']('ariaLabel')['to'](this,'length',_0x570d7a=>{const _0x4cfb8a=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x570d7a,_0x4cfb8a]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x4272aa(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xdb10e8=>_0xdb10e8['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x2a9841(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0xceea78=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x599ccc=_0xceea78['commentInputView'];return _0xceea78['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x599ccc,'value',(_0x5cf15e,_0x273aea,_0xc514a7,_0x1724f0,_0x254804)=>!!_0x254804||!!_0x1724f0&&_0xc514a7&&!_0x273aea||_0x5cf15e&&_0xc514a7&&!_0x273aea),_0x599ccc['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3bfc4b,_0x1f1afb,_0x1d66f7)=>{let _0x40ae28;return _0x40ae28=_0x1d66f7&&_0x1f1afb?'Reply\x20to\x20reopen\x20discussion...':_0x3bfc4b?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x40ae28);}),_0x599ccc['bind']('submitLabel')['to'](this,'length',_0x258a38=>S(this['locale'],_0x258a38?'Reply':'Comment')),_0x599ccc['on']('submit',(_0x17678f,_0x1be847)=>{this['fire']('addComment',_0x1be847),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x599ccc['on']('cancel',()=>{this['focus']();}),_0x599ccc['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x599ccc['on']('cancel',_0x357fb9=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x357fb9['stop']());}),this['on']('change:isActive',(_0x55d7da,_0x1ba865,_0x1b5891)=>{_0x1b5891||this['length']||_0x599ccc['value']||this['fire']('removeCommentThread');}),_0xceea78;}}class vt extends/* #__PURE__ -- @preserve */
27
+ ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x351425,_0x40b4a9,_0x24bfc4,_0x37eab5){super(_0x351425,_0x40b4a9,_0x24bfc4,_0x37eab5),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x351425,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x501df9,_0x203b99,_0x5e1e8e)=>{_0x5e1e8e||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x18f8eb,_0x46a58a,_0x518c7e)=>{_0x518c7e&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x44e0bb=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x44e0bb['if']('isActive','ck-thread--active'),_0x44e0bb['if']('isUnlinked','ck-thread--unlinked'),_0x44e0bb['if']('isConfirm','ck-thread--remove-confirmation'),_0x44e0bb['to']('actionIndicator',_0x5c0abb=>_0x5c0abb?'ck-thread--'+_0x5c0abb:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x44e0bb['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 _0x2682e2 of this['commentsListView']['commentViews'])_0x2682e2['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3bb416}=this,_0x36b006=this['commentsListView']['commentViews']['get'](0x0);_0x36b006===this['_boundFirstCommentView']||_0x36b006['isSystemComment']||(this['_boundFirstCommentView']=_0x36b006,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x36b006,'actionIndicator',_0x43a693=>'remove'===_0x43a693?'remove':null),_0x36b006['placeholder']=S(_0x3bb416,'Write\x20a\x20comment...'),_0x36b006['removeButton']['on']('execute',_0x9ca1d5=>{_0x9ca1d5['stop'](),this['showConfirm'](S(_0x3bb416,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x36b006['focus']();}),_0x36b006['actionBar']['add'](this['resolveButton'],0x0),_0x36b006['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x1e6d45=new _0x4f58f9(this['locale']);return _0x1e6d45['label']=S(this['locale'],'Resolve'),_0x1e6d45['tooltip']=S(this['locale'],'Resolve'),_0x1e6d45['icon']=_0x18f5e4['check'],_0x1e6d45['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x1e6d45['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x833e5c=>!_0x833e5c),_0x1e6d45['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5e7b69,_0x25bd64)=>_0x5e7b69&&!_0x25bd64),_0x1e6d45['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x1e6d45;}['_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(_0xa196bd){super(_0xa196bd),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x5bb803,_0x207e0c,_0x3ec146)=>{this['element']['innerHTML']=_0x3ec146;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x70aeb3,_0x35fa51,_0x57ae89){super(_0x70aeb3),this['_model']=_0x35fa51,this['_config']=_0x57ae89,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x35fa51,'content',_0x35fa51,'authoredAt',(_0x3b1616,_0x48748d)=>S(_0x70aeb3,'COMMENT_ARIA_LABEL',[_0x35fa51['author']['name'],_0x57ae89['formatDateTime'](_0x48748d),new DOMParser()['parseFromString'](_0x3b1616,'text/html')['body']['textContent'],_0x35fa51['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x70aeb3,S(_0x70aeb3,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x4578e3(),this['focusTracker']=new _0x4272aa(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1150d2=>_0x1150d2['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 _0xbeda0b=new hs(this['locale']);return _0xbeda0b['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x4e20f4,_0x193bd9)=>_0x193bd9?_0x3d74ea(_0x4e20f4,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x4e20f4),_0xbeda0b;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x2d3e19=new os(this['locale'],this['_config']['editorConfig']);return _0x2d3e19['value']=this['_model']['content'],_0x2d3e19['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2d3e19['submitLabel']=S(this['locale'],'Save'),_0x2d3e19['on']('submit',(_0x3a538a,_0x24ddeb)=>{this['fire']('updateComment',this['_model']['id'],_0x24ddeb),this['switchToDisplayMode'](),this['focus']();}),_0x2d3e19['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x2d3e19['once']('editorReady',()=>{_0x2d3e19['focus']();}),_0x2d3e19['createEditor'](),_0x2d3e19['delegate']('editorReady')['to'](this),_0x2d3e19['delegate']('editorDestroyed')['to'](this),_0x2d3e19;}['_setupKeyboardNavigation'](){const _0x50fff1=this['element'];this['keystrokes']['listenTo'](_0x50fff1);for(const _0x4f24fc of this['focusables'])this['focusTracker']['add'](_0x4f24fc['element']),this['keystrokes']['listenTo'](_0x4f24fc['element']);this['focusables']['on']('change',(_0x17d30f,_0x1ae467)=>{for(const _0xd2aeed of _0x1ae467['removed'])this['focusTracker']['remove'](_0xd2aeed['element']),this['keystrokes']['stopListening'](_0xd2aeed['element']);for(const _0x516baa of _0x1ae467['added'])this['focusTracker']['add'](_0x516baa['element']),this['keystrokes']['listenTo'](_0x516baa['element']);}),this['keystrokes']['set']('enter',(_0x47de19,_0x4c87aa)=>{_0x50fff1===_0x47de19['target']&&(this['focusCycler']['focusFirst'](),_0x4c87aa());}),this['keystrokes']['set']('esc',(_0x4b2bb4,_0x215744)=>{_0x50fff1!==_0x4b2bb4['target']&&(this['focus'](),_0x215744());});}}class gt extends/* #__PURE__ -- @preserve */
28
+ ti(rs){['actionBar'];['userView'];constructor(_0x5db750,_0x29c36d,_0x52b64f){super(_0x5db750,_0x29c36d,_0x52b64f),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x5db750,'Reply...')),this['bind']('authoredAt')['to'](_0x29c36d),this['bind']('resolvedAt')['to'](_0x29c36d),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 _0x4c0d0f(_0x5db750,_0x29c36d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x29c36d,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2bb188=this['bindTemplate'],_0x441019=[{'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':_0x2bb188['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2bb188['to']('authoredAt',_0x445b67=>this['_config']['formatDateTime'](_0x445b67))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x2bb188['if']('isEditMode','ck-comment__actions--hidden'),_0x2bb188['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']&&_0x441019['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2bb188['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x2bb188['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x2bb188['if']('isEditMode','ck-comment--edit'),_0x2bb188['if']('isSystemComment','ck-comment--info'),_0x2bb188['to']('actionIndicator',_0x3f69d5=>_0x3f69d5?'ck-comment--'+_0x3f69d5:'')],'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':_0x441019}]}]};}['_createEditButton'](){const _0x3155b5=new _0xefe3d5(this['locale']);return _0x3155b5['label']=S(this['locale'],'Edit'),_0x3155b5['icon']=_0x18f5e4['pencil'],_0x3155b5['withText']=!0x0,_0x3155b5['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x3155b5['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x218b7e=>!_0x218b7e),_0x3155b5['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x3155b5['on']('execute',()=>this['switchToEditMode']()),_0x3155b5;}['_createRemoveButton'](){const _0xc59f3f=new _0xefe3d5(this['locale']);return _0xc59f3f['label']=S(this['locale'],'Remove'),_0xc59f3f['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',_0xc59f3f['withText']=!0x0,_0xc59f3f['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0xc59f3f['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5a7d14=>!_0x5a7d14),_0xc59f3f['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0xc59f3f['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0xc59f3f;}['_createDropdown'](){const _0x6ca136=_0x595391(this['locale'],_0x492444),_0x4514fb=_0x6ca136['panelView']['children'],_0x12f99f=new _0x116dce(this['locale']),_0x2e78f4=_0x6ca136['bindTemplate'];_0x46bfcf(_0x6ca136,()=>this['items']['find'](_0x2b2df2=>_0x2b2df2['isVisible'])),_0x6ca136['extendTemplate']({'attributes':{'class':[_0x2e78f4['if']('isVisible','ck-hidden',_0x37eebc=>!_0x37eebc)]}});const _0x57c4cf=(_0x1a4f9f,_0x3a82b5=-0x1)=>{const _0x252b2a=new _0x214f55(this['locale']);_0x252b2a['children']['add'](_0x1a4f9f);const _0x137321=_0x3a82b5>-0x1?_0x3a82b5:_0x12f99f['items']['length'];_0x12f99f['items']['add'](_0x252b2a,_0x137321);const _0x345361=Array['from'](this['items']);_0x6ca136['unbind']('isEnabled','isVisible'),_0x6ca136['bind']('isEnabled')['toMany'](_0x345361,'isEnabled',(..._0xf438d2)=>_0xf438d2['some'](_0x124f08=>_0x124f08)),_0x6ca136['bind']('isVisible')['toMany'](_0x345361,'isVisible',(..._0x301cd0)=>_0x301cd0['some'](_0x59a91b=>_0x59a91b));};_0x6ca136['panelPosition']='sw',_0x6ca136['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x18f5e4['threeVerticalDots']});for(const _0x21d4cb of this['items'])_0x57c4cf(_0x21d4cb);return _0x4514fb['add'](_0x12f99f),_0x6ca136['listenTo'](this['items'],'add',(_0x5df573,_0x4acaef,_0x3cdeb5)=>{_0x57c4cf(_0x4acaef,_0x3cdeb5);}),_0x6ca136['listenTo'](this['items'],'remove',(_0x69ac72,_0x5818e6,_0x5a9ad4)=>{_0x12f99f['items']['remove'](_0x5a9ad4);}),_0x6ca136;}['_attachActions'](_0x471ddc,_0x9e516f){const _0x46566f=_0x471ddc&&_0x471ddc['element'];_0x46566f&&(this['listenTo'](_0x46566f,'mouseenter',()=>this['actionIndicator']=_0x9e516f),this['listenTo'](_0x46566f,'focus',()=>this['actionIndicator']=_0x9e516f),this['listenTo'](_0x46566f,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x46566f,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x4b3ee5=super['_createCommentInputView']();return _0x4b3ee5['bind']('placeholder')['to'](this),_0x4b3ee5;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x2f8f31){const _0x4b02a0=Dt(_0x2f8f31,0x1e),_0x21a88c=new MutationObserver(_0x1c43d6=>{for(const _0xdcbbd3 of _0x1c43d6)('attributes'==_0xdcbbd3['type']&&'class'==_0xdcbbd3['attributeName']||'childList'==_0xdcbbd3['type']||'characterData'==_0xdcbbd3['type'])&&_0x4b02a0();});return{'attach'(_0x2f0de0){_0x21a88c['observe'](_0x2f0de0,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x21a88c['disconnect'](),_0x4b02a0['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x30ff5f,_0x26da43){super(_0x30ff5f),this['id']=_0x461a8b(),this['focusTracker']=new _0x4272aa(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x157910,_0x684edd)=>this['fire']('Esc',_0x684edd)),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'](_0x26da43),this['mainView']=_0x26da43;const _0x15d980=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x15d980['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 _0x16ae56=this['element']['clientHeight'];_0x16ae56&&(this['height']=_0x16ae56);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x2bd7ef(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x615821,target:_0x2b02d9,type:_0x50480a,isVisible:_0x198f5a=!0x0}){super(),this['view']=_0x615821,this['view']['element']||this['view']['render'](),this['_type']=_0x50480a,this['_target']=_0x2b02d9,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0xc841e1([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x1a8040,_0x1a7235)=>{this['view']['focusTracker']['add'](_0x1a7235);}),this['focusableElements']['on']('remove',(_0x486948,_0x20eb91)=>{this['view']['focusTracker']['remove'](_0x20eb91);}),this['set']('isVisible',_0x198f5a);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x48e25f=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x48e25f),_0x48e25f;}get['targetRect'](){const _0x35e9c9=this['target'];if(null===_0x35e9c9)return null;if(_0x35e9c9 instanceof _0x14d501)return _0x35e9c9;const _0x5ce0cf=_0x35e9c9['filter'](_0x13a993=>function(_0x2c7e26){const _0x9fe352=_0x2c7e26['offsetParent'];if(_0x9fe352)return!0x0;const _0x39d1ee=_0x2c7e26['getClientRects']()['item'](0x0);return!!_0x39d1ee;}(_0x13a993));return 0x0===_0x5ce0cf['length']?null:new _0x14d501(_0x5ce0cf[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3870ed){this['view']['isActive']=_0x3870ed,this['view']['mainView']['isActive']=_0x3870ed;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x1262a8){if(!(null===_0x1262a8||_0x1262a8 instanceof _0x14d501||Array['isArray'](_0x1262a8)&&_0x1262a8['every'](_0x564a37=>ne(_0x564a37))))throw new _0x1d8fe5('annotation-invalid-target',null,{'target':_0x1262a8});}['_getNormalizedTarget'](){const _0x40d3d6='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x40d3d6)?[_0x40d3d6]:_0x40d3d6;}}function ne(_0x33dbaa){return null!==_0x33dbaa&&'object'==typeof _0x33dbaa&&'nodeType'in _0x33dbaa&&0x1===_0x33dbaa['nodeType'];}class x extends _0xc841e1{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x303d74=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x4272aa(),this['_focusTracker']['on']('change:isFocused',(_0xb8fb14,_0x126a79,_0x295cee)=>{_0x295cee||this['fire']('blur');});for(const _0x23131a of _0x303d74)this['add'](_0x23131a);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x30fc01){if(this['has'](_0x30fc01))throw new _0x1d8fe5('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x30fc01['innerView'],_0x30fc01),this['_viewToAnnotation']['set'](_0x30fc01['view'],_0x30fc01);for(const _0x3790f8 of _0x30fc01['focusableElements'])this['_focusTracker']['add'](_0x3790f8);this['listenTo'](_0x30fc01['focusableElements'],'add',(_0x5a85f7,_0x5e7119)=>{this['_focusTracker']['add'](_0x5e7119);}),this['listenTo'](_0x30fc01['focusableElements'],'remove',(_0xf83199,_0x9ba3d4)=>{this['_focusTracker']['remove'](_0x9ba3d4);}),this['listenTo'](_0x30fc01['view']['focusTracker'],'change:isFocused',(_0x5dec72,_0x597b09,_0x28dc94)=>{_0x28dc94&&this['fire']('focus',_0x30fc01);}),_0x30fc01['updateTargetRect']();const _0x4e0dc0=this['_getOrderInContent'](_0x30fc01['view']['targetRect']);return super['add'](_0x30fc01,_0x4e0dc0);}['remove'](_0x27eddb){if(!this['has'](_0x27eddb))throw new _0x1d8fe5('annotationcollection-not-existing-item',null);this['stopListening'](_0x27eddb['view']['focusTracker']),this['stopListening'](_0x27eddb['focusableElements']);for(const _0x3ca218 of _0x27eddb['focusableElements'])this['_focusTracker']['remove'](_0x3ca218);return this['_viewToAnnotation']['delete'](_0x27eddb['view']),this['_innerViewToAnnotation']['delete'](_0x27eddb['innerView']),super['remove'](_0x27eddb);}['getByInnerView'](_0x1e4ef3){return this['_innerViewToAnnotation']['get'](_0x1e4ef3);}['getByView'](_0x18e73a){return this['_viewToAnnotation']['get'](_0x18e73a);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0xbc03c of this)_0xbc03c['updateTargetRect']();this['_sort']();}['_sort'](){const _0x39634b=Array['from'](this)['sort']((_0x22e5e4,_0x36d522)=>v(_0x22e5e4['view']['targetRect'],_0x36d522['view']['targetRect']));for(let _0x26a392=_0x39634b['length']-0x1;_0x26a392>0x0;_0x26a392--){const _0x3595a9=_0x39634b[_0x26a392];_0x26a392!==this['getIndex'](_0x3595a9)&&(this['remove'](_0x3595a9),this['add'](_0x3595a9));}}['_getOrderInContent'](_0x41c3b6){let _0x181201=0x0;if(!_0x41c3b6)return this['length'];for(const _0x206b01 of this){const _0x53cd17=_0x206b01['view']['targetRect'];if(_0x53cd17){if(v(_0x41c3b6,_0x53cd17)<0x0)return _0x181201;_0x181201++;}}return _0x181201;}}function v(_0x14cb04,_0xf670b8){if(null===_0x14cb04&&null===_0xf670b8)return 0x0;if(null===_0x14cb04)return-0x1;if(null===_0xf670b8)return 0x1;const _0x3b15be=_0x14cb04['top']-_0xf670b8['top'];return 0x0==_0x3b15be?_0x14cb04['left']-_0xf670b8['left']:_0x3b15be;}class N extends _0x579572{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b274a){if(super(_0x4b274a),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x4b274a instanceof _0x1edf4f){const _0x329dc1=_0x4b274a['locale'];_0x4b274a['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x329dc1,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x329dc1,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x329dc1,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x329dc1,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x329dc1,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x329dc1,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x329dc1,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x9352ff){this['collection']['add'](_0x9352ff);}['remove'](_0x7d42d3){this['collection']['remove'](_0x7d42d3),_0x7d42d3['destroy']();}['refreshVisibility'](){for(const _0x5cea0e of this['collection'])_0x5cea0e['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x52183c){return this['collection']['getByInnerView'](_0x52183c);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x441d28 of this['collection'])_0x441d28['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x9f2d3a){this['fire']('_activateAnnotation',_0x9f2d3a);}['createAnnotation'](_0x53feb8){return new d(_0x53feb8);}['createAnnotationView'](_0x551525,_0x361650){return new T(_0x551525,_0x361650);}['_addActiveAnnotation'](_0x24b204){const _0x508148=new Set(this['activeAnnotations']);_0x508148['add'](_0x24b204),this['activeAnnotations']=_0x508148;}['_removeActiveAnnotation'](_0x56954a){const _0x1b7c55=new Set(this['activeAnnotations']);_0x1b7c55['delete'](_0x56954a),this['activeAnnotations']=_0x1b7c55;}['_bindAnnotationsToVisibleAnnotations'](){const _0xd6dd5c=this['collection'],_0x698cf=this['_visibleAnnotations'];function _0x2649a1(_0x6cbfca){const _0x54effe=_0x6cbfca['source'];_0x54effe['isVisible']&&!_0x698cf['has'](_0x54effe)?_0x698cf['add'](_0x54effe):!_0x54effe['isVisible']&&_0x698cf['has'](_0x54effe)&&_0x698cf['remove'](_0x54effe),_0x54effe['view']['focusTracker']['remove'](_0x54effe['view']['element']),_0x54effe['view']['focusTracker']['add'](_0x54effe['view']['element']);}this['listenTo'](_0xd6dd5c,'add',(_0x540905,_0x5dccb8)=>{_0x5dccb8['isVisible']&&_0x698cf['add'](_0x5dccb8),this['listenTo'](_0x5dccb8,'change:isVisible',_0x2649a1);}),this['listenTo'](_0xd6dd5c,'remove',(_0x4d7e62,_0x423a52)=>{_0x698cf['has'](_0x423a52)&&_0x698cf['remove'](_0x423a52),this['stopListening'](_0x423a52,'change:isVisible',_0x2649a1);});}['_setupEnterAnnotationKeystroke'](){const _0x31210b=_0x2bdda1=>{_0x2bdda1['on']('ready',()=>{_0x2bdda1['keystrokes']['set'](_0x30ae24,(_0x27f946,_0xf313a)=>{const _0x89ea05=_0x228b20(this['activeAnnotations']['values']());_0x89ea05&&(_0x89ea05['view']['focus'](),_0xf313a());});});};this['context']instanceof _0x1edf4f?_0x31210b(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x5110eb,_0x165492)=>{_0x31210b(_0x165492);});}['_setupEscapeAnnotationHandling'](){const _0x5ef5e8=_0x2de676=>{const _0x3f5069=_0x2de676['source'],_0x249309=[];let _0x2fafb7;if(Array['isArray'](_0x3f5069['target'])){_0x2fafb7=_0x3f5069['target'][0x0],this['context']instanceof _0x1edf4f?_0x249309['push'](this['context']):this['context']['editors']&&_0x249309['push'](...this['context']['editors']);for(const _0x5c9d20 of _0x249309)for(const _0x285a0c of _0x5c9d20['editing']['view']['domRoots']['values']())if(_0x285a0c['contains'](_0x2fafb7))return void _0x5c9d20['editing']['view']['focus']();_0x2fafb7['focus']();}};this['listenTo'](this['collection'],'add',(_0x25188a,_0x3a6226)=>{this['listenTo'](_0x3a6226,'escape',_0x5ef5e8,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x421e17,_0x589ab6)=>{this['stopListening'](_0x589ab6,'escape',_0x5ef5e8);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x579572{['_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(_0x1d238d){super(_0x1d238d),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x4d6297=this['context']['config'];_0x4d6297['define']('comments.maxCommentsWhenCollapsed',0x2),_0x4d6297['define']('comments.maxThreadTotalWeight',0x1f4),_0x4d6297['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x4d6297['define']('comments.CommentThreadView',vt),_0x4d6297['define']('comments.CommentView',gt),_0x4d6297['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x19295e=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x17b244,_0x3ea3cf)=>this['_addCommentThread'](_0x3ea3cf)),this['on']('submitCommentThread',(_0x5dd6cd,_0x48c657)=>this['_submitCommentThread'](_0x48c657)),this['on']('resolveCommentThread',(_0xdbca7e,_0x3078b2)=>this['_resolveCommentThread'](_0x3078b2)),this['on']('resolveCommentThread',(_0x1cb093,_0xac9f0f)=>this['_updateActiveAnnotation'](_0xac9f0f),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5e770f,_0x11bb34)=>this['_reopenCommentThread'](_0x11bb34)),this['on']('reopenCommentThread',(_0x105193,_0x3ec556)=>this['_updateActiveAnnotation'](_0x3ec556),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x1665e5,_0x23ba1b)=>this['_removeCommentThread'](_0x23ba1b)),this['on']('updateCommentThread',(_0x2a1af2,_0xc58814)=>this['_updateCommentThread'](_0xc58814)),this['on']('updateCommentThread',(_0x1259d6,_0x199410)=>this['_updateActiveAnnotation'](_0x199410),{'priority':'lowest'}),this['on']('addComment',(_0x18e583,_0x12c561)=>this['_addComment'](_0x12c561)),this['on']('updateComment',(_0x5c9d28,_0x922c21)=>this['_updateComment'](_0x922c21)),this['on']('removeComment',(_0x15dece,_0x2e8aa0)=>this['_removeComment'](_0x2e8aa0)),this['on']('addComment',(_0xa1553c,{threadId:_0x3a0c26,isFromAdapter:_0x4fc0e1})=>{if(_0x4fc0e1)return;const _0x27654c=this['getCommentThread'](_0x3a0c26),_0x59cbb4=_0x27654c&&this['_threadToController']['get'](_0x27654c);_0x59cbb4&&_0x59cbb4['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x19295e,'change:activeAnnotations',(_0x586022,_0xb6e5b,_0x2df60d)=>{const _0xc7f214=Array['from'](_0x2df60d)['map'](_0xd61ed1=>this['_viewToController']['get'](_0xd61ed1['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xc7f214?_0xc7f214['model']:null;});}set['adapter'](_0x1f7f18){if(this['_adapter'])throw new _0x1d8fe5('commentsrepository-adapter-already-set');this['_adapter']=_0x1f7f18;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x6dde1=Tt,threadId:_0x57e64a=_0x461a8b(),comments:_0x5d08db=[],unlinkedAt:_0x253ada=null,resolvedAt:_0x350739=null,resolvedBy:_0x1be00b=null,target:_0x38d089=null,context:_0x4a37ae=null,attributes:_0x2484c5={},isResolvable:_0x52236c=!0x0,isSubmitted:_0x4a9bef=!0x1,isFromAdapter:_0x181c3b=!0x1}={}){return this['fire'](bt('addCommentThread',_0x6dde1),{'channelId':_0x6dde1,'threadId':_0x57e64a,'comments':_0x5d08db,'unlinkedAt':_0x253ada,'resolvedAt':_0x350739,'resolvedBy':_0x1be00b,'target':_0x38d089,'context':_0x4a37ae,'attributes':_0x2484c5,'isFromAdapter':_0x181c3b,'isResolvable':_0x52236c,'isSubmitted':_0x4a9bef}),this['getCommentThread'](_0x57e64a);}['openNewCommentThread']({channelId:_0x5d13d3=Tt,threadId:_0x363c41=_0x461a8b(),target:_0x3e9bae,context:_0x2a4900=null,isResolvable:_0x235af7=!0x0}){if(this['_readOnlyChannels']['has'](_0x5d13d3)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x3e9bae)throw new _0x1d8fe5('commentsrepository-missing-target');const _0x16ea09=this['addCommentThread']({'channelId':_0x5d13d3,'threadId':_0x363c41,'target':_0x3e9bae,'context':_0x2a4900,'isResolvable':_0x235af7});if(!_0x16ea09)return null;const _0x30c6cb=this['_threadToController']['get'](_0x16ea09),_0x1872cc=_0x30c6cb['view']['commentThreadInputView']['commentInputView'],_0x34e846=this['context']['plugins']['get'](N),_0x30b9b4=_0x34e846['getByInnerView'](_0x30c6cb['view']);return _0x34e846['activate'](_0x30b9b4),_0x1872cc['once']('editorReady',()=>_0x1872cc['focus']()),_0x16ea09;}['hasCommentThread'](_0x52eaef){if('string'!=typeof _0x52eaef)throw new _0x1d8fe5('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x52eaef);}['updateCommentThread']({channelId:_0x3b2b21=Tt,threadId:_0x36682b,context:_0x244210,unlinkedAt:_0x5ee03a,attributes:_0xc2de1e,isFromAdapter:_0x56372f=!0x1}){return this['fire'](bt('updateCommentThread',_0x3b2b21),{'channelId':_0x3b2b21,'threadId':_0x36682b,'context':_0x244210,'unlinkedAt':_0x5ee03a,'attributes':_0xc2de1e,'isFromAdapter':_0x56372f}),this['getCommentThread'](_0x36682b);}['getCommentThread'](_0x53feda){if('string'!=typeof _0x53feda)throw new _0x1d8fe5('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x53feda);}['fetchCommentThread']({channelId:_0x1c3f48,threadId:_0xb0bb7b}={}){const _0x18f3be=this['getCommentThread'](_0xb0bb7b);if(_0x18f3be)return Promise['resolve'](_0x18f3be);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x1d8fe5('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x1c3f48,'threadId':_0xb0bb7b})['then'](_0x346828=>this['hasCommentThread'](_0xb0bb7b)?this['getCommentThread'](_0xb0bb7b):_0x346828?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x1c3f48},_0x346828)):void 0x0)['catch'](_0x107414=>{throw console['error'](_0x107414),new _0x1d8fe5('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x5786f8,skipNotAttached:_0x3b0ef1=!0x1,skipEmpty:_0x3406de=!0x1,toJSON:_0x34d3e2=!0x1}={}){const _0x5c2b10=[];for(const _0x58edb2 of this['_threads']['values']())_0x5786f8&&_0x58edb2['channelId']!==_0x5786f8||_0x3b0ef1&&!_0x58edb2['isAttached']||_0x3406de&&0x0===_0x58edb2['length']||_0x5c2b10['push'](_0x58edb2);return _0x34d3e2?_0x5c2b10['map'](_0x143357=>_0x143357['toJSON']()):_0x5c2b10;}['setActiveCommentThread'](_0x2094cc){const _0x4ac1b5=this['context']['plugins']['get'](N);if(!_0x2094cc)return void(this['activeCommentThread']&&_0x4ac1b5['deactivateAll']());const _0x1cc639=this['getCommentThread'](_0x2094cc);if(!_0x1cc639)throw new _0x1d8fe5('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x2094cc});if(!this['_threadToController']['has'](_0x1cc639))throw new _0x1d8fe5('commentsrepository-active-not-attached',null,{'threadId':_0x2094cc});const _0x1db2b3=_0x4ac1b5['getByInnerView'](this['_threadToController']['get'](_0x1cc639)['view']);_0x4ac1b5['activate'](_0x1db2b3);}['switchReadOnly'](_0xe74a0b,_0x3d5d85){_0xe74a0b?this['_readOnlyChannels']['add'](_0x3d5d85):this['_readOnlyChannels']['delete'](_0x3d5d85),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x23fb12){return this['_readOnlyChannels']['has'](_0x23fb12)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x164d4d,_0x4fce04){return new Ct(_0x164d4d,_0x4fce04);}['setPermissions'](_0x48486e,_0x4579a2=Tt){this['_permissions']['set'](_0x4579a2,_0x48486e),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x136403=Tt){return this['_permissions']['has'](_0x136403)?this['_permissions']['get'](_0x136403):_t;}['_addCommentThread']({channelId:_0x5ae651,threadId:_0x3b07f7,comments:_0xeb565e,unlinkedAt:_0x767f52,resolvedAt:_0x24f19d,resolvedBy:_0x2fb4c0,target:_0x3d499b,context:_0x3249ef,attributes:_0x274a0b,isFromAdapter:_0x49d745,isResolvable:_0x44dc32,isSubmitted:_0x47c59e}){if('string'!=typeof _0x3b07f7)throw new _0x1d8fe5('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3b07f7});if(this['hasCommentThread'](_0x3b07f7))throw new _0x1d8fe5('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x3b07f7});const _0x9519f=new oe(this,{'channelId':_0x5ae651,'id':_0x3b07f7,'context':_0x3249ef,'attributes':_0x274a0b,'unlinkedAt':_0x767f52,'resolvedAt':_0x24f19d,'resolvedBy':_0x2fb4c0?this['context']['plugins']['get'](it)['getUser'](_0x2fb4c0):null,'isResolvable':_0x44dc32,'isSubmitted':_0x47c59e||_0x49d745});this['_threads']['set'](_0x3b07f7,_0x9519f);for(const _0x5b7519 of _0xeb565e)_0x9519f['_add'](this['_createNewComment']({'threadId':_0x3b07f7,..._0x5b7519}));return _0x3d499b&&_0x9519f['attachTo'](_0x3d499b),_0x49d745||!_0x9519f['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x5ae651,'threadId':_0x3b07f7});}['_submitCommentThread']({channelId:_0x2be2cc,threadId:_0x41a9b5}){if(!this['hasCommentThread'](_0x41a9b5))throw new _0x1d8fe5('commentsrepository-missing-comment-thread',this);const _0x35d299=this['getCommentThread'](_0x41a9b5);if(_0x35d299['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x160648,comments:_0x2e275f,resolvedAt:_0x3750a3,resolvedBy:_0x2d1467,context:_0x54b803,attributes:_0x30e846}=_0x35d299,_0x503fd2=this['context']['plugins']['get']('PendingActions'),_0x2741f8=_0x503fd2['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x2be2cc,'threadId':_0x160648,'comments':_0x2e275f['map'](_0x55739e=>_0x55739e['toJSON']()),'resolvedAt':_0x3750a3,'resolvedBy':_0x2d1467?_0x2d1467['id']:_0x2d1467,'context':_0x54b803,'attributes':_0x30e846})['then'](({comments:_0x39b208})=>{_0x503fd2['remove'](_0x2741f8);for(const _0x27de07 of _0x39b208)this['_updateComment']({'channelId':_0x2be2cc,'threadId':_0x41a9b5,'commentId':_0x27de07['commentId'],'createdAt':_0x27de07['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x48e80e=>{throw console['error'](_0x48e80e),new _0x1d8fe5('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x2b9ad5,target:_0x3fb664}){const _0x2b4045=this['getCommentThread'](_0x2b9ad5);if(!_0x2b4045)throw new _0x1d8fe5('commentsrepository-attach-missing-comment-thread',this);const _0x2cd3a2=this['context']['plugins']['get']('PendingActions'),_0x1f718b=this['context']['plugins']['get'](N),_0x4d9870=this['_createCommentThreadView'](_0x2b4045),_0x4bc89a=new Ct(_0x2b4045,_0x4d9870);let _0x3907dd=null;_0x4d9870['on']('change:isDirty',(_0x11aecc,_0x19397f,_0x562ad2)=>{_0x562ad2?_0x3907dd=_0x2cd3a2['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x3907dd&&(_0x2cd3a2['remove'](_0x3907dd),_0x3907dd=null);}),this['_threadToController']['set'](_0x2b4045,_0x4bc89a),this['_viewToController']['set'](_0x4d9870,_0x4bc89a);const _0x520860=new T(this['context']['locale'],_0x4d9870);_0x520860['bind']('length')['to'](_0x4d9870),_0x520860['bind']('isDirty')['to'](_0x4d9870,'isDirty',_0x4d9870,'length',(_0x2f3962,_0x26710d)=>_0x2f3962||!_0x26710d),_0x520860['bind']('isActive')['to'](_0x4d9870),_0x520860['type']='comment';const _0x2ede31=new d({'view':_0x520860,'target':_0x3fb664,'type':'comment','isVisible':!_0x2b4045['archivedAt']});return _0x4d9870['on']('escape',()=>{_0x2ede31['fire']('escape');}),this['_bindAnnotationToEditors'](_0x4d9870,_0x2ede31),_0x1f718b['add'](_0x2ede31),_0x2ede31;}['_bindAnnotationToEditors'](_0xeb2cbe,_0xe62367){this['listenTo'](_0xeb2cbe,'editorReady',(_0x37e1f7,_0xf473a)=>{const _0x466673=_0xf473a['ui']['view']['body']['bodyCollectionContainer'];_0xe62367['focusableElements']['add'](_0x466673),this['context']instanceof _0x1edf4f&&this['context']['ui']['focusTracker']['add'](_0x466673);},{'priority':'highest'}),this['listenTo'](_0xeb2cbe,'editorDestroyed',(_0x285280,_0x5e3023)=>{const _0x49773f=_0x5e3023['ui']['view']['body']['bodyCollectionContainer'];_0xe62367['focusableElements']['has'](_0x49773f)&&_0xe62367['focusableElements']['remove'](_0x49773f),this['context']instanceof _0x1edf4f&&this['context']['ui']['focusTracker']['remove'](_0x49773f);});}['_unbindEditors'](_0x4cedbc){this['stopListening'](_0x4cedbc,'editorReady'),this['stopListening'](_0x4cedbc,'editorDestroyed');}['_createCommentThreadView'](_0xa6596d){const _0x543ad9=this['context']['plugins']['get'](it),{config:_0x423a69,locale:_0x3c1051}=this['context'],_0x37be1e=lt(_0x423a69['get']('locale'));return new(0x0,(_0x423a69['get']('comments'))['CommentThreadView'])(_0x3c1051,_0xa6596d,_0x543ad9['me'],{'editorConfig':{..._0x423a69['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x423a69['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x423a69['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x423a69['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x423a69['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x37be1e,'CommentView':_0x423a69['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x47030f,channelId:_0x302257,resolvedAt:_0x18e798,resolvedBy:_0xa00ced,isFromAdapter:_0x274d64}){if(!this['hasCommentThread'](_0x47030f))throw new _0x1d8fe5('commentsrepository-missing-comment-thread',null,{'threadId':_0x47030f});const _0x568333=this['getCommentThread'](_0x47030f);if(_0x568333['isResolved'])throw new _0x1d8fe5('commentsrepository-resolved-comment-thread',null,{'threadId':_0x47030f});const _0x4c0970=this['context']['plugins']['get'](it);if(_0x568333['resolvedBy']=_0x4c0970['getUser'](_0xa00ced),_0x568333['resolvedAt']=_0x18e798,_0x274d64||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x4ef0e3=this['context']['plugins']['get']('PendingActions'),_0x417214=_0x4ef0e3['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x302257,'threadId':_0x47030f})['then'](({resolvedAt:_0x43bbf7,resolvedBy:_0x571834})=>{_0x4ef0e3['remove'](_0x417214),_0x568333['resolvedBy']['id']!==_0x571834&&(_0x568333['resolvedBy']=_0x4c0970['getUser'](_0x571834)),_0x568333['resolvedAt']=_0x43bbf7;})['catch'](_0x49a7a0=>{throw console['error'](_0x49a7a0),new _0x1d8fe5('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x14d80c,channelId:_0x3cd6f9,isFromAdapter:_0x413d11}){if(!this['hasCommentThread'](_0x14d80c))throw new _0x1d8fe5('commentsrepository-missing-comment-thread',null,{'threadId':_0x14d80c});const _0x5a3d48=this['getCommentThread'](_0x14d80c);if(!_0x5a3d48['isResolved'])throw new _0x1d8fe5('commentsrepository-reopen-comment-thread',null,{'threadId':_0x14d80c});if(_0x5a3d48['resolvedBy']=null,_0x5a3d48['resolvedAt']=null,_0x413d11||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x5a1249=this['context']['plugins']['get']('PendingActions'),_0x543058=_0x5a1249['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x3cd6f9,'threadId':_0x14d80c})['then'](()=>_0x5a1249['remove'](_0x543058))['catch'](_0x3e907e=>{throw console['error'](_0x3e907e),new _0x1d8fe5('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x33467f,isFromAdapter:_0x7ed05f}){const _0x3dd6f7=this['getCommentThread'](_0x33467f);if(!_0x3dd6f7)throw new _0x1d8fe5('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x33467f),this['_threads']['delete'](_0x33467f),!_0x3dd6f7['isSubmitted']||_0x7ed05f||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x20f58a=this['context']['plugins']['get']('PendingActions'),{channelId:_0xf58fe6}=_0x3dd6f7,_0x286aea=_0x20f58a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0xf58fe6,'threadId':_0x33467f})['then'](()=>_0x20f58a['remove'](_0x286aea))['catch'](_0x47787e=>{throw console['error'](_0x47787e),new _0x1d8fe5('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x3e1dce,unlinkedAt:_0x328de5,context:_0x23f1a3,attributes:_0xfc54b7,isFromAdapter:_0x442a1f}){if('string'!=typeof _0x3e1dce)throw new _0x1d8fe5('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3e1dce});if(!this['hasCommentThread'](_0x3e1dce))throw new _0x1d8fe5('commentsrepository-missing-comment-thread',null,{'threadId':_0x3e1dce});const _0x2f0206=this['getCommentThread'](_0x3e1dce);let _0x5e6ae4=!0x1;if(void 0x0!==_0x23f1a3&&_0x2f0206['context']!==_0x23f1a3&&(_0x2f0206['context']=_0x23f1a3,_0x5e6ae4=!0x0),void 0x0!==_0x328de5&&_0x2f0206['unlinkedAt']!==_0x328de5&&(_0x2f0206['unlinkedAt']=_0x328de5,_0x5e6ae4=!0x0),_0xfc54b7&&!wt(_0xfc54b7,_0x2f0206['attributes'])&&(_0x2f0206['attributes']=_0xfc54b7,_0x5e6ae4=!0x0),!_0x5e6ae4)return Promise['resolve']();if(!_0x2f0206['isSubmitted']||_0x442a1f||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x58b64a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x249f5e}=_0x2f0206,_0x1c1203=_0x58b64a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x249f5e,'threadId':_0x3e1dce,'context':_0x23f1a3,'unlinkedAt':_0x328de5,'attributes':_0xfc54b7})['then'](()=>_0x58b64a['remove'](_0x1c1203))['catch'](_0x272ad5=>{throw console['error'](_0x272ad5),new _0x1d8fe5('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0xa092d0){const _0xc2697c=this['context']['plugins']['get'](N),_0x407388=this['getCommentThread'](_0xa092d0);if(_0x407388['_isAttached']=!0x1,this['_threadToController']['has'](_0x407388)){const _0x16e34b=this['_threadToController']['get'](_0x407388),_0x3cf31a=_0x16e34b['view'],_0x32d96e=_0xc2697c['getByInnerView'](_0x3cf31a);this['_threadToController']['delete'](_0x407388),this['_viewToController']['delete'](_0x3cf31a),_0x32d96e&&_0xc2697c['remove'](_0x32d96e),_0x16e34b['destroy'](),_0x3cf31a['destroy']()['then'](()=>{this['_unbindEditors'](_0x3cf31a);});}}['_updateActiveAnnotation']({threadId:_0x5b3941,resolvedAt:_0x2672d8}){const _0x29af13=!!_0x2672d8,_0x4bba24=this['context']['plugins']['get'](N),_0x11f72f=this['getCommentThread'](_0x5b3941);if(this['_threadToController']['has'](_0x11f72f)){const _0x36f77e=this['_threadToController']['get'](_0x11f72f)['view'],_0x33561d=_0x4bba24['getByInnerView'](_0x36f77e);_0x33561d&&(_0x29af13&&_0x4bba24['_removeActiveAnnotation'](_0x33561d),_0x33561d['refreshVisibility']());}}['_getExternalAuthor'](_0xc49223){const _0x1fe4d4=this['context']['plugins']['get'](it),_0x2ca58c=pt('external:'+_0xc49223),_0x25de51=_0x1fe4d4['getUser'](_0x2ca58c);return _0x25de51||_0x1fe4d4['addUser']({'id':_0x2ca58c,'name':_0xc49223});}['_createNewComment']({threadId:_0x1193c1,commentId:_0x465f2b=_0x461a8b(),content:_0x3f4039,authorId:_0x4224f0,createdAt:_0x5d70ab,attributes:_0x4a45d4}){if('string'!=typeof _0x465f2b)throw new _0x1d8fe5('commentsrepository-invalid-commentid');if('string'!=typeof _0x4224f0)throw new _0x1d8fe5('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x3f4039||!_0x3f4039['trim']())throw new _0x1d8fe5('commentsrepository-invalid-comment-content');const _0x4debb8=this['context']['plugins']['get'](it)['getUser'](_0x4224f0);if(!_0x4debb8)throw new _0x1d8fe5('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x4224f0});let _0x1d1bff=null,_0x2caed6=_0x5d70ab;return _0x4a45d4&&_0x4a45d4['@external']&&(_0x1d1bff=this['_getExternalAuthor'](_0x4a45d4['@external']['authorName']),_0x2caed6=new Date(_0x4a45d4['@external']['createdAt'])),new re(this,{'threadId':_0x1193c1,'id':_0x465f2b,'author':_0x1d1bff||_0x4debb8,'creator':_0x4debb8,'content':_0x3f4039,'createdAt':_0x5d70ab,'authoredAt':_0x2caed6,'attributes':_0x4a45d4});}['_addComment'](_0x3cd216){let {threadId:_0x5455b9,content:_0x115a2f,attributes:_0x124db1,isFromAdapter:_0x2df177}=_0x3cd216;const _0x9bbfd8=this['getCommentThread'](_0x3cd216['threadId']);if(!_0x9bbfd8)throw new _0x1d8fe5('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x4195a5=this['_createNewComment'](_0x3cd216),{id:_0x20d270}=_0x4195a5;if(_0x9bbfd8['_add'](_0x4195a5),_0x2df177||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x9bbfd8['isSubmitted'])return Promise['resolve']();const _0x3cfe72=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1cb193}=_0x9bbfd8,_0x5433f2=_0x3cfe72['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x124db1||(_0x124db1={}),this['adapter']['addComment']({'channelId':_0x1cb193,'threadId':_0x5455b9,'commentId':_0x20d270,'content':_0x115a2f,'attributes':_0x124db1})['then'](_0x5bfc45=>{_0x3cfe72['remove'](_0x5433f2),_0x5bfc45&&this['_updateComment']({'channelId':_0x1cb193,'threadId':_0x5455b9,'commentId':_0x20d270,'createdAt':_0x5bfc45['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x312383=>{throw console['error'](_0x312383),new _0x1d8fe5('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x40030d,commentId:_0xa4cb68,content:_0x37401c,createdAt:_0x267f8d,attributes:_0x2c15f0,isFromAdapter:_0x18706c}){if(void 0x0!==_0x37401c&&('string'!=typeof _0x37401c||!_0x37401c['trim']()['length']))throw new _0x1d8fe5('commentsrepository-update-comment-invalid-content');const _0x53f2a9=this['getCommentThread'](_0x40030d),_0x22dc9f=_0x53f2a9['getComment'](_0xa4cb68);if(!_0x22dc9f)throw new _0x1d8fe5('commentsrepository-update-missing-comment',this);let _0x48e530=!0x1;if(_0x37401c&&_0x37401c!==_0x22dc9f['content']&&(_0x22dc9f['isEditable']||_0x18706c)&&(_0x22dc9f['content']=_0x37401c,_0x48e530=!0x0),_0x267f8d&&_0x267f8d!==_0x22dc9f['createdAt']&&(_0x22dc9f['createdAt']=_0x267f8d,_0x22dc9f['attributes']&&_0x22dc9f['attributes']['@external']||(_0x22dc9f['authoredAt']=_0x267f8d),_0x48e530=!0x0),_0x2c15f0&&!wt(_0x2c15f0,_0x22dc9f['attributes'])&&(_0x22dc9f['attributes']=_0x2c15f0,_0x48e530=!0x0),!_0x48e530)return Promise['resolve']();if(_0x53f2a9['fire']('commentUpdated'),_0x18706c||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0xcf6f96=this['context']['plugins']['get']('PendingActions'),{channelId:_0x7b83f4}=this['getCommentThread'](_0x22dc9f['threadId']),_0x4b1de8=_0xcf6f96['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x7b83f4,'threadId':_0x40030d,'commentId':_0xa4cb68,'content':_0x37401c,'attributes':_0x2c15f0})['then'](()=>_0xcf6f96['remove'](_0x4b1de8))['catch'](_0x36a0e2=>{throw console['error'](_0x36a0e2),new _0x1d8fe5('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x597c0e,commentId:_0x35ef32,isFromAdapter:_0xb68e98}){const _0x2fa98f=this['getCommentThread'](_0x597c0e),_0x477257=_0x2fa98f['getComment'](_0x35ef32);if(!_0x477257)throw new _0x1d8fe5('commentsrepository-remove-missing-comment',this);if(_0x2fa98f['_remove'](_0x477257),_0xb68e98||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x390a48=this['context']['plugins']['get']('PendingActions'),{channelId:_0x223858}=_0x2fa98f,_0x284be4=_0x390a48['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x223858,'threadId':_0x597c0e,'commentId':_0x35ef32})['then'](()=>_0x390a48['remove'](_0x284be4))['catch'](_0x1a7514=>{throw console['error'](_0x1a7514),new _0x1d8fe5('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
+ _0x2bd7ef(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x461e73,_0x505c34){super();const _0x32f5ea=_0x505c34['isResolvable'];this['channelId']=_0x505c34['channelId'],this['id']=_0x505c34['id'],this['comments']=new _0xc841e1(),this['_repository']=_0x461e73,this['_isAttached']=!0x1,this['_isSubmitted']=_0x505c34['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x461e73,'_permissions',_0x461e73,'_readOnlyChannels',()=>_0x461e73['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x461e73,'_permissions',()=>_0x461e73['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x461e73,'_permissions',()=>{const _0x4c2c20=_0x461e73['getPermissions'](this['channelId']);return _0x4c2c20['write']||_0x4c2c20['admin'];}),this['bind']('isResolvable')['to'](_0x461e73,'_permissions',()=>_0x32f5ea&&_0x461e73['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x505c34['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x38dfa,_0x348ad8)=>_0x38dfa?_0x348ad8?_0x38dfa<_0x348ad8?_0x38dfa:_0x348ad8:_0x38dfa:_0x348ad8),this['set']('unlinkedAt',_0x505c34['unlinkedAt']||null),this['set']('resolvedAt',_0x505c34['resolvedAt']||null),this['set']('resolvedBy',_0x505c34['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x419283=>!!_0x419283),this['set']('attributes',_0x505c34['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x594e81,_0x32f0ad)=>_0x594e81+_0x32f0ad['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x552a11,id:_0x56dd83}=this;this['_repository']['fire'](bt('submitCommentThread',_0x552a11),{'channelId':_0x552a11,'threadId':_0x56dd83});}['setUnlinkedAt'](_0x11d809){this['_update']({'unlinkedAt':_0x11d809});}['resolve']({resolvedAt:_0xfd0c95=new Date(),resolvedBy:_0x5d3113=null,isFromAdapter:_0x296fb1=!0x1}={}){const _0x486433=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0xf2f339,id:_0x14090e}=this;this['_repository']['fire'](bt('resolveCommentThread',_0xf2f339),{'channelId':_0xf2f339,'threadId':_0x14090e,'resolvedAt':_0xfd0c95,'resolvedBy':_0x5d3113||_0x486433['id'],'isFromAdapter':_0x296fb1});}['reopen']({isFromAdapter:_0x5a4d63=!0x1}={}){const {channelId:_0x20e7a6,id:_0x4bc921}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x20e7a6),{'channelId':_0x20e7a6,'threadId':_0x4bc921,'isFromAdapter':_0x5a4d63});}['setContext'](_0x2db057){this['context']||this['_update']({'context':_0x2db057});}['setAttribute'](_0x2c3ff1,_0x33348e){const _0xe265c2=It(this['attributes']);At(_0xe265c2,_0x2c3ff1,_0x33348e),this['_update']({'attributes':_0xe265c2});}['removeAttribute'](_0x1567b9){const _0x1fc326=It(this['attributes']);yt(_0x1fc326,_0x1567b9),this['_update']({'attributes':_0x1fc326});}['remove']({isFromAdapter:_0x48df53=!0x1}={}){const {channelId:_0x1620e5,id:_0x428697}=this;this['_repository']['fire'](bt('removeCommentThread',_0x1620e5),{'channelId':_0x1620e5,'threadId':_0x428697,'isFromAdapter':_0x48df53});}['attachTo'](_0x477a76){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x477a76});}['addComment'](_0x518731){const {channelId:_0x217afa,id:_0x286e76}=this;this['_repository']['fire'](bt('addComment',_0x217afa,_0x286e76),Object['assign']({'channelId':_0x217afa,'threadId':_0x286e76},_0x518731));}['getComment'](_0xf88dc3){if('string'!=typeof _0xf88dc3)throw new _0x1d8fe5('commentsrepository-get-comment-invalid-id',null,{'commentId':_0xf88dc3});return this['comments']['get'](_0xf88dc3);}['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'](_0x7182f7=>_0x7182f7['toJSON']()),'attributes':this['attributes']};}['_add'](_0x2d4407){return this['listenTo'](_0x2d4407,'change:authoredAt',()=>{const _0x1e5c92=this['_findOptimalIndex'](_0x2d4407),_0x268688=this['comments'];_0x1e5c92-0x1!=_0x268688['getIndex'](_0x2d4407)&&_0x1e5c92+0x1!=_0x268688['getIndex'](_0x2d4407)&&(this['_remove'](_0x2d4407),this['_add'](_0x2d4407));}),this['comments']['add'](_0x2d4407,this['_findOptimalIndex'](_0x2d4407));}['_update'](_0x2dcb05){const {channelId:_0x1c9e04,id:_0x57db05}=this;this['_repository']['fire'](bt('updateCommentThread',_0x1c9e04),{..._0x2dcb05,'channelId':_0x1c9e04,'threadId':_0x57db05});}['_remove'](_0x1d88a6){return this['stopListening'](_0x1d88a6),_0x1d88a6['destroy'](),this['comments']['remove'](_0x1d88a6);}['_findOptimalIndex'](_0x3eee62){const _0x576726=this['comments']['find'](_0xe4ab4c=>new Date(_0xe4ab4c['authoredAt'])['getTime']()>new Date(_0x3eee62['authoredAt'])['getTime']());return _0x576726?this['comments']['getIndex'](_0x576726):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
+ _0x2bd7ef(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x1f73a9,_0xf59222){super();const _0x1449d9=_0x1f73a9['context']['plugins']['get'](it)['me'],_0x38cb68=_0x1f73a9['getCommentThread'](_0xf59222['threadId']),_0xd21a95=0x0===_0x38cb68['comments']['length'],_0x2a97b3=_0x1449d9===_0xf59222['author'];this['id']=_0xf59222['id'],this['threadId']=_0xf59222['threadId'],this['author']=_0xf59222['author'],this['creator']=_0xf59222['creator'],this['isExternal']=Boolean(_0xf59222['attributes']&&_0xf59222['attributes']['@external']),this['set']('content',_0xf59222['content']),this['createdAt']=_0xf59222['createdAt']||new Date(),this['set']('authoredAt',_0xf59222['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x38cb68,'resolvedAt'),this['set']('attributes',_0xf59222['attributes']||{}),this['bind']('isEditable')['to'](_0x1f73a9,'_permissions',()=>{const _0x39ca4c=_0x1f73a9['getPermissions'](_0x38cb68['channelId'])['write'],_0x3ef205=_0x1f73a9['getPermissions'](_0x38cb68['channelId'])['modifyAll'];return _0x2a97b3&&_0x39ca4c||!_0x2a97b3&&_0x3ef205;}),this['bind']('isRemovable')['to'](_0x38cb68,'isRemovable',_0x1f73a9,'_permissions',_0x2d0be8=>{const _0x1b51bd=_0x1f73a9['getPermissions'](_0x38cb68['channelId'])['write'],_0x1ce78a=_0x1f73a9['getPermissions'](_0x38cb68['channelId'])['modifyAll'];return _0x2a97b3&&_0x1b51bd||_0x2d0be8&&_0xd21a95||!_0x2a97b3&&_0x1ce78a&&!_0xd21a95;}),this['bind']('isReadOnly')['to'](_0x38cb68,'isReadOnly'),this['_repository']=_0x1f73a9;}get['weight'](){return Math['max'](function(_0x55fdad){const _0x27eb9b=document['createElement']('div');return _0x27eb9b['innerHTML']=_0x55fdad,_0x27eb9b['textContent']['length'];}(this['content']),0xc8);}['update'](_0x13a033){const {threadId:_0x48258b,id:_0x260c7f}=this;if(!this['_repository']['hasCommentThread'](_0x48258b))throw new _0x1d8fe5('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0xdd5e16}=this['_repository']['getCommentThread'](_0x48258b);this['_repository']['fire'](bt('updateComment',_0xdd5e16,_0x48258b),{'channelId':_0xdd5e16,'threadId':_0x48258b,'commentId':_0x260c7f,..._0x13a033});}['setAttribute'](_0x1c403d,_0x31709e){const _0x3d0760=It(this['attributes']);At(_0x3d0760,_0x1c403d,_0x31709e),this['update']({'attributes':_0x3d0760});}['removeAttribute'](_0x16cdd6){const _0x4ae294=It(this['attributes']);yt(_0x4ae294,_0x16cdd6),this['update']({'attributes':_0x4ae294});}['remove'](_0x2f21be={}){if(!_0x2f21be['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x129ed2,id:_0x328480}=this;if(!this['_repository']['hasCommentThread'](_0x129ed2))throw new _0x1d8fe5('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x4f1891}=this['_repository']['getCommentThread'](_0x129ed2);this['_repository']['fire'](bt('removeComment',_0x4f1891,_0x129ed2),{'channelId':_0x4f1891,'threadId':_0x129ed2,'commentId':_0x328480,..._0x2f21be});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x21cd57,..._0x43237e){for(const _0x3c59c7 of _0x43237e)void 0x0!==_0x3c59c7&&(_0x21cd57+=':'+String(_0x3c59c7));return _0x21cd57;}class J extends _0x206fea{['refresh'](){const _0x380b12=this['editor']['model']['document']['selection'];for(const _0x3a1bdd of _0x380b12['getRanges']())if(this['_hasContent'](_0x3a1bdd))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x2f80e1=_0x461a8b()}={}){const _0x1ece65=this['editor']['model'],_0x396657=[];for(const _0x21dfa2 of _0x1ece65['document']['selection']['getRanges']())this['_hasContent'](_0x21dfa2)&&_0x396657['push'](this['_trimToContent'](_0x21dfa2));_0x1ece65['change'](_0x5ed826=>{for(const _0x2765b6 of _0x396657){const _0xbc1e0e=_0x461a8b()['substr'](0x1,0x5),_0x37acd4='comment:'+_0x2f80e1+':'+_0xbc1e0e;_0x5ed826['addMarker'](_0x37acd4,{'range':_0x2765b6,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x2a1377){for(const _0x1bd811 of _0x2a1377['getItems']())if(this['_itemIsContent'](_0x1bd811))return!0x0;return!0x1;}['_itemIsContent'](_0x538ec4){return _0x538ec4['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x538ec4)&&!_0x538ec4['is']('element','tableCell');}['_trimToContent'](_0x37b35c){const _0x2328ef=_0x1563ee=>!this['_itemIsContent'](_0x1563ee['item']),_0x20756e=_0x37b35c['start']['getLastMatchingPosition'](_0x2328ef),_0x107069=_0x37b35c['end']['getLastMatchingPosition'](_0x2328ef,{'direction':'backward'});return this['editor']['model']['createRange'](_0x20756e,_0x107069);}}class P extends _0x3dc7ee{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1bffe3){super(_0x1bffe3),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x1dba7f=this['editor'],_0x314dbc=_0x1dba7f['model']['document']['selection'],_0x394040=_0x2238e8(()=>this['refreshSelectedViews'](),0xa);_0x314dbc['on']('change:range',(_0x5c7ee8,_0x26bf24)=>{_0x26bf24['directChange']&&(_0x394040['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x1dba7f['editing']['view']['document'],'change:isFocused',(_0x2974a8,_0x3151ad,_0xe6c295)=>{_0xe6c295&&_0x394040();}),this['listenTo'](_0x1dba7f['ui']['focusTracker'],'change:isFocused',(_0x4a1b9b,_0x1f5dae,_0x50f0ed)=>{_0x50f0ed||_0x1dba7f['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x56ae90=>this['_editorAnnotationsData']['has'](_0x56ae90['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x21c499){if(this['_editorAnnotations']['has'](_0x21c499['view']))return;this['_editorAnnotations']['add'](_0x21c499['view']),this['editor']['ui']['focusTracker']['add'](_0x21c499['view']['element']);const _0x26bb17=this['editor']['plugins']['get'](N);this['listenTo'](_0x26bb17['collection'],'remove',(_0x1a9422,_0x54b29e)=>{this['editor']['ui']['focusTracker']['remove'](_0x54b29e['view']['element']),this['_editorAnnotations']['delete'](_0x54b29e['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x4f5bb7){if('function'!=typeof _0x4f5bb7)throw new _0x1d8fe5('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x4f5bb7);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x3454f1,annotations:_0x7622e9}){const _0x3e47e3=[],_0x1d4038=this['editor']['model']['document']['selection'],_0x1f9862=Array['from'](_0x1d4038['getRanges']());for(const [_0x1efb34,_0x7af47c]of this['_editorAnnotationsData']){const _0x2c2b73=_0x3e325a(_0x7af47c),_0x580264=_0x7622e9['getByInnerView'](_0x1efb34);_0x2c2b73&&_0x580264&&_0x3e47e3['push']({'annotation':_0x580264,'range':_0x2c2b73});}function _0x3e325a(_0x222f25){for(const _0x50af1a of _0x222f25)for(const _0x611aec of _0x1f9862)if(_0x50af1a['containsRange'](_0x611aec,!_0x1d4038['isCollapsed']))return _0x50af1a;return null;}return _0x3e47e3['sort']((_0xe161bb,_0x2872dc)=>{const _0x53e3d0=_0xe161bb['range'],_0x211726=_0x2872dc['range'];if(!_0x53e3d0['isEqual'](_0x211726)){if(_0x53e3d0['containsRange'](_0x211726,!0x0))return 0x1;if(_0x211726['containsRange'](_0x53e3d0,!0x0))return-0x1;}return _0xe161bb['annotation']==_0x3454f1?-0x1:_0x2872dc['annotation']==_0x3454f1?0x1:0x0;})['map'](_0x2b15a9=>_0x2b15a9['annotation']);}get['_editorAnnotationsData'](){const _0x5d7297=new Map();for(const _0x668bfa of Array['from'](this['_dataCollectors']))for(const [_0x220014,_0x4a41c1]of _0x668bfa())_0x5d7297['set'](_0x220014,_0x4a41c1);return _0x5d7297;}}class st extends _0x3dc7ee{['afterInit'](){const _0x6c18f1=this['editor'];if(!_0x6c18f1['plugins']['has']('RestrictedEditingModeEditing'))return;_0x6c18f1['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3dc7ee{constructor(_0x4393c2){super(_0x4393c2),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x9c3eb3=this['editor'],_0x1e8199=_0x9c3eb3['commands']['get']('importWord'),_0x138552=_0x9c3eb3['plugins']['get'](it);_0x1e8199&&(_0x1e8199['on']('execute',(_0x10c3da,[,_0x460734])=>{_0x460734['collaboration_features']={'comments':!0x0,'user_id':_0x138552['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x1e8199,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x7a93e3,_0x43bdb1){const {comment_threads:_0xab821f}=_0x43bdb1;_0xab821f&&_0xab821f['forEach'](({thread_id:_0xf43f53,comments:_0x232c4a,is_resolved:_0x5e1bcc})=>{const _0x34b4bc=new Date(),_0x4011dd=_0x232c4a['map'](({author:_0x5d3f2c,content:_0x393e8f,created_at:_0x561144})=>({'content':_0x393e8f,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x34b4bc,'attributes':{'@external':{'authorName':_0x5d3f2c,'createdAt':_0x561144?new Date(_0x561144):new Date(),'source':'importWord'}}})),_0x385cef=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x385cef,'threadId':_0xf43f53,'comments':_0x4011dd,'resolvedAt':_0x5e1bcc?_0x34b4bc:null});});}}class at extends _0x3dc7ee{constructor(_0x49da98){super(_0x49da98),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x577bdf=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x577bdf,'contentInsertion',(_0x11ef76,_0x2208c3)=>this['_removeMarkersWithoutThreads'](_0x2208c3['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4aba63){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4aba63;const _0xd942a6=this['editor']['plugins']['get']('CommentsRepository');for(const _0x51766d of _0x4aba63['keys']()){const [_0x1411b8,_0x139e13]=_0x51766d['split'](':');'comment'!=_0x1411b8||_0xd942a6['hasCommentThread'](_0x139e13)||_0x4aba63['delete'](_0x51766d);}return _0x4aba63;}['_registerMarkerInClipboardPipeline'](){const _0xb4e3ff=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x14f8a4=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x14f8a4&&_0xb4e3ff['_registerMarkerToCopy']('comment',_0x14f8a4);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x39c74c){switch(_0x39c74c){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 _0x3dc7ee{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x36d9b9,_0xbbcb03)=>{if(!_0xbbcb03['options']['showCommentHighlights'])return null;if(_0xbbcb03['options']['ignoreResolvedComments']){const {id:_0x408cbe}=er(_0x36d9b9['markerName']),_0x44dea8=this['editor']['plugins']['get'](o)['getCommentThread'](_0x408cbe);if(_0x44dea8&&_0x44dea8['isResolved']&&_0x36d9b9['item'])return _0xbbcb03['consumable']['consume'](_0x36d9b9['item'],'addMarker:'+_0x36d9b9['markerName']),_0xbbcb03['consumable']['consume'](_0x36d9b9['item'],'removeMarker:'+_0x36d9b9['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x214fce=>{_0x214fce['on']('addMarker:comment',(_0x2b9dc4,_0x40f08b,_0x66bae6)=>{if(!_0x66bae6['options']['showCommentHighlights'])return;const _0x44611e=_0x40f08b['item'];if(!_0x44611e)return;const _0x5dd7b0=_0x66bae6['mapper']['toViewElement'](_0x44611e);this['editor']['model']['schema']['isObject'](_0x44611e)&&_0x5dd7b0&&!_0x5dd7b0['getCustomProperty']('widget')&&_0x5dd7b0['is']('containerElement')&&_0x51169c(_0x5dd7b0,_0x66bae6['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x40f3df,{writer:_0x44a5d7,options:_0x2d244e})=>{if(!_0x2d244e['showCommentHighlights'])return null;const _0x314c5c=_0x44a5d7['createContainerElement']('div'),_0xb63fec=_0x44a5d7['createEmptyElement']('hr');return _0x44a5d7['addClass']('ck-horizontal-line',_0x314c5c),_0x44a5d7['insert'](_0x44a5d7['createPositionAt'](_0x314c5c,0x0),_0xb63fec),_0x314c5c;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x4f24b0,{writer:_0x5cb444,options:_0x24ad45})=>{if(!_0x24ad45['showCommentHighlights'])return null;const _0x103279=_0x5cb444['createContainerElement']('span'),_0x3b6afe=_0x5cb444['createEmptyElement']('img');return _0x5cb444['addClass']('image-inline',_0x103279),_0x5cb444['insert'](_0x5cb444['createPositionAt'](_0x103279,0x0),_0x3b6afe),_0x103279;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x233695,{writer:_0xc7b992,options:_0x1d6066})=>{if(_0x1d6066['showCommentHighlights'])return _0xc7b992['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5b5fdb,_0x107163,_0x59274b)=>{_0x59274b['options']['showCommentHighlights']&&_0x5b5fdb['stop']();},{'priority':'high'});}}class r extends _0x3dc7ee{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(_0x1f5e53){super(_0x1f5e53),this['set']('isThreadsLoadingPaused',!0x0),_0x1f5e53['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x35cd37,_0x26bfc7,_0x1256cd,_0x3cd6f0)=>{const _0x3b411e=_0x1f5e53['plugins']['get'](o),_0x7c95eb=_0x1256cd?er(_0x1256cd)['id']:null;_0x1f5e53['model']['change'](()=>{if(_0x7c95eb){const _0x452d2e=this['getAllMarkersForId'](_0x7c95eb);for(const _0x2842f9 of _0x452d2e)_0x1f5e53['editing']['reconvertMarker'](_0x2842f9);}if(_0x3cd6f0){const {id:_0x43e56d}=er(_0x3cd6f0),_0x4f9944=_0x3b411e['getCommentThread'](_0x43e56d);if(_0x4f9944&&!_0x4f9944['isAttached'])return;const _0x54b42b=this['getAllMarkersForId'](_0x43e56d);for(const _0x4eeaf0 of _0x54b42b)_0x1f5e53['editing']['reconvertMarker'](_0x4eeaf0);}}),_0x7c95eb&&this['scrollToThreadMarker'](_0x7c95eb);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xb3871a=this['editor'],_0x30d156=_0xb3871a['plugins']['get'](o),_0x1e76a2=_0xb3871a['config']['get']('collaboration.channelId'),_0x4421c4=_0x30d156['getCommentThreads']()['filter'](_0x14e098=>_0x14e098['channelId']!==_0x1e76a2);_0xb3871a['commands']['add']('addCommentThread',new J(_0xb3871a)),this['listenTo'](_0xb3871a,'change:isReadOnly',(_0x16f89a,_0x144571,_0x184eee)=>{_0x30d156['switchReadOnly'](_0x184eee,_0xb3871a['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x30d156,ft('addCommentThread',_0x1e76a2),(_0x16734c,{threadId:_0x83aebc})=>{const _0xf82a48=this['editor']['plugins']['get'](o)['getCommentThread'](_0x83aebc);_0xf82a48&&_0xf82a48['unlinkedAt']&&this['_attachArchivedThread'](_0x83aebc);}),this['listenTo'](_0x30d156,ft('removeCommentThread',_0x1e76a2),(_0x67d66d,{threadId:_0x4a69f5})=>{_0xb3871a['model']['enqueueChange']({'isUndoable':!0x1},_0x4da2e6=>{const _0x3dd320=this['getAllMarkersForId'](_0x4a69f5);for(const _0x5c9f26 of _0x3dd320)_0x4da2e6['removeMarker'](_0x5c9f26);});}),this['listenTo'](_0x30d156,ft('resolveCommentThread',_0x1e76a2),(_0x303485,{threadId:_0x26a8f8})=>{(this['_reconvertMarkers'](_0x26a8f8),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x26a8f8)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x30d156,ft('reopenCommentThread',_0x1e76a2),(_0x1b0cb3,{threadId:_0x27c206})=>{this['_reconvertMarkers'](_0x27c206);},{'priority':'low'}),this['listenTo'](_0x30d156,ft('addComment',_0x1e76a2),(_0x27dd88,{threadId:_0x2e40a9,isFromAdapter:_0x5429bd})=>{const _0x12cffb=this['getAllMarkersForId'](_0x2e40a9);if(_0x5429bd||0x0==_0x12cffb['length']||!_0x30d156['hasCommentThread'](_0x2e40a9))return;0x1===_0x30d156['getCommentThread'](_0x2e40a9)['length']&&_0xb3871a['model']['enqueueChange']({'isUndoable':!0x1},_0x26706c=>{for(const _0x452943 of _0x12cffb)_0x26706c['updateMarker'](_0x452943,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x4421c4);}['afterInit'](){!async function(_0x566d4){const _0x16aa70=_0x3d3f68([0x37,0x48,0x6d,0x46,0x49,0x7a,0x34,0x67,0x79,0x59,0x41,0x4f,0x6a,0x54,0x51,0x42,0x6c,0x4c,0x6b,0x52,0x56,0x32,0x36,0x61,0x6e,0x6f,0x47,0x39,0x64,0x66,0x72,0x74,0x43,0x75,0x31,0x50,0x68,0x38,0x63,0x53,0x33,0x77,0x65,0x5a,0x4e,0x62,0x4d,0x71,0x45,0x70,0x69,0x57,0x35,0x78,0x4a,0x76,0x73,0x55,0x4b,0x44,0x30,0x58]),_0x18269b=0x26be0091,_0x53c8bd=0x26b95e79^_0x18269b,_0x2c714a=window[_0x3d3f68([0x44,0x61,0x74,0x65])][_0x3d3f68([0x6e,0x6f,0x77])](),_0x40c9b3=_0x566d4[_0x3d3f68([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a3af8=new window[(_0x3d3f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bc63a=>{_0x40c9b3[_0x3d3f68([0x6f,0x6e,0x63,0x65])](_0x3d3f68([0x72,0x65,0x61,0x64,0x79]),_0x4bc63a);}),_0x181960={[_0x3d3f68([0x6b,0x74,0x79])]:_0x3d3f68([0x45,0x43]),[_0x3d3f68([0x75,0x73,0x65])]:_0x3d3f68([0x73,0x69,0x67]),[_0x3d3f68([0x63,0x72,0x76])]:_0x3d3f68([0x50,0x2d,0x32,0x35,0x36]),[_0x3d3f68([0x78])]:_0x3d3f68([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]),[_0x3d3f68([0x79])]:_0x3d3f68([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]),[_0x3d3f68([0x61,0x6c,0x67])]:_0x3d3f68([0x45,0x53,0x32,0x35,0x36])},_0xb8964d=_0x40c9b3[_0x3d3f68([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d3f68([0x67,0x65,0x74])](_0x3d3f68([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a123a(){let _0x47a30c,_0xa34fb9=null,_0x497a86=null;try{if(_0xb8964d==_0x3d3f68([0x47,0x50,0x4c]))return _0x3d3f68([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47a30c=_0xc50244(),!_0x47a30c)return _0x3d3f68([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47a30c[_0x3d3f68([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x497a86=_0x358b29(_0x47a30c[_0x3d3f68([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47a30c[_0x3d3f68([0x6a,0x74,0x69])])),await _0xbddf35()?_0x2517db()?_0x200444()?_0x3d3f68([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1a9cfe()?(_0x47a30c[_0x3d3f68([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d3f68([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa34fb9=_0x17eedd(_0x3d3f68([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47a30c[_0x3d3f68([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d3f68([0x74,0x72,0x69,0x61,0x6c])&&(_0xa34fb9=_0x17eedd(_0x3d3f68([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1439db()):_0x3d3f68([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d3f68([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d3f68([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3513c1){return _0x3d3f68([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x200444(){const _0xb9a64=[_0x3d3f68([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d3f68([0x74,0x72,0x69,0x61,0x6c])][_0x3d3f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47a30c[_0x3d3f68([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c714a/0x3e8:0xe10*_0x53c8bd;return _0x47a30c[_0x3d3f68([0x65,0x78,0x70])]<_0xb9a64;}function _0x2517db(){const _0x357e73=_0x47a30c[_0x3d3f68([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x357e73)return!0x1;if(_0x357e73[_0x3d3f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3f68([0x2a])))return!0x0;if(_0x357e73[_0x3d3f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3f68([0x43,0x4d,0x54])))return!0x0;if(_0x357e73[_0x3d3f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3f68([0x52,0x43,0x4d,0x54]))){if(_0x3df20a())return!0x0;if(_0x1479b9()||_0x135a8f())return!0x0;}return!0x1;}function _0x1a9cfe(){const _0xc2dc=_0x47a30c[_0x3d3f68([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc2dc||0x0==_0xc2dc[_0x3d3f68([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5895ce}=new URL(window[_0x3d3f68([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xc2dc[_0x3d3f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5895ce))return!0x0;const _0x9e6764=_0x5895ce[_0x3d3f68([0x73,0x70,0x6c,0x69,0x74])](_0x3d3f68([0x2e]));return _0xc2dc[_0x3d3f68([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34ee9f=>_0x34ee9f[_0x3d3f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3f68([0x2a])))[_0x3d3f68([0x6d,0x61,0x70])](_0x4247c7=>_0x4247c7[_0x3d3f68([0x73,0x70,0x6c,0x69,0x74])](_0x3d3f68([0x2e])))[_0x3d3f68([0x73,0x6f,0x6d,0x65])](_0x275cfb=>_0x9e6764[_0x3d3f68([0x65,0x76,0x65,0x72,0x79])]((_0x3d293a,_0x390b6e)=>_0x275cfb[_0x390b6e]===_0x3d293a||_0x275cfb[_0x390b6e]===_0x3d3f68([0x2a])));}function _0x1439db(){return _0xa34fb9&&_0x497a86?new window[(_0x3d3f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ba275,_0x5227fa)=>{_0xa34fb9[_0x3d3f68([0x74,0x68,0x65,0x6e])](_0x1ba275,_0x5227fa),_0x497a86[_0x3d3f68([0x74,0x68,0x65,0x6e])](_0x1ed698=>{_0x1ed698!=_0x3d3f68([0x56,0x61,0x6c,0x69,0x64])&&_0x1ba275(_0x1ed698);},_0x5227fa);}):_0xa34fb9||_0x497a86||_0x3d3f68([0x56,0x61,0x6c,0x69,0x64]);}}function _0x358b29(_0x3c97f0,_0x5610c5){return new window[(_0x3d3f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bf166=>{if(_0x210757())return _0x1bf166(_0x3d3f68([0x56,0x61,0x6c,0x69,0x64]));_0x245b1f(),_0x40c9b3[_0x3d3f68([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d3f68([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x407b3e=!0x1;const _0x17ce6f=_0x461a8b();function _0x411ce0(_0xc81831){return!!_0xc81831&&(typeof _0xc81831===_0x3d3f68([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xc81831===_0x3d3f68([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xc81831[_0x3d3f68([0x74,0x68,0x65,0x6e])]===_0x3d3f68([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xc81831[_0x3d3f68([0x63,0x61,0x74,0x63,0x68])]===_0x3d3f68([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39cdb8(_0x4348de){_0x41ea33(_0x4348de)[_0x3d3f68([0x74,0x68,0x65,0x6e])](_0x44776b=>{if(!_0x44776b||_0x44776b[_0x3d3f68([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d3f68([0x6f,0x6b]))return _0x3d3f68([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x58c17e(_0x59e9df(_0x17ce6f+_0x5610c5))!=_0x44776b[_0x3d3f68([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d3f68([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d3f68([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d3f68([0x74,0x68,0x65,0x6e])](_0xa8482a=>(_0x1c1baa(),_0xa8482a),()=>{const _0x371c12=_0x32ff1d();return null==_0x371c12?(_0x1c1baa(),_0x3d3f68([0x56,0x61,0x6c,0x69,0x64])):_0x3d3f68(_0x2c714a-_0x371c12>(0x2b28491^_0x18269b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d3f68([0x74,0x68,0x65,0x6e])](_0x1bf166)[_0x3d3f68([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1bf166(_0x3d3f68([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a563f=0x2688ee11^_0x18269b;function _0x1c1baa(){const _0x31f7b7=_0x3d3f68([0x6c,0x6c,0x63,0x74,0x2d])+_0x58c17e(_0x59e9df(_0x3c97f0)),_0x12bf9d=_0x67b0b2(_0x58c17e(window[_0x3d3f68([0x4d,0x61,0x74,0x68])][_0x3d3f68([0x63,0x65,0x69,0x6c])](_0x2c714a/_0x1a563f)));window[_0x3d3f68([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d3f68([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31f7b7,_0x12bf9d);}function _0x32ff1d(){const _0x185aba=_0x3d3f68([0x6c,0x6c,0x63,0x74,0x2d])+_0x58c17e(_0x59e9df(_0x3c97f0)),_0xe94591=window[_0x3d3f68([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d3f68([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x185aba);return _0xe94591?window[_0x3d3f68([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x67b0b2(_0xe94591),0x10)*_0x1a563f:null;}function _0x41ea33(_0x2ff289){return new window[(_0x3d3f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27c392,_0x5d1a42)=>{_0x2ff289[_0x3d3f68([0x74,0x68,0x65,0x6e])](_0x27c392,_0x5d1a42),window[_0x3d3f68([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d1a42,0x26bfd451^_0x18269b);});}}_0x40c9b3[_0x3d3f68([0x6f,0x6e])](_0x3d3f68([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c8eb8,_0x44c58b)=>{if(_0x44c58b[0x0]!=_0x3c97f0)return _0x1bf166(_0x3d3f68([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44c58b[0x1]={..._0x44c58b[0x1],[_0x3d3f68([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17ce6f};},{[_0x3d3f68([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d3f68([0x68,0x69,0x67,0x68])}),_0x40c9b3[_0x3d3f68([0x6f,0x6e])](_0x3d3f68([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4248=>{_0x411ce0(_0x4248[_0x3d3f68([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x407b3e=!0x0,_0x39cdb8(_0x4248[_0x3d3f68([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d3f68([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d3f68([0x6c,0x6f,0x77])}),_0x2a3af8[_0x3d3f68([0x74,0x68,0x65,0x6e])](()=>{_0x407b3e||_0x1bf166(_0x3d3f68([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x210757(){return _0x40c9b3[_0x3d3f68([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d3f68([0x76,0x69,0x65,0x77])][_0x3d3f68([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d3f68([0x61,0x75,0x74,0x6f]);}function _0x245b1f(){_0x40c9b3[_0x3d3f68([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d3f68([0x76,0x69,0x65,0x77])][_0x3d3f68([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d3f68([0x61,0x75,0x74,0x6f]);}}function _0x17eedd(_0x1ea3b7){const _0x326675=[new window[(_0x3d3f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13089d=>setTimeout(_0x13089d,0x26b73e5d^_0x18269b)),_0x2a3af8[_0x3d3f68([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d3f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54894e=>{let _0x53ef49=0x0;_0x40c9b3[_0x3d3f68([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3f68([0x6f,0x6e])](_0x3d3f68([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51fc52,_0x42bb4)=>{_0x42bb4[0x0][_0x3d3f68([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x53ef49++,_0x53ef49==(0x26be0169^_0x18269b)&&(_0x54894e(),_0x51fc52[_0x3d3f68([0x6f,0x66,0x66])]());});}))];return window[_0x3d3f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d3f68([0x72,0x61,0x63,0x65])](_0x326675)[_0x3d3f68([0x74,0x68,0x65,0x6e])](()=>_0x1ea3b7);}async function _0x5358a6(){await _0x2a3af8,_0x40c9b3[_0x3d3f68([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3f68([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58e036,_0x40c9b3[_0x3d3f68([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3f68([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58e036,_0x40c9b3[_0x3d3f68([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d3f68([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3df20a(){return _0x3173f2(_0x3d3f68([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x487935(_0x3d3f68([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3d3f68([0x73,0x74,0x61,0x74,0x65])]==_0x3d3f68([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1479b9(){return _0x3173f2(_0x3d3f68([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 _0x135a8f(){return _0x3173f2(_0x3d3f68([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4a2e35(_0x5db975){const _0x2c5c0a=_0x5f0cad();_0x40c9b3[_0x2c5c0a]=_0x3d3f68([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5db975,_0x5db975!=_0x3d3f68([0x56,0x61,0x6c,0x69,0x64])&&_0x5358a6();}function _0x5f0cad(){const _0x190ad8=window[_0x3d3f68([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d3f68([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d3f68([0x6e,0x6f,0x77])]())[_0x3d3f68([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d3f68([0x2e]),'');let _0x29f986=_0x3d3f68([0x48]);for(let _0x33f7c2=0x0;_0x33f7c2<_0x190ad8[_0x3d3f68([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33f7c2+=0x2){let _0x28ad2d=window[_0x3d3f68([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x190ad8[_0x3d3f68([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33f7c2,_0x33f7c2+0x2));_0x28ad2d>=_0x16aa70[_0x3d3f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28ad2d-=_0x16aa70[_0x3d3f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x29f986+=_0x16aa70[_0x28ad2d];}return _0x29f986;}function _0xc50244(){const _0xa288c4=_0xb8964d[_0x3d3f68([0x73,0x70,0x6c,0x69,0x74])](_0x3d3f68([0x2e]));if(0x3!=_0xa288c4[_0x3d3f68([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b820e(_0xa288c4[0x1]);function _0x2b820e(_0x369de9){const _0x21a298=_0x2c4475(_0x369de9);return _0x21a298&&_0x2cba7c()?_0x21a298:null;function _0x2cba7c(){const _0x51c4b0=_0x21a298[_0x3d3f68([0x6a,0x74,0x69])],_0x23a896=window[_0x3d3f68([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51c4b0[_0x3d3f68([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51c4b0[_0x3d3f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x355a6e={..._0x21a298,[_0x3d3f68([0x6a,0x74,0x69])]:_0x51c4b0[_0x3d3f68([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51c4b0[_0x3d3f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x355a6e[_0x3d3f68([0x76,0x63])],_0x59e9df(_0x355a6e)==_0x23a896;}}}async function _0xbddf35(){let _0x1d1182=!0x0;try{const _0x1a9dff=_0xb8964d[_0x3d3f68([0x73,0x70,0x6c,0x69,0x74])](_0x3d3f68([0x2e])),[_0x4f19f5,_0x389920,_0x588450]=_0x1a9dff;return _0x982069(_0x4f19f5),await _0x5b73ee(_0x4f19f5,_0x389920,_0x588450),_0x1d1182;}catch(_0x4337c6){return!0x1;}function _0x982069(_0x190fb1){const _0x3af104=_0x2c4475(_0x190fb1);_0x3af104&&_0x3af104[_0x3d3f68([0x61,0x6c,0x67])]==_0x3d3f68([0x45,0x53,0x32,0x35,0x36])||(_0x1d1182=!0x1);}async function _0x5b73ee(_0x3756df,_0x5875ed,_0x274a09){const _0xd584a7=window[_0x3d3f68([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d3f68([0x66,0x72,0x6f,0x6d])](_0x57a296(_0x274a09),_0x435b3d=>_0x435b3d[_0x3d3f68([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xaa19d6=new window[(_0x3d3f68([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d3f68([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3756df+_0x3d3f68([0x2e])+_0x5875ed),_0x24b5f7=window[_0x3d3f68([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d3f68([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24b5f7)return;const _0x3ea7f9=await _0x24b5f7[_0x3d3f68([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d3f68([0x6a,0x77,0x6b]),_0x181960,{[_0x3d3f68([0x6e,0x61,0x6d,0x65])]:_0x3d3f68([0x45,0x43,0x44,0x53,0x41]),[_0x3d3f68([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d3f68([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d3f68([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24b5f7[_0x3d3f68([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d3f68([0x6e,0x61,0x6d,0x65])]:_0x3d3f68([0x45,0x43,0x44,0x53,0x41]),[_0x3d3f68([0x68,0x61,0x73,0x68])]:{[_0x3d3f68([0x6e,0x61,0x6d,0x65])]:_0x3d3f68([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ea7f9,_0xd584a7,_0xaa19d6)||(_0x1d1182=!0x1);}}function _0x2c4475(_0x1ab2c4){return _0x1ab2c4[_0x3d3f68([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d3f68([0x65,0x79]))?JSON[_0x3d3f68([0x70,0x61,0x72,0x73,0x65])](_0x57a296(_0x1ab2c4)):null;}function _0x57a296(_0x13d481){return window[_0x3d3f68([0x61,0x74,0x6f,0x62])](_0x13d481[_0x3d3f68([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d3f68([0x2b]))[_0x3d3f68([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d3f68([0x2f])));}function _0x59e9df(_0xd1f9cd){let _0x500d69=0x1505;function _0x1747eb(_0x1b79cf){for(let _0x2762e3=0x0;_0x2762e3<_0x1b79cf[_0x3d3f68([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2762e3++){const _0x40a076=_0x1b79cf[_0x3d3f68([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2762e3);_0x500d69=(_0x500d69<<0x5)+_0x500d69+_0x40a076,_0x500d69&=_0x500d69;}}function _0x4eef7a(_0x39e0f3){Array[_0x3d3f68([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39e0f3)?_0x39e0f3[_0x3d3f68([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4eef7a):_0x39e0f3&&typeof _0x39e0f3==_0x3d3f68([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d3f68([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39e0f3)[_0x3d3f68([0x73,0x6f,0x72,0x74])]()[_0x3d3f68([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b1deb,_0x4605fb])=>{_0x1747eb(_0x5b1deb),_0x4eef7a(_0x4605fb);}):_0x1747eb(window[_0x3d3f68([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39e0f3));}return _0x4eef7a(_0xd1f9cd),_0x500d69>>>0x0;}function _0x58c17e(_0x369bca){return _0x369bca[_0x3d3f68([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d3f68([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d3f68([0x30]));}function _0x67b0b2(_0x5c9cda){return _0x5c9cda[_0x3d3f68([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d3f68([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d3f68([0x6a,0x6f,0x69,0x6e])]('');}function _0x3173f2(_0xd663e8){return _0x40c9b3[_0x3d3f68([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d3f68([0x68,0x61,0x73])](_0xd663e8);}function _0x487935(_0x19fe39){return _0x40c9b3[_0x3d3f68([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d3f68([0x67,0x65,0x74])](_0x19fe39);}function _0x58e036(){}function _0x3d3f68(_0x316161){return _0x316161['map'](_0x15c50e=>String['fromCharCode'](_0x15c50e))['join']('');}_0x4a2e35(await _0x3a123a());}(this);}['destroy'](){const _0x525cda=this['editor']['plugins']['get'](o),_0x182d31=this['editor']['config']['get']('collaboration.channelId');for(const _0x1109e1 of _0x525cda['getCommentThreads']({'channelId':_0x182d31}))_0x525cda['_detachCommentThread'](_0x1109e1['id']),_0x525cda['_threads']['delete'](_0x1109e1['id']);super['destroy']();}['hasMarkerForId'](_0x17f67b){return this['getAllMarkersForId'](_0x17f67b)['length']>0x0;}['getAllMarkersForId'](_0x39ca75){const _0x570dc0=[];for(const _0x101264 of this['editor']['model']['markers'])_0x101264['name']['startsWith']('comment:'+_0x39ca75)&&_0x570dc0['push'](_0x101264);return _0x570dc0;}['scrollToThreadMarker'](_0x1a432a){const _0x11f9f0=this['_getTargetForId'](_0x1a432a);_0x11f9f0&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x1a432a&&rt({'target':_0x11f9f0[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x9960d9){this['editor']['model']['change'](()=>{for(const _0x2326f9 of this['getAllMarkersForId'](_0x9960d9))this['editor']['editing']['reconvertMarker'](_0x2326f9);});}['_attachArchivedThread'](_0xab6906){const _0x173d92=this['editor']['plugins']['get'](o),_0x4b7a8b=this['editor']['plugins']['get'](P),_0x54e7d9=_0x173d92['getCommentThread'](_0xab6906);if(!_0x54e7d9['isAttached']){const _0x320c0a=_0x54e7d9['attachTo'](()=>this['_getTargetForId'](_0x54e7d9['id']));_0x4b7a8b['registerAnnotation'](_0x320c0a),_0x54e7d9['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x12917c=this['editor'],_0x173f34=_0x12917c['plugins']['get'](it);_0x12917c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x1d854d,_0xe0581c)=>{const {id:_0x51d736}=er(_0x1d854d['markerName']),_0x1678b5=_0x12917c['plugins']['get'](o)['getCommentThread'](_0x51d736),_0x47d51a=this['activeMarker']&&er(this['activeMarker'])['id']===_0x51d736;let _0x47e03f;if(_0x1678b5&&_0x1678b5['isResolved']&&!_0x47d51a&&_0x1d854d['item'])return _0xe0581c['consumable']['consume'](_0x1d854d['item'],'addMarker:'+_0x1d854d['markerName']),_0xe0581c['consumable']['consume'](_0x1d854d['item'],'removeMarker:'+_0x1d854d['markerName']),null;const _0x1c86f5=['ck-comment-marker'];return _0x47d51a&&_0x1c86f5['push']('ck-comment-marker--active'),_0x47e03f=_0x1678b5&&_0x1678b5['length']?_0x1678b5['comments']['first']['author']['id']:_0x173f34['me']['id'],{'classes':_0x1c86f5,'attributes':{'data-comment':_0x51d736,'data-author-id':_0x47e03f}};}}),_0x12917c['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x230639,{options:_0x2065d4})=>{if(_0x2065d4['showCommentHighlights'])return null;const _0x426dcf=_0x12917c['plugins']['get'](o),_0x231a06=_0x12917c['model']['markers']['get'](_0x230639),{id:_0x4d1a98,part:_0x951f5d}=er(_0x230639);if(_0x231a06&&!_0x231a06['affectsData'])return null;if(_0x2065d4['ignoreResolvedComments']){const _0x46f9b1=_0x426dcf['getCommentThread'](_0x4d1a98);if(_0x46f9b1&&_0x46f9b1['isResolved'])return null;}return{'group':'comment','name':_0x951f5d?_0x4d1a98+':'+_0x951f5d:_0x4d1a98};}}),_0x12917c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x20a05f,{writer:_0x2bf3a0})=>_0x2bf3a0['createElement']('$marker',{'data-name':'comment:'+_0x20a05f['getAttribute']('id')})}),_0x12917c['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x7c03fa=this['editor'],_0x57d07b=_0x7c03fa['plugins']['get'](o),_0x5b2918=new Set(),_0x616c4=new Set();_0x7c03fa['model']['document']['registerPostFixer'](_0xec1f58=>{let _0x313556=!0x1;for(const {name:_0x353831,data:_0x50be4e}of _0x7c03fa['model']['document']['differ']['getChangedMarkers']()){const {group:_0x8e7127,id:_0x355755}=er(_0x353831);let _0x14d081=_0x50be4e['newRange'];if('comment'!==_0x8e7127||!_0x14d081)continue;const _0x2a5316='$graveyard'===_0x14d081['root']['rootName'];_0x2a5316||(_0x14d081=dt(_0x14d081,_0x7c03fa['model']),!_0x14d081||_0x14d081['isCollapsed']||!_0x50be4e['newRange']||_0x14d081['isEqual'](_0x50be4e['newRange']))?_0x7c03fa['model']['hasContent'](_0x14d081)&&!_0x2a5316?this['isThreadsLoadingPaused']?_0x5b2918['add'](_0x353831):this['_handleThreadMarker'](_0x353831,_0x355755):(_0x616c4['add'](_0x353831),_0x5b2918['delete'](_0x353831),_0xec1f58['removeMarker'](_0x353831),_0x313556=!0x0):(_0xec1f58['updateMarker'](_0x353831,{'range':_0x14d081}),_0x313556=!0x0);}return _0x313556;}),this['on']('change:isThreadsLoadingPaused',(_0x57f76a,_0x5d735d,_0x3a6470)=>{if(!_0x3a6470&&_0x5b2918['size'])for(const _0x1c3b8c of _0x5b2918){const {id:_0x446a1b}=er(_0x1c3b8c);_0x5b2918['delete'](_0x1c3b8c),_0x7c03fa['model']['markers']['get'](_0x1c3b8c)&&this['_handleThreadMarker'](_0x1c3b8c,_0x446a1b);}}),this['listenTo'](_0x7c03fa['model']['document'],'change',()=>{for(const {name:_0x33235d,data:{newRange:_0x98d161}}of _0x7c03fa['model']['document']['differ']['getChangedMarkers']()){const {group:_0x498b7b,id:_0x1ab99b}=er(_0x33235d);if('comment'!==_0x498b7b)continue;const _0x41b708=_0x57d07b['getCommentThread'](_0x1ab99b),_0x19a5b0=this['hasMarkerForId'](_0x1ab99b);_0x41b708&&(!_0x41b708['_hasTargetInContent']&&_0x98d161&&_0x7c03fa['editing']['view']['once']('render',()=>{const _0x17eb14=_0x7c03fa['plugins']['get'](N),_0x27c52c=_0x57d07b['_threadToController']['get'](_0x41b708)['view'];_0x17eb14['getByInnerView'](_0x27c52c)['refreshVisibility']();},{'priority':'low'}),_0x41b708['_hasTargetInContent']=_0x19a5b0||!!_0x98d161),_0x98d161||(_0x616c4['add'](_0x33235d),_0x5b2918['delete'](_0x33235d));}for(const _0x3be9db of _0x616c4){const {id:_0x13bf54}=er(_0x3be9db),_0x330d00=_0x57d07b['getCommentThread'](_0x13bf54);if(_0x5b2918['delete'](_0x3be9db),!_0x330d00)continue;const _0x486aaf=this['hasMarkerForId'](_0x13bf54);_0x486aaf||_0x330d00['isSubmitted']?_0x486aaf||_0x330d00['unlinkedAt']||_0x330d00['setUnlinkedAt'](new Date()):_0x330d00['remove']();}_0x616c4['clear']();});}['_handleInitialThreads'](_0x4a1cb1){_0x4a1cb1['forEach'](_0x2a98b0=>{_0x2a98b0['unlinkedAt']&&this['_attachArchivedThread'](_0x2a98b0['id']);});}['_getTargetForId'](_0x4c650b){const _0x41d4b4=this['editor'],_0x1a5baf=this['getAllMarkersForId'](_0x4c650b);return et(_0x41d4b4['editing'],_0x1a5baf);}['_getTextContext'](_0x5173cc){const _0x1acf6a=this['getAllMarkersForId'](_0x5173cc);let _0x52e11b='',_0x31987e=!0x1;for(const _0x3cf87c of _0x1acf6a){const _0x18ab93=_0x3cf87c['getRange']();for(const _0x4ddcc9 of Array['from'](_0x18ab93['getItems']()))_0x4ddcc9['is']('$textProxy')?(_0x52e11b&&_0x31987e&&(_0x52e11b+='\x20',_0x31987e=!0x1),_0x52e11b+=_0x4ddcc9['data']):_0x31987e=!0x0;_0x31987e=!0x0;}return _0x52e11b['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x2bfd5e,_0x341dde){const _0x49114f=this['editor'],_0x579d95=_0x49114f['plugins']['get'](o);let _0x5b027b=_0x579d95['getCommentThread'](_0x341dde);const _0xc5d80=_0x49114f['config']['get']('collaboration.channelId'),_0x18ecbb=_0x49114f['plugins']['get'](P);if(_0x5b027b&&(_0x5b027b['unlinkedAt']&&_0x5b027b['setUnlinkedAt'](null),_0x5b027b['isAttached']))return _0x5b027b;return!this['getAllMarkersForId'](_0x341dde)[0x0]['managedUsingOperations']?_0x49114f['editing']['view']['once']('render',()=>{if(_0x579d95['getCommentThread'](_0x341dde))return;const _0x49e979=_0x49114f['plugins']['get'](N);_0x5b027b=_0x579d95['openNewCommentThread']({'channelId':_0xc5d80,'threadId':_0x341dde,'target':()=>this['_getTargetForId'](_0x341dde),'context':{'type':'text','value':this['_getTextContext'](_0x341dde)}});const _0x350d8e=_0x579d95['_threadToController']['get'](_0x5b027b)['view'],_0x28855c=_0x49e979['getByInnerView'](_0x350d8e);_0x28855c&&_0x18ecbb['registerAnnotation'](_0x28855c);},{'priority':'low'}):_0x579d95['fetchCommentThread']({'channelId':_0xc5d80,'threadId':_0x341dde})['then'](_0x1e2f24=>{if('destroyed'!==_0x49114f['state']){if(_0x5b027b=_0x1e2f24,_0x5b027b&&!_0x5b027b['isAttached']){const _0x2f7c6c=_0x5b027b['attachTo'](()=>this['_getTargetForId'](_0x341dde));_0x18ecbb['registerAnnotation'](_0x2f7c6c),_0x5b027b['isResolved']&&this['_reconvertMarkers'](_0x341dde);}else{if(!_0x5b027b){const _0x479eb4=this['getAllMarkersForId'](_0x341dde);_0x49114f['model']['change'](_0x1e9bbd=>{for(const _0x1b279b of _0x479eb4)_0x1e9bbd['removeMarker'](_0x1b279b);});}}}}),_0x5b027b;}['_handleThreadMarker'](_0x2a6cd4,_0x202bc7){const _0x12f9ae=this['_attachMarkerToThread'](_0x2a6cd4,_0x202bc7);_0x12f9ae&&!_0x12f9ae['context']&&_0x12f9ae['setContext']({'type':'text','value':this['_getTextContext'](_0x202bc7)});}['_initAriaMarkerChangeAnnouncements'](){const _0x4b6d9a=this['editor'];ot(_0x4b6d9a['model'],({left:_0x587911,entered:_0x42d601})=>{for(const _0x82181 of _0x587911)if(mt(_0x82181)){_0x4b6d9a['ui']['ariaLiveAnnouncer']['announce'](S(_0x4b6d9a['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x5d0217 of _0x42d601)if(mt(_0x5d0217)){_0x4b6d9a['ui']['ariaLiveAnnouncer']['announce'](S(_0x4b6d9a['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x405ad0)));break;}});}}function ft(_0x4d2ccc,_0x4fe564){return _0x4fe564?_0x4d2ccc+':'+_0x4fe564:_0x4d2ccc;}function er(_0x56bceb){const _0x2d315f=_0x56bceb['split'](':');return{'group':_0x2d315f[0x0],'id':_0x2d315f[0x1],'part':_0x2d315f[0x2]};}function dt(_0x4c0ebe,_0x266d97){const _0x175930=_0x266d97['schema'],_0x245b4=_0x266d97['createRange'](_0x4c0ebe['start']);for(const _0x2262df of _0x4c0ebe['getWalker']()){const {type:_0x45d7b5,item:_0x5d0a48,nextPosition:_0x395b2a}=_0x2262df;if('text'===_0x45d7b5||_0x175930['isObject'](_0x5d0a48)){const _0x134c2a=_0x266d97['createPositionBefore'](_0x5d0a48);_0x245b4['isCollapsed']&&(_0x245b4['start']=_0x134c2a),_0x245b4['end']=_0x395b2a;}}return _0x245b4;}function mt(_0xb29ae4){return'comment'===er(_0xb29ae4['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 _0x3dc7ee{['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 _0x5a77bb=this['editor'],_0x470f5b=_0x5a77bb['plugins']['get'](o),_0x1ea019=_0x5a77bb['plugins']['get'](r),_0x4acc40=_0x5a77bb['plugins']['get'](N),_0x24e14d=_0x5a77bb['plugins']['get'](P);_0x5a77bb['ui']['componentFactory']['add']('comment',()=>{const _0x2f425c=this['_createUIButton'](_0xefe3d5);return _0x2f425c['tooltip']=!0x0,_0x2f425c;}),_0x5a77bb['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x3ae33b)),_0x24e14d['addSourceCollector'](()=>{const _0x2cdc1b=[];for(const [_0x4f0be2,_0x4b513d]of _0x470f5b['_threadToController']){const _0x56b141=_0x1ea019['getAllMarkersForId'](_0x4f0be2['id']),_0xa2213a=_0x56b141['map'](_0x456397=>_0x456397['getRange']());_0x56b141['length']>0x0&&_0x2cdc1b['push']([_0x4b513d['view'],_0xa2213a]);}return _0x2cdc1b;}),this['listenTo'](_0x4acc40,'change:activeAnnotations',(_0x5cd1b9,_0x3b3a94,_0x3abbad)=>{const _0x462ecd=Array['from'](_0x3abbad)['map'](_0x5156ad=>_0x5156ad['innerView'])['find'](_0x41c0f9=>_0x470f5b['_viewToController']['has'](_0x41c0f9));if(!_0x462ecd)return void(_0x1ea019['activeMarker']=null);const _0x5db8d9=_0x470f5b['_viewToController']['get'](_0x462ecd)['model']['id'],_0x5263a7='comment:'+_0x5db8d9;_0x5db8d9&&_0x1ea019['hasMarkerForId'](_0x5db8d9)?_0x1ea019['activeMarker']=_0x5263a7:_0x1ea019['activeMarker']&&(_0x1ea019['activeMarker']=null);}),this['listenTo'](_0x470f5b,'removeCommentThread',(_0x3ad3cc,{threadId:_0x4cf4ca,isFromAdapter:_0xa2f531})=>{!_0xa2f531&&_0x5a77bb['ui']['focusTracker']['isFocused']&&_0x1ea019['hasMarkerForId'](_0x4cf4ca)&&_0x5a77bb['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x470f5b,'addComment',(_0x2aaf9d,{threadId:_0x41bc1b,isFromAdapter:_0x1ed154})=>{if(_0x1ed154||!_0x1ea019['hasMarkerForId'](_0x41bc1b)||!_0x470f5b['hasCommentThread'](_0x41bc1b))return;0x1===_0x470f5b['getCommentThread'](_0x41bc1b)['length']&&(_0x5a77bb['editing']['view']['focus'](),_0x2aaf9d['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x20985a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x46a5f9;for(const _0x160b90 in _0x20985a){const _0x430ac8=_0x160b90,_0x2e1d50=_0x20985a[_0x430ac8];if('commentsLicenseKeyValid'==_0x2e1d50||'commentsLicenseKeyInvalid'==_0x2e1d50||'commentsLicenseKeyExpired'==_0x2e1d50||'commentsLicenseKeyDomainLimit'==_0x2e1d50||'commentsLicenseKeyNotAllowed'==_0x2e1d50||'commentsLicenseKeyEvaluationLimit'==_0x2e1d50||'commentsLicenseKeyTrialLimit'==_0x2e1d50||'commentsLicenseKeyUsageLimit'==_0x2e1d50){delete _0x20985a[_0x430ac8],_0x46a5f9=_0x2e1d50,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x46a5f9&&_0x20985a['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x46a5f9&&_0x20985a['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x46a5f9&&_0x20985a['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x46a5f9&&_0x20985a['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x46a5f9&&_0x20985a['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x46a5f9&&_0x20985a['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x46a5f9&&_0x20985a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x5cad4e){const _0x2be336=this['editor'],_0x197eef=new _0x5cad4e(_0x2be336['locale']),_0xc966ab=_0x2be336['commands']['get']('addCommentThread');return _0x197eef['set']({'label':S(_0x2be336['locale'],'Comment'),'icon':xt}),_0x197eef['bind']('isEnabled')['to'](_0xc966ab),this['listenTo'](_0x197eef,'execute',()=>{_0x2be336['editing']['view']['focus'](),_0xc966ab['execute']();}),_0x197eef;}}class s extends _0x3dc7ee{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x279b03){super(_0x279b03),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x136e70,_0x7e2616,_0x1a8940)=>{_0x1a8940?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x2891ca,_0x1ccd3a]of this['editor']['commands'])_0x1ccd3a['affectsData']&&'addCommentThread'!==_0x2891ca&&_0x1ccd3a['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 _0x20b207=this['editor']['editing']['view']['document'];this['listenTo'](_0x20b207,'cut',_0xe869bf=>_0xe869bf['stop'](),{'priority':'highest'}),this['listenTo'](_0x20b207,'clipboardInput',_0x471279=>_0x471279['stop'](),{'priority':'highest'}),this['listenTo'](_0x20b207,'delete',_0x22a3f1=>_0x22a3f1['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x2433d4,_0x3c9970]of this['editor']['commands'])_0x3c9970['affectsData']&&'addCommentThread'!==_0x2433d4&&_0x3c9970['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 _0x579572{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b9fb5){super(_0x4b9fb5),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x1454af=this['context']['plugins']['get'](N);this['listenTo'](_0x1454af,'_activateAnnotation',(_0x2c9272,_0x45c774)=>{for(const _0x26bdb9 of this['activeUIs']){const _0x1aa4f7=this['_uis']['get'](_0x26bdb9);(0x0,this['_uisData']['get'](_0x26bdb9)['filter'])(_0x45c774)&&_0x1aa4f7['setActiveAnnotation'](_0x45c774);}}),this['listenTo'](_0x1454af,'_deactivateAllAnnotations',()=>{for(const _0x5d9e92 of this['activeUIs']){this['_uis']['get'](_0x5d9e92)['setActiveAnnotation'](null);}}),this['listenTo'](_0x1454af['_visibleAnnotations'],'add',(_0x43a615,_0x4aab18)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4aab18);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x436421){return this['activeUIs']['has'](_0x436421);}['activate'](_0x2552b2,_0x5221c1=()=>!0x0){const _0x247f26=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x2552b2))throw new _0x1d8fe5('annotationsuis-missing-ui',this,{'uiName':_0x2552b2});this['isActive'](_0x2552b2)&&this['deactivate'](_0x2552b2),this['activeUIs']['add'](_0x2552b2);const _0x58bc2b=new x();!function({source:_0x2d1e58,target:_0xec7e9b,filter:_0x22d3c2}){for(const _0x4c2532 of _0x2d1e58)_0x22d3c2(_0x4c2532)&&_0xec7e9b['add'](_0x4c2532);_0xec7e9b['listenTo'](_0x2d1e58,'add',(_0x5e2f2f,_0x516ad3)=>{_0x22d3c2(_0x516ad3)&&_0xec7e9b['add'](_0x516ad3);}),_0xec7e9b['listenTo'](_0x2d1e58,'remove',(_0x34d18f,_0x3f9174)=>{_0xec7e9b['has'](_0x3f9174)&&_0xec7e9b['remove'](_0x3f9174);});}({'source':_0x247f26['_visibleAnnotations'],'target':_0x58bc2b,'filter':_0x5221c1}),this['_uisData']['set'](_0x2552b2,{'collection':_0x58bc2b,'filter':_0x5221c1});const _0x686beb=this['_uis']['get'](_0x2552b2);_0x686beb['attach'](_0x58bc2b),this['listenTo'](_0x686beb,'change:activeAnnotation',(_0x29259b,_0x3700e3,_0x239f1f,_0x5aec3c)=>{_0x5aec3c&&_0x247f26['_removeActiveAnnotation'](_0x5aec3c),_0x239f1f&&_0x247f26['_addActiveAnnotation'](_0x239f1f);});}['deactivate'](_0x34afb5){if(this['activeUIs']['delete'](_0x34afb5),!this['_uis']['has'](_0x34afb5))throw new _0x1d8fe5('annotationsuis-missing-ui',this,{'uiName':_0x34afb5});const _0x23e94b=this['_uis']['get'](_0x34afb5);_0x23e94b['detach'](),this['stopListening'](_0x23e94b),this['_uisData']['get'](_0x34afb5)['collection']['destroy'](),this['_uisData']['delete'](_0x34afb5);}['switchTo'](_0x42dc31){if(!this['_uis']['has'](_0x42dc31))throw new _0x1d8fe5('annotationsuis-missing-ui',this,{'uiName':_0x42dc31});const _0x54ccae=this['context']['plugins']['get'](N),_0x175dfe=Array['from'](_0x54ccae['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x42dc31);const _0x3188dd=this['_uis']['get'](_0x42dc31);_0x3188dd['setActiveAnnotation'](_0x175dfe),_0x3188dd['_setSelectedAnnotations']&&_0x175dfe&&_0x3188dd['_setSelectedAnnotations']([_0x175dfe]);}['deactivateAll'](){for(const _0x3a188b of this['activeUIs'])this['deactivate'](_0x3a188b);}['register'](_0x3f18b5,_0x152310){if(this['_uis']['has'](_0x3f18b5))throw new _0x1d8fe5('annotationsuis-register-already-registered');if('function'!=typeof _0x152310['attach']||'function'!=typeof _0x152310['detach']||'function'!=typeof _0x152310['setActiveAnnotation'])throw new _0x1d8fe5('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x3f18b5,_0x152310);}['refilterAnnotations'](){const _0x12594a=this['context']['plugins']['get'](N)['collection'],_0x4bd84b=new Map(),_0x1d5e5e=Array['from'](this['activeUIs']);for(const _0x4d4844 of this['activeUIs']){const _0x3ae6dd=this['_uisData']['get'](_0x4d4844)['collection'];for(const _0x2ceba3 of _0x3ae6dd)_0x4bd84b['set'](_0x2ceba3,_0x4d4844);}for(const _0x4eabb8 of _0x12594a){const _0x10c82c=_0x4bd84b['get'](_0x4eabb8);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4eabb8);const _0xb3fbf2=_0x1d5e5e['find'](_0x8778e4=>this['_uisData']['get'](_0x8778e4)['filter'](_0x4eabb8));_0x10c82c!==_0xb3fbf2&&(_0x10c82c&&this['_uisData']['get'](_0x10c82c)['collection']['remove'](_0x4eabb8),_0xb3fbf2&&this['_uisData']['get'](_0xb3fbf2)['collection']['add'](_0x4eabb8));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x200fbc){const _0x2c695a=[];for(const _0xa07101 of this['activeUIs']){(0x0,this['_uisData']['get'](_0xa07101)['filter'])(_0x200fbc)&&_0x2c695a['push'](_0xa07101);}if(_0x2c695a['length']>0x1)throw new _0x1d8fe5('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x2c695a,'annotationType':_0x200fbc['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x48a087){super(_0x48a087);const _0x694d5=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 _0x4272aa(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x694d5['to']('class')],'style':{'minHeight':_0x694d5['to']('minHeight',_0x55fcfd=>'number'==typeof _0x55fcfd?he(_0x55fcfd+0xa):null)},'dir':_0x48a087['uiLanguageDirection'],'role':'application','aria-label':S(_0x48a087,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x48a087,'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',_0x225789=>{this['_updateItemPositionInFocusables'](_0x225789['source']);}),this['list']['forEach'](_0x47e824=>{this['focusTracker']['add'](_0x47e824['element']),this['_updateItemPositionInFocusables'](_0x47e824);}),this['list']['on']('change',(_0x1bdd4e,_0x12cfea)=>{for(const _0x22dfc5 of _0x12cfea['removed'])this['focusTracker']['remove'](_0x22dfc5['element']),this['focusables']['remove'](_0x22dfc5);for(const _0x529d28 of _0x12cfea['added'])this['focusTracker']['add'](_0x529d28['element']),this['_updateItemPositionInFocusables'](_0x529d28);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x3905b3){const _0x48ff92=this['focusables']['getIndex'](_0x3905b3);let _0x32582a,_0x1aac2f;for(const _0xb6f7a8 of this['focusables'])if(_0x3905b3['top']<_0xb6f7a8['top']){_0x32582a=_0xb6f7a8;break;}if(_0x1aac2f=_0x32582a?this['focusables']['getIndex'](_0x32582a):this['focusables']['length'],-0x1!==_0x48ff92){if(_0x48ff92===_0x1aac2f-0x1)return;this['focusables']['remove'](_0x3905b3),_0x1aac2f=_0x32582a?this['focusables']['getIndex'](_0x32582a):this['focusables']['length'];}this['focusables']['add'](_0x3905b3,_0x1aac2f);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x8202e9){super(_0x8202e9),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5ef646,_0x38df6b)=>_0x5ef646+_0x38df6b),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x1f071a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x1f071a['to']('isAnimationDisabled',_0x3c1333=>_0x3c1333?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x1f071a['to']('top',_0x4a3b2f=>qt(_0x4a3b2f))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0xa80070=this['element']['clientHeight'];_0xa80070&&(this['height']=_0xa80070);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x579572{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28b02c){super(_0x28b02c),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 _0x993a5e=this['context']['config']['get']('sidebar.container');_0x993a5e&&this['setContainer'](_0x993a5e);}['setContainer'](_0x475ec9){if(!y(_0x475ec9))throw new _0x1d8fe5('sidebar-setcontainer-invalid-element');this['container']=_0x475ec9;}['_attachToContainer']({viewClass:_0x1645ca='',spaceBetweenItems:_0x439aab=0x19}={}){if(!y(this['container']))throw new _0x1d8fe5('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x1645ca,this['_spaceBetweenItems']=_0x439aab;}['rearrange']({removedAnnotation:_0x45e551,previousAnnotation:_0x16cfa4,nextAnnotation:_0xcdad48}){const _0x223303=this['getSidebarItemView'](_0x45e551);this['view']['list']['remove'](_0x223303),this['_destroySidebarItemView'](_0x45e551),_0x16cfa4&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x16cfa4)),_0xcdad48&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xcdad48)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x6bf1a2,activatedAnnotation:_0x388c9e,disableAnimationOnActivatedAnnotation:_0x210d6a}){if(this['_activeAnnotation']=_0x388c9e,_0x6bf1a2){_0x6bf1a2['isActive']=!0x1;const _0x23c806=this['getSidebarItemView'](_0x6bf1a2);_0x23c806&&_0x210d6a&&(_0x23c806['isAnimationDisabled']=!0x1);}if(_0x388c9e){const _0x230a09=this['getSidebarItemView'](_0x388c9e);_0x230a09&&(_0x388c9e['isActive']=!0x0,_0x210d6a&&(_0x230a09['isAnimationDisabled']=!0x0,_0x230a09['top']+=0x1),this['_alignToTargetRect'](_0x230a09));}}['_detachFromContainer'](_0xdece6c){if(this['view']['element']['remove'](),_0xdece6c){for(const _0x210e93 of _0xdece6c)this['_destroySidebarItemView'](_0x210e93);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x28447a,_0x5d0d24){_0x5d0d24||(_0x5d0d24=_0x28447a['view']);const _0x3bbd46=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x3bbd46,_0x28447a),this['_annotationToSidebarItemView']['set'](_0x28447a,_0x3bbd46),_0x3bbd46['content']['add'](_0x5d0d24),this['listenTo'](_0x28447a['view'],'change:targetRect',(_0x51a5ce,_0x212e1c,_0x25a320)=>{const _0x118815=this['_getTargetTop'](_0x28447a,_0x25a320);_0x3bbd46['_targetTop']!=_0x118815&&(_0x3bbd46['_targetTop']=_0x118815,this['_setItemTop'](_0x3bbd46,_0x118815));}),this['listenTo'](_0x3bbd46,'change:top',()=>{this['_recalculate'](_0x3bbd46,'top');}),this['listenTo'](_0x3bbd46,'change:bottom',()=>{this['_recalculate'](_0x3bbd46,'bottom');}),this['_alignToTargetRect'](_0x3bbd46);const _0x520c3b=this['_getItemBefore'](_0x3bbd46);if(_0x520c3b)this['_alignAfterItem'](_0x520c3b,_0x3bbd46)||this['_alignToTargetRect'](_0x3bbd46);else this['_alignToTargetRect'](_0x3bbd46);return this['_updateLastItem'](),this['view']['list']['add'](_0x3bbd46),_0x3bbd46;}['_alignForTopChange'](_0x5aa260){if(!_0x5aa260['content']['length'])return;const _0x3fff58=this['_getItemBefore'](_0x5aa260);if(!_0x3fff58)return;const _0x595785=this['_sidebarItemViewToAnnotation']['get'](_0x3fff58),_0x186a56=this['_activeAnnotation'];_0x186a56&&_0x186a56===_0x595785?this['_alignAfterItem'](_0x3fff58,_0x5aa260):this['_alignBeforeItem'](_0x5aa260,_0x3fff58);}['_alignForBottomChange'](_0x1b80c4){if(!_0x1b80c4['content']['length'])return;const _0x52cc51=this['_getItemAfter'](_0x1b80c4);if(!_0x52cc51)return;const _0x37d1c9=this['_sidebarItemViewToAnnotation']['get'](_0x52cc51),_0xa07072=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x3532a1=this['_activeAnnotation'];_0x3532a1&&_0x3532a1===_0x37d1c9&&_0xa07072?(this['_alignBeforeItem'](_0x52cc51,_0x1b80c4),this['_alignAfterItem'](_0x1b80c4,_0x52cc51)):_0x3532a1&&_0x3532a1===_0x37d1c9?this['_alignBeforeItem'](_0x52cc51,_0x1b80c4):this['_alignAfterItem'](_0x1b80c4,_0x52cc51);}['_recalculate'](_0x59c615,_0x270c8a){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x2998c9,changedProp:_0x40401a}of this['_recalculateBuffer'])'top'===_0x40401a?this['_alignForTopChange'](_0x2998c9):this['_alignForBottomChange'](_0x2998c9);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x59c615,'changedProp':_0x270c8a});}['getSidebarItemView'](_0x55ddb9){return this['_annotationToSidebarItemView']['get'](_0x55ddb9);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x547a0f){const _0x21a75a=this['getSidebarItemView'](_0x547a0f);this['stopListening'](_0x21a75a),this['stopListening'](_0x547a0f['view']),_0x21a75a['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x547a0f),this['_sidebarItemViewToAnnotation']['delete'](_0x21a75a);}['_createSidebarView'](){const _0x3c60b9=new V(this['context']['locale']);return _0x3c60b9['render'](),this['on']('change:_lastItem',(_0x400508,_0x3e363c,_0x923c1,_0x37526a)=>{_0x37526a&&_0x3c60b9['unbind']('minHeight'),_0x923c1?_0x3c60b9['bind']('minHeight')['to'](_0x923c1,'bottom'):_0x3c60b9['minHeight']=null;}),_0x3c60b9;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0xaf3170){const _0xd71af3=this['_sidebarItemViewToAnnotation']['get'](_0xaf3170),_0x29a8bf=_0xd71af3&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xd71af3)-0x1);return _0x29a8bf&&this['getSidebarItemView'](_0x29a8bf)||null;}['_getItemAfter'](_0x5606b3){const _0x34922d=this['_sidebarItemViewToAnnotation']['get'](_0x5606b3),_0x134f97=_0x34922d&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x34922d)+0x1);return _0x134f97&&this['getSidebarItemView'](_0x134f97)||null;}['_alignBeforeItem'](_0x36c6ba,_0x1ac56e){_0x36c6ba['updateHeight']();const _0xd1a7ae=R(_0x1ac56e['bottom']+this['_spaceBetweenItems'],_0x36c6ba['top']);return!!_0xd1a7ae&&(this['_setItemTop'](_0x1ac56e,_0x1ac56e['top']-_0xd1a7ae),!0x0);}['_alignAfterItem'](_0x582f26,_0x52ea4e){_0x582f26['updateHeight']();const _0x5e73f6=R(_0x582f26['bottom']+this['_spaceBetweenItems'],_0x52ea4e['top']);return!!_0x5e73f6&&(this['_setItemTop'](_0x52ea4e,_0x52ea4e['top']+_0x5e73f6,!0x1),!0x0);}['_alignToTargetRect'](_0x4289b6){const _0xc8739e=this['_sidebarItemViewToAnnotation']['get'](_0x4289b6);if(!_0xc8739e||!_0xc8739e['target']||!_0xc8739e['targetRect'])return;const _0x85a82f=this['_getTargetTop'](_0xc8739e,_0xc8739e['targetRect']);this['_setItemTop'](_0x4289b6,_0x85a82f);}['_getTargetTop'](_0x5dcb19,_0x2d9651){if(null===_0x2d9651)return 0x0;if(_0x5dcb19['target']instanceof _0x14d501)return _0x2d9651['top'];{const _0x404369=new _0x14d501(this['view']['element'])['top'];return _0x2d9651['top']-_0x404369;}}['_setItemTop'](_0x54f27a,_0x36360d,_0x39b5b3=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x39b5b3&&(_0x36360d=Math['max'](_0x36360d,this['_getMaxAvailableTop'](_0x54f27a))),_0x54f27a['top']=_0x36360d;}['_getMaxAvailableTop'](_0x37bf27){let _0x2337df=this['_getItemBefore'](_0x37bf27),_0x31f7cd=0x0;for(;_0x2337df;)_0x2337df['updateHeight'](),_0x31f7cd+=this['_spaceBetweenItems']+_0x2337df['height'],_0x2337df=this['_getItemBefore'](_0x2337df);return _0x31f7cd;}}function R(_0x573476,_0x583579){return Math['max'](_0x573476-_0x583579,0x0);}function y(_0x1bcb7d){return null!==_0x1bcb7d&&'object'==typeof _0x1bcb7d&&0x1===_0x1bcb7d['nodeType'];}class e extends _0x579572{['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(_0x38d4d8){super(_0x38d4d8),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0xc841e1(),this['_refreshPositioningDebounced']=_0x2238e8(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x32e832=this['context']['plugins']['get'](M),_0x24ce81=this['context']['plugins']['get'](z);_0x32e832['register']('wideSidebar',this),_0x24ce81['container']&&_0x32e832['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x321673){if(_0x321673===this['activeAnnotation'])return;const _0x486910=this['context']['plugins']['get'](z);_0x486910['_activeAnnotation']=_0x321673;const _0x224bea=this['activeAnnotation'];_0x486910['refresh']({'blurredAnnotation':_0x224bea,'activatedAnnotation':_0x321673}),this['activeAnnotation']=_0x321673;}['attach'](_0x4a4498){this['annotations']=_0x4a4498;const _0x7f37c1=this['context']['plugins']['get'](z);if(_0x7f37c1['_annotations']=_0x4a4498,this['isAttached'])throw new _0x1d8fe5('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x7f37c1,'set:container',()=>{this['detach'](),this['listenTo'](_0x7f37c1,'change:container',_0x3db231=>{_0x3db231['off'](),this['attach'](_0x4a4498);});}),_0x7f37c1['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x1cad66=_0x183e82=>{_0x183e82['updateTargetRect'](),_0x7f37c1['addAnnotation'](_0x183e82);};for(const _0x1b0526 of _0x4a4498)_0x1cad66(_0x1b0526);this['listenTo'](_0x4a4498,'add',(_0x4d2521,_0x3743f7)=>{_0x1cad66(_0x3743f7);}),this['listenTo'](_0x4a4498,'remove',(_0xed5511,_0x1f78bb,_0x4f8aab)=>{_0x7f37c1['rearrange']({'removedAnnotation':_0x1f78bb,'previousAnnotation':_0x4a4498['get'](_0x4f8aab-0x1),'nextAnnotation':_0x4a4498['get'](_0x4f8aab+0x1)}),_0x1f78bb===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x4a4498,'focus',(_0x5c56d2,_0x259be2)=>{this['setActiveAnnotation'](_0x259be2);}),this['listenTo'](_0x4a4498,'blur',()=>{this['setActiveAnnotation'](null);});const _0x49b5ee=this['context']instanceof _0x2e228a?this['context']['editors']:new _0xc841e1([this['context']]);for(const _0x3d3d3d of _0x49b5ee)this['_integrateWithEditorAnnotations'](_0x3d3d3d);this['listenTo'](_0x49b5ee,'add',(_0x1b9a81,_0x501aa3)=>{this['listenTo'](_0x501aa3,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x501aa3);});}),this['listenTo'](_0x49b5ee,'remove',(_0x14f21e,_0x1df266)=>{_0x1df266['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1df266['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x1d8fe5('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x214ffb=this['context']['plugins']['get'](z);_0x214ffb['_detachFromContainer'](this['annotations']),this['stopListening'](_0x214ffb),this['stopListening'](this['annotations']),this['context']instanceof _0x2e228a&&this['stopListening'](this['context']['editors']);for(const _0x2a0fe2 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x2a0fe2);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x1172b7){if(!_0x1172b7['plugins']['has']('EditorAnnotations'))return;const _0x55eabf=_0x1172b7['plugins']['get']('EditorAnnotations'),_0x1a83b6=()=>{const _0x1a12b5=_0x55eabf['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x1a12b5[0x0]||null);};this['listenTo'](_0x55eabf,'refresh',_0x1a83b6),this['listenTo'](_0x55eabf,'blur',(_0xee2c1e,{isAnnotationTracked:_0x4b0703})=>{this['activeAnnotation']&&_0x4b0703(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x55eabf,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x5dca15=>{_0x55eabf['hasDomSelection']()&&(_0x1a83b6(),_0x5dca15['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x55eabf);}['_destroyEditorAnnotationsIntegration'](_0x50aa95){this['stopListening'](_0x50aa95),this['_editorAnnotations']['remove'](_0x50aa95);}}class D extends _0xefe3d5{['counterView'];constructor(_0x241f8d){super(_0x241f8d);const _0x175ad0=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x25ab6c,_0x39b7f7)=>_0x25ab6c?'...':_0x39b7f7['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',_0x175ad0['to']('annotationType',_0x5058d8=>'ck-annotation-counter__badge--'+_0x5058d8),_0x175ad0['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x175ad0['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x579572{['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(_0x2f0d2b){super(_0x2f0d2b),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x1ae35e),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0xc841e1(),this['_refreshPositioningDebounced']=_0x2238e8(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0xffceee(this['context']['locale']),this['balloonPanelView']=new _0x583625(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x48fcf8){this['annotations']=_0x48fcf8;const _0x3b0928=this['context']['plugins']['get'](z),_0x149ff2=this['balloonPanelView'];if(_0x3b0928['_annotations']=_0x48fcf8,this['isAttached'])throw new _0x1d8fe5('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3b0928,'set:container',()=>{this['detach'](),this['listenTo'](_0x3b0928,'change:container',_0x31fed8=>{_0x31fed8['off'](),this['attach'](_0x48fcf8);});}),_0x3b0928['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x4badf5=_0x52c45c=>{const _0x1ce6e6=new D(this['context']['locale']);_0x3b0928['addAnnotation'](_0x52c45c,_0x1ce6e6),this['_annotationToNarrowView']['set'](_0x52c45c,_0x1ce6e6),_0x1ce6e6['bind']('isDirty','annotationType','number')['to'](_0x52c45c['view'],'isDirty','type','length'),_0x1ce6e6['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x149ff2['content']['first']!==_0x52c45c['view']?(this['_showBalloon'](_0x52c45c),_0x52c45c['view']['element']['focus'](),this['setActiveAnnotation'](_0x52c45c)):this['setActiveAnnotation'](null);});};for(const _0xfc2a08 of _0x48fcf8)_0x4badf5(_0xfc2a08);this['listenTo'](_0x48fcf8,'add',(_0x34db3b,_0x3c2b04)=>{_0x4badf5(_0x3c2b04);}),this['listenTo'](_0x48fcf8,'remove',(_0x52eb60,_0x4fd2a8,_0x2abb79)=>{this['_annotationToNarrowView']['get'](_0x4fd2a8)['destroy'](),this['_annotationToNarrowView']['delete'](_0x4fd2a8),_0x3b0928['rearrange']({'removedAnnotation':_0x4fd2a8,'previousAnnotation':_0x48fcf8['get'](_0x2abb79-0x1),'nextAnnotation':_0x48fcf8['get'](_0x2abb79+0x1)}),_0x4fd2a8===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x48fcf8,'focus',(_0x86fb65,_0x2a9178)=>{this['setActiveAnnotation'](_0x2a9178);}),this['listenTo'](_0x48fcf8,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0xc55fc8,_0x4f30f8)=>{_0x4f30f8['keyCode']===_0x3bbd18['esc']&&_0x149ff2['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x149ff2['content']['first']),this['_hideBalloon'](),_0x4f30f8['stopPropagation'](),_0x4f30f8['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x1599d3,_0x151482)=>{const _0x3804ec=_0x151482['target'];_0x149ff2['isVisible']&&_0x149ff2['element']['contains'](_0x3804ec)||_0x3b0928['view']['element']['contains'](_0x3804ec)||_0x1599d3['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x6adf72=>_0x6adf72['contains'](_0x3804ec))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x15a90c=this['context']instanceof _0x2e228a?this['context']['editors']:new _0xc841e1([this['context']]);for(const _0x4a7a12 of _0x15a90c)this['_integrateWithEditorAnnotations'](_0x4a7a12);this['listenTo'](_0x15a90c,'add',(_0x3fe28a,_0x2a18c1)=>{this['listenTo'](_0x2a18c1,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2a18c1);});}),this['listenTo'](_0x15a90c,'remove',(_0x2d58f3,_0x3d537)=>{_0x3d537['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3d537['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x1156f4){if(_0x1156f4===this['activeAnnotation'])return;const _0x2b4ace=this['context']['plugins']['get'](z);if(_0x2b4ace['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1156f4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1156f4)_0x2b4ace['getSidebarItemView'](_0x1156f4)?this['_showBalloon'](_0x1156f4):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x1156f4;}['detach'](){if(!this['isAttached'])throw new _0x1d8fe5('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x53263e=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x18529d=>_0x18529d['destroy']()),this['_annotationToNarrowView']['clear'](),_0x53263e['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x2e228a&&this['stopListening'](this['context']['editors']);for(const _0x4180c3 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4180c3);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'](_0x48c211){if(!_0x48c211['plugins']['has']('EditorAnnotations'))return;const _0xc07915=_0x48c211['plugins']['get']('EditorAnnotations'),_0x593c77=this['context']['plugins']['get'](z),_0x579898=this['annotations'],_0x21e00d=this['balloonPanelView'],_0x50669e=()=>{const _0x38402d=_0xc07915['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x38402d),this['setActiveAnnotation'](_0x38402d[0x0]||null);};this['listenTo'](_0xc07915,'refresh',_0x50669e),this['listenTo'](_0xc07915,'blur',(_0x377786,{isAnnotationTracked:_0x9fbd0f})=>{this['activeAnnotation']&&_0x9fbd0f(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0xc07915,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x579898,'blur',_0x492fee=>{_0xc07915['hasDomSelection']()&&_0x492fee['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x41c542,_0x34302f)=>{const _0x4b6e26=_0x34302f['target'];_0x21e00d['isVisible']&&_0x21e00d['element']['contains'](_0x4b6e26)||_0x593c77['view']['element']['contains'](_0x4b6e26)||this['activeAnnotation']&&_0xc07915['hasDomSelection']()&&(_0x50669e(),_0x41c542['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0xc07915);}['_destroyEditorAnnotationsIntegration'](_0x1bbd1){_0x1bbd1&&(this['stopListening'](_0x1bbd1),this['_editorAnnotations']['remove'](_0x1bbd1));}['_setSelectedAnnotations'](_0x24cd47){for(const _0x1379db of this['_selectedAnnotations'])_0x24cd47['includes'](_0x1379db)||this['_manuallyClosedAnnotationViews']['delete'](_0x1379db['view']);this['_selectedAnnotations']=_0x24cd47;}['_refreshPositioning'](){const _0x17eb26=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x17eb26['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x340c66){if(this['_manuallyClosedAnnotationViews']['has'](_0x340c66['view']))return;const _0x3ca301=this['balloonPanelView']['content']['first'];_0x3ca301!==_0x340c66['view']?(_0x3ca301&&this['_detachListeners'](_0x3ca301),this['_attachListeners'](_0x340c66['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x340c66['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x3d315c=this['balloonPanelView']['content']['first'],_0x5886c6=_0x3d315c&&this['annotations']['getByView'](_0x3d315c);if(!_0x5886c6||!this['_annotationToNarrowView']['has'](_0x5886c6))return;const _0x4879ab=this['_annotationToNarrowView']['get'](_0x5886c6)['element'],_0x457f10=(function(){const _0x300bee=_0x583625['defaultPositions'];return[_0x300bee['southArrowNorthEast'],_0x300bee['northArrowSouthEast'],_0x300bee['southArrowNorth'],_0x300bee['northArrowSouth'],_0x300bee['southArrowNorthWest'],_0x300bee['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x4879ab,'positions':_0x457f10});}['_hideBalloon'](){const _0x548d8f=this['balloonPanelView'],_0x1600c8=_0x548d8f['content']['first'];_0x1600c8&&(this['_detachListeners'](_0x1600c8),_0x548d8f['unpin'](),_0x548d8f['content']['clear']());}['_attachListeners'](_0x2e37eb){this['listenTo'](_0x2e37eb,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x2e37eb,'Esc',(_0x59f1ff,_0x5545e1)=>{this['_manuallyClosedAnnotationViews']['add'](_0x2e37eb),this['_hideBalloon'](),_0x5545e1();});}['_detachListeners'](_0x3fb4a9){this['stopListening'](_0x3fb4a9);}}class c extends _0x3dc7ee{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x2e0fbc,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4eb4f1){super(_0x4eb4f1),_0x4eb4f1['editing']['view']['addObserver'](_0x273130),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x4eb4f1['plugins']['get'](_0x2e0fbc),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0xcd1cf3=this['editor']['plugins']['get'](M);_0xcd1cf3['context']===this['editor']&&(_0xcd1cf3['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x2499f9,_0x33d078)=>{const _0x58bf36=this['_balloon'];if(this['isAttached']&&_0x58bf36['visibleView']){const _0x5ed7b7=this['annotations']['getByView'](_0x58bf36['visibleView']);_0x5ed7b7&&this['_closeAnnotation'](_0x5ed7b7),_0x33d078();}}));}['afterInit'](){const _0x2532cb=this['editor']['plugins']['get'](M);_0x2532cb['context']===this['editor']&&(_0x2532cb['hasActive']()||_0x2532cb['switchTo']('inline'));}['setActiveAnnotation'](_0x8f20a1){_0x8f20a1!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x8f20a1&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x8f20a1)&&this['_addAnnotationToBalloon'](_0x8f20a1,!0x0),_0x8f20a1['isActive']=!0x0),_0x8f20a1||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x8f20a1);}['attach'](_0x16f8d9){this['annotations']=_0x16f8d9;const _0x11ea59=this['editor']['plugins']['get'](M),_0x22dec4=this['_balloon'];if(this['isAttached'])throw new _0x1d8fe5('inlineannotations-attach-already-attached',this);if(_0x11ea59['context']!==this['editor'])throw new _0x1d8fe5('inlineannotations-not-allowed-with-context',this);const _0x99d3c0=this['editor']['plugins']['get'](P);this['listenTo'](_0x99d3c0,'refresh',()=>{const _0x784118=_0x99d3c0['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x36607c,_0x31a784;!this['_forceRefresh']&&(_0x36607c=_0x784118,_0x31a784=this['_selectedAnnotations'],_0x36607c['length']===_0x31a784['length']&&_0x36607c['every'](_0x511764=>_0x31a784['includes'](_0x511764)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x784118),this['setActiveAnnotation'](_0x784118[0x0]||null));}),this['listenTo'](_0x99d3c0,'blur',(_0x2a9f2f,{isAnnotationTracked:_0x22489b})=>{this['activeAnnotation']&&_0x22489b(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x5bdcd4,_0x52cdd2,_0x254ba2)=>{_0x254ba2||this['setActiveAnnotation'](null);}),this['listenTo'](_0x16f8d9,'remove',(_0x33aae8,_0x3e8d7e)=>{this['_removeAnnotationFromBalloon'](_0x3e8d7e),_0x3e8d7e===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x22dec4,'change:visibleView',(_0x49b685,_0x45012c,_0x3f1305,_0x21afb5)=>{_0x21afb5&&this['stopListening'](_0x21afb5);const _0x2d80c0=_0x16f8d9['getByView'](_0x3f1305);_0x3f1305&&_0x2d80c0&&(this['listenTo'](_0x3f1305,'change:height',()=>{_0x22dec4['updatePosition']();}),this['listenTo'](_0x3f1305,'Esc',()=>{this['_closeAnnotation'](_0x2d80c0),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x2d80c0&&this['setActiveAnnotation'](_0x2d80c0));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x22dec4['visibleView']&&(_0x16f8d9['getByView'](_0x22dec4['visibleView'])&&_0x22dec4['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 _0x1d8fe5('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x158764 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x158764);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x2e5dde){for(const _0x529a91 of this['_selectedAnnotations'])_0x2e5dde['includes'](_0x529a91)||this['_manuallyClosed']['delete'](_0x529a91);for(const _0x50fcdd of this['annotations'])_0x2e5dde['includes'](_0x50fcdd)||this['_removeAnnotationFromBalloon'](_0x50fcdd);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x4348b0 of _0x2e5dde)this['_addAnnotationToBalloon'](_0x4348b0);}this['_selectedAnnotations']=_0x2e5dde;}['_addAnnotationToBalloon'](_0x2d09cf,_0x1cb5d2=!0x1){this['_manuallyClosed']['has'](_0x2d09cf)||(this['_addedAnnotations']['has'](_0x2d09cf)||this['_balloon']['hasView'](_0x2d09cf['view'])||(this['_addedAnnotations']['add'](_0x2d09cf),this['_balloon']['add']({'stackId':_0x2d09cf['view']['id'],'view':_0x2d09cf['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x2d09cf)}})),_0x1cb5d2&&this['_balloon']['showStack'](_0x2d09cf['view']['id']));}['_getBalloonTargetForAnnotation'](_0x333cfd){const _0x42a679=_0x333cfd['target'],_0x1b1ff1=this['editor']['editing']['view'],_0x294a41=_0x1b1ff1['document']['selection']['getFirstRange'](),_0x2a60b5=_0x1b1ff1['domConverter']['viewRangeToDom'](_0x294a41);if(_0x2a60b5['collapse'](!0x0),_0x42a679){if(_0x42a679 instanceof _0x14d501)return _0x42a679;let _0x56352d=[];for(const _0x1f7186 of _0x42a679)_0x56352d['push'](...(_0x5100a2=_0x1f7186['getClientRects'](),Array['from'](_0x5100a2)['map'](DOMRect['fromRect'])));_0x56352d=function(_0x27e8aa){const _0x4c960d=[];let _0x323892=_0x27e8aa[0x0];for(let _0x51582d=0x1;_0x51582d<_0x27e8aa['length'];_0x51582d++)b(_0x323892,_0x27e8aa[_0x51582d])?_0x323892['width']+=_0x27e8aa[_0x51582d]['width']:(_0x4c960d['push'](_0x323892),_0x323892=_0x27e8aa[_0x51582d]);return _0x4c960d['push'](_0x323892),_0x4c960d;}(_0x56352d);const _0x3e25c6=_0x2a60b5['getBoundingClientRect']();return _0x56352d['find'](_0x5cbb58=>_0x5cbb58['top']<=_0x3e25c6['top']&&_0x5cbb58['bottom']>=_0x3e25c6['bottom']&&_0x5cbb58['left']<=_0x3e25c6['left']&&_0x5cbb58['right']>=_0x3e25c6['right'])||_0x56352d[0x0];}var _0x5100a2;return _0x333cfd['targetRect']||_0x2a60b5;}['_removeAnnotationFromBalloon'](_0xdda5ce){this['_addedAnnotations']['has'](_0xdda5ce)&&this['_balloon']['hasView'](_0xdda5ce['view'])&&(this['_addedAnnotations']['delete'](_0xdda5ce),this['_balloon']['remove'](_0xdda5ce['view']));}['_closeAnnotation'](_0x20ba4d){this['_manuallyClosed']['add'](_0x20ba4d),this['_removeAnnotationFromBalloon'](_0x20ba4d);}}function b(_0xbe231b,_0x7197cc){return _0xbe231b['top']===_0x7197cc['top']&&_0xbe231b['bottom']===_0x7197cc['bottom']&&_0xbe231b['right']===_0x7197cc['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(_0x36f5a0,_0xf814e7){super(_0x36f5a0),this['set']('isEmpty',!_0xf814e7['length']),this['focusTracker']=new _0x4272aa(),this['_annotationViews']=_0xf814e7,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0xf814e7,'focusTracker':this['focusTracker']}),this['listenTo'](_0xf814e7,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0xf814e7,'remove',(_0x21f33b,_0x5785f6)=>{_0x5785f6['isActive']&&this['focus'](),_0xf814e7['length']||(this['isEmpty']=!0x0);});const _0x17c3f6=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x36f5a0,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0xf814e7},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x17c3f6['if']('isEmpty','ck-hidden',_0x1c2a86=>!_0x1c2a86)]},'children':[{'text':S(_0x36f5a0,'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 _0xf53615 of this['_annotationViews'])this['focusTracker']['add'](_0xf53615['element']);this['_annotationViews']['on']('change',(_0x185762,{added:_0x1656c7,removed:_0x2e9567})=>{for(const _0x4222a7 of _0x1656c7)this['focusTracker']['add'](_0x4222a7['element']);for(const _0xc378a5 of _0x2e9567)this['focusTracker']['remove'](_0xc378a5['element']);});}}class f extends _0x579572{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x188bb5){super(_0x188bb5),this['archivedThreads']=new _0xc841e1();}['init'](){const _0x589322=this['context'],_0x19a4cd=_0x589322['plugins']['get'](o),_0x10a46f=_0x589322['plugins']['get'](N);this['listenTo'](_0x19a4cd,'addCommentThread',(_0x4b745b,{threadId:_0x371f59})=>{const _0x3c6180=_0x19a4cd['getCommentThread'](_0x371f59);_0x3c6180['archivedAt']&&this['archivedThreads']['add'](_0x3c6180,this['_calculatePosition'](_0x3c6180['archivedAt'])),this['listenTo'](_0x3c6180,'change:archivedAt',(_0x3245a0,_0x2f9425,_0x5b3b39)=>{_0x5b3b39?this['archivedThreads']['has'](_0x3c6180)||this['archivedThreads']['add'](_0x3c6180,this['_calculatePosition'](_0x3c6180['archivedAt'])):this['archivedThreads']['has'](_0x3c6180)&&this['archivedThreads']['remove'](_0x3c6180);});}),this['listenTo'](_0x19a4cd,'removeCommentThread',(_0x6caaa1,{threadId:_0x29c122})=>{const _0xb9dcef=_0x19a4cd['getCommentThread'](_0x29c122);this['stopListening'](_0xb9dcef),this['archivedThreads']['has'](_0xb9dcef)&&this['archivedThreads']['remove'](_0xb9dcef);},{'priority':'highest'}),this['listenTo'](_0x10a46f['collection'],'focus',(_0x1e0430,_0x2a2355)=>{_0x2a2355['isVisible']||(_0x2a2355['isActive']=!0x0,_0x10a46f['activate'](_0x2a2355));});}['_calculatePosition'](_0x361505){const _0x1e13e5=[...this['archivedThreads']]['findIndex'](_0x4eb0b1=>_0x4eb0b1['archivedAt']<_0x361505);return _0x1e13e5>-0x1?_0x1e13e5:this['archivedThreads']['length'];}}class a extends _0x3dc7ee{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x212454];}constructor(_0xf63364){super(_0xf63364),this['annotationViews']=new _0x4578e3(),this['_pendingThreads']=[];}['init'](){const _0x3c808a=this['editor'],_0x14e0db=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x3c808a['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0xefe3d5,!0x0)),_0x3c808a['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x540511=this['_createCommentsArchiveButton'](_0x3ae33b);return _0x540511['set']({'role':'menuitemcheckbox'}),_0x540511;});const _0x257732=_0x3c808a['plugins']['get'](f),_0x5c3d98=_0x3c808a['plugins']['get']('Annotations'),_0x1fbc89=_0x3c808a['plugins']['get']('CommentsRepository');_0x257732['archivedThreads']['forEach'](_0x1b9443=>{this['_handleNewThread'](_0x1b9443);}),this['listenTo'](_0x257732['archivedThreads'],'add',(_0x482958,_0x398f9)=>{this['_handleNewThread'](_0x398f9);}),this['listenTo'](_0x5c3d98['collection'],'add',(_0x5c8800,_0x401156)=>{const _0x2da0b2=this['_pendingThreads']['find'](_0x136010=>{const _0x3cde65=_0x1fbc89['_threadToController']['get'](_0x136010);return _0x3cde65&&_0x401156['innerView']===_0x3cde65['view'];});if(_0x2da0b2){const _0x50c1b0=this['_calculatePosition'](_0x2da0b2['archivedAt']);this['annotationViews']['add'](_0x401156['view'],_0x50c1b0),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2da0b2),0x1);}}),this['listenTo'](_0x257732['archivedThreads'],'remove',(_0x33f43e,_0x1770b9)=>{const _0x14c9c4=_0x3c808a['config']['get']('collaboration.channelId');if(!_0x14c9c4||_0x1770b9['channelId']===_0x14c9c4){const _0x134236=_0x1fbc89['_threadToController']['get'](_0x1770b9),_0x35a9e9=_0x5c3d98['getByInnerView'](_0x134236['view']);this['annotationViews']['remove'](_0x35a9e9['view']),this['stopListening'](_0x35a9e9['focusableElements']);}}),this['listenTo'](_0x5c3d98['collection'],'add',(_0x49dab7,_0x37b101)=>{this['listenTo'](_0x37b101,'escape',_0x14e0db);}),this['listenTo'](_0x5c3d98['collection'],'remove',(_0x1798df,_0xc72a7f)=>{this['stopListening'](_0xc72a7f,'escape',_0x14e0db);});}['_handleNewThread'](_0x1f49ca){const _0x29c6b3=this['editor']['plugins']['get']('CommentsRepository'),_0x7abb65=this['editor']['plugins']['get']('Annotations'),_0x1f735d=this['editor']['config']['get']('collaboration.channelId');if(!_0x1f735d||_0x1f49ca['channelId']===_0x1f735d){const _0x34580c=_0x29c6b3['_threadToController']['get'](_0x1f49ca);if(!_0x34580c)return void this['_pendingThreads']['push'](_0x1f49ca);const _0x5c1a49=this['_calculatePosition'](_0x1f49ca['archivedAt']),_0x161632=_0x7abb65['getByInnerView'](_0x34580c['view']);_0x161632['isVisible']&&_0x7abb65['_visibleAnnotations']['remove'](_0x161632),this['annotationViews']['add'](_0x161632['view'],_0x5c1a49);}}['_calculatePosition'](_0x51cb72){const _0x4e8b8c=this['editor']['config']['get']('collaboration.channelId'),_0x263e30=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x27119b=>_0x27119b['channelId']===_0x4e8b8c)['findIndex'](_0x10066f=>_0x10066f['archivedAt']<_0x51cb72);return _0x263e30<0x0||_0x263e30>this['annotationViews']['length']?this['annotationViews']['length']:_0x263e30-0x1;}['_toggleDialog'](){const _0x59b4cc=this['editor'],_0x2903fc=_0x59b4cc['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x59b4cc['locale'],this['annotationViews'])),'commentsArchive'===_0x2903fc['id']?_0x2903fc['hide']():_0x2903fc['show']({'id':'commentsArchive','title':S(_0x59b4cc['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x340c8b['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x5c8fd4,_0x2ee436=!0x1){const _0x1a812f=this['editor']['locale'],_0x5d79ff=this['editor']['plugins']['get']('Dialog'),_0x8cba7d=new _0x5c8fd4(_0x1a812f);return _0x8cba7d['bind']('isEnabled')['to'](this,'isEnabled'),_0x8cba7d['bind']('isOn')['to'](_0x5d79ff,'id',_0x1ff968=>'commentsArchive'===_0x1ff968),_0x8cba7d['set']({'label':S(_0x1a812f,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x2ee436&&(_0x8cba7d['tooltip']=!0x0),this['listenTo'](_0x8cba7d,'execute',()=>this['_toggleDialog']()),_0x8cba7d;}['_hideDialogOnAnnotationEscape']=_0x4e2db7=>{const _0x2d0569=_0x4e2db7['source'];if(!this['annotationViews']['has'](_0x2d0569['view']))return;const _0x1bf7e6=this['editor']['plugins']['get']('Dialog');_0x1bf7e6['isOpen']&&'commentsArchive'===_0x1bf7e6['id']&&(_0x1bf7e6['hide'](),_0x4e2db7['stop']());};}class p extends _0x3dc7ee{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};