@ckeditor/ckeditor5-comments 44.0.0-alpha.7 → 44.0.0-alpha.8

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 (192) hide show
  1. package/LICENSE.md +7 -7
  2. package/README.md +9 -5
  3. package/build/comments.js +1 -1
  4. package/dist/index.js +9 -9
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/annotations/annotation.js +2 -2
  151. package/src/annotations/annotationcollection.js +1 -1
  152. package/src/annotations/annotations.js +1 -1
  153. package/src/annotations/annotationsuis.js +1 -1
  154. package/src/annotations/editorannotations.js +1 -1
  155. package/src/annotations/inlineannotations.js +1 -1
  156. package/src/annotations/narrowsidebar.js +1 -1
  157. package/src/annotations/sidebar.js +1 -1
  158. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  159. package/src/annotations/view/annotationview.js +1 -1
  160. package/src/annotations/view/sidebaritemview.js +1 -1
  161. package/src/annotations/view/sidebarview.js +1 -1
  162. package/src/annotations/widesidebar.js +1 -1
  163. package/src/comments/addcommentthreadcommand.js +1 -1
  164. package/src/comments/commentsarchive.js +1 -1
  165. package/src/comments/commentsarchiveui.js +1 -1
  166. package/src/comments/commentsediting.js +1 -1
  167. package/src/comments/commentsrepository.js +3 -3
  168. package/src/comments/commentsui.js +1 -1
  169. package/src/comments/integrations/clipboard.js +1 -1
  170. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  171. package/src/comments/integrations/importword.js +1 -1
  172. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  173. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  174. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  175. package/src/comments/ui/commentthreadcontroller.js +2 -2
  176. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  177. package/src/comments/ui/view/basecommentview.js +1 -1
  178. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  179. package/src/comments/ui/view/commentcontentview.js +1 -1
  180. package/src/comments/ui/view/commentinputview.js +1 -1
  181. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  182. package/src/comments/ui/view/commentslistview.js +1 -1
  183. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  184. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  185. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  186. package/src/comments/ui/view/commentthreadview.js +2 -2
  187. package/src/comments/ui/view/commentview.js +2 -2
  188. package/src/comments.js +1 -1
  189. package/src/commentsonly.js +1 -1
  190. package/src/index.js +1 -1
  191. package/src/utils/common-translations.js +1 -1
  192. 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 _0x2d6b23,icons as _0x598f69,ContextPlugin as _0x7c7096,PendingActions as ht,Command as _0x291848,Plugin as _0xa0021b,Context as _0x193a68}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x512d55,uid as _0x109359,KeystrokeHandler as jt,FocusTracker as _0x5db882,diff as _0x278d2b,Collection as _0x236234,Rect as _0x738b58,CKEditorError as _0x5ed8e1,first as _0x5c4456,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x103f73,keyCodes as _0xd43df1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x5ec6c6,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x33ec71,trimHtml as _0x17576e,LateFocusDropdownButtonView as _0x566223,Users as it,getDateTimeFormatter as mt,hashObject as lt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x775450}from'ckeditor5-collaboration/dist/index.js';import{throttle as bt,isEqual as It,cloneDeep as pt,set as wt,unset as At,debounce as _0x14ec9d}from'lodash-es';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as Ft,ButtonView as _0x1265c2,ViewCollection as _0x5c0d53,createDropdown as _0x143ab4,ListView as _0x53997a,focusChildOnDropdownOpen as _0x3a7127,ListItemView as _0x271ccf,MenuBarMenuListItemButtonView as _0x4196d8,BodyCollection as _0x4c3585,BalloonPanelView as _0x47e98a,ContextualBalloon as _0x57430a,Dialog as _0x69d321,DialogViewPosition as _0x3543f1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x8d358d}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 Lt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Nt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x1aee3f}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
24
- _0x512d55(){['model'];['view'];constructor(_0x35bbc3,_0x12cf41){super(),this['model']=_0x35bbc3,this['model']['_isAttached']=!0x0,this['view']=_0x12cf41,this['listenTo'](_0x12cf41,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x12cf41,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x12cf41,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x12cf41,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x12cf41,'addComment',(_0x368311,_0x4a487a)=>this['addComment'](_0x4a487a)),this['listenTo'](_0x12cf41,'updateComment',(_0x1a8b50,_0x1ad618,_0x36e6f4)=>this['updateComment'](_0x1ad618,_0x36e6f4)),this['listenTo'](_0x12cf41,'removeComment',(_0x478495,_0x113cb5)=>this['removeComment'](_0x113cb5));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x33d256){this['model']['addComment']({'content':_0x33d256,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x346b53,_0x488fa2){this['model']['getComment'](_0x346b53)['update']({'content':_0x488fa2});}['removeComment'](_0x4eeead){this['model']['getComment'](_0x4eeead)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x332343,_0x1f95bf,_0x15678a){const t=_0x332343['t'];switch(_0x1f95bf){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'},_0x15678a);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'},_0x15678a);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'},_0x15678a);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'},_0x15678a);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x15678a);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'},_0x15678a);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'},_0x15678a);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'},_0x15678a);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0x2ea12b,_0x40449c){super(_0x2ea12b);const _0x166b1a=_0x109359();this['main']=this['createCollection'](),this['editable']=new $t(_0x2ea12b,_0x40449c,void 0x0,{'label':()=>S(_0x2ea12b,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x2ea12b['uiLanguageDirection'],'lang':_0x2ea12b['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x166b1a},'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 Ut{['view'];constructor(_0x1aafcb){super(_0x1aafcb),this['view']=new Vt(_0x1aafcb['locale'],_0x1aafcb['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x20953a=this['editor']['editing']['view'],_0x17ac33=this['view']['editable'],_0x426ab4=_0x20953a['document']['getRoot']();_0x17ac33['name']=_0x426ab4['rootName'],this['view']['render']();const _0x12bb9d=_0x17ac33['element'];this['setEditableElement'](_0x17ac33['name'],_0x12bb9d),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x20953a['attachDomRoot'](_0x12bb9d),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[Bt,Et,Gt,Jt,Kt,Lt,Nt];class Rt extends/* #__PURE__ -- @preserve */
25
- _0x512d55(_0x2d6b23){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x18dfa4={}){function _0x45b589(_0x26e43e){return _0x26e43e['map'](_0x1086ac=>String['fromCharCode'](_0x1086ac))['join']('');}(_0x18dfa4=Object['assign']({},_0x18dfa4))['plugins']||(_0x18dfa4['plugins']=Rt['defaultPlugins']),super(_0x18dfa4),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[_0x45b589([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45b589([0x76,0x69,0x65,0x77])][_0x45b589([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45b589([0x61,0x75,0x74,0x6f]),this[_0x45b589([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x45b589([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45b589([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x45b589([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x45b589([0x6f,0x6b])});}['create'](){const _0xde5618=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0xde5618))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x2bd64a=>{const _0x1dee04=this['model']['document']['getRoot'](),_0x525155=_0x1dee04&&_0x1dee04['getChild'](_0x1dee04['childCount']-0x1);_0x2bd64a['setSelection'](_0x525155,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x50212f=this['editing']['view'],_0x32166d=_0x50212f['document']['getRoot'](),_0x3f52c3=_0x32166d['getChild'](0x0);_0x32166d['childCount']>0x1||!_0x3f52c3||'p'!=_0x3f52c3['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x50212f,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3f52c3['placeholder']=this['placeholder']),St({'view':_0x50212f,'element':_0x3f52c3,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3f52c3);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x37182f,_0x561fca={}){super(_0x37182f),this['editor']=null,this['_editorConfig']=_0x561fca,this['set']('value',_0x561fca['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x37182f,'Reply...')),this['set']('submitLabel',S(_0x37182f,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x5db882(),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',(_0x277e8d,_0x4e5bfa)=>{this['cancelButtonView']['fire']('execute'),_0x4e5bfa();}),this['keystrokes']['set']('Ctrl+Enter',(_0x871229,_0x3c72e3)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x3c72e3());}),this['on']('submit',(_0x1b0aea,_0x2c68c3)=>{_0x2c68c3['length']>0xfde8?(alert(S(_0x37182f,'TOO_LONG_COMMENT_ALERT',[_0x2c68c3['length'],0xfde8])),_0x1b0aea['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x241d11=this['editor'];this['element']['insertBefore'](_0x241d11['ui']['element'],this['element']['firstChild']),_0x241d11['model']['document']['on']('change',()=>this['value']=_0x241d11['getData']()),_0x241d11['bind']('placeholder')['to'](this),this['focusables']['add'](_0x241d11['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x482b19){-0x1===_0x482b19?(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:_0x1c304e}=this,_0x1b1636=new _0x1265c2(_0x1c304e);return _0x1b1636['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x1b1636['withText']=!0x0,_0x1b1636['bind']('label')['to'](this,'submitLabel'),_0x1b1636['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x1b1636['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x5cd6a3,_0x82748e)=>!_0x82748e&&!!_0x5cd6a3['trim']()),_0x1b1636;}['_createCancelButton'](){const {locale:_0x47fc0b}=this,_0x38a609=new _0x1265c2(_0x47fc0b);return _0x38a609['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x38a609['label']=S(_0x47fc0b,'Cancel'),_0x38a609['withText']=!0x0,_0x38a609['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x38a609;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x4bbc0b=>{this['focusTracker']['add'](_0x4bbc0b['element']);}),this['focusables']['on']('change',(_0xdb44f8,_0x169b9b)=>{for(const _0x23231f of Array['from'](_0x169b9b['added'])['reverse']())this['focusTracker']['add'](_0x23231f['element']);});}}class ie extends kt{constructor(_0x4dfc73,_0x303dac,_0x2c66cc){super(_0x4dfc73),this['commentInputView']=new hs(_0x4dfc73,_0x2c66cc),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x4c35c1,_0x2f5ff4)=>_0x4c35c1||!!_0x2f5ff4),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 _0x5ec6c6(_0x4dfc73,_0x303dac),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'](_0x5e9f56){this['commentInputView']['focus'](_0x5e9f56);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x3a2ce8,_0x3c6105)=>{const {submitButtonView:_0x24b0f8,cancelButtonView:_0x5915aa,editor:_0x457150}=this['commentInputView'];[_0x24b0f8['element'],_0x5915aa['element'],_0x457150?_0x457150['editing']['view']['getDomRoot']():null]['filter'](_0x4cdc7a=>_0x4cdc7a)['some'](_0x532614=>_0x532614['contains'](_0x3c6105['target']))||(this['focus'](),_0x3c6105['preventDefault']());});}}class cs extends kt{constructor(_0x5eb2ef){super(_0x5eb2ef);const _0xb26d11=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0xb26d11['to']('count',_0x75192b=>S(_0x5eb2ef,'NUMBER_OF_COMMENTS',_0x75192b))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x1f6b54,_0x380c4d,_0x134013){super(_0x1f6b54);const _0x5ee9a3=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x380c4d['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x380c4d,this['_config']=_0x134013,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x5db882(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4542bb=>this['commentViews']['map'](_0x44ebb3=>_0x44ebb3['element'])['includes'](_0x4542bb['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x1f6b54),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x42b6a4=>_0x42b6a4-this['_config']['maxCommentsWhenCollapsed']);for(const _0x3c68e3 of _0x380c4d['comments'])this['_handleNewCommentModel'](_0x3c68e3);this['_handleInfoComment'](),this['listenTo'](_0x380c4d['comments'],'add',(_0x42fb17,_0x41c6b3)=>{const _0x422d4e=this['_calculatePosition'](_0x41c6b3);this['length']++,this['_handleNewCommentModel'](_0x41c6b3,_0x422d4e),this['refreshVisibleViews']();}),this['listenTo'](_0x380c4d['comments'],'remove',(_0x33f33c,_0x434cc5)=>{this['length']--,this['_handleRemoveCommentModel'](_0x434cc5),this['refreshVisibleViews']();}),this['listenTo'](_0x380c4d,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x380c4d,'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',_0x5ee9a3['if']('length','ck-hidden',_0x23e803=>!_0x23e803)],'aria-label':S(_0x1f6b54,'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'](_0x58360e){-0x1===_0x58360e?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0xe0c3f7 of this['commentViews'])_0xe0c3f7['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x4246e2,_0x23a0bd){const _0x2d2c59=new this['_config']['CommentView'](this['locale'],_0x4246e2,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x2d2c59['viewUid']=_0x4246e2['id'],_0x2d2c59['delegate']('removeComment')['to'](this),_0x2d2c59['delegate']('updateComment')['to'](this),_0x2d2c59['delegate']('resolveCommentThread')['to'](this),_0x2d2c59['delegate']('editorReady')['to'](this),_0x2d2c59['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x2d2c59,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x2d2c59,_0x23a0bd);}['_calculatePosition'](_0x3aebe0){const _0x36326f=this['_model']['_findOptimalIndex'](_0x3aebe0);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x3aebe0['authoredAt']?_0x36326f-0x1:_0x36326f:_0x36326f-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x13a88a={'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'],_0x13a88a,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x13a88a));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x12c407){const _0x59f6c9=this['commentViews']['remove'](_0x12c407['id']);this['stopListening'](_0x59f6c9),_0x59f6c9['isEditMode']&&this['_updateHasDirtyComment'](),_0x59f6c9['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2b4413=>_0x2b4413['isEditMode']);}['_rearrangeCollapse'](){const _0x5d428a=function(_0xf0cd50){const _0x503259=new _0x236234();for(const _0x26b199 of _0xf0cd50)_0x503259['add'](_0x26b199);return _0x503259;}(this['commentViews']),_0x292496=this['_collapsedCommentsView']['count'];for(let _0xb4e9b9=0x1;_0xb4e9b9<=_0x292496;_0xb4e9b9++)_0x5d428a['remove'](0x1);for(const _0x1dd140 of _0x5d428a)_0x1dd140['collapse']();_0x292496>0x0&&_0x5d428a['add'](this['_collapsedCommentsView'],0x1),ns(_0x278d2b(Array['from'](this['visibleViews']),Array['from'](_0x5d428a)),this['visibleViews'],_0x5d428a);}['_rearrangeExpand'](){ns(_0x278d2b(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x335123 of this['visibleViews'])_0x335123['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x4ad2d1=>{this['focusTracker']['add'](_0x4ad2d1['element']),this['keystrokes']['listenTo'](_0x4ad2d1['element']);}),this['commentViews']['on']('change',(_0x7c152f,_0x334b46)=>{for(const _0x3c42e7 of _0x334b46['removed'])this['focusTracker']['remove'](_0x3c42e7['element']),this['keystrokes']['stopListening'](_0x3c42e7['element']);for(const _0x2c7a64 of Array['from'](_0x334b46['added'])['reverse']())this['focusTracker']['add'](_0x2c7a64['element']),this['keystrokes']['listenTo'](_0x2c7a64['element']);});}}function ns(_0x3f7669,_0x1a85bd,_0xeaebcd){let _0x148591=0x0;for(const _0x2e3746 of _0x3f7669)switch(_0x2e3746){case'insert':_0x1a85bd['add'](_0xeaebcd['get'](_0x148591),_0x148591),_0x148591++;break;case'delete':_0x1a85bd['remove'](_0x148591);break;case'equal':_0x148591++;}}class as extends kt{constructor(_0x40a187){super(_0x40a187);const _0x325f40=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x325f40['to']('contextValue',_0x1da799=>S(_0x40a187,'THREAD_CONTEXT_LABEL',_0x1da799)),'tabindex':-0x1},'children':[{'text':_0x325f40['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5af935,_0x560969){super(_0x5af935);const _0xff47e4=this['bindTemplate'];this['_model']=_0x560969,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x5db882(),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',_0x6ed0ce=>!!_0x6ed0ce),this['bind']('contextValue')['to'](this['_model'],'context',_0x5b1196=>_0x5b1196&&_0x5b1196['value']?this['_trimContextValue'](_0x5b1196['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',_0xff47e4['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 _0x5b56ba=new _0x1265c2(this['locale']);return _0x5b56ba['label']=S(this['locale'],'Reopen'),_0x5b56ba['tooltip']=S(this['locale'],'Reopen'),_0x5b56ba['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>',_0x5b56ba['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xddecdc=>!_0xddecdc),_0x5b56ba['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x19835b,_0x5872db)=>_0x19835b&&_0x5872db),_0x5b56ba['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x5b56ba;}['_trimContextValue'](_0x5f2811){if(_0x5f2811['length']<0x96)return _0x5f2811;const _0xe4f726=_0x5f2811['lastIndexOf']('\x20',0x93);return _0x5f2811['substring'](0x0,_0xe4f726>-0x1?_0xe4f726:0x93)+'...';}['_attachContextActions'](){const _0x1cee90=this['element']['querySelector']('.ck-context'),_0x2bbdf2=_0x1cee90['querySelector']('.ck-context__value');this['listenTo'](_0x1cee90,'mouseenter',()=>{_0x2bbdf2['offsetWidth']<_0x2bbdf2['scrollWidth']&&_0x1cee90['classList']['add']('overlay');}),this['listenTo'](_0x1cee90,'mouseleave',()=>{_0x1cee90['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x591763 of this['focusables'])this['focusTracker']['add'](_0x591763['element']),this['keystrokes']['listenTo'](_0x591763['element']);}['_createContextView'](){const _0x955b6d=new as(this['locale']);return _0x955b6d['bind']('contextValue')['to'](this),_0x955b6d;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x4d6733,_0xad4b44,_0x1a8f51,_0x1e03b9){super(_0x4d6733),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xad4b44,this['_localUser']=_0x1a8f51,this['_config']=_0x1e03b9,this['commentThreadHeaderView']=new Yt(_0x4d6733,_0xad4b44),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x4d6733,S(_0x4d6733,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x4d6733,_0xad4b44,Object['assign']({'CommentView':this['_config']['CommentView']},_0x1e03b9)),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',(_0x1163f5,_0x5f2548)=>_0x1163f5||!!_0x5f2548),this['bind']('isUnlinked')['to'](_0xad4b44,'unlinkedAt',_0x44c067=>!!_0x44c067),this['bind']('ariaLabel')['to'](this,'length',_0x580727=>{const _0x465bcc=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x580727,_0x465bcc]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x5db882(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3e4421=>_0x3e4421['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x25143e=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x133387=_0x25143e['commentInputView'];return _0x25143e['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x133387,'value',(_0x54e813,_0x9649c9,_0x504b7d,_0x5590fd,_0x3b0f73)=>!!_0x3b0f73||!!_0x5590fd&&_0x504b7d&&!_0x9649c9||_0x54e813&&_0x504b7d&&!_0x9649c9),_0x133387['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x57fdc5,_0x598f03,_0x46b65e)=>{let _0xb32308;return _0xb32308=_0x46b65e&&_0x598f03?'Reply\x20to\x20reopen\x20discussion...':_0x57fdc5?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0xb32308);}),_0x133387['bind']('submitLabel')['to'](this,'length',_0x2f96e3=>S(this['locale'],_0x2f96e3?'Reply':'Comment')),_0x133387['on']('submit',(_0x42fadd,_0xe3240e)=>{this['fire']('addComment',_0xe3240e),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x133387['on']('cancel',()=>{this['focus']();}),_0x133387['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x133387['on']('cancel',_0x4ce7b0=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x4ce7b0['stop']());}),this['on']('change:isActive',(_0x3937fb,_0x8fd62f,_0x3c534b)=>{_0x3c534b||this['length']||_0x133387['value']||this['fire']('removeCommentThread');}),_0x25143e;}}class Ct extends/* #__PURE__ -- @preserve */
27
- ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x43fdc7,_0x2c7652,_0xab914c,_0x43aca9){super(_0x43fdc7,_0x2c7652,_0xab914c,_0x43aca9),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x43fdc7,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x5de90a,_0x21bcd8,_0x56de58)=>{_0x56de58||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x19c1df,_0x59151b,_0xc47340)=>{_0xc47340&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x1e33b7=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x1e33b7['if']('isActive','ck-thread--active'),_0x1e33b7['if']('isUnlinked','ck-thread--unlinked'),_0x1e33b7['if']('isConfirm','ck-thread--remove-confirmation'),_0x1e33b7['to']('actionIndicator',_0x523461=>_0x523461?'ck-thread--'+_0x523461:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1e33b7['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 _0x3dc513 of this['commentsListView']['commentViews'])_0x3dc513['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x50c16f}=this,_0x40a0a0=this['commentsListView']['commentViews']['get'](0x0);_0x40a0a0===this['_boundFirstCommentView']||_0x40a0a0['isSystemComment']||(this['_boundFirstCommentView']=_0x40a0a0,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x40a0a0,'actionIndicator',_0x3cc93c=>'remove'===_0x3cc93c?'remove':null),_0x40a0a0['placeholder']=S(_0x50c16f,'Write\x20a\x20comment...'),_0x40a0a0['removeButton']['on']('execute',_0x301d00=>{_0x301d00['stop'](),this['showConfirm'](S(_0x50c16f,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x40a0a0['focus']();}),_0x40a0a0['actionBar']['add'](this['resolveButton'],0x0),_0x40a0a0['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x57402f=new _0x33ec71(this['locale']);return _0x57402f['label']=S(this['locale'],'Resolve'),_0x57402f['tooltip']=S(this['locale'],'Resolve'),_0x57402f['icon']=_0x598f69['check'],_0x57402f['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x57402f['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1ed874=>!_0x1ed874),_0x57402f['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5ce54d,_0x3b485a)=>_0x5ce54d&&!_0x3b485a),_0x57402f['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x57402f;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0xcbbfb8){super(_0xcbbfb8),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x56c4a4,_0x59da02,_0x4f4757)=>{this['element']['innerHTML']=_0x4f4757;}),this['element']['innerHTML']=this['content'];}}class os extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2f84c3,_0x168d80,_0x49cba0){super(_0x2f84c3),this['_model']=_0x168d80,this['_config']=_0x49cba0,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x168d80,'content',_0x168d80,'authoredAt',(_0x5b6103,_0x5f1af7)=>S(_0x2f84c3,'COMMENT_ARIA_LABEL',[_0x168d80['author']['name'],_0x49cba0['formatDateTime'](_0x5f1af7),new DOMParser()['parseFromString'](_0x5b6103,'text/html')['body']['textContent'],_0x168d80['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x2f84c3,S(_0x2f84c3,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x5c0d53(),this['focusTracker']=new _0x5db882(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1e0fb3=>_0x1e0fb3['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 _0x48385b=new es(this['locale']);return _0x48385b['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x227a36,_0x4fe2e8)=>_0x4fe2e8?_0x17576e(_0x227a36,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x227a36),_0x48385b;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x34b838=new hs(this['locale'],this['_config']['editorConfig']);return _0x34b838['value']=this['_model']['content'],_0x34b838['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x34b838['submitLabel']=S(this['locale'],'Save'),_0x34b838['on']('submit',(_0x5b9166,_0x6c6578)=>{this['fire']('updateComment',this['_model']['id'],_0x6c6578),this['switchToDisplayMode'](),this['focus']();}),_0x34b838['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x34b838['once']('editorReady',()=>{_0x34b838['focus']();}),_0x34b838['createEditor'](),_0x34b838['delegate']('editorReady')['to'](this),_0x34b838['delegate']('editorDestroyed')['to'](this),_0x34b838;}['_setupKeyboardNavigation'](){const _0x4dd6ca=this['element'];this['keystrokes']['listenTo'](_0x4dd6ca);for(const _0x2adb51 of this['focusables'])this['focusTracker']['add'](_0x2adb51['element']),this['keystrokes']['listenTo'](_0x2adb51['element']);this['focusables']['on']('change',(_0x53476b,_0x524eb1)=>{for(const _0x2dc7a7 of _0x524eb1['removed'])this['focusTracker']['remove'](_0x2dc7a7['element']),this['keystrokes']['stopListening'](_0x2dc7a7['element']);for(const _0x44647a of _0x524eb1['added'])this['focusTracker']['add'](_0x44647a['element']),this['keystrokes']['listenTo'](_0x44647a['element']);}),this['keystrokes']['set']('enter',(_0x5accc4,_0x3e15df)=>{_0x4dd6ca===_0x5accc4['target']&&(this['focusCycler']['focusFirst'](),_0x3e15df());}),this['keystrokes']['set']('esc',(_0x46983d,_0x297912)=>{_0x4dd6ca!==_0x46983d['target']&&(this['focus'](),_0x297912());});}}class vt extends/* #__PURE__ -- @preserve */
28
- ti(os){['actionBar'];['userView'];constructor(_0x470d6c,_0x294c50,_0x182062){super(_0x470d6c,_0x294c50,_0x182062),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x470d6c,'Reply...')),this['bind']('authoredAt')['to'](_0x294c50),this['bind']('resolvedAt')['to'](_0x294c50),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 _0x5ec6c6(_0x470d6c,_0x294c50['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x294c50,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x299809=this['bindTemplate'],_0x8492f6=[{'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']}},{'tag':'time','attributes':{'datetime':_0x299809['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x299809['to']('authoredAt',_0x5d503c=>this['_config']['formatDateTime'](_0x5d503c))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x299809['if']('isEditMode','ck-comment__actions--hidden'),_0x299809['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']&&_0x8492f6['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x299809['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x299809['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x299809['if']('isEditMode','ck-comment--edit'),_0x299809['if']('isSystemComment','ck-comment--info'),_0x299809['to']('actionIndicator',_0x49bd5f=>_0x49bd5f?'ck-comment--'+_0x49bd5f:'')],'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':_0x8492f6}]}]};}['_createEditButton'](){const _0x462687=new _0x1265c2(this['locale']);return _0x462687['label']=S(this['locale'],'Edit'),_0x462687['icon']=_0x598f69['pencil'],_0x462687['withText']=!0x0,_0x462687['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x462687['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x25dec5=>!_0x25dec5),_0x462687['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x462687['on']('execute',()=>this['switchToEditMode']()),_0x462687;}['_createRemoveButton'](){const _0x2414c6=new _0x1265c2(this['locale']);return _0x2414c6['label']=S(this['locale'],'Remove'),_0x2414c6['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-2024,\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',_0x2414c6['withText']=!0x0,_0x2414c6['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x2414c6['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xe5b8e9=>!_0xe5b8e9),_0x2414c6['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x2414c6['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x2414c6;}['_createDropdown'](){const _0x3e7dee=_0x143ab4(this['locale'],_0x566223),_0x5c95c0=_0x3e7dee['panelView']['children'],_0x2e2b7e=new _0x53997a(this['locale']),_0x802b51=_0x3e7dee['bindTemplate'];_0x3a7127(_0x3e7dee,()=>this['items']['find'](_0x48291d=>_0x48291d['isVisible'])),_0x3e7dee['extendTemplate']({'attributes':{'class':[_0x802b51['if']('isVisible','ck-hidden',_0x49ff53=>!_0x49ff53)]}});const _0x11f656=(_0x2c87dc,_0x565362=-0x1)=>{const _0x22f100=new _0x271ccf(this['locale']);_0x22f100['children']['add'](_0x2c87dc);const _0xabed6c=_0x565362>-0x1?_0x565362:_0x2e2b7e['items']['length'];_0x2e2b7e['items']['add'](_0x22f100,_0xabed6c);const _0x322c26=Array['from'](this['items']);_0x3e7dee['unbind']('isEnabled','isVisible'),_0x3e7dee['bind']('isEnabled')['toMany'](_0x322c26,'isEnabled',(..._0x31572e)=>_0x31572e['some'](_0xeb579a=>_0xeb579a)),_0x3e7dee['bind']('isVisible')['toMany'](_0x322c26,'isVisible',(..._0x1a1671)=>_0x1a1671['some'](_0xc08253=>_0xc08253));};_0x3e7dee['panelPosition']='sw',_0x3e7dee['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x598f69['threeVerticalDots']});for(const _0xa228db of this['items'])_0x11f656(_0xa228db);return _0x5c95c0['add'](_0x2e2b7e),_0x3e7dee['listenTo'](this['items'],'add',(_0x105b3c,_0x59a1b0,_0x452078)=>{_0x11f656(_0x59a1b0,_0x452078);}),_0x3e7dee['listenTo'](this['items'],'remove',(_0x779c2d,_0x318edd,_0xca38aa)=>{_0x2e2b7e['items']['remove'](_0xca38aa);}),_0x3e7dee;}['_attachActions'](_0x4a258a,_0x546f67){const _0x5dd82d=_0x4a258a&&_0x4a258a['element'];_0x5dd82d&&(this['listenTo'](_0x5dd82d,'mouseenter',()=>this['actionIndicator']=_0x546f67),this['listenTo'](_0x5dd82d,'focus',()=>this['actionIndicator']=_0x546f67),this['listenTo'](_0x5dd82d,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x5dd82d,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x528ada=super['_createCommentInputView']();return _0x528ada['bind']('placeholder')['to'](this),_0x528ada;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Dt(_0xf30e57){const _0x2069cb=bt(_0xf30e57,0x1e),_0x4878a9=new MutationObserver(_0x402bd8=>{for(const _0x55814f of _0x402bd8)('attributes'==_0x55814f['type']&&'class'==_0x55814f['attributeName']||'childList'==_0x55814f['type']||'characterData'==_0x55814f['type'])&&_0x2069cb();});return{'attach'(_0x1cc83e){_0x4878a9['observe'](_0x1cc83e,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x4878a9['disconnect'](),_0x2069cb['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x5beb60,_0x37817b){super(_0x5beb60),this['id']=_0x109359(),this['focusTracker']=new _0x5db882(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x930c89,_0x57ec56)=>this['fire']('Esc',_0x57ec56)),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']=Dt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x37817b),this['mainView']=_0x37817b;const _0x162897=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x162897['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 _0x2a0397=this['element']['clientHeight'];_0x2a0397&&(this['height']=_0x2a0397);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x512d55(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x358222,target:_0x38f27a,type:_0xbac71f,isVisible:_0x50c6c5=!0x0}){super(),this['view']=_0x358222,this['view']['element']||this['view']['render'](),this['_type']=_0xbac71f,this['_target']=_0x38f27a,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x236234([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x2c75fa,_0x308e30)=>{this['view']['focusTracker']['add'](_0x308e30);}),this['focusableElements']['on']('remove',(_0x591ce9,_0x2acfa2)=>{this['view']['focusTracker']['remove'](_0x2acfa2);}),this['set']('isVisible',_0x50c6c5);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x553271=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x553271),_0x553271;}get['targetRect'](){const _0x20378f=this['target'];if(null===_0x20378f)return null;if(_0x20378f instanceof _0x738b58)return _0x20378f;const _0x3ee460=_0x20378f['filter'](_0xd26c24=>function(_0x4c7fd4){const _0x2443e3=_0x4c7fd4['offsetParent'];if(_0x2443e3)return!0x0;const _0x12f831=_0x4c7fd4['getClientRects']()['item'](0x0);return!!_0x12f831;}(_0xd26c24));return 0x0===_0x3ee460['length']?null:new _0x738b58(_0x3ee460[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x1591dd){this['view']['isActive']=_0x1591dd,this['view']['mainView']['isActive']=_0x1591dd;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x1565a6){if(!(null===_0x1565a6||_0x1565a6 instanceof _0x738b58||Array['isArray'](_0x1565a6)&&_0x1565a6['every'](_0x4d632d=>ne(_0x4d632d))))throw new _0x5ed8e1('annotation-invalid-target',null,{'target':_0x1565a6});}['_getNormalizedTarget'](){const _0x546605='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x546605)?[_0x546605]:_0x546605;}}function ne(_0x28991a){return null!==_0x28991a&&'object'==typeof _0x28991a&&'nodeType'in _0x28991a&&0x1===_0x28991a['nodeType'];}class x extends _0x236234{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x45b1c=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x5db882(),this['_focusTracker']['on']('change:isFocused',(_0x396ace,_0x1a1066,_0x5e1764)=>{_0x5e1764||this['fire']('blur');});for(const _0x11c77f of _0x45b1c)this['add'](_0x11c77f);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x5f24f7){if(this['has'](_0x5f24f7))throw new _0x5ed8e1('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x5f24f7['innerView'],_0x5f24f7),this['_viewToAnnotation']['set'](_0x5f24f7['view'],_0x5f24f7);for(const _0x539a06 of _0x5f24f7['focusableElements'])this['_focusTracker']['add'](_0x539a06);this['listenTo'](_0x5f24f7['focusableElements'],'add',(_0x3d8444,_0x503a66)=>{this['_focusTracker']['add'](_0x503a66);}),this['listenTo'](_0x5f24f7['focusableElements'],'remove',(_0x208ce3,_0x5bc01e)=>{this['_focusTracker']['remove'](_0x5bc01e);}),this['listenTo'](_0x5f24f7['view']['focusTracker'],'change:isFocused',(_0x68c7da,_0x38cc13,_0x191a06)=>{_0x191a06&&this['fire']('focus',_0x5f24f7);}),_0x5f24f7['updateTargetRect']();const _0x5b5f2e=this['_getOrderInContent'](_0x5f24f7['view']['targetRect']);return super['add'](_0x5f24f7,_0x5b5f2e);}['remove'](_0x266efe){if(!this['has'](_0x266efe))throw new _0x5ed8e1('annotationcollection-not-existing-item',null);this['stopListening'](_0x266efe['view']['focusTracker']),this['stopListening'](_0x266efe['focusableElements']);for(const _0x312807 of _0x266efe['focusableElements'])this['_focusTracker']['remove'](_0x312807);return this['_viewToAnnotation']['delete'](_0x266efe['view']),this['_innerViewToAnnotation']['delete'](_0x266efe['innerView']),super['remove'](_0x266efe);}['getByInnerView'](_0x2398e3){return this['_innerViewToAnnotation']['get'](_0x2398e3);}['getByView'](_0x48d8e4){return this['_viewToAnnotation']['get'](_0x48d8e4);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x220b80 of this)_0x220b80['updateTargetRect']();this['_sort']();}['_sort'](){const _0x3e293d=Array['from'](this)['sort']((_0x2c7b3c,_0x45a9f5)=>v(_0x2c7b3c['view']['targetRect'],_0x45a9f5['view']['targetRect']));for(let _0x30d10c=_0x3e293d['length']-0x1;_0x30d10c>0x0;_0x30d10c--){const _0xf97a11=_0x3e293d[_0x30d10c];_0x30d10c!==this['getIndex'](_0xf97a11)&&(this['remove'](_0xf97a11),this['add'](_0xf97a11));}}['_getOrderInContent'](_0x10b3ec){let _0x34cca3=0x0;if(!_0x10b3ec)return this['length'];for(const _0x1301f4 of this){const _0x423719=_0x1301f4['view']['targetRect'];if(_0x423719){if(v(_0x10b3ec,_0x423719)<0x0)return _0x34cca3;_0x34cca3++;}}return _0x34cca3;}}function v(_0x146632,_0x4e120d){if(null===_0x146632&&null===_0x4e120d)return 0x0;if(null===_0x146632)return-0x1;if(null===_0x4e120d)return 0x1;const _0xec154a=_0x146632['top']-_0x4e120d['top'];return 0x0==_0xec154a?_0x146632['left']-_0x4e120d['left']:_0xec154a;}class N extends _0x7c7096{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x402a9f){if(super(_0x402a9f),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x402a9f instanceof _0x2d6b23){const _0x286d4b=_0x402a9f['locale'];_0x402a9f['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x286d4b,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x286d4b,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x286d4b,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x286d4b,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x286d4b,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x286d4b,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x286d4b,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x36e245){this['collection']['add'](_0x36e245);}['remove'](_0x514dea){this['collection']['remove'](_0x514dea),_0x514dea['destroy']();}['refreshVisibility'](){for(const _0x8e326c of this['collection'])_0x8e326c['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x2cc305){return this['collection']['getByInnerView'](_0x2cc305);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x31569e of this['collection'])_0x31569e['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x30d399){this['fire']('_activateAnnotation',_0x30d399);}['createAnnotation'](_0x53922f){return new d(_0x53922f);}['createAnnotationView'](_0xdee114,_0x1332ef){return new T(_0xdee114,_0x1332ef);}['_addActiveAnnotation'](_0x5b2edc){const _0xcb0272=new Set(this['activeAnnotations']);_0xcb0272['add'](_0x5b2edc),this['activeAnnotations']=_0xcb0272;}['_removeActiveAnnotation'](_0x4d7d6c){const _0x371797=new Set(this['activeAnnotations']);_0x371797['delete'](_0x4d7d6c),this['activeAnnotations']=_0x371797;}['_bindAnnotationsToVisibleAnnotations'](){const _0x5256f9=this['collection'],_0x23a611=this['_visibleAnnotations'];function _0x41123a(_0x529970){const _0x1f6f13=_0x529970['source'];_0x1f6f13['isVisible']&&!_0x23a611['has'](_0x1f6f13)?_0x23a611['add'](_0x1f6f13):!_0x1f6f13['isVisible']&&_0x23a611['has'](_0x1f6f13)&&_0x23a611['remove'](_0x1f6f13),_0x1f6f13['view']['focusTracker']['remove'](_0x1f6f13['view']['element']),_0x1f6f13['view']['focusTracker']['add'](_0x1f6f13['view']['element']);}this['listenTo'](_0x5256f9,'add',(_0x136d4f,_0x1cf189)=>{_0x1cf189['isVisible']&&_0x23a611['add'](_0x1cf189),this['listenTo'](_0x1cf189,'change:isVisible',_0x41123a);}),this['listenTo'](_0x5256f9,'remove',(_0x44d428,_0x46c84a)=>{_0x23a611['has'](_0x46c84a)&&_0x23a611['remove'](_0x46c84a),this['stopListening'](_0x46c84a,'change:isVisible',_0x41123a);});}['_setupEnterAnnotationKeystroke'](){const _0x59a6d5=_0x491a9c=>{_0x491a9c['on']('ready',()=>{_0x491a9c['keystrokes']['set'](_0x1aee3f,(_0x4100c0,_0x1e4875)=>{const _0x173c7e=_0x5c4456(this['activeAnnotations']['values']());_0x173c7e&&(_0x173c7e['view']['focus'](),_0x1e4875());});});};this['context']instanceof _0x2d6b23?_0x59a6d5(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x2a80b3,_0x871e25)=>{_0x59a6d5(_0x871e25);});}['_setupEscapeAnnotationHandling'](){const _0x374d79=_0x17aa1b=>{const _0x6e17b2=_0x17aa1b['source'],_0x401aef=[];let _0x28606f;if(Array['isArray'](_0x6e17b2['target'])){_0x28606f=_0x6e17b2['target'][0x0],this['context']instanceof _0x2d6b23?_0x401aef['push'](this['context']):this['context']['editors']&&_0x401aef['push'](...this['context']['editors']);for(const _0x48fbad of _0x401aef)for(const _0x4b887f of _0x48fbad['editing']['view']['domRoots']['values']())if(_0x4b887f['contains'](_0x28606f))return void _0x48fbad['editing']['view']['focus']();_0x28606f['focus']();}};this['listenTo'](this['collection'],'add',(_0x56fbdc,_0x2b731e)=>{this['listenTo'](_0x2b731e,'escape',_0x374d79,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x1a82b5,_0x43e448)=>{this['stopListening'](_0x43e448,'escape',_0x374d79);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x7c7096{['_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(_0x52ab0e){super(_0x52ab0e),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1491c3=this['context']['config'];_0x1491c3['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1491c3['define']('comments.maxThreadTotalWeight',0x1f4),_0x1491c3['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1491c3['define']('comments.CommentThreadView',Ct),_0x1491c3['define']('comments.CommentView',vt),_0x1491c3['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x22ad04=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x23879c,_0x4e093a)=>this['_addCommentThread'](_0x4e093a)),this['on']('submitCommentThread',(_0x54b8db,_0x1ca71b)=>this['_submitCommentThread'](_0x1ca71b)),this['on']('resolveCommentThread',(_0x41a52a,_0x2a71cd)=>this['_resolveCommentThread'](_0x2a71cd)),this['on']('resolveCommentThread',(_0x3e88aa,_0xa782c9)=>this['_updateActiveAnnotation'](_0xa782c9),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x2c81ed,_0x5adb62)=>this['_reopenCommentThread'](_0x5adb62)),this['on']('reopenCommentThread',(_0x2cb662,_0x1c4ae6)=>this['_updateActiveAnnotation'](_0x1c4ae6),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x437cc0,_0x10003f)=>this['_removeCommentThread'](_0x10003f)),this['on']('updateCommentThread',(_0x1b89a1,_0xdd40d)=>this['_updateCommentThread'](_0xdd40d)),this['on']('updateCommentThread',(_0x2e9b8b,_0x3bdccd)=>this['_updateActiveAnnotation'](_0x3bdccd),{'priority':'lowest'}),this['on']('addComment',(_0x218d2e,_0x204a25)=>this['_addComment'](_0x204a25)),this['on']('updateComment',(_0x44c277,_0x1d4ca9)=>this['_updateComment'](_0x1d4ca9)),this['on']('removeComment',(_0x2d3c5c,_0x1c7026)=>this['_removeComment'](_0x1c7026)),this['on']('addComment',(_0x2a5007,{threadId:_0x209244,isFromAdapter:_0x199719})=>{if(_0x199719)return;const _0x113518=this['getCommentThread'](_0x209244),_0x1fd4cf=_0x113518&&this['_threadToController']['get'](_0x113518);_0x1fd4cf&&_0x1fd4cf['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x22ad04,'change:activeAnnotations',(_0x1066e6,_0x266292,_0xf3b102)=>{const _0x27f967=Array['from'](_0xf3b102)['map'](_0x4e4175=>this['_viewToController']['get'](_0x4e4175['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x27f967?_0x27f967['model']:null;});}set['adapter'](_0x5c4f41){if(this['_adapter'])throw new _0x5ed8e1('commentsrepository-adapter-already-set');this['_adapter']=_0x5c4f41;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x252062=gt,threadId:_0x524c5b=_0x109359(),comments:_0x3b97b1=[],unlinkedAt:_0x49208f=null,resolvedAt:_0x4e0f2b=null,resolvedBy:_0x53c2db=null,target:_0x3f2e30=null,context:_0x2c35ae=null,attributes:_0xc706fc={},isResolvable:_0x3c4505=!0x0,isSubmitted:_0x5b4278=!0x1,isFromAdapter:_0x4592d2=!0x1}={}){return this['fire'](_t('addCommentThread',_0x252062),{'channelId':_0x252062,'threadId':_0x524c5b,'comments':_0x3b97b1,'unlinkedAt':_0x49208f,'resolvedAt':_0x4e0f2b,'resolvedBy':_0x53c2db,'target':_0x3f2e30,'context':_0x2c35ae,'attributes':_0xc706fc,'isFromAdapter':_0x4592d2,'isResolvable':_0x3c4505,'isSubmitted':_0x5b4278}),this['getCommentThread'](_0x524c5b);}['openNewCommentThread']({channelId:_0x10bb90=gt,threadId:_0x33a50e=_0x109359(),target:_0x450365,context:_0x3caa26=null,isResolvable:_0x3861e0=!0x0}){if(this['_readOnlyChannels']['has'](_0x10bb90)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x450365)throw new _0x5ed8e1('commentsrepository-missing-target');const _0x1d25e8=this['addCommentThread']({'channelId':_0x10bb90,'threadId':_0x33a50e,'target':_0x450365,'context':_0x3caa26,'isResolvable':_0x3861e0});if(!_0x1d25e8)return null;const _0xab79c1=this['_threadToController']['get'](_0x1d25e8),_0x4411a2=_0xab79c1['view']['commentThreadInputView']['commentInputView'],_0x150ea4=this['context']['plugins']['get'](N),_0x11124d=_0x150ea4['getByInnerView'](_0xab79c1['view']);return _0x150ea4['activate'](_0x11124d),_0x4411a2['once']('editorReady',()=>_0x4411a2['focus']()),_0x1d25e8;}['hasCommentThread'](_0x5a4613){if('string'!=typeof _0x5a4613)throw new _0x5ed8e1('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x5a4613);}['updateCommentThread']({channelId:_0x1bd5b9=gt,threadId:_0x4b8842,context:_0x168a34,unlinkedAt:_0xe3f8e8,attributes:_0x8378f9,isFromAdapter:_0x6256c0=!0x1}){return this['fire'](_t('updateCommentThread',_0x1bd5b9),{'channelId':_0x1bd5b9,'threadId':_0x4b8842,'context':_0x168a34,'unlinkedAt':_0xe3f8e8,'attributes':_0x8378f9,'isFromAdapter':_0x6256c0}),this['getCommentThread'](_0x4b8842);}['getCommentThread'](_0x1f5d80){if('string'!=typeof _0x1f5d80)throw new _0x5ed8e1('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x1f5d80);}['fetchCommentThread']({channelId:_0x5fecdb,threadId:_0x4e94cf}={}){const _0x5132f7=this['getCommentThread'](_0x4e94cf);if(_0x5132f7)return Promise['resolve'](_0x5132f7);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x5ed8e1('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x5fecdb,'threadId':_0x4e94cf})['then'](_0x5b601a=>this['hasCommentThread'](_0x4e94cf)?this['getCommentThread'](_0x4e94cf):_0x5b601a?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x5fecdb},_0x5b601a)):void 0x0)['catch'](_0x1b174c=>{throw console['error'](_0x1b174c),new _0x5ed8e1('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x141c78,skipNotAttached:_0x1cc9b7=!0x1,skipEmpty:_0x47fd49=!0x1,toJSON:_0x3b8d8e=!0x1}={}){const _0x4bded0=[];for(const _0x156ace of this['_threads']['values']())_0x141c78&&_0x156ace['channelId']!==_0x141c78||_0x1cc9b7&&!_0x156ace['isAttached']||_0x47fd49&&0x0===_0x156ace['length']||_0x4bded0['push'](_0x156ace);return _0x3b8d8e?_0x4bded0['map'](_0x564ff8=>_0x564ff8['toJSON']()):_0x4bded0;}['setActiveCommentThread'](_0x238a4a){const _0x30ed70=this['context']['plugins']['get'](N);if(!_0x238a4a)return void(this['activeCommentThread']&&_0x30ed70['deactivateAll']());const _0x3e27a3=this['getCommentThread'](_0x238a4a);if(!_0x3e27a3)throw new _0x5ed8e1('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x238a4a});if(!this['_threadToController']['has'](_0x3e27a3))throw new _0x5ed8e1('commentsrepository-active-not-attached',null,{'threadId':_0x238a4a});const _0x15e694=_0x30ed70['getByInnerView'](this['_threadToController']['get'](_0x3e27a3)['view']);_0x30ed70['activate'](_0x15e694);}['switchReadOnly'](_0x51a605,_0x3c3811){_0x51a605?this['_readOnlyChannels']['add'](_0x3c3811):this['_readOnlyChannels']['delete'](_0x3c3811),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x432312){return this['_readOnlyChannels']['has'](_0x432312)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x17f8b0,_0x121b6b){return new yt(_0x17f8b0,_0x121b6b);}['setPermissions'](_0x1fcdf2,_0x47d73c=gt){this['_permissions']['set'](_0x47d73c,_0x1fcdf2),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x2b8782=gt){return this['_permissions']['has'](_0x2b8782)?this['_permissions']['get'](_0x2b8782):Tt;}['_addCommentThread']({channelId:_0x566b78,threadId:_0x6a239e,comments:_0x20355e,unlinkedAt:_0x239c2f,resolvedAt:_0xf5ab6f,resolvedBy:_0x13e29e,target:_0x57bd7f,context:_0x41f722,attributes:_0x4fd6cb,isFromAdapter:_0x4de308,isResolvable:_0x2c1e5f,isSubmitted:_0xce12a5}){if('string'!=typeof _0x6a239e)throw new _0x5ed8e1('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x6a239e});if(this['hasCommentThread'](_0x6a239e))throw new _0x5ed8e1('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x6a239e});const _0x34729d=new oe(this,{'channelId':_0x566b78,'id':_0x6a239e,'context':_0x41f722,'attributes':_0x4fd6cb,'unlinkedAt':_0x239c2f,'resolvedAt':_0xf5ab6f,'resolvedBy':_0x13e29e?this['context']['plugins']['get'](it)['getUser'](_0x13e29e):null,'isResolvable':_0x2c1e5f,'isSubmitted':_0xce12a5||_0x4de308});this['_threads']['set'](_0x6a239e,_0x34729d);for(const _0x28d414 of _0x20355e)_0x34729d['_add'](this['_createNewComment']({'threadId':_0x6a239e,..._0x28d414}));return _0x57bd7f&&_0x34729d['attachTo'](_0x57bd7f),_0x4de308||!_0x34729d['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x566b78,'threadId':_0x6a239e});}['_submitCommentThread']({channelId:_0x119df7,threadId:_0x125fc4}){if(!this['hasCommentThread'](_0x125fc4))throw new _0x5ed8e1('commentsrepository-missing-comment-thread',this);const _0x4ed0d8=this['getCommentThread'](_0x125fc4);if(_0x4ed0d8['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x4813b9,comments:_0xcc8dc2,resolvedAt:_0x41fa67,resolvedBy:_0x17b3a3,context:_0x57c72e,attributes:_0x299d8c}=_0x4ed0d8,_0x2ed4b9=this['context']['plugins']['get']('PendingActions'),_0x21a5b8=_0x2ed4b9['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x119df7,'threadId':_0x4813b9,'comments':_0xcc8dc2['map'](_0x30bfd6=>_0x30bfd6['toJSON']()),'resolvedAt':_0x41fa67,'resolvedBy':_0x17b3a3?_0x17b3a3['id']:_0x17b3a3,'context':_0x57c72e,'attributes':_0x299d8c})['then'](({comments:_0x5a4c39})=>{_0x2ed4b9['remove'](_0x21a5b8);for(const _0x597e87 of _0x5a4c39)this['_updateComment']({'channelId':_0x119df7,'threadId':_0x125fc4,'commentId':_0x597e87['commentId'],'createdAt':_0x597e87['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x40f86e=>{throw console['error'](_0x40f86e),new _0x5ed8e1('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x3582e3,target:_0x5d1252}){const _0x43ed3c=this['getCommentThread'](_0x3582e3);if(!_0x43ed3c)throw new _0x5ed8e1('commentsrepository-attach-missing-comment-thread',this);const _0x854814=this['context']['plugins']['get']('PendingActions'),_0x2a5eb7=this['context']['plugins']['get'](N),_0x5773a5=this['_createCommentThreadView'](_0x43ed3c),_0x345d49=new yt(_0x43ed3c,_0x5773a5);let _0x4fb80f=null;_0x5773a5['on']('change:isDirty',(_0x21a222,_0x1b6e14,_0x239b7c)=>{_0x239b7c?_0x4fb80f=_0x854814['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x4fb80f&&(_0x854814['remove'](_0x4fb80f),_0x4fb80f=null);}),this['_threadToController']['set'](_0x43ed3c,_0x345d49),this['_viewToController']['set'](_0x5773a5,_0x345d49);const _0x12a5f3=new T(this['context']['locale'],_0x5773a5);_0x12a5f3['bind']('length')['to'](_0x5773a5),_0x12a5f3['bind']('isDirty')['to'](_0x5773a5,'isDirty',_0x5773a5,'length',(_0x13fc1d,_0x5937e6)=>_0x13fc1d||!_0x5937e6),_0x12a5f3['bind']('isActive')['to'](_0x5773a5),_0x12a5f3['type']='comment';const _0x2b1647=new d({'view':_0x12a5f3,'target':_0x5d1252,'type':'comment','isVisible':!_0x43ed3c['isResolved']});return _0x5773a5['on']('escape',()=>{_0x2b1647['fire']('escape');}),this['_bindAnnotationToEditors'](_0x5773a5,_0x2b1647),_0x2a5eb7['add'](_0x2b1647),_0x2b1647;}['_bindAnnotationToEditors'](_0x34fd51,_0x4f9461){this['listenTo'](_0x34fd51,'editorReady',(_0x5a631e,_0x54aab0)=>{const _0x4a6e34=_0x54aab0['ui']['view']['body']['bodyCollectionContainer'];_0x4f9461['focusableElements']['add'](_0x4a6e34),this['context']instanceof _0x2d6b23&&this['context']['ui']['focusTracker']['add'](_0x4a6e34);},{'priority':'highest'}),this['listenTo'](_0x34fd51,'editorDestroyed',(_0x5d1b93,_0x30d866)=>{const _0x4f2309=_0x30d866['ui']['view']['body']['bodyCollectionContainer'];_0x4f9461['focusableElements']['has'](_0x4f2309)&&_0x4f9461['focusableElements']['remove'](_0x4f2309),this['context']instanceof _0x2d6b23&&this['context']['ui']['focusTracker']['remove'](_0x4f2309);});}['_unbindEditors'](_0x1da7dc){this['stopListening'](_0x1da7dc,'editorReady'),this['stopListening'](_0x1da7dc,'editorDestroyed');}['_createCommentThreadView'](_0x420e3f){const _0x38f375=this['context']['plugins']['get'](it),{config:_0x573062,locale:_0xe9e9}=this['context'],_0x227cd3=mt(_0x573062['get']('locale'));return new(0x0,(_0x573062['get']('comments'))['CommentThreadView'])(_0xe9e9,_0x420e3f,_0x38f375['me'],{'editorConfig':{..._0x573062['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x573062['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x573062['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x573062['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x573062['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x227cd3,'CommentView':_0x573062['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x11a196,channelId:_0x117341,resolvedAt:_0x8311db,resolvedBy:_0x20dca5,isFromAdapter:_0x506e8e}){if(!this['hasCommentThread'](_0x11a196))throw new _0x5ed8e1('commentsrepository-missing-comment-thread',null,{'threadId':_0x11a196});const _0x22c1b3=this['getCommentThread'](_0x11a196);if(_0x22c1b3['isResolved'])throw new _0x5ed8e1('commentsrepository-resolved-comment-thread',null,{'threadId':_0x11a196});const _0x17ef71=this['context']['plugins']['get'](it);if(_0x22c1b3['resolvedBy']=_0x17ef71['getUser'](_0x20dca5),_0x22c1b3['resolvedAt']=_0x8311db,_0x506e8e||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0xf90676=this['context']['plugins']['get']('PendingActions'),_0x4f3139=_0xf90676['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x117341,'threadId':_0x11a196})['then'](({resolvedAt:_0x39997f,resolvedBy:_0x40425d})=>{_0xf90676['remove'](_0x4f3139),_0x22c1b3['resolvedBy']['id']!==_0x40425d&&(_0x22c1b3['resolvedBy']=_0x17ef71['getUser'](_0x40425d)),_0x22c1b3['resolvedAt']=_0x39997f;})['catch'](_0x5cafb4=>{throw console['error'](_0x5cafb4),new _0x5ed8e1('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x3923d6,channelId:_0x57a999,isFromAdapter:_0x348525}){if(!this['hasCommentThread'](_0x3923d6))throw new _0x5ed8e1('commentsrepository-missing-comment-thread',null,{'threadId':_0x3923d6});const _0x468198=this['getCommentThread'](_0x3923d6);if(!_0x468198['isResolved'])throw new _0x5ed8e1('commentsrepository-reopen-comment-thread',null,{'threadId':_0x3923d6});if(_0x468198['resolvedBy']=null,_0x468198['resolvedAt']=null,_0x348525||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x2440bb=this['context']['plugins']['get']('PendingActions'),_0x569ba4=_0x2440bb['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x57a999,'threadId':_0x3923d6})['then'](()=>_0x2440bb['remove'](_0x569ba4))['catch'](_0x1c59c8=>{throw console['error'](_0x1c59c8),new _0x5ed8e1('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x586de0,isFromAdapter:_0x3668f9}){const _0x47c93b=this['getCommentThread'](_0x586de0);if(!_0x47c93b)throw new _0x5ed8e1('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x586de0),this['_threads']['delete'](_0x586de0),!_0x47c93b['isSubmitted']||_0x3668f9||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x424579=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3fdcfb}=_0x47c93b,_0x619016=_0x424579['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x3fdcfb,'threadId':_0x586de0})['then'](()=>_0x424579['remove'](_0x619016))['catch'](_0x4f59a6=>{throw console['error'](_0x4f59a6),new _0x5ed8e1('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x18c973,unlinkedAt:_0x310ae0,context:_0x21a505,attributes:_0x2dac4d,isFromAdapter:_0x151ba9}){if('string'!=typeof _0x18c973)throw new _0x5ed8e1('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x18c973});if(!this['hasCommentThread'](_0x18c973))throw new _0x5ed8e1('commentsrepository-missing-comment-thread',null,{'threadId':_0x18c973});const _0x139441=this['getCommentThread'](_0x18c973);let _0x30fb86=!0x1;if(void 0x0!==_0x21a505&&_0x139441['context']!==_0x21a505&&(_0x139441['context']=_0x21a505,_0x30fb86=!0x0),void 0x0!==_0x310ae0&&_0x139441['unlinkedAt']!==_0x310ae0&&(_0x139441['unlinkedAt']=_0x310ae0,_0x30fb86=!0x0),_0x2dac4d&&!It(_0x2dac4d,_0x139441['attributes'])&&(_0x139441['attributes']=_0x2dac4d,_0x30fb86=!0x0),!_0x30fb86)return Promise['resolve']();if(!_0x139441['isSubmitted']||_0x151ba9||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x50bdaf=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4c56b7}=_0x139441,_0x57fbb0=_0x50bdaf['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x4c56b7,'threadId':_0x18c973,'context':_0x21a505,'unlinkedAt':_0x310ae0,'attributes':_0x2dac4d})['then'](()=>_0x50bdaf['remove'](_0x57fbb0))['catch'](_0x3c4bf1=>{throw console['error'](_0x3c4bf1),new _0x5ed8e1('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x59c67a){const _0x3a3c47=this['context']['plugins']['get'](N),_0x28e0b5=this['getCommentThread'](_0x59c67a);if(this['_threadToController']['has'](_0x28e0b5)){const _0x246f59=this['_threadToController']['get'](_0x28e0b5),_0x266447=_0x246f59['view'],_0x720ba=_0x3a3c47['getByInnerView'](_0x266447);this['_threadToController']['delete'](_0x28e0b5),this['_viewToController']['delete'](_0x266447),_0x720ba&&_0x3a3c47['remove'](_0x720ba),_0x246f59['destroy'](),_0x266447['destroy']()['then'](()=>{this['_unbindEditors'](_0x266447);});}}['_updateActiveAnnotation']({threadId:_0x1be06a,resolvedAt:_0xeb02f1}){const _0x3464a2=!!_0xeb02f1,_0x3627c9=this['context']['plugins']['get'](N),_0x137ea2=this['getCommentThread'](_0x1be06a);if(this['_threadToController']['has'](_0x137ea2)){const _0x588545=this['_threadToController']['get'](_0x137ea2)['view'],_0x27e42f=_0x3627c9['getByInnerView'](_0x588545);_0x27e42f&&(_0x3464a2&&_0x3627c9['_removeActiveAnnotation'](_0x27e42f),_0x27e42f['refreshVisibility']());}}['_getExternalAuthor'](_0x464033){const _0x33f749=this['context']['plugins']['get'](it),_0x407420=lt('external:'+_0x464033),_0x259dde=_0x33f749['getUser'](_0x407420);return _0x259dde||_0x33f749['addUser']({'id':_0x407420,'name':_0x464033});}['_createNewComment']({threadId:_0x19721f,commentId:_0x5cbb28=_0x109359(),content:_0x4a8567,authorId:_0x351545,createdAt:_0x3b4063,attributes:_0x55be6b}){if('string'!=typeof _0x5cbb28)throw new _0x5ed8e1('commentsrepository-invalid-commentid');if('string'!=typeof _0x351545)throw new _0x5ed8e1('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x4a8567||!_0x4a8567['trim']())throw new _0x5ed8e1('commentsrepository-invalid-comment-content');const _0x5bb197=this['context']['plugins']['get'](it)['getUser'](_0x351545);if(!_0x5bb197)throw new _0x5ed8e1('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x351545});let _0x4cf7b8=null,_0x9a43dc=_0x3b4063;return _0x55be6b&&_0x55be6b['@external']&&(_0x4cf7b8=this['_getExternalAuthor'](_0x55be6b['@external']['authorName']),_0x9a43dc=new Date(_0x55be6b['@external']['createdAt'])),new re(this,{'threadId':_0x19721f,'id':_0x5cbb28,'author':_0x4cf7b8||_0x5bb197,'creator':_0x5bb197,'content':_0x4a8567,'createdAt':_0x3b4063,'authoredAt':_0x9a43dc,'attributes':_0x55be6b});}['_addComment'](_0x57341e){let {threadId:_0x2cf298,content:_0x477492,attributes:_0x5555cc,isFromAdapter:_0x10ec5c}=_0x57341e;const _0x5e3438=this['getCommentThread'](_0x57341e['threadId']);if(!_0x5e3438)throw new _0x5ed8e1('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x504f6f=this['_createNewComment'](_0x57341e),{id:_0x4aa794}=_0x504f6f;if(_0x5e3438['_add'](_0x504f6f),_0x10ec5c||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x5e3438['isSubmitted'])return Promise['resolve']();const _0x189ebe=this['context']['plugins']['get']('PendingActions'),{channelId:_0x113440}=_0x5e3438,_0x54ab78=_0x189ebe['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x5555cc||(_0x5555cc={}),this['adapter']['addComment']({'channelId':_0x113440,'threadId':_0x2cf298,'commentId':_0x4aa794,'content':_0x477492,'attributes':_0x5555cc})['then'](_0x3a40d2=>{_0x189ebe['remove'](_0x54ab78),_0x3a40d2&&this['_updateComment']({'channelId':_0x113440,'threadId':_0x2cf298,'commentId':_0x4aa794,'createdAt':_0x3a40d2['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x11a92f=>{throw console['error'](_0x11a92f),new _0x5ed8e1('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x125f82,commentId:_0x1a198a,content:_0x2db455,createdAt:_0x1fb52d,attributes:_0x404a44,isFromAdapter:_0x4784b4}){if(void 0x0!==_0x2db455&&('string'!=typeof _0x2db455||!_0x2db455['trim']()['length']))throw new _0x5ed8e1('commentsrepository-update-comment-invalid-content');const _0x47219b=this['getCommentThread'](_0x125f82),_0xb2a999=_0x47219b['getComment'](_0x1a198a);if(!_0xb2a999)throw new _0x5ed8e1('commentsrepository-update-missing-comment',this);let _0x1a1301=!0x1;if(_0x2db455&&_0x2db455!==_0xb2a999['content']&&(_0xb2a999['isEditable']||_0x4784b4)&&(_0xb2a999['content']=_0x2db455,_0x1a1301=!0x0),_0x1fb52d&&_0x1fb52d!==_0xb2a999['createdAt']&&(_0xb2a999['createdAt']=_0x1fb52d,_0xb2a999['attributes']&&_0xb2a999['attributes']['@external']||(_0xb2a999['authoredAt']=_0x1fb52d),_0x1a1301=!0x0),_0x404a44&&!It(_0x404a44,_0xb2a999['attributes'])&&(_0xb2a999['attributes']=_0x404a44,_0x1a1301=!0x0),!_0x1a1301)return Promise['resolve']();if(_0x47219b['fire']('commentUpdated'),_0x4784b4||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x27f40c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x491d79}=this['getCommentThread'](_0xb2a999['threadId']),_0x3a6993=_0x27f40c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x491d79,'threadId':_0x125f82,'commentId':_0x1a198a,'content':_0x2db455,'attributes':_0x404a44})['then'](()=>_0x27f40c['remove'](_0x3a6993))['catch'](_0x20fe71=>{throw console['error'](_0x20fe71),new _0x5ed8e1('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x1b5e48,commentId:_0x1b2559,isFromAdapter:_0x11f262}){const _0x155834=this['getCommentThread'](_0x1b5e48),_0x37f62=_0x155834['getComment'](_0x1b2559);if(!_0x37f62)throw new _0x5ed8e1('commentsrepository-remove-missing-comment',this);if(_0x155834['_remove'](_0x37f62),_0x11f262||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x5c5e39=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2eb578}=_0x155834,_0x1d260d=_0x5c5e39['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x2eb578,'threadId':_0x1b5e48,'commentId':_0x1b2559})['then'](()=>_0x5c5e39['remove'](_0x1d260d))['catch'](_0x1acb7e=>{throw console['error'](_0x1acb7e),new _0x5ed8e1('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
- _0x512d55(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x1d2bdd,_0x3d423d){super();const _0x3480b5=_0x3d423d['isResolvable'];this['channelId']=_0x3d423d['channelId'],this['id']=_0x3d423d['id'],this['comments']=new _0x236234(),this['_repository']=_0x1d2bdd,this['_isAttached']=!0x1,this['_isSubmitted']=_0x3d423d['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x1d2bdd,'_permissions',_0x1d2bdd,'_readOnlyChannels',()=>_0x1d2bdd['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x1d2bdd,'_permissions',()=>_0x1d2bdd['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x1d2bdd,'_permissions',()=>{const _0x713ec6=_0x1d2bdd['getPermissions'](this['channelId']);return _0x713ec6['write']||_0x713ec6['admin'];}),this['bind']('isResolvable')['to'](_0x1d2bdd,'_permissions',()=>_0x3480b5&&_0x1d2bdd['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x3d423d['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x59389f,_0x40454a)=>_0x59389f?_0x40454a?_0x59389f<_0x40454a?_0x59389f:_0x40454a:_0x59389f:_0x40454a),this['set']('unlinkedAt',_0x3d423d['unlinkedAt']||null),this['set']('resolvedAt',_0x3d423d['resolvedAt']||null),this['set']('resolvedBy',_0x3d423d['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x5b0cd7=>!!_0x5b0cd7),this['set']('attributes',_0x3d423d['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x51dbf0,_0x1005e6)=>_0x51dbf0+_0x1005e6['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x1143ae,id:_0x326fdb}=this;this['_repository']['fire'](_t('submitCommentThread',_0x1143ae),{'channelId':_0x1143ae,'threadId':_0x326fdb});}['setUnlinkedAt'](_0x3f2840){this['_update']({'unlinkedAt':_0x3f2840});}['resolve']({resolvedAt:_0x29e5c8=new Date(),resolvedBy:_0x2249b6=null,isFromAdapter:_0x47cd49=!0x1}={}){const _0x4880b9=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x4f53a4,id:_0x47a678}=this;this['_repository']['fire'](_t('resolveCommentThread',_0x4f53a4),{'channelId':_0x4f53a4,'threadId':_0x47a678,'resolvedAt':_0x29e5c8,'resolvedBy':_0x2249b6||_0x4880b9['id'],'isFromAdapter':_0x47cd49});}['reopen']({isFromAdapter:_0x1ab120=!0x1}={}){const {channelId:_0x3860ee,id:_0x14ec8e}=this;this['_repository']['fire'](_t('reopenCommentThread',_0x3860ee),{'channelId':_0x3860ee,'threadId':_0x14ec8e,'isFromAdapter':_0x1ab120});}['setContext'](_0x4b9537){this['context']||this['_update']({'context':_0x4b9537});}['setAttribute'](_0x2d3e44,_0x5b49fd){const _0x199013=pt(this['attributes']);wt(_0x199013,_0x2d3e44,_0x5b49fd),this['_update']({'attributes':_0x199013});}['removeAttribute'](_0x558c03){const _0x26fced=pt(this['attributes']);At(_0x26fced,_0x558c03),this['_update']({'attributes':_0x26fced});}['remove']({isFromAdapter:_0x34a451=!0x1}={}){const {channelId:_0x1354ce,id:_0x2c1aec}=this;this['_repository']['fire'](_t('removeCommentThread',_0x1354ce),{'channelId':_0x1354ce,'threadId':_0x2c1aec,'isFromAdapter':_0x34a451});}['attachTo'](_0x29a893){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x29a893});}['addComment'](_0xa3d61a){const {channelId:_0x2c99fd,id:_0x27c820}=this;this['_repository']['fire'](_t('addComment',_0x2c99fd,_0x27c820),Object['assign']({'channelId':_0x2c99fd,'threadId':_0x27c820},_0xa3d61a));}['getComment'](_0x30276f){if('string'!=typeof _0x30276f)throw new _0x5ed8e1('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x30276f});return this['comments']['get'](_0x30276f);}['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'](_0xf89825=>_0xf89825['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3fcd7f){return this['listenTo'](_0x3fcd7f,'change:authoredAt',()=>{const _0x24c5bf=this['_findOptimalIndex'](_0x3fcd7f),_0x522002=this['comments'];_0x24c5bf-0x1!=_0x522002['getIndex'](_0x3fcd7f)&&_0x24c5bf+0x1!=_0x522002['getIndex'](_0x3fcd7f)&&(this['_remove'](_0x3fcd7f),this['_add'](_0x3fcd7f));}),this['comments']['add'](_0x3fcd7f,this['_findOptimalIndex'](_0x3fcd7f));}['_update'](_0x38b3d4){const {channelId:_0xc0b6ab,id:_0x20435d}=this;this['_repository']['fire'](_t('updateCommentThread',_0xc0b6ab),{..._0x38b3d4,'channelId':_0xc0b6ab,'threadId':_0x20435d});}['_remove'](_0x16b58c){return this['stopListening'](_0x16b58c),_0x16b58c['destroy'](),this['comments']['remove'](_0x16b58c);}['_findOptimalIndex'](_0x4048fc){const _0xf879df=this['comments']['find'](_0x21c5fa=>new Date(_0x21c5fa['authoredAt'])['getTime']()>new Date(_0x4048fc['authoredAt'])['getTime']());return _0xf879df?this['comments']['getIndex'](_0xf879df):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
- _0x512d55(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x2fa59c,_0x3a6047){super();const _0x82d9b5=_0x2fa59c['context']['plugins']['get'](it)['me'],_0x3316ee=_0x2fa59c['getCommentThread'](_0x3a6047['threadId']),_0x38fffc=0x0===_0x3316ee['comments']['length'],_0x10e582=_0x82d9b5===_0x3a6047['author'];this['id']=_0x3a6047['id'],this['threadId']=_0x3a6047['threadId'],this['author']=_0x3a6047['author'],this['creator']=_0x3a6047['creator'],this['isExternal']=Boolean(_0x3a6047['attributes']&&_0x3a6047['attributes']['@external']),this['set']('content',_0x3a6047['content']),this['createdAt']=_0x3a6047['createdAt']||new Date(),this['set']('authoredAt',_0x3a6047['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x3316ee,'resolvedAt'),this['set']('attributes',_0x3a6047['attributes']||{}),this['bind']('isEditable')['to'](_0x2fa59c,'_permissions',()=>{const _0x4e7acf=_0x2fa59c['getPermissions'](_0x3316ee['channelId'])['write'],_0x1d12f8=_0x2fa59c['getPermissions'](_0x3316ee['channelId'])['modifyAll'];return _0x10e582&&_0x4e7acf||!_0x10e582&&_0x1d12f8;}),this['bind']('isRemovable')['to'](_0x3316ee,'isRemovable',_0x2fa59c,'_permissions',_0x5492fd=>{const _0x118b93=_0x2fa59c['getPermissions'](_0x3316ee['channelId'])['write'],_0x40c5dd=_0x2fa59c['getPermissions'](_0x3316ee['channelId'])['modifyAll'];return _0x10e582&&_0x118b93||_0x5492fd&&_0x38fffc||!_0x10e582&&_0x40c5dd&&!_0x38fffc;}),this['bind']('isReadOnly')['to'](_0x3316ee,'isReadOnly'),this['_repository']=_0x2fa59c;}get['weight'](){return Math['max'](function(_0x58a074){const _0x31d16d=document['createElement']('div');return _0x31d16d['innerHTML']=_0x58a074,_0x31d16d['textContent']['length'];}(this['content']),0xc8);}['update'](_0x8ebfc4){const {threadId:_0x152932,id:_0x108bba}=this;if(!this['_repository']['hasCommentThread'](_0x152932))throw new _0x5ed8e1('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x49b6fd}=this['_repository']['getCommentThread'](_0x152932);this['_repository']['fire'](_t('updateComment',_0x49b6fd,_0x152932),{'channelId':_0x49b6fd,'threadId':_0x152932,'commentId':_0x108bba,..._0x8ebfc4});}['setAttribute'](_0x24248e,_0x5676fb){const _0x59d21d=pt(this['attributes']);wt(_0x59d21d,_0x24248e,_0x5676fb),this['update']({'attributes':_0x59d21d});}['removeAttribute'](_0x21ff03){const _0x3920ae=pt(this['attributes']);At(_0x3920ae,_0x21ff03),this['update']({'attributes':_0x3920ae});}['remove'](_0x3198c4={}){if(!_0x3198c4['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x3a463f,id:_0x4fa144}=this;if(!this['_repository']['hasCommentThread'](_0x3a463f))throw new _0x5ed8e1('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1c1336}=this['_repository']['getCommentThread'](_0x3a463f);this['_repository']['fire'](_t('removeComment',_0x1c1336,_0x3a463f),{'channelId':_0x1c1336,'threadId':_0x3a463f,'commentId':_0x4fa144,..._0x3198c4});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0x2d8462,..._0x589334){for(const _0x26fbbb of _0x589334)void 0x0!==_0x26fbbb&&(_0x2d8462+=':'+String(_0x26fbbb));return _0x2d8462;}class J extends _0x291848{['refresh'](){const _0x1aa81e=this['editor']['model']['document']['selection'];for(const _0x5ba12d of _0x1aa81e['getRanges']())if(this['_hasContent'](_0x5ba12d))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x2010d8=_0x109359()}={}){const _0x3a021e=this['editor']['model'],_0x2edc14=[];for(const _0x5d328a of _0x3a021e['document']['selection']['getRanges']())this['_hasContent'](_0x5d328a)&&_0x2edc14['push'](this['_trimToContent'](_0x5d328a));_0x3a021e['change'](_0xdcc7f4=>{for(const _0x137dd0 of _0x2edc14){const _0x594b77=_0x109359()['substr'](0x1,0x5),_0x48609e='comment:'+_0x2010d8+':'+_0x594b77;_0xdcc7f4['addMarker'](_0x48609e,{'range':_0x137dd0,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x19529f){for(const _0x378677 of _0x19529f['getItems']())if(this['_itemIsContent'](_0x378677))return!0x0;return!0x1;}['_itemIsContent'](_0x111ae6){return _0x111ae6['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x111ae6)&&!_0x111ae6['is']('element','tableCell');}['_trimToContent'](_0x5cb272){const _0x275e97=_0x57ef35=>!this['_itemIsContent'](_0x57ef35['item']),_0x29cfd0=_0x5cb272['start']['getLastMatchingPosition'](_0x275e97),_0x54e177=_0x5cb272['end']['getLastMatchingPosition'](_0x275e97,{'direction':'backward'});return this['editor']['model']['createRange'](_0x29cfd0,_0x54e177);}}class P extends _0xa0021b{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x148fd9){super(_0x148fd9),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x2880fa=this['editor'],_0x49bb28=_0x2880fa['model']['document']['selection'],_0x1d7ba2=_0x14ec9d(()=>this['refreshSelectedViews'](),0xa);_0x49bb28['on']('change:range',(_0x4d1e4d,_0x88a058)=>{_0x88a058['directChange']&&(_0x1d7ba2['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x2880fa['editing']['view']['document'],'change:isFocused',(_0x1ba900,_0x586d84,_0x135dec)=>{_0x135dec&&_0x1d7ba2();}),this['listenTo'](_0x2880fa['ui']['focusTracker'],'change:isFocused',(_0x53092c,_0x560cf4,_0x1d985d)=>{_0x1d985d||_0x2880fa['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x3c6026=>this['_editorAnnotationsData']['has'](_0x3c6026['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x21d8d8){if(this['_editorAnnotations']['has'](_0x21d8d8['view']))return;this['_editorAnnotations']['add'](_0x21d8d8['view']),this['editor']['ui']['focusTracker']['add'](_0x21d8d8['view']['element']);const _0x25cfda=this['editor']['plugins']['get'](N);this['listenTo'](_0x25cfda['collection'],'remove',(_0x478eb9,_0xb0840a)=>{this['editor']['ui']['focusTracker']['remove'](_0xb0840a['view']['element']),this['_editorAnnotations']['delete'](_0xb0840a['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x53dff5){if('function'!=typeof _0x53dff5)throw new _0x5ed8e1('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x53dff5);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4e02a3,annotations:_0x439c6a}){const _0x36d2ab=[],_0x2cda23=this['editor']['model']['document']['selection'],_0x25ac21=Array['from'](_0x2cda23['getRanges']());for(const [_0x1181a4,_0x2b9ed3]of this['_editorAnnotationsData']){const _0x2a3c31=_0x31cf4a(_0x2b9ed3),_0x191009=_0x439c6a['getByInnerView'](_0x1181a4);_0x2a3c31&&_0x191009&&_0x36d2ab['push']({'annotation':_0x191009,'range':_0x2a3c31});}function _0x31cf4a(_0x2aa3ee){for(const _0x55799b of _0x2aa3ee)for(const _0x41e943 of _0x25ac21)if(_0x55799b['containsRange'](_0x41e943,!_0x2cda23['isCollapsed']))return _0x55799b;return null;}return _0x36d2ab['sort']((_0x21c189,_0xd45954)=>{const _0x182c1c=_0x21c189['range'],_0x567fa0=_0xd45954['range'];if(!_0x182c1c['isEqual'](_0x567fa0)){if(_0x182c1c['containsRange'](_0x567fa0,!0x0))return 0x1;if(_0x567fa0['containsRange'](_0x182c1c,!0x0))return-0x1;}return _0x21c189['annotation']==_0x4e02a3?-0x1:_0xd45954['annotation']==_0x4e02a3?0x1:0x0;})['map'](_0x445909=>_0x445909['annotation']);}get['_editorAnnotationsData'](){const _0x210190=new Map();for(const _0x318ffb of Array['from'](this['_dataCollectors']))for(const [_0x586058,_0x18d380]of _0x318ffb())_0x210190['set'](_0x586058,_0x18d380);return _0x210190;}}class st extends _0xa0021b{['afterInit'](){const _0x1dc6f2=this['editor'];if(!_0x1dc6f2['plugins']['has']('RestrictedEditingModeEditing'))return;_0x1dc6f2['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0xa0021b{constructor(_0x3b34cc){super(_0x3b34cc),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x23647a=this['editor'],_0x1c4bd0=_0x23647a['commands']['get']('importWord'),_0x154ff2=_0x23647a['plugins']['get'](it);_0x1c4bd0&&(_0x1c4bd0['on']('execute',(_0x5eade5,[,_0x3bed05])=>{_0x3bed05['collaboration_features']={'comments':!0x0,'user_id':_0x154ff2['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x1c4bd0,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x4e9dbe,_0x44659f){const {comment_threads:_0x4b6f8a}=_0x44659f;_0x4b6f8a&&_0x4b6f8a['forEach'](({thread_id:_0x3cba05,comments:_0x3c77f4,is_resolved:_0x578815})=>{const _0x56b82c=new Date(),_0x5a0b8c=_0x3c77f4['map'](({author:_0x10e0d6,content:_0x256c72,created_at:_0x59c1d4})=>({'content':_0x256c72,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x56b82c,'attributes':{'@external':{'authorName':_0x10e0d6,'createdAt':_0x59c1d4?new Date(_0x59c1d4):new Date(),'source':'importWord'}}})),_0x5145ba=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x5145ba,'threadId':_0x3cba05,'comments':_0x5a0b8c,'resolvedAt':_0x578815?_0x56b82c:null});});}}class at extends _0xa0021b{constructor(_0x437319){super(_0x437319),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0xc3b88f=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0xc3b88f,'contentInsertion',(_0x52fda3,_0x408f89)=>this['_removeMarkersWithoutThreads'](_0x408f89['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x3cd165){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x3cd165;const _0x2a0cc1=this['editor']['plugins']['get']('CommentsRepository');for(const _0x344702 of _0x3cd165['keys']()){const [_0x2f17f3,_0x2eb6dc]=_0x344702['split'](':');'comment'!=_0x2f17f3||_0x2a0cc1['hasCommentThread'](_0x2eb6dc)||_0x3cd165['delete'](_0x344702);}return _0x3cd165;}['_registerMarkerInClipboardPipeline'](){const _0x3a5e24=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x5f09a5=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x5f09a5&&_0x3a5e24['_registerMarkerToCopy']('comment',_0x5f09a5);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x68e102){switch(_0x68e102){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0xa0021b{static get['requires'](){return[o,P,it,st,ct,at];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b44f0){super(_0x5b44f0),this['set']('isThreadsLoadingPaused',!0x0),_0x5b44f0['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x3d44ad,_0x2c2456,_0x8f839f,_0x59f617)=>{const _0x25d728=_0x8f839f?he(_0x8f839f)['id']:null;if(_0x5b44f0['model']['change'](()=>{if(_0x25d728){const _0x410b81=this['getAllMarkersForId'](_0x25d728);for(const _0x4c6c02 of _0x410b81)_0x5b44f0['editing']['reconvertMarker'](_0x4c6c02);}if(_0x59f617){const {id:_0x2cbbab}=he(_0x59f617),_0x55a398=this['getAllMarkersForId'](_0x2cbbab);for(const _0x2113d5 of _0x55a398)_0x5b44f0['editing']['reconvertMarker'](_0x2113d5);}}),_0x25d728){const _0x268cd8=_0x5b44f0['plugins']['get'](o)['getCommentThread'](_0x25d728);_0x268cd8&&_0x268cd8['isResolved']&&this['scrollToThreadMarker'](_0x25d728);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5d2621=this['editor'],_0x2c8d1e=_0x5d2621['plugins']['get'](o),_0x422544=_0x5d2621['config']['get']('collaboration.channelId');_0x5d2621['commands']['add']('addCommentThread',new J(_0x5d2621)),this['listenTo'](_0x5d2621,'change:isReadOnly',(_0x3c6546,_0x3da226,_0x3a84bb)=>{_0x2c8d1e['switchReadOnly'](_0x3a84bb,_0x5d2621['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x2c8d1e,ut('addCommentThread',_0x422544),(_0x253142,{threadId:_0x117f34})=>{const _0x468448=this['editor']['plugins']['get'](o)['getCommentThread'](_0x117f34);_0x468448&&_0x468448['unlinkedAt']&&this['_attachArchivedThread'](_0x117f34);}),this['listenTo'](_0x2c8d1e,ut('removeCommentThread',_0x422544),(_0xa95c87,{threadId:_0x1f0224})=>{_0x5d2621['model']['enqueueChange']({'isUndoable':!0x1},_0x576105=>{const _0x38d943=this['getAllMarkersForId'](_0x1f0224);for(const _0x434655 of _0x38d943)_0x576105['removeMarker'](_0x434655);});}),this['listenTo'](_0x2c8d1e,ut('resolveCommentThread',_0x422544),(_0x496a98,{threadId:_0xc1a804})=>{(this['_reconvertMarkers'](_0xc1a804),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0xc1a804)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x2c8d1e,ut('reopenCommentThread',_0x422544),(_0x199fdb,{threadId:_0x2bf9e5})=>{this['_reconvertMarkers'](_0x2bf9e5);},{'priority':'low'}),this['listenTo'](_0x2c8d1e,ut('addComment',_0x422544),(_0x522397,{threadId:_0x34c28c,isFromAdapter:_0x2d9a72})=>{const _0x35a65f=this['getAllMarkersForId'](_0x34c28c);if(_0x2d9a72||0x0==_0x35a65f['length']||!_0x2c8d1e['hasCommentThread'](_0x34c28c))return;0x1===_0x2c8d1e['getCommentThread'](_0x34c28c)['length']&&_0x5d2621['model']['enqueueChange']({'isUndoable':!0x1},_0x38bfd3=>{for(const _0x2f2284 of _0x35a65f)_0x38bfd3['updateMarker'](_0x2f2284,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x176ab0){const _0x3f699f=_0xd0363a([0x4a,0x30,0x70,0x50,0x73,0x47,0x59,0x43,0x6e,0x34,0x52,0x44,0x41,0x69,0x33,0x51,0x62,0x55,0x37,0x64,0x68,0x6c,0x58,0x4c,0x54,0x4b,0x75,0x66,0x4d,0x48,0x78,0x56,0x4f,0x7a,0x32,0x76,0x67,0x63,0x6a,0x53,0x49,0x61,0x57,0x4e,0x6f,0x6d,0x5a,0x36,0x45,0x71,0x46,0x79,0x65,0x72,0x42,0x39,0x74,0x38,0x6b,0x77,0x35,0x31]),_0x182584=0x707e6b4d,_0x58c27e=0x7079335d^_0x182584,_0xfd4ea=window[_0xd0363a([0x44,0x61,0x74,0x65])][_0xd0363a([0x6e,0x6f,0x77])](),_0x184b70=_0x176ab0[_0xd0363a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x324ae0=new window[(_0xd0363a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a88d2=>{_0x184b70[_0xd0363a([0x6f,0x6e,0x63,0x65])](_0xd0363a([0x72,0x65,0x61,0x64,0x79]),_0x4a88d2);}),_0x53ade2={[_0xd0363a([0x6b,0x74,0x79])]:_0xd0363a([0x45,0x43]),[_0xd0363a([0x75,0x73,0x65])]:_0xd0363a([0x73,0x69,0x67]),[_0xd0363a([0x63,0x72,0x76])]:_0xd0363a([0x50,0x2d,0x32,0x35,0x36]),[_0xd0363a([0x78])]:_0xd0363a([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]),[_0xd0363a([0x79])]:_0xd0363a([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]),[_0xd0363a([0x61,0x6c,0x67])]:_0xd0363a([0x45,0x53,0x32,0x35,0x36])},_0x1fba3c=_0x184b70[_0xd0363a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd0363a([0x67,0x65,0x74])](_0xd0363a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ee555(){let _0x3616b3,_0x13cc55=null,_0x48e55e=null;try{if(_0x1fba3c==_0xd0363a([0x47,0x50,0x4c]))return _0xd0363a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3616b3=_0x40fba4(),!_0x3616b3)return _0xd0363a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3616b3[_0xd0363a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48e55e=_0x2a8fc6(_0x3616b3[_0xd0363a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3616b3[_0xd0363a([0x6a,0x74,0x69])])),await _0xf69e9()?_0xd74236()?_0x477839()?_0xd0363a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x43f948()?(_0x3616b3[_0xd0363a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd0363a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x13cc55=_0x37624b(_0xd0363a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3616b3[_0xd0363a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd0363a([0x74,0x72,0x69,0x61,0x6c])&&(_0x13cc55=_0x37624b(_0xd0363a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x3616b3[_0xd0363a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd0363a([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x13cc55=_0x37624b(_0xd0363a([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f573a()):_0xd0363a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd0363a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd0363a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1468f2){return _0xd0363a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x477839(){const _0x5b7914=[_0xd0363a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd0363a([0x74,0x72,0x69,0x61,0x6c])][_0xd0363a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3616b3[_0xd0363a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xfd4ea/0x3e8:0xe10*_0x58c27e;return _0x3616b3[_0xd0363a([0x65,0x78,0x70])]<_0x5b7914;}function _0xd74236(){const _0x39bde2=_0x3616b3[_0xd0363a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x39bde2&&(!!_0x39bde2[_0xd0363a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd0363a([0x2a]))||(!!_0x39bde2[_0xd0363a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd0363a([0x43,0x4d,0x54]))||!(!_0x39bde2[_0xd0363a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd0363a([0x52,0x43,0x4d,0x54]))||!_0x42b110())));}function _0x43f948(){const _0x2edf93=_0x3616b3[_0xd0363a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2edf93||0x0==_0x2edf93[_0xd0363a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4bf8ca}=new URL(window[_0xd0363a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2edf93[_0xd0363a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bf8ca))return!0x0;const _0x50017a=_0x4bf8ca[_0xd0363a([0x73,0x70,0x6c,0x69,0x74])](_0xd0363a([0x2e]));return _0x2edf93[_0xd0363a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59c121=>_0x59c121[_0xd0363a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd0363a([0x2a])))[_0xd0363a([0x6d,0x61,0x70])](_0x5879aa=>_0x5879aa[_0xd0363a([0x73,0x70,0x6c,0x69,0x74])](_0xd0363a([0x2e])))[_0xd0363a([0x73,0x6f,0x6d,0x65])](_0x514c98=>_0x50017a[_0xd0363a([0x65,0x76,0x65,0x72,0x79])]((_0x27a913,_0x1df996)=>_0x514c98[_0x1df996]===_0x27a913||_0x514c98[_0x1df996]===_0xd0363a([0x2a])));}function _0x3f573a(){return _0x13cc55&&_0x48e55e?new window[(_0xd0363a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58b7fc,_0x15b377)=>{_0x13cc55[_0xd0363a([0x74,0x68,0x65,0x6e])](_0x58b7fc,_0x15b377),_0x48e55e[_0xd0363a([0x74,0x68,0x65,0x6e])](_0xe4c984=>{_0xe4c984!=_0xd0363a([0x56,0x61,0x6c,0x69,0x64])&&_0x58b7fc(_0xe4c984);},_0x15b377);}):_0x13cc55||_0x48e55e||_0xd0363a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a8fc6(_0x260292,_0x3e498a){return new window[(_0xd0363a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30f6c3=>{if(_0x547544())return _0x30f6c3(_0xd0363a([0x56,0x61,0x6c,0x69,0x64]));_0x3eb7e9(),_0x184b70[_0xd0363a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd0363a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ae152=!0x1;const _0x4fce99=_0x109359();function _0x447b46(_0x53c804){return!!_0x53c804&&(typeof _0x53c804===_0xd0363a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x53c804===_0xd0363a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x53c804[_0xd0363a([0x74,0x68,0x65,0x6e])]===_0xd0363a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x53c804[_0xd0363a([0x63,0x61,0x74,0x63,0x68])]===_0xd0363a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5e15a8(_0x4d0e09){_0x3bc9ac(_0x4d0e09)[_0xd0363a([0x74,0x68,0x65,0x6e])](_0x335beb=>{if(!_0x335beb||_0x335beb[_0xd0363a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd0363a([0x6f,0x6b]))return _0xd0363a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4fdec5(_0x135f09(_0x4fce99+_0x3e498a))!=_0x335beb[_0xd0363a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd0363a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd0363a([0x56,0x61,0x6c,0x69,0x64]);})[_0xd0363a([0x74,0x68,0x65,0x6e])](_0x3e013d=>(_0x8961df(),_0x3e013d),()=>{const _0x1f302d=_0x1a4439();return null==_0x1f302d?(_0x8961df(),_0xd0363a([0x56,0x61,0x6c,0x69,0x64])):_0xd0363a(_0xfd4ea-_0x1f302d>(0x5472ef4d^_0x182584)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd0363a([0x74,0x68,0x65,0x6e])](_0x30f6c3)[_0xd0363a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x30f6c3(_0xd0363a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a91be=0x704885cd^_0x182584;function _0x8961df(){const _0x715ccc=_0xd0363a([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fdec5(_0x135f09(_0x260292)),_0x472a2f=_0x3baeed(_0x4fdec5(window[_0xd0363a([0x4d,0x61,0x74,0x68])][_0xd0363a([0x63,0x65,0x69,0x6c])](_0xfd4ea/_0x1a91be)));window[_0xd0363a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd0363a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x715ccc,_0x472a2f);}function _0x1a4439(){const _0x3bc9ce=_0xd0363a([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fdec5(_0x135f09(_0x260292)),_0x51a002=window[_0xd0363a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd0363a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3bc9ce);return _0x51a002?window[_0xd0363a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3baeed(_0x51a002),0x10)*_0x1a91be:null;}function _0x3bc9ac(_0x5be01c){return new window[(_0xd0363a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x324246,_0xb38585)=>{_0x5be01c[_0xd0363a([0x74,0x68,0x65,0x6e])](_0x324246,_0xb38585),window[_0xd0363a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb38585,0x707fbf8d^_0x182584);});}}_0x184b70[_0xd0363a([0x6f,0x6e])](_0xd0363a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xe92ea2,_0x1d5604)=>{if(_0x1d5604[0x0]!=_0x260292)return _0x30f6c3(_0xd0363a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d5604[0x1]={..._0x1d5604[0x1],[_0xd0363a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4fce99};},{[_0xd0363a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd0363a([0x68,0x69,0x67,0x68])}),_0x184b70[_0xd0363a([0x6f,0x6e])](_0xd0363a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4db3d9=>{_0x447b46(_0x4db3d9[_0xd0363a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ae152=!0x0,_0x5e15a8(_0x4db3d9[_0xd0363a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd0363a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd0363a([0x6c,0x6f,0x77])}),_0x324ae0[_0xd0363a([0x74,0x68,0x65,0x6e])](()=>{_0x4ae152||_0x30f6c3(_0xd0363a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x547544(){return _0x184b70[_0xd0363a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd0363a([0x76,0x69,0x65,0x77])][_0xd0363a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd0363a([0x61,0x75,0x74,0x6f]);}function _0x3eb7e9(){_0x184b70[_0xd0363a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd0363a([0x76,0x69,0x65,0x77])][_0xd0363a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd0363a([0x61,0x75,0x74,0x6f]);}}function _0x37624b(_0xbb583){const _0x19f5d4=[new window[(_0xd0363a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dc5c8=>setTimeout(_0x5dc5c8,0x70775581^_0x182584)),_0x324ae0[_0xd0363a([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd0363a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53ff0d=>{let _0x3efc34=0x0;_0x184b70[_0xd0363a([0x6d,0x6f,0x64,0x65,0x6c])][_0xd0363a([0x6f,0x6e])](_0xd0363a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x196467,_0x1b0706)=>{_0x1b0706[0x0][_0xd0363a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3efc34++,_0x3efc34==(0x707e6ab5^_0x182584)&&(_0x53ff0d(),_0x196467[_0xd0363a([0x6f,0x66,0x66])]());});}))];return window[_0xd0363a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd0363a([0x72,0x61,0x63,0x65])](_0x19f5d4)[_0xd0363a([0x74,0x68,0x65,0x6e])](()=>_0xbb583);}async function _0x36339a(){await _0x324ae0,_0x184b70[_0xd0363a([0x6d,0x6f,0x64,0x65,0x6c])][_0xd0363a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x48b208,_0x184b70[_0xd0363a([0x6d,0x6f,0x64,0x65,0x6c])][_0xd0363a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x48b208,_0x184b70[_0xd0363a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd0363a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42b110(){return _0x35006f(_0xd0363a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x273ff7(_0xd0363a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xd0363a([0x73,0x74,0x61,0x74,0x65])]==_0xd0363a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xbf0929(_0x5b1254){const _0x25000e=_0x21ca92();_0x184b70[_0x25000e]=_0xd0363a([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b1254,_0x5b1254!=_0xd0363a([0x56,0x61,0x6c,0x69,0x64])&&_0x36339a();}function _0x21ca92(){const _0x4d8c7c=window[_0xd0363a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd0363a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd0363a([0x6e,0x6f,0x77])]())[_0xd0363a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd0363a([0x2e]),'');let _0x463f75=_0xd0363a([0x4a]);for(let _0x33b1bf=0x0;_0x33b1bf<_0x4d8c7c[_0xd0363a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33b1bf+=0x2){let _0x127803=window[_0xd0363a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d8c7c[_0xd0363a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33b1bf,_0x33b1bf+0x2));_0x127803>=_0x3f699f[_0xd0363a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x127803-=_0x3f699f[_0xd0363a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x463f75+=_0x3f699f[_0x127803];}return _0x463f75;}function _0x40fba4(){const _0x21a922=_0x1fba3c[_0xd0363a([0x73,0x70,0x6c,0x69,0x74])](_0xd0363a([0x2e]));if(0x3!=_0x21a922[_0xd0363a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c81e4(_0x21a922[0x1]);function _0x5c81e4(_0x9a3f15){const _0x427691=_0x55dd37(_0x9a3f15);return _0x427691&&_0x3cd51e()?_0x427691:null;function _0x3cd51e(){const _0x278d27=_0x427691[_0xd0363a([0x6a,0x74,0x69])],_0x2f5024=window[_0xd0363a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x278d27[_0xd0363a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x278d27[_0xd0363a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f60cc={..._0x427691,[_0xd0363a([0x6a,0x74,0x69])]:_0x278d27[_0xd0363a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x278d27[_0xd0363a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f60cc[_0xd0363a([0x76,0x63])],_0x135f09(_0x1f60cc)==_0x2f5024;}}}async function _0xf69e9(){let _0x51802f=!0x0;try{const _0x14847b=_0x1fba3c[_0xd0363a([0x73,0x70,0x6c,0x69,0x74])](_0xd0363a([0x2e])),[_0x457e82,_0x21e976,_0x349e07]=_0x14847b;return _0x4d2ccb(_0x457e82),await _0xd5b284(_0x457e82,_0x21e976,_0x349e07),_0x51802f;}catch(_0x5cd7eb){return!0x1;}function _0x4d2ccb(_0x3c998d){const _0x574fd8=_0x55dd37(_0x3c998d);_0x574fd8&&_0x574fd8[_0xd0363a([0x61,0x6c,0x67])]==_0xd0363a([0x45,0x53,0x32,0x35,0x36])||(_0x51802f=!0x1);}async function _0xd5b284(_0x186040,_0x4a3164,_0x4c3149){const _0x5aea67=window[_0xd0363a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd0363a([0x66,0x72,0x6f,0x6d])](_0x294772(_0x4c3149),_0x3bd47b=>_0x3bd47b[_0xd0363a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f226f=new window[(_0xd0363a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd0363a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x186040+_0xd0363a([0x2e])+_0x4a3164),_0x167809=window[_0xd0363a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd0363a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x167809)return;const _0x5aba42=await _0x167809[_0xd0363a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd0363a([0x6a,0x77,0x6b]),_0x53ade2,{[_0xd0363a([0x6e,0x61,0x6d,0x65])]:_0xd0363a([0x45,0x43,0x44,0x53,0x41]),[_0xd0363a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd0363a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd0363a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x167809[_0xd0363a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd0363a([0x6e,0x61,0x6d,0x65])]:_0xd0363a([0x45,0x43,0x44,0x53,0x41]),[_0xd0363a([0x68,0x61,0x73,0x68])]:{[_0xd0363a([0x6e,0x61,0x6d,0x65])]:_0xd0363a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5aba42,_0x5aea67,_0x1f226f)||(_0x51802f=!0x1);}}function _0x55dd37(_0x2c2f17){return _0x2c2f17[_0xd0363a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd0363a([0x65,0x79]))?JSON[_0xd0363a([0x70,0x61,0x72,0x73,0x65])](_0x294772(_0x2c2f17)):null;}function _0x294772(_0x103827){return window[_0xd0363a([0x61,0x74,0x6f,0x62])](_0x103827[_0xd0363a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd0363a([0x2b]))[_0xd0363a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd0363a([0x2f])));}function _0x135f09(_0xe4f602){let _0x569eb2=0x1505;function _0x537a15(_0x43eac8){for(let _0x30db57=0x0;_0x30db57<_0x43eac8[_0xd0363a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30db57++){const _0x411eda=_0x43eac8[_0xd0363a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30db57);_0x569eb2=(_0x569eb2<<0x5)+_0x569eb2+_0x411eda,_0x569eb2&=_0x569eb2;}}function _0x2d1379(_0x22f796){Array[_0xd0363a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x22f796)?_0x22f796[_0xd0363a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d1379):_0x22f796&&typeof _0x22f796==_0xd0363a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd0363a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x22f796)[_0xd0363a([0x73,0x6f,0x72,0x74])]()[_0xd0363a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b5642,_0x16a8f8])=>{_0x537a15(_0x2b5642),_0x2d1379(_0x16a8f8);}):_0x537a15(window[_0xd0363a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x22f796));}return _0x2d1379(_0xe4f602),_0x569eb2>>>0x0;}function _0x4fdec5(_0x2de137){return _0x2de137[_0xd0363a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd0363a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd0363a([0x30]));}function _0x3baeed(_0x2a2325){return _0x2a2325[_0xd0363a([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd0363a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd0363a([0x6a,0x6f,0x69,0x6e])]('');}function _0x35006f(_0x1887c2){return _0x184b70[_0xd0363a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xd0363a([0x68,0x61,0x73])](_0x1887c2);}function _0x273ff7(_0x169ddc){return _0x184b70[_0xd0363a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xd0363a([0x67,0x65,0x74])](_0x169ddc);}function _0x48b208(){}function _0xd0363a(_0x5b064b){return _0x5b064b['map'](_0x361412=>String['fromCharCode'](_0x361412))['join']('');}_0xbf0929(await _0x3ee555());}(this);}['destroy'](){const _0x3c9333=this['editor']['plugins']['get'](o),_0x3471ec=this['editor']['config']['get']('collaboration.channelId');for(const _0x4b6c7d of _0x3c9333['getCommentThreads']({'channelId':_0x3471ec}))_0x3c9333['_detachCommentThread'](_0x4b6c7d['id']),_0x3c9333['_threads']['delete'](_0x4b6c7d['id']);super['destroy']();}['hasMarkerForId'](_0x30025e){return this['getAllMarkersForId'](_0x30025e)['length']>0x0;}['getAllMarkersForId'](_0x15ec16){const _0x189a93=[];for(const _0x25b6e1 of this['editor']['model']['markers'])_0x25b6e1['name']['startsWith']('comment:'+_0x15ec16)&&_0x189a93['push'](_0x25b6e1);return _0x189a93;}['scrollToThreadMarker'](_0x4e3a3d){const _0x503a11=this['_getTargetForId'](_0x4e3a3d);_0x503a11&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x4e3a3d&&rt({'target':_0x503a11[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x390e56){this['editor']['model']['change'](()=>{for(const _0x4f97d8 of this['getAllMarkersForId'](_0x390e56))this['editor']['editing']['reconvertMarker'](_0x4f97d8);});}['_attachArchivedThread'](_0x6752ad){const _0x74b8db=this['editor']['plugins']['get'](o),_0x1bb15d=this['editor']['plugins']['get'](P),_0x2260ad=_0x74b8db['getCommentThread'](_0x6752ad);if(!_0x2260ad['isAttached']){const _0x186915=_0x2260ad['attachTo'](()=>this['_getTargetForId'](_0x2260ad['id']));_0x1bb15d['registerAnnotation'](_0x186915),_0x2260ad['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x3c179e=this['editor'],_0x293071=_0x3c179e['plugins']['get'](it);_0x3c179e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0xb10ef3,_0xce3629)=>{const {id:_0x13017c}=he(_0xb10ef3['markerName']),_0xeda81c=_0x3c179e['plugins']['get'](o)['getCommentThread'](_0x13017c),_0x54b382=this['activeMarker']&&he(this['activeMarker'])['id']===_0x13017c;let _0x330a3e;if(_0xeda81c&&_0xeda81c['isResolved']&&!_0x54b382&&_0xb10ef3['item'])return _0xce3629['consumable']['consume'](_0xb10ef3['item'],'addMarker:'+_0xb10ef3['markerName']),_0xce3629['consumable']['consume'](_0xb10ef3['item'],'removeMarker:'+_0xb10ef3['markerName']),null;const _0x33d2fe=['ck-comment-marker'];return _0x54b382&&_0x33d2fe['push']('ck-comment-marker--active'),_0x330a3e=_0xeda81c&&_0xeda81c['length']?_0xeda81c['comments']['first']['author']['id']:_0x293071['me']['id'],{'classes':_0x33d2fe,'attributes':{'data-comment':_0x13017c,'data-author-id':_0x330a3e}};}}),_0x3c179e['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x3d0e2b,{options:_0x8fb6d9})=>{const _0x3412ad=_0x3c179e['plugins']['get'](o),_0x42d929=_0x3c179e['model']['markers']['get'](_0x3d0e2b),{id:_0x38a511,part:_0x2ceca6}=he(_0x3d0e2b);if(_0x42d929&&!_0x42d929['affectsData'])return null;if(_0x8fb6d9['ignoreResolvedComments']){const _0x25f1c0=_0x3412ad['getCommentThread'](_0x38a511);if(_0x25f1c0&&_0x25f1c0['isResolved'])return null;}return{'group':'comment','name':_0x2ceca6?_0x38a511+':'+_0x2ceca6:_0x38a511};}}),_0x3c179e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x134638,{writer:_0x22bb0a})=>_0x22bb0a['createElement']('$marker',{'data-name':'comment:'+_0x134638['getAttribute']('id')})}),_0x3c179e['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x23507e=this['editor'],_0x164c2d=_0x23507e['plugins']['get'](o),_0x261670=new Set(),_0x5a58d3=new Set();_0x23507e['model']['document']['registerPostFixer'](_0x3a927c=>{let _0x3c7491=!0x1;for(const {name:_0x39d851,data:_0x14b56f}of _0x23507e['model']['document']['differ']['getChangedMarkers']()){const {group:_0x7bcff1,id:_0x269c6c}=he(_0x39d851);let _0x3e32a7=_0x14b56f['newRange'];if('comment'!==_0x7bcff1||!_0x3e32a7)continue;const _0x27e4a6='$graveyard'===_0x3e32a7['root']['rootName'];_0x27e4a6||(_0x3e32a7=ft(_0x3e32a7,_0x23507e['model']),!_0x3e32a7||_0x3e32a7['isCollapsed']||!_0x14b56f['newRange']||_0x3e32a7['isEqual'](_0x14b56f['newRange']))?_0x23507e['model']['hasContent'](_0x3e32a7)&&!_0x27e4a6?this['isThreadsLoadingPaused']?_0x261670['add'](_0x39d851):this['_handleThreadMarker'](_0x39d851,_0x269c6c):(_0x5a58d3['add'](_0x39d851),_0x261670['delete'](_0x39d851),_0x3a927c['removeMarker'](_0x39d851),_0x3c7491=!0x0):(_0x3a927c['updateMarker'](_0x39d851,{'range':_0x3e32a7}),_0x3c7491=!0x0);}return _0x3c7491;}),this['on']('change:isThreadsLoadingPaused',(_0x353c67,_0x5386a3,_0x10971b)=>{if(!_0x10971b&&_0x261670['size'])for(const _0xf74a4f of _0x261670){const {id:_0x5781b4}=he(_0xf74a4f);_0x261670['delete'](_0xf74a4f),_0x23507e['model']['markers']['get'](_0xf74a4f)&&this['_handleThreadMarker'](_0xf74a4f,_0x5781b4);}}),this['listenTo'](_0x23507e['model']['document'],'change',(_0x5761f8,_0x40ccf4)=>{for(const {name:_0x55c90d,data:{newRange:_0x546efa}}of _0x23507e['model']['document']['differ']['getChangedMarkers']()){const {group:_0x22052c,id:_0x2f58cc}=he(_0x55c90d);if('comment'!==_0x22052c)continue;const _0xa013b1=_0x164c2d['getCommentThread'](_0x2f58cc),_0x2f9076=this['hasMarkerForId'](_0x2f58cc);_0xa013b1&&(!_0xa013b1['_hasTargetInContent']&&_0x546efa&&_0x23507e['editing']['view']['once']('render',()=>{const _0x2effe2=_0x23507e['plugins']['get'](N),_0x32d506=_0x164c2d['_threadToController']['get'](_0xa013b1)['view'];_0x2effe2['getByInnerView'](_0x32d506)['refreshVisibility']();},{'priority':'low'}),_0xa013b1['_hasTargetInContent']=_0x2f9076||!!_0x546efa),_0x546efa||(_0x5a58d3['add'](_0x55c90d),_0x261670['delete'](_0x55c90d));}if(_0x40ccf4['isLocal'])for(const _0x54cf60 of _0x5a58d3){const {id:_0x170466}=he(_0x54cf60),_0x43d6a0=_0x164c2d['getCommentThread'](_0x170466),_0x59e850=this['hasMarkerForId'](_0x170466);_0x261670['delete'](_0x54cf60),!_0x43d6a0||_0x59e850||_0x43d6a0['unlinkedAt']||_0x43d6a0['setUnlinkedAt'](new Date());}_0x5a58d3['clear']();});}['_getTargetForId'](_0x50bc2c){const _0x5b740c=this['editor'],_0x5753d=this['getAllMarkersForId'](_0x50bc2c);return et(_0x5b740c['editing'],_0x5753d);}['_getTextContext'](_0x2d3ab0){const _0x112fde=this['getAllMarkersForId'](_0x2d3ab0);let _0x1e954c='',_0x487363=!0x1;for(const _0x1524bf of _0x112fde){const _0x219e62=_0x1524bf['getRange']();for(const _0x9f407 of Array['from'](_0x219e62['getItems']()))_0x9f407['is']('$textProxy')?(_0x1e954c&&_0x487363&&(_0x1e954c+='\x20',_0x487363=!0x1),_0x1e954c+=_0x9f407['data']):_0x487363=!0x0;_0x487363=!0x0;}return _0x1e954c['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x30c34e,_0xa2295e){const _0x378e68=this['editor'],_0x2b6fb2=_0x378e68['plugins']['get'](o);let _0x34cca9=_0x2b6fb2['getCommentThread'](_0xa2295e);const _0x6ca397=_0x378e68['config']['get']('collaboration.channelId'),_0x2b7695=_0x378e68['plugins']['get'](P);if(_0x34cca9&&(_0x34cca9['unlinkedAt']&&_0x34cca9['setUnlinkedAt'](null),_0x34cca9['isAttached']))return _0x34cca9;return!this['getAllMarkersForId'](_0xa2295e)[0x0]['managedUsingOperations']?_0x378e68['editing']['view']['once']('render',()=>{if(_0x2b6fb2['getCommentThread'](_0xa2295e))return;const _0x1ed017=_0x378e68['plugins']['get'](N);_0x34cca9=_0x2b6fb2['openNewCommentThread']({'channelId':_0x6ca397,'threadId':_0xa2295e,'target':()=>this['_getTargetForId'](_0xa2295e),'context':{'type':'text','value':this['_getTextContext'](_0xa2295e)}});const _0x3eae68=_0x2b6fb2['_threadToController']['get'](_0x34cca9)['view'],_0x454c7e=_0x1ed017['getByInnerView'](_0x3eae68);_0x454c7e&&_0x2b7695['registerAnnotation'](_0x454c7e);},{'priority':'low'}):_0x2b6fb2['fetchCommentThread']({'channelId':_0x6ca397,'threadId':_0xa2295e})['then'](_0x5cd31a=>{if('destroyed'!==_0x378e68['state']){if(_0x34cca9=_0x5cd31a,_0x34cca9&&!_0x34cca9['isAttached']){const _0x5eb09f=_0x34cca9['attachTo'](()=>this['_getTargetForId'](_0xa2295e));_0x2b7695['registerAnnotation'](_0x5eb09f),_0x34cca9['isResolved']&&this['_reconvertMarkers'](_0xa2295e);}else{if(!_0x34cca9){const _0x8c72b1=this['getAllMarkersForId'](_0xa2295e);_0x378e68['model']['change'](_0x34b9d8=>{for(const _0x7093b5 of _0x8c72b1)_0x34b9d8['removeMarker'](_0x7093b5);});}}}}),_0x34cca9;}['_handleThreadMarker'](_0x37a881,_0x3a465e){const _0x3a15fe=this['_attachMarkerToThread'](_0x37a881,_0x3a465e);_0x3a15fe&&!_0x3a15fe['context']&&_0x3a15fe['setContext']({'type':'text','value':this['_getTextContext'](_0x3a465e)});}['_initAriaMarkerChangeAnnouncements'](){const _0x5f26cd=this['editor'];ot(_0x5f26cd['model'],({left:_0x14f8a2,entered:_0x9f2ff0})=>{for(const _0x1c4f9b of _0x14f8a2)if(dt(_0x1c4f9b)){_0x5f26cd['ui']['ariaLiveAnnouncer']['announce'](S(_0x5f26cd['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x40e19f of _0x9f2ff0)if(dt(_0x40e19f)){_0x5f26cd['ui']['ariaLiveAnnouncer']['announce'](S(_0x5f26cd['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x775450)));break;}});}}function ut(_0x3c7be7,_0x467792){return _0x467792?_0x3c7be7+':'+_0x467792:_0x3c7be7;}function he(_0x300c6b){const _0x5aa04e=_0x300c6b['split'](':');return{'group':_0x5aa04e[0x0],'id':_0x5aa04e[0x1],'part':_0x5aa04e[0x2]};}function ft(_0x2a390f,_0x3cbb54){const _0x130aeb=_0x3cbb54['schema'],_0x2b3a63=_0x3cbb54['createRange'](_0x2a390f['start']);for(const _0x5945fc of _0x2a390f['getWalker']()){const {type:_0x29a6d7,item:_0x2d9ce9,nextPosition:_0x243ae3}=_0x5945fc;if('text'===_0x29a6d7||_0x130aeb['isObject'](_0x2d9ce9)){const _0x4f39df=_0x3cbb54['createPositionBefore'](_0x2d9ce9);_0x2b3a63['isCollapsed']&&(_0x2b3a63['start']=_0x4f39df),_0x2b3a63['end']=_0x243ae3;}}return _0x2b3a63;}function dt(_0x235752){return'comment'===he(_0x235752['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-2024,\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 _0xa0021b{['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 _0x49ff1a=this['editor'],_0x1b8047=_0x49ff1a['plugins']['get'](o),_0x33f50f=_0x49ff1a['plugins']['get'](r),_0x599009=_0x49ff1a['plugins']['get'](N),_0xc6190d=_0x49ff1a['plugins']['get'](P);_0x49ff1a['ui']['componentFactory']['add']('comment',()=>{const _0x2b198b=this['_createUIButton'](_0x1265c2);return _0x2b198b['tooltip']=!0x0,_0x2b198b;}),_0x49ff1a['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x4196d8)),_0xc6190d['addSourceCollector'](()=>{const _0x38868a=[];for(const [_0x57c3ec,_0x17f169]of _0x1b8047['_threadToController']){const _0x1db7a7=_0x33f50f['getAllMarkersForId'](_0x57c3ec['id']),_0xdbfa8=_0x1db7a7['map'](_0x2f97c8=>_0x2f97c8['getRange']());_0x1db7a7['length']>0x0&&_0x38868a['push']([_0x17f169['view'],_0xdbfa8]);}return _0x38868a;}),this['listenTo'](_0x599009,'change:activeAnnotations',(_0x1cfaf7,_0x46cdd7,_0xa5ab58)=>{const _0x40de66=Array['from'](_0xa5ab58)['map'](_0x5e503a=>_0x5e503a['innerView'])['find'](_0x11f41d=>_0x1b8047['_viewToController']['has'](_0x11f41d));if(!_0x40de66)return void(_0x33f50f['activeMarker']=null);const _0xab259e=_0x1b8047['_viewToController']['get'](_0x40de66)['model']['id'],_0x5e2b71='comment:'+_0xab259e;_0xab259e&&_0x33f50f['hasMarkerForId'](_0xab259e)?_0x33f50f['activeMarker']=_0x5e2b71:_0x33f50f['activeMarker']&&(_0x33f50f['activeMarker']=null);}),this['listenTo'](_0x1b8047,'removeCommentThread',(_0x445c6e,{threadId:_0x45436a,isFromAdapter:_0x1a4ba7})=>{!_0x1a4ba7&&_0x49ff1a['ui']['focusTracker']['isFocused']&&_0x33f50f['hasMarkerForId'](_0x45436a)&&_0x49ff1a['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x1b8047,'addComment',(_0x2a041b,{threadId:_0x12a20f,isFromAdapter:_0x5e4098})=>{if(_0x5e4098||!_0x33f50f['hasMarkerForId'](_0x12a20f)||!_0x1b8047['hasCommentThread'](_0x12a20f))return;0x1===_0x1b8047['getCommentThread'](_0x12a20f)['length']&&(_0x49ff1a['editing']['view']['focus'](),_0x2a041b['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c1c38=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5611c4;for(const _0x356681 in _0x1c1c38){const _0x225270=_0x356681,_0x5c536e=_0x1c1c38[_0x225270];if('commentsLicenseKeyValid'==_0x5c536e||'commentsLicenseKeyInvalid'==_0x5c536e||'commentsLicenseKeyExpired'==_0x5c536e||'commentsLicenseKeyDomainLimit'==_0x5c536e||'commentsLicenseKeyNotAllowed'==_0x5c536e||'commentsLicenseKeyEvaluationLimit'==_0x5c536e||'commentsLicenseKeyTrialLimit'==_0x5c536e||'commentsLicenseKeyDevelopmentLimit'==_0x5c536e||'commentsLicenseKeyUsageLimit'==_0x5c536e){delete _0x1c1c38[_0x225270],_0x5611c4=_0x5c536e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x5611c4&&_0x1c1c38['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x5611c4&&_0x1c1c38['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x5611c4&&_0x1c1c38['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x5611c4&&_0x1c1c38['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x5611c4&&_0x1c1c38['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x5611c4&&_0x1c1c38['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x5611c4&&_0x1c1c38['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x5611c4&&_0x1c1c38['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x33c2a9){const _0x1f8978=this['editor'],_0x456590=new _0x33c2a9(_0x1f8978['locale']),_0x225cce=_0x1f8978['commands']['get']('addCommentThread');return _0x456590['set']({'label':S(_0x1f8978['locale'],'Comment'),'icon':xt}),_0x456590['bind']('isEnabled')['to'](_0x225cce),this['listenTo'](_0x456590,'execute',()=>_0x225cce['execute']()),_0x456590;}}class s extends _0xa0021b{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x2d88a9){super(_0x2d88a9),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x938d1c,_0x45cfc3,_0x33474e)=>{_0x33474e?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x126590,_0x534f58]of this['editor']['commands'])_0x534f58['affectsData']&&'addCommentThread'!==_0x126590&&_0x534f58['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x2ca50e=this['editor']['editing']['view']['document'];this['listenTo'](_0x2ca50e,'cut',_0x22e9b1=>_0x22e9b1['stop'](),{'priority':'highest'}),this['listenTo'](_0x2ca50e,'clipboardInput',_0x8230e4=>_0x8230e4['stop'](),{'priority':'highest'}),this['listenTo'](_0x2ca50e,'delete',_0x1c0738=>_0x1c0738['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x3f985e,_0x3b910f]of this['editor']['commands'])_0x3b910f['affectsData']&&'addCommentThread'!==_0x3f985e&&_0x3b910f['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x7c7096{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x87099a){super(_0x87099a),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x35469b=this['context']['plugins']['get'](N);this['listenTo'](_0x35469b,'_activateAnnotation',(_0x213686,_0x1a55bc)=>{for(const _0x2ec9f5 of this['activeUIs']){const _0x12d764=this['_uis']['get'](_0x2ec9f5);(0x0,this['_uisData']['get'](_0x2ec9f5)['filter'])(_0x1a55bc)&&_0x12d764['setActiveAnnotation'](_0x1a55bc);}}),this['listenTo'](_0x35469b,'_deactivateAllAnnotations',()=>{for(const _0x40b97d of this['activeUIs']){this['_uis']['get'](_0x40b97d)['setActiveAnnotation'](null);}}),this['listenTo'](_0x35469b['_visibleAnnotations'],'add',(_0x165b25,_0x41dd7a)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x41dd7a);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x23006a){return this['activeUIs']['has'](_0x23006a);}['activate'](_0x48aa31,_0x140a7a=()=>!0x0){const _0x61142a=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x48aa31))throw new _0x5ed8e1('annotationsuis-missing-ui',this,{'uiName':_0x48aa31});this['isActive'](_0x48aa31)&&this['deactivate'](_0x48aa31),this['activeUIs']['add'](_0x48aa31);const _0x394a9f=new x();!function({source:_0x31db05,target:_0x4b3804,filter:_0x35e44a}){for(const _0x4e79f6 of _0x31db05)_0x35e44a(_0x4e79f6)&&_0x4b3804['add'](_0x4e79f6);_0x4b3804['listenTo'](_0x31db05,'add',(_0x1d78af,_0x4f9166)=>{_0x35e44a(_0x4f9166)&&_0x4b3804['add'](_0x4f9166);}),_0x4b3804['listenTo'](_0x31db05,'remove',(_0x4ada12,_0x3a1afe)=>{_0x4b3804['has'](_0x3a1afe)&&_0x4b3804['remove'](_0x3a1afe);});}({'source':_0x61142a['_visibleAnnotations'],'target':_0x394a9f,'filter':_0x140a7a}),this['_uisData']['set'](_0x48aa31,{'collection':_0x394a9f,'filter':_0x140a7a});const _0x6f2602=this['_uis']['get'](_0x48aa31);_0x6f2602['attach'](_0x394a9f),this['listenTo'](_0x6f2602,'change:activeAnnotation',(_0x4ad107,_0x4ab5d4,_0x163183,_0x1fe8e7)=>{_0x1fe8e7&&_0x61142a['_removeActiveAnnotation'](_0x1fe8e7),_0x163183&&_0x61142a['_addActiveAnnotation'](_0x163183);});}['deactivate'](_0x51f9a4){if(this['activeUIs']['delete'](_0x51f9a4),!this['_uis']['has'](_0x51f9a4))throw new _0x5ed8e1('annotationsuis-missing-ui',this,{'uiName':_0x51f9a4});const _0x27a0eb=this['_uis']['get'](_0x51f9a4);_0x27a0eb['detach'](),this['stopListening'](_0x27a0eb),this['_uisData']['get'](_0x51f9a4)['collection']['destroy'](),this['_uisData']['delete'](_0x51f9a4);}['switchTo'](_0x3698d9){if(!this['_uis']['has'](_0x3698d9))throw new _0x5ed8e1('annotationsuis-missing-ui',this,{'uiName':_0x3698d9});const _0x1ac900=this['context']['plugins']['get'](N),_0x574cac=Array['from'](_0x1ac900['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x3698d9);const _0x1a74bc=this['_uis']['get'](_0x3698d9);_0x1a74bc['setActiveAnnotation'](_0x574cac),_0x1a74bc['_setSelectedAnnotations']&&_0x574cac&&_0x1a74bc['_setSelectedAnnotations']([_0x574cac]);}['deactivateAll'](){for(const _0x9770bf of this['activeUIs'])this['deactivate'](_0x9770bf);}['register'](_0xa9d17f,_0x8dd54e){if(this['_uis']['has'](_0xa9d17f))throw new _0x5ed8e1('annotationsuis-register-already-registered');if('function'!=typeof _0x8dd54e['attach']||'function'!=typeof _0x8dd54e['detach']||'function'!=typeof _0x8dd54e['setActiveAnnotation'])throw new _0x5ed8e1('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0xa9d17f,_0x8dd54e);}['refilterAnnotations'](){const _0x43b2f2=this['context']['plugins']['get'](N)['collection'],_0x4f310f=new Map(),_0x55a2c0=Array['from'](this['activeUIs']);for(const _0x38a96c of this['activeUIs']){const _0x5e09d6=this['_uisData']['get'](_0x38a96c)['collection'];for(const _0x18eef2 of _0x5e09d6)_0x4f310f['set'](_0x18eef2,_0x38a96c);}for(const _0x44365e of _0x43b2f2){const _0x411398=_0x4f310f['get'](_0x44365e);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x44365e);const _0x273ae8=_0x55a2c0['find'](_0x51ccf3=>this['_uisData']['get'](_0x51ccf3)['filter'](_0x44365e));_0x411398!==_0x273ae8&&(_0x411398&&this['_uisData']['get'](_0x411398)['collection']['remove'](_0x44365e),_0x273ae8&&this['_uisData']['get'](_0x273ae8)['collection']['add'](_0x44365e));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1498ad){const _0x30a3e9=[];for(const _0x4bb15f of this['activeUIs']){(0x0,this['_uisData']['get'](_0x4bb15f)['filter'])(_0x1498ad)&&_0x30a3e9['push'](_0x4bb15f);}if(_0x30a3e9['length']>0x1)throw new _0x5ed8e1('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x30a3e9,'annotationType':_0x1498ad['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x455205){super(_0x455205);const _0x5db970=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 _0x5db882(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x5db970['to']('class')],'style':{'minHeight':_0x5db970['to']('minHeight',_0x53c129=>'number'==typeof _0x53c129?ae(_0x53c129+0xa):null)},'dir':_0x455205['uiLanguageDirection'],'role':'application','aria-label':S(_0x455205,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x455205,'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',_0x37238d=>{this['_updateItemPositionInFocusables'](_0x37238d['source']);}),this['list']['forEach'](_0xf28123=>{this['focusTracker']['add'](_0xf28123['element']),this['_updateItemPositionInFocusables'](_0xf28123);}),this['list']['on']('change',(_0x2777b2,_0xb607df)=>{for(const _0x3de453 of _0xb607df['removed'])this['focusTracker']['remove'](_0x3de453['element']),this['focusables']['remove'](_0x3de453);for(const _0x1fbcf1 of _0xb607df['added'])this['focusTracker']['add'](_0x1fbcf1['element']),this['_updateItemPositionInFocusables'](_0x1fbcf1);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0xd76d11){const _0x416b71=this['focusables']['getIndex'](_0xd76d11);let _0x2cd399,_0x5c9033;for(const _0x31ff68 of this['focusables'])if(_0xd76d11['top']<_0x31ff68['top']){_0x2cd399=_0x31ff68;break;}if(_0x5c9033=_0x2cd399?this['focusables']['getIndex'](_0x2cd399):this['focusables']['length'],-0x1!==_0x416b71){if(_0x416b71===_0x5c9033-0x1)return;this['focusables']['remove'](_0xd76d11),_0x5c9033=_0x2cd399?this['focusables']['getIndex'](_0x2cd399):this['focusables']['length'];}this['focusables']['add'](_0xd76d11,_0x5c9033);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x537039){super(_0x537039),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x234108,_0x204c96)=>_0x234108+_0x204c96),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x3a010=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x3a010['to']('isAnimationDisabled',_0x280c5a=>_0x280c5a?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x3a010['to']('top',_0x3b9a41=>qt(_0x3b9a41))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x8a879=this['element']['clientHeight'];_0x8a879&&(this['height']=_0x8a879);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x7c7096{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5591a3){super(_0x5591a3),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 _0x17f437=this['context']['config']['get']('sidebar.container');_0x17f437&&this['setContainer'](_0x17f437);}['setContainer'](_0x5c9dff){if(!y(_0x5c9dff))throw new _0x5ed8e1('sidebar-setcontainer-invalid-element');this['container']=_0x5c9dff;}['_attachToContainer']({viewClass:_0xbda8f1='',spaceBetweenItems:_0x3031c4=0x19}={}){if(!y(this['container']))throw new _0x5ed8e1('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0xbda8f1,this['_spaceBetweenItems']=_0x3031c4;}['rearrange']({removedAnnotation:_0x670b97,previousAnnotation:_0x4a149a,nextAnnotation:_0x43b46f}){const _0x533690=this['getSidebarItemView'](_0x670b97);this['view']['list']['remove'](_0x533690),this['_destroySidebarItemView'](_0x670b97),_0x4a149a&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4a149a)),_0x43b46f&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x43b46f)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x41c665,activatedAnnotation:_0xe6f068,disableAnimationOnActivatedAnnotation:_0x40875a}){if(this['_activeAnnotation']=_0xe6f068,_0x41c665){_0x41c665['isActive']=!0x1;const _0x7d86ae=this['getSidebarItemView'](_0x41c665);_0x7d86ae&&_0x40875a&&(_0x7d86ae['isAnimationDisabled']=!0x1);}if(_0xe6f068){const _0x4c8454=this['getSidebarItemView'](_0xe6f068);_0x4c8454&&(_0xe6f068['isActive']=!0x0,_0x40875a&&(_0x4c8454['isAnimationDisabled']=!0x0,_0x4c8454['top']+=0x1),this['_alignToTargetRect'](_0x4c8454));}}['_detachFromContainer'](_0x3ec5b7){if(this['view']['element']['remove'](),_0x3ec5b7){for(const _0x5013da of _0x3ec5b7)this['_destroySidebarItemView'](_0x5013da);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x21b7d1,_0x41095b){_0x41095b||(_0x41095b=_0x21b7d1['view']);const _0x52382c=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x52382c,_0x21b7d1),this['_annotationToSidebarItemView']['set'](_0x21b7d1,_0x52382c),_0x52382c['content']['add'](_0x41095b),this['listenTo'](_0x21b7d1['view'],'change:targetRect',(_0x478fde,_0x2a035f,_0x18462a)=>{const _0x289502=this['_getTargetTop'](_0x21b7d1,_0x18462a);_0x52382c['_targetTop']!=_0x289502&&(_0x52382c['_targetTop']=_0x289502,this['_setItemTop'](_0x52382c,_0x289502));}),this['listenTo'](_0x52382c,'change:top',()=>{this['_recalculate'](_0x52382c,'top');}),this['listenTo'](_0x52382c,'change:bottom',()=>{this['_recalculate'](_0x52382c,'bottom');}),this['_alignToTargetRect'](_0x52382c);const _0x55dbf9=this['_getItemBefore'](_0x52382c);if(_0x55dbf9)this['_alignAfterItem'](_0x55dbf9,_0x52382c)||this['_alignToTargetRect'](_0x52382c);else this['_alignToTargetRect'](_0x52382c);return this['_updateLastItem'](),this['view']['list']['add'](_0x52382c),_0x52382c;}['_alignForTopChange'](_0x2dac39){if(!_0x2dac39['content']['length'])return;const _0x396d1=this['_getItemBefore'](_0x2dac39);if(!_0x396d1)return;const _0x4643eb=this['_sidebarItemViewToAnnotation']['get'](_0x396d1),_0x46ff64=this['_activeAnnotation'];_0x46ff64&&_0x46ff64===_0x4643eb?this['_alignAfterItem'](_0x396d1,_0x2dac39):this['_alignBeforeItem'](_0x2dac39,_0x396d1);}['_alignForBottomChange'](_0x498395){if(!_0x498395['content']['length'])return;const _0x5b1882=this['_getItemAfter'](_0x498395);if(!_0x5b1882)return;const _0x51b128=this['_sidebarItemViewToAnnotation']['get'](_0x5b1882),_0x4c08da=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0xd2d8b1=this['_activeAnnotation'];_0xd2d8b1&&_0xd2d8b1===_0x51b128&&_0x4c08da?(this['_alignBeforeItem'](_0x5b1882,_0x498395),this['_alignAfterItem'](_0x498395,_0x5b1882)):_0xd2d8b1&&_0xd2d8b1===_0x51b128?this['_alignBeforeItem'](_0x5b1882,_0x498395):this['_alignAfterItem'](_0x498395,_0x5b1882);}['_recalculate'](_0x571220,_0x4ec596){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0xef5474,changedProp:_0x2ccc6d}of this['_recalculateBuffer'])'top'===_0x2ccc6d?this['_alignForTopChange'](_0xef5474):this['_alignForBottomChange'](_0xef5474);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x571220,'changedProp':_0x4ec596});}['getSidebarItemView'](_0x1d27a4){return this['_annotationToSidebarItemView']['get'](_0x1d27a4);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x39c4fb){const _0x4de4b5=this['getSidebarItemView'](_0x39c4fb);this['stopListening'](_0x4de4b5),this['stopListening'](_0x39c4fb['view']),_0x4de4b5['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x39c4fb),this['_sidebarItemViewToAnnotation']['delete'](_0x4de4b5);}['_createSidebarView'](){const _0x455218=new V(this['context']['locale']);return _0x455218['render'](),this['on']('change:_lastItem',(_0x424565,_0x2f2b55,_0x110f4e,_0x955c34)=>{_0x955c34&&_0x455218['unbind']('minHeight'),_0x110f4e?_0x455218['bind']('minHeight')['to'](_0x110f4e,'bottom'):_0x455218['minHeight']=null;}),_0x455218;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x1d55f8){const _0x1fef76=this['_sidebarItemViewToAnnotation']['get'](_0x1d55f8),_0x33a7f5=_0x1fef76&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1fef76)-0x1);return _0x33a7f5&&this['getSidebarItemView'](_0x33a7f5)||null;}['_getItemAfter'](_0x4b2656){const _0x427b2a=this['_sidebarItemViewToAnnotation']['get'](_0x4b2656),_0x56ad0c=_0x427b2a&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x427b2a)+0x1);return _0x56ad0c&&this['getSidebarItemView'](_0x56ad0c)||null;}['_alignBeforeItem'](_0x403e50,_0x38c72a){_0x403e50['updateHeight']();const _0x5b5f47=R(_0x38c72a['bottom']+this['_spaceBetweenItems'],_0x403e50['top']);return!!_0x5b5f47&&(this['_setItemTop'](_0x38c72a,_0x38c72a['top']-_0x5b5f47),!0x0);}['_alignAfterItem'](_0x3ff14b,_0x3bd88d){_0x3ff14b['updateHeight']();const _0x5e5e9b=R(_0x3ff14b['bottom']+this['_spaceBetweenItems'],_0x3bd88d['top']);return!!_0x5e5e9b&&(this['_setItemTop'](_0x3bd88d,_0x3bd88d['top']+_0x5e5e9b,!0x1),!0x0);}['_alignToTargetRect'](_0xe23ab9){const _0x4981db=this['_sidebarItemViewToAnnotation']['get'](_0xe23ab9);if(!_0x4981db||!_0x4981db['target']||!_0x4981db['targetRect'])return;const _0x163c61=this['_getTargetTop'](_0x4981db,_0x4981db['targetRect']);this['_setItemTop'](_0xe23ab9,_0x163c61);}['_getTargetTop'](_0x5791a8,_0x3eb1c2){if(null===_0x3eb1c2)return 0x0;if(_0x5791a8['target']instanceof _0x738b58)return _0x3eb1c2['top'];{const _0x328be4=new _0x738b58(this['view']['element'])['top'];return _0x3eb1c2['top']-_0x328be4;}}['_setItemTop'](_0x50d08d,_0x44150e,_0x5ec506=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x5ec506&&(_0x44150e=Math['max'](_0x44150e,this['_getMaxAvailableTop'](_0x50d08d))),_0x50d08d['top']=_0x44150e;}['_getMaxAvailableTop'](_0x1e0b13){let _0x235f99=this['_getItemBefore'](_0x1e0b13),_0x58bb6e=0x0;for(;_0x235f99;)_0x235f99['updateHeight'](),_0x58bb6e+=this['_spaceBetweenItems']+_0x235f99['height'],_0x235f99=this['_getItemBefore'](_0x235f99);return _0x58bb6e;}}function R(_0x37ade3,_0x520c89){return Math['max'](_0x37ade3-_0x520c89,0x0);}function y(_0x41d3c4){return null!==_0x41d3c4&&'object'==typeof _0x41d3c4&&0x1===_0x41d3c4['nodeType'];}class e extends _0x7c7096{['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(_0x56440e){super(_0x56440e),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x236234(),this['_refreshPositioningDebounced']=_0x14ec9d(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x41dc3c=this['context']['plugins']['get'](M),_0x31b40d=this['context']['plugins']['get'](z);_0x41dc3c['register']('wideSidebar',this),_0x31b40d['container']&&_0x41dc3c['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x21a906){if(_0x21a906===this['activeAnnotation'])return;const _0x9b833b=this['context']['plugins']['get'](z);_0x9b833b['_activeAnnotation']=_0x21a906;const _0x41bc55=this['activeAnnotation'];this['activeAnnotation']=_0x21a906,_0x9b833b['refresh']({'blurredAnnotation':_0x41bc55,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0xc60dfc){this['annotations']=_0xc60dfc;const _0x50365e=this['context']['plugins']['get'](z);if(_0x50365e['_annotations']=_0xc60dfc,this['isAttached'])throw new _0x5ed8e1('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x50365e,'set:container',()=>{this['detach'](),this['listenTo'](_0x50365e,'change:container',_0x122b0a=>{_0x122b0a['off'](),this['attach'](_0xc60dfc);});}),_0x50365e['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x300ad6=_0x435767=>{_0x435767['updateTargetRect'](),_0x50365e['addAnnotation'](_0x435767);};for(const _0xae60e0 of _0xc60dfc)_0x300ad6(_0xae60e0);this['listenTo'](_0xc60dfc,'add',(_0x8613c1,_0x319a00)=>{_0x300ad6(_0x319a00);}),this['listenTo'](_0xc60dfc,'remove',(_0x8634a7,_0x216ce3,_0x423e24)=>{_0x50365e['rearrange']({'removedAnnotation':_0x216ce3,'previousAnnotation':_0xc60dfc['get'](_0x423e24-0x1),'nextAnnotation':_0xc60dfc['get'](_0x423e24+0x1)}),_0x216ce3===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0xc60dfc,'focus',(_0x168b75,_0x1e538a)=>{this['setActiveAnnotation'](_0x1e538a);}),this['listenTo'](_0xc60dfc,'blur',()=>{this['setActiveAnnotation'](null);});const _0x47672f=this['context']instanceof _0x193a68?this['context']['editors']:new _0x236234([this['context']]);for(const _0x487c1f of _0x47672f)this['_integrateWithEditorAnnotations'](_0x487c1f);this['listenTo'](_0x47672f,'add',(_0x4451fe,_0x7c6925)=>{this['listenTo'](_0x7c6925,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x7c6925);});}),this['listenTo'](_0x47672f,'remove',(_0x5a2ba4,_0x21ae9b)=>{_0x21ae9b['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x21ae9b['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x5ed8e1('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x119fb5=this['context']['plugins']['get'](z);_0x119fb5['_detachFromContainer'](this['annotations']),this['stopListening'](_0x119fb5),this['stopListening'](this['annotations']),this['context']instanceof _0x193a68&&this['stopListening'](this['context']['editors']);for(const _0xd7f1fb of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0xd7f1fb);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x1c2cbb){if(!_0x1c2cbb['plugins']['has']('EditorAnnotations'))return;const _0xa44ff7=_0x1c2cbb['plugins']['get']('EditorAnnotations'),_0x4e14f9=()=>{const _0x4d2240=_0xa44ff7['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4d2240[0x0]||null);};this['listenTo'](_0xa44ff7,'refresh',_0x4e14f9),this['listenTo'](_0xa44ff7,'blur',(_0x39b354,{isAnnotationTracked:_0x479f65})=>{this['activeAnnotation']&&_0x479f65(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xa44ff7,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x6cea9c=>{_0xa44ff7['hasDomSelection']()&&(_0x4e14f9(),_0x6cea9c['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0xa44ff7);}['_destroyEditorAnnotationsIntegration'](_0x2e4fdf){this['stopListening'](_0x2e4fdf),this['_editorAnnotations']['remove'](_0x2e4fdf);}}class D extends _0x1265c2{['counterView'];constructor(_0x6d1fd8){super(_0x6d1fd8);const _0x14547b=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x703684,_0x1a7543)=>_0x703684?'...':_0x1a7543['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',_0x14547b['to']('annotationType',_0x44d352=>'ck-annotation-counter__badge--'+_0x44d352),_0x14547b['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x14547b['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x7c7096{['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(_0x4050f9){super(_0x4050f9),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x103f73),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x236234(),this['_refreshPositioningDebounced']=_0x14ec9d(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x4c3585(this['context']['locale']),this['balloonPanelView']=new _0x47e98a(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x1304ee){this['annotations']=_0x1304ee;const _0x219a68=this['context']['plugins']['get'](z),_0xfa6246=this['balloonPanelView'];if(_0x219a68['_annotations']=_0x1304ee,this['isAttached'])throw new _0x5ed8e1('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x219a68,'set:container',()=>{this['detach'](),this['listenTo'](_0x219a68,'change:container',_0x3c8c52=>{_0x3c8c52['off'](),this['attach'](_0x1304ee);});}),_0x219a68['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x555544=_0x54420e=>{const _0x2e973e=new D(this['context']['locale']);_0x219a68['addAnnotation'](_0x54420e,_0x2e973e),this['_annotationToNarrowView']['set'](_0x54420e,_0x2e973e),_0x2e973e['bind']('isDirty','annotationType','number')['to'](_0x54420e['view'],'isDirty','type','length'),_0x2e973e['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0xfa6246['content']['first']!==_0x54420e['view']?(this['_showBalloon'](_0x54420e),_0x54420e['view']['element']['focus'](),this['setActiveAnnotation'](_0x54420e)):this['setActiveAnnotation'](null);});};for(const _0x1249b3 of _0x1304ee)_0x555544(_0x1249b3);this['listenTo'](_0x1304ee,'add',(_0x51a191,_0x134112)=>{_0x555544(_0x134112);}),this['listenTo'](_0x1304ee,'remove',(_0x2d94ed,_0x1798d3,_0x42f1bb)=>{this['_annotationToNarrowView']['get'](_0x1798d3)['destroy'](),this['_annotationToNarrowView']['delete'](_0x1798d3),_0x219a68['rearrange']({'removedAnnotation':_0x1798d3,'previousAnnotation':_0x1304ee['get'](_0x42f1bb-0x1),'nextAnnotation':_0x1304ee['get'](_0x42f1bb+0x1)}),_0x1798d3===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x1304ee,'focus',(_0x278f04,_0xe3bdb0)=>{this['setActiveAnnotation'](_0xe3bdb0);}),this['listenTo'](_0x1304ee,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x41dfa9,_0x13a72b)=>{_0x13a72b['keyCode']===_0xd43df1['esc']&&_0xfa6246['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0xfa6246['content']['first']),this['_hideBalloon'](),_0x13a72b['stopPropagation'](),_0x13a72b['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x5d3325,_0x5c43b6)=>{const _0x1e0322=_0x5c43b6['target'];_0xfa6246['isVisible']&&_0xfa6246['element']['contains'](_0x1e0322)||_0x219a68['view']['element']['contains'](_0x1e0322)||_0x5d3325['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x16e84d=>_0x16e84d['contains'](_0x1e0322))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x57fdb0=this['context']instanceof _0x193a68?this['context']['editors']:new _0x236234([this['context']]);for(const _0x48ed55 of _0x57fdb0)this['_integrateWithEditorAnnotations'](_0x48ed55);this['listenTo'](_0x57fdb0,'add',(_0x5e0c01,_0x3a7b30)=>{this['listenTo'](_0x3a7b30,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x3a7b30);});}),this['listenTo'](_0x57fdb0,'remove',(_0x14c9fe,_0x2d8c84)=>{_0x2d8c84['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2d8c84['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x2f40c0){if(_0x2f40c0===this['activeAnnotation'])return;const _0x4c5d30=this['context']['plugins']['get'](z);if(_0x4c5d30['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2f40c0,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2f40c0)_0x4c5d30['getSidebarItemView'](_0x2f40c0)?this['_showBalloon'](_0x2f40c0):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x2f40c0;}['detach'](){if(!this['isAttached'])throw new _0x5ed8e1('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xa44f95=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x298f95=>_0x298f95['destroy']()),this['_annotationToNarrowView']['clear'](),_0xa44f95['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x193a68&&this['stopListening'](this['context']['editors']);for(const _0x4f16f3 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4f16f3);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'](_0x133dc0){if(!_0x133dc0['plugins']['has']('EditorAnnotations'))return;const _0x104e22=_0x133dc0['plugins']['get']('EditorAnnotations'),_0x4257f8=this['context']['plugins']['get'](z),_0x230fba=this['annotations'],_0x52c2c8=this['balloonPanelView'],_0x4a3c2b=()=>{const _0x2fbcad=_0x104e22['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x2fbcad),this['setActiveAnnotation'](_0x2fbcad[0x0]||null);};this['listenTo'](_0x104e22,'refresh',_0x4a3c2b),this['listenTo'](_0x104e22,'blur',(_0xc4c00a,{isAnnotationTracked:_0x34c7bf})=>{this['activeAnnotation']&&_0x34c7bf(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x104e22,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x230fba,'blur',_0x567ca6=>{_0x104e22['hasDomSelection']()&&_0x567ca6['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0xbbc9df,_0x510cf8)=>{const _0x5256cf=_0x510cf8['target'];_0x52c2c8['isVisible']&&_0x52c2c8['element']['contains'](_0x5256cf)||_0x4257f8['view']['element']['contains'](_0x5256cf)||this['activeAnnotation']&&_0x104e22['hasDomSelection']()&&(_0x4a3c2b(),_0xbbc9df['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x104e22);}['_destroyEditorAnnotationsIntegration'](_0x1522aa){_0x1522aa&&(this['stopListening'](_0x1522aa),this['_editorAnnotations']['remove'](_0x1522aa));}['_setSelectedAnnotations'](_0x48cc41){for(const _0x75fc61 of this['_selectedAnnotations'])_0x48cc41['includes'](_0x75fc61)||this['_manuallyClosedAnnotationViews']['delete'](_0x75fc61['view']);this['_selectedAnnotations']=_0x48cc41;}['_refreshPositioning'](){const _0x252893=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x252893['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0xd754df){if(this['_manuallyClosedAnnotationViews']['has'](_0xd754df['view']))return;const _0x5b88b3=this['balloonPanelView']['content']['first'];_0x5b88b3!==_0xd754df['view']?(_0x5b88b3&&this['_detachListeners'](_0x5b88b3),this['_attachListeners'](_0xd754df['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0xd754df['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x12ccd7=this['balloonPanelView']['content']['first'],_0x146103=_0x12ccd7&&this['annotations']['getByView'](_0x12ccd7);if(!_0x146103||!this['_annotationToNarrowView']['has'](_0x146103))return;const _0x30961f=this['_annotationToNarrowView']['get'](_0x146103)['element'],_0x217735=(function(){const _0x2b1582=_0x47e98a['defaultPositions'];return[_0x2b1582['southArrowNorthEast'],_0x2b1582['northArrowSouthEast'],_0x2b1582['southArrowNorth'],_0x2b1582['northArrowSouth'],_0x2b1582['southArrowNorthWest'],_0x2b1582['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x30961f,'positions':_0x217735});}['_hideBalloon'](){const _0x3b4adc=this['balloonPanelView'],_0x3ea820=_0x3b4adc['content']['first'];_0x3ea820&&(this['_detachListeners'](_0x3ea820),_0x3b4adc['unpin'](),_0x3b4adc['content']['clear']());}['_attachListeners'](_0x237bc1){this['listenTo'](_0x237bc1,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x237bc1,'Esc',(_0x778b9b,_0x2ac78f)=>{this['_manuallyClosedAnnotationViews']['add'](_0x237bc1),this['_hideBalloon'](),_0x2ac78f();});}['_detachListeners'](_0x3a45e7){this['stopListening'](_0x3a45e7);}}class c extends _0xa0021b{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x57430a,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x318998){super(_0x318998),_0x318998['editing']['view']['addObserver'](_0x8d358d),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x318998['plugins']['get'](_0x57430a),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x4624f0=this['editor']['plugins']['get'](M);_0x4624f0['context']===this['editor']&&(_0x4624f0['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x129ecf,_0x23f612)=>{const _0x53bff4=this['_balloon'];if(this['isAttached']&&_0x53bff4['visibleView']){const _0x228374=this['annotations']['getByView'](_0x53bff4['visibleView']);_0x228374&&this['_closeAnnotation'](_0x228374),_0x23f612();}}));}['afterInit'](){const _0x4bb72a=this['editor']['plugins']['get'](M);_0x4bb72a['context']===this['editor']&&(_0x4bb72a['hasActive']()||_0x4bb72a['switchTo']('inline'));}['setActiveAnnotation'](_0x51eee1){_0x51eee1!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x51eee1&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x51eee1)&&this['_addAnnotationToBalloon'](_0x51eee1,!0x0),_0x51eee1['isActive']=!0x0),_0x51eee1||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x51eee1);}['attach'](_0x587840){this['annotations']=_0x587840;const _0x3f11c0=this['editor']['plugins']['get'](M),_0x1b75e5=this['_balloon'];if(this['isAttached'])throw new _0x5ed8e1('inlineannotations-attach-already-attached',this);if(_0x3f11c0['context']!==this['editor'])throw new _0x5ed8e1('inlineannotations-not-allowed-with-context',this);const _0x4a2959=this['editor']['plugins']['get'](P);this['listenTo'](_0x4a2959,'refresh',()=>{const _0x3efe8c=_0x4a2959['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x5a186c,_0x517538;!this['_forceRefresh']&&(_0x5a186c=_0x3efe8c,_0x517538=this['_selectedAnnotations'],_0x5a186c['length']===_0x517538['length']&&_0x5a186c['every'](_0x80d4b0=>_0x517538['includes'](_0x80d4b0)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x3efe8c),this['setActiveAnnotation'](_0x3efe8c[0x0]||null));}),this['listenTo'](_0x4a2959,'blur',(_0x1adcd6,{isAnnotationTracked:_0x533829})=>{this['activeAnnotation']&&_0x533829(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x432b52,_0x36d1eb,_0xbc0cc)=>{_0xbc0cc||this['setActiveAnnotation'](null);}),this['listenTo'](_0x587840,'remove',(_0x2fdf80,_0x4e59ca)=>{this['_removeAnnotationFromBalloon'](_0x4e59ca),_0x4e59ca===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1b75e5,'change:visibleView',(_0x1a1266,_0x1db337,_0x3de5bd,_0x49db2b)=>{_0x49db2b&&this['stopListening'](_0x49db2b);const _0x24d6e5=_0x587840['getByView'](_0x3de5bd);_0x3de5bd&&_0x24d6e5&&(this['listenTo'](_0x3de5bd,'change:height',()=>{_0x1b75e5['updatePosition']();}),this['listenTo'](_0x3de5bd,'Esc',()=>{this['_closeAnnotation'](_0x24d6e5),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x24d6e5&&this['setActiveAnnotation'](_0x24d6e5));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x1b75e5['visibleView']&&(_0x587840['getByView'](_0x1b75e5['visibleView'])&&_0x1b75e5['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 _0x5ed8e1('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x2aaff4 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x2aaff4);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x356390){for(const _0xcb44f7 of this['_selectedAnnotations'])_0x356390['includes'](_0xcb44f7)||this['_manuallyClosed']['delete'](_0xcb44f7);for(const _0x136572 of this['annotations'])_0x356390['includes'](_0x136572)||this['_removeAnnotationFromBalloon'](_0x136572);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x4e187f of _0x356390)this['_addAnnotationToBalloon'](_0x4e187f);}this['_selectedAnnotations']=_0x356390;}['_addAnnotationToBalloon'](_0x395563,_0x2f7f18=!0x1){this['_manuallyClosed']['has'](_0x395563)||(this['_addedAnnotations']['has'](_0x395563)||this['_balloon']['hasView'](_0x395563['view'])||(this['_addedAnnotations']['add'](_0x395563),this['_balloon']['add']({'stackId':_0x395563['view']['id'],'view':_0x395563['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x395563)}})),_0x2f7f18&&this['_balloon']['showStack'](_0x395563['view']['id']));}['_getBalloonTargetForAnnotation'](_0x24dc31){const _0x14c8a8=_0x24dc31['target'],_0x75e3b1=this['editor']['editing']['view'],_0x184505=_0x75e3b1['document']['selection']['getFirstRange'](),_0x157946=_0x75e3b1['domConverter']['viewRangeToDom'](_0x184505);if(_0x157946['collapse'](!0x0),_0x14c8a8){if(_0x14c8a8 instanceof _0x738b58)return _0x14c8a8;let _0x3119e3=[];for(const _0x5e09ad of _0x14c8a8)_0x3119e3['push'](...(_0x19b49c=_0x5e09ad['getClientRects'](),Array['from'](_0x19b49c)['map'](DOMRect['fromRect'])));_0x3119e3=function(_0x3a761a){const _0x2086a6=[];let _0x321e06=_0x3a761a[0x0];for(let _0x8f81d1=0x1;_0x8f81d1<_0x3a761a['length'];_0x8f81d1++)b(_0x321e06,_0x3a761a[_0x8f81d1])?_0x321e06['width']+=_0x3a761a[_0x8f81d1]['width']:(_0x2086a6['push'](_0x321e06),_0x321e06=_0x3a761a[_0x8f81d1]);return _0x2086a6['push'](_0x321e06),_0x2086a6;}(_0x3119e3);const _0x168c90=_0x157946['getBoundingClientRect']();return _0x3119e3['find'](_0x198c66=>_0x198c66['top']<=_0x168c90['top']&&_0x198c66['bottom']>=_0x168c90['bottom']&&_0x198c66['left']<=_0x168c90['left']&&_0x198c66['right']>=_0x168c90['right'])||_0x3119e3[0x0];}var _0x19b49c;return _0x24dc31['targetRect']||_0x157946;}['_removeAnnotationFromBalloon'](_0x2ec696){this['_addedAnnotations']['has'](_0x2ec696)&&this['_balloon']['hasView'](_0x2ec696['view'])&&(this['_addedAnnotations']['delete'](_0x2ec696),this['_balloon']['remove'](_0x2ec696['view']));}['_closeAnnotation'](_0x112f38){this['_manuallyClosed']['add'](_0x112f38),this['_removeAnnotationFromBalloon'](_0x112f38);}}function b(_0x3875bd,_0xbb47ee){return _0x3875bd['top']===_0xbb47ee['top']&&_0x3875bd['bottom']===_0xbb47ee['bottom']&&_0x3875bd['right']===_0xbb47ee['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-2024,\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(_0x125e23,_0x44210a){super(_0x125e23),this['set']('isEmpty',!_0x44210a['length']),this['focusTracker']=new _0x5db882(),this['_annotationViews']=_0x44210a,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x44210a,'focusTracker':this['focusTracker']}),this['listenTo'](_0x44210a,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x44210a,'remove',(_0x1bbd8d,_0x704d3b)=>{_0x704d3b['isActive']&&this['focus'](),_0x44210a['length']||(this['isEmpty']=!0x0);});const _0x2030bf=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x125e23,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x44210a},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2030bf['if']('isEmpty','ck-hidden',_0x150a65=>!_0x150a65)]},'children':[{'text':S(_0x125e23,'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 _0x3516c2 of this['_annotationViews'])this['focusTracker']['add'](_0x3516c2['element']);this['_annotationViews']['on']('change',(_0xf7b5ef,{added:_0x851aed,removed:_0x2abbd1})=>{for(const _0xcd79a4 of _0x851aed)this['focusTracker']['add'](_0xcd79a4['element']);for(const _0x485e3f of _0x2abbd1)this['focusTracker']['remove'](_0x485e3f['element']);});}}class f extends _0x7c7096{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x22214e){super(_0x22214e),this['archivedThreads']=new _0x236234();}['init'](){const _0x3898f3=this['context'],_0x11339a=_0x3898f3['plugins']['get'](o),_0x18eda1=_0x3898f3['plugins']['get'](N);this['listenTo'](_0x11339a,'addCommentThread',(_0x49db6b,{threadId:_0x347661})=>{const _0x2e7289=_0x11339a['getCommentThread'](_0x347661);_0x2e7289['archivedAt']&&this['archivedThreads']['add'](_0x2e7289,this['_calculatePosition'](_0x2e7289['archivedAt'])),this['listenTo'](_0x2e7289,'change:archivedAt',(_0x1717b4,_0x514265,_0x162003)=>{_0x162003?this['archivedThreads']['has'](_0x2e7289)||this['archivedThreads']['add'](_0x2e7289,this['_calculatePosition'](_0x2e7289['archivedAt'])):this['archivedThreads']['has'](_0x2e7289)&&this['archivedThreads']['remove'](_0x2e7289);});}),this['listenTo'](_0x11339a,'removeCommentThread',(_0x948215,{threadId:_0x1dcdd1})=>{const _0x2025c4=_0x11339a['getCommentThread'](_0x1dcdd1);this['stopListening'](_0x2025c4),this['archivedThreads']['has'](_0x2025c4)&&this['archivedThreads']['remove'](_0x2025c4);},{'priority':'highest'}),this['listenTo'](_0x18eda1['collection'],'focus',(_0x45cebd,_0x4d6a8e)=>{_0x4d6a8e['isVisible']||(_0x4d6a8e['isActive']=!0x0,_0x18eda1['activate'](_0x4d6a8e));});}['_calculatePosition'](_0x13340f){const _0x547265=[...this['archivedThreads']]['findIndex'](_0x5bd394=>_0x5bd394['archivedAt']<_0x13340f);return _0x547265>-0x1?_0x547265:this['archivedThreads']['length'];}}class a extends _0xa0021b{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x69d321];}constructor(_0x2af695){super(_0x2af695),this['annotationViews']=new _0x5c0d53(),this['_pendingThreads']=[];}['init'](){const _0x27c504=this['editor'],_0x465ba2=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x27c504['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x1265c2,!0x0)),_0x27c504['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0xee1452=this['_createCommentsArchiveButton'](_0x4196d8);return _0xee1452['set']({'role':'menuitemcheckbox'}),_0xee1452;});const _0x1f4519=_0x27c504['plugins']['get'](f),_0x527ed1=_0x27c504['plugins']['get']('Annotations'),_0x2a6c1c=_0x27c504['plugins']['get']('CommentsRepository');this['listenTo'](_0x1f4519['archivedThreads'],'add',(_0x4a5e82,_0x17cce5)=>{const _0x249115=_0x27c504['config']['get']('collaboration.channelId');if(!_0x249115||_0x17cce5['channelId']===_0x249115){const _0x3486f2=_0x2a6c1c['_threadToController']['get'](_0x17cce5);if(!_0x3486f2)return void this['_pendingThreads']['push'](_0x17cce5);const _0x30a458=this['_calculatePosition'](_0x17cce5['archivedAt']),_0x22012a=_0x527ed1['getByInnerView'](_0x3486f2['view']);_0x22012a['isVisible']&&_0x527ed1['_visibleAnnotations']['remove'](_0x22012a),this['annotationViews']['add'](_0x22012a['view'],_0x30a458);}}),this['listenTo'](_0x527ed1['collection'],'add',(_0x489ce6,_0x45b56a)=>{const _0x14c096=this['_pendingThreads']['find'](_0x43be5c=>{const _0x328368=_0x2a6c1c['_threadToController']['get'](_0x43be5c);return _0x328368&&_0x45b56a['innerView']===_0x328368['view'];});if(_0x14c096){const _0x8ec7ec=this['_calculatePosition'](_0x14c096['archivedAt']);this['annotationViews']['add'](_0x45b56a['view'],_0x8ec7ec),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x14c096),0x1);}}),this['listenTo'](_0x1f4519['archivedThreads'],'remove',(_0x4dad86,_0x4c126b)=>{const _0x320d74=_0x27c504['config']['get']('collaboration.channelId');if(!_0x320d74||_0x4c126b['channelId']===_0x320d74){const _0x29acbb=_0x2a6c1c['_threadToController']['get'](_0x4c126b),_0x11d3a7=_0x527ed1['getByInnerView'](_0x29acbb['view']);this['annotationViews']['remove'](_0x11d3a7['view']),this['stopListening'](_0x11d3a7['focusableElements']);}}),this['listenTo'](_0x527ed1['collection'],'add',(_0x184d2a,_0x4164a7)=>{this['listenTo'](_0x4164a7,'escape',_0x465ba2);}),this['listenTo'](_0x527ed1['collection'],'remove',(_0x29dd01,_0x4a1275)=>{this['stopListening'](_0x4a1275,'escape',_0x465ba2);});}['_calculatePosition'](_0x2cd16a){const _0x1e189f=this['editor']['config']['get']('collaboration.channelId'),_0x37878f=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x3d56f3=>_0x3d56f3['channelId']===_0x1e189f)['findIndex'](_0x195fc0=>_0x195fc0['archivedAt']<_0x2cd16a);return _0x37878f<0x0||_0x37878f>this['annotationViews']['length']?this['annotationViews']['length']:_0x37878f-0x1;}['_toggleDialog'](){const _0x283ba3=this['editor'],_0x4024e1=_0x283ba3['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x283ba3['locale'],this['annotationViews'])),'commentsArchive'===_0x4024e1['id']?_0x4024e1['hide']():_0x4024e1['show']({'id':'commentsArchive','title':S(_0x283ba3['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x3543f1['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x3abb4a,_0x4d8d01=!0x1){const _0x5481e6=this['editor']['locale'],_0x5551ca=this['editor']['plugins']['get']('Dialog'),_0x439460=new _0x3abb4a(_0x5481e6);return _0x439460['bind']('isEnabled')['to'](this,'isEnabled'),_0x439460['bind']('isOn')['to'](_0x5551ca,'id',_0x4930cb=>'commentsArchive'===_0x4930cb),_0x439460['set']({'label':S(_0x5481e6,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x4d8d01&&(_0x439460['tooltip']=!0x0),this['listenTo'](_0x439460,'execute',()=>this['_toggleDialog']()),_0x439460;}['_hideDialogOnAnnotationEscape']=_0x10b154=>{const _0xe2424d=_0x10b154['source'];if(!this['annotationViews']['has'](_0xe2424d['view']))return;const _0x1de053=this['editor']['plugins']['get']('Dialog');_0x1de053['isOpen']&&'commentsArchive'===_0x1de053['id']&&(_0x1de053['hide'](),_0x10b154['stop']());};}class p extends _0xa0021b{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,ss as BaseCommentThreadView,os as BaseCommentView,re as Comment,oe as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,Ct as CommentThreadView,vt 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 _0x190e00,icons as _0x58d4b3,ContextPlugin as _0x4fba92,PendingActions as ht,Command as _0x11308d,Plugin as _0x44cf24,Context as _0x17bfab}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x570f76,uid as _0xcaced0,KeystrokeHandler as jt,FocusTracker as _0x42b9d5,diff as _0x3ce627,Collection as _0x3a2226,Rect as _0x4c5767,CKEditorError as _0x358429,first as _0x54d675,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x92e931,keyCodes as _0x2aed5e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x5a74dc,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x2d48b1,trimHtml as _0x448b88,LateFocusDropdownButtonView as _0x437739,Users as it,getDateTimeFormatter as mt,hashObject as lt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x30a9d8}from'ckeditor5-collaboration/dist/index.js';import{throttle as bt,isEqual as It,cloneDeep as pt,set as wt,unset as At,debounce as _0x4da05a}from'lodash-es';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as Ft,ButtonView as _0xaf61aa,ViewCollection as _0xabf670,createDropdown as _0x193930,ListView as _0x133e4e,focusChildOnDropdownOpen as _0x517071,ListItemView as _0x2f18f7,MenuBarMenuListItemButtonView as _0x5a2278,BodyCollection as _0x578c2b,BalloonPanelView as _0x4336a9,ContextualBalloon as _0x130aae,Dialog as _0xd8596e,DialogViewPosition as _0x52df4d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0xce54ba}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 Lt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Nt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x343776}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
24
+ _0x570f76(){['model'];['view'];constructor(_0x3735dc,_0x2989cc){super(),this['model']=_0x3735dc,this['model']['_isAttached']=!0x0,this['view']=_0x2989cc,this['listenTo'](_0x2989cc,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x2989cc,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x2989cc,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x2989cc,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x2989cc,'addComment',(_0x40f61e,_0x2cb832)=>this['addComment'](_0x2cb832)),this['listenTo'](_0x2989cc,'updateComment',(_0x331c7a,_0x210318,_0x1f4d2)=>this['updateComment'](_0x210318,_0x1f4d2)),this['listenTo'](_0x2989cc,'removeComment',(_0x2ba182,_0x3748c1)=>this['removeComment'](_0x3748c1));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x311dff){this['model']['addComment']({'content':_0x311dff,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x35942e,_0x1afc9f){this['model']['getComment'](_0x35942e)['update']({'content':_0x1afc9f});}['removeComment'](_0x569c40){this['model']['getComment'](_0x569c40)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x3a46d2,_0x4fdfcd,_0x1941f1){const t=_0x3a46d2['t'];switch(_0x4fdfcd){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'},_0x1941f1);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'},_0x1941f1);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'},_0x1941f1);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'},_0x1941f1);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x1941f1);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'},_0x1941f1);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'},_0x1941f1);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'},_0x1941f1);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0x1fc718,_0x1983e1){super(_0x1fc718);const _0x23a719=_0xcaced0();this['main']=this['createCollection'](),this['editable']=new $t(_0x1fc718,_0x1983e1,void 0x0,{'label':()=>S(_0x1fc718,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x1fc718['uiLanguageDirection'],'lang':_0x1fc718['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x23a719},'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 Ut{['view'];constructor(_0x4f184b){super(_0x4f184b),this['view']=new Vt(_0x4f184b['locale'],_0x4f184b['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0xa5f9d1=this['editor']['editing']['view'],_0x507be9=this['view']['editable'],_0x2194bc=_0xa5f9d1['document']['getRoot']();_0x507be9['name']=_0x2194bc['rootName'],this['view']['render']();const _0x3fedb6=_0x507be9['element'];this['setEditableElement'](_0x507be9['name'],_0x3fedb6),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xa5f9d1['attachDomRoot'](_0x3fedb6),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[Bt,Et,Gt,Jt,Kt,Lt,Nt];class Rt extends/* #__PURE__ -- @preserve */
25
+ _0x570f76(_0x190e00){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x223b62={}){function _0xf8cf31(_0x2ed67a){return _0x2ed67a['map'](_0x158ae6=>String['fromCharCode'](_0x158ae6))['join']('');}(_0x223b62=Object['assign']({},_0x223b62))['plugins']||(_0x223b62['plugins']=Rt['defaultPlugins']),super(_0x223b62),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[_0xf8cf31([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf8cf31([0x76,0x69,0x65,0x77])][_0xf8cf31([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf8cf31([0x61,0x75,0x74,0x6f]),this[_0xf8cf31([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xf8cf31([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf8cf31([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xf8cf31([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xf8cf31([0x6f,0x6b])});}['create'](){const _0x1b6b3e=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x1b6b3e))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x3faff5=>{const _0x51ee59=this['model']['document']['getRoot'](),_0x569746=_0x51ee59&&_0x51ee59['getChild'](_0x51ee59['childCount']-0x1);_0x3faff5['setSelection'](_0x569746,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x3bef88=this['editing']['view'],_0x18c5eb=_0x3bef88['document']['getRoot'](),_0x537aed=_0x18c5eb['getChild'](0x0);_0x18c5eb['childCount']>0x1||!_0x537aed||'p'!=_0x537aed['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x3bef88,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x537aed['placeholder']=this['placeholder']),St({'view':_0x3bef88,'element':_0x537aed,'keepOnFocus':!0x0}),this['placeholderElement']=_0x537aed);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x29fc3f,_0x1a59e4={}){super(_0x29fc3f),this['editor']=null,this['_editorConfig']=_0x1a59e4,this['set']('value',_0x1a59e4['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x29fc3f,'Reply...')),this['set']('submitLabel',S(_0x29fc3f,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x42b9d5(),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',(_0x4c6274,_0x391e0e)=>{this['cancelButtonView']['fire']('execute'),_0x391e0e();}),this['keystrokes']['set']('Ctrl+Enter',(_0x49bc2d,_0x37bc87)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x37bc87());}),this['on']('submit',(_0x4d39ee,_0x65d61d)=>{_0x65d61d['length']>0xfde8?(alert(S(_0x29fc3f,'TOO_LONG_COMMENT_ALERT',[_0x65d61d['length'],0xfde8])),_0x4d39ee['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x183913=this['editor'];this['element']['insertBefore'](_0x183913['ui']['element'],this['element']['firstChild']),_0x183913['model']['document']['on']('change',()=>this['value']=_0x183913['getData']()),_0x183913['bind']('placeholder')['to'](this),this['focusables']['add'](_0x183913['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x390f4a){-0x1===_0x390f4a?(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:_0x4df040}=this,_0x48336f=new _0xaf61aa(_0x4df040);return _0x48336f['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x48336f['withText']=!0x0,_0x48336f['bind']('label')['to'](this,'submitLabel'),_0x48336f['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x48336f['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x3101a2,_0x517deb)=>!_0x517deb&&!!_0x3101a2['trim']()),_0x48336f;}['_createCancelButton'](){const {locale:_0x4a6078}=this,_0x2e1fc4=new _0xaf61aa(_0x4a6078);return _0x2e1fc4['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2e1fc4['label']=S(_0x4a6078,'Cancel'),_0x2e1fc4['withText']=!0x0,_0x2e1fc4['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2e1fc4;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0xb22570=>{this['focusTracker']['add'](_0xb22570['element']);}),this['focusables']['on']('change',(_0x17553a,_0x4be282)=>{for(const _0x44d6 of Array['from'](_0x4be282['added'])['reverse']())this['focusTracker']['add'](_0x44d6['element']);});}}class ie extends kt{constructor(_0x7e6b2c,_0x1af9e5,_0x32d5aa){super(_0x7e6b2c),this['commentInputView']=new hs(_0x7e6b2c,_0x32d5aa),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x4a1f7e,_0x25960c)=>_0x4a1f7e||!!_0x25960c),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 _0x5a74dc(_0x7e6b2c,_0x1af9e5),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'](_0x4f09c1){this['commentInputView']['focus'](_0x4f09c1);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x3fb3ce,_0x12732e)=>{const {submitButtonView:_0x500f48,cancelButtonView:_0x513491,editor:_0x15fc1c}=this['commentInputView'];[_0x500f48['element'],_0x513491['element'],_0x15fc1c?_0x15fc1c['editing']['view']['getDomRoot']():null]['filter'](_0x3a375b=>_0x3a375b)['some'](_0x13e92c=>_0x13e92c['contains'](_0x12732e['target']))||(this['focus'](),_0x12732e['preventDefault']());});}}class cs extends kt{constructor(_0x4286eb){super(_0x4286eb);const _0x3b434f=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x3b434f['to']('count',_0x312624=>S(_0x4286eb,'NUMBER_OF_COMMENTS',_0x312624))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x90265f,_0x2a87a0,_0x286ba7){super(_0x90265f);const _0xcbb37=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x2a87a0['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x2a87a0,this['_config']=_0x286ba7,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x42b9d5(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3ff38b=>this['commentViews']['map'](_0x29cbc8=>_0x29cbc8['element'])['includes'](_0x3ff38b['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x90265f),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x28428a=>_0x28428a-this['_config']['maxCommentsWhenCollapsed']);for(const _0x5e49c8 of _0x2a87a0['comments'])this['_handleNewCommentModel'](_0x5e49c8);this['_handleInfoComment'](),this['listenTo'](_0x2a87a0['comments'],'add',(_0x39d926,_0x528811)=>{const _0x58b318=this['_calculatePosition'](_0x528811);this['length']++,this['_handleNewCommentModel'](_0x528811,_0x58b318),this['refreshVisibleViews']();}),this['listenTo'](_0x2a87a0['comments'],'remove',(_0x189e6b,_0x4e92e0)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4e92e0),this['refreshVisibleViews']();}),this['listenTo'](_0x2a87a0,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x2a87a0,'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',_0xcbb37['if']('length','ck-hidden',_0x3641f1=>!_0x3641f1)],'aria-label':S(_0x90265f,'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'](_0x3adf85){-0x1===_0x3adf85?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3621e5 of this['commentViews'])_0x3621e5['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x1f74b7,_0x25c190){const _0x390bdf=new this['_config']['CommentView'](this['locale'],_0x1f74b7,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x390bdf['viewUid']=_0x1f74b7['id'],_0x390bdf['delegate']('removeComment')['to'](this),_0x390bdf['delegate']('updateComment')['to'](this),_0x390bdf['delegate']('resolveCommentThread')['to'](this),_0x390bdf['delegate']('editorReady')['to'](this),_0x390bdf['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x390bdf,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x390bdf,_0x25c190);}['_calculatePosition'](_0x324669){const _0x57feff=this['_model']['_findOptimalIndex'](_0x324669);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x324669['authoredAt']?_0x57feff-0x1:_0x57feff:_0x57feff-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x3f9020={'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'],_0x3f9020,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x3f9020));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x26f871){const _0x526187=this['commentViews']['remove'](_0x26f871['id']);this['stopListening'](_0x526187),_0x526187['isEditMode']&&this['_updateHasDirtyComment'](),_0x526187['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2dd3b2=>_0x2dd3b2['isEditMode']);}['_rearrangeCollapse'](){const _0x47fe5e=function(_0x283908){const _0x2dff4d=new _0x3a2226();for(const _0x34a079 of _0x283908)_0x2dff4d['add'](_0x34a079);return _0x2dff4d;}(this['commentViews']),_0x23b58f=this['_collapsedCommentsView']['count'];for(let _0x5a6cde=0x1;_0x5a6cde<=_0x23b58f;_0x5a6cde++)_0x47fe5e['remove'](0x1);for(const _0x1467dc of _0x47fe5e)_0x1467dc['collapse']();_0x23b58f>0x0&&_0x47fe5e['add'](this['_collapsedCommentsView'],0x1),ns(_0x3ce627(Array['from'](this['visibleViews']),Array['from'](_0x47fe5e)),this['visibleViews'],_0x47fe5e);}['_rearrangeExpand'](){ns(_0x3ce627(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x3172d2 of this['visibleViews'])_0x3172d2['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x5da315=>{this['focusTracker']['add'](_0x5da315['element']),this['keystrokes']['listenTo'](_0x5da315['element']);}),this['commentViews']['on']('change',(_0x77c967,_0x3c98f8)=>{for(const _0x3e292e of _0x3c98f8['removed'])this['focusTracker']['remove'](_0x3e292e['element']),this['keystrokes']['stopListening'](_0x3e292e['element']);for(const _0x1b9970 of Array['from'](_0x3c98f8['added'])['reverse']())this['focusTracker']['add'](_0x1b9970['element']),this['keystrokes']['listenTo'](_0x1b9970['element']);});}}function ns(_0x56ff95,_0x539a7d,_0x5327c3){let _0x431ecf=0x0;for(const _0x1e1f4f of _0x56ff95)switch(_0x1e1f4f){case'insert':_0x539a7d['add'](_0x5327c3['get'](_0x431ecf),_0x431ecf),_0x431ecf++;break;case'delete':_0x539a7d['remove'](_0x431ecf);break;case'equal':_0x431ecf++;}}class as extends kt{constructor(_0x144d7e){super(_0x144d7e);const _0x202faf=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x202faf['to']('contextValue',_0x298a3c=>S(_0x144d7e,'THREAD_CONTEXT_LABEL',_0x298a3c)),'tabindex':-0x1},'children':[{'text':_0x202faf['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xa498c6,_0x1f6685){super(_0xa498c6);const _0xc79da8=this['bindTemplate'];this['_model']=_0x1f6685,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x42b9d5(),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',_0xe8d99=>!!_0xe8d99),this['bind']('contextValue')['to'](this['_model'],'context',_0x214ad0=>_0x214ad0&&_0x214ad0['value']?this['_trimContextValue'](_0x214ad0['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',_0xc79da8['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 _0x2d49ba=new _0xaf61aa(this['locale']);return _0x2d49ba['label']=S(this['locale'],'Reopen'),_0x2d49ba['tooltip']=S(this['locale'],'Reopen'),_0x2d49ba['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>',_0x2d49ba['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4891f4=>!_0x4891f4),_0x2d49ba['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x112d56,_0x1658df)=>_0x112d56&&_0x1658df),_0x2d49ba['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x2d49ba;}['_trimContextValue'](_0x2aa3c7){if(_0x2aa3c7['length']<0x96)return _0x2aa3c7;const _0x2604d7=_0x2aa3c7['lastIndexOf']('\x20',0x93);return _0x2aa3c7['substring'](0x0,_0x2604d7>-0x1?_0x2604d7:0x93)+'...';}['_attachContextActions'](){const _0x1e61ec=this['element']['querySelector']('.ck-context'),_0x742411=_0x1e61ec['querySelector']('.ck-context__value');this['listenTo'](_0x1e61ec,'mouseenter',()=>{_0x742411['offsetWidth']<_0x742411['scrollWidth']&&_0x1e61ec['classList']['add']('overlay');}),this['listenTo'](_0x1e61ec,'mouseleave',()=>{_0x1e61ec['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x396f4b of this['focusables'])this['focusTracker']['add'](_0x396f4b['element']),this['keystrokes']['listenTo'](_0x396f4b['element']);}['_createContextView'](){const _0x3fe807=new as(this['locale']);return _0x3fe807['bind']('contextValue')['to'](this),_0x3fe807;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x414d5f,_0xc04abe,_0x18e0c6,_0x51f92b){super(_0x414d5f),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xc04abe,this['_localUser']=_0x18e0c6,this['_config']=_0x51f92b,this['commentThreadHeaderView']=new Yt(_0x414d5f,_0xc04abe),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x414d5f,S(_0x414d5f,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x414d5f,_0xc04abe,Object['assign']({'CommentView':this['_config']['CommentView']},_0x51f92b)),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',(_0x460b55,_0x1d1eb2)=>_0x460b55||!!_0x1d1eb2),this['bind']('isUnlinked')['to'](_0xc04abe,'unlinkedAt',_0x261666=>!!_0x261666),this['bind']('ariaLabel')['to'](this,'length',_0x18ef88=>{const _0x216161=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x18ef88,_0x216161]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x42b9d5(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x376d70=>_0x376d70['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x3f2e4b=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1e4633=_0x3f2e4b['commentInputView'];return _0x3f2e4b['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x1e4633,'value',(_0x1034c1,_0x594cfb,_0xe7f515,_0x2ea03a,_0x5b6daf)=>!!_0x5b6daf||!!_0x2ea03a&&_0xe7f515&&!_0x594cfb||_0x1034c1&&_0xe7f515&&!_0x594cfb),_0x1e4633['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x40ff60,_0x1bff5a,_0x59a41f)=>{let _0xd5e290;return _0xd5e290=_0x59a41f&&_0x1bff5a?'Reply\x20to\x20reopen\x20discussion...':_0x40ff60?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0xd5e290);}),_0x1e4633['bind']('submitLabel')['to'](this,'length',_0x4d6907=>S(this['locale'],_0x4d6907?'Reply':'Comment')),_0x1e4633['on']('submit',(_0x11c6e8,_0x361788)=>{this['fire']('addComment',_0x361788),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x1e4633['on']('cancel',()=>{this['focus']();}),_0x1e4633['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1e4633['on']('cancel',_0x32e29f=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x32e29f['stop']());}),this['on']('change:isActive',(_0x36c105,_0x245a25,_0x34f77b)=>{_0x34f77b||this['length']||_0x1e4633['value']||this['fire']('removeCommentThread');}),_0x3f2e4b;}}class Ct extends/* #__PURE__ -- @preserve */
27
+ ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x56ebdc,_0xd8dd3f,_0x2d2be6,_0x4de863){super(_0x56ebdc,_0xd8dd3f,_0x2d2be6,_0x4de863),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x56ebdc,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x31b4cb,_0x2ed123,_0xafca58)=>{_0xafca58||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x5365e5,_0xa3b591,_0x5db2cc)=>{_0x5db2cc&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x4844e1=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x4844e1['if']('isActive','ck-thread--active'),_0x4844e1['if']('isUnlinked','ck-thread--unlinked'),_0x4844e1['if']('isConfirm','ck-thread--remove-confirmation'),_0x4844e1['to']('actionIndicator',_0x4d8a66=>_0x4d8a66?'ck-thread--'+_0x4d8a66:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x4844e1['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 _0xe552cf of this['commentsListView']['commentViews'])_0xe552cf['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3da1ad}=this,_0xf08683=this['commentsListView']['commentViews']['get'](0x0);_0xf08683===this['_boundFirstCommentView']||_0xf08683['isSystemComment']||(this['_boundFirstCommentView']=_0xf08683,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0xf08683,'actionIndicator',_0x45ff1d=>'remove'===_0x45ff1d?'remove':null),_0xf08683['placeholder']=S(_0x3da1ad,'Write\x20a\x20comment...'),_0xf08683['removeButton']['on']('execute',_0x489216=>{_0x489216['stop'](),this['showConfirm'](S(_0x3da1ad,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0xf08683['focus']();}),_0xf08683['actionBar']['add'](this['resolveButton'],0x0),_0xf08683['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x1ababa=new _0x2d48b1(this['locale']);return _0x1ababa['label']=S(this['locale'],'Resolve'),_0x1ababa['tooltip']=S(this['locale'],'Resolve'),_0x1ababa['icon']=_0x58d4b3['check'],_0x1ababa['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x1ababa['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x284108=>!_0x284108),_0x1ababa['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4f7012,_0x1b146a)=>_0x4f7012&&!_0x1b146a),_0x1ababa['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x1ababa;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0x4799c4){super(_0x4799c4),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x484dd1,_0x59f5d1,_0x21d511)=>{this['element']['innerHTML']=_0x21d511;}),this['element']['innerHTML']=this['content'];}}class os extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x32d931,_0x15a0f8,_0xfe0133){super(_0x32d931),this['_model']=_0x15a0f8,this['_config']=_0xfe0133,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x15a0f8,'content',_0x15a0f8,'authoredAt',(_0x10cf0b,_0x3cd8f3)=>S(_0x32d931,'COMMENT_ARIA_LABEL',[_0x15a0f8['author']['name'],_0xfe0133['formatDateTime'](_0x3cd8f3),new DOMParser()['parseFromString'](_0x10cf0b,'text/html')['body']['textContent'],_0x15a0f8['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x32d931,S(_0x32d931,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0xabf670(),this['focusTracker']=new _0x42b9d5(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x157ccf=>_0x157ccf['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 _0x5878d4=new es(this['locale']);return _0x5878d4['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x26610d,_0x36305b)=>_0x36305b?_0x448b88(_0x26610d,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x26610d),_0x5878d4;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x535778=new hs(this['locale'],this['_config']['editorConfig']);return _0x535778['value']=this['_model']['content'],_0x535778['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x535778['submitLabel']=S(this['locale'],'Save'),_0x535778['on']('submit',(_0x1501a6,_0xf63153)=>{this['fire']('updateComment',this['_model']['id'],_0xf63153),this['switchToDisplayMode'](),this['focus']();}),_0x535778['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x535778['once']('editorReady',()=>{_0x535778['focus']();}),_0x535778['createEditor'](),_0x535778['delegate']('editorReady')['to'](this),_0x535778['delegate']('editorDestroyed')['to'](this),_0x535778;}['_setupKeyboardNavigation'](){const _0x225522=this['element'];this['keystrokes']['listenTo'](_0x225522);for(const _0x56f441 of this['focusables'])this['focusTracker']['add'](_0x56f441['element']),this['keystrokes']['listenTo'](_0x56f441['element']);this['focusables']['on']('change',(_0x34290e,_0x264093)=>{for(const _0xccf76d of _0x264093['removed'])this['focusTracker']['remove'](_0xccf76d['element']),this['keystrokes']['stopListening'](_0xccf76d['element']);for(const _0x52fc2a of _0x264093['added'])this['focusTracker']['add'](_0x52fc2a['element']),this['keystrokes']['listenTo'](_0x52fc2a['element']);}),this['keystrokes']['set']('enter',(_0x1cf89d,_0x477a82)=>{_0x225522===_0x1cf89d['target']&&(this['focusCycler']['focusFirst'](),_0x477a82());}),this['keystrokes']['set']('esc',(_0x197c28,_0x30e08e)=>{_0x225522!==_0x197c28['target']&&(this['focus'](),_0x30e08e());});}}class vt extends/* #__PURE__ -- @preserve */
28
+ ti(os){['actionBar'];['userView'];constructor(_0x19bf18,_0x2c6e84,_0x2aba87){super(_0x19bf18,_0x2c6e84,_0x2aba87),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x19bf18,'Reply...')),this['bind']('authoredAt')['to'](_0x2c6e84),this['bind']('resolvedAt')['to'](_0x2c6e84),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 _0x5a74dc(_0x19bf18,_0x2c6e84['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x2c6e84,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1470ca=this['bindTemplate'],_0x244282=[{'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']}},{'tag':'time','attributes':{'datetime':_0x1470ca['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1470ca['to']('authoredAt',_0x358015=>this['_config']['formatDateTime'](_0x358015))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x1470ca['if']('isEditMode','ck-comment__actions--hidden'),_0x1470ca['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']&&_0x244282['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x1470ca['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x1470ca['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x1470ca['if']('isEditMode','ck-comment--edit'),_0x1470ca['if']('isSystemComment','ck-comment--info'),_0x1470ca['to']('actionIndicator',_0x5b9bee=>_0x5b9bee?'ck-comment--'+_0x5b9bee:'')],'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':_0x244282}]}]};}['_createEditButton'](){const _0x509420=new _0xaf61aa(this['locale']);return _0x509420['label']=S(this['locale'],'Edit'),_0x509420['icon']=_0x58d4b3['pencil'],_0x509420['withText']=!0x0,_0x509420['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x509420['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1d3129=>!_0x1d3129),_0x509420['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x509420['on']('execute',()=>this['switchToEditMode']()),_0x509420;}['_createRemoveButton'](){const _0x48cdf2=new _0xaf61aa(this['locale']);return _0x48cdf2['label']=S(this['locale'],'Remove'),_0x48cdf2['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-2024,\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',_0x48cdf2['withText']=!0x0,_0x48cdf2['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x48cdf2['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3eba4c=>!_0x3eba4c),_0x48cdf2['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x48cdf2['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x48cdf2;}['_createDropdown'](){const _0x54f447=_0x193930(this['locale'],_0x437739),_0x4ef54d=_0x54f447['panelView']['children'],_0x335753=new _0x133e4e(this['locale']),_0x624d26=_0x54f447['bindTemplate'];_0x517071(_0x54f447,()=>this['items']['find'](_0x2a2187=>_0x2a2187['isVisible'])),_0x54f447['extendTemplate']({'attributes':{'class':[_0x624d26['if']('isVisible','ck-hidden',_0x38983a=>!_0x38983a)]}});const _0x4d5137=(_0x154410,_0x5b5b92=-0x1)=>{const _0x555119=new _0x2f18f7(this['locale']);_0x555119['children']['add'](_0x154410);const _0x2a7d0d=_0x5b5b92>-0x1?_0x5b5b92:_0x335753['items']['length'];_0x335753['items']['add'](_0x555119,_0x2a7d0d);const _0x3d05be=Array['from'](this['items']);_0x54f447['unbind']('isEnabled','isVisible'),_0x54f447['bind']('isEnabled')['toMany'](_0x3d05be,'isEnabled',(..._0x521bea)=>_0x521bea['some'](_0xf1280e=>_0xf1280e)),_0x54f447['bind']('isVisible')['toMany'](_0x3d05be,'isVisible',(..._0x47c423)=>_0x47c423['some'](_0x1b6cf2=>_0x1b6cf2));};_0x54f447['panelPosition']='sw',_0x54f447['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x58d4b3['threeVerticalDots']});for(const _0x2cc455 of this['items'])_0x4d5137(_0x2cc455);return _0x4ef54d['add'](_0x335753),_0x54f447['listenTo'](this['items'],'add',(_0x39b9ad,_0xd479fc,_0x2446ae)=>{_0x4d5137(_0xd479fc,_0x2446ae);}),_0x54f447['listenTo'](this['items'],'remove',(_0x1a7d8e,_0x4c553c,_0x5dba9f)=>{_0x335753['items']['remove'](_0x5dba9f);}),_0x54f447;}['_attachActions'](_0x11f113,_0x4ca4d7){const _0x1065a7=_0x11f113&&_0x11f113['element'];_0x1065a7&&(this['listenTo'](_0x1065a7,'mouseenter',()=>this['actionIndicator']=_0x4ca4d7),this['listenTo'](_0x1065a7,'focus',()=>this['actionIndicator']=_0x4ca4d7),this['listenTo'](_0x1065a7,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x1065a7,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x42d7b2=super['_createCommentInputView']();return _0x42d7b2['bind']('placeholder')['to'](this),_0x42d7b2;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Dt(_0x38fbaa){const _0x5ea4c2=bt(_0x38fbaa,0x1e),_0x21a226=new MutationObserver(_0x1ebc9a=>{for(const _0x2861fc of _0x1ebc9a)('attributes'==_0x2861fc['type']&&'class'==_0x2861fc['attributeName']||'childList'==_0x2861fc['type']||'characterData'==_0x2861fc['type'])&&_0x5ea4c2();});return{'attach'(_0x54e2eb){_0x21a226['observe'](_0x54e2eb,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x21a226['disconnect'](),_0x5ea4c2['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x3f0804,_0x4dec1b){super(_0x3f0804),this['id']=_0xcaced0(),this['focusTracker']=new _0x42b9d5(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0xcc31a2,_0x48f554)=>this['fire']('Esc',_0x48f554)),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']=Dt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x4dec1b),this['mainView']=_0x4dec1b;const _0x529cf5=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x529cf5['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 _0x4f1bb2=this['element']['clientHeight'];_0x4f1bb2&&(this['height']=_0x4f1bb2);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x570f76(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x2ebf36,target:_0x133012,type:_0x468963,isVisible:_0x4ef6df=!0x0}){super(),this['view']=_0x2ebf36,this['view']['element']||this['view']['render'](),this['_type']=_0x468963,this['_target']=_0x133012,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x3a2226([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x103bec,_0xb3ac5e)=>{this['view']['focusTracker']['add'](_0xb3ac5e);}),this['focusableElements']['on']('remove',(_0x1eb818,_0x269775)=>{this['view']['focusTracker']['remove'](_0x269775);}),this['set']('isVisible',_0x4ef6df);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x47809a=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x47809a),_0x47809a;}get['targetRect'](){const _0x3781bf=this['target'];if(null===_0x3781bf)return null;if(_0x3781bf instanceof _0x4c5767)return _0x3781bf;const _0x3d47bb=_0x3781bf['filter'](_0x460b4f=>function(_0x47a8f8){const _0x1114da=_0x47a8f8['offsetParent'];if(_0x1114da)return!0x0;const _0x4363b2=_0x47a8f8['getClientRects']()['item'](0x0);return!!_0x4363b2;}(_0x460b4f));return 0x0===_0x3d47bb['length']?null:new _0x4c5767(_0x3d47bb[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5dae80){this['view']['isActive']=_0x5dae80,this['view']['mainView']['isActive']=_0x5dae80;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x18fd0b){if(!(null===_0x18fd0b||_0x18fd0b instanceof _0x4c5767||Array['isArray'](_0x18fd0b)&&_0x18fd0b['every'](_0x204938=>ne(_0x204938))))throw new _0x358429('annotation-invalid-target',null,{'target':_0x18fd0b});}['_getNormalizedTarget'](){const _0x58f8d0='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x58f8d0)?[_0x58f8d0]:_0x58f8d0;}}function ne(_0x2d848f){return null!==_0x2d848f&&'object'==typeof _0x2d848f&&'nodeType'in _0x2d848f&&0x1===_0x2d848f['nodeType'];}class x extends _0x3a2226{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x3516b8=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x42b9d5(),this['_focusTracker']['on']('change:isFocused',(_0x27d344,_0x453e62,_0x2c170f)=>{_0x2c170f||this['fire']('blur');});for(const _0x59b950 of _0x3516b8)this['add'](_0x59b950);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x140034){if(this['has'](_0x140034))throw new _0x358429('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x140034['innerView'],_0x140034),this['_viewToAnnotation']['set'](_0x140034['view'],_0x140034);for(const _0x52a8c7 of _0x140034['focusableElements'])this['_focusTracker']['add'](_0x52a8c7);this['listenTo'](_0x140034['focusableElements'],'add',(_0xb3c371,_0x424d66)=>{this['_focusTracker']['add'](_0x424d66);}),this['listenTo'](_0x140034['focusableElements'],'remove',(_0x40f2cc,_0x1e1a9c)=>{this['_focusTracker']['remove'](_0x1e1a9c);}),this['listenTo'](_0x140034['view']['focusTracker'],'change:isFocused',(_0x209eff,_0x5dc498,_0x52511a)=>{_0x52511a&&this['fire']('focus',_0x140034);}),_0x140034['updateTargetRect']();const _0x333dcf=this['_getOrderInContent'](_0x140034['view']['targetRect']);return super['add'](_0x140034,_0x333dcf);}['remove'](_0x20876e){if(!this['has'](_0x20876e))throw new _0x358429('annotationcollection-not-existing-item',null);this['stopListening'](_0x20876e['view']['focusTracker']),this['stopListening'](_0x20876e['focusableElements']);for(const _0x4b5863 of _0x20876e['focusableElements'])this['_focusTracker']['remove'](_0x4b5863);return this['_viewToAnnotation']['delete'](_0x20876e['view']),this['_innerViewToAnnotation']['delete'](_0x20876e['innerView']),super['remove'](_0x20876e);}['getByInnerView'](_0x2e01f6){return this['_innerViewToAnnotation']['get'](_0x2e01f6);}['getByView'](_0x5f13ae){return this['_viewToAnnotation']['get'](_0x5f13ae);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1814d2 of this)_0x1814d2['updateTargetRect']();this['_sort']();}['_sort'](){const _0x8e5434=Array['from'](this)['sort']((_0x49ffbb,_0x5a58cb)=>v(_0x49ffbb['view']['targetRect'],_0x5a58cb['view']['targetRect']));for(let _0x113453=_0x8e5434['length']-0x1;_0x113453>0x0;_0x113453--){const _0x34cc00=_0x8e5434[_0x113453];_0x113453!==this['getIndex'](_0x34cc00)&&(this['remove'](_0x34cc00),this['add'](_0x34cc00));}}['_getOrderInContent'](_0x3ac0d6){let _0x1b95de=0x0;if(!_0x3ac0d6)return this['length'];for(const _0x356f19 of this){const _0x35742a=_0x356f19['view']['targetRect'];if(_0x35742a){if(v(_0x3ac0d6,_0x35742a)<0x0)return _0x1b95de;_0x1b95de++;}}return _0x1b95de;}}function v(_0x439334,_0x1a0090){if(null===_0x439334&&null===_0x1a0090)return 0x0;if(null===_0x439334)return-0x1;if(null===_0x1a0090)return 0x1;const _0x5cd9f1=_0x439334['top']-_0x1a0090['top'];return 0x0==_0x5cd9f1?_0x439334['left']-_0x1a0090['left']:_0x5cd9f1;}class N extends _0x4fba92{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ee959){if(super(_0x2ee959),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x2ee959 instanceof _0x190e00){const _0x5c7ab4=_0x2ee959['locale'];_0x2ee959['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x5c7ab4,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x5c7ab4,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x5c7ab4,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x5c7ab4,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x5c7ab4,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x5c7ab4,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x5c7ab4,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x590d6c){this['collection']['add'](_0x590d6c);}['remove'](_0x553dd9){this['collection']['remove'](_0x553dd9),_0x553dd9['destroy']();}['refreshVisibility'](){for(const _0x1d466e of this['collection'])_0x1d466e['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x110ea5){return this['collection']['getByInnerView'](_0x110ea5);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x2b6dcc of this['collection'])_0x2b6dcc['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x4fb46c){this['fire']('_activateAnnotation',_0x4fb46c);}['createAnnotation'](_0x55eaf5){return new d(_0x55eaf5);}['createAnnotationView'](_0x5f12b1,_0x5f0fe7){return new T(_0x5f12b1,_0x5f0fe7);}['_addActiveAnnotation'](_0x4e3a30){const _0x410321=new Set(this['activeAnnotations']);_0x410321['add'](_0x4e3a30),this['activeAnnotations']=_0x410321;}['_removeActiveAnnotation'](_0x4d3692){const _0x5acee0=new Set(this['activeAnnotations']);_0x5acee0['delete'](_0x4d3692),this['activeAnnotations']=_0x5acee0;}['_bindAnnotationsToVisibleAnnotations'](){const _0x385b49=this['collection'],_0x439b80=this['_visibleAnnotations'];function _0x151c94(_0x52ecd8){const _0x17f3f1=_0x52ecd8['source'];_0x17f3f1['isVisible']&&!_0x439b80['has'](_0x17f3f1)?_0x439b80['add'](_0x17f3f1):!_0x17f3f1['isVisible']&&_0x439b80['has'](_0x17f3f1)&&_0x439b80['remove'](_0x17f3f1),_0x17f3f1['view']['focusTracker']['remove'](_0x17f3f1['view']['element']),_0x17f3f1['view']['focusTracker']['add'](_0x17f3f1['view']['element']);}this['listenTo'](_0x385b49,'add',(_0x2ce2e8,_0x2cf351)=>{_0x2cf351['isVisible']&&_0x439b80['add'](_0x2cf351),this['listenTo'](_0x2cf351,'change:isVisible',_0x151c94);}),this['listenTo'](_0x385b49,'remove',(_0x32262d,_0x2cde9f)=>{_0x439b80['has'](_0x2cde9f)&&_0x439b80['remove'](_0x2cde9f),this['stopListening'](_0x2cde9f,'change:isVisible',_0x151c94);});}['_setupEnterAnnotationKeystroke'](){const _0x28dc2c=_0x3f2abe=>{_0x3f2abe['on']('ready',()=>{_0x3f2abe['keystrokes']['set'](_0x343776,(_0x3e7f70,_0x2e924a)=>{const _0x5ac76f=_0x54d675(this['activeAnnotations']['values']());_0x5ac76f&&(_0x5ac76f['view']['focus'](),_0x2e924a());});});};this['context']instanceof _0x190e00?_0x28dc2c(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x58b4e2,_0x145fe6)=>{_0x28dc2c(_0x145fe6);});}['_setupEscapeAnnotationHandling'](){const _0x2028ed=_0x411a61=>{const _0x3af54e=_0x411a61['source'],_0x133460=[];let _0x3d0023;if(Array['isArray'](_0x3af54e['target'])){_0x3d0023=_0x3af54e['target'][0x0],this['context']instanceof _0x190e00?_0x133460['push'](this['context']):this['context']['editors']&&_0x133460['push'](...this['context']['editors']);for(const _0xea492e of _0x133460)for(const _0x2296bc of _0xea492e['editing']['view']['domRoots']['values']())if(_0x2296bc['contains'](_0x3d0023))return void _0xea492e['editing']['view']['focus']();_0x3d0023['focus']();}};this['listenTo'](this['collection'],'add',(_0x207816,_0x1336e4)=>{this['listenTo'](_0x1336e4,'escape',_0x2028ed,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x17d207,_0x37f3d4)=>{this['stopListening'](_0x37f3d4,'escape',_0x2028ed);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x4fba92{['_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(_0x5cc494){super(_0x5cc494),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x411b24=this['context']['config'];_0x411b24['define']('comments.maxCommentsWhenCollapsed',0x2),_0x411b24['define']('comments.maxThreadTotalWeight',0x1f4),_0x411b24['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x411b24['define']('comments.CommentThreadView',Ct),_0x411b24['define']('comments.CommentView',vt),_0x411b24['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x859614=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x3f2fa9,_0x299387)=>this['_addCommentThread'](_0x299387)),this['on']('submitCommentThread',(_0x56aecd,_0x59c42a)=>this['_submitCommentThread'](_0x59c42a)),this['on']('resolveCommentThread',(_0x13fac2,_0x34f8e7)=>this['_resolveCommentThread'](_0x34f8e7)),this['on']('resolveCommentThread',(_0x2b3ae7,_0x3422ef)=>this['_updateActiveAnnotation'](_0x3422ef),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x390099,_0x1bfa22)=>this['_reopenCommentThread'](_0x1bfa22)),this['on']('reopenCommentThread',(_0x42e382,_0x1f267f)=>this['_updateActiveAnnotation'](_0x1f267f),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x65244b,_0x46e1d2)=>this['_removeCommentThread'](_0x46e1d2)),this['on']('updateCommentThread',(_0x5a05c4,_0x2063f5)=>this['_updateCommentThread'](_0x2063f5)),this['on']('updateCommentThread',(_0x5b4402,_0x3a2112)=>this['_updateActiveAnnotation'](_0x3a2112),{'priority':'lowest'}),this['on']('addComment',(_0x55aff3,_0x5bcf66)=>this['_addComment'](_0x5bcf66)),this['on']('updateComment',(_0x144025,_0x47dc17)=>this['_updateComment'](_0x47dc17)),this['on']('removeComment',(_0x2aae6d,_0x2934c9)=>this['_removeComment'](_0x2934c9)),this['on']('addComment',(_0x106a8c,{threadId:_0x39d184,isFromAdapter:_0x112436})=>{if(_0x112436)return;const _0x35247a=this['getCommentThread'](_0x39d184),_0x397955=_0x35247a&&this['_threadToController']['get'](_0x35247a);_0x397955&&_0x397955['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x859614,'change:activeAnnotations',(_0xf51a52,_0x298645,_0x4f896f)=>{const _0x47f898=Array['from'](_0x4f896f)['map'](_0x23c059=>this['_viewToController']['get'](_0x23c059['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x47f898?_0x47f898['model']:null;});}set['adapter'](_0x1e2310){if(this['_adapter'])throw new _0x358429('commentsrepository-adapter-already-set');this['_adapter']=_0x1e2310;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x56d257=gt,threadId:_0x3c1801=_0xcaced0(),comments:_0x40a46a=[],unlinkedAt:_0x1ca148=null,resolvedAt:_0x1d2349=null,resolvedBy:_0x23573c=null,target:_0x24bf01=null,context:_0x393e67=null,attributes:_0x159576={},isResolvable:_0x57e066=!0x0,isSubmitted:_0x36b28d=!0x1,isFromAdapter:_0x1c3bd9=!0x1}={}){return this['fire'](_t('addCommentThread',_0x56d257),{'channelId':_0x56d257,'threadId':_0x3c1801,'comments':_0x40a46a,'unlinkedAt':_0x1ca148,'resolvedAt':_0x1d2349,'resolvedBy':_0x23573c,'target':_0x24bf01,'context':_0x393e67,'attributes':_0x159576,'isFromAdapter':_0x1c3bd9,'isResolvable':_0x57e066,'isSubmitted':_0x36b28d}),this['getCommentThread'](_0x3c1801);}['openNewCommentThread']({channelId:_0x5394a9=gt,threadId:_0x270d3a=_0xcaced0(),target:_0x2aa878,context:_0x4279be=null,isResolvable:_0x139676=!0x0}){if(this['_readOnlyChannels']['has'](_0x5394a9)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x2aa878)throw new _0x358429('commentsrepository-missing-target');const _0x59280c=this['addCommentThread']({'channelId':_0x5394a9,'threadId':_0x270d3a,'target':_0x2aa878,'context':_0x4279be,'isResolvable':_0x139676});if(!_0x59280c)return null;const _0x4efc2a=this['_threadToController']['get'](_0x59280c),_0x2a1d0e=_0x4efc2a['view']['commentThreadInputView']['commentInputView'],_0x1e470d=this['context']['plugins']['get'](N),_0x39877c=_0x1e470d['getByInnerView'](_0x4efc2a['view']);return _0x1e470d['activate'](_0x39877c),_0x2a1d0e['once']('editorReady',()=>_0x2a1d0e['focus']()),_0x59280c;}['hasCommentThread'](_0x4a622c){if('string'!=typeof _0x4a622c)throw new _0x358429('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x4a622c);}['updateCommentThread']({channelId:_0x1041f9=gt,threadId:_0x455a4a,context:_0x2bfcc1,unlinkedAt:_0x2918af,attributes:_0xd927a9,isFromAdapter:_0x259661=!0x1}){return this['fire'](_t('updateCommentThread',_0x1041f9),{'channelId':_0x1041f9,'threadId':_0x455a4a,'context':_0x2bfcc1,'unlinkedAt':_0x2918af,'attributes':_0xd927a9,'isFromAdapter':_0x259661}),this['getCommentThread'](_0x455a4a);}['getCommentThread'](_0x1bdf09){if('string'!=typeof _0x1bdf09)throw new _0x358429('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x1bdf09);}['fetchCommentThread']({channelId:_0xa6467f,threadId:_0x47f168}={}){const _0x50f0a2=this['getCommentThread'](_0x47f168);if(_0x50f0a2)return Promise['resolve'](_0x50f0a2);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x358429('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0xa6467f,'threadId':_0x47f168})['then'](_0x12d315=>this['hasCommentThread'](_0x47f168)?this['getCommentThread'](_0x47f168):_0x12d315?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0xa6467f},_0x12d315)):void 0x0)['catch'](_0xcc5ade=>{throw console['error'](_0xcc5ade),new _0x358429('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x425ee9,skipNotAttached:_0x4f13d0=!0x1,skipEmpty:_0xd70be8=!0x1,toJSON:_0x324b9c=!0x1}={}){const _0x1e0d17=[];for(const _0x1727e4 of this['_threads']['values']())_0x425ee9&&_0x1727e4['channelId']!==_0x425ee9||_0x4f13d0&&!_0x1727e4['isAttached']||_0xd70be8&&0x0===_0x1727e4['length']||_0x1e0d17['push'](_0x1727e4);return _0x324b9c?_0x1e0d17['map'](_0x42382a=>_0x42382a['toJSON']()):_0x1e0d17;}['setActiveCommentThread'](_0x59f5ca){const _0x2f55c9=this['context']['plugins']['get'](N);if(!_0x59f5ca)return void(this['activeCommentThread']&&_0x2f55c9['deactivateAll']());const _0x4b6c25=this['getCommentThread'](_0x59f5ca);if(!_0x4b6c25)throw new _0x358429('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x59f5ca});if(!this['_threadToController']['has'](_0x4b6c25))throw new _0x358429('commentsrepository-active-not-attached',null,{'threadId':_0x59f5ca});const _0x1d1d37=_0x2f55c9['getByInnerView'](this['_threadToController']['get'](_0x4b6c25)['view']);_0x2f55c9['activate'](_0x1d1d37);}['switchReadOnly'](_0x85efca,_0x520bf5){_0x85efca?this['_readOnlyChannels']['add'](_0x520bf5):this['_readOnlyChannels']['delete'](_0x520bf5),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x56ea12){return this['_readOnlyChannels']['has'](_0x56ea12)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x27a375,_0x51558f){return new yt(_0x27a375,_0x51558f);}['setPermissions'](_0x48f5b2,_0x5564ed=gt){this['_permissions']['set'](_0x5564ed,_0x48f5b2),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x5a018f=gt){return this['_permissions']['has'](_0x5a018f)?this['_permissions']['get'](_0x5a018f):Tt;}['_addCommentThread']({channelId:_0x1d7671,threadId:_0x3ee3b5,comments:_0xea21b7,unlinkedAt:_0x270bbc,resolvedAt:_0x346675,resolvedBy:_0x1c3b90,target:_0x3dc66b,context:_0x254551,attributes:_0xebf223,isFromAdapter:_0x1d2417,isResolvable:_0x2fd27a,isSubmitted:_0xccc1a6}){if('string'!=typeof _0x3ee3b5)throw new _0x358429('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3ee3b5});if(this['hasCommentThread'](_0x3ee3b5))throw new _0x358429('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x3ee3b5});const _0x2c91fe=new oe(this,{'channelId':_0x1d7671,'id':_0x3ee3b5,'context':_0x254551,'attributes':_0xebf223,'unlinkedAt':_0x270bbc,'resolvedAt':_0x346675,'resolvedBy':_0x1c3b90?this['context']['plugins']['get'](it)['getUser'](_0x1c3b90):null,'isResolvable':_0x2fd27a,'isSubmitted':_0xccc1a6||_0x1d2417});this['_threads']['set'](_0x3ee3b5,_0x2c91fe);for(const _0x568293 of _0xea21b7)_0x2c91fe['_add'](this['_createNewComment']({'threadId':_0x3ee3b5,..._0x568293}));return _0x3dc66b&&_0x2c91fe['attachTo'](_0x3dc66b),_0x1d2417||!_0x2c91fe['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x1d7671,'threadId':_0x3ee3b5});}['_submitCommentThread']({channelId:_0x10a642,threadId:_0x31afab}){if(!this['hasCommentThread'](_0x31afab))throw new _0x358429('commentsrepository-missing-comment-thread',this);const _0x149ad0=this['getCommentThread'](_0x31afab);if(_0x149ad0['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x5dab92,comments:_0x4c31ee,resolvedAt:_0x5b921b,resolvedBy:_0x2f101f,context:_0x1347e5,attributes:_0x452a8f}=_0x149ad0,_0x3d1921=this['context']['plugins']['get']('PendingActions'),_0x10b744=_0x3d1921['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x10a642,'threadId':_0x5dab92,'comments':_0x4c31ee['map'](_0x212815=>_0x212815['toJSON']()),'resolvedAt':_0x5b921b,'resolvedBy':_0x2f101f?_0x2f101f['id']:_0x2f101f,'context':_0x1347e5,'attributes':_0x452a8f})['then'](({comments:_0x1a357b})=>{_0x3d1921['remove'](_0x10b744);for(const _0x1e72e2 of _0x1a357b)this['_updateComment']({'channelId':_0x10a642,'threadId':_0x31afab,'commentId':_0x1e72e2['commentId'],'createdAt':_0x1e72e2['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5d4aca=>{throw console['error'](_0x5d4aca),new _0x358429('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x4791fb,target:_0x379a06}){const _0x3a8218=this['getCommentThread'](_0x4791fb);if(!_0x3a8218)throw new _0x358429('commentsrepository-attach-missing-comment-thread',this);const _0x404f11=this['context']['plugins']['get']('PendingActions'),_0x926555=this['context']['plugins']['get'](N),_0x37ac1f=this['_createCommentThreadView'](_0x3a8218),_0x492763=new yt(_0x3a8218,_0x37ac1f);let _0x1a522f=null;_0x37ac1f['on']('change:isDirty',(_0x5203b3,_0xa1b9e5,_0x507071)=>{_0x507071?_0x1a522f=_0x404f11['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x1a522f&&(_0x404f11['remove'](_0x1a522f),_0x1a522f=null);}),this['_threadToController']['set'](_0x3a8218,_0x492763),this['_viewToController']['set'](_0x37ac1f,_0x492763);const _0x454d65=new T(this['context']['locale'],_0x37ac1f);_0x454d65['bind']('length')['to'](_0x37ac1f),_0x454d65['bind']('isDirty')['to'](_0x37ac1f,'isDirty',_0x37ac1f,'length',(_0x1dac05,_0x37428a)=>_0x1dac05||!_0x37428a),_0x454d65['bind']('isActive')['to'](_0x37ac1f),_0x454d65['type']='comment';const _0x439525=new d({'view':_0x454d65,'target':_0x379a06,'type':'comment','isVisible':!_0x3a8218['isResolved']});return _0x37ac1f['on']('escape',()=>{_0x439525['fire']('escape');}),this['_bindAnnotationToEditors'](_0x37ac1f,_0x439525),_0x926555['add'](_0x439525),_0x439525;}['_bindAnnotationToEditors'](_0x27e32a,_0x5efb68){this['listenTo'](_0x27e32a,'editorReady',(_0x5a4b41,_0x44697d)=>{const _0x2b06b6=_0x44697d['ui']['view']['body']['bodyCollectionContainer'];_0x5efb68['focusableElements']['add'](_0x2b06b6),this['context']instanceof _0x190e00&&this['context']['ui']['focusTracker']['add'](_0x2b06b6);},{'priority':'highest'}),this['listenTo'](_0x27e32a,'editorDestroyed',(_0x28911c,_0x1e65a3)=>{const _0x2087c3=_0x1e65a3['ui']['view']['body']['bodyCollectionContainer'];_0x5efb68['focusableElements']['has'](_0x2087c3)&&_0x5efb68['focusableElements']['remove'](_0x2087c3),this['context']instanceof _0x190e00&&this['context']['ui']['focusTracker']['remove'](_0x2087c3);});}['_unbindEditors'](_0x3314ed){this['stopListening'](_0x3314ed,'editorReady'),this['stopListening'](_0x3314ed,'editorDestroyed');}['_createCommentThreadView'](_0x4a9aa8){const _0x4bcb5d=this['context']['plugins']['get'](it),{config:_0x4df7b8,locale:_0x557340}=this['context'],_0x5144f1=mt(_0x4df7b8['get']('locale'));return new(0x0,(_0x4df7b8['get']('comments'))['CommentThreadView'])(_0x557340,_0x4a9aa8,_0x4bcb5d['me'],{'editorConfig':{..._0x4df7b8['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x4df7b8['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x4df7b8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4df7b8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4df7b8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5144f1,'CommentView':_0x4df7b8['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x2e23e4,channelId:_0x52d110,resolvedAt:_0x444961,resolvedBy:_0x5c8f26,isFromAdapter:_0x2a266c}){if(!this['hasCommentThread'](_0x2e23e4))throw new _0x358429('commentsrepository-missing-comment-thread',null,{'threadId':_0x2e23e4});const _0x47fefe=this['getCommentThread'](_0x2e23e4);if(_0x47fefe['isResolved'])throw new _0x358429('commentsrepository-resolved-comment-thread',null,{'threadId':_0x2e23e4});const _0x2d2dba=this['context']['plugins']['get'](it);if(_0x47fefe['resolvedBy']=_0x2d2dba['getUser'](_0x5c8f26),_0x47fefe['resolvedAt']=_0x444961,_0x2a266c||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x532f98=this['context']['plugins']['get']('PendingActions'),_0x5a8aec=_0x532f98['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x52d110,'threadId':_0x2e23e4})['then'](({resolvedAt:_0x2b610d,resolvedBy:_0x3a8237})=>{_0x532f98['remove'](_0x5a8aec),_0x47fefe['resolvedBy']['id']!==_0x3a8237&&(_0x47fefe['resolvedBy']=_0x2d2dba['getUser'](_0x3a8237)),_0x47fefe['resolvedAt']=_0x2b610d;})['catch'](_0x5ca764=>{throw console['error'](_0x5ca764),new _0x358429('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x3b2c81,channelId:_0x1b28a9,isFromAdapter:_0x146681}){if(!this['hasCommentThread'](_0x3b2c81))throw new _0x358429('commentsrepository-missing-comment-thread',null,{'threadId':_0x3b2c81});const _0x3e148c=this['getCommentThread'](_0x3b2c81);if(!_0x3e148c['isResolved'])throw new _0x358429('commentsrepository-reopen-comment-thread',null,{'threadId':_0x3b2c81});if(_0x3e148c['resolvedBy']=null,_0x3e148c['resolvedAt']=null,_0x146681||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x2b9f80=this['context']['plugins']['get']('PendingActions'),_0x42bd88=_0x2b9f80['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x1b28a9,'threadId':_0x3b2c81})['then'](()=>_0x2b9f80['remove'](_0x42bd88))['catch'](_0x5a9628=>{throw console['error'](_0x5a9628),new _0x358429('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x7c1ae8,isFromAdapter:_0x151f1c}){const _0x283a57=this['getCommentThread'](_0x7c1ae8);if(!_0x283a57)throw new _0x358429('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x7c1ae8),this['_threads']['delete'](_0x7c1ae8),!_0x283a57['isSubmitted']||_0x151f1c||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5abd61=this['context']['plugins']['get']('PendingActions'),{channelId:_0x9e1561}=_0x283a57,_0x232620=_0x5abd61['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x9e1561,'threadId':_0x7c1ae8})['then'](()=>_0x5abd61['remove'](_0x232620))['catch'](_0x1d09d8=>{throw console['error'](_0x1d09d8),new _0x358429('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x484b13,unlinkedAt:_0x15f17e,context:_0x595641,attributes:_0x1243d6,isFromAdapter:_0x277cba}){if('string'!=typeof _0x484b13)throw new _0x358429('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x484b13});if(!this['hasCommentThread'](_0x484b13))throw new _0x358429('commentsrepository-missing-comment-thread',null,{'threadId':_0x484b13});const _0x2a1dd7=this['getCommentThread'](_0x484b13);let _0x57fdc1=!0x1;if(void 0x0!==_0x595641&&_0x2a1dd7['context']!==_0x595641&&(_0x2a1dd7['context']=_0x595641,_0x57fdc1=!0x0),void 0x0!==_0x15f17e&&_0x2a1dd7['unlinkedAt']!==_0x15f17e&&(_0x2a1dd7['unlinkedAt']=_0x15f17e,_0x57fdc1=!0x0),_0x1243d6&&!It(_0x1243d6,_0x2a1dd7['attributes'])&&(_0x2a1dd7['attributes']=_0x1243d6,_0x57fdc1=!0x0),!_0x57fdc1)return Promise['resolve']();if(!_0x2a1dd7['isSubmitted']||_0x277cba||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x53b99e=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4addef}=_0x2a1dd7,_0x5047fd=_0x53b99e['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x4addef,'threadId':_0x484b13,'context':_0x595641,'unlinkedAt':_0x15f17e,'attributes':_0x1243d6})['then'](()=>_0x53b99e['remove'](_0x5047fd))['catch'](_0x347373=>{throw console['error'](_0x347373),new _0x358429('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0xcc9c08){const _0x53e663=this['context']['plugins']['get'](N),_0x48da59=this['getCommentThread'](_0xcc9c08);if(this['_threadToController']['has'](_0x48da59)){const _0x458362=this['_threadToController']['get'](_0x48da59),_0x3ec3bf=_0x458362['view'],_0x4778b5=_0x53e663['getByInnerView'](_0x3ec3bf);this['_threadToController']['delete'](_0x48da59),this['_viewToController']['delete'](_0x3ec3bf),_0x4778b5&&_0x53e663['remove'](_0x4778b5),_0x458362['destroy'](),_0x3ec3bf['destroy']()['then'](()=>{this['_unbindEditors'](_0x3ec3bf);});}}['_updateActiveAnnotation']({threadId:_0x310f4e,resolvedAt:_0x1c2d63}){const _0x29b6bb=!!_0x1c2d63,_0x511862=this['context']['plugins']['get'](N),_0x1b65da=this['getCommentThread'](_0x310f4e);if(this['_threadToController']['has'](_0x1b65da)){const _0x5784ff=this['_threadToController']['get'](_0x1b65da)['view'],_0x1faa8=_0x511862['getByInnerView'](_0x5784ff);_0x1faa8&&(_0x29b6bb&&_0x511862['_removeActiveAnnotation'](_0x1faa8),_0x1faa8['refreshVisibility']());}}['_getExternalAuthor'](_0x36b114){const _0x514822=this['context']['plugins']['get'](it),_0x375fdf=lt('external:'+_0x36b114),_0x16f719=_0x514822['getUser'](_0x375fdf);return _0x16f719||_0x514822['addUser']({'id':_0x375fdf,'name':_0x36b114});}['_createNewComment']({threadId:_0x47e6e7,commentId:_0xc0f6e=_0xcaced0(),content:_0x329911,authorId:_0x391042,createdAt:_0x435527,attributes:_0x4943d4}){if('string'!=typeof _0xc0f6e)throw new _0x358429('commentsrepository-invalid-commentid');if('string'!=typeof _0x391042)throw new _0x358429('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x329911||!_0x329911['trim']())throw new _0x358429('commentsrepository-invalid-comment-content');const _0x4c2b9c=this['context']['plugins']['get'](it)['getUser'](_0x391042);if(!_0x4c2b9c)throw new _0x358429('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x391042});let _0x2e4508=null,_0x198b10=_0x435527;return _0x4943d4&&_0x4943d4['@external']&&(_0x2e4508=this['_getExternalAuthor'](_0x4943d4['@external']['authorName']),_0x198b10=new Date(_0x4943d4['@external']['createdAt'])),new re(this,{'threadId':_0x47e6e7,'id':_0xc0f6e,'author':_0x2e4508||_0x4c2b9c,'creator':_0x4c2b9c,'content':_0x329911,'createdAt':_0x435527,'authoredAt':_0x198b10,'attributes':_0x4943d4});}['_addComment'](_0x4f82e1){let {threadId:_0x813c4,content:_0x156857,attributes:_0x2615d7,isFromAdapter:_0x5e3336}=_0x4f82e1;const _0x54d31c=this['getCommentThread'](_0x4f82e1['threadId']);if(!_0x54d31c)throw new _0x358429('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x35f085=this['_createNewComment'](_0x4f82e1),{id:_0x73008b}=_0x35f085;if(_0x54d31c['_add'](_0x35f085),_0x5e3336||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x54d31c['isSubmitted'])return Promise['resolve']();const _0x24108f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x429d84}=_0x54d31c,_0x42fc4a=_0x24108f['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x2615d7||(_0x2615d7={}),this['adapter']['addComment']({'channelId':_0x429d84,'threadId':_0x813c4,'commentId':_0x73008b,'content':_0x156857,'attributes':_0x2615d7})['then'](_0x23b710=>{_0x24108f['remove'](_0x42fc4a),_0x23b710&&this['_updateComment']({'channelId':_0x429d84,'threadId':_0x813c4,'commentId':_0x73008b,'createdAt':_0x23b710['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5af3b1=>{throw console['error'](_0x5af3b1),new _0x358429('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x58f2a7,commentId:_0x579cdd,content:_0x3cd961,createdAt:_0x203467,attributes:_0x186c72,isFromAdapter:_0x3a3e34}){if(void 0x0!==_0x3cd961&&('string'!=typeof _0x3cd961||!_0x3cd961['trim']()['length']))throw new _0x358429('commentsrepository-update-comment-invalid-content');const _0x430713=this['getCommentThread'](_0x58f2a7),_0x22d42a=_0x430713['getComment'](_0x579cdd);if(!_0x22d42a)throw new _0x358429('commentsrepository-update-missing-comment',this);let _0x492ced=!0x1;if(_0x3cd961&&_0x3cd961!==_0x22d42a['content']&&(_0x22d42a['isEditable']||_0x3a3e34)&&(_0x22d42a['content']=_0x3cd961,_0x492ced=!0x0),_0x203467&&_0x203467!==_0x22d42a['createdAt']&&(_0x22d42a['createdAt']=_0x203467,_0x22d42a['attributes']&&_0x22d42a['attributes']['@external']||(_0x22d42a['authoredAt']=_0x203467),_0x492ced=!0x0),_0x186c72&&!It(_0x186c72,_0x22d42a['attributes'])&&(_0x22d42a['attributes']=_0x186c72,_0x492ced=!0x0),!_0x492ced)return Promise['resolve']();if(_0x430713['fire']('commentUpdated'),_0x3a3e34||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x52d028=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4624a4}=this['getCommentThread'](_0x22d42a['threadId']),_0x169b1b=_0x52d028['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x4624a4,'threadId':_0x58f2a7,'commentId':_0x579cdd,'content':_0x3cd961,'attributes':_0x186c72})['then'](()=>_0x52d028['remove'](_0x169b1b))['catch'](_0x5d0165=>{throw console['error'](_0x5d0165),new _0x358429('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x56bccf,commentId:_0x2c9daa,isFromAdapter:_0x7761e}){const _0x806171=this['getCommentThread'](_0x56bccf),_0x471a5d=_0x806171['getComment'](_0x2c9daa);if(!_0x471a5d)throw new _0x358429('commentsrepository-remove-missing-comment',this);if(_0x806171['_remove'](_0x471a5d),_0x7761e||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x47ab21=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3e9cb2}=_0x806171,_0x1031bf=_0x47ab21['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x3e9cb2,'threadId':_0x56bccf,'commentId':_0x2c9daa})['then'](()=>_0x47ab21['remove'](_0x1031bf))['catch'](_0x11ec73=>{throw console['error'](_0x11ec73),new _0x358429('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
+ _0x570f76(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x20aaa1,_0x34a2fb){super();const _0x203895=_0x34a2fb['isResolvable'];this['channelId']=_0x34a2fb['channelId'],this['id']=_0x34a2fb['id'],this['comments']=new _0x3a2226(),this['_repository']=_0x20aaa1,this['_isAttached']=!0x1,this['_isSubmitted']=_0x34a2fb['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x20aaa1,'_permissions',_0x20aaa1,'_readOnlyChannels',()=>_0x20aaa1['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x20aaa1,'_permissions',()=>_0x20aaa1['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x20aaa1,'_permissions',()=>{const _0x1e1441=_0x20aaa1['getPermissions'](this['channelId']);return _0x1e1441['write']||_0x1e1441['admin'];}),this['bind']('isResolvable')['to'](_0x20aaa1,'_permissions',()=>_0x203895&&_0x20aaa1['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x34a2fb['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x3c32d8,_0x8fdc8b)=>_0x3c32d8?_0x8fdc8b?_0x3c32d8<_0x8fdc8b?_0x3c32d8:_0x8fdc8b:_0x3c32d8:_0x8fdc8b),this['set']('unlinkedAt',_0x34a2fb['unlinkedAt']||null),this['set']('resolvedAt',_0x34a2fb['resolvedAt']||null),this['set']('resolvedBy',_0x34a2fb['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0xb7d58a=>!!_0xb7d58a),this['set']('attributes',_0x34a2fb['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x31740a,_0x23018b)=>_0x31740a+_0x23018b['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x4a6cd8,id:_0xad81c9}=this;this['_repository']['fire'](_t('submitCommentThread',_0x4a6cd8),{'channelId':_0x4a6cd8,'threadId':_0xad81c9});}['setUnlinkedAt'](_0x3e5fcf){this['_update']({'unlinkedAt':_0x3e5fcf});}['resolve']({resolvedAt:_0x18a036=new Date(),resolvedBy:_0x28bfd8=null,isFromAdapter:_0x57e799=!0x1}={}){const _0x213609=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x47b168,id:_0x198f6d}=this;this['_repository']['fire'](_t('resolveCommentThread',_0x47b168),{'channelId':_0x47b168,'threadId':_0x198f6d,'resolvedAt':_0x18a036,'resolvedBy':_0x28bfd8||_0x213609['id'],'isFromAdapter':_0x57e799});}['reopen']({isFromAdapter:_0x3ed9fa=!0x1}={}){const {channelId:_0x37465c,id:_0x40f3dd}=this;this['_repository']['fire'](_t('reopenCommentThread',_0x37465c),{'channelId':_0x37465c,'threadId':_0x40f3dd,'isFromAdapter':_0x3ed9fa});}['setContext'](_0x2bc1ae){this['context']||this['_update']({'context':_0x2bc1ae});}['setAttribute'](_0x11b3a1,_0x194831){const _0xc2e25b=pt(this['attributes']);wt(_0xc2e25b,_0x11b3a1,_0x194831),this['_update']({'attributes':_0xc2e25b});}['removeAttribute'](_0x4ab9e4){const _0x54aea6=pt(this['attributes']);At(_0x54aea6,_0x4ab9e4),this['_update']({'attributes':_0x54aea6});}['remove']({isFromAdapter:_0x55e903=!0x1}={}){const {channelId:_0x458c62,id:_0x3d4d55}=this;this['_repository']['fire'](_t('removeCommentThread',_0x458c62),{'channelId':_0x458c62,'threadId':_0x3d4d55,'isFromAdapter':_0x55e903});}['attachTo'](_0x58897c){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x58897c});}['addComment'](_0x472096){const {channelId:_0x16589d,id:_0x47d177}=this;this['_repository']['fire'](_t('addComment',_0x16589d,_0x47d177),Object['assign']({'channelId':_0x16589d,'threadId':_0x47d177},_0x472096));}['getComment'](_0x36b972){if('string'!=typeof _0x36b972)throw new _0x358429('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x36b972});return this['comments']['get'](_0x36b972);}['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'](_0x27156f=>_0x27156f['toJSON']()),'attributes':this['attributes']};}['_add'](_0x14426f){return this['listenTo'](_0x14426f,'change:authoredAt',()=>{const _0x9348a=this['_findOptimalIndex'](_0x14426f),_0x37caa5=this['comments'];_0x9348a-0x1!=_0x37caa5['getIndex'](_0x14426f)&&_0x9348a+0x1!=_0x37caa5['getIndex'](_0x14426f)&&(this['_remove'](_0x14426f),this['_add'](_0x14426f));}),this['comments']['add'](_0x14426f,this['_findOptimalIndex'](_0x14426f));}['_update'](_0xc03b6f){const {channelId:_0x264682,id:_0x582760}=this;this['_repository']['fire'](_t('updateCommentThread',_0x264682),{..._0xc03b6f,'channelId':_0x264682,'threadId':_0x582760});}['_remove'](_0x3c9193){return this['stopListening'](_0x3c9193),_0x3c9193['destroy'](),this['comments']['remove'](_0x3c9193);}['_findOptimalIndex'](_0x12e463){const _0x448cd8=this['comments']['find'](_0x4e96ca=>new Date(_0x4e96ca['authoredAt'])['getTime']()>new Date(_0x12e463['authoredAt'])['getTime']());return _0x448cd8?this['comments']['getIndex'](_0x448cd8):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
+ _0x570f76(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x1edf67,_0x3eb306){super();const _0x484fcf=_0x1edf67['context']['plugins']['get'](it)['me'],_0x4a2f76=_0x1edf67['getCommentThread'](_0x3eb306['threadId']),_0x1dabd7=0x0===_0x4a2f76['comments']['length'],_0x3d4b46=_0x484fcf===_0x3eb306['author'];this['id']=_0x3eb306['id'],this['threadId']=_0x3eb306['threadId'],this['author']=_0x3eb306['author'],this['creator']=_0x3eb306['creator'],this['isExternal']=Boolean(_0x3eb306['attributes']&&_0x3eb306['attributes']['@external']),this['set']('content',_0x3eb306['content']),this['createdAt']=_0x3eb306['createdAt']||new Date(),this['set']('authoredAt',_0x3eb306['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x4a2f76,'resolvedAt'),this['set']('attributes',_0x3eb306['attributes']||{}),this['bind']('isEditable')['to'](_0x1edf67,'_permissions',()=>{const _0x1a349f=_0x1edf67['getPermissions'](_0x4a2f76['channelId'])['write'],_0x19547b=_0x1edf67['getPermissions'](_0x4a2f76['channelId'])['modifyAll'];return _0x3d4b46&&_0x1a349f||!_0x3d4b46&&_0x19547b;}),this['bind']('isRemovable')['to'](_0x4a2f76,'isRemovable',_0x1edf67,'_permissions',_0x58cc7a=>{const _0x5ffca5=_0x1edf67['getPermissions'](_0x4a2f76['channelId'])['write'],_0x529e50=_0x1edf67['getPermissions'](_0x4a2f76['channelId'])['modifyAll'];return _0x3d4b46&&_0x5ffca5||_0x58cc7a&&_0x1dabd7||!_0x3d4b46&&_0x529e50&&!_0x1dabd7;}),this['bind']('isReadOnly')['to'](_0x4a2f76,'isReadOnly'),this['_repository']=_0x1edf67;}get['weight'](){return Math['max'](function(_0x21e26c){const _0x17a4f7=document['createElement']('div');return _0x17a4f7['innerHTML']=_0x21e26c,_0x17a4f7['textContent']['length'];}(this['content']),0xc8);}['update'](_0x572c63){const {threadId:_0x5c4b35,id:_0x528de7}=this;if(!this['_repository']['hasCommentThread'](_0x5c4b35))throw new _0x358429('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x5b69bb}=this['_repository']['getCommentThread'](_0x5c4b35);this['_repository']['fire'](_t('updateComment',_0x5b69bb,_0x5c4b35),{'channelId':_0x5b69bb,'threadId':_0x5c4b35,'commentId':_0x528de7,..._0x572c63});}['setAttribute'](_0xa6eddf,_0x3313a5){const _0xc4fbe6=pt(this['attributes']);wt(_0xc4fbe6,_0xa6eddf,_0x3313a5),this['update']({'attributes':_0xc4fbe6});}['removeAttribute'](_0x2ee2f1){const _0x391616=pt(this['attributes']);At(_0x391616,_0x2ee2f1),this['update']({'attributes':_0x391616});}['remove'](_0x3410e5={}){if(!_0x3410e5['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x440be4,id:_0x32d4b1}=this;if(!this['_repository']['hasCommentThread'](_0x440be4))throw new _0x358429('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0xde4cd2}=this['_repository']['getCommentThread'](_0x440be4);this['_repository']['fire'](_t('removeComment',_0xde4cd2,_0x440be4),{'channelId':_0xde4cd2,'threadId':_0x440be4,'commentId':_0x32d4b1,..._0x3410e5});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0x35b53a,..._0x34d83a){for(const _0x159e07 of _0x34d83a)void 0x0!==_0x159e07&&(_0x35b53a+=':'+String(_0x159e07));return _0x35b53a;}class J extends _0x11308d{['refresh'](){const _0x8c7fc9=this['editor']['model']['document']['selection'];for(const _0x7753ce of _0x8c7fc9['getRanges']())if(this['_hasContent'](_0x7753ce))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x359e36=_0xcaced0()}={}){const _0xd868fb=this['editor']['model'],_0x401401=[];for(const _0x230aa3 of _0xd868fb['document']['selection']['getRanges']())this['_hasContent'](_0x230aa3)&&_0x401401['push'](this['_trimToContent'](_0x230aa3));_0xd868fb['change'](_0x356e9c=>{for(const _0x2be678 of _0x401401){const _0x2cff71=_0xcaced0()['substr'](0x1,0x5),_0x3d787c='comment:'+_0x359e36+':'+_0x2cff71;_0x356e9c['addMarker'](_0x3d787c,{'range':_0x2be678,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x55bd11){for(const _0x21e745 of _0x55bd11['getItems']())if(this['_itemIsContent'](_0x21e745))return!0x0;return!0x1;}['_itemIsContent'](_0x5d9f2e){return _0x5d9f2e['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x5d9f2e)&&!_0x5d9f2e['is']('element','tableCell');}['_trimToContent'](_0x18a3f8){const _0x59c409=_0x1eabd8=>!this['_itemIsContent'](_0x1eabd8['item']),_0x56b4db=_0x18a3f8['start']['getLastMatchingPosition'](_0x59c409),_0x1374cb=_0x18a3f8['end']['getLastMatchingPosition'](_0x59c409,{'direction':'backward'});return this['editor']['model']['createRange'](_0x56b4db,_0x1374cb);}}class P extends _0x44cf24{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x238139){super(_0x238139),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x3bdc96=this['editor'],_0x223598=_0x3bdc96['model']['document']['selection'],_0x244807=_0x4da05a(()=>this['refreshSelectedViews'](),0xa);_0x223598['on']('change:range',(_0x3e0d9e,_0x55cf8e)=>{_0x55cf8e['directChange']&&(_0x244807['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x3bdc96['editing']['view']['document'],'change:isFocused',(_0x4eb150,_0x1bb99e,_0x42a9fb)=>{_0x42a9fb&&_0x244807();}),this['listenTo'](_0x3bdc96['ui']['focusTracker'],'change:isFocused',(_0x2e999f,_0x2b4f7e,_0x32f883)=>{_0x32f883||_0x3bdc96['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x4e030f=>this['_editorAnnotationsData']['has'](_0x4e030f['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x15809e){if(this['_editorAnnotations']['has'](_0x15809e['view']))return;this['_editorAnnotations']['add'](_0x15809e['view']),this['editor']['ui']['focusTracker']['add'](_0x15809e['view']['element']);const _0x4af975=this['editor']['plugins']['get'](N);this['listenTo'](_0x4af975['collection'],'remove',(_0x2af01b,_0x123891)=>{this['editor']['ui']['focusTracker']['remove'](_0x123891['view']['element']),this['_editorAnnotations']['delete'](_0x123891['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x59f8da){if('function'!=typeof _0x59f8da)throw new _0x358429('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x59f8da);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2523a7,annotations:_0x63d969}){const _0x539470=[],_0x55f55a=this['editor']['model']['document']['selection'],_0x995c77=Array['from'](_0x55f55a['getRanges']());for(const [_0x5a234d,_0x56d2ac]of this['_editorAnnotationsData']){const _0x59e072=_0x3fbf8f(_0x56d2ac),_0x177cea=_0x63d969['getByInnerView'](_0x5a234d);_0x59e072&&_0x177cea&&_0x539470['push']({'annotation':_0x177cea,'range':_0x59e072});}function _0x3fbf8f(_0x417322){for(const _0x5693a0 of _0x417322)for(const _0x53a413 of _0x995c77)if(_0x5693a0['containsRange'](_0x53a413,!_0x55f55a['isCollapsed']))return _0x5693a0;return null;}return _0x539470['sort']((_0x50b649,_0x14ac9c)=>{const _0x14db16=_0x50b649['range'],_0x5769cb=_0x14ac9c['range'];if(!_0x14db16['isEqual'](_0x5769cb)){if(_0x14db16['containsRange'](_0x5769cb,!0x0))return 0x1;if(_0x5769cb['containsRange'](_0x14db16,!0x0))return-0x1;}return _0x50b649['annotation']==_0x2523a7?-0x1:_0x14ac9c['annotation']==_0x2523a7?0x1:0x0;})['map'](_0xed9290=>_0xed9290['annotation']);}get['_editorAnnotationsData'](){const _0x22aac4=new Map();for(const _0xbe28ee of Array['from'](this['_dataCollectors']))for(const [_0x510732,_0x5c48f5]of _0xbe28ee())_0x22aac4['set'](_0x510732,_0x5c48f5);return _0x22aac4;}}class st extends _0x44cf24{['afterInit'](){const _0x15e50d=this['editor'];if(!_0x15e50d['plugins']['has']('RestrictedEditingModeEditing'))return;_0x15e50d['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x44cf24{constructor(_0x331597){super(_0x331597),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x46affb=this['editor'],_0x56a5bb=_0x46affb['commands']['get']('importWord'),_0x2bf4df=_0x46affb['plugins']['get'](it);_0x56a5bb&&(_0x56a5bb['on']('execute',(_0x1a6a94,[,_0x6b34ac])=>{_0x6b34ac['collaboration_features']={'comments':!0x0,'user_id':_0x2bf4df['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x56a5bb,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x2d08fd,_0x14643d){const {comment_threads:_0x1ebb21}=_0x14643d;_0x1ebb21&&_0x1ebb21['forEach'](({thread_id:_0x360221,comments:_0x2acc5e,is_resolved:_0x119cd0})=>{const _0x262a36=new Date(),_0x2f906d=_0x2acc5e['map'](({author:_0x1a4066,content:_0x3eb45d,created_at:_0x23f54e})=>({'content':_0x3eb45d,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x262a36,'attributes':{'@external':{'authorName':_0x1a4066,'createdAt':_0x23f54e?new Date(_0x23f54e):new Date(),'source':'importWord'}}})),_0x18e97f=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x18e97f,'threadId':_0x360221,'comments':_0x2f906d,'resolvedAt':_0x119cd0?_0x262a36:null});});}}class at extends _0x44cf24{constructor(_0x35c9ee){super(_0x35c9ee),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x224c9e=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x224c9e,'contentInsertion',(_0x34987d,_0x240440)=>this['_removeMarkersWithoutThreads'](_0x240440['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x401692){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x401692;const _0x145563=this['editor']['plugins']['get']('CommentsRepository');for(const _0x49c340 of _0x401692['keys']()){const [_0x291564,_0x301e11]=_0x49c340['split'](':');'comment'!=_0x291564||_0x145563['hasCommentThread'](_0x301e11)||_0x401692['delete'](_0x49c340);}return _0x401692;}['_registerMarkerInClipboardPipeline'](){const _0x304041=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x358848=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x358848&&_0x304041['_registerMarkerToCopy']('comment',_0x358848);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x46013f){switch(_0x46013f){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0x44cf24{static get['requires'](){return[o,P,it,st,ct,at];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f6a5f){super(_0x3f6a5f),this['set']('isThreadsLoadingPaused',!0x0),_0x3f6a5f['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x12430e,_0x5a71f8,_0x5c0ecb,_0x2eec78)=>{const _0x15cc20=_0x5c0ecb?he(_0x5c0ecb)['id']:null;if(_0x3f6a5f['model']['change'](()=>{if(_0x15cc20){const _0x119e64=this['getAllMarkersForId'](_0x15cc20);for(const _0x175824 of _0x119e64)_0x3f6a5f['editing']['reconvertMarker'](_0x175824);}if(_0x2eec78){const {id:_0x39e866}=he(_0x2eec78),_0x251537=this['getAllMarkersForId'](_0x39e866);for(const _0x2ba913 of _0x251537)_0x3f6a5f['editing']['reconvertMarker'](_0x2ba913);}}),_0x15cc20){const _0x1fad51=_0x3f6a5f['plugins']['get'](o)['getCommentThread'](_0x15cc20);_0x1fad51&&_0x1fad51['isResolved']&&this['scrollToThreadMarker'](_0x15cc20);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xea5518=this['editor'],_0x4271a4=_0xea5518['plugins']['get'](o),_0xb4c9ba=_0xea5518['config']['get']('collaboration.channelId');_0xea5518['commands']['add']('addCommentThread',new J(_0xea5518)),this['listenTo'](_0xea5518,'change:isReadOnly',(_0x1f8ebe,_0x304f0c,_0x4c57c0)=>{_0x4271a4['switchReadOnly'](_0x4c57c0,_0xea5518['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x4271a4,ut('addCommentThread',_0xb4c9ba),(_0x403926,{threadId:_0x284fbf})=>{const _0x349663=this['editor']['plugins']['get'](o)['getCommentThread'](_0x284fbf);_0x349663&&_0x349663['unlinkedAt']&&this['_attachArchivedThread'](_0x284fbf);}),this['listenTo'](_0x4271a4,ut('removeCommentThread',_0xb4c9ba),(_0x1f4f9b,{threadId:_0xa33e8a})=>{_0xea5518['model']['enqueueChange']({'isUndoable':!0x1},_0x391f0e=>{const _0x1d4703=this['getAllMarkersForId'](_0xa33e8a);for(const _0x38ac4b of _0x1d4703)_0x391f0e['removeMarker'](_0x38ac4b);});}),this['listenTo'](_0x4271a4,ut('resolveCommentThread',_0xb4c9ba),(_0x5c4eff,{threadId:_0x4320f5})=>{(this['_reconvertMarkers'](_0x4320f5),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x4320f5)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x4271a4,ut('reopenCommentThread',_0xb4c9ba),(_0x3ab77e,{threadId:_0x502cd8})=>{this['_reconvertMarkers'](_0x502cd8);},{'priority':'low'}),this['listenTo'](_0x4271a4,ut('addComment',_0xb4c9ba),(_0x6e0476,{threadId:_0x1e774e,isFromAdapter:_0x4a159f})=>{const _0x1f01a0=this['getAllMarkersForId'](_0x1e774e);if(_0x4a159f||0x0==_0x1f01a0['length']||!_0x4271a4['hasCommentThread'](_0x1e774e))return;0x1===_0x4271a4['getCommentThread'](_0x1e774e)['length']&&_0xea5518['model']['enqueueChange']({'isUndoable':!0x1},_0x4ab1a1=>{for(const _0x395c96 of _0x1f01a0)_0x4ab1a1['updateMarker'](_0x395c96,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x449be5){const _0x17eb8d=_0xc45584([0x6b,0x53,0x7a,0x6e,0x5a,0x69,0x54,0x52,0x75,0x74,0x4c,0x44,0x6c,0x36,0x67,0x59,0x38,0x51,0x65,0x62,0x4a,0x6f,0x76,0x6a,0x31,0x39,0x4e,0x43,0x37,0x77,0x6d,0x4d,0x35,0x56,0x58,0x57,0x30,0x63,0x32,0x55,0x72,0x68,0x4f,0x71,0x42,0x61,0x49,0x41,0x45,0x79,0x70,0x47,0x33,0x48,0x4b,0x73,0x78,0x64,0x50,0x34,0x66,0x46]),_0x28d7bb=0x61eb8b9,_0x598091=0x619e091^_0x28d7bb,_0x657840=window[_0xc45584([0x44,0x61,0x74,0x65])][_0xc45584([0x6e,0x6f,0x77])](),_0x2d550c=_0x449be5[_0xc45584([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57bdd1=new window[(_0xc45584([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f6a2f=>{_0x2d550c[_0xc45584([0x6f,0x6e,0x63,0x65])](_0xc45584([0x72,0x65,0x61,0x64,0x79]),_0x2f6a2f);}),_0x41ecfb={[_0xc45584([0x6b,0x74,0x79])]:_0xc45584([0x45,0x43]),[_0xc45584([0x75,0x73,0x65])]:_0xc45584([0x73,0x69,0x67]),[_0xc45584([0x63,0x72,0x76])]:_0xc45584([0x50,0x2d,0x32,0x35,0x36]),[_0xc45584([0x78])]:_0xc45584([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]),[_0xc45584([0x79])]:_0xc45584([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]),[_0xc45584([0x61,0x6c,0x67])]:_0xc45584([0x45,0x53,0x32,0x35,0x36])},_0x141a7f=_0x2d550c[_0xc45584([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc45584([0x67,0x65,0x74])](_0xc45584([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11cdf8(){let _0x4ebb32,_0x207127=null,_0x2280e2=null;try{if(_0x141a7f==_0xc45584([0x47,0x50,0x4c]))return _0xc45584([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ebb32=_0x9a5499(),!_0x4ebb32)return _0xc45584([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4ebb32[_0xc45584([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2280e2=_0x583a39(_0x4ebb32[_0xc45584([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ebb32[_0xc45584([0x6a,0x74,0x69])])),await _0x2f027d()?_0x2aa2c8()?_0x311964()?_0xc45584([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5f1a0f()?(_0x4ebb32[_0xc45584([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc45584([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x207127=_0x49f662(_0xc45584([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4ebb32[_0xc45584([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc45584([0x74,0x72,0x69,0x61,0x6c])&&(_0x207127=_0x49f662(_0xc45584([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4ebb32[_0xc45584([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc45584([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x207127=_0x49f662(_0xc45584([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x306ccf()):_0xc45584([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc45584([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc45584([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x59ba92){return _0xc45584([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x311964(){const _0x3c9d3b=[_0xc45584([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc45584([0x74,0x72,0x69,0x61,0x6c])][_0xc45584([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ebb32[_0xc45584([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x657840/0x3e8:0xe10*_0x598091;return _0x4ebb32[_0xc45584([0x65,0x78,0x70])]<_0x3c9d3b;}function _0x2aa2c8(){const _0x3ee695=_0x4ebb32[_0xc45584([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ee695&&(!!_0x3ee695[_0xc45584([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc45584([0x2a]))||(!!_0x3ee695[_0xc45584([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc45584([0x43,0x4d,0x54]))||!(!_0x3ee695[_0xc45584([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc45584([0x52,0x43,0x4d,0x54]))||!_0x2af88f())));}function _0x5f1a0f(){const _0x39c64f=_0x4ebb32[_0xc45584([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39c64f||0x0==_0x39c64f[_0xc45584([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4bbdb0}=new URL(window[_0xc45584([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x39c64f[_0xc45584([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bbdb0))return!0x0;const _0x446bda=_0x4bbdb0[_0xc45584([0x73,0x70,0x6c,0x69,0x74])](_0xc45584([0x2e]));return _0x39c64f[_0xc45584([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6edb1c=>_0x6edb1c[_0xc45584([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc45584([0x2a])))[_0xc45584([0x6d,0x61,0x70])](_0x46c4f8=>_0x46c4f8[_0xc45584([0x73,0x70,0x6c,0x69,0x74])](_0xc45584([0x2e])))[_0xc45584([0x73,0x6f,0x6d,0x65])](_0x542a79=>_0x446bda[_0xc45584([0x65,0x76,0x65,0x72,0x79])]((_0x4b894e,_0x59bc55)=>_0x542a79[_0x59bc55]===_0x4b894e||_0x542a79[_0x59bc55]===_0xc45584([0x2a])));}function _0x306ccf(){return _0x207127&&_0x2280e2?new window[(_0xc45584([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b861c,_0x4aa69c)=>{_0x207127[_0xc45584([0x74,0x68,0x65,0x6e])](_0x1b861c,_0x4aa69c),_0x2280e2[_0xc45584([0x74,0x68,0x65,0x6e])](_0x5cbe13=>{_0x5cbe13!=_0xc45584([0x56,0x61,0x6c,0x69,0x64])&&_0x1b861c(_0x5cbe13);},_0x4aa69c);}):_0x207127||_0x2280e2||_0xc45584([0x56,0x61,0x6c,0x69,0x64]);}}function _0x583a39(_0x35f8bf,_0x231711){return new window[(_0xc45584([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d8737=>{if(_0x3d2e8d())return _0x3d8737(_0xc45584([0x56,0x61,0x6c,0x69,0x64]));_0x519830(),_0x2d550c[_0xc45584([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc45584([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d615f=!0x1;const _0x54d5cd=_0xcaced0();function _0x25b3b3(_0x353d89){return!!_0x353d89&&(typeof _0x353d89===_0xc45584([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x353d89===_0xc45584([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x353d89[_0xc45584([0x74,0x68,0x65,0x6e])]===_0xc45584([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x353d89[_0xc45584([0x63,0x61,0x74,0x63,0x68])]===_0xc45584([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x580c3d(_0x4098c9){_0x3e4c0f(_0x4098c9)[_0xc45584([0x74,0x68,0x65,0x6e])](_0x1109bc=>{if(!_0x1109bc||_0x1109bc[_0xc45584([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc45584([0x6f,0x6b]))return _0xc45584([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x50055c(_0x27baee(_0x54d5cd+_0x231711))!=_0x1109bc[_0xc45584([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc45584([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc45584([0x56,0x61,0x6c,0x69,0x64]);})[_0xc45584([0x74,0x68,0x65,0x6e])](_0x10d6b5=>(_0xa9c437(),_0x10d6b5),()=>{const _0xc672a=_0x76ab43();return null==_0xc672a?(_0xa9c437(),_0xc45584([0x56,0x61,0x6c,0x69,0x64])):_0xc45584(_0x657840-_0xc672a>(0x22123cb9^_0x28d7bb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc45584([0x74,0x68,0x65,0x6e])](_0x3d8737)[_0xc45584([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d8737(_0xc45584([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x444526=0x6285639^_0x28d7bb;function _0xa9c437(){const _0x5c116c=_0xc45584([0x6c,0x6c,0x63,0x74,0x2d])+_0x50055c(_0x27baee(_0x35f8bf)),_0x3ebb7a=_0x1f2714(_0x50055c(window[_0xc45584([0x4d,0x61,0x74,0x68])][_0xc45584([0x63,0x65,0x69,0x6c])](_0x657840/_0x444526)));window[_0xc45584([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc45584([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c116c,_0x3ebb7a);}function _0x76ab43(){const _0x2bae0a=_0xc45584([0x6c,0x6c,0x63,0x74,0x2d])+_0x50055c(_0x27baee(_0x35f8bf)),_0x2955eb=window[_0xc45584([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc45584([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2bae0a);return _0x2955eb?window[_0xc45584([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f2714(_0x2955eb),0x10)*_0x444526:null;}function _0x3e4c0f(_0x35d951){return new window[(_0xc45584([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x227bb1,_0x518596)=>{_0x35d951[_0xc45584([0x74,0x68,0x65,0x6e])](_0x227bb1,_0x518596),window[_0xc45584([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x518596,0x61f6c79^_0x28d7bb);});}}_0x2d550c[_0xc45584([0x6f,0x6e])](_0xc45584([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x571180,_0x1977a6)=>{if(_0x1977a6[0x0]!=_0x35f8bf)return _0x3d8737(_0xc45584([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1977a6[0x1]={..._0x1977a6[0x1],[_0xc45584([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x54d5cd};},{[_0xc45584([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc45584([0x68,0x69,0x67,0x68])}),_0x2d550c[_0xc45584([0x6f,0x6e])](_0xc45584([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b8372=>{_0x25b3b3(_0x2b8372[_0xc45584([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d615f=!0x0,_0x580c3d(_0x2b8372[_0xc45584([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc45584([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc45584([0x6c,0x6f,0x77])}),_0x57bdd1[_0xc45584([0x74,0x68,0x65,0x6e])](()=>{_0x4d615f||_0x3d8737(_0xc45584([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d2e8d(){return _0x2d550c[_0xc45584([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc45584([0x76,0x69,0x65,0x77])][_0xc45584([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc45584([0x61,0x75,0x74,0x6f]);}function _0x519830(){_0x2d550c[_0xc45584([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc45584([0x76,0x69,0x65,0x77])][_0xc45584([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc45584([0x61,0x75,0x74,0x6f]);}}function _0x49f662(_0xab79e8){const _0x45a734=[new window[(_0xc45584([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5474f5=>setTimeout(_0x5474f5,0x6178675^_0x28d7bb)),_0x57bdd1[_0xc45584([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc45584([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50238b=>{let _0xc0bc19=0x0;_0x2d550c[_0xc45584([0x6d,0x6f,0x64,0x65,0x6c])][_0xc45584([0x6f,0x6e])](_0xc45584([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x584050,_0x461cf3)=>{_0x461cf3[0x0][_0xc45584([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc0bc19++,_0xc0bc19==(0x61eb941^_0x28d7bb)&&(_0x50238b(),_0x584050[_0xc45584([0x6f,0x66,0x66])]());});}))];return window[_0xc45584([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc45584([0x72,0x61,0x63,0x65])](_0x45a734)[_0xc45584([0x74,0x68,0x65,0x6e])](()=>_0xab79e8);}async function _0x3b6904(){await _0x57bdd1,_0x2d550c[_0xc45584([0x6d,0x6f,0x64,0x65,0x6c])][_0xc45584([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x9beab,_0x2d550c[_0xc45584([0x6d,0x6f,0x64,0x65,0x6c])][_0xc45584([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x9beab,_0x2d550c[_0xc45584([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc45584([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2af88f(){return _0x572278(_0xc45584([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1ba36a(_0xc45584([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xc45584([0x73,0x74,0x61,0x74,0x65])]==_0xc45584([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4a1688(_0x2921c9){const _0x143366=_0x5740c4();_0x2d550c[_0x143366]=_0xc45584([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2921c9,_0x2921c9!=_0xc45584([0x56,0x61,0x6c,0x69,0x64])&&_0x3b6904();}function _0x5740c4(){const _0x12a5e6=window[_0xc45584([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc45584([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc45584([0x6e,0x6f,0x77])]())[_0xc45584([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc45584([0x2e]),'');let _0x3b8c34=_0xc45584([0x6b]);for(let _0x25bd2d=0x0;_0x25bd2d<_0x12a5e6[_0xc45584([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25bd2d+=0x2){let _0x4d1d04=window[_0xc45584([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12a5e6[_0xc45584([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25bd2d,_0x25bd2d+0x2));_0x4d1d04>=_0x17eb8d[_0xc45584([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d1d04-=_0x17eb8d[_0xc45584([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b8c34+=_0x17eb8d[_0x4d1d04];}return _0x3b8c34;}function _0x9a5499(){const _0x79c316=_0x141a7f[_0xc45584([0x73,0x70,0x6c,0x69,0x74])](_0xc45584([0x2e]));if(0x3!=_0x79c316[_0xc45584([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26559f(_0x79c316[0x1]);function _0x26559f(_0x37b70f){const _0x18e837=_0x217f71(_0x37b70f);return _0x18e837&&_0x4f0ffa()?_0x18e837:null;function _0x4f0ffa(){const _0x514f92=_0x18e837[_0xc45584([0x6a,0x74,0x69])],_0x181e5c=window[_0xc45584([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x514f92[_0xc45584([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x514f92[_0xc45584([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x493a88={..._0x18e837,[_0xc45584([0x6a,0x74,0x69])]:_0x514f92[_0xc45584([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x514f92[_0xc45584([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x493a88[_0xc45584([0x76,0x63])],_0x27baee(_0x493a88)==_0x181e5c;}}}async function _0x2f027d(){let _0x4ea846=!0x0;try{const _0xf19c8e=_0x141a7f[_0xc45584([0x73,0x70,0x6c,0x69,0x74])](_0xc45584([0x2e])),[_0x353b2f,_0x1fd38a,_0x41bc61]=_0xf19c8e;return _0x597d07(_0x353b2f),await _0x58f11d(_0x353b2f,_0x1fd38a,_0x41bc61),_0x4ea846;}catch(_0x40fdc1){return!0x1;}function _0x597d07(_0xe315c7){const _0x1d0ab8=_0x217f71(_0xe315c7);_0x1d0ab8&&_0x1d0ab8[_0xc45584([0x61,0x6c,0x67])]==_0xc45584([0x45,0x53,0x32,0x35,0x36])||(_0x4ea846=!0x1);}async function _0x58f11d(_0x397fdd,_0x567ea3,_0x476b99){const _0x8e315d=window[_0xc45584([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc45584([0x66,0x72,0x6f,0x6d])](_0xe652f0(_0x476b99),_0x5ae123=>_0x5ae123[_0xc45584([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x182f59=new window[(_0xc45584([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc45584([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x397fdd+_0xc45584([0x2e])+_0x567ea3),_0x125eb4=window[_0xc45584([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc45584([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x125eb4)return;const _0x32c334=await _0x125eb4[_0xc45584([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc45584([0x6a,0x77,0x6b]),_0x41ecfb,{[_0xc45584([0x6e,0x61,0x6d,0x65])]:_0xc45584([0x45,0x43,0x44,0x53,0x41]),[_0xc45584([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc45584([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc45584([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x125eb4[_0xc45584([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc45584([0x6e,0x61,0x6d,0x65])]:_0xc45584([0x45,0x43,0x44,0x53,0x41]),[_0xc45584([0x68,0x61,0x73,0x68])]:{[_0xc45584([0x6e,0x61,0x6d,0x65])]:_0xc45584([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32c334,_0x8e315d,_0x182f59)||(_0x4ea846=!0x1);}}function _0x217f71(_0x3f8436){return _0x3f8436[_0xc45584([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc45584([0x65,0x79]))?JSON[_0xc45584([0x70,0x61,0x72,0x73,0x65])](_0xe652f0(_0x3f8436)):null;}function _0xe652f0(_0x26a042){return window[_0xc45584([0x61,0x74,0x6f,0x62])](_0x26a042[_0xc45584([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc45584([0x2b]))[_0xc45584([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc45584([0x2f])));}function _0x27baee(_0x4f84d8){let _0x387594=0x1505;function _0x338360(_0x263a41){for(let _0x146ba2=0x0;_0x146ba2<_0x263a41[_0xc45584([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x146ba2++){const _0x2ad393=_0x263a41[_0xc45584([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x146ba2);_0x387594=(_0x387594<<0x5)+_0x387594+_0x2ad393,_0x387594&=_0x387594;}}function _0x2cea1d(_0xfa5365){Array[_0xc45584([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfa5365)?_0xfa5365[_0xc45584([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2cea1d):_0xfa5365&&typeof _0xfa5365==_0xc45584([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc45584([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfa5365)[_0xc45584([0x73,0x6f,0x72,0x74])]()[_0xc45584([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5487e0,_0x5170b8])=>{_0x338360(_0x5487e0),_0x2cea1d(_0x5170b8);}):_0x338360(window[_0xc45584([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfa5365));}return _0x2cea1d(_0x4f84d8),_0x387594>>>0x0;}function _0x50055c(_0x1d1f45){return _0x1d1f45[_0xc45584([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc45584([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc45584([0x30]));}function _0x1f2714(_0x5f0d29){return _0x5f0d29[_0xc45584([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc45584([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc45584([0x6a,0x6f,0x69,0x6e])]('');}function _0x572278(_0x12c71e){return _0x2d550c[_0xc45584([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc45584([0x68,0x61,0x73])](_0x12c71e);}function _0x1ba36a(_0x4fb6f4){return _0x2d550c[_0xc45584([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc45584([0x67,0x65,0x74])](_0x4fb6f4);}function _0x9beab(){}function _0xc45584(_0x22c4ed){return _0x22c4ed['map'](_0x499fb6=>String['fromCharCode'](_0x499fb6))['join']('');}_0x4a1688(await _0x11cdf8());}(this);}['destroy'](){const _0x1c9411=this['editor']['plugins']['get'](o),_0x551a64=this['editor']['config']['get']('collaboration.channelId');for(const _0x1d1817 of _0x1c9411['getCommentThreads']({'channelId':_0x551a64}))_0x1c9411['_detachCommentThread'](_0x1d1817['id']),_0x1c9411['_threads']['delete'](_0x1d1817['id']);super['destroy']();}['hasMarkerForId'](_0x50b07a){return this['getAllMarkersForId'](_0x50b07a)['length']>0x0;}['getAllMarkersForId'](_0x3ff209){const _0x2d3627=[];for(const _0xfb874 of this['editor']['model']['markers'])_0xfb874['name']['startsWith']('comment:'+_0x3ff209)&&_0x2d3627['push'](_0xfb874);return _0x2d3627;}['scrollToThreadMarker'](_0x2722f8){const _0x9dae54=this['_getTargetForId'](_0x2722f8);_0x9dae54&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x2722f8&&rt({'target':_0x9dae54[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x545757){this['editor']['model']['change'](()=>{for(const _0x4cc697 of this['getAllMarkersForId'](_0x545757))this['editor']['editing']['reconvertMarker'](_0x4cc697);});}['_attachArchivedThread'](_0x1c7001){const _0x298d83=this['editor']['plugins']['get'](o),_0x2363fa=this['editor']['plugins']['get'](P),_0x23894b=_0x298d83['getCommentThread'](_0x1c7001);if(!_0x23894b['isAttached']){const _0xe86a12=_0x23894b['attachTo'](()=>this['_getTargetForId'](_0x23894b['id']));_0x2363fa['registerAnnotation'](_0xe86a12),_0x23894b['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x31a834=this['editor'],_0x358047=_0x31a834['plugins']['get'](it);_0x31a834['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x1cbb24,_0x426a0f)=>{const {id:_0x14dce6}=he(_0x1cbb24['markerName']),_0x3b4a7b=_0x31a834['plugins']['get'](o)['getCommentThread'](_0x14dce6),_0x5bd138=this['activeMarker']&&he(this['activeMarker'])['id']===_0x14dce6;let _0x3f5a06;if(_0x3b4a7b&&_0x3b4a7b['isResolved']&&!_0x5bd138&&_0x1cbb24['item'])return _0x426a0f['consumable']['consume'](_0x1cbb24['item'],'addMarker:'+_0x1cbb24['markerName']),_0x426a0f['consumable']['consume'](_0x1cbb24['item'],'removeMarker:'+_0x1cbb24['markerName']),null;const _0x2ff36b=['ck-comment-marker'];return _0x5bd138&&_0x2ff36b['push']('ck-comment-marker--active'),_0x3f5a06=_0x3b4a7b&&_0x3b4a7b['length']?_0x3b4a7b['comments']['first']['author']['id']:_0x358047['me']['id'],{'classes':_0x2ff36b,'attributes':{'data-comment':_0x14dce6,'data-author-id':_0x3f5a06}};}}),_0x31a834['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x52971b,{options:_0x4799c5})=>{const _0x46a2d5=_0x31a834['plugins']['get'](o),_0x2d1197=_0x31a834['model']['markers']['get'](_0x52971b),{id:_0x4951cd,part:_0x3ad07e}=he(_0x52971b);if(_0x2d1197&&!_0x2d1197['affectsData'])return null;if(_0x4799c5['ignoreResolvedComments']){const _0x39ae4e=_0x46a2d5['getCommentThread'](_0x4951cd);if(_0x39ae4e&&_0x39ae4e['isResolved'])return null;}return{'group':'comment','name':_0x3ad07e?_0x4951cd+':'+_0x3ad07e:_0x4951cd};}}),_0x31a834['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2548a3,{writer:_0x1a9d8b})=>_0x1a9d8b['createElement']('$marker',{'data-name':'comment:'+_0x2548a3['getAttribute']('id')})}),_0x31a834['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x185d80=this['editor'],_0x32afb3=_0x185d80['plugins']['get'](o),_0x638e2e=new Set(),_0x1cf687=new Set();_0x185d80['model']['document']['registerPostFixer'](_0x3bcc2d=>{let _0x4e519c=!0x1;for(const {name:_0x152184,data:_0x1899b2}of _0x185d80['model']['document']['differ']['getChangedMarkers']()){const {group:_0x467963,id:_0xf3e7bc}=he(_0x152184);let _0x296668=_0x1899b2['newRange'];if('comment'!==_0x467963||!_0x296668)continue;const _0x522f91='$graveyard'===_0x296668['root']['rootName'];_0x522f91||(_0x296668=ft(_0x296668,_0x185d80['model']),!_0x296668||_0x296668['isCollapsed']||!_0x1899b2['newRange']||_0x296668['isEqual'](_0x1899b2['newRange']))?_0x185d80['model']['hasContent'](_0x296668)&&!_0x522f91?this['isThreadsLoadingPaused']?_0x638e2e['add'](_0x152184):this['_handleThreadMarker'](_0x152184,_0xf3e7bc):(_0x1cf687['add'](_0x152184),_0x638e2e['delete'](_0x152184),_0x3bcc2d['removeMarker'](_0x152184),_0x4e519c=!0x0):(_0x3bcc2d['updateMarker'](_0x152184,{'range':_0x296668}),_0x4e519c=!0x0);}return _0x4e519c;}),this['on']('change:isThreadsLoadingPaused',(_0x38c334,_0x26b944,_0x1153e4)=>{if(!_0x1153e4&&_0x638e2e['size'])for(const _0xd08be3 of _0x638e2e){const {id:_0x767b2a}=he(_0xd08be3);_0x638e2e['delete'](_0xd08be3),_0x185d80['model']['markers']['get'](_0xd08be3)&&this['_handleThreadMarker'](_0xd08be3,_0x767b2a);}}),this['listenTo'](_0x185d80['model']['document'],'change',(_0x181449,_0x212c38)=>{for(const {name:_0x183e85,data:{newRange:_0x45020f}}of _0x185d80['model']['document']['differ']['getChangedMarkers']()){const {group:_0x366861,id:_0x3b460a}=he(_0x183e85);if('comment'!==_0x366861)continue;const _0x2d4d04=_0x32afb3['getCommentThread'](_0x3b460a),_0xc95c15=this['hasMarkerForId'](_0x3b460a);_0x2d4d04&&(!_0x2d4d04['_hasTargetInContent']&&_0x45020f&&_0x185d80['editing']['view']['once']('render',()=>{const _0x43d411=_0x185d80['plugins']['get'](N),_0x16a91a=_0x32afb3['_threadToController']['get'](_0x2d4d04)['view'];_0x43d411['getByInnerView'](_0x16a91a)['refreshVisibility']();},{'priority':'low'}),_0x2d4d04['_hasTargetInContent']=_0xc95c15||!!_0x45020f),_0x45020f||(_0x1cf687['add'](_0x183e85),_0x638e2e['delete'](_0x183e85));}if(_0x212c38['isLocal'])for(const _0x4918a1 of _0x1cf687){const {id:_0x101f51}=he(_0x4918a1),_0x5afb8c=_0x32afb3['getCommentThread'](_0x101f51),_0x1a223d=this['hasMarkerForId'](_0x101f51);_0x638e2e['delete'](_0x4918a1),!_0x5afb8c||_0x1a223d||_0x5afb8c['unlinkedAt']||_0x5afb8c['setUnlinkedAt'](new Date());}_0x1cf687['clear']();});}['_getTargetForId'](_0x306400){const _0x5f540a=this['editor'],_0x3af819=this['getAllMarkersForId'](_0x306400);return et(_0x5f540a['editing'],_0x3af819);}['_getTextContext'](_0x5b06b2){const _0xa6f83f=this['getAllMarkersForId'](_0x5b06b2);let _0x13cffc='',_0x100a56=!0x1;for(const _0x5bfa2d of _0xa6f83f){const _0x114ee7=_0x5bfa2d['getRange']();for(const _0x26b40e of Array['from'](_0x114ee7['getItems']()))_0x26b40e['is']('$textProxy')?(_0x13cffc&&_0x100a56&&(_0x13cffc+='\x20',_0x100a56=!0x1),_0x13cffc+=_0x26b40e['data']):_0x100a56=!0x0;_0x100a56=!0x0;}return _0x13cffc['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x35f674,_0xe957c7){const _0x2e4950=this['editor'],_0x18744f=_0x2e4950['plugins']['get'](o);let _0x2ba62c=_0x18744f['getCommentThread'](_0xe957c7);const _0x282704=_0x2e4950['config']['get']('collaboration.channelId'),_0x7d96bc=_0x2e4950['plugins']['get'](P);if(_0x2ba62c&&(_0x2ba62c['unlinkedAt']&&_0x2ba62c['setUnlinkedAt'](null),_0x2ba62c['isAttached']))return _0x2ba62c;return!this['getAllMarkersForId'](_0xe957c7)[0x0]['managedUsingOperations']?_0x2e4950['editing']['view']['once']('render',()=>{if(_0x18744f['getCommentThread'](_0xe957c7))return;const _0x5d3c74=_0x2e4950['plugins']['get'](N);_0x2ba62c=_0x18744f['openNewCommentThread']({'channelId':_0x282704,'threadId':_0xe957c7,'target':()=>this['_getTargetForId'](_0xe957c7),'context':{'type':'text','value':this['_getTextContext'](_0xe957c7)}});const _0x36b8e8=_0x18744f['_threadToController']['get'](_0x2ba62c)['view'],_0x15c743=_0x5d3c74['getByInnerView'](_0x36b8e8);_0x15c743&&_0x7d96bc['registerAnnotation'](_0x15c743);},{'priority':'low'}):_0x18744f['fetchCommentThread']({'channelId':_0x282704,'threadId':_0xe957c7})['then'](_0x3d9f1a=>{if('destroyed'!==_0x2e4950['state']){if(_0x2ba62c=_0x3d9f1a,_0x2ba62c&&!_0x2ba62c['isAttached']){const _0x134b37=_0x2ba62c['attachTo'](()=>this['_getTargetForId'](_0xe957c7));_0x7d96bc['registerAnnotation'](_0x134b37),_0x2ba62c['isResolved']&&this['_reconvertMarkers'](_0xe957c7);}else{if(!_0x2ba62c){const _0x2625bd=this['getAllMarkersForId'](_0xe957c7);_0x2e4950['model']['change'](_0x279271=>{for(const _0x4568ab of _0x2625bd)_0x279271['removeMarker'](_0x4568ab);});}}}}),_0x2ba62c;}['_handleThreadMarker'](_0x3aeb00,_0x2bc5cc){const _0x1f1e67=this['_attachMarkerToThread'](_0x3aeb00,_0x2bc5cc);_0x1f1e67&&!_0x1f1e67['context']&&_0x1f1e67['setContext']({'type':'text','value':this['_getTextContext'](_0x2bc5cc)});}['_initAriaMarkerChangeAnnouncements'](){const _0x28bdbf=this['editor'];ot(_0x28bdbf['model'],({left:_0x5e31fd,entered:_0x15d78c})=>{for(const _0x21afee of _0x5e31fd)if(dt(_0x21afee)){_0x28bdbf['ui']['ariaLiveAnnouncer']['announce'](S(_0x28bdbf['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x216d6b of _0x15d78c)if(dt(_0x216d6b)){_0x28bdbf['ui']['ariaLiveAnnouncer']['announce'](S(_0x28bdbf['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x30a9d8)));break;}});}}function ut(_0x260966,_0x1a73c2){return _0x1a73c2?_0x260966+':'+_0x1a73c2:_0x260966;}function he(_0xb821bd){const _0x4ee496=_0xb821bd['split'](':');return{'group':_0x4ee496[0x0],'id':_0x4ee496[0x1],'part':_0x4ee496[0x2]};}function ft(_0xd4e7ee,_0x11a3dd){const _0x3784ed=_0x11a3dd['schema'],_0xeccb7b=_0x11a3dd['createRange'](_0xd4e7ee['start']);for(const _0x319664 of _0xd4e7ee['getWalker']()){const {type:_0x27170c,item:_0x447bd6,nextPosition:_0x1e8504}=_0x319664;if('text'===_0x27170c||_0x3784ed['isObject'](_0x447bd6)){const _0x5a317a=_0x11a3dd['createPositionBefore'](_0x447bd6);_0xeccb7b['isCollapsed']&&(_0xeccb7b['start']=_0x5a317a),_0xeccb7b['end']=_0x1e8504;}}return _0xeccb7b;}function dt(_0x48da08){return'comment'===he(_0x48da08['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-2024,\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 _0x44cf24{['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 _0x43c33b=this['editor'],_0x2d091a=_0x43c33b['plugins']['get'](o),_0x270a15=_0x43c33b['plugins']['get'](r),_0x3cefa7=_0x43c33b['plugins']['get'](N),_0x5330a2=_0x43c33b['plugins']['get'](P);_0x43c33b['ui']['componentFactory']['add']('comment',()=>{const _0x2f5521=this['_createUIButton'](_0xaf61aa);return _0x2f5521['tooltip']=!0x0,_0x2f5521;}),_0x43c33b['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x5a2278)),_0x5330a2['addSourceCollector'](()=>{const _0x45b300=[];for(const [_0x187439,_0x2c815c]of _0x2d091a['_threadToController']){const _0x149b4d=_0x270a15['getAllMarkersForId'](_0x187439['id']),_0x22981d=_0x149b4d['map'](_0x137f30=>_0x137f30['getRange']());_0x149b4d['length']>0x0&&_0x45b300['push']([_0x2c815c['view'],_0x22981d]);}return _0x45b300;}),this['listenTo'](_0x3cefa7,'change:activeAnnotations',(_0x5d4fd5,_0x5dde0a,_0x43e24a)=>{const _0x97090a=Array['from'](_0x43e24a)['map'](_0x1d3ee5=>_0x1d3ee5['innerView'])['find'](_0x599e28=>_0x2d091a['_viewToController']['has'](_0x599e28));if(!_0x97090a)return void(_0x270a15['activeMarker']=null);const _0x91a77e=_0x2d091a['_viewToController']['get'](_0x97090a)['model']['id'],_0x3aad70='comment:'+_0x91a77e;_0x91a77e&&_0x270a15['hasMarkerForId'](_0x91a77e)?_0x270a15['activeMarker']=_0x3aad70:_0x270a15['activeMarker']&&(_0x270a15['activeMarker']=null);}),this['listenTo'](_0x2d091a,'removeCommentThread',(_0x35c202,{threadId:_0x35dd87,isFromAdapter:_0x41953f})=>{!_0x41953f&&_0x43c33b['ui']['focusTracker']['isFocused']&&_0x270a15['hasMarkerForId'](_0x35dd87)&&_0x43c33b['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x2d091a,'addComment',(_0x1ca36b,{threadId:_0x1951ac,isFromAdapter:_0x29a4f3})=>{if(_0x29a4f3||!_0x270a15['hasMarkerForId'](_0x1951ac)||!_0x2d091a['hasCommentThread'](_0x1951ac))return;0x1===_0x2d091a['getCommentThread'](_0x1951ac)['length']&&(_0x43c33b['editing']['view']['focus'](),_0x1ca36b['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3e9e85=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x552778;for(const _0x3fa77b in _0x3e9e85){const _0x4d7ab1=_0x3fa77b,_0x50466a=_0x3e9e85[_0x4d7ab1];if('commentsLicenseKeyValid'==_0x50466a||'commentsLicenseKeyInvalid'==_0x50466a||'commentsLicenseKeyExpired'==_0x50466a||'commentsLicenseKeyDomainLimit'==_0x50466a||'commentsLicenseKeyNotAllowed'==_0x50466a||'commentsLicenseKeyEvaluationLimit'==_0x50466a||'commentsLicenseKeyTrialLimit'==_0x50466a||'commentsLicenseKeyDevelopmentLimit'==_0x50466a||'commentsLicenseKeyUsageLimit'==_0x50466a){delete _0x3e9e85[_0x4d7ab1],_0x552778=_0x50466a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x552778&&_0x3e9e85['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x552778&&_0x3e9e85['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x552778&&_0x3e9e85['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x552778&&_0x3e9e85['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x552778&&_0x3e9e85['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x552778&&_0x3e9e85['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x552778&&_0x3e9e85['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x552778&&_0x3e9e85['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x21429c){const _0x15ba52=this['editor'],_0x5dfda9=new _0x21429c(_0x15ba52['locale']),_0x2416c6=_0x15ba52['commands']['get']('addCommentThread');return _0x5dfda9['set']({'label':S(_0x15ba52['locale'],'Comment'),'icon':xt}),_0x5dfda9['bind']('isEnabled')['to'](_0x2416c6),this['listenTo'](_0x5dfda9,'execute',()=>_0x2416c6['execute']()),_0x5dfda9;}}class s extends _0x44cf24{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x236228){super(_0x236228),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x1c511e,_0x408037,_0x16f16)=>{_0x16f16?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x1442f6,_0x419ced]of this['editor']['commands'])_0x419ced['affectsData']&&'addCommentThread'!==_0x1442f6&&_0x419ced['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0xd4bf1f=this['editor']['editing']['view']['document'];this['listenTo'](_0xd4bf1f,'cut',_0x442e2f=>_0x442e2f['stop'](),{'priority':'highest'}),this['listenTo'](_0xd4bf1f,'clipboardInput',_0x5624cb=>_0x5624cb['stop'](),{'priority':'highest'}),this['listenTo'](_0xd4bf1f,'delete',_0xda96cb=>_0xda96cb['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x352843,_0x2a5fcb]of this['editor']['commands'])_0x2a5fcb['affectsData']&&'addCommentThread'!==_0x352843&&_0x2a5fcb['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x4fba92{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35ec49){super(_0x35ec49),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0xb9ec94=this['context']['plugins']['get'](N);this['listenTo'](_0xb9ec94,'_activateAnnotation',(_0x507997,_0x4769a0)=>{for(const _0x14d7c4 of this['activeUIs']){const _0x207838=this['_uis']['get'](_0x14d7c4);(0x0,this['_uisData']['get'](_0x14d7c4)['filter'])(_0x4769a0)&&_0x207838['setActiveAnnotation'](_0x4769a0);}}),this['listenTo'](_0xb9ec94,'_deactivateAllAnnotations',()=>{for(const _0x44d0c1 of this['activeUIs']){this['_uis']['get'](_0x44d0c1)['setActiveAnnotation'](null);}}),this['listenTo'](_0xb9ec94['_visibleAnnotations'],'add',(_0x1e267b,_0x530555)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x530555);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4ec185){return this['activeUIs']['has'](_0x4ec185);}['activate'](_0x364ca5,_0x40c7e5=()=>!0x0){const _0xde4fdf=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x364ca5))throw new _0x358429('annotationsuis-missing-ui',this,{'uiName':_0x364ca5});this['isActive'](_0x364ca5)&&this['deactivate'](_0x364ca5),this['activeUIs']['add'](_0x364ca5);const _0xa4d902=new x();!function({source:_0x16307c,target:_0x10fa9a,filter:_0x394be1}){for(const _0x4e5cfc of _0x16307c)_0x394be1(_0x4e5cfc)&&_0x10fa9a['add'](_0x4e5cfc);_0x10fa9a['listenTo'](_0x16307c,'add',(_0x15710e,_0xb4237d)=>{_0x394be1(_0xb4237d)&&_0x10fa9a['add'](_0xb4237d);}),_0x10fa9a['listenTo'](_0x16307c,'remove',(_0x5e52f1,_0x5920b4)=>{_0x10fa9a['has'](_0x5920b4)&&_0x10fa9a['remove'](_0x5920b4);});}({'source':_0xde4fdf['_visibleAnnotations'],'target':_0xa4d902,'filter':_0x40c7e5}),this['_uisData']['set'](_0x364ca5,{'collection':_0xa4d902,'filter':_0x40c7e5});const _0x5ab9a3=this['_uis']['get'](_0x364ca5);_0x5ab9a3['attach'](_0xa4d902),this['listenTo'](_0x5ab9a3,'change:activeAnnotation',(_0x5e205,_0x3c8368,_0x49c34d,_0xbaa96e)=>{_0xbaa96e&&_0xde4fdf['_removeActiveAnnotation'](_0xbaa96e),_0x49c34d&&_0xde4fdf['_addActiveAnnotation'](_0x49c34d);});}['deactivate'](_0x393388){if(this['activeUIs']['delete'](_0x393388),!this['_uis']['has'](_0x393388))throw new _0x358429('annotationsuis-missing-ui',this,{'uiName':_0x393388});const _0x497382=this['_uis']['get'](_0x393388);_0x497382['detach'](),this['stopListening'](_0x497382),this['_uisData']['get'](_0x393388)['collection']['destroy'](),this['_uisData']['delete'](_0x393388);}['switchTo'](_0x55b39f){if(!this['_uis']['has'](_0x55b39f))throw new _0x358429('annotationsuis-missing-ui',this,{'uiName':_0x55b39f});const _0x300e05=this['context']['plugins']['get'](N),_0x3c4fb4=Array['from'](_0x300e05['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x55b39f);const _0x2f52e2=this['_uis']['get'](_0x55b39f);_0x2f52e2['setActiveAnnotation'](_0x3c4fb4),_0x2f52e2['_setSelectedAnnotations']&&_0x3c4fb4&&_0x2f52e2['_setSelectedAnnotations']([_0x3c4fb4]);}['deactivateAll'](){for(const _0xabdcca of this['activeUIs'])this['deactivate'](_0xabdcca);}['register'](_0x25686c,_0x144dd7){if(this['_uis']['has'](_0x25686c))throw new _0x358429('annotationsuis-register-already-registered');if('function'!=typeof _0x144dd7['attach']||'function'!=typeof _0x144dd7['detach']||'function'!=typeof _0x144dd7['setActiveAnnotation'])throw new _0x358429('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x25686c,_0x144dd7);}['refilterAnnotations'](){const _0x32e32a=this['context']['plugins']['get'](N)['collection'],_0x58ec0a=new Map(),_0x1ae9cd=Array['from'](this['activeUIs']);for(const _0x4a795a of this['activeUIs']){const _0x16b81a=this['_uisData']['get'](_0x4a795a)['collection'];for(const _0xf7706e of _0x16b81a)_0x58ec0a['set'](_0xf7706e,_0x4a795a);}for(const _0x1f0a35 of _0x32e32a){const _0x4cceef=_0x58ec0a['get'](_0x1f0a35);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1f0a35);const _0x48870a=_0x1ae9cd['find'](_0x59f7b6=>this['_uisData']['get'](_0x59f7b6)['filter'](_0x1f0a35));_0x4cceef!==_0x48870a&&(_0x4cceef&&this['_uisData']['get'](_0x4cceef)['collection']['remove'](_0x1f0a35),_0x48870a&&this['_uisData']['get'](_0x48870a)['collection']['add'](_0x1f0a35));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x554161){const _0x12e8d1=[];for(const _0x21c38f of this['activeUIs']){(0x0,this['_uisData']['get'](_0x21c38f)['filter'])(_0x554161)&&_0x12e8d1['push'](_0x21c38f);}if(_0x12e8d1['length']>0x1)throw new _0x358429('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x12e8d1,'annotationType':_0x554161['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x5338e7){super(_0x5338e7);const _0x4c8827=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 _0x42b9d5(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x4c8827['to']('class')],'style':{'minHeight':_0x4c8827['to']('minHeight',_0xc15697=>'number'==typeof _0xc15697?ae(_0xc15697+0xa):null)},'dir':_0x5338e7['uiLanguageDirection'],'role':'application','aria-label':S(_0x5338e7,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x5338e7,'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',_0x9de1fc=>{this['_updateItemPositionInFocusables'](_0x9de1fc['source']);}),this['list']['forEach'](_0x25c64b=>{this['focusTracker']['add'](_0x25c64b['element']),this['_updateItemPositionInFocusables'](_0x25c64b);}),this['list']['on']('change',(_0x48b195,_0x2a81e7)=>{for(const _0x5b76b7 of _0x2a81e7['removed'])this['focusTracker']['remove'](_0x5b76b7['element']),this['focusables']['remove'](_0x5b76b7);for(const _0x71b9b1 of _0x2a81e7['added'])this['focusTracker']['add'](_0x71b9b1['element']),this['_updateItemPositionInFocusables'](_0x71b9b1);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x30ebb8){const _0x2692b8=this['focusables']['getIndex'](_0x30ebb8);let _0x41bd62,_0x3547b6;for(const _0x46c5f8 of this['focusables'])if(_0x30ebb8['top']<_0x46c5f8['top']){_0x41bd62=_0x46c5f8;break;}if(_0x3547b6=_0x41bd62?this['focusables']['getIndex'](_0x41bd62):this['focusables']['length'],-0x1!==_0x2692b8){if(_0x2692b8===_0x3547b6-0x1)return;this['focusables']['remove'](_0x30ebb8),_0x3547b6=_0x41bd62?this['focusables']['getIndex'](_0x41bd62):this['focusables']['length'];}this['focusables']['add'](_0x30ebb8,_0x3547b6);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x375ba8){super(_0x375ba8),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x30b55d,_0x87e781)=>_0x30b55d+_0x87e781),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x490112=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x490112['to']('isAnimationDisabled',_0x51224c=>_0x51224c?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x490112['to']('top',_0x24fe16=>qt(_0x24fe16))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x338fa1=this['element']['clientHeight'];_0x338fa1&&(this['height']=_0x338fa1);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x4fba92{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4fe29b){super(_0x4fe29b),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 _0x5d3f88=this['context']['config']['get']('sidebar.container');_0x5d3f88&&this['setContainer'](_0x5d3f88);}['setContainer'](_0x243b3f){if(!y(_0x243b3f))throw new _0x358429('sidebar-setcontainer-invalid-element');this['container']=_0x243b3f;}['_attachToContainer']({viewClass:_0x27eb94='',spaceBetweenItems:_0xda3203=0x19}={}){if(!y(this['container']))throw new _0x358429('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x27eb94,this['_spaceBetweenItems']=_0xda3203;}['rearrange']({removedAnnotation:_0x1f08ad,previousAnnotation:_0x32d79d,nextAnnotation:_0x246f99}){const _0x3fdd9c=this['getSidebarItemView'](_0x1f08ad);this['view']['list']['remove'](_0x3fdd9c),this['_destroySidebarItemView'](_0x1f08ad),_0x32d79d&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x32d79d)),_0x246f99&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x246f99)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x31afef,activatedAnnotation:_0x5848bd,disableAnimationOnActivatedAnnotation:_0x352016}){if(this['_activeAnnotation']=_0x5848bd,_0x31afef){_0x31afef['isActive']=!0x1;const _0x2ce01e=this['getSidebarItemView'](_0x31afef);_0x2ce01e&&_0x352016&&(_0x2ce01e['isAnimationDisabled']=!0x1);}if(_0x5848bd){const _0xc92178=this['getSidebarItemView'](_0x5848bd);_0xc92178&&(_0x5848bd['isActive']=!0x0,_0x352016&&(_0xc92178['isAnimationDisabled']=!0x0,_0xc92178['top']+=0x1),this['_alignToTargetRect'](_0xc92178));}}['_detachFromContainer'](_0x168bd6){if(this['view']['element']['remove'](),_0x168bd6){for(const _0x61d4b9 of _0x168bd6)this['_destroySidebarItemView'](_0x61d4b9);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x56b541,_0x2d5d46){_0x2d5d46||(_0x2d5d46=_0x56b541['view']);const _0x2d2bc6=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x2d2bc6,_0x56b541),this['_annotationToSidebarItemView']['set'](_0x56b541,_0x2d2bc6),_0x2d2bc6['content']['add'](_0x2d5d46),this['listenTo'](_0x56b541['view'],'change:targetRect',(_0x2d4d59,_0x3f76e5,_0x8406b1)=>{const _0x3a2b58=this['_getTargetTop'](_0x56b541,_0x8406b1);_0x2d2bc6['_targetTop']!=_0x3a2b58&&(_0x2d2bc6['_targetTop']=_0x3a2b58,this['_setItemTop'](_0x2d2bc6,_0x3a2b58));}),this['listenTo'](_0x2d2bc6,'change:top',()=>{this['_recalculate'](_0x2d2bc6,'top');}),this['listenTo'](_0x2d2bc6,'change:bottom',()=>{this['_recalculate'](_0x2d2bc6,'bottom');}),this['_alignToTargetRect'](_0x2d2bc6);const _0x3005eb=this['_getItemBefore'](_0x2d2bc6);if(_0x3005eb)this['_alignAfterItem'](_0x3005eb,_0x2d2bc6)||this['_alignToTargetRect'](_0x2d2bc6);else this['_alignToTargetRect'](_0x2d2bc6);return this['_updateLastItem'](),this['view']['list']['add'](_0x2d2bc6),_0x2d2bc6;}['_alignForTopChange'](_0x26804a){if(!_0x26804a['content']['length'])return;const _0x1b6e42=this['_getItemBefore'](_0x26804a);if(!_0x1b6e42)return;const _0x21cc9a=this['_sidebarItemViewToAnnotation']['get'](_0x1b6e42),_0x4c6bc1=this['_activeAnnotation'];_0x4c6bc1&&_0x4c6bc1===_0x21cc9a?this['_alignAfterItem'](_0x1b6e42,_0x26804a):this['_alignBeforeItem'](_0x26804a,_0x1b6e42);}['_alignForBottomChange'](_0x4bcc48){if(!_0x4bcc48['content']['length'])return;const _0x2c9373=this['_getItemAfter'](_0x4bcc48);if(!_0x2c9373)return;const _0x11a062=this['_sidebarItemViewToAnnotation']['get'](_0x2c9373),_0x543f95=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x5e686c=this['_activeAnnotation'];_0x5e686c&&_0x5e686c===_0x11a062&&_0x543f95?(this['_alignBeforeItem'](_0x2c9373,_0x4bcc48),this['_alignAfterItem'](_0x4bcc48,_0x2c9373)):_0x5e686c&&_0x5e686c===_0x11a062?this['_alignBeforeItem'](_0x2c9373,_0x4bcc48):this['_alignAfterItem'](_0x4bcc48,_0x2c9373);}['_recalculate'](_0x1f9202,_0x3c5f47){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x31066e,changedProp:_0x247492}of this['_recalculateBuffer'])'top'===_0x247492?this['_alignForTopChange'](_0x31066e):this['_alignForBottomChange'](_0x31066e);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x1f9202,'changedProp':_0x3c5f47});}['getSidebarItemView'](_0x6345e){return this['_annotationToSidebarItemView']['get'](_0x6345e);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x457827){const _0xfc4a48=this['getSidebarItemView'](_0x457827);this['stopListening'](_0xfc4a48),this['stopListening'](_0x457827['view']),_0xfc4a48['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x457827),this['_sidebarItemViewToAnnotation']['delete'](_0xfc4a48);}['_createSidebarView'](){const _0x475927=new V(this['context']['locale']);return _0x475927['render'](),this['on']('change:_lastItem',(_0x2d37ef,_0x110812,_0x574286,_0x19521b)=>{_0x19521b&&_0x475927['unbind']('minHeight'),_0x574286?_0x475927['bind']('minHeight')['to'](_0x574286,'bottom'):_0x475927['minHeight']=null;}),_0x475927;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x4853aa){const _0x5787c6=this['_sidebarItemViewToAnnotation']['get'](_0x4853aa),_0x3106f6=_0x5787c6&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5787c6)-0x1);return _0x3106f6&&this['getSidebarItemView'](_0x3106f6)||null;}['_getItemAfter'](_0x263fd1){const _0x410bf5=this['_sidebarItemViewToAnnotation']['get'](_0x263fd1),_0x393509=_0x410bf5&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x410bf5)+0x1);return _0x393509&&this['getSidebarItemView'](_0x393509)||null;}['_alignBeforeItem'](_0xb288eb,_0xde21ce){_0xb288eb['updateHeight']();const _0x105ee7=R(_0xde21ce['bottom']+this['_spaceBetweenItems'],_0xb288eb['top']);return!!_0x105ee7&&(this['_setItemTop'](_0xde21ce,_0xde21ce['top']-_0x105ee7),!0x0);}['_alignAfterItem'](_0x5c43f3,_0x439c5c){_0x5c43f3['updateHeight']();const _0xb1cdda=R(_0x5c43f3['bottom']+this['_spaceBetweenItems'],_0x439c5c['top']);return!!_0xb1cdda&&(this['_setItemTop'](_0x439c5c,_0x439c5c['top']+_0xb1cdda,!0x1),!0x0);}['_alignToTargetRect'](_0x7e0816){const _0x575d3b=this['_sidebarItemViewToAnnotation']['get'](_0x7e0816);if(!_0x575d3b||!_0x575d3b['target']||!_0x575d3b['targetRect'])return;const _0x31a92b=this['_getTargetTop'](_0x575d3b,_0x575d3b['targetRect']);this['_setItemTop'](_0x7e0816,_0x31a92b);}['_getTargetTop'](_0x363672,_0x880150){if(null===_0x880150)return 0x0;if(_0x363672['target']instanceof _0x4c5767)return _0x880150['top'];{const _0x21a0b5=new _0x4c5767(this['view']['element'])['top'];return _0x880150['top']-_0x21a0b5;}}['_setItemTop'](_0x5bfce9,_0x23ea60,_0x4d45f1=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x4d45f1&&(_0x23ea60=Math['max'](_0x23ea60,this['_getMaxAvailableTop'](_0x5bfce9))),_0x5bfce9['top']=_0x23ea60;}['_getMaxAvailableTop'](_0x1da15a){let _0x4e5b1d=this['_getItemBefore'](_0x1da15a),_0x490f72=0x0;for(;_0x4e5b1d;)_0x4e5b1d['updateHeight'](),_0x490f72+=this['_spaceBetweenItems']+_0x4e5b1d['height'],_0x4e5b1d=this['_getItemBefore'](_0x4e5b1d);return _0x490f72;}}function R(_0xdd3775,_0x42057b){return Math['max'](_0xdd3775-_0x42057b,0x0);}function y(_0x5a20f8){return null!==_0x5a20f8&&'object'==typeof _0x5a20f8&&0x1===_0x5a20f8['nodeType'];}class e extends _0x4fba92{['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(_0x4f40fb){super(_0x4f40fb),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x3a2226(),this['_refreshPositioningDebounced']=_0x4da05a(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x3557bd=this['context']['plugins']['get'](M),_0x45170e=this['context']['plugins']['get'](z);_0x3557bd['register']('wideSidebar',this),_0x45170e['container']&&_0x3557bd['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x5af688){if(_0x5af688===this['activeAnnotation'])return;const _0x5cbc10=this['context']['plugins']['get'](z);_0x5cbc10['_activeAnnotation']=_0x5af688;const _0x4eea5d=this['activeAnnotation'];this['activeAnnotation']=_0x5af688,_0x5cbc10['refresh']({'blurredAnnotation':_0x4eea5d,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x48212e){this['annotations']=_0x48212e;const _0xfcd469=this['context']['plugins']['get'](z);if(_0xfcd469['_annotations']=_0x48212e,this['isAttached'])throw new _0x358429('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0xfcd469,'set:container',()=>{this['detach'](),this['listenTo'](_0xfcd469,'change:container',_0xcbaa0a=>{_0xcbaa0a['off'](),this['attach'](_0x48212e);});}),_0xfcd469['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x20f2ef=_0x3543f4=>{_0x3543f4['updateTargetRect'](),_0xfcd469['addAnnotation'](_0x3543f4);};for(const _0x520622 of _0x48212e)_0x20f2ef(_0x520622);this['listenTo'](_0x48212e,'add',(_0x86a086,_0x4171f6)=>{_0x20f2ef(_0x4171f6);}),this['listenTo'](_0x48212e,'remove',(_0x364451,_0x1616df,_0x425253)=>{_0xfcd469['rearrange']({'removedAnnotation':_0x1616df,'previousAnnotation':_0x48212e['get'](_0x425253-0x1),'nextAnnotation':_0x48212e['get'](_0x425253+0x1)}),_0x1616df===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x48212e,'focus',(_0x2f4da7,_0x4cda99)=>{this['setActiveAnnotation'](_0x4cda99);}),this['listenTo'](_0x48212e,'blur',()=>{this['setActiveAnnotation'](null);});const _0x5373b7=this['context']instanceof _0x17bfab?this['context']['editors']:new _0x3a2226([this['context']]);for(const _0x4bade8 of _0x5373b7)this['_integrateWithEditorAnnotations'](_0x4bade8);this['listenTo'](_0x5373b7,'add',(_0x1b15a9,_0x431ef9)=>{this['listenTo'](_0x431ef9,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x431ef9);});}),this['listenTo'](_0x5373b7,'remove',(_0x23c0a2,_0x4b10d0)=>{_0x4b10d0['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4b10d0['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x358429('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5dc6bf=this['context']['plugins']['get'](z);_0x5dc6bf['_detachFromContainer'](this['annotations']),this['stopListening'](_0x5dc6bf),this['stopListening'](this['annotations']),this['context']instanceof _0x17bfab&&this['stopListening'](this['context']['editors']);for(const _0x5a2fd4 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5a2fd4);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x41056f){if(!_0x41056f['plugins']['has']('EditorAnnotations'))return;const _0x286cdd=_0x41056f['plugins']['get']('EditorAnnotations'),_0x315fee=()=>{const _0x26e104=_0x286cdd['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x26e104[0x0]||null);};this['listenTo'](_0x286cdd,'refresh',_0x315fee),this['listenTo'](_0x286cdd,'blur',(_0xc654b8,{isAnnotationTracked:_0x1cf23d})=>{this['activeAnnotation']&&_0x1cf23d(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x286cdd,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x4742f=>{_0x286cdd['hasDomSelection']()&&(_0x315fee(),_0x4742f['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x286cdd);}['_destroyEditorAnnotationsIntegration'](_0x1d0101){this['stopListening'](_0x1d0101),this['_editorAnnotations']['remove'](_0x1d0101);}}class D extends _0xaf61aa{['counterView'];constructor(_0x59c647){super(_0x59c647);const _0x1eaf4d=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x4761d5,_0x2d203b)=>_0x4761d5?'...':_0x2d203b['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',_0x1eaf4d['to']('annotationType',_0x4846cf=>'ck-annotation-counter__badge--'+_0x4846cf),_0x1eaf4d['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1eaf4d['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x4fba92{['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(_0x416871){super(_0x416871),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x92e931),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x3a2226(),this['_refreshPositioningDebounced']=_0x4da05a(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x578c2b(this['context']['locale']),this['balloonPanelView']=new _0x4336a9(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x1a324a){this['annotations']=_0x1a324a;const _0x4accd0=this['context']['plugins']['get'](z),_0x2fcb27=this['balloonPanelView'];if(_0x4accd0['_annotations']=_0x1a324a,this['isAttached'])throw new _0x358429('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4accd0,'set:container',()=>{this['detach'](),this['listenTo'](_0x4accd0,'change:container',_0x40f1a4=>{_0x40f1a4['off'](),this['attach'](_0x1a324a);});}),_0x4accd0['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x11bdd6=_0x39f583=>{const _0x59addb=new D(this['context']['locale']);_0x4accd0['addAnnotation'](_0x39f583,_0x59addb),this['_annotationToNarrowView']['set'](_0x39f583,_0x59addb),_0x59addb['bind']('isDirty','annotationType','number')['to'](_0x39f583['view'],'isDirty','type','length'),_0x59addb['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x2fcb27['content']['first']!==_0x39f583['view']?(this['_showBalloon'](_0x39f583),_0x39f583['view']['element']['focus'](),this['setActiveAnnotation'](_0x39f583)):this['setActiveAnnotation'](null);});};for(const _0x13db8b of _0x1a324a)_0x11bdd6(_0x13db8b);this['listenTo'](_0x1a324a,'add',(_0x216e04,_0x5d7fd4)=>{_0x11bdd6(_0x5d7fd4);}),this['listenTo'](_0x1a324a,'remove',(_0x1d2c19,_0x56d14c,_0x33ef14)=>{this['_annotationToNarrowView']['get'](_0x56d14c)['destroy'](),this['_annotationToNarrowView']['delete'](_0x56d14c),_0x4accd0['rearrange']({'removedAnnotation':_0x56d14c,'previousAnnotation':_0x1a324a['get'](_0x33ef14-0x1),'nextAnnotation':_0x1a324a['get'](_0x33ef14+0x1)}),_0x56d14c===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x1a324a,'focus',(_0x2e67d9,_0x4be5f3)=>{this['setActiveAnnotation'](_0x4be5f3);}),this['listenTo'](_0x1a324a,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x471717,_0x4d5ed0)=>{_0x4d5ed0['keyCode']===_0x2aed5e['esc']&&_0x2fcb27['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x2fcb27['content']['first']),this['_hideBalloon'](),_0x4d5ed0['stopPropagation'](),_0x4d5ed0['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x5dd12d,_0x320ccb)=>{const _0xa3e0bd=_0x320ccb['target'];_0x2fcb27['isVisible']&&_0x2fcb27['element']['contains'](_0xa3e0bd)||_0x4accd0['view']['element']['contains'](_0xa3e0bd)||_0x5dd12d['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x562410=>_0x562410['contains'](_0xa3e0bd))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1cfffb=this['context']instanceof _0x17bfab?this['context']['editors']:new _0x3a2226([this['context']]);for(const _0x2f23a5 of _0x1cfffb)this['_integrateWithEditorAnnotations'](_0x2f23a5);this['listenTo'](_0x1cfffb,'add',(_0xb6ffca,_0x164017)=>{this['listenTo'](_0x164017,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x164017);});}),this['listenTo'](_0x1cfffb,'remove',(_0x4b7cd3,_0x4d8130)=>{_0x4d8130['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4d8130['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x16eb02){if(_0x16eb02===this['activeAnnotation'])return;const _0x38ace8=this['context']['plugins']['get'](z);if(_0x38ace8['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x16eb02,'disableAnimationOnActivatedAnnotation':!0x0}),_0x16eb02)_0x38ace8['getSidebarItemView'](_0x16eb02)?this['_showBalloon'](_0x16eb02):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x16eb02;}['detach'](){if(!this['isAttached'])throw new _0x358429('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x10cb14=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x5b6074=>_0x5b6074['destroy']()),this['_annotationToNarrowView']['clear'](),_0x10cb14['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x17bfab&&this['stopListening'](this['context']['editors']);for(const _0x7ca945 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x7ca945);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'](_0x53b583){if(!_0x53b583['plugins']['has']('EditorAnnotations'))return;const _0x331caa=_0x53b583['plugins']['get']('EditorAnnotations'),_0x5e15d3=this['context']['plugins']['get'](z),_0x3a94d9=this['annotations'],_0x1938b5=this['balloonPanelView'],_0x6f1f3b=()=>{const _0xd06569=_0x331caa['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0xd06569),this['setActiveAnnotation'](_0xd06569[0x0]||null);};this['listenTo'](_0x331caa,'refresh',_0x6f1f3b),this['listenTo'](_0x331caa,'blur',(_0x200c69,{isAnnotationTracked:_0x2c2a34})=>{this['activeAnnotation']&&_0x2c2a34(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x331caa,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x3a94d9,'blur',_0x410eaf=>{_0x331caa['hasDomSelection']()&&_0x410eaf['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x5164fa,_0x415235)=>{const _0x3c25f8=_0x415235['target'];_0x1938b5['isVisible']&&_0x1938b5['element']['contains'](_0x3c25f8)||_0x5e15d3['view']['element']['contains'](_0x3c25f8)||this['activeAnnotation']&&_0x331caa['hasDomSelection']()&&(_0x6f1f3b(),_0x5164fa['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x331caa);}['_destroyEditorAnnotationsIntegration'](_0x16da65){_0x16da65&&(this['stopListening'](_0x16da65),this['_editorAnnotations']['remove'](_0x16da65));}['_setSelectedAnnotations'](_0x11deba){for(const _0x1dc7f6 of this['_selectedAnnotations'])_0x11deba['includes'](_0x1dc7f6)||this['_manuallyClosedAnnotationViews']['delete'](_0x1dc7f6['view']);this['_selectedAnnotations']=_0x11deba;}['_refreshPositioning'](){const _0x110147=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x110147['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x5bc55b){if(this['_manuallyClosedAnnotationViews']['has'](_0x5bc55b['view']))return;const _0x8d76cd=this['balloonPanelView']['content']['first'];_0x8d76cd!==_0x5bc55b['view']?(_0x8d76cd&&this['_detachListeners'](_0x8d76cd),this['_attachListeners'](_0x5bc55b['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x5bc55b['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4e55d7=this['balloonPanelView']['content']['first'],_0x3457c5=_0x4e55d7&&this['annotations']['getByView'](_0x4e55d7);if(!_0x3457c5||!this['_annotationToNarrowView']['has'](_0x3457c5))return;const _0x1a7ae3=this['_annotationToNarrowView']['get'](_0x3457c5)['element'],_0x131c37=(function(){const _0x50803f=_0x4336a9['defaultPositions'];return[_0x50803f['southArrowNorthEast'],_0x50803f['northArrowSouthEast'],_0x50803f['southArrowNorth'],_0x50803f['northArrowSouth'],_0x50803f['southArrowNorthWest'],_0x50803f['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x1a7ae3,'positions':_0x131c37});}['_hideBalloon'](){const _0x3bc01c=this['balloonPanelView'],_0x3ddddc=_0x3bc01c['content']['first'];_0x3ddddc&&(this['_detachListeners'](_0x3ddddc),_0x3bc01c['unpin'](),_0x3bc01c['content']['clear']());}['_attachListeners'](_0x5721f8){this['listenTo'](_0x5721f8,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x5721f8,'Esc',(_0x227e52,_0x13e2c8)=>{this['_manuallyClosedAnnotationViews']['add'](_0x5721f8),this['_hideBalloon'](),_0x13e2c8();});}['_detachListeners'](_0xd6cf16){this['stopListening'](_0xd6cf16);}}class c extends _0x44cf24{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x130aae,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x370be7){super(_0x370be7),_0x370be7['editing']['view']['addObserver'](_0xce54ba),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x370be7['plugins']['get'](_0x130aae),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x13ffd8=this['editor']['plugins']['get'](M);_0x13ffd8['context']===this['editor']&&(_0x13ffd8['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x408210,_0x55e3e1)=>{const _0x5c1506=this['_balloon'];if(this['isAttached']&&_0x5c1506['visibleView']){const _0x3e6786=this['annotations']['getByView'](_0x5c1506['visibleView']);_0x3e6786&&this['_closeAnnotation'](_0x3e6786),_0x55e3e1();}}));}['afterInit'](){const _0x994ec8=this['editor']['plugins']['get'](M);_0x994ec8['context']===this['editor']&&(_0x994ec8['hasActive']()||_0x994ec8['switchTo']('inline'));}['setActiveAnnotation'](_0x4a8faf){_0x4a8faf!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x4a8faf&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x4a8faf)&&this['_addAnnotationToBalloon'](_0x4a8faf,!0x0),_0x4a8faf['isActive']=!0x0),_0x4a8faf||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x4a8faf);}['attach'](_0x1e5b4e){this['annotations']=_0x1e5b4e;const _0x2921d0=this['editor']['plugins']['get'](M),_0x136d8b=this['_balloon'];if(this['isAttached'])throw new _0x358429('inlineannotations-attach-already-attached',this);if(_0x2921d0['context']!==this['editor'])throw new _0x358429('inlineannotations-not-allowed-with-context',this);const _0x5a6710=this['editor']['plugins']['get'](P);this['listenTo'](_0x5a6710,'refresh',()=>{const _0x2dfada=_0x5a6710['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x4a6e0c,_0x2ea2f8;!this['_forceRefresh']&&(_0x4a6e0c=_0x2dfada,_0x2ea2f8=this['_selectedAnnotations'],_0x4a6e0c['length']===_0x2ea2f8['length']&&_0x4a6e0c['every'](_0x5664c9=>_0x2ea2f8['includes'](_0x5664c9)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x2dfada),this['setActiveAnnotation'](_0x2dfada[0x0]||null));}),this['listenTo'](_0x5a6710,'blur',(_0x3b5119,{isAnnotationTracked:_0xad19e6})=>{this['activeAnnotation']&&_0xad19e6(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x566500,_0x4487e8,_0x108c14)=>{_0x108c14||this['setActiveAnnotation'](null);}),this['listenTo'](_0x1e5b4e,'remove',(_0x3f5619,_0x197517)=>{this['_removeAnnotationFromBalloon'](_0x197517),_0x197517===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x136d8b,'change:visibleView',(_0x37d415,_0x25bf2f,_0x19eb01,_0x43bcc0)=>{_0x43bcc0&&this['stopListening'](_0x43bcc0);const _0x1b822b=_0x1e5b4e['getByView'](_0x19eb01);_0x19eb01&&_0x1b822b&&(this['listenTo'](_0x19eb01,'change:height',()=>{_0x136d8b['updatePosition']();}),this['listenTo'](_0x19eb01,'Esc',()=>{this['_closeAnnotation'](_0x1b822b),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x1b822b&&this['setActiveAnnotation'](_0x1b822b));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x136d8b['visibleView']&&(_0x1e5b4e['getByView'](_0x136d8b['visibleView'])&&_0x136d8b['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 _0x358429('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x22859e of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x22859e);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x59c8ce){for(const _0x254c8d of this['_selectedAnnotations'])_0x59c8ce['includes'](_0x254c8d)||this['_manuallyClosed']['delete'](_0x254c8d);for(const _0x5849a6 of this['annotations'])_0x59c8ce['includes'](_0x5849a6)||this['_removeAnnotationFromBalloon'](_0x5849a6);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x4e350e of _0x59c8ce)this['_addAnnotationToBalloon'](_0x4e350e);}this['_selectedAnnotations']=_0x59c8ce;}['_addAnnotationToBalloon'](_0x2d505f,_0x1c1748=!0x1){this['_manuallyClosed']['has'](_0x2d505f)||(this['_addedAnnotations']['has'](_0x2d505f)||this['_balloon']['hasView'](_0x2d505f['view'])||(this['_addedAnnotations']['add'](_0x2d505f),this['_balloon']['add']({'stackId':_0x2d505f['view']['id'],'view':_0x2d505f['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x2d505f)}})),_0x1c1748&&this['_balloon']['showStack'](_0x2d505f['view']['id']));}['_getBalloonTargetForAnnotation'](_0x339003){const _0x4365bd=_0x339003['target'],_0x4ff380=this['editor']['editing']['view'],_0x495314=_0x4ff380['document']['selection']['getFirstRange'](),_0x1dbd9d=_0x4ff380['domConverter']['viewRangeToDom'](_0x495314);if(_0x1dbd9d['collapse'](!0x0),_0x4365bd){if(_0x4365bd instanceof _0x4c5767)return _0x4365bd;let _0x56df88=[];for(const _0x447990 of _0x4365bd)_0x56df88['push'](...(_0x2053bd=_0x447990['getClientRects'](),Array['from'](_0x2053bd)['map'](DOMRect['fromRect'])));_0x56df88=function(_0x450728){const _0x13328d=[];let _0x1f1510=_0x450728[0x0];for(let _0xf08a88=0x1;_0xf08a88<_0x450728['length'];_0xf08a88++)b(_0x1f1510,_0x450728[_0xf08a88])?_0x1f1510['width']+=_0x450728[_0xf08a88]['width']:(_0x13328d['push'](_0x1f1510),_0x1f1510=_0x450728[_0xf08a88]);return _0x13328d['push'](_0x1f1510),_0x13328d;}(_0x56df88);const _0x3713fd=_0x1dbd9d['getBoundingClientRect']();return _0x56df88['find'](_0x7e6589=>_0x7e6589['top']<=_0x3713fd['top']&&_0x7e6589['bottom']>=_0x3713fd['bottom']&&_0x7e6589['left']<=_0x3713fd['left']&&_0x7e6589['right']>=_0x3713fd['right'])||_0x56df88[0x0];}var _0x2053bd;return _0x339003['targetRect']||_0x1dbd9d;}['_removeAnnotationFromBalloon'](_0x5e1b6f){this['_addedAnnotations']['has'](_0x5e1b6f)&&this['_balloon']['hasView'](_0x5e1b6f['view'])&&(this['_addedAnnotations']['delete'](_0x5e1b6f),this['_balloon']['remove'](_0x5e1b6f['view']));}['_closeAnnotation'](_0x4d77c3){this['_manuallyClosed']['add'](_0x4d77c3),this['_removeAnnotationFromBalloon'](_0x4d77c3);}}function b(_0x5c2a8b,_0x22deac){return _0x5c2a8b['top']===_0x22deac['top']&&_0x5c2a8b['bottom']===_0x22deac['bottom']&&_0x5c2a8b['right']===_0x22deac['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-2024,\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(_0x4acc2f,_0x277607){super(_0x4acc2f),this['set']('isEmpty',!_0x277607['length']),this['focusTracker']=new _0x42b9d5(),this['_annotationViews']=_0x277607,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x277607,'focusTracker':this['focusTracker']}),this['listenTo'](_0x277607,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x277607,'remove',(_0x3eb575,_0x328d39)=>{_0x328d39['isActive']&&this['focus'](),_0x277607['length']||(this['isEmpty']=!0x0);});const _0x3587cd=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x4acc2f,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x277607},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x3587cd['if']('isEmpty','ck-hidden',_0x108ca6=>!_0x108ca6)]},'children':[{'text':S(_0x4acc2f,'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 _0x40e8e7 of this['_annotationViews'])this['focusTracker']['add'](_0x40e8e7['element']);this['_annotationViews']['on']('change',(_0x5a1a80,{added:_0x3ae285,removed:_0x5467c4})=>{for(const _0x23b20d of _0x3ae285)this['focusTracker']['add'](_0x23b20d['element']);for(const _0x30b549 of _0x5467c4)this['focusTracker']['remove'](_0x30b549['element']);});}}class f extends _0x4fba92{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x2b0966){super(_0x2b0966),this['archivedThreads']=new _0x3a2226();}['init'](){const _0x458538=this['context'],_0x40a43c=_0x458538['plugins']['get'](o),_0x4890cd=_0x458538['plugins']['get'](N);this['listenTo'](_0x40a43c,'addCommentThread',(_0x23c72e,{threadId:_0x29fbc1})=>{const _0x2236e6=_0x40a43c['getCommentThread'](_0x29fbc1);_0x2236e6['archivedAt']&&this['archivedThreads']['add'](_0x2236e6,this['_calculatePosition'](_0x2236e6['archivedAt'])),this['listenTo'](_0x2236e6,'change:archivedAt',(_0x2c684f,_0x2da555,_0x5c85c2)=>{_0x5c85c2?this['archivedThreads']['has'](_0x2236e6)||this['archivedThreads']['add'](_0x2236e6,this['_calculatePosition'](_0x2236e6['archivedAt'])):this['archivedThreads']['has'](_0x2236e6)&&this['archivedThreads']['remove'](_0x2236e6);});}),this['listenTo'](_0x40a43c,'removeCommentThread',(_0x340c78,{threadId:_0x59f3da})=>{const _0x15c8cb=_0x40a43c['getCommentThread'](_0x59f3da);this['stopListening'](_0x15c8cb),this['archivedThreads']['has'](_0x15c8cb)&&this['archivedThreads']['remove'](_0x15c8cb);},{'priority':'highest'}),this['listenTo'](_0x4890cd['collection'],'focus',(_0x38deca,_0x471002)=>{_0x471002['isVisible']||(_0x471002['isActive']=!0x0,_0x4890cd['activate'](_0x471002));});}['_calculatePosition'](_0x4223cf){const _0x48b9b9=[...this['archivedThreads']]['findIndex'](_0x1c4dc6=>_0x1c4dc6['archivedAt']<_0x4223cf);return _0x48b9b9>-0x1?_0x48b9b9:this['archivedThreads']['length'];}}class a extends _0x44cf24{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0xd8596e];}constructor(_0x11f6bc){super(_0x11f6bc),this['annotationViews']=new _0xabf670(),this['_pendingThreads']=[];}['init'](){const _0x1b1116=this['editor'],_0x510871=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x1b1116['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0xaf61aa,!0x0)),_0x1b1116['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x3b3cf0=this['_createCommentsArchiveButton'](_0x5a2278);return _0x3b3cf0['set']({'role':'menuitemcheckbox'}),_0x3b3cf0;});const _0x385265=_0x1b1116['plugins']['get'](f),_0x515be2=_0x1b1116['plugins']['get']('Annotations'),_0x2ac1e7=_0x1b1116['plugins']['get']('CommentsRepository');this['listenTo'](_0x385265['archivedThreads'],'add',(_0x41cfb6,_0x45bd49)=>{const _0x6f758c=_0x1b1116['config']['get']('collaboration.channelId');if(!_0x6f758c||_0x45bd49['channelId']===_0x6f758c){const _0x3b7bfe=_0x2ac1e7['_threadToController']['get'](_0x45bd49);if(!_0x3b7bfe)return void this['_pendingThreads']['push'](_0x45bd49);const _0x2b2546=this['_calculatePosition'](_0x45bd49['archivedAt']),_0x9789ec=_0x515be2['getByInnerView'](_0x3b7bfe['view']);_0x9789ec['isVisible']&&_0x515be2['_visibleAnnotations']['remove'](_0x9789ec),this['annotationViews']['add'](_0x9789ec['view'],_0x2b2546);}}),this['listenTo'](_0x515be2['collection'],'add',(_0x433c17,_0x327159)=>{const _0x300b64=this['_pendingThreads']['find'](_0x5441f9=>{const _0x940dab=_0x2ac1e7['_threadToController']['get'](_0x5441f9);return _0x940dab&&_0x327159['innerView']===_0x940dab['view'];});if(_0x300b64){const _0x3f5df7=this['_calculatePosition'](_0x300b64['archivedAt']);this['annotationViews']['add'](_0x327159['view'],_0x3f5df7),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x300b64),0x1);}}),this['listenTo'](_0x385265['archivedThreads'],'remove',(_0x35265b,_0x44013d)=>{const _0xc639ef=_0x1b1116['config']['get']('collaboration.channelId');if(!_0xc639ef||_0x44013d['channelId']===_0xc639ef){const _0x3f02c1=_0x2ac1e7['_threadToController']['get'](_0x44013d),_0x46054e=_0x515be2['getByInnerView'](_0x3f02c1['view']);this['annotationViews']['remove'](_0x46054e['view']),this['stopListening'](_0x46054e['focusableElements']);}}),this['listenTo'](_0x515be2['collection'],'add',(_0x41ee1e,_0x528e91)=>{this['listenTo'](_0x528e91,'escape',_0x510871);}),this['listenTo'](_0x515be2['collection'],'remove',(_0x4e4d99,_0x260600)=>{this['stopListening'](_0x260600,'escape',_0x510871);});}['_calculatePosition'](_0x515f89){const _0xc02a0f=this['editor']['config']['get']('collaboration.channelId'),_0x732e04=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x360ac0=>_0x360ac0['channelId']===_0xc02a0f)['findIndex'](_0x54b9be=>_0x54b9be['archivedAt']<_0x515f89);return _0x732e04<0x0||_0x732e04>this['annotationViews']['length']?this['annotationViews']['length']:_0x732e04-0x1;}['_toggleDialog'](){const _0x493431=this['editor'],_0x5e6cab=_0x493431['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x493431['locale'],this['annotationViews'])),'commentsArchive'===_0x5e6cab['id']?_0x5e6cab['hide']():_0x5e6cab['show']({'id':'commentsArchive','title':S(_0x493431['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x52df4d['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x46b9ae,_0x18c4fa=!0x1){const _0x4afd9c=this['editor']['locale'],_0x18e6d0=this['editor']['plugins']['get']('Dialog'),_0x52c4ab=new _0x46b9ae(_0x4afd9c);return _0x52c4ab['bind']('isEnabled')['to'](this,'isEnabled'),_0x52c4ab['bind']('isOn')['to'](_0x18e6d0,'id',_0x29f640=>'commentsArchive'===_0x29f640),_0x52c4ab['set']({'label':S(_0x4afd9c,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x18c4fa&&(_0x52c4ab['tooltip']=!0x0),this['listenTo'](_0x52c4ab,'execute',()=>this['_toggleDialog']()),_0x52c4ab;}['_hideDialogOnAnnotationEscape']=_0x152d1e=>{const _0x5e34be=_0x152d1e['source'];if(!this['annotationViews']['has'](_0x5e34be['view']))return;const _0x3d8eb9=this['editor']['plugins']['get']('Dialog');_0x3d8eb9['isOpen']&&'commentsArchive'===_0x3d8eb9['id']&&(_0x3d8eb9['hide'](),_0x152d1e['stop']());};}class p extends _0x44cf24{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,ss as BaseCommentThreadView,os as BaseCommentView,re as Comment,oe as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,Ct as CommentThreadView,vt 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};