@ckeditor/ckeditor5-comments 47.4.0-alpha.4 → 47.4.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/build/comments.js +1 -1
  2. package/dist/index.js +11 -11
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +19 -19
  150. package/src/annotations/annotation.js +2 -2
  151. package/src/annotations/annotationcollection.js +1 -1
  152. package/src/annotations/annotations.js +1 -1
  153. package/src/annotations/annotationsuis.js +1 -1
  154. package/src/annotations/editorannotations.js +1 -1
  155. package/src/annotations/inlineannotations.js +1 -1
  156. package/src/annotations/narrowsidebar.js +1 -1
  157. package/src/annotations/sidebar.js +1 -1
  158. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  159. package/src/annotations/view/annotationview.js +1 -1
  160. package/src/annotations/view/sidebaritemview.js +2 -2
  161. package/src/annotations/view/sidebarview.js +2 -2
  162. package/src/annotations/widesidebar.js +1 -1
  163. package/src/comments/addcommentthreadcommand.js +1 -1
  164. package/src/comments/commentsarchive.js +1 -1
  165. package/src/comments/commentsarchiveui.js +1 -1
  166. package/src/comments/commentsediting.js +1 -1
  167. package/src/comments/commentsrepository.js +3 -3
  168. package/src/comments/commentsui.js +1 -1
  169. package/src/comments/integrations/clipboard.js +1 -1
  170. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  171. package/src/comments/integrations/importword.js +1 -1
  172. package/src/comments/integrations/showcommenthighlights.js +1 -1
  173. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  174. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  175. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  176. package/src/comments/ui/commentthreadcontroller.js +2 -2
  177. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  178. package/src/comments/ui/view/basecommentview.js +1 -1
  179. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  180. package/src/comments/ui/view/commentcontentview.js +1 -1
  181. package/src/comments/ui/view/commentinputview.js +1 -1
  182. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  183. package/src/comments/ui/view/commentslistview.js +1 -1
  184. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  185. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  186. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  187. package/src/comments/ui/view/commentthreadview.js +2 -2
  188. package/src/comments/ui/view/commentview.js +2 -2
  189. package/src/comments.js +1 -1
  190. package/src/commentsonly.js +1 -1
  191. package/src/index.js +1 -1
  192. package/src/utils/common-translations.js +1 -1
  193. package/src/utils/createmutationobserver.js +1 -1
  194. package/src/utils/splitmarkername.js +1 -1
package/dist/index.js CHANGED
@@ -20,14 +20,14 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x210304,ContextPlugin as _0xdc4a0a,PendingActions as lt,Command as _0x2982be,Plugin as _0x44affe,Context as _0x4e2cdd}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x478ae2,uid as _0xb5ba6,KeystrokeHandler as jt,FocusTracker as _0x290ee8,diff as _0x2936d6,Collection as _0x5db265,Rect as _0x5ba026,CKEditorError as _0x50bda,first as _0x306a8b,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x442c7d,keyCodes as _0x228f4b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x5e6680,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x4525bb,trimHtml as ts,LateFocusDropdownButtonView as _0x4d79c5,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x396338}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x1a15c5}from'es-toolkit/compat';import{IconUndo as _0x3bdff5,IconCheck as _0xc9f2eb,IconPencil as _0x37b825,IconRemoveComment as _0x411abd,IconThreeVerticalDots as _0x3dd93e,IconAddComment as _0x376438,IconCommentsArchive as _0x4c1629}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x35defd,ButtonView as _0x5281d3,ViewCollection as _0x47b0f9,createDropdown as _0x2fb663,ListView as _0x3b923b,focusChildOnDropdownOpen as _0x21e7e8,ListItemView as _0x8d14,MenuBarMenuListItemButtonView as _0x4695c5,BodyCollection as _0x28988b,BalloonPanelView as _0x10e711,ContextualBalloon as _0x2433e3,Dialog as _0x38f7c8,DialogViewPosition as _0x2077cc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x1cd994}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x5af35e}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x5b066a}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x478ae2(){['model'];['view'];constructor(_0x2c3be8,_0x36372e){super(),this['model']=_0x2c3be8,this['model']['_isAttached']=!0x0,this['view']=_0x36372e,this['listenTo'](_0x36372e,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x36372e,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x36372e,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x36372e,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x36372e,'addComment',(_0x4ad806,_0x2ceafe)=>this['addComment'](_0x2ceafe)),this['listenTo'](_0x36372e,'updateComment',(_0x1e9f9a,_0x4678a5,_0x5f42a0)=>this['updateComment'](_0x4678a5,_0x5f42a0)),this['listenTo'](_0x36372e,'removeComment',(_0x44768f,_0x1f7357)=>this['removeComment'](_0x1f7357));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x4e9fd1){this['model']['addComment']({'content':_0x4e9fd1,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x13aeee,_0x41a4e5){this['model']['getComment'](_0x13aeee)['update']({'content':_0x41a4e5});}['removeComment'](_0x24e19a){this['model']['getComment'](_0x24e19a)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x46c9f4,_0x1d31bc,_0x491e93){const t=_0x46c9f4['t'];switch(_0x1d31bc){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'},_0x491e93);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'},_0x491e93);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'},_0x491e93);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'},_0x491e93);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x491e93);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'},_0x491e93);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'},_0x491e93);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'},_0x491e93);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Rt extends $t{['main'];['editable'];constructor(_0x307542,_0x1e589b){super(_0x307542);const _0x1bd1c3=_0xb5ba6();this['main']=this['createCollection'](),this['editable']=new Vt(_0x307542,_0x1e589b,void 0x0,{'label':()=>N(_0x307542,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x307542['uiLanguageDirection'],'lang':_0x307542['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x1bd1c3},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Et extends Ut{['view'];constructor(_0x4dad0b){super(_0x4dad0b),this['view']=new Rt(_0x4dad0b['locale'],_0x4dad0b['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x2cec7f=this['editor']['editing']['view'],_0x1098bd=this['view']['editable'],_0x398cbf=_0x2cec7f['document']['getRoot']();_0x1098bd['name']=_0x398cbf['rootName'],this['view']['render']();const _0x3878c5=_0x1098bd['element'];this['setEditableElement'](_0x1098bd['name'],_0x3878c5),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2cec7f['attachDomRoot'](_0x3878c5),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
- _0x478ae2(_0x210304){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x629d73={}){function _0x3d6475(_0x135b85){return _0x135b85['map'](_0x215d0b=>String['fromCharCode'](_0x215d0b))['join']('');}(_0x629d73=Object['assign']({},_0x629d73))['plugins']||(_0x629d73['plugins']=hs['defaultPlugins']),super(_0x629d73),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x3d6475([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d6475([0x76,0x69,0x65,0x77])][_0x3d6475([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d6475([0x61,0x75,0x74,0x6f]),this[_0x3d6475([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d6475([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d6475([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d6475([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d6475([0x6f,0x6b])});}['create'](){const _0x320151=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x320151))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x3e0c81=>{const _0x286f36=this['model']['document']['getRoot'](),_0x53053a=_0x286f36&&_0x286f36['getChild'](_0x286f36['childCount']-0x1);_0x3e0c81['setSelection'](_0x53053a,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0xa04e76=this['editing']['view'],_0x4811d5=_0xa04e76['document']['getRoot'](),_0x46a543=_0x4811d5['getChild'](0x0);_0x4811d5['childCount']>0x1||!_0x46a543||'p'!=_0x46a543['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0xa04e76,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x46a543['placeholder']=this['placeholder']),Ft({'view':_0xa04e76,'element':_0x46a543,'keepOnFocus':!0x0}),this['placeholderElement']=_0x46a543);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x10d5af,_0x55b194={}){super(_0x10d5af),this['editor']=null,this['_editorConfig']=_0x55b194,this['set']('value',_0x55b194['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x10d5af,'Reply...')),this['set']('submitLabel',N(_0x10d5af,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x290ee8(),this['focusCycler']=new _0x35defd({'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',(_0x4946ec,_0x586796)=>{this['cancelButtonView']['fire']('execute'),_0x586796();}),this['keystrokes']['set']('Ctrl+Enter',(_0xf6b92e,_0x3fd9e4)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x3fd9e4());}),this['on']('submit',(_0x535177,_0x1fb942)=>{_0x1fb942['length']>0xfde8?(alert(N(_0x10d5af,'TOO_LONG_COMMENT_ALERT',[_0x1fb942['length'],0xfde8])),_0x535177['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0xafcfd4=this['editor'];this['element']['insertBefore'](_0xafcfd4['ui']['element'],this['element']['firstChild']),_0xafcfd4['model']['document']['on']('change',()=>this['value']=_0xafcfd4['getData']()),_0xafcfd4['bind']('placeholder')['to'](this),this['focusables']['add'](_0xafcfd4['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x21a226){-0x1===_0x21a226?(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:_0x35b5cf}=this,_0x101577=new _0x5281d3(_0x35b5cf);return _0x101577['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x101577['withText']=!0x0,_0x101577['bind']('label')['to'](this,'submitLabel'),_0x101577['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x101577['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x2a0c3d,_0x1d9d0a)=>!_0x1d9d0a&&!!_0x2a0c3d['trim']()),_0x101577;}['_createCancelButton'](){const {locale:_0xfc02f1}=this,_0x1b812e=new _0x5281d3(_0xfc02f1);return _0x1b812e['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x1b812e['label']=N(_0xfc02f1,'Cancel'),_0x1b812e['withText']=!0x0,_0x1b812e['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x1b812e;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x4d6dbd=>{this['focusTracker']['add'](_0x4d6dbd['element']);}),this['focusables']['on']('change',(_0x34dbca,_0x421cac)=>{for(const _0xc6045c of Array['from'](_0x421cac['added'])['reverse']())this['focusTracker']['add'](_0xc6045c['element']);});}}class ie extends kt{constructor(_0x17b628,_0x33c07f,_0x233c28){super(_0x17b628),this['commentInputView']=new es(_0x17b628,_0x233c28),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x1995ac,_0x147f1e)=>_0x1995ac||!!_0x147f1e),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 _0x5e6680(_0x17b628,_0x33c07f),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'](_0x11047c){this['commentInputView']['focus'](_0x11047c);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0xc64aef,_0x57af9a)=>{const {submitButtonView:_0x5d0664,cancelButtonView:_0x283569,editor:_0x54826e}=this['commentInputView'];[_0x5d0664['element'],_0x283569['element'],_0x54826e?_0x54826e['editing']['view']['getDomRoot']():null]['filter'](_0x33221d=>_0x33221d)['some'](_0x41da11=>_0x41da11['contains'](_0x57af9a['target']))||(this['focus'](),_0x57af9a['preventDefault']());});}}class rs extends kt{constructor(_0x5a53c7){super(_0x5a53c7);const _0x487656=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x487656['to']('count',_0x1c4d1b=>N(_0x5a53c7,'NUMBER_OF_COMMENTS',_0x1c4d1b))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x139642,_0x2909ec,_0x4ff097){super(_0x139642);const _0x50bdd9=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x2909ec['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x2909ec,this['_config']=_0x4ff097,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x290ee8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x35defd({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5070f5=>this['commentViews']['map'](_0x566d17=>_0x566d17['element'])['includes'](_0x5070f5['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x139642),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x1eadbd=>_0x1eadbd-this['_config']['maxCommentsWhenCollapsed']);for(const _0xa345fe of _0x2909ec['comments'])this['_handleNewCommentModel'](_0xa345fe);this['_handleInfoComment'](),this['listenTo'](_0x2909ec['comments'],'add',(_0x35765f,_0x9c9b91)=>{const _0x3af9d7=this['_calculatePosition'](_0x9c9b91);this['length']++,this['_handleNewCommentModel'](_0x9c9b91,_0x3af9d7),this['refreshVisibleViews']();}),this['listenTo'](_0x2909ec['comments'],'remove',(_0x384d6b,_0x42d8ef)=>{this['length']--,this['_handleRemoveCommentModel'](_0x42d8ef),this['refreshVisibleViews']();}),this['listenTo'](_0x2909ec,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x2909ec,'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',_0x50bdd9['if']('length','ck-hidden',_0x51b054=>!_0x51b054)],'aria-label':N(_0x139642,'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'](_0x262a2a){-0x1===_0x262a2a?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x5f4440 of this['commentViews'])_0x5f4440['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x1e8489,_0x5ad06f){const _0x4c5639=new this['_config']['CommentView'](this['locale'],_0x1e8489,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x4c5639['viewUid']=_0x1e8489['id'],_0x4c5639['delegate']('removeComment')['to'](this),_0x4c5639['delegate']('updateComment')['to'](this),_0x4c5639['delegate']('resolveCommentThread')['to'](this),_0x4c5639['delegate']('editorReady')['to'](this),_0x4c5639['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x4c5639,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x4c5639,_0x5ad06f);}['_calculatePosition'](_0x2796c7){const _0x4fe991=this['_model']['_findOptimalIndex'](_0x2796c7);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2796c7['authoredAt']?_0x4fe991-0x1:_0x4fe991:_0x4fe991-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x4cc3f2={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':N(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x4cc3f2,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x4cc3f2));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x305024){const _0x4d6b7a=this['commentViews']['remove'](_0x305024['id']);this['stopListening'](_0x4d6b7a),_0x4d6b7a['isEditMode']&&this['_updateHasDirtyComment'](),_0x4d6b7a['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x5ab365=>_0x5ab365['isEditMode']);}['_rearrangeCollapse'](){const _0x26a721=function(_0x4e6749){const _0x4c1531=new _0x5db265();for(const _0x18c9dc of _0x4e6749)_0x4c1531['add'](_0x18c9dc);return _0x4c1531;}(this['commentViews']),_0x4ca3cc=this['_collapsedCommentsView']['count'];for(let _0x4cae4b=0x1;_0x4cae4b<=_0x4ca3cc;_0x4cae4b++)_0x26a721['remove'](0x1);for(const _0xac5adf of _0x26a721)_0xac5adf['collapse']();_0x4ca3cc>0x0&&_0x26a721['add'](this['_collapsedCommentsView'],0x1),ns(_0x2936d6(Array['from'](this['visibleViews']),Array['from'](_0x26a721)),this['visibleViews'],_0x26a721);}['_rearrangeExpand'](){ns(_0x2936d6(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x134c53 of this['visibleViews'])_0x134c53['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2f1391=>{this['focusTracker']['add'](_0x2f1391['element']),this['keystrokes']['listenTo'](_0x2f1391['element']);}),this['commentViews']['on']('change',(_0x309d6d,_0x4f749a)=>{for(const _0x60dc7d of _0x4f749a['removed'])this['focusTracker']['remove'](_0x60dc7d['element']),this['keystrokes']['stopListening'](_0x60dc7d['element']);for(const _0x2fd517 of Array['from'](_0x4f749a['added'])['reverse']())this['focusTracker']['add'](_0x2fd517['element']),this['keystrokes']['listenTo'](_0x2fd517['element']);});}}function ns(_0xe7231a,_0x2e44e1,_0x508e5b){let _0x5f5b84=0x0;for(const _0x733b0d of _0xe7231a)switch(_0x733b0d){case'insert':_0x2e44e1['add'](_0x508e5b['get'](_0x5f5b84),_0x5f5b84),_0x5f5b84++;break;case'delete':_0x2e44e1['remove'](_0x5f5b84);break;case'equal':_0x5f5b84++;}}class oe extends kt{constructor(_0x4f32c2){super(_0x4f32c2);const _0x4bec07=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4bec07['to']('contextValue',_0x59cc01=>N(_0x4f32c2,'THREAD_CONTEXT_LABEL',_0x59cc01)),'tabindex':-0x1},'children':[{'text':_0x4bec07['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x275509,_0xf445e9){super(_0x275509);const _0x2b5f6c=this['bindTemplate'];this['_model']=_0xf445e9,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x290ee8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x35defd({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x5dd43e=>!!_0x5dd43e),this['bind']('contextValue')['to'](this['_model'],'context',_0x464a1b=>_0x464a1b&&_0x464a1b['value']?this['_trimContextValue'](_0x464a1b['value']):N(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x2b5f6c['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 _0x3aecfc=new _0x5281d3(this['locale']);return _0x3aecfc['label']=N(this['locale'],'Reopen'),_0x3aecfc['tooltip']=N(this['locale'],'Reopen'),_0x3aecfc['icon']=_0x3bdff5,_0x3aecfc['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1d8b4d=>!_0x1d8b4d),_0x3aecfc['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x57a42e,_0x52cb77)=>_0x57a42e&&_0x52cb77),_0x3aecfc['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x3aecfc;}['_trimContextValue'](_0x2694c1){if(_0x2694c1['length']<0x96)return _0x2694c1;const _0x1a1710=_0x2694c1['lastIndexOf']('\x20',0x93);return _0x2694c1['substring'](0x0,_0x1a1710>-0x1?_0x1a1710:0x93)+'...';}['_attachContextActions'](){const _0x2fc7ef=this['element']['querySelector']('.ck-context'),_0x5ea422=_0x2fc7ef['querySelector']('.ck-context__value');this['listenTo'](_0x2fc7ef,'mouseenter',()=>{_0x5ea422['offsetWidth']<_0x5ea422['scrollWidth']&&_0x2fc7ef['classList']['add']('overlay');}),this['listenTo'](_0x2fc7ef,'mouseleave',()=>{_0x2fc7ef['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x50f0f7 of this['focusables'])this['focusTracker']['add'](_0x50f0f7['element']),this['keystrokes']['listenTo'](_0x50f0f7['element']);}['_createContextView'](){const _0xe90e3f=new oe(this['locale']);return _0xe90e3f['bind']('contextValue')['to'](this),_0xe90e3f;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x15bb76,_0xde4fc3,_0x5a96f2,_0x2a7af6){super(_0x15bb76),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xde4fc3,this['_localUser']=_0x5a96f2,this['_config']=_0x2a7af6,this['commentThreadHeaderView']=new Xt(_0x15bb76,_0xde4fc3),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x15bb76,N(_0x15bb76,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x15bb76,_0xde4fc3,Object['assign']({'CommentView':this['_config']['CommentView']},_0x2a7af6)),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',(_0x284c7b,_0x4b16e3)=>_0x284c7b||!!_0x4b16e3),this['bind']('isUnlinked')['to'](_0xde4fc3,'unlinkedAt',_0x5a111e=>!!_0x5a111e),this['bind']('ariaLabel')['to'](this,'length',_0x10d1eb=>{const _0x5268ab=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x10d1eb,_0x5268ab]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x290ee8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x35defd({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5c70aa=>_0x5c70aa['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x2ac2b0=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x9dfc2c=_0x2ac2b0['commentInputView'];return _0x2ac2b0['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x9dfc2c,'value',(_0x5420f1,_0x25fb02,_0x2a88b3,_0x4face5,_0x2e16ca)=>!!_0x2e16ca||!!_0x4face5&&_0x2a88b3&&!_0x25fb02||_0x5420f1&&_0x2a88b3&&!_0x25fb02),_0x9dfc2c['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4f06dd,_0xfc3c72,_0x1d9080)=>{let _0x5812a4;return _0x5812a4=_0x1d9080&&_0xfc3c72?'Reply\x20to\x20reopen\x20discussion...':_0x4f06dd?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x5812a4);}),_0x9dfc2c['bind']('submitLabel')['to'](this,'length',_0x340aad=>N(this['locale'],_0x340aad?'Reply':'Comment')),_0x9dfc2c['on']('submit',(_0x237009,_0x129b21)=>{this['fire']('addComment',_0x129b21),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x9dfc2c['on']('cancel',()=>{this['focus']();}),_0x9dfc2c['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x9dfc2c['on']('cancel',_0x1c0697=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x1c0697['stop']());}),this['on']('change:isActive',(_0xf91f1,_0x4191f4,_0x1eb1d2)=>{_0x1eb1d2||this['length']||_0x9dfc2c['value']||this['fire']('removeCommentThread');}),_0x2ac2b0;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x48d379,_0x89274a,_0x4c64e6,_0x4d434e){super(_0x48d379,_0x89274a,_0x4c64e6,_0x4d434e),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x48d379,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x3475e4,_0xecaf7b,_0xacf08)=>{_0xacf08||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x5c2818,_0x10d0d2,_0x22b139)=>{_0x22b139&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x433091=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x433091['if']('isActive','ck-thread--active'),_0x433091['if']('isUnlinked','ck-thread--unlinked'),_0x433091['to']('actionIndicator',_0x4f036e=>_0x4f036e?'ck-thread--'+_0x4f036e:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x433091['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 _0x5d862b of this['commentsListView']['commentViews'])_0x5d862b['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x50842b}=this,_0x457bb8=this['commentsListView']['commentViews']['get'](0x0);_0x457bb8===this['_boundFirstCommentView']||_0x457bb8['isSystemComment']||(this['_boundFirstCommentView']=_0x457bb8,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x457bb8,'actionIndicator',_0xbceb2b=>'remove'===_0xbceb2b?'remove':null),_0x457bb8['placeholder']=N(_0x50842b,'Write\x20a\x20comment...'),_0x457bb8['removeButton']['on']('execute',_0x57fc62=>{_0x57fc62['stop'](),this['showConfirm'](N(_0x50842b,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x457bb8['focus']();}),_0x457bb8['actionBar']['add'](this['resolveButton'],0x0),_0x457bb8['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x569398=new _0x4525bb(this['locale']);return _0x569398['label']=N(this['locale'],'Resolve'),_0x569398['tooltip']=N(this['locale'],'Resolve'),_0x569398['icon']=_0xc9f2eb,_0x569398['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x569398['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3dab02=>!_0x3dab02),_0x569398['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2b5110,_0x15b8d0)=>_0x2b5110&&!_0x15b8d0),_0x569398['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x569398;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class is extends kt{constructor(_0x328b82){super(_0x328b82),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x7863bd,_0x3b2bcb,_0x1bcba8)=>{this['element']['innerHTML']=_0x1bcba8;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3f777e,_0x4981c8,_0x2116a8){super(_0x3f777e),this['_model']=_0x4981c8,this['_config']=_0x2116a8,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x4981c8,'content',_0x4981c8,'authoredAt',(_0x7acc00,_0x1d14a1)=>N(_0x3f777e,'COMMENT_ARIA_LABEL',[_0x4981c8['author']['name'],_0x2116a8['formatDateTime'](_0x1d14a1),new DOMParser()['parseFromString'](_0x7acc00,'text/html')['body']['textContent'],_0x4981c8['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x3f777e,N(_0x3f777e,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x47b0f9(),this['focusTracker']=new _0x290ee8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x35defd({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x541c3f=>_0x541c3f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):N(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):N(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x5092af=new is(this['locale']);return _0x5092af['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x2e60f6,_0x119b24)=>_0x119b24?ts(_0x2e60f6,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x2e60f6),_0x5092af;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x824ce9=new es(this['locale'],this['_config']['editorConfig']);return _0x824ce9['value']=this['_model']['content'],_0x824ce9['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x824ce9['submitLabel']=N(this['locale'],'Save'),_0x824ce9['on']('submit',(_0x363c9c,_0x204e13)=>{this['fire']('updateComment',this['_model']['id'],_0x204e13),this['switchToDisplayMode'](),this['focus']();}),_0x824ce9['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x824ce9['once']('editorReady',()=>{_0x824ce9['focus']();}),_0x824ce9['createEditor'](),_0x824ce9['delegate']('editorReady')['to'](this),_0x824ce9['delegate']('editorDestroyed')['to'](this),_0x824ce9;}['_setupKeyboardNavigation'](){const _0x5a24ae=this['element'];this['keystrokes']['listenTo'](_0x5a24ae);for(const _0x2c1c31 of this['focusables'])this['focusTracker']['add'](_0x2c1c31['element']),this['keystrokes']['listenTo'](_0x2c1c31['element']);this['focusables']['on']('change',(_0x39f0b1,_0x95ffdd)=>{for(const _0x3707d8 of _0x95ffdd['removed'])this['focusTracker']['remove'](_0x3707d8['element']),this['keystrokes']['stopListening'](_0x3707d8['element']);for(const _0x568fd0 of _0x95ffdd['added'])this['focusTracker']['add'](_0x568fd0['element']),this['keystrokes']['listenTo'](_0x568fd0['element']);}),this['keystrokes']['set']('enter',(_0x537542,_0x11f20b)=>{_0x5a24ae===_0x537542['target']&&(this['focusCycler']['focusFirst'](),_0x11f20b());}),this['keystrokes']['set']('esc',(_0x5c2f08,_0x12d51b)=>{_0x5a24ae!==_0x5c2f08['target']&&(this['focus'](),_0x12d51b());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x34b9db,_0x2505e6,_0x3d8345){super(_0x34b9db,_0x2505e6,_0x3d8345),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x34b9db,'Reply...')),this['bind']('authoredAt')['to'](_0x2505e6),this['bind']('resolvedAt')['to'](_0x2505e6),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 _0x5e6680(_0x34b9db,_0x2505e6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x2505e6,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x55ddd3=this['bindTemplate'],_0x5e6af2=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x55ddd3['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x55ddd3['to']('authoredAt',_0x309cb8=>this['_config']['formatDateTime'](_0x309cb8))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x55ddd3['if']('isEditMode','ck-comment__actions--hidden'),_0x55ddd3['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']&&_0x5e6af2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x55ddd3['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x55ddd3['if']('isEditMode','ck-comment--edit'),_0x55ddd3['if']('isSystemComment','ck-comment--info'),_0x55ddd3['to']('actionIndicator',_0x482c82=>_0x482c82?'ck-comment--'+_0x482c82:'')],'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':_0x5e6af2}]}]};}['_createEditButton'](){const _0x572d41=new _0x5281d3(this['locale']);return _0x572d41['label']=N(this['locale'],'Edit'),_0x572d41['icon']=_0x37b825,_0x572d41['withText']=!0x0,_0x572d41['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x572d41['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x44eb9b=>!_0x44eb9b),_0x572d41['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x572d41['on']('execute',()=>this['switchToEditMode']()),_0x572d41;}['_createRemoveButton'](){const _0x5f5299=new _0x5281d3(this['locale']);return _0x5f5299['label']=N(this['locale'],'Remove'),_0x5f5299['icon']=_0x411abd,_0x5f5299['withText']=!0x0,_0x5f5299['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x5f5299['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1021f2=>!_0x1021f2),_0x5f5299['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x5f5299['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x5f5299;}['_createDropdown'](){const _0x67a71f=_0x2fb663(this['locale'],_0x4d79c5),_0x18ec07=_0x67a71f['panelView']['children'],_0x205f44=new _0x3b923b(this['locale']),_0x9f6d82=_0x67a71f['bindTemplate'];_0x21e7e8(_0x67a71f,()=>this['items']['find'](_0x21074a=>_0x21074a['isVisible'])),_0x67a71f['extendTemplate']({'attributes':{'class':[_0x9f6d82['if']('isVisible','ck-hidden',_0x407bef=>!_0x407bef)]}});const _0x5ba472=(_0x31252d,_0x5a0fb7=-0x1)=>{const _0x580d0d=new _0x8d14(this['locale']);_0x580d0d['children']['add'](_0x31252d);const _0x545df0=_0x5a0fb7>-0x1?_0x5a0fb7:_0x205f44['items']['length'];_0x205f44['items']['add'](_0x580d0d,_0x545df0);const _0xc46f4d=Array['from'](this['items']);_0x67a71f['unbind']('isEnabled','isVisible'),_0x67a71f['bind']('isEnabled')['toMany'](_0xc46f4d,'isEnabled',(..._0x4aca2b)=>_0x4aca2b['some'](_0x3dce7d=>_0x3dce7d)),_0x67a71f['bind']('isVisible')['toMany'](_0xc46f4d,'isVisible',(..._0x1cfc4b)=>_0x1cfc4b['some'](_0x303073=>_0x303073));};_0x67a71f['panelPosition']='sw',_0x67a71f['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x3dd93e});for(const _0x17706f of this['items'])_0x5ba472(_0x17706f);return _0x18ec07['add'](_0x205f44),_0x67a71f['listenTo'](this['items'],'add',(_0x2cc13c,_0x580460,_0x26ab4f)=>{_0x5ba472(_0x580460,_0x26ab4f);}),_0x67a71f['listenTo'](this['items'],'remove',(_0x2746f1,_0x3cfc9f,_0x324ba2)=>{_0x205f44['items']['remove'](_0x324ba2);}),_0x67a71f;}['_attachActions'](_0x160ee2,_0x4272cc){const _0x1e916f=_0x160ee2&&_0x160ee2['element'];_0x1e916f&&(this['listenTo'](_0x1e916f,'mouseenter',()=>this['actionIndicator']=_0x4272cc),this['listenTo'](_0x1e916f,'focus',()=>this['actionIndicator']=_0x4272cc),this['listenTo'](_0x1e916f,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x1e916f,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x5564ae=super['_createCommentInputView']();return _0x5564ae['bind']('placeholder')['to'](this),_0x5564ae;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x1b4d55){const _0x22e885=Dt(_0x1b4d55,0x1e),_0x2169c2=new MutationObserver(_0x16f670=>{for(const _0x5d4d81 of _0x16f670)('attributes'==_0x5d4d81['type']&&'class'==_0x5d4d81['attributeName']||'childList'==_0x5d4d81['type']||'characterData'==_0x5d4d81['type'])&&_0x22e885();});return{'attach'(_0x36d859){_0x2169c2['observe'](_0x36d859,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x2169c2['disconnect'](),_0x22e885['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x44e5ac,_0xd9aa65){super(_0x44e5ac),this['id']=_0xb5ba6(),this['focusTracker']=new _0x290ee8(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x15f3ef,_0xccaf27)=>this['fire']('Esc',_0xccaf27)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=xt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0xd9aa65),this['mainView']=_0xd9aa65;const _0x219bf6=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x219bf6['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 _0x382db5=this['element']['clientHeight'];_0x382db5&&(this['height']=_0x382db5);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x478ae2(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x1f0ae7,target:_0x5a650c,type:_0x2cd114,isVisible:_0x2e96b4=!0x0}){super(),this['view']=_0x1f0ae7,this['view']['element']||this['view']['render'](),this['_type']=_0x2cd114,this['_target']=_0x5a650c,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x5db265([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x517e9e,_0x5db69a)=>{this['view']['focusTracker']['add'](_0x5db69a);}),this['focusableElements']['on']('remove',(_0x1602e3,_0x3ec4b7)=>{this['view']['focusTracker']['remove'](_0x3ec4b7);}),this['set']('isVisible',_0x2e96b4);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x64c082=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x64c082),_0x64c082;}get['targetRect'](){const _0x19395a=this['target'];if(null===_0x19395a)return null;if(_0x19395a instanceof _0x5ba026)return _0x19395a;const _0x3a2200=_0x19395a['filter'](_0x433267=>function(_0x5ab4fe){const _0x57e89c=_0x5ab4fe['offsetParent'];if(_0x57e89c)return!0x0;const _0x5384d2=_0x5ab4fe['getClientRects']()['item'](0x0);return!!_0x5384d2;}(_0x433267));return 0x0===_0x3a2200['length']?null:new _0x5ba026(_0x3a2200[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3c0e14){this['view']['isActive']=_0x3c0e14,this['view']['mainView']['isActive']=_0x3c0e14;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x4bb58c){if(!(null===_0x4bb58c||_0x4bb58c instanceof _0x5ba026||Array['isArray'](_0x4bb58c)&&_0x4bb58c['every'](_0x2da8db=>fi(_0x2da8db))))throw new _0x50bda('annotation-invalid-target',null,{'target':_0x4bb58c});}['_getNormalizedTarget'](){const _0x5ecdd1='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x5ecdd1)?[_0x5ecdd1]:_0x5ecdd1;}}function fi(_0x48d25a){return null!==_0x48d25a&&'object'==typeof _0x48d25a&&'nodeType'in _0x48d25a&&0x1===_0x48d25a['nodeType'];}class S extends _0x5db265{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x2742af=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x290ee8(),this['_focusTracker']['on']('change:isFocused',(_0x46bb58,_0x5e5d43,_0x2a1222)=>{_0x2a1222||this['fire']('blur');});for(const _0x5d3333 of _0x2742af)this['add'](_0x5d3333);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x47275a){if(this['has'](_0x47275a))throw new _0x50bda('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x47275a['innerView'],_0x47275a),this['_viewToAnnotation']['set'](_0x47275a['view'],_0x47275a);for(const _0x254a07 of _0x47275a['focusableElements'])this['_focusTracker']['add'](_0x254a07);this['listenTo'](_0x47275a['focusableElements'],'add',(_0x4123d9,_0x15aea7)=>{this['_focusTracker']['add'](_0x15aea7);}),this['listenTo'](_0x47275a['focusableElements'],'remove',(_0x5594d5,_0x3a8bcd)=>{this['_focusTracker']['remove'](_0x3a8bcd);}),this['listenTo'](_0x47275a['view']['focusTracker'],'change:isFocused',(_0x200232,_0x590b55,_0x3e9ab6)=>{_0x3e9ab6&&this['fire']('focus',_0x47275a);}),_0x47275a['updateTargetRect']();const _0x45068c=this['_getOrderInContent'](_0x47275a['view']['targetRect']);return super['add'](_0x47275a,_0x45068c);}['remove'](_0x4b6a00){if(!this['has'](_0x4b6a00))throw new _0x50bda('annotationcollection-not-existing-item',null);this['stopListening'](_0x4b6a00['view']['focusTracker']),this['stopListening'](_0x4b6a00['focusableElements']);for(const _0x2cbe6c of _0x4b6a00['focusableElements'])this['_focusTracker']['remove'](_0x2cbe6c);return this['_viewToAnnotation']['delete'](_0x4b6a00['view']),this['_innerViewToAnnotation']['delete'](_0x4b6a00['innerView']),super['remove'](_0x4b6a00);}['getByInnerView'](_0xc56d8d){return this['_innerViewToAnnotation']['get'](_0xc56d8d);}['getByView'](_0x152722){return this['_viewToAnnotation']['get'](_0x152722);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x36fe97 of this)_0x36fe97['updateTargetRect']();this['_sort']();}['_sort'](){const _0x10bb47=Array['from'](this)['sort']((_0x5b33f1,_0x3269a0)=>w(_0x5b33f1['view']['targetRect'],_0x3269a0['view']['targetRect']));for(let _0x390454=_0x10bb47['length']-0x1;_0x390454>0x0;_0x390454--){const _0x5e6e2c=_0x10bb47[_0x390454];_0x390454!==this['getIndex'](_0x5e6e2c)&&(this['remove'](_0x5e6e2c),this['add'](_0x5e6e2c));}}['_getOrderInContent'](_0x4d2d9e){let _0x3fe2b1=0x0;if(!_0x4d2d9e)return this['length'];for(const _0x55203f of this){const _0x218e15=_0x55203f['view']['targetRect'];if(_0x218e15){if(w(_0x4d2d9e,_0x218e15)<0x0)return _0x3fe2b1;_0x3fe2b1++;}}return _0x3fe2b1;}}function v({source:_0x121a34,target:_0x357ac8,filter:_0x42dcb7}){for(const _0x1d7ce3 of _0x121a34)_0x42dcb7(_0x1d7ce3)&&_0x357ac8['add'](_0x1d7ce3);_0x357ac8['listenTo'](_0x121a34,'add',(_0x313086,_0x10ddd4)=>{_0x42dcb7(_0x10ddd4)&&_0x357ac8['add'](_0x10ddd4);}),_0x357ac8['listenTo'](_0x121a34,'remove',(_0x45eedc,_0x2dcc69)=>{_0x357ac8['has'](_0x2dcc69)&&_0x357ac8['remove'](_0x2dcc69);});}function w(_0x4da30f,_0x158933){if(null===_0x4da30f&&null===_0x158933)return 0x0;if(null===_0x4da30f)return-0x1;if(null===_0x158933)return 0x1;const _0x117e5f=_0x4da30f['top']-_0x158933['top'];return 0x0==_0x117e5f?_0x4da30f['left']-_0x158933['left']:_0x117e5f;}class y extends _0xdc4a0a{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x256d98){if(super(_0x256d98),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x256d98 instanceof _0x210304){const _0xb0e94e=_0x256d98['locale'];_0x256d98['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0xb0e94e,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0xb0e94e,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0xb0e94e,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0xb0e94e,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0xb0e94e,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0xb0e94e,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0xb0e94e,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x43302f){this['collection']['add'](_0x43302f);}['remove'](_0x34e4ce){this['collection']['remove'](_0x34e4ce),_0x34e4ce['destroy']();}['refreshVisibility'](){for(const _0x27fd4b of this['collection'])_0x27fd4b['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x483a73){return this['collection']['getByInnerView'](_0x483a73);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x2efb28 of this['collection'])_0x2efb28['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x792c9e){this['fire']('_activateAnnotation',_0x792c9e);}['createAnnotation'](_0x48b65d){return new T(_0x48b65d);}['createAnnotationView'](_0x23cf14,_0x3b7f69){return new E(_0x23cf14,_0x3b7f69);}['_addActiveAnnotation'](_0x5d169b){const _0x3b4478=new Set(this['activeAnnotations']);_0x3b4478['add'](_0x5d169b),this['activeAnnotations']=_0x3b4478;}['_removeActiveAnnotation'](_0x2de21c){const _0x3436af=new Set(this['activeAnnotations']);_0x3436af['delete'](_0x2de21c),this['activeAnnotations']=_0x3436af;}['_bindAnnotationsToVisibleAnnotations'](){const _0x517a73=this['collection'],_0x278ecb=this['_visibleAnnotations'];function _0x2ba23e(_0x1790bc){const _0x1fc8f6=_0x1790bc['source'];_0x1fc8f6['isVisible']&&!_0x278ecb['has'](_0x1fc8f6)?_0x278ecb['add'](_0x1fc8f6):!_0x1fc8f6['isVisible']&&_0x278ecb['has'](_0x1fc8f6)&&_0x278ecb['remove'](_0x1fc8f6),_0x1fc8f6['view']['focusTracker']['remove'](_0x1fc8f6['view']['element']),_0x1fc8f6['view']['focusTracker']['add'](_0x1fc8f6['view']['element']);}this['listenTo'](_0x517a73,'add',(_0x3c6de6,_0xfa5f9d)=>{_0xfa5f9d['isVisible']&&_0x278ecb['add'](_0xfa5f9d),this['listenTo'](_0xfa5f9d,'change:isVisible',_0x2ba23e);}),this['listenTo'](_0x517a73,'remove',(_0x52bdce,_0x4d3fd7)=>{_0x278ecb['has'](_0x4d3fd7)&&_0x278ecb['remove'](_0x4d3fd7),this['stopListening'](_0x4d3fd7,'change:isVisible',_0x2ba23e);});}['_setupEnterAnnotationKeystroke'](){const _0x29fa1e=_0x54833b=>{_0x54833b['on']('ready',()=>{_0x54833b['keystrokes']['set'](_0x5af35e,(_0x2fd039,_0x306655)=>{const _0x55e06d=_0x306a8b(this['activeAnnotations']['values']());_0x55e06d&&(_0x55e06d['view']['focus'](),_0x306655());});});};this['context']instanceof _0x210304?_0x29fa1e(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x553d5a,_0x46aedb)=>{_0x29fa1e(_0x46aedb);});}['_setupEscapeAnnotationHandling'](){const _0x27987e=_0x47adb0=>{const _0x411a91=_0x47adb0['source'],_0x21470a=[];let _0x325235;if(Array['isArray'](_0x411a91['target'])){_0x325235=_0x411a91['target'][0x0],this['context']instanceof _0x210304?_0x21470a['push'](this['context']):this['context']['editors']&&_0x21470a['push'](...this['context']['editors']);for(const _0x5ae413 of _0x21470a)for(const _0x43790a of _0x5ae413['editing']['view']['domRoots']['values']())if(_0x43790a['contains'](_0x325235))return void _0x5ae413['editing']['view']['focus']();_0x325235['focus']();}};this['listenTo'](this['collection'],'add',(_0x53e58f,_0x1a0548)=>{this['listenTo'](_0x1a0548,'escape',_0x27987e,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x40c443,_0x5e9094)=>{this['stopListening'](_0x5e9094,'escape',_0x27987e);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0xdc4a0a{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x394bd8){super(_0x394bd8),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x494a0b=this['context']['config'];_0x494a0b['define']('comments.maxCommentsWhenCollapsed',0x2),_0x494a0b['define']('comments.maxThreadTotalWeight',0x1f4),_0x494a0b['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x494a0b['define']('comments.CommentThreadView',gt),_0x494a0b['define']('comments.CommentView',Tt),_0x494a0b['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x123a2=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x485756,_0x2db044)=>this['_addCommentThread'](_0x2db044)),this['on']('submitCommentThread',(_0x39afa6,_0x52ce14)=>this['_submitCommentThread'](_0x52ce14)),this['on']('resolveCommentThread',(_0x598297,_0x5e68b1)=>this['_resolveCommentThread'](_0x5e68b1)),this['on']('resolveCommentThread',(_0xb596be,_0x55e4ce)=>this['_updateActiveAnnotation'](_0x55e4ce),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x245655,_0x4781c4)=>this['_reopenCommentThread'](_0x4781c4)),this['on']('reopenCommentThread',(_0x98c853,_0x513e76)=>this['_updateActiveAnnotation'](_0x513e76),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x14be5c,_0x21a132)=>this['_removeCommentThread'](_0x21a132)),this['on']('updateCommentThread',(_0x4b1db1,_0x5a1b77)=>this['_updateCommentThread'](_0x5a1b77)),this['on']('updateCommentThread',(_0x22835f,_0x1f0375)=>this['_updateActiveAnnotation'](_0x1f0375),{'priority':'lowest'}),this['on']('addComment',(_0x26103d,_0x339341)=>this['_addComment'](_0x339341)),this['on']('updateComment',(_0x1fb3dc,_0x57f28d)=>this['_updateComment'](_0x57f28d)),this['on']('removeComment',(_0x4ced00,_0xb12ea1)=>this['_removeComment'](_0xb12ea1)),this['on']('addComment',(_0x38e949,{threadId:_0x5f5622,isFromAdapter:_0x50b483})=>{if(_0x50b483)return;const _0x454fdd=this['getCommentThread'](_0x5f5622),_0x2199ed=_0x454fdd&&this['_threadToController']['get'](_0x454fdd);_0x2199ed&&_0x2199ed['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x123a2,'change:activeAnnotations',(_0x1a5309,_0x42b985,_0x1f7651)=>{const _0x3e0d18=Array['from'](_0x1f7651)['map'](_0x5cca7e=>this['_viewToController']['get'](_0x5cca7e['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x3e0d18?_0x3e0d18['model']:null;});}set['adapter'](_0x563501){if(this['_adapter'])throw new _0x50bda('commentsrepository-adapter-already-set');this['_adapter']=_0x563501;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0xe59a5a=_t,threadId:_0x453c3f=_0xb5ba6(),comments:_0x2ee6ec=[],unlinkedAt:_0x347940=null,resolvedAt:_0x1281b0=null,resolvedBy:_0x52c17d=null,target:_0xe4526f=null,context:_0x4de7cf=null,attributes:_0x8bf41b={},isResolvable:_0x1a9147=!0x0,isSubmitted:_0x1cd095=!0x1,isFromAdapter:_0x31925f=!0x1}={}){return this['fire'](Nt('addCommentThread',_0xe59a5a),{'channelId':_0xe59a5a,'threadId':_0x453c3f,'comments':_0x2ee6ec,'unlinkedAt':_0x347940,'resolvedAt':_0x1281b0,'resolvedBy':_0x52c17d,'target':_0xe4526f,'context':_0x4de7cf,'attributes':_0x8bf41b,'isFromAdapter':_0x31925f,'isResolvable':_0x1a9147,'isSubmitted':_0x1cd095}),this['getCommentThread'](_0x453c3f);}['openNewCommentThread']({channelId:_0x2eb5cb=_t,threadId:_0x46c670=_0xb5ba6(),target:_0x59a37a,context:_0x5dd0cc=null,isResolvable:_0xbc34d0=!0x0}){if(this['_readOnlyChannels']['has'](_0x2eb5cb)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x59a37a)throw new _0x50bda('commentsrepository-missing-target');const _0x3d4cb6=this['addCommentThread']({'channelId':_0x2eb5cb,'threadId':_0x46c670,'target':_0x59a37a,'context':_0x5dd0cc,'isResolvable':_0xbc34d0});if(!_0x3d4cb6)return null;const _0x56d352=this['_threadToController']['get'](_0x3d4cb6),_0x5278d1=_0x56d352['view']['commentThreadInputView']['commentInputView'],_0x5520ee=this['context']['plugins']['get'](y),_0x11dd51=_0x5520ee['getByInnerView'](_0x56d352['view']);return _0x5520ee['activate'](_0x11dd51),_0x5278d1['once']('editorReady',()=>_0x5278d1['focus']()),_0x3d4cb6;}['hasCommentThread'](_0x4d1c3b){if('string'!=typeof _0x4d1c3b)throw new _0x50bda('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x4d1c3b);}['updateCommentThread']({channelId:_0x22b90a=_t,threadId:_0x1bca6b,context:_0x162f81,unlinkedAt:_0x419d87,attributes:_0xdfeba0,isFromAdapter:_0x3cade=!0x1}){return this['fire'](Nt('updateCommentThread',_0x22b90a),{'channelId':_0x22b90a,'threadId':_0x1bca6b,'context':_0x162f81,'unlinkedAt':_0x419d87,'attributes':_0xdfeba0,'isFromAdapter':_0x3cade}),this['getCommentThread'](_0x1bca6b);}['getCommentThread'](_0x3a92c1){if('string'!=typeof _0x3a92c1)throw new _0x50bda('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x3a92c1);}['fetchCommentThread']({channelId:_0x4ec907,threadId:_0x339b22}={}){const _0x340ca5=this['getCommentThread'](_0x339b22);if(_0x340ca5)return Promise['resolve'](_0x340ca5);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x50bda('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x4ec907,'threadId':_0x339b22})['then'](_0x438b3c=>this['hasCommentThread'](_0x339b22)?this['getCommentThread'](_0x339b22):_0x438b3c?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x4ec907},_0x438b3c)):void 0x0)['catch'](_0x77b9ad=>{throw console['error'](_0x77b9ad),new _0x50bda('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x475d1b,skipNotAttached:_0x5d6810=!0x1,skipEmpty:_0x4f8e35=!0x1,toJSON:_0x36f7c4=!0x1}={}){const _0x4619b6=[];for(const _0x3bdc84 of this['_threads']['values']())_0x475d1b&&_0x3bdc84['channelId']!==_0x475d1b||_0x5d6810&&!_0x3bdc84['isAttached']||_0x4f8e35&&0x0===_0x3bdc84['length']||_0x4619b6['push'](_0x3bdc84);return _0x36f7c4?_0x4619b6['map'](_0x5d6b17=>_0x5d6b17['toJSON']()):_0x4619b6;}['getAnnotationForCommentThread'](_0x199425){const _0x2710c0=this['_threadToController']['get'](_0x199425);if(!_0x2710c0)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x2710c0['view'])||null;}['getCommentThreadForAnnotation'](_0x126496){const _0x3fca8e=this['_viewToController']['get'](_0x126496['innerView']);return _0x3fca8e?_0x3fca8e['model']:null;}['setActiveCommentThread'](_0x46e36b){const _0x45380d=this['context']['plugins']['get'](y);if(!_0x46e36b)return void(this['activeCommentThread']&&_0x45380d['deactivateAll']());const _0x250819=this['getCommentThread'](_0x46e36b);if(!_0x250819)throw new _0x50bda('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x46e36b});if(!this['_threadToController']['has'](_0x250819))throw new _0x50bda('commentsrepository-active-not-attached',null,{'threadId':_0x46e36b});const _0x4b3fbc=_0x45380d['getByInnerView'](this['_threadToController']['get'](_0x250819)['view']);_0x45380d['activate'](_0x4b3fbc);}['switchReadOnly'](_0x5d9512,_0x18ba04){_0x5d9512?this['_readOnlyChannels']['add'](_0x18ba04):this['_readOnlyChannels']['delete'](_0x18ba04),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x460e08){return this['_readOnlyChannels']['has'](_0x460e08)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x590d20,_0x1bfeea){return new vt(_0x590d20,_0x1bfeea);}['setPermissions'](_0x31da02,_0x4454f6=_t){this['_permissions']['set'](_0x4454f6,_0x31da02),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x534f3a=_t){return this['_permissions']['has'](_0x534f3a)?this['_permissions']['get'](_0x534f3a):bt;}['_addCommentThread']({channelId:_0x88f754,threadId:_0x36e399,comments:_0x4686f2,unlinkedAt:_0x53030e,resolvedAt:_0x532e60,resolvedBy:_0x1a24d3,target:_0x3612b1,context:_0x51861f,attributes:_0x3c8f43,isFromAdapter:_0x51b2ce,isResolvable:_0x3482d6,isSubmitted:_0x2f676d}){if('string'!=typeof _0x36e399)throw new _0x50bda('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x36e399});if(this['hasCommentThread'](_0x36e399))throw new _0x50bda('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x36e399});const _0x44aebd=new pi(this,{'channelId':_0x88f754,'id':_0x36e399,'context':_0x51861f,'attributes':_0x3c8f43,'unlinkedAt':_0x53030e,'resolvedAt':_0x532e60,'resolvedBy':_0x1a24d3?this['context']['plugins']['get'](it)['getUser'](_0x1a24d3):null,'isResolvable':_0x3482d6,'isSubmitted':_0x2f676d||_0x51b2ce});this['_threads']['set'](_0x36e399,_0x44aebd);for(const _0xbbb637 of _0x4686f2)_0x44aebd['_add'](this['_createNewComment']({'threadId':_0x36e399,..._0xbbb637}));return _0x3612b1&&_0x44aebd['attachTo'](_0x3612b1),_0x51b2ce||!_0x44aebd['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x88f754,'threadId':_0x36e399});}['_submitCommentThread']({channelId:_0xc43bd1,threadId:_0x685f12}){if(!this['hasCommentThread'](_0x685f12))throw new _0x50bda('commentsrepository-missing-comment-thread',this);const _0x2e0552=this['getCommentThread'](_0x685f12);if(_0x2e0552['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x333b42,comments:_0x154396,resolvedAt:_0x2a4c9d,resolvedBy:_0x2eb4bb,context:_0x84ceee,attributes:_0x48f6e6}=_0x2e0552,_0x6baf2d=this['context']['plugins']['get']('PendingActions'),_0x28df23=_0x6baf2d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0xc43bd1,'threadId':_0x333b42,'comments':_0x154396['map'](_0x4e3290=>_0x4e3290['toJSON']()),'resolvedAt':_0x2a4c9d,'resolvedBy':_0x2eb4bb?_0x2eb4bb['id']:_0x2eb4bb,'context':_0x84ceee,'attributes':_0x48f6e6})['then'](({comments:_0x24eb16})=>{_0x6baf2d['remove'](_0x28df23);for(const _0x3f3316 of _0x24eb16)this['_updateComment']({'channelId':_0xc43bd1,'threadId':_0x685f12,'commentId':_0x3f3316['commentId'],'createdAt':_0x3f3316['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x444912=>{throw console['error'](_0x444912),new _0x50bda('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x19a4e0,target:_0x43be5f}){const _0xa7b77b=this['getCommentThread'](_0x19a4e0);if(!_0xa7b77b)throw new _0x50bda('commentsrepository-attach-missing-comment-thread',this);const _0x1a5672=this['context']['plugins']['get']('PendingActions'),_0x158ecf=this['context']['plugins']['get'](y),_0x50a70f=this['_createCommentThreadView'](_0xa7b77b),_0x59b3e5=new vt(_0xa7b77b,_0x50a70f);let _0x104e1f=null;_0x50a70f['on']('change:isDirty',(_0x5857f7,_0x30c2cb,_0x24a14d)=>{_0x24a14d?_0x104e1f=_0x1a5672['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x104e1f&&(_0x1a5672['remove'](_0x104e1f),_0x104e1f=null);}),this['_threadToController']['set'](_0xa7b77b,_0x59b3e5),this['_viewToController']['set'](_0x50a70f,_0x59b3e5);const _0x3d71c4=new E(this['context']['locale'],_0x50a70f);_0x3d71c4['bind']('length')['to'](_0x50a70f),_0x3d71c4['bind']('isDirty')['to'](_0x50a70f,'isDirty',_0x50a70f,'length',(_0x57f40f,_0x36df69)=>_0x57f40f||!_0x36df69),_0x3d71c4['bind']('isActive')['to'](_0x50a70f),_0x3d71c4['type']='comment';const _0x49a923=new T({'view':_0x3d71c4,'target':_0x43be5f,'type':'comment','isVisible':!_0xa7b77b['archivedAt']&&!!('function'==typeof _0x43be5f?_0x43be5f():_0x43be5f)});return _0x50a70f['on']('escape',()=>{_0x49a923['fire']('escape');}),this['_bindAnnotationToEditors'](_0x50a70f,_0x49a923),_0x158ecf['add'](_0x49a923),_0x49a923;}['_bindAnnotationToEditors'](_0x23f430,_0x4de05e){this['listenTo'](_0x23f430,'editorReady',(_0x4ff1a1,_0x5e3510)=>{const _0x510da6=_0x5e3510['ui']['view']['body']['bodyCollectionContainer'];_0x4de05e['focusableElements']['add'](_0x510da6),this['context']instanceof _0x210304&&this['context']['ui']['focusTracker']['add'](_0x510da6);},{'priority':'highest'}),this['listenTo'](_0x23f430,'editorDestroyed',(_0xcef552,_0x2d31d1)=>{const _0x5c2760=_0x2d31d1['ui']['view']['body']['bodyCollectionContainer'];_0x4de05e['focusableElements']['has'](_0x5c2760)&&_0x4de05e['focusableElements']['remove'](_0x5c2760),this['context']instanceof _0x210304&&this['context']['ui']['focusTracker']['remove'](_0x5c2760);});}['_unbindEditors'](_0x4cf817){this['stopListening'](_0x4cf817,'editorReady'),this['stopListening'](_0x4cf817,'editorDestroyed');}['_createCommentThreadView'](_0x55ceeb){const _0xc8842c=this['context']['plugins']['get'](it),{config:_0x34f98e,locale:_0x3dcc67}=this['context'],_0x5aa241=pt(_0x34f98e['get']('locale'),_0x3dcc67);return new(0x0,(_0x34f98e['get']('comments'))['CommentThreadView'])(_0x3dcc67,_0x55ceeb,_0xc8842c['me'],{'editorConfig':{..._0x34f98e['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x34f98e['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x34f98e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x34f98e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x34f98e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5aa241,'CommentView':_0x34f98e['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x16d4d2,channelId:_0x48cf90,resolvedAt:_0x194ef0,resolvedBy:_0x4b0044,isFromAdapter:_0x5658b2}){if(!this['hasCommentThread'](_0x16d4d2))throw new _0x50bda('commentsrepository-missing-comment-thread',null,{'threadId':_0x16d4d2});const _0x5b1b9d=this['getCommentThread'](_0x16d4d2);if(_0x5b1b9d['isResolved'])throw new _0x50bda('commentsrepository-resolved-comment-thread',null,{'threadId':_0x16d4d2});const _0x5d9e3e=this['context']['plugins']['get'](it);if(_0x5b1b9d['resolvedBy']=_0x5d9e3e['getUser'](_0x4b0044),_0x5b1b9d['resolvedAt']=_0x194ef0,_0x5658b2||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x574596=this['context']['plugins']['get']('PendingActions'),_0x21654e=_0x574596['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x48cf90,'threadId':_0x16d4d2})['then'](({resolvedAt:_0x736a66,resolvedBy:_0x3aec31})=>{_0x574596['remove'](_0x21654e),_0x5b1b9d['resolvedBy']['id']!==_0x3aec31&&(_0x5b1b9d['resolvedBy']=_0x5d9e3e['getUser'](_0x3aec31)),_0x5b1b9d['resolvedAt']=_0x736a66;})['catch'](_0x23bef8=>{throw console['error'](_0x23bef8),new _0x50bda('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x276471,channelId:_0x58e799,isFromAdapter:_0x2f467d}){if(!this['hasCommentThread'](_0x276471))throw new _0x50bda('commentsrepository-missing-comment-thread',null,{'threadId':_0x276471});const _0xd7c2a5=this['getCommentThread'](_0x276471);if(!_0xd7c2a5['isResolved'])throw new _0x50bda('commentsrepository-reopen-comment-thread',null,{'threadId':_0x276471});if(_0xd7c2a5['resolvedBy']=null,_0xd7c2a5['resolvedAt']=null,_0x2f467d||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x1f7a20=this['context']['plugins']['get']('PendingActions'),_0x3f087d=_0x1f7a20['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x58e799,'threadId':_0x276471})['then'](()=>_0x1f7a20['remove'](_0x3f087d))['catch'](_0xefce5a=>{throw console['error'](_0xefce5a),new _0x50bda('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x3a27eb,isFromAdapter:_0x1c9ae0}){const _0x412598=this['getCommentThread'](_0x3a27eb);if(!_0x412598)throw new _0x50bda('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x3a27eb),this['_threads']['delete'](_0x3a27eb),!_0x412598['isSubmitted']||_0x1c9ae0||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5b91f2=this['context']['plugins']['get']('PendingActions'),{channelId:_0x281562}=_0x412598,_0x4f74e1=_0x5b91f2['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x281562,'threadId':_0x3a27eb})['then'](()=>_0x5b91f2['remove'](_0x4f74e1))['catch'](_0x19fbeb=>{throw console['error'](_0x19fbeb),new _0x50bda('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x56d8c0,unlinkedAt:_0x46f2d9,context:_0x1fcabe,attributes:_0x17e836,isFromAdapter:_0x52224b}){if('string'!=typeof _0x56d8c0)throw new _0x50bda('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x56d8c0});if(!this['hasCommentThread'](_0x56d8c0))throw new _0x50bda('commentsrepository-missing-comment-thread',null,{'threadId':_0x56d8c0});const _0x9b604f=this['getCommentThread'](_0x56d8c0);let _0x18a6f1=!0x1;if(void 0x0!==_0x1fcabe&&_0x9b604f['context']!==_0x1fcabe&&(_0x9b604f['context']=_0x1fcabe,_0x18a6f1=!0x0),void 0x0!==_0x46f2d9&&_0x9b604f['unlinkedAt']!==_0x46f2d9&&(_0x9b604f['unlinkedAt']=_0x46f2d9,_0x18a6f1=!0x0),_0x17e836&&!At(_0x17e836,_0x9b604f['attributes'])&&(_0x9b604f['attributes']=_0x17e836,_0x18a6f1=!0x0),!_0x18a6f1)return Promise['resolve']();if(!_0x9b604f['isSubmitted']||_0x52224b||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x36069a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x206386}=_0x9b604f,_0x4e4bdd=_0x36069a['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x206386,'threadId':_0x56d8c0,'context':_0x1fcabe,'unlinkedAt':_0x46f2d9,'attributes':_0x17e836})['then'](()=>_0x36069a['remove'](_0x4e4bdd))['catch'](_0x21e6c5=>{throw console['error'](_0x21e6c5),new _0x50bda('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x3905a6){const _0x515bd1=this['context']['plugins']['get'](y),_0x250d0=this['getCommentThread'](_0x3905a6);if(_0x250d0['_isAttached']=!0x1,this['_threadToController']['has'](_0x250d0)){const _0x190c2f=this['_threadToController']['get'](_0x250d0),_0x128ebf=_0x190c2f['view'],_0x596e96=_0x515bd1['getByInnerView'](_0x128ebf);this['_threadToController']['delete'](_0x250d0),this['_viewToController']['delete'](_0x128ebf),_0x596e96&&_0x515bd1['remove'](_0x596e96),_0x190c2f['destroy'](),_0x128ebf['destroy']()['then'](()=>{this['_unbindEditors'](_0x128ebf);});}}['_updateActiveAnnotation']({threadId:_0x153995,resolvedAt:_0x128475,unlinkedAt:_0x4c73ca}){const _0x4b7e35=!!_0x128475,_0x49a8ad=this['context']['plugins']['get'](y),_0x51b3f3=this['getCommentThread'](_0x153995);if(this['_threadToController']['has'](_0x51b3f3)){const _0x33c3e0=this['_threadToController']['get'](_0x51b3f3)['view'],_0x13c841=_0x49a8ad['getByInnerView'](_0x33c3e0);_0x13c841&&(_0x4b7e35&&_0x49a8ad['_removeActiveAnnotation'](_0x13c841),_0x4c73ca?_0x13c841['isVisible']=!0x1:_0x13c841['refreshVisibility']());}}['_getExternalAuthor'](_0x2ce910){const _0x54f008=this['context']['plugins']['get'](it),_0x2a7c54=It('external:'+_0x2ce910),_0x5972d5=_0x54f008['getUser'](_0x2a7c54);return _0x5972d5||_0x54f008['addUser']({'id':_0x2a7c54,'name':_0x2ce910});}['_createNewComment']({threadId:_0x3812ca,commentId:_0x2f2281=_0xb5ba6(),content:_0xd6de38,authorId:_0x58f56b,createdAt:_0x350732,attributes:_0x19f466}){if('string'!=typeof _0x2f2281)throw new _0x50bda('commentsrepository-invalid-commentid');if('string'!=typeof _0x58f56b)throw new _0x50bda('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0xd6de38||!_0xd6de38['trim']())throw new _0x50bda('commentsrepository-invalid-comment-content');const _0x1e7a21=this['context']['plugins']['get'](it)['getUser'](_0x58f56b);if(!_0x1e7a21)throw new _0x50bda('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x58f56b});let _0x509132=null,_0x5c607d=_0x350732;return _0x19f466?.['@external']&&(_0x509132=this['_getExternalAuthor'](_0x19f466['@external']['authorName']),_0x5c607d=new Date(_0x19f466['@external']['createdAt'])),new wi(this,{'threadId':_0x3812ca,'id':_0x2f2281,'author':_0x509132||_0x1e7a21,'creator':_0x1e7a21,'content':_0xd6de38,'createdAt':_0x350732,'authoredAt':_0x5c607d,'attributes':_0x19f466});}['_addComment'](_0x9dd7b){let {threadId:_0xcad92d,content:_0x3a7b12,attributes:_0x5019aa,isFromAdapter:_0x239294}=_0x9dd7b;const _0x23e7c1=this['getCommentThread'](_0x9dd7b['threadId']);if(!_0x23e7c1)throw new _0x50bda('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x5231eb=this['_createNewComment'](_0x9dd7b),{id:_0x2592a8}=_0x5231eb;if(_0x23e7c1['_add'](_0x5231eb),_0x239294||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x23e7c1['isSubmitted'])return Promise['resolve']();const _0x419990=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1b8e79}=_0x23e7c1,_0xcbc2ca=_0x419990['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x5019aa||(_0x5019aa={}),this['adapter']['addComment']({'channelId':_0x1b8e79,'threadId':_0xcad92d,'commentId':_0x2592a8,'content':_0x3a7b12,'attributes':_0x5019aa})['then'](_0x108871=>{_0x419990['remove'](_0xcbc2ca),_0x108871&&this['_updateComment']({'channelId':_0x1b8e79,'threadId':_0xcad92d,'commentId':_0x2592a8,'createdAt':_0x108871['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x6294be=>{throw console['error'](_0x6294be),new _0x50bda('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x53f0d8,commentId:_0x29fb4c,content:_0x1d2b24,createdAt:_0x4f8bcc,attributes:_0x140b50,isFromAdapter:_0x4f33b9}){if(void 0x0!==_0x1d2b24&&('string'!=typeof _0x1d2b24||!_0x1d2b24['trim']()['length']))throw new _0x50bda('commentsrepository-update-comment-invalid-content');const _0x32a329=this['getCommentThread'](_0x53f0d8),_0x62aeed=_0x32a329['getComment'](_0x29fb4c);if(!_0x62aeed)throw new _0x50bda('commentsrepository-update-missing-comment',this);let _0x402279=!0x1;if(_0x1d2b24&&_0x1d2b24!==_0x62aeed['content']&&(_0x62aeed['isEditable']||_0x4f33b9)&&(_0x62aeed['content']=_0x1d2b24,_0x402279=!0x0),_0x4f8bcc&&_0x4f8bcc!==_0x62aeed['createdAt']&&(_0x62aeed['createdAt']=_0x4f8bcc,_0x62aeed['attributes']&&_0x62aeed['attributes']['@external']||(_0x62aeed['authoredAt']=_0x4f8bcc),_0x402279=!0x0),_0x140b50&&!At(_0x140b50,_0x62aeed['attributes'])&&(_0x62aeed['attributes']=_0x140b50,_0x402279=!0x0),!_0x402279)return Promise['resolve']();if(_0x32a329['fire']('commentUpdated'),_0x4f33b9||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x530cf4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x29bdef}=this['getCommentThread'](_0x62aeed['threadId']),_0xeaabf8=_0x530cf4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x29bdef,'threadId':_0x53f0d8,'commentId':_0x29fb4c,'content':_0x1d2b24,'attributes':_0x140b50})['then'](()=>_0x530cf4['remove'](_0xeaabf8))['catch'](_0xf04029=>{throw console['error'](_0xf04029),new _0x50bda('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x58ad89,commentId:_0x379753,isFromAdapter:_0x5c607e}){const _0x4921f0=this['getCommentThread'](_0x58ad89),_0x4a9c73=_0x4921f0['getComment'](_0x379753);if(!_0x4a9c73)throw new _0x50bda('commentsrepository-remove-missing-comment',this);if(_0x4921f0['_remove'](_0x4a9c73),_0x5c607e||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x341204=this['context']['plugins']['get']('PendingActions'),{channelId:_0x363600}=_0x4921f0,_0x20edab=_0x341204['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x363600,'threadId':_0x58ad89,'commentId':_0x379753})['then'](()=>_0x341204['remove'](_0x20edab))['catch'](_0xa4f53=>{throw console['error'](_0xa4f53),new _0x50bda('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x478ae2(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x163c05,_0xbdc5f2){super();const _0x48bed4=_0xbdc5f2['isResolvable'];this['channelId']=_0xbdc5f2['channelId'],this['id']=_0xbdc5f2['id'],this['comments']=new _0x5db265(),this['_repository']=_0x163c05,this['_isAttached']=!0x1,this['_isSubmitted']=_0xbdc5f2['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x163c05,'_permissions',_0x163c05,'_readOnlyChannels',()=>_0x163c05['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x163c05,'_permissions',()=>_0x163c05['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x163c05,'_permissions',()=>{const _0x25cbd8=_0x163c05['getPermissions'](this['channelId']);return _0x25cbd8['write']||_0x25cbd8['admin'];}),this['bind']('isResolvable')['to'](_0x163c05,'_permissions',()=>_0x48bed4&&_0x163c05['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0xbdc5f2['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x3356a6,_0x18e626)=>_0x3356a6?_0x18e626?_0x3356a6<_0x18e626?_0x3356a6:_0x18e626:_0x3356a6:_0x18e626),this['set']('unlinkedAt',_0xbdc5f2['unlinkedAt']||null),this['set']('resolvedAt',_0xbdc5f2['resolvedAt']||null),this['set']('resolvedBy',_0xbdc5f2['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x3c0a76=>!!_0x3c0a76),this['set']('attributes',_0xbdc5f2['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x87fe8e,_0xaafdba)=>_0x87fe8e+_0xaafdba['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x1ee6b4,id:_0x504645}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x1ee6b4),{'channelId':_0x1ee6b4,'threadId':_0x504645});}['setUnlinkedAt'](_0x3793bc){this['_update']({'unlinkedAt':_0x3793bc});}['resolve']({resolvedAt:_0x3a26c3=new Date(),resolvedBy:_0x137e9e='',isFromAdapter:_0xa308be=!0x1}={}){const _0x23b49d=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x31c79e,id:_0x38af09}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x31c79e),{'channelId':_0x31c79e,'threadId':_0x38af09,'resolvedAt':_0x3a26c3,'resolvedBy':_0x137e9e||_0x23b49d['id'],'isFromAdapter':_0xa308be});}['reopen']({isFromAdapter:_0x3b3095=!0x1}={}){const {channelId:_0x1ccb39,id:_0x7b1edc}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x1ccb39),{'channelId':_0x1ccb39,'threadId':_0x7b1edc,'isFromAdapter':_0x3b3095});}['setContext'](_0x3cc70f){this['context']||this['_update']({'context':_0x3cc70f});}['setAttribute'](_0x20d495,_0x4a7903){const _0x2ea5be=wt(this['attributes']);yt(_0x2ea5be,_0x20d495,_0x4a7903),this['_update']({'attributes':_0x2ea5be});}['removeAttribute'](_0x6e390c){const _0x10488d=wt(this['attributes']);Ct(_0x10488d,_0x6e390c),this['_update']({'attributes':_0x10488d});}['remove']({isFromAdapter:_0x4769eb=!0x1}={}){const {channelId:_0x63b82e,id:_0x391420}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x63b82e),{'channelId':_0x63b82e,'threadId':_0x391420,'isFromAdapter':_0x4769eb});}['attachTo'](_0x366c40){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x366c40});}['addComment'](_0x21000e){const {channelId:_0x57e695,id:_0xbd5fb1}=this;this['_repository']['fire'](Nt('addComment',_0x57e695,_0xbd5fb1),Object['assign']({'channelId':_0x57e695,'threadId':_0xbd5fb1},_0x21000e));}['getComment'](_0x538f9b){if('string'!=typeof _0x538f9b)throw new _0x50bda('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x538f9b});return this['comments']['get'](_0x538f9b);}['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'](_0x5a0d80=>_0x5a0d80['toJSON']()),'attributes':this['attributes']};}['_add'](_0x595982){return this['listenTo'](_0x595982,'change:authoredAt',()=>{const _0x3c3e69=this['_findOptimalIndex'](_0x595982),_0x45dbdb=this['comments'];_0x3c3e69-0x1!=_0x45dbdb['getIndex'](_0x595982)&&_0x3c3e69+0x1!=_0x45dbdb['getIndex'](_0x595982)&&(this['_remove'](_0x595982),this['_add'](_0x595982));}),this['comments']['add'](_0x595982,this['_findOptimalIndex'](_0x595982));}['_update'](_0x12dfa8){const {channelId:_0x6d232f,id:_0x4cf6aa}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x6d232f),{..._0x12dfa8,'channelId':_0x6d232f,'threadId':_0x4cf6aa});}['_remove'](_0x318e55){return this['stopListening'](_0x318e55),_0x318e55['destroy'](),this['comments']['remove'](_0x318e55);}['_findOptimalIndex'](_0x27d70f){const _0x100d34=this['comments']['find'](_0x227e9e=>new Date(_0x227e9e['authoredAt'])['getTime']()>new Date(_0x27d70f['authoredAt'])['getTime']());return _0x100d34?this['comments']['getIndex'](_0x100d34):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x478ae2(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x122262,_0x302709){super();const _0x2dc17f=_0x122262['context']['plugins']['get'](it)['me'],_0x1856c1=_0x122262['getCommentThread'](_0x302709['threadId']),_0xad07eb=0x0===_0x1856c1['comments']['length'],_0x3af23d=_0x2dc17f===_0x302709['author'];this['id']=_0x302709['id'],this['threadId']=_0x302709['threadId'],this['author']=_0x302709['author'],this['creator']=_0x302709['creator'],this['isExternal']=Boolean(_0x302709['attributes']&&_0x302709['attributes']['@external']),this['set']('content',_0x302709['content']),this['createdAt']=_0x302709['createdAt']||new Date(),this['set']('authoredAt',_0x302709['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x1856c1,'resolvedAt'),this['set']('attributes',_0x302709['attributes']||{}),this['bind']('isEditable')['to'](_0x122262,'_permissions',()=>{const _0x50b2c0=_0x122262['getPermissions'](_0x1856c1['channelId'])['write'],_0x58a0f9=_0x122262['getPermissions'](_0x1856c1['channelId'])['modifyAll'];return _0x3af23d&&_0x50b2c0||!_0x3af23d&&_0x58a0f9;}),this['bind']('isRemovable')['to'](_0x1856c1,'isRemovable',_0x122262,'_permissions',_0x471b5b=>{const _0x31cfeb=_0x122262['getPermissions'](_0x1856c1['channelId'])['write'],_0x32327a=_0x122262['getPermissions'](_0x1856c1['channelId'])['modifyAll'];return _0x3af23d&&_0x31cfeb||_0x471b5b&&_0xad07eb||!_0x3af23d&&_0x32327a&&!_0xad07eb;}),this['bind']('isReadOnly')['to'](_0x1856c1,'isReadOnly'),this['_repository']=_0x122262;}get['weight'](){return Math['max'](function(_0x247733){const _0x5512c5=document['createElement']('div');return _0x5512c5['innerHTML']=_0x247733,_0x5512c5['textContent']['length'];}(this['content']),0xc8);}['update'](_0xdedf08){const {threadId:_0x522781,id:_0x4ef1f3}=this;if(!this['_repository']['hasCommentThread'](_0x522781))throw new _0x50bda('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x2af426}=this['_repository']['getCommentThread'](_0x522781);this['_repository']['fire'](Nt('updateComment',_0x2af426,_0x522781),{'channelId':_0x2af426,'threadId':_0x522781,'commentId':_0x4ef1f3,..._0xdedf08});}['setAttribute'](_0x31c82a,_0x3a9726){const _0x29d41e=wt(this['attributes']);yt(_0x29d41e,_0x31c82a,_0x3a9726),this['update']({'attributes':_0x29d41e});}['removeAttribute'](_0x20b45a){const _0x315129=wt(this['attributes']);Ct(_0x315129,_0x20b45a),this['update']({'attributes':_0x315129});}['remove'](_0x4ed181={}){if(!_0x4ed181['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x1e12f4,id:_0xd3ed63}=this;if(!this['_repository']['hasCommentThread'](_0x1e12f4))throw new _0x50bda('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1ecd66}=this['_repository']['getCommentThread'](_0x1e12f4);this['_repository']['fire'](Nt('removeComment',_0x1ecd66,_0x1e12f4),{'channelId':_0x1ecd66,'threadId':_0x1e12f4,'commentId':_0xd3ed63,..._0x4ed181});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x5ed78c,..._0x544af8){for(const _0x5dcee7 of _0x544af8)void 0x0!==_0x5dcee7&&(_0x5ed78c+=':'+String(_0x5dcee7));return _0x5ed78c;}class ot extends _0x2982be{constructor(_0x27b29e){super(_0x27b29e),this['set']('hasContent',!0x1);}['refresh'](){const _0x54eda4=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x148018 of _0x54eda4['getRanges']())if(this['_hasContent'](_0x148018))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x5094d2=_0xb5ba6(),ranges:_0x3c775f,comment:_0x18a587}={}){const _0x18eca3=this['editor']['model'],_0x393d02=_0x3c775f??Array['from'](_0x18eca3['document']['selection']['getRanges']()),_0x2ed00c=[];for(const _0x32449b of _0x393d02)this['_hasContent'](_0x32449b)&&_0x2ed00c['push'](this['_trimToContent'](_0x32449b));if(!_0x2ed00c['length'])throw new _0x50bda('addcommentthreadcommand-incorrect-ranges',null);_0x18a587&&this['_createCommentThread'](_0x5094d2,_0x18a587),this['_createMarkersFromRanges'](_0x5094d2,_0x2ed00c,!!_0x18a587);}['_createMarkersFromRanges'](_0xe7f68f,_0x2c77af,_0x40bb60){this['editor']['model']['change'](_0x432c1d=>{for(const _0x322095 of _0x2c77af){const _0x365310=_0xb5ba6()['substr'](0x1,0x5),_0x4e37e8='comment:'+_0xe7f68f+':'+_0x365310;_0x432c1d['addMarker'](_0x4e37e8,{'range':_0x322095,'usingOperation':_0x40bb60,'affectsData':_0x40bb60});}});}['_createCommentThread'](_0x5e7a4b,_0x5d0ed1){const _0x47b343=this['editor']['plugins']['get']('CommentsRepository'),_0x469ff3=this['editor']['config']['get']('collaboration.channelId'),_0x394359=this['editor']['plugins']['get']('Users')['me'];if(!_0x394359)throw new _0x50bda('addcommentthreadcommand-user-not-found',null);_0x47b343['addCommentThread']({'threadId':_0x5e7a4b,'channelId':_0x469ff3,'comments':[{'authorId':_0x394359['id'],'content':_0x5d0ed1,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x471116){for(const _0x1ac2e4 of _0x471116['getItems']())if(this['_itemIsContent'](_0x1ac2e4))return!0x0;return!0x1;}['_itemIsContent'](_0x3712c0){return _0x3712c0['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x3712c0)&&!_0x3712c0['is']('element','tableCell');}['_trimToContent'](_0x49a255){const _0x2bdab2=_0x49461c=>!this['_itemIsContent'](_0x49461c['item']),_0x176397=_0x49a255['start']['getLastMatchingPosition'](_0x2bdab2),_0x1a0814=_0x49a255['end']['getLastMatchingPosition'](_0x2bdab2,{'direction':'backward'});return this['editor']['model']['createRange'](_0x176397,_0x1a0814);}}class b extends _0x44affe{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bb878){super(_0x2bb878),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x37ae66=this['editor'],_0x165fa4=_0x37ae66['model']['document']['selection'],_0x949b52=_0x1a15c5(()=>this['refreshSelectedViews'](),0xa);_0x165fa4['on']('change:range',(_0x3a441e,_0x18b90f)=>{_0x18b90f['directChange']&&(_0x949b52['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x37ae66['editing']['view']['document'],'change:isFocused',(_0x8725a2,_0x90699d,_0x297260)=>{_0x297260&&_0x949b52();}),this['listenTo'](_0x37ae66['ui']['focusTracker'],'change:isFocused',(_0x1af72a,_0x16c792,_0x53f5db)=>{_0x53f5db||this['fire']('blur',{'isAnnotationTracked':_0x3397c8=>this['_editorAnnotationsData']['has'](_0x3397c8['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x1e2339){if(this['_editorAnnotations']['has'](_0x1e2339['view']))return;this['_editorAnnotations']['add'](_0x1e2339['view']),this['editor']['ui']['focusTracker']['add'](_0x1e2339['view']['element']);const _0x19e789=this['editor']['plugins']['get'](y);this['listenTo'](_0x19e789['collection'],'remove',(_0x15ba32,_0x5dc310)=>{this['editor']['ui']['focusTracker']['remove'](_0x5dc310['view']['element']),this['_editorAnnotations']['delete'](_0x5dc310['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x28f518){if('function'!=typeof _0x28f518)throw new _0x50bda('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x28f518);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2ab02f,annotations:_0xfb9d6a}){const _0x532ed9=[],_0x3d800d=this['editor']['model']['document']['selection'],_0x14d9f7=Array['from'](_0x3d800d['getRanges']());for(const [_0x409188,_0x1d7e97]of this['_editorAnnotationsData']){const _0x54aa95=_0x3562f9(_0x1d7e97),_0x37b604=_0xfb9d6a['getByInnerView'](_0x409188);_0x54aa95&&_0x37b604&&_0x532ed9['push']({'annotation':_0x37b604,'range':_0x54aa95});}function _0x3562f9(_0x1c8877){for(const _0x564486 of _0x1c8877)for(const _0x26258f of _0x14d9f7)if(_0x564486['containsRange'](_0x26258f,!_0x3d800d['isCollapsed']))return _0x564486;return null;}return _0x532ed9['sort']((_0x1e81fd,_0x1710c1)=>{const _0x1dc800=_0x1e81fd['range'],_0x9668f=_0x1710c1['range'];if(!_0x1dc800['isEqual'](_0x9668f)){if(_0x1dc800['containsRange'](_0x9668f,!0x0))return 0x1;if(_0x9668f['containsRange'](_0x1dc800,!0x0))return-0x1;}return _0x1e81fd['annotation']==_0x2ab02f?-0x1:_0x1710c1['annotation']==_0x2ab02f?0x1:0x0;})['map'](_0x3e61e6=>_0x3e61e6['annotation']);}get['_editorAnnotationsData'](){const _0x37728a=new Map();for(const _0x910316 of Array['from'](this['_dataCollectors']))for(const [_0x327c73,_0x5aabd7]of _0x910316())_0x37728a['set'](_0x327c73,_0x5aabd7);return _0x37728a;}}class st extends _0x44affe{['afterInit'](){const _0x4c1ef3=this['editor'];if(!_0x4c1ef3['plugins']['has']('RestrictedEditingModeEditing'))return;_0x4c1ef3['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x44affe{constructor(_0x8faf74){super(_0x8faf74),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x2af6ec=this['editor'],_0x5e2a8c=_0x2af6ec['commands']['get']('importWord'),_0x19e8af=_0x2af6ec['plugins']['get'](it);_0x5e2a8c&&(_0x5e2a8c['on']('execute',(_0x22d653,[,_0x19f0b9])=>{_0x19f0b9['collaboration_features']={'comments':!0x0,'user_id':_0x19e8af['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x5e2a8c,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x5067ba,_0x3958af){const {comment_threads:_0x51cf48}=_0x3958af;_0x51cf48&&_0x51cf48['forEach'](({thread_id:_0x3dbebb,comments:_0x5ce026,is_resolved:_0x45a39b})=>{const _0x2f0c8d=new Date(),_0x1599e5=_0x5ce026['map'](({author:_0x165f12,content:_0x5973e1,created_at:_0x3eca41})=>({'content':_0x5973e1,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x2f0c8d,'attributes':{'@external':{'authorName':_0x165f12,'createdAt':_0x3eca41?new Date(_0x3eca41):new Date(),'source':'importWord'}}})),_0x17d19c=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x17d19c,'threadId':_0x3dbebb,'comments':_0x1599e5,'resolvedAt':_0x45a39b?_0x2f0c8d:null});});}}class at extends _0x44affe{constructor(_0x5f5582){super(_0x5f5582),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x58c6b6=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x58c6b6,'contentInsertion',(_0x4afa21,_0x5858ef)=>this['_removeMarkersWithoutThreads'](_0x5858ef['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x500311){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x500311;const _0x42d5ad=this['editor']['plugins']['get']('CommentsRepository');for(const _0x5e71b0 of _0x500311['keys']()){const [_0x426cf5,_0x16f3b5]=_0x5e71b0['split'](':');'comment'!=_0x426cf5||_0x42d5ad['hasCommentThread'](_0x16f3b5)||_0x500311['delete'](_0x5e71b0);}return _0x500311;}['_registerMarkerInClipboardPipeline'](){const _0x2d3634=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x5d32ed=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x5d32ed&&_0x2d3634['_registerMarkerToCopy']('comment',_0x5d32ed);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x4f8a06){switch(_0x4f8a06){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x1f5475){const _0x30ca81=_0x1f5475['split'](':');return{'group':_0x30ca81[0x0],'id':_0x30ca81[0x1],'part':_0x30ca81[0x2]};}class ut extends _0x44affe{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x4df00f,_0x227b81)=>{if(!_0x227b81['options']['showCommentHighlights'])return null;if(_0x227b81['options']['ignoreResolvedComments']){const {id:_0x919673}=ft(_0x4df00f['markerName']),_0x449e1b=this['editor']['plugins']['get'](o);if(_0x449e1b['getCommentThread'](_0x919673)?.['isResolved']&&_0x4df00f['item'])return _0x227b81['consumable']['consume'](_0x4df00f['item'],'addMarker:'+_0x4df00f['markerName']),_0x227b81['consumable']['consume'](_0x4df00f['item'],'removeMarker:'+_0x4df00f['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x19fc6f=>{_0x19fc6f['on']('addMarker:comment',(_0x2a9536,_0x26d3c7,_0x217605)=>{if(!_0x217605['options']['showCommentHighlights'])return;const _0x3241d5=_0x26d3c7['item'];if(!_0x3241d5)return;const _0x155335=_0x217605['mapper']['toViewElement'](_0x3241d5);this['editor']['model']['schema']['isObject'](_0x3241d5)&&_0x155335&&!_0x155335['getCustomProperty']('widget')&&_0x155335['is']('containerElement')&&_0x5b066a(_0x155335,_0x217605['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xc85ba8,{writer:_0x3df3d8,options:_0x12f2b8})=>{if(!_0x12f2b8['showCommentHighlights'])return null;const _0x5dc45a=_0x3df3d8['createContainerElement']('div'),_0x47770e=_0x3df3d8['createEmptyElement']('hr');return _0x3df3d8['addClass']('ck-horizontal-line',_0x5dc45a),_0x3df3d8['insert'](_0x3df3d8['createPositionAt'](_0x5dc45a,0x0),_0x47770e),_0x5dc45a;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x127f0b,{writer:_0x10affb,options:_0x3e3940})=>{if(!_0x3e3940['showCommentHighlights'])return null;const _0x1d703e=_0x10affb['createContainerElement']('span'),_0x5e4775=_0x10affb['createEmptyElement']('img');return _0x10affb['addClass']('image-inline',_0x1d703e),_0x10affb['insert'](_0x10affb['createPositionAt'](_0x1d703e,0x0),_0x5e4775),_0x1d703e;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xbe53ad,{writer:_0x361eae,options:_0x5c6aed})=>{if(_0x5c6aed['showCommentHighlights'])return _0x361eae['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3cb827,_0x59c9c,_0x3d815e)=>{_0x3d815e['options']['showCommentHighlights']&&_0x3cb827['stop']();},{'priority':'high'});}}class r extends _0x44affe{static get['requires'](){return[o,b,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d0098){super(_0x5d0098),this['set']('isThreadsLoadingPaused',!0x0),_0x5d0098['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x186d44,_0x124d53,_0x580a2f,_0x45b249)=>{const _0x55a698=_0x5d0098['plugins']['get'](o),_0x3b5003=_0x580a2f?ft(_0x580a2f)['id']:null;_0x5d0098['model']['change'](()=>{if(_0x3b5003){const _0x1fd93a=this['getAllMarkersForId'](_0x3b5003);for(const _0x3c1045 of _0x1fd93a)_0x5d0098['editing']['reconvertMarker'](_0x3c1045);}if(_0x45b249){const {id:_0x68133b}=ft(_0x45b249),_0x144ff2=_0x55a698['getCommentThread'](_0x68133b);if(_0x144ff2&&_0x144ff2['unlinkedAt'])return;if(_0x144ff2&&!_0x144ff2['isAttached'])return;const _0x1e0886=this['getAllMarkersForId'](_0x68133b);for(const _0x109530 of _0x1e0886)_0x5d0098['editing']['reconvertMarker'](_0x109530);}}),_0x3b5003&&this['scrollToThreadMarker'](_0x3b5003);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1d0e74=this['editor'],_0x152c69=_0x1d0e74['plugins']['get'](o),_0x2474e9=_0x1d0e74['config']['get']('collaboration.channelId'),_0x4dd0c4=_0x152c69['getCommentThreads']()['filter'](_0x27f552=>_0x27f552['channelId']!==_0x2474e9);_0x1d0e74['commands']['add']('addCommentThread',new ot(_0x1d0e74)),this['listenTo'](_0x1d0e74,'change:isReadOnly',(_0x31cb7e,_0x4da804,_0x27224d)=>{_0x152c69['switchReadOnly'](_0x27224d,_0x1d0e74['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x152c69,dt('addCommentThread',_0x2474e9),(_0x3b19b2,{threadId:_0x1ad3d6})=>{const _0x19fdd6=this['editor']['plugins']['get'](o)['getCommentThread'](_0x1ad3d6);_0x19fdd6?.['unlinkedAt']&&this['_attachArchivedThread'](_0x1ad3d6);}),this['listenTo'](_0x152c69,dt('removeCommentThread',_0x2474e9),(_0x3c044a,{threadId:_0x168289})=>{_0x1d0e74['model']['enqueueChange']({'isUndoable':!0x1},_0x231bf7=>{const _0x584cc7=this['getAllMarkersForId'](_0x168289);for(const _0x2054c8 of _0x584cc7)_0x231bf7['removeMarker'](_0x2054c8);});}),this['listenTo'](_0x152c69,dt('resolveCommentThread',_0x2474e9),(_0x122d85,{threadId:_0x1ef6f2})=>{(this['_reconvertMarkers'](_0x1ef6f2),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x1ef6f2)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x152c69,dt('reopenCommentThread',_0x2474e9),(_0xd95b7f,{threadId:_0x4b8644})=>{this['_reconvertMarkers'](_0x4b8644);},{'priority':'low'}),this['listenTo'](_0x152c69,dt('addComment',_0x2474e9),(_0x470f7c,{threadId:_0x20d5b7,isFromAdapter:_0x1dfeb8})=>{const _0x518d21=this['getAllMarkersForId'](_0x20d5b7);if(_0x1dfeb8||0x0==_0x518d21['length']||!_0x152c69['hasCommentThread'](_0x20d5b7))return;0x1===_0x152c69['getCommentThread'](_0x20d5b7)['length']&&_0x1d0e74['model']['enqueueChange']({'isUndoable':!0x1},_0x54f523=>{for(const _0x2add87 of _0x518d21)_0x54f523['updateMarker'](_0x2add87,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x4dd0c4);}['afterInit'](){!async function(_0xcbb7bb){const _0x112c0=_0x3b7b3a([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x34ab15=0x73460ab3,_0x1a0125=0x7341742b^_0x34ab15,_0x202bb1=window[_0x3b7b3a([0x44,0x61,0x74,0x65])][_0x3b7b3a([0x6e,0x6f,0x77])](),_0x1ca8d2=_0xcbb7bb[_0x3b7b3a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6aae5b=new window[(_0x3b7b3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b6bf3=>{_0x1ca8d2[_0x3b7b3a([0x6f,0x6e,0x63,0x65])](_0x3b7b3a([0x72,0x65,0x61,0x64,0x79]),_0x5b6bf3);}),_0x135413={[_0x3b7b3a([0x6b,0x74,0x79])]:_0x3b7b3a([0x45,0x43]),[_0x3b7b3a([0x75,0x73,0x65])]:_0x3b7b3a([0x73,0x69,0x67]),[_0x3b7b3a([0x63,0x72,0x76])]:_0x3b7b3a([0x50,0x2d,0x32,0x35,0x36]),[_0x3b7b3a([0x78])]:_0x3b7b3a([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]),[_0x3b7b3a([0x79])]:_0x3b7b3a([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]),[_0x3b7b3a([0x61,0x6c,0x67])]:_0x3b7b3a([0x45,0x53,0x32,0x35,0x36])},_0x3d73fa=_0x1ca8d2[_0x3b7b3a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b7b3a([0x67,0x65,0x74])](_0x3b7b3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1235f1(){let _0x4bd29c,_0x359f84=null,_0x34aa9e=null;try{if(_0x3d73fa==_0x3b7b3a([0x47,0x50,0x4c]))return _0x3b7b3a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4bd29c=_0x563bc8(),!_0x4bd29c)return _0x3b7b3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4bd29c[_0x3b7b3a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x34aa9e=_0x4f5866(_0x4bd29c[_0x3b7b3a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4bd29c[_0x3b7b3a([0x6a,0x74,0x69])])),await _0x1c1d1a()?_0xb2ca77()?_0x560ba9()?_0x3b7b3a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x196a6d()?(_0x4bd29c[_0x3b7b3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b7b3a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x359f84=_0x130104(_0x3b7b3a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34dd80()):_0x3b7b3a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b7b3a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b7b3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b7b3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x560ba9(){const _0x260a48=[_0x3b7b3a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b7b3a([0x74,0x72,0x69,0x61,0x6c])][_0x3b7b3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bd29c[_0x3b7b3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x202bb1/0x3e8:0xe10*_0x1a0125;return _0x4bd29c[_0x3b7b3a([0x65,0x78,0x70])]<_0x260a48;}function _0xb2ca77(){const _0x3763ab=_0x4bd29c[_0x3b7b3a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3763ab)return!0x1;if(_0x3763ab[_0x3b7b3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b7b3a([0x2a])))return!0x0;if(_0x3763ab[_0x3b7b3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b7b3a([0x43,0x4d,0x54])))return!0x0;if(_0x3763ab[_0x3b7b3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b7b3a([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0xbec8fe())return!0x0;if(_0x3763ab[_0x3b7b3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b7b3a([0x52,0x43,0x4d,0x54]))){if(_0x506a01())return!0x0;if(_0x45c81f()||_0x5038b4())return!0x0;}return!0x1;}function _0x196a6d(){const _0x1f0385=_0x4bd29c[_0x3b7b3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1f0385||0x0==_0x1f0385[_0x3b7b3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x52d4bc}=new URL(window[_0x3b7b3a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1f0385[_0x3b7b3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d4bc))return!0x0;const _0x358b42=_0x52d4bc[_0x3b7b3a([0x73,0x70,0x6c,0x69,0x74])](_0x3b7b3a([0x2e]));return _0x1f0385[_0x3b7b3a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16b9d8=>_0x16b9d8[_0x3b7b3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b7b3a([0x2a])))[_0x3b7b3a([0x6d,0x61,0x70])](_0x3543d=>_0x3543d[_0x3b7b3a([0x73,0x70,0x6c,0x69,0x74])](_0x3b7b3a([0x2e])))[_0x3b7b3a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4670d0=>_0x4670d0[_0x3b7b3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x358b42[_0x3b7b3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b7b3a([0x6d,0x61,0x70])](_0x4f3752=>Array(_0x358b42[_0x3b7b3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4f3752[_0x3b7b3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b7b3a([0x66,0x69,0x6c,0x6c])](_0x4f3752[0x0]===_0x3b7b3a([0x2a])?_0x3b7b3a([0x2a]):'')[_0x3b7b3a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4f3752))[_0x3b7b3a([0x73,0x6f,0x6d,0x65])](_0x1b637e=>_0x358b42[_0x3b7b3a([0x65,0x76,0x65,0x72,0x79])]((_0x597369,_0x2de10c)=>_0x1b637e[_0x2de10c]===_0x597369||_0x1b637e[_0x2de10c]===_0x3b7b3a([0x2a])));}function _0x34dd80(){return _0x359f84&&_0x34aa9e?new window[(_0x3b7b3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35bafc,_0x324945)=>{_0x359f84[_0x3b7b3a([0x74,0x68,0x65,0x6e])](_0x35bafc,_0x324945),_0x34aa9e[_0x3b7b3a([0x74,0x68,0x65,0x6e])](_0x102d0c=>{_0x102d0c!=_0x3b7b3a([0x56,0x61,0x6c,0x69,0x64])&&_0x35bafc(_0x102d0c);},_0x324945);}):_0x359f84||_0x34aa9e||_0x3b7b3a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f5866(_0x2c843f,_0xd403a1){return new window[(_0x3b7b3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f1175=>{if(_0x4d9fe8())return _0x5f1175(_0x3b7b3a([0x56,0x61,0x6c,0x69,0x64]));_0x112cd6(),_0x1ca8d2[_0x3b7b3a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b7b3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x358d30=!0x1;const _0x111316=_0xb5ba6();function _0x40dbe0(_0xe9671a){return!!_0xe9671a&&(typeof _0xe9671a===_0x3b7b3a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe9671a===_0x3b7b3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe9671a[_0x3b7b3a([0x74,0x68,0x65,0x6e])]===_0x3b7b3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe9671a[_0x3b7b3a([0x63,0x61,0x74,0x63,0x68])]===_0x3b7b3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1cc1f3(_0x1e55c8){_0x20554f(_0x1e55c8)[_0x3b7b3a([0x74,0x68,0x65,0x6e])](_0x2bdf41=>{if(!_0x2bdf41||_0x2bdf41[_0x3b7b3a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b7b3a([0x6f,0x6b]))return _0x3b7b3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1af291(_0x1ce7eb(_0x111316+_0xd403a1))!=_0x2bdf41[_0x3b7b3a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b7b3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b7b3a([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b7b3a([0x74,0x68,0x65,0x6e])](_0xbaf0db=>(_0x251fbd(),_0xbaf0db),()=>{const _0x10994e=_0x266059();return null==_0x10994e?(_0x251fbd(),_0x3b7b3a([0x56,0x61,0x6c,0x69,0x64])):_0x3b7b3a(_0x202bb1-_0x10994e>(0x574a8eb3^_0x34ab15)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b7b3a([0x74,0x68,0x65,0x6e])](_0x5f1175)[_0x3b7b3a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f1175(_0x3b7b3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35d107=0x7370e433^_0x34ab15;function _0x251fbd(){const _0xb8b88b=_0x3b7b3a([0x6c,0x6c,0x63,0x74,0x2d])+_0x1af291(_0x1ce7eb(_0x2c843f)),_0x2ec0b5=_0x1f8e13(_0x1af291(window[_0x3b7b3a([0x4d,0x61,0x74,0x68])][_0x3b7b3a([0x63,0x65,0x69,0x6c])](_0x202bb1/_0x35d107)));window[_0x3b7b3a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b7b3a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb8b88b,_0x2ec0b5);}function _0x266059(){const _0x44cd19=_0x3b7b3a([0x6c,0x6c,0x63,0x74,0x2d])+_0x1af291(_0x1ce7eb(_0x2c843f)),_0x17e34f=window[_0x3b7b3a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b7b3a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44cd19);return _0x17e34f?window[_0x3b7b3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f8e13(_0x17e34f),0x10)*_0x35d107:null;}function _0x20554f(_0x44e1c4){return new window[(_0x3b7b3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xcca6ad,_0xeb6d4c)=>{_0x44e1c4[_0x3b7b3a([0x74,0x68,0x65,0x6e])](_0xcca6ad,_0xeb6d4c),window[_0x3b7b3a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xeb6d4c,0x7347de73^_0x34ab15);});}}_0x1ca8d2[_0x3b7b3a([0x6f,0x6e])](_0x3b7b3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53c4e4,_0x53f1ec)=>{if(_0x53f1ec[0x0]!=_0x2c843f)return _0x5f1175(_0x3b7b3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53f1ec[0x1]={..._0x53f1ec[0x1],[_0x3b7b3a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x111316};},{[_0x3b7b3a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b7b3a([0x68,0x69,0x67,0x68])}),_0x1ca8d2[_0x3b7b3a([0x6f,0x6e])](_0x3b7b3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a801f=>{_0x40dbe0(_0x5a801f[_0x3b7b3a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x358d30=!0x0,_0x1cc1f3(_0x5a801f[_0x3b7b3a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b7b3a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b7b3a([0x6c,0x6f,0x77])}),_0x6aae5b[_0x3b7b3a([0x74,0x68,0x65,0x6e])](()=>{_0x358d30||_0x5f1175(_0x3b7b3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4d9fe8(){return _0x1ca8d2[_0x3b7b3a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b7b3a([0x76,0x69,0x65,0x77])][_0x3b7b3a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b7b3a([0x61,0x75,0x74,0x6f]);}function _0x112cd6(){_0x1ca8d2[_0x3b7b3a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b7b3a([0x76,0x69,0x65,0x77])][_0x3b7b3a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b7b3a([0x61,0x75,0x74,0x6f]);}}function _0x130104(_0x2cd348){const _0xbad0f0=[new window[(_0x3b7b3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19dfec=>setTimeout(_0x19dfec,0x734f347f^_0x34ab15)),_0x6aae5b[_0x3b7b3a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b7b3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3357b3=>{let _0x8ad832=0x0;_0x1ca8d2[_0x3b7b3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b7b3a([0x6f,0x6e])](_0x3b7b3a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d6c71,_0x5230f1)=>{_0x5230f1[0x0][_0x3b7b3a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8ad832++,_0x8ad832==(0x73460f5b^_0x34ab15)&&(_0x3357b3(),_0x1d6c71[_0x3b7b3a([0x6f,0x66,0x66])]());});}))];return window[_0x3b7b3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b7b3a([0x72,0x61,0x63,0x65])](_0xbad0f0)[_0x3b7b3a([0x74,0x68,0x65,0x6e])](()=>_0x2cd348);}async function _0x32fab8(){await _0x6aae5b,_0x1ca8d2[_0x3b7b3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b7b3a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e4329,_0x1ca8d2[_0x3b7b3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b7b3a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e4329,_0x1ca8d2[_0x3b7b3a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b7b3a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xbec8fe(){return window[_0x3b7b3a([0x67,0x6c,0x6f,0x62])]&&window[_0x3b7b3a([0x67,0x6c,0x6f,0x62])][_0x3b7b3a([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x506a01(){return _0x1f0e33(_0x3b7b3a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x596de3(_0x3b7b3a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3b7b3a([0x73,0x74,0x61,0x74,0x65])]==_0x3b7b3a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x45c81f(){return _0x1f0e33(_0x3b7b3a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x5038b4(){return _0x1f0e33(_0x3b7b3a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4b9851(_0x17f85c){const _0x43191c=_0x4fc3a9();_0x1ca8d2[_0x43191c]=_0x3b7b3a([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x17f85c,_0x17f85c!=_0x3b7b3a([0x56,0x61,0x6c,0x69,0x64])&&_0x32fab8();}function _0x4fc3a9(){const _0x15e552=window[_0x3b7b3a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b7b3a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b7b3a([0x6e,0x6f,0x77])]())[_0x3b7b3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b7b3a([0x2e]),'');let _0x5c295e=_0x3b7b3a([0x4b]);for(let _0x402695=0x0;_0x402695<_0x15e552[_0x3b7b3a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x402695+=0x2){let _0x2bc3e8=window[_0x3b7b3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15e552[_0x3b7b3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x402695,_0x402695+0x2));_0x2bc3e8>=_0x112c0[_0x3b7b3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2bc3e8-=_0x112c0[_0x3b7b3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c295e+=_0x112c0[_0x2bc3e8];}return _0x5c295e;}function _0x563bc8(){const _0x26b3a0=_0x3d73fa[_0x3b7b3a([0x73,0x70,0x6c,0x69,0x74])](_0x3b7b3a([0x2e]));if(0x3!=_0x26b3a0[_0x3b7b3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e4450(_0x26b3a0[0x1]);function _0x2e4450(_0x1e0d52){const _0x3b2b8a=_0x5f4627(_0x1e0d52);return _0x3b2b8a&&_0x4da3b5()?_0x3b2b8a:null;function _0x4da3b5(){const _0x4b2067=_0x3b2b8a[_0x3b7b3a([0x6a,0x74,0x69])],_0x4c4f95=window[_0x3b7b3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b2067[_0x3b7b3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b2067[_0x3b7b3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ca38a={..._0x3b2b8a,[_0x3b7b3a([0x6a,0x74,0x69])]:_0x4b2067[_0x3b7b3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b2067[_0x3b7b3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ca38a[_0x3b7b3a([0x76,0x63])],_0x1ce7eb(_0x4ca38a)==_0x4c4f95;}}}async function _0x1c1d1a(){let _0x554497=!0x0;try{const _0x17d75e=_0x3d73fa[_0x3b7b3a([0x73,0x70,0x6c,0x69,0x74])](_0x3b7b3a([0x2e])),[_0x23d7fc,_0x386881,_0x1eb352]=_0x17d75e;return _0x515034(_0x23d7fc),await _0x4149ba(_0x23d7fc,_0x386881,_0x1eb352),_0x554497;}catch{return!0x1;}function _0x515034(_0x826390){const _0x53cbff=_0x5f4627(_0x826390);_0x53cbff&&_0x53cbff[_0x3b7b3a([0x61,0x6c,0x67])]==_0x3b7b3a([0x45,0x53,0x32,0x35,0x36])||(_0x554497=!0x1);}async function _0x4149ba(_0x314b72,_0x206d44,_0x42e24a){const _0x20de67=window[_0x3b7b3a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b7b3a([0x66,0x72,0x6f,0x6d])](_0x55a00e(_0x42e24a),_0x2a0706=>_0x2a0706[_0x3b7b3a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c8f28=new window[(_0x3b7b3a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b7b3a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x314b72+_0x3b7b3a([0x2e])+_0x206d44),_0x306139=window[_0x3b7b3a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b7b3a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x306139)return;const _0x70e83b=await _0x306139[_0x3b7b3a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b7b3a([0x6a,0x77,0x6b]),_0x135413,{[_0x3b7b3a([0x6e,0x61,0x6d,0x65])]:_0x3b7b3a([0x45,0x43,0x44,0x53,0x41]),[_0x3b7b3a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b7b3a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b7b3a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x306139[_0x3b7b3a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b7b3a([0x6e,0x61,0x6d,0x65])]:_0x3b7b3a([0x45,0x43,0x44,0x53,0x41]),[_0x3b7b3a([0x68,0x61,0x73,0x68])]:{[_0x3b7b3a([0x6e,0x61,0x6d,0x65])]:_0x3b7b3a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x70e83b,_0x20de67,_0x5c8f28)||(_0x554497=!0x1);}}function _0x5f4627(_0x55c50d){return _0x55c50d[_0x3b7b3a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b7b3a([0x65,0x79]))?JSON[_0x3b7b3a([0x70,0x61,0x72,0x73,0x65])](_0x55a00e(_0x55c50d)):null;}function _0x55a00e(_0x17850d){return window[_0x3b7b3a([0x61,0x74,0x6f,0x62])](_0x17850d[_0x3b7b3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b7b3a([0x2b]))[_0x3b7b3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b7b3a([0x2f])));}function _0x1ce7eb(_0x468679){let _0x33c040=0x1505;function _0x4cc960(_0x25a086){for(let _0x4679cb=0x0;_0x4679cb<_0x25a086[_0x3b7b3a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4679cb++){const _0x357e84=_0x25a086[_0x3b7b3a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4679cb);_0x33c040=(_0x33c040<<0x5)+_0x33c040+_0x357e84,_0x33c040&=_0x33c040;}}function _0x39610d(_0x25f814){Array[_0x3b7b3a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x25f814)?_0x25f814[_0x3b7b3a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39610d):_0x25f814&&typeof _0x25f814==_0x3b7b3a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b7b3a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x25f814)[_0x3b7b3a([0x73,0x6f,0x72,0x74])]()[_0x3b7b3a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b9ee1,_0x25a7c0])=>{_0x4cc960(_0x4b9ee1),_0x39610d(_0x25a7c0);}):_0x4cc960(window[_0x3b7b3a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x25f814));}return _0x39610d(_0x468679),_0x33c040>>>0x0;}function _0x1af291(_0x1e7073){return _0x1e7073[_0x3b7b3a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b7b3a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b7b3a([0x30]));}function _0x1f8e13(_0x8ebca){return _0x8ebca[_0x3b7b3a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b7b3a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b7b3a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f0e33(_0x210d29){return _0x1ca8d2[_0x3b7b3a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b7b3a([0x68,0x61,0x73])](_0x210d29);}function _0x596de3(_0x3074aa){return _0x1ca8d2[_0x3b7b3a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b7b3a([0x67,0x65,0x74])](_0x3074aa);}function _0x2e4329(){}function _0x3b7b3a(_0x2b6266){return _0x2b6266['map'](_0x540b58=>String['fromCharCode'](_0x540b58))['join']('');}_0x4b9851(await _0x1235f1());}(this);}['destroy'](){const _0x45713e=this['editor']['plugins']['get'](o),_0x249ef9=this['editor']['config']['get']('collaboration.channelId');for(const _0x14de79 of _0x45713e['getCommentThreads']({'channelId':_0x249ef9}))_0x45713e['_detachCommentThread'](_0x14de79['id']),_0x45713e['_threads']['delete'](_0x14de79['id']);super['destroy']();}['hasMarkerForId'](_0x162b10){return this['getAllMarkersForId'](_0x162b10)['length']>0x0;}['getAllMarkersForId'](_0x15278b){const _0x3e5f97=[];for(const _0x294a44 of this['editor']['model']['markers'])_0x294a44['name']['startsWith']('comment:'+_0x15278b)&&_0x3e5f97['push'](_0x294a44);return _0x3e5f97;}['scrollToThreadMarker'](_0xd2e7ab){setTimeout(()=>{const _0x530a03=this['_getTargetForId'](_0xd2e7ab);if(!_0x530a03)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0xd2e7ab&&nt({'target':_0x530a03[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x3a2be5){this['editor']['model']['change'](()=>{for(const _0x163a84 of this['getAllMarkersForId'](_0x3a2be5))this['editor']['editing']['reconvertMarker'](_0x163a84);});}['_attachArchivedThread'](_0x54f8c8){const _0x3554df=this['editor']['plugins']['get'](o),_0x3be637=this['editor']['plugins']['get'](b),_0x164308=_0x3554df['getCommentThread'](_0x54f8c8);if(!_0x164308['isAttached']){const _0x2f7064=_0x164308['attachTo'](()=>this['_getTargetForId'](_0x164308['id']));_0x3be637['registerAnnotation'](_0x2f7064),_0x164308['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x2f8dc2=this['editor'],_0x1d7b5a=_0x2f8dc2['plugins']['get'](it);_0x2f8dc2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x5ead10,_0x491334)=>{const {id:_0x26ba70}=ft(_0x5ead10['markerName']),_0x6e1ceb=_0x2f8dc2['plugins']['get'](o)['getCommentThread'](_0x26ba70),_0x5e2853=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x26ba70;let _0x574fc1;if(_0x6e1ceb&&_0x6e1ceb['isResolved']&&!_0x5e2853&&_0x5ead10['item'])return _0x491334['consumable']['consume'](_0x5ead10['item'],'addMarker:'+_0x5ead10['markerName']),_0x491334['consumable']['consume'](_0x5ead10['item'],'removeMarker:'+_0x5ead10['markerName']),null;const _0x3f35e7=['ck-comment-marker'];return _0x5e2853&&_0x3f35e7['push']('ck-comment-marker--active'),_0x574fc1=_0x6e1ceb?.['length']?_0x6e1ceb['comments']['first']['author']['id']:_0x1d7b5a['me']['id'],{'classes':_0x3f35e7,'attributes':{'data-comment':_0x26ba70,'data-author-id':_0x574fc1}};}}),_0x2f8dc2['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x2c2640,{options:_0xb99613})=>{if(_0xb99613['showCommentHighlights'])return null;const _0x4b1042=_0x2f8dc2['plugins']['get'](o),_0x41740b=_0x2f8dc2['model']['markers']['get'](_0x2c2640),{id:_0x3c109c,part:_0x6fadc3}=ft(_0x2c2640);return _0x41740b&&!_0x41740b['affectsData']||_0xb99613['ignoreResolvedComments']&&_0x4b1042['getCommentThread'](_0x3c109c)?.['isResolved']?null:{'group':'comment','name':_0x6fadc3?_0x3c109c+':'+_0x6fadc3:_0x3c109c};}}),_0x2f8dc2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2ff61d,{writer:_0xdb6a32})=>_0xdb6a32['createElement']('$marker',{'data-name':'comment:'+_0x2ff61d['getAttribute']('id')})}),_0x2f8dc2['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x48ead9=this['editor'],_0x571d1d=_0x48ead9['plugins']['get'](o),_0x1afb85=new Set(),_0x355848=new Set();_0x48ead9['model']['document']['registerPostFixer'](_0xf9d738=>{let _0x35842e=!0x1;for(const {name:_0x159910,data:_0x26d682}of _0x48ead9['model']['document']['differ']['getChangedMarkers']()){const {group:_0x77feaf,id:_0x5ad173}=ft(_0x159910);let _0x567cec=_0x26d682['newRange'];if('comment'!==_0x77feaf||!_0x567cec)continue;const _0x521668='$graveyard'===_0x567cec['root']['rootName'];_0x521668||(_0x567cec=ht(_0x567cec,_0x48ead9['model']),!_0x567cec||_0x567cec['isCollapsed']||!_0x26d682['newRange']||_0x567cec['isEqual'](_0x26d682['newRange']))?_0x48ead9['model']['hasContent'](_0x567cec)&&!_0x521668?this['isThreadsLoadingPaused']?_0x1afb85['add'](_0x159910):this['_handleThreadMarker'](_0x159910,_0x5ad173):(_0x355848['add'](_0x159910),_0x1afb85['delete'](_0x159910),_0xf9d738['removeMarker'](_0x159910),_0x35842e=!0x0):(_0xf9d738['updateMarker'](_0x159910,{'range':_0x567cec}),_0x35842e=!0x0);}return _0x35842e;}),this['on']('change:isThreadsLoadingPaused',(_0x374c92,_0x37adb4,_0x137a58)=>{if(!_0x137a58&&_0x1afb85['size'])for(const _0x30d514 of _0x1afb85){const {id:_0x2cfc6d}=ft(_0x30d514);_0x1afb85['delete'](_0x30d514),_0x48ead9['model']['markers']['get'](_0x30d514)&&this['_handleThreadMarker'](_0x30d514,_0x2cfc6d);}}),this['listenTo'](_0x48ead9['model']['document'],'change',()=>{for(const {name:_0x2ae3c7,data:{newRange:_0x5e711b}}of _0x48ead9['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3a20bc,id:_0x3919ae}=ft(_0x2ae3c7);if('comment'!==_0x3a20bc)continue;const _0x1a9409=_0x571d1d['getCommentThread'](_0x3919ae),_0x55789d=this['hasMarkerForId'](_0x3919ae);_0x1a9409&&(!_0x1a9409['_hasTargetInContent']&&_0x5e711b&&_0x48ead9['editing']['view']['once']('render',()=>{const _0x7ed750=_0x48ead9['plugins']['get'](y),_0x28414e=_0x571d1d['_threadToController']['get'](_0x1a9409)['view'];_0x7ed750['getByInnerView'](_0x28414e)['refreshVisibility']();},{'priority':'low'}),_0x1a9409['_hasTargetInContent']=_0x55789d||!!_0x5e711b),_0x5e711b||(_0x355848['add'](_0x2ae3c7),_0x1afb85['delete'](_0x2ae3c7));}for(const _0x432cab of _0x355848){const {id:_0x4f4d04}=ft(_0x432cab),_0x4a323f=_0x571d1d['getCommentThread'](_0x4f4d04);if(_0x1afb85['delete'](_0x432cab),!_0x4a323f)continue;const _0xce5b25=this['hasMarkerForId'](_0x4f4d04);_0xce5b25||_0x4a323f['isSubmitted']?_0xce5b25||_0x4a323f['unlinkedAt']||_0x4a323f['setUnlinkedAt'](new Date()):_0x4a323f['remove']();}_0x355848['clear']();});}['_handleInitialThreads'](_0x205737){_0x205737['forEach'](_0xa23b83=>{_0xa23b83['unlinkedAt']&&this['_attachArchivedThread'](_0xa23b83['id']);});}['_getTargetForId'](_0x1838b6){const _0x417f4b=this['editor'],_0xdd937f=this['getAllMarkersForId'](_0x1838b6);return et(_0x417f4b['editing'],_0xdd937f);}['_getTextContext'](_0x159417){const _0x980e8c=this['getAllMarkersForId'](_0x159417);let _0x2d42f6='',_0x37abf1=!0x1;for(const _0x2485e1 of _0x980e8c){const _0x1a1b8f=_0x2485e1['getRange']();for(const _0x512ab4 of Array['from'](_0x1a1b8f['getItems']()))_0x512ab4['is']('$textProxy')?(_0x2d42f6&&_0x37abf1&&(_0x2d42f6+='\x20',_0x37abf1=!0x1),_0x2d42f6+=_0x512ab4['data']):_0x37abf1=!0x0;_0x37abf1=!0x0;}return _0x2d42f6['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x40410c,_0x168df0){const _0x354063=this['editor'],_0x2ac25e=_0x354063['plugins']['get'](o);let _0x14ca67=_0x2ac25e['getCommentThread'](_0x168df0);const _0x32d991=_0x354063['config']['get']('collaboration.channelId'),_0x3b459d=_0x354063['plugins']['get'](b);if(_0x14ca67&&(_0x14ca67['unlinkedAt']&&_0x14ca67['setUnlinkedAt'](null),_0x14ca67['isAttached']))return _0x14ca67;return!this['getAllMarkersForId'](_0x168df0)[0x0]['managedUsingOperations']?_0x354063['editing']['view']['once']('render',()=>{if(_0x2ac25e['getCommentThread'](_0x168df0))return;const _0x9e58f9=_0x354063['plugins']['get'](y);_0x14ca67=_0x2ac25e['openNewCommentThread']({'channelId':_0x32d991,'threadId':_0x168df0,'target':()=>this['_getTargetForId'](_0x168df0),'context':{'type':'text','value':this['_getTextContext'](_0x168df0)}});const _0x3c543d=_0x2ac25e['_threadToController']['get'](_0x14ca67)['view'],_0x27a4bf=_0x9e58f9['getByInnerView'](_0x3c543d);_0x27a4bf&&_0x3b459d['registerAnnotation'](_0x27a4bf);},{'priority':'low'}):_0x2ac25e['fetchCommentThread']({'channelId':_0x32d991,'threadId':_0x168df0})['then'](_0x8fd041=>{if('destroyed'!==_0x354063['state']){if(_0x14ca67=_0x8fd041,_0x14ca67&&!_0x14ca67['isAttached']){const _0xabc3a6=_0x14ca67['attachTo'](()=>this['_getTargetForId'](_0x168df0));_0x3b459d['registerAnnotation'](_0xabc3a6),_0x14ca67['isResolved']&&this['_reconvertMarkers'](_0x168df0);}else{if(!_0x14ca67){const _0x245870=this['getAllMarkersForId'](_0x168df0);_0x354063['model']['change'](_0x5d7b62=>{for(const _0x2fb84a of _0x245870)_0x5d7b62['removeMarker'](_0x2fb84a);});}}}}),_0x14ca67;}['_handleThreadMarker'](_0x1cd127,_0x37f29b){const _0x367ffb=this['_attachMarkerToThread'](_0x1cd127,_0x37f29b);_0x367ffb&&!_0x367ffb['context']&&_0x367ffb['setContext']({'type':'text','value':this['_getTextContext'](_0x37f29b)});}['_initAriaMarkerChangeAnnouncements'](){const _0x3688b8=this['editor'];rt(_0x3688b8['model'],({left:_0x4ada07,entered:_0x330dcb})=>{for(const _0x4e324c of _0x4ada07)if(mt(_0x4e324c)){_0x3688b8['ui']['ariaLiveAnnouncer']['announce'](N(_0x3688b8['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x31a659 of _0x330dcb)if(mt(_0x31a659)){_0x3688b8['ui']['ariaLiveAnnouncer']['announce'](N(_0x3688b8['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x396338)));break;}});}}function dt(_0x1a4b60,_0x49c5f5){return _0x49c5f5?_0x1a4b60+':'+_0x49c5f5:_0x1a4b60;}function ht(_0x23e3c3,_0x51f75c){const _0x26e5d1=_0x51f75c['schema'],_0x530977=_0x51f75c['createRange'](_0x23e3c3['start']);for(const _0x3da76d of _0x23e3c3['getWalker']()){const {type:_0xca647a,item:_0xc1bb6a,nextPosition:_0x14fb40}=_0x3da76d;if('text'===_0xca647a||_0x26e5d1['isObject'](_0xc1bb6a)){const _0x184bc0=_0x51f75c['createPositionBefore'](_0xc1bb6a);_0x530977['isCollapsed']&&(_0x530977['start']=_0x184bc0),_0x530977['end']=_0x14fb40;}}return _0x530977;}function mt(_0x48c380){return'comment'===ft(_0x48c380['name'])['group'];}class s extends _0x44affe{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,b,y];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x22391a=this['editor'],_0x3580ea=_0x22391a['plugins']['get'](o),_0x3bce7f=_0x22391a['plugins']['get'](r),_0x21b2c8=_0x22391a['plugins']['get'](y),_0x48951f=_0x22391a['plugins']['get'](b);_0x22391a['ui']['componentFactory']['add']('comment',()=>{const _0x4c8080=this['_createUIButton'](_0x5281d3);return _0x4c8080['tooltip']=!0x0,_0x4c8080;}),_0x22391a['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x4695c5)),_0x48951f['addSourceCollector'](()=>{const _0x54720d=[];for(const [_0x4603a8,_0x61ccd7]of _0x3580ea['_threadToController']){const _0x59eb76=_0x3bce7f['getAllMarkersForId'](_0x4603a8['id']),_0xcf7062=_0x59eb76['map'](_0x39785b=>_0x39785b['getRange']());_0x59eb76['length']>0x0&&_0x54720d['push']([_0x61ccd7['view'],_0xcf7062]);}return _0x54720d;}),this['listenTo'](_0x21b2c8,'change:activeAnnotations',(_0x23b70f,_0x43b270,_0x4dbf6e)=>{const _0x34fe6d=Array['from'](_0x4dbf6e)['map'](_0x2be0eb=>_0x2be0eb['innerView'])['find'](_0x4913df=>_0x3580ea['_viewToController']['has'](_0x4913df));if(!_0x34fe6d)return void(_0x3bce7f['activeMarker']=null);const _0x3d0301=_0x3580ea['_viewToController']['get'](_0x34fe6d)['model']['id'],_0x423f9c='comment:'+_0x3d0301;_0x3d0301&&_0x3bce7f['hasMarkerForId'](_0x3d0301)?_0x3bce7f['activeMarker']=_0x423f9c:_0x3bce7f['activeMarker']&&(_0x3bce7f['activeMarker']=null);}),this['listenTo'](_0x3580ea,'removeCommentThread',(_0x4700eb,{threadId:_0x1b02b8,isFromAdapter:_0x5de19f})=>{!_0x5de19f&&_0x22391a['ui']['focusTracker']['isFocused']&&_0x3bce7f['hasMarkerForId'](_0x1b02b8)&&_0x22391a['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x3580ea,'addComment',(_0x3d1999,{threadId:_0x534410,isFromAdapter:_0x430d2a})=>{if(_0x430d2a||!_0x3bce7f['hasMarkerForId'](_0x534410)||!_0x3580ea['hasCommentThread'](_0x534410))return;0x1===_0x3580ea['getCommentThread'](_0x534410)['length']&&(_0x22391a['editing']['view']['focus'](),_0x3d1999['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5eab4e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5abcca;for(const _0x15236a in _0x5eab4e){const _0xfe1fdb=_0x15236a,_0x1aac16=_0x5eab4e[_0xfe1fdb];if('commentsLicenseKeyValid'==_0x1aac16||'commentsLicenseKeyInvalid'==_0x1aac16||'commentsLicenseKeyExpired'==_0x1aac16||'commentsLicenseKeyDomainLimit'==_0x1aac16||'commentsLicenseKeyNotAllowed'==_0x1aac16||'commentsLicenseKeyEvaluationLimit'==_0x1aac16||'commentsLicenseKeyUsageLimit'==_0x1aac16){delete _0x5eab4e[_0xfe1fdb],_0x5abcca=_0x1aac16,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x5abcca&&_0x5eab4e['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x5abcca&&_0x5eab4e['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x5abcca&&_0x5eab4e['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x5abcca&&_0x5eab4e['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x5abcca&&_0x5eab4e['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x5abcca&&_0x5eab4e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x5caaf6){const _0x2788e5=this['editor'],_0x105c35=new _0x5caaf6(_0x2788e5['locale']),_0xac9cf=_0x2788e5['commands']['get']('addCommentThread');return _0x105c35['set']({'label':N(_0x2788e5['locale'],'Comment'),'icon':_0x376438}),_0x105c35['bind']('isEnabled')['to'](_0xac9cf,'isEnabled',_0xac9cf,'hasContent',(_0x59d40a,_0x2554a3)=>_0x59d40a&&_0x2554a3),this['listenTo'](_0x105c35,'execute',()=>{_0xac9cf['execute']();}),_0x105c35;}}class i extends _0x44affe{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x3e53b4){super(_0x3e53b4),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0xabbf51,_0x11a69a,_0xaf0295)=>{_0xaf0295?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x56e9c4,_0x3bea35]of this['editor']['commands'])_0x3bea35['affectsData']&&'addCommentThread'!==_0x56e9c4&&_0x3bea35['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x83852b=this['editor']['editing']['view']['document'];this['listenTo'](_0x83852b,'cut',_0x193e15=>_0x193e15['stop'](),{'priority':'highest'}),this['listenTo'](_0x83852b,'clipboardInput',_0x151274=>_0x151274['stop'](),{'priority':'highest'}),this['listenTo'](_0x83852b,'delete',_0x1184aa=>_0x1184aa['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x394bb8,_0x35364b]of this['editor']['commands'])_0x35364b['affectsData']&&'addCommentThread'!==_0x394bb8&&_0x35364b['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0xdc4a0a{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b0d40){super(_0x1b0d40),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x34f317=this['context']['plugins']['get'](y);this['listenTo'](_0x34f317,'_activateAnnotation',(_0x3ceba1,_0xbd5910)=>{for(const _0x45b52b of this['activeUIs']){const _0x56a682=this['_uis']['get'](_0x45b52b);(0x0,this['uisData']['get'](_0x45b52b)['filter'])(_0xbd5910)&&_0x56a682['setActiveAnnotation'](_0xbd5910);}}),this['listenTo'](_0x34f317,'_deactivateAllAnnotations',()=>{for(const _0x462d6a of this['activeUIs']){this['_uis']['get'](_0x462d6a)['setActiveAnnotation'](null);}}),this['listenTo'](_0x34f317['_visibleAnnotations'],'add',(_0x3e18db,_0x36dfa6)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x36dfa6);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x254c7c){return this['activeUIs']['has'](_0x254c7c);}['activate'](_0x475e0a,_0x4a362d=this['defaultFilter']){const _0x3cfb91=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x475e0a))throw new _0x50bda('annotationsuis-missing-ui',this,{'uiName':_0x475e0a});this['isActive'](_0x475e0a)&&this['deactivate'](_0x475e0a),this['activeUIs']['add'](_0x475e0a);const _0x3614f6=new S();v({'source':_0x3cfb91['_visibleAnnotations'],'target':_0x3614f6,'filter':_0x4a362d}),this['uisData']['set'](_0x475e0a,{'collection':_0x3614f6,'filter':_0x4a362d});const _0xf912e7=this['_uis']['get'](_0x475e0a);_0xf912e7['attach'](_0x3614f6),this['listenTo'](_0xf912e7,'change:activeAnnotation',(_0x3518f6,_0x3336dd,_0x2e6de2,_0x20e02a)=>{_0x20e02a&&_0x3cfb91['_removeActiveAnnotation'](_0x20e02a),_0x2e6de2&&_0x3cfb91['_addActiveAnnotation'](_0x2e6de2);});}['deactivate'](_0x537ddb){if(this['activeUIs']['delete'](_0x537ddb),!this['_uis']['has'](_0x537ddb))throw new _0x50bda('annotationsuis-missing-ui',this,{'uiName':_0x537ddb});const _0x2efe7f=this['_uis']['get'](_0x537ddb);_0x2efe7f['detach'](),this['stopListening'](_0x2efe7f),this['uisData']['get'](_0x537ddb)['collection']['destroy'](),this['uisData']['delete'](_0x537ddb);}['switchTo'](_0x3cf454){if(!this['_uis']['has'](_0x3cf454))throw new _0x50bda('annotationsuis-missing-ui',this,{'uiName':_0x3cf454});const _0x32c2af=this['context']['plugins']['get'](y),_0x1dd002=Array['from'](_0x32c2af['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x3cf454);const _0x512755=this['_uis']['get'](_0x3cf454);_0x512755['setActiveAnnotation'](_0x1dd002),_0x512755['_setSelectedAnnotations']&&_0x1dd002&&_0x512755['_setSelectedAnnotations']([_0x1dd002]);}['deactivateAll'](){for(const _0x5d0d29 of this['activeUIs'])this['deactivate'](_0x5d0d29);}['register'](_0x33a183,_0x21d533){if(this['_uis']['has'](_0x33a183))throw new _0x50bda('annotationsuis-register-already-registered');if('function'!=typeof _0x21d533['attach']||'function'!=typeof _0x21d533['detach']||'function'!=typeof _0x21d533['setActiveAnnotation'])throw new _0x50bda('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x33a183,_0x21d533);}['refilterAnnotations'](){const _0x5c2b9c=this['context']['plugins']['get'](y)['collection'],_0x2dd75e=new Map(),_0x431032=Array['from'](this['activeUIs']);for(const _0x5ed4e1 of this['activeUIs']){const _0x5d7c51=this['uisData']['get'](_0x5ed4e1)['collection'];for(const _0xf3e916 of _0x5d7c51)_0x2dd75e['set'](_0xf3e916,_0x5ed4e1);}for(const _0x4a0dd2 of _0x5c2b9c){const _0x22d604=_0x2dd75e['get'](_0x4a0dd2);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4a0dd2);const _0x1c0066=_0x431032['find'](_0x5ab58b=>this['uisData']['get'](_0x5ab58b)['filter'](_0x4a0dd2));_0x22d604!==_0x1c0066&&(_0x22d604&&this['uisData']['get'](_0x22d604)['collection']['remove'](_0x4a0dd2),_0x1c0066&&this['uisData']['get'](_0x1c0066)['collection']['add'](_0x4a0dd2));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x29a549){const _0x106180=[];for(const _0x20e2b5 of this['activeUIs']){(0x0,this['uisData']['get'](_0x20e2b5)['filter'])(_0x29a549)&&_0x106180['push'](_0x20e2b5);}if(_0x106180['length']>0x1)throw new _0x50bda('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x106180,'annotationType':_0x29a549['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x12db8a){super(_0x12db8a);const _0x40461b=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 _0x290ee8(),this['focusCycler']=new _0x35defd({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x40461b['to']('class')],'style':{'minHeight':_0x40461b['to']('minHeight',_0x205238=>'number'==typeof _0x205238?_i(_0x205238+0xa):null)},'dir':_0x12db8a['uiLanguageDirection'],'role':'application','aria-label':N(_0x12db8a,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x12db8a,'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',_0x44785e=>{this['_updateItemPositionInFocusables'](_0x44785e['source']);}),this['list']['forEach'](_0x2ad95c=>{this['focusTracker']['add'](_0x2ad95c['element']),this['_updateItemPositionInFocusables'](_0x2ad95c);}),this['list']['on']('change',(_0x586536,_0x567895)=>{for(const _0x5d73de of _0x567895['removed'])this['focusTracker']['remove'](_0x5d73de['element']),this['focusables']['remove'](_0x5d73de);for(const _0x85dd48 of _0x567895['added'])this['focusTracker']['add'](_0x85dd48['element']),this['_updateItemPositionInFocusables'](_0x85dd48);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x491837){const _0x4f1f52=this['focusables']['getIndex'](_0x491837);let _0x38251f,_0x174457;for(const _0x5c854e of this['focusables'])if(_0x491837['top']<_0x5c854e['top']){_0x38251f=_0x5c854e;break;}if(_0x174457=_0x38251f?this['focusables']['getIndex'](_0x38251f):this['focusables']['length'],-0x1!==_0x4f1f52){if(_0x4f1f52===_0x174457-0x1)return;this['focusables']['remove'](_0x491837),_0x174457=_0x38251f?this['focusables']['getIndex'](_0x38251f):this['focusables']['length'];}this['focusables']['add'](_0x491837,_0x174457);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x2ed0f0){super(_0x2ed0f0),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x4ff34a,_0x153636)=>_0x4ff34a+_0x153636),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x2961e3=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x2961e3['to']('isAnimationDisabled',_0x2b67dd=>_0x2b67dd?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x2961e3['to']('top',_0x292c29=>Ot(_0x292c29))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x14eb37=this['element']['clientHeight'];_0x14eb37&&(this['height']=_0x14eb37);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0xdc4a0a{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ed0ea){super(_0x2ed0ea),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 _0x255a6d=this['context']['config']['get']('sidebar.container');_0x255a6d&&this['setContainer'](_0x255a6d);}['setContainer'](_0xaba6a0){if(!g(_0xaba6a0))throw new _0x50bda('sidebar-setcontainer-invalid-element');this['container']=_0xaba6a0;}['_attachToContainer']({viewClass:_0x54ce85='',spaceBetweenItems:_0x22c397=0x19}={}){if(!g(this['container']))throw new _0x50bda('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x54ce85,this['_spaceBetweenItems']=_0x22c397;}['rearrange']({removedAnnotation:_0x2a2c6d,previousAnnotation:_0x197083,nextAnnotation:_0x5237f1}){const _0x252a68=this['getSidebarItemView'](_0x2a2c6d);this['view']['list']['remove'](_0x252a68),this['_destroySidebarItemView'](_0x2a2c6d),_0x197083&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x197083)),_0x5237f1&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x5237f1)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x67a1a3,activatedAnnotation:_0x4a90db,disableAnimationOnActivatedAnnotation:_0x53316f}){if(this['_activeAnnotation']=_0x4a90db,_0x67a1a3){_0x67a1a3['isActive']=!0x1;const _0x221e93=this['getSidebarItemView'](_0x67a1a3);_0x221e93&&_0x53316f&&(_0x221e93['isAnimationDisabled']=!0x1);}if(_0x4a90db){const _0xd10aea=this['getSidebarItemView'](_0x4a90db);_0xd10aea&&(_0x4a90db['isActive']=!0x0,_0x53316f&&(_0xd10aea['isAnimationDisabled']=!0x0,_0xd10aea['top']+=0x1),this['_alignToTargetRect'](_0xd10aea));}}['_detachFromContainer'](_0x43d26e){if(this['view']['element']['remove'](),_0x43d26e){for(const _0x58f8c5 of _0x43d26e)this['_destroySidebarItemView'](_0x58f8c5);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x1e8e97,_0x32a569){_0x32a569||(_0x32a569=_0x1e8e97['view']);const _0xc1d889=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0xc1d889,_0x1e8e97),this['_annotationToSidebarItemView']['set'](_0x1e8e97,_0xc1d889),_0xc1d889['content']['add'](_0x32a569),this['listenTo'](_0x1e8e97['view'],'change:targetRect',(_0x2dfa25,_0x4499f4,_0x1f43d9)=>{const _0x5f583c=this['_getTargetTop'](_0x1e8e97,_0x1f43d9);_0xc1d889['_targetTop']!=_0x5f583c&&(_0xc1d889['_targetTop']=_0x5f583c,this['_setItemTop'](_0xc1d889,_0x5f583c));}),this['listenTo'](_0xc1d889,'change:top',()=>{this['_recalculate'](_0xc1d889,'top');}),this['listenTo'](_0xc1d889,'change:bottom',()=>{this['_recalculate'](_0xc1d889,'bottom');}),this['_alignToTargetRect'](_0xc1d889);const _0x3c039d=this['_getItemBefore'](_0xc1d889);if(_0x3c039d)this['_alignAfterItem'](_0x3c039d,_0xc1d889)||this['_alignToTargetRect'](_0xc1d889);else this['_alignToTargetRect'](_0xc1d889);return this['_updateLastItem'](),this['view']['list']['add'](_0xc1d889),_0xc1d889;}['_alignForTopChange'](_0x5564e6){if(!_0x5564e6['content']['length'])return;const _0x1b4c30=this['_getItemBefore'](_0x5564e6);if(!_0x1b4c30)return;const _0x50a993=this['_sidebarItemViewToAnnotation']['get'](_0x1b4c30),_0x512036=this['_activeAnnotation'];_0x512036&&_0x512036===_0x50a993?this['_alignAfterItem'](_0x1b4c30,_0x5564e6):this['_alignBeforeItem'](_0x5564e6,_0x1b4c30);}['_alignForBottomChange'](_0x4d7e3d){if(!_0x4d7e3d['content']['length'])return;const _0x2d567b=this['_getItemAfter'](_0x4d7e3d);if(!_0x2d567b)return;const _0x129d1f=this['_sidebarItemViewToAnnotation']['get'](_0x2d567b),_0x32221b=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x20e194=this['_activeAnnotation'];_0x20e194&&_0x20e194===_0x129d1f&&_0x32221b?(this['_alignBeforeItem'](_0x2d567b,_0x4d7e3d),this['_alignAfterItem'](_0x4d7e3d,_0x2d567b)):_0x20e194&&_0x20e194===_0x129d1f?this['_alignBeforeItem'](_0x2d567b,_0x4d7e3d):this['_alignAfterItem'](_0x4d7e3d,_0x2d567b);}['_recalculate'](_0x18a97a,_0x1019d3){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x3061e3,changedProp:_0x58ecc1}of this['_recalculateBuffer'])'top'===_0x58ecc1?this['_alignForTopChange'](_0x3061e3):this['_alignForBottomChange'](_0x3061e3);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x18a97a,'changedProp':_0x1019d3});}['getSidebarItemView'](_0x3ecb51){return this['_annotationToSidebarItemView']['get'](_0x3ecb51);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x3976d6){const _0x38c25c=this['getSidebarItemView'](_0x3976d6);this['stopListening'](_0x38c25c),this['stopListening'](_0x3976d6['view']),_0x38c25c['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x3976d6),this['_sidebarItemViewToAnnotation']['delete'](_0x38c25c);}['_createSidebarView'](){const _0x33e09a=new H(this['context']['locale']);return _0x33e09a['render'](),this['on']('change:_lastItem',(_0x1a18fa,_0x1625c2,_0x3220f7,_0x2b45de)=>{_0x2b45de&&_0x33e09a['unbind']('minHeight'),_0x3220f7?_0x33e09a['bind']('minHeight')['to'](_0x3220f7,'bottom'):_0x33e09a['minHeight']=null;}),_0x33e09a;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x2fa81b){const _0x2306ab=this['_sidebarItemViewToAnnotation']['get'](_0x2fa81b),_0x380fcd=_0x2306ab&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2306ab)-0x1);return _0x380fcd&&this['getSidebarItemView'](_0x380fcd)||null;}['_getItemAfter'](_0x457284){const _0x206da6=this['_sidebarItemViewToAnnotation']['get'](_0x457284),_0x27df3a=_0x206da6&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x206da6)+0x1);return _0x27df3a&&this['getSidebarItemView'](_0x27df3a)||null;}['_alignBeforeItem'](_0x54c2d2,_0x24ee3e){_0x54c2d2['updateHeight']();const _0x46c224=G(_0x24ee3e['bottom']+this['_spaceBetweenItems'],_0x54c2d2['top']);return!!_0x46c224&&(this['_setItemTop'](_0x24ee3e,_0x24ee3e['top']-_0x46c224),!0x0);}['_alignAfterItem'](_0x43bb96,_0x15213b){_0x43bb96['updateHeight']();const _0x2bf085=G(_0x43bb96['bottom']+this['_spaceBetweenItems'],_0x15213b['top']);return!!_0x2bf085&&(this['_setItemTop'](_0x15213b,_0x15213b['top']+_0x2bf085,!0x1),!0x0);}['_alignToTargetRect'](_0x5b93b9){const _0x133762=this['_sidebarItemViewToAnnotation']['get'](_0x5b93b9);if(!_0x133762||!_0x133762['target']||!_0x133762['targetRect'])return;const _0x460c6c=this['_getTargetTop'](_0x133762,_0x133762['targetRect']);this['_setItemTop'](_0x5b93b9,_0x460c6c);}['_getTargetTop'](_0x5bc181,_0x254603){if(null===_0x254603)return 0x0;if(_0x5bc181['target']instanceof _0x5ba026)return _0x254603['top'];{const _0x27ccbf=new _0x5ba026(this['view']['element'])['top'];return _0x254603['top']-_0x27ccbf;}}['_setItemTop'](_0xf28560,_0x6849e7,_0x5e68d3=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x5e68d3&&(_0x6849e7=Math['max'](_0x6849e7,this['_getMaxAvailableTop'](_0xf28560))),_0xf28560['top']=_0x6849e7;}['_getMaxAvailableTop'](_0x5e1091){let _0x434d72=this['_getItemBefore'](_0x5e1091),_0x1141c8=0x0;for(;_0x434d72;)_0x434d72['updateHeight'](),_0x1141c8+=this['_spaceBetweenItems']+_0x434d72['height'],_0x434d72=this['_getItemBefore'](_0x434d72);return _0x1141c8;}}function G(_0x5a708f,_0x3195dc){return Math['max'](_0x5a708f-_0x3195dc,0x0);}function g(_0x314840){return null!==_0x314840&&'object'==typeof _0x314840&&0x1===_0x314840['nodeType'];}class e extends _0xdc4a0a{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4780cb){super(_0x4780cb),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x5db265(),this['_refreshPositioningDebounced']=_0x1a15c5(()=>{_0x4780cb['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x3e2ba8=this['context']['plugins']['get'](j),_0x5d3c9c=this['context']['plugins']['get'](z);_0x3e2ba8['register']('wideSidebar',this),_0x5d3c9c['container']&&_0x3e2ba8['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x9c7c0d){if(_0x9c7c0d===this['activeAnnotation'])return;const _0x7fe4a5=this['context']['plugins']['get'](z);_0x7fe4a5['_activeAnnotation']=_0x9c7c0d;const _0x2e73fa=this['activeAnnotation'];_0x7fe4a5['refresh']({'blurredAnnotation':_0x2e73fa,'activatedAnnotation':_0x9c7c0d}),this['activeAnnotation']=_0x9c7c0d;}['attach'](_0x4b1254){this['annotations']=_0x4b1254;const _0x4d0974=this['context']['plugins']['get'](z);if(_0x4d0974['_annotations']=_0x4b1254,this['isAttached'])throw new _0x50bda('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4d0974,'set:container',()=>{this['detach'](),this['listenTo'](_0x4d0974,'change:container',_0x986444=>{_0x986444['off'](),this['attach'](_0x4b1254);});}),_0x4d0974['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x58b391=_0x23a70d=>{_0x23a70d['updateTargetRect'](),_0x4d0974['addAnnotation'](_0x23a70d);};for(const _0xb67da5 of _0x4b1254)_0x58b391(_0xb67da5);this['listenTo'](_0x4b1254,'add',(_0x13edbc,_0x314a4b)=>{_0x58b391(_0x314a4b);}),this['listenTo'](_0x4b1254,'remove',(_0x4685ef,_0x3c9b6a,_0x1389ee)=>{_0x4d0974['rearrange']({'removedAnnotation':_0x3c9b6a,'previousAnnotation':_0x4b1254['get'](_0x1389ee-0x1),'nextAnnotation':_0x4b1254['get'](_0x1389ee+0x1)}),_0x3c9b6a===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x4b1254,'focus',(_0x125c00,_0x173f56)=>{this['setActiveAnnotation'](_0x173f56);}),this['listenTo'](_0x4b1254,'blur',()=>{this['setActiveAnnotation'](null);});const _0x7e9e6c=this['context']instanceof _0x4e2cdd?this['context']['editors']:new _0x5db265([this['context']]);for(const _0x4f754f of _0x7e9e6c)this['_integrateWithEditorAnnotations'](_0x4f754f);this['listenTo'](_0x7e9e6c,'add',(_0x51e521,_0x1d7a4a)=>{this['listenTo'](_0x1d7a4a,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1d7a4a);});}),this['listenTo'](_0x7e9e6c,'remove',(_0x195118,_0x4f77a0)=>{_0x4f77a0['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4f77a0['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x50bda('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x4566cc=this['context']['plugins']['get'](z);_0x4566cc['_detachFromContainer'](this['annotations']),this['stopListening'](_0x4566cc),this['stopListening'](this['annotations']),this['context']instanceof _0x4e2cdd&&this['stopListening'](this['context']['editors']);for(const _0x1c8d71 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1c8d71);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x577551){if(!_0x577551['plugins']['has']('EditorAnnotations'))return;const _0x2f3998=_0x577551['plugins']['get']('EditorAnnotations'),_0x313ed3=()=>{const _0xeba0c0=_0x2f3998['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0xeba0c0[0x0]||null);};this['listenTo'](_0x2f3998,'refresh',_0x313ed3),this['listenTo'](_0x2f3998,'blur',(_0xd8de8b,{isAnnotationTracked:_0x2dbd54})=>{this['activeAnnotation']&&_0x2dbd54(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2f3998,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x36c4ff=>{_0x2f3998['hasDomSelection']()&&(_0x313ed3(),_0x36c4ff['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2f3998);}['_destroyEditorAnnotationsIntegration'](_0x3dfc15){this['stopListening'](_0x3dfc15),this['_editorAnnotations']['remove'](_0x3dfc15);}}class C extends _0x5281d3{['counterView'];constructor(_0x4458b7){super(_0x4458b7);const _0x451c8b=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x205615,_0x39fba9)=>_0x205615?'...':_0x39fba9['toString']()),this['set']('annotationType',''),this['icon']=_0x376438,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x451c8b['to']('annotationType',_0x383fe3=>'ck-annotation-counter__badge--'+_0x383fe3),_0x451c8b['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x451c8b['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0xdc4a0a{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3697e5){super(_0x3697e5),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x442c7d())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x5db265(),this['_refreshPositioningDebounced']=_0x1a15c5(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x28988b(this['context']['locale']),this['balloonPanelView']=new _0x10e711(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x44bdb4){this['annotations']=_0x44bdb4;const _0x4054c9=this['context']['plugins']['get'](z),_0x238158=this['balloonPanelView'];if(_0x4054c9['_annotations']=_0x44bdb4,this['isAttached'])throw new _0x50bda('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4054c9,'set:container',()=>{this['detach'](),this['listenTo'](_0x4054c9,'change:container',_0x2e9ae8=>{_0x2e9ae8['off'](),this['attach'](_0x44bdb4);});}),_0x4054c9['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x3f261a=_0x10e87f=>{const _0x5ea263=new C(this['context']['locale']);_0x4054c9['addAnnotation'](_0x10e87f,_0x5ea263),this['_annotationToNarrowView']['set'](_0x10e87f,_0x5ea263),_0x5ea263['bind']('isDirty','annotationType','number')['to'](_0x10e87f['view'],'isDirty','type','length'),_0x5ea263['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x238158['content']['first']!==_0x10e87f['view']?(this['_showBalloon'](_0x10e87f),_0x10e87f['view']['element']['focus'](),this['setActiveAnnotation'](_0x10e87f)):this['setActiveAnnotation'](null);});};for(const _0x2102dd of _0x44bdb4)_0x3f261a(_0x2102dd);this['listenTo'](_0x44bdb4,'add',(_0xa574da,_0x3da7b0)=>{_0x3f261a(_0x3da7b0);}),this['listenTo'](_0x44bdb4,'remove',(_0x33c2f5,_0x3b2702,_0x4eae4c)=>{this['_annotationToNarrowView']['get'](_0x3b2702)['destroy'](),this['_annotationToNarrowView']['delete'](_0x3b2702),_0x4054c9['rearrange']({'removedAnnotation':_0x3b2702,'previousAnnotation':_0x44bdb4['get'](_0x4eae4c-0x1),'nextAnnotation':_0x44bdb4['get'](_0x4eae4c+0x1)}),_0x3b2702===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x44bdb4,'focus',(_0x564e2a,_0x13f95d)=>{this['setActiveAnnotation'](_0x13f95d);}),this['listenTo'](_0x44bdb4,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x40268f,_0x1bdbdf)=>{_0x1bdbdf['keyCode']===_0x228f4b['esc']&&_0x238158['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x238158['content']['first']),this['_hideBalloon'](),_0x1bdbdf['stopPropagation'](),_0x1bdbdf['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x2001c5,_0xdbed61)=>{const _0x4ea230=_0xdbed61['target'];_0x238158['isVisible']&&_0x238158['element']['contains'](_0x4ea230)||_0x4054c9['view']['element']['contains'](_0x4ea230)||_0x2001c5['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x149385=>_0x149385['contains'](_0x4ea230))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x2151e2=this['context']instanceof _0x4e2cdd?this['context']['editors']:new _0x5db265([this['context']]);for(const _0x15b5e3 of _0x2151e2)this['_integrateWithEditorAnnotations'](_0x15b5e3);this['listenTo'](_0x2151e2,'add',(_0x267af5,_0x922a76)=>{this['listenTo'](_0x922a76,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x922a76);});}),this['listenTo'](_0x2151e2,'remove',(_0x47b317,_0x9a5af0)=>{_0x9a5af0['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x9a5af0['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x35f06c){if(_0x35f06c===this['activeAnnotation'])return;const _0xc67df6=this['context']['plugins']['get'](z);if(_0xc67df6['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x35f06c,'disableAnimationOnActivatedAnnotation':!0x0}),_0x35f06c)_0xc67df6['getSidebarItemView'](_0x35f06c)?this['_showBalloon'](_0x35f06c):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x35f06c;}['detach'](){if(!this['isAttached'])throw new _0x50bda('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x205f3a=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x5ba42d=>_0x5ba42d['destroy']()),this['_annotationToNarrowView']['clear'](),_0x205f3a['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x4e2cdd&&this['stopListening'](this['context']['editors']);for(const _0x156d39 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x156d39);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'](_0x1d4387){if(!_0x1d4387['plugins']['has']('EditorAnnotations'))return;const _0x31f0c8=_0x1d4387['plugins']['get']('EditorAnnotations'),_0x2842df=this['context']['plugins']['get'](z),_0x4d1d94=this['annotations'],_0x1ac787=this['balloonPanelView'],_0xdc1246=()=>{const _0x37e509=_0x31f0c8['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x37e509),this['setActiveAnnotation'](_0x37e509[0x0]||null);};this['listenTo'](_0x31f0c8,'refresh',_0xdc1246),this['listenTo'](_0x31f0c8,'blur',(_0x32d95a,{isAnnotationTracked:_0x297718})=>{this['activeAnnotation']&&_0x297718(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x31f0c8,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x4d1d94,'blur',_0x593c61=>{_0x31f0c8['hasDomSelection']()&&_0x593c61['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x5b33ea,_0x4439ee)=>{const _0x16e734=_0x4439ee['target'];_0x1ac787['isVisible']&&_0x1ac787['element']['contains'](_0x16e734)||_0x2842df['view']['element']['contains'](_0x16e734)||this['activeAnnotation']&&_0x31f0c8['hasDomSelection']()&&(_0xdc1246(),_0x5b33ea['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x31f0c8);}['_destroyEditorAnnotationsIntegration'](_0x3fa49f){_0x3fa49f&&(this['stopListening'](_0x3fa49f),this['_editorAnnotations']['remove'](_0x3fa49f));}['_setSelectedAnnotations'](_0x3bb693){for(const _0x40a4df of this['_selectedAnnotations'])_0x3bb693['includes'](_0x40a4df)||this['_manuallyClosedAnnotationViews']['delete'](_0x40a4df['view']);this['_selectedAnnotations']=_0x3bb693;}['_refreshPositioning'](){const _0x2ee6ae=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x2ee6ae['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x47484b){if(this['_manuallyClosedAnnotationViews']['has'](_0x47484b['view']))return;const _0x247bf7=this['balloonPanelView']['content']['first'];_0x247bf7!==_0x47484b['view']?(_0x247bf7&&this['_detachListeners'](_0x247bf7),this['_attachListeners'](_0x47484b['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x47484b['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x3a3538=this['balloonPanelView']['content']['first'],_0x5e2220=_0x3a3538&&this['annotations']['getByView'](_0x3a3538);if(!_0x5e2220||!this['_annotationToNarrowView']['has'](_0x5e2220))return;const _0x2e828f=this['_annotationToNarrowView']['get'](_0x5e2220)['element'],_0x4add0e=(function(){const _0x4c6467=_0x10e711['defaultPositions'];return[_0x4c6467['southArrowNorthEast'],_0x4c6467['northArrowSouthEast'],_0x4c6467['southArrowNorth'],_0x4c6467['northArrowSouth'],_0x4c6467['southArrowNorthWest'],_0x4c6467['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x2e828f,'positions':_0x4add0e});}['_hideBalloon'](){const _0x4ba623=this['balloonPanelView'],_0x5e178a=_0x4ba623['content']['first'];_0x5e178a&&(this['_detachListeners'](_0x5e178a),_0x4ba623['unpin'](),_0x4ba623['content']['clear']());}['_attachListeners'](_0x5dce45){this['listenTo'](_0x5dce45,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x5dce45,'Esc',(_0x23eb61,_0x125bdc)=>{this['_manuallyClosedAnnotationViews']['add'](_0x5dce45),this['_hideBalloon'](),_0x125bdc();});}['_detachListeners'](_0x143263){this['stopListening'](_0x143263);}}class c extends _0x44affe{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x2433e3,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47f2c4){super(_0x47f2c4),_0x47f2c4['editing']['view']['addObserver'](_0x1cd994),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x47f2c4['plugins']['get'](_0x2433e3),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x24ab89=this['editor']['plugins']['get'](j);_0x24ab89['context']===this['editor']&&(_0x24ab89['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x17e677,_0x2ecc13)=>{const _0x557e76=this['_balloon'];if(this['isAttached']&&_0x557e76['visibleView']){const _0x1b8dea=this['annotations']['getByView'](_0x557e76['visibleView']);_0x1b8dea&&this['_closeAnnotation'](_0x1b8dea),_0x2ecc13();}}));}['afterInit'](){const _0x16f590=this['editor']['plugins']['get'](j);_0x16f590['context']===this['editor']&&(_0x16f590['hasActive']()||_0x16f590['switchTo']('inline'));}['setActiveAnnotation'](_0x1f61b5){_0x1f61b5!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x1f61b5&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x1f61b5)&&this['_addAnnotationToBalloon'](_0x1f61b5,!0x0),_0x1f61b5['isActive']=!0x0),_0x1f61b5||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x1f61b5);}['attach'](_0x15d73d){this['annotations']=_0x15d73d;const _0x680ab0=this['editor']['plugins']['get'](j),_0x579b6f=this['_balloon'];if(this['isAttached'])throw new _0x50bda('inlineannotations-attach-already-attached',this);if(_0x680ab0['context']!==this['editor'])throw new _0x50bda('inlineannotations-not-allowed-with-context',this);const _0x456e8b=this['editor']['plugins']['get'](b);this['listenTo'](_0x456e8b,'refresh',()=>{const _0x551eb9=_0x456e8b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x1c2d21,_0x31dee7;!this['_forceRefresh']&&(_0x1c2d21=_0x551eb9,_0x31dee7=this['_selectedAnnotations'],_0x1c2d21['length']===_0x31dee7['length']&&_0x1c2d21['every'](_0x52599d=>_0x31dee7['includes'](_0x52599d)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x551eb9),this['setActiveAnnotation'](_0x551eb9[0x0]||null));}),this['listenTo'](_0x456e8b,'blur',(_0xd4f49b,{isAnnotationTracked:_0xf696c5})=>{this['activeAnnotation']&&_0xf696c5(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x5e5eba,_0x481809,_0x34763e)=>{_0x34763e||this['setActiveAnnotation'](null);}),this['listenTo'](_0x15d73d,'remove',(_0x3174c9,_0x19c508)=>{this['_removeAnnotationFromBalloon'](_0x19c508),_0x19c508===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x579b6f,'change:visibleView',(_0x186122,_0x5746b1,_0x2e66e6,_0x4361ad)=>{_0x4361ad&&this['stopListening'](_0x4361ad);const _0x16fa53=_0x15d73d['getByView'](_0x2e66e6);_0x2e66e6&&_0x16fa53&&(this['listenTo'](_0x2e66e6,'change:height',()=>{_0x579b6f['updatePosition']();}),this['listenTo'](_0x2e66e6,'Esc',()=>{this['_closeAnnotation'](_0x16fa53),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x16fa53&&this['setActiveAnnotation'](_0x16fa53));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x579b6f['visibleView']&&(_0x15d73d['getByView'](_0x579b6f['visibleView'])&&_0x579b6f['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 _0x50bda('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x5b10f7 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x5b10f7);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x219725){for(const _0x55d786 of this['_selectedAnnotations'])_0x219725['includes'](_0x55d786)||this['_manuallyClosed']['delete'](_0x55d786);for(const _0x53f585 of this['annotations'])_0x219725['includes'](_0x53f585)||this['_removeAnnotationFromBalloon'](_0x53f585);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x72082 of _0x219725)this['_addAnnotationToBalloon'](_0x72082);}this['_selectedAnnotations']=_0x219725;}['_addAnnotationToBalloon'](_0x3b0180,_0x1a7862=!0x1){this['_manuallyClosed']['has'](_0x3b0180)||(this['_addedAnnotations']['has'](_0x3b0180)||this['_balloon']['hasView'](_0x3b0180['view'])||(this['_addedAnnotations']['add'](_0x3b0180),this['_balloon']['add']({'stackId':_0x3b0180['view']['id'],'view':_0x3b0180['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x3b0180)}})),_0x1a7862&&this['_balloon']['showStack'](_0x3b0180['view']['id']));}['_getBalloonTargetForAnnotation'](_0x2feead){const _0x4559bd=_0x2feead['target'],_0x4a2db7=this['editor']['editing']['view'],_0x3a32f3=_0x4a2db7['document']['selection']['getFirstRange'](),_0x3eee48=_0x4a2db7['domConverter']['viewRangeToDom'](_0x3a32f3);if(_0x3eee48['collapse'](!0x0),_0x4559bd){if(_0x4559bd instanceof _0x5ba026)return _0x4559bd;let _0x3ce337=[];for(const _0x25c589 of _0x4559bd)_0x3ce337['push'](...F(_0x25c589['getClientRects']()));_0x3ce337=function(_0x365ecc){const _0x214ce0=[];let _0x30db76=_0x365ecc[0x0];for(let _0x57e221=0x1;_0x57e221<_0x365ecc['length'];_0x57e221++)P(_0x30db76,_0x365ecc[_0x57e221])?_0x30db76['width']+=_0x365ecc[_0x57e221]['width']:(_0x214ce0['push'](_0x30db76),_0x30db76=_0x365ecc[_0x57e221]);return _0x214ce0['push'](_0x30db76),_0x214ce0;}(_0x3ce337);const _0x2698c0=_0x3eee48['getBoundingClientRect']();return _0x3ce337['find'](_0x3709fd=>_0x3709fd['top']<=_0x2698c0['top']&&_0x3709fd['bottom']>=_0x2698c0['bottom']&&_0x3709fd['left']<=_0x2698c0['left']&&_0x3709fd['right']>=_0x2698c0['right'])||_0x3ce337[0x0];}return _0x2feead['targetRect']||_0x3eee48;}['_removeAnnotationFromBalloon'](_0x41569d){this['_addedAnnotations']['has'](_0x41569d)&&this['_balloon']['hasView'](_0x41569d['view'])&&(this['_addedAnnotations']['delete'](_0x41569d),this['_balloon']['remove'](_0x41569d['view']));}['_closeAnnotation'](_0xfbe10){this['_manuallyClosed']['add'](_0xfbe10),this['_removeAnnotationFromBalloon'](_0xfbe10);}}function F(_0x3de9a4){return Array['from'](_0x3de9a4)['map'](DOMRect['fromRect']);}function P(_0x5c2087,_0x15a4f1){return _0x5c2087['top']===_0x15a4f1['top']&&_0x5c2087['bottom']===_0x15a4f1['bottom']&&_0x5c2087['right']===_0x15a4f1['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x48bb25,_0x31642b){super(_0x48bb25),this['set']('isEmpty',!_0x31642b['length']),this['focusTracker']=new _0x290ee8(),this['_annotationViews']=_0x31642b,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x35defd({'focusables':_0x31642b,'focusTracker':this['focusTracker']}),this['listenTo'](_0x31642b,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x31642b,'remove',(_0x4d2167,_0x34c2e8)=>{_0x34c2e8['isActive']&&this['focus'](),_0x31642b['length']||(this['isEmpty']=!0x0);});const _0x7877a5=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x48bb25,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x31642b},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x7877a5['if']('isEmpty','ck-hidden',_0x4a1565=>!_0x4a1565)]},'children':[{'text':N(_0x48bb25,'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 _0x4574a8 of this['_annotationViews'])this['focusTracker']['add'](_0x4574a8['element']);this['_annotationViews']['on']('change',(_0xfba346,{added:_0x122467,removed:_0x144ea3})=>{for(const _0x322dc1 of _0x122467)this['focusTracker']['add'](_0x322dc1['element']);for(const _0x4f28a7 of _0x144ea3)this['focusTracker']['remove'](_0x4f28a7['element']);});}}class p extends _0xdc4a0a{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x496bb5){super(_0x496bb5),this['archivedThreads']=new _0x5db265();}['init'](){const _0x2f164c=this['context'],_0x5662c8=_0x2f164c['plugins']['get'](o),_0x2b3dc3=_0x2f164c['plugins']['get'](y);this['listenTo'](_0x5662c8,'addCommentThread',(_0x1ac86d,{threadId:_0x413a57})=>{const _0xcbfe50=_0x5662c8['getCommentThread'](_0x413a57);_0xcbfe50['archivedAt']&&this['archivedThreads']['add'](_0xcbfe50,this['_calculatePosition'](_0xcbfe50['archivedAt'])),this['listenTo'](_0xcbfe50,'change:archivedAt',(_0x33cf97,_0x3bea46,_0xfdce5b)=>{_0xfdce5b?this['archivedThreads']['has'](_0xcbfe50)||this['archivedThreads']['add'](_0xcbfe50,this['_calculatePosition'](_0xcbfe50['archivedAt'])):this['archivedThreads']['has'](_0xcbfe50)&&this['archivedThreads']['remove'](_0xcbfe50);});}),this['listenTo'](_0x5662c8,'removeCommentThread',(_0x2accec,{threadId:_0x2c5180})=>{const _0x4e8629=_0x5662c8['getCommentThread'](_0x2c5180);this['stopListening'](_0x4e8629),this['archivedThreads']['has'](_0x4e8629)&&this['archivedThreads']['remove'](_0x4e8629);},{'priority':'highest'}),this['listenTo'](_0x2b3dc3['collection'],'focus',(_0x49290d,_0x29255c)=>{_0x29255c['isVisible']||(_0x29255c['isActive']=!0x0,_0x2b3dc3['activate'](_0x29255c));});}['_calculatePosition'](_0x1d9f0d){const _0x177ec3=[...this['archivedThreads']]['findIndex'](_0x37708b=>_0x37708b['archivedAt']<_0x1d9f0d);return _0x177ec3>-0x1?_0x177ec3:this['archivedThreads']['length'];}}class a extends _0x44affe{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x38f7c8];}constructor(_0x113f0d){super(_0x113f0d),this['annotationViews']=new _0x47b0f9(),this['_pendingThreads']=[];}['init'](){const _0x5bb7ad=this['editor'],_0x12d846=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x5bb7ad['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x5281d3,!0x0)),_0x5bb7ad['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x1afa20=this['_createCommentsArchiveButton'](_0x4695c5);return _0x1afa20['set']({'role':'menuitemcheckbox'}),_0x1afa20;});const _0x2453c4=_0x5bb7ad['plugins']['get'](p),_0x105464=_0x5bb7ad['plugins']['get']('Annotations'),_0x4745e5=_0x5bb7ad['plugins']['get']('CommentsRepository');_0x2453c4['archivedThreads']['forEach'](_0x39d246=>{this['_handleNewThread'](_0x39d246);}),this['listenTo'](_0x2453c4['archivedThreads'],'add',(_0x2f3400,_0x2b7ac0)=>{this['_handleNewThread'](_0x2b7ac0);}),this['listenTo'](_0x105464['collection'],'add',(_0x19e17c,_0x13293e)=>{const _0x29e9f4=this['_pendingThreads']['find'](_0x51f493=>{const _0x29f9d2=_0x4745e5['_threadToController']['get'](_0x51f493);return _0x29f9d2&&_0x13293e['innerView']===_0x29f9d2['view'];});if(_0x29e9f4){const _0x3c318b=this['_calculatePosition'](_0x29e9f4['archivedAt']);this['_addAnnotationToArchive'](_0x13293e,_0x3c318b),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x29e9f4),0x1);}}),this['listenTo'](_0x2453c4['archivedThreads'],'remove',(_0x417ec8,_0x317701)=>{const _0x56ea6f=_0x5bb7ad['config']['get']('collaboration.channelId');if(!_0x56ea6f||_0x317701['channelId']===_0x56ea6f){if(this['_pendingThreads']['includes'](_0x317701))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x317701),0x1);else{const _0x578363=_0x4745e5['_threadToController']['get'](_0x317701),_0x4dcc51=_0x105464['getByInnerView'](_0x578363['view']);this['annotationViews']['remove'](_0x4dcc51['view']),this['stopListening'](_0x4dcc51),this['stopListening'](_0x4dcc51['focusableElements']);}}}),this['listenTo'](_0x105464['collection'],'add',(_0x1b308f,_0xe19620)=>{this['listenTo'](_0xe19620,'escape',_0x12d846);}),this['listenTo'](_0x105464['collection'],'remove',(_0x4c3931,_0x11d22b)=>{this['stopListening'](_0x11d22b,'escape',_0x12d846);});}['_addAnnotationToArchive'](_0x57ca83,_0x222476){this['listenTo'](_0x57ca83,'set:isVisible',_0x15ee11=>{_0x15ee11['return']=!0x1,_0x15ee11['stop']();}),this['annotationViews']['add'](_0x57ca83['view'],_0x222476);}['_handleNewThread'](_0x115f45){const _0x2bd288=this['editor']['plugins']['get']('CommentsRepository'),_0x51f202=this['editor']['plugins']['get']('Annotations'),_0x4c40f9=this['editor']['config']['get']('collaboration.channelId');if(!_0x4c40f9||_0x115f45['channelId']===_0x4c40f9){const _0x3f21b2=_0x2bd288['_threadToController']['get'](_0x115f45);if(!_0x3f21b2)return void this['_pendingThreads']['push'](_0x115f45);const _0x3ddef5=this['_calculatePosition'](_0x115f45['archivedAt']),_0xe2ef99=_0x51f202['getByInnerView'](_0x3f21b2['view']);_0xe2ef99['isVisible']&&_0x51f202['_visibleAnnotations']['remove'](_0xe2ef99),this['_addAnnotationToArchive'](_0xe2ef99,_0x3ddef5);}}['_calculatePosition'](_0x1c554b){const _0x4d6766=this['editor']['config']['get']('collaboration.channelId'),_0x3b782b=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x2d240b=>_0x2d240b['channelId']===_0x4d6766)['findIndex'](_0x5d01d9=>_0x5d01d9['archivedAt']<_0x1c554b);return _0x3b782b<0x0||_0x3b782b>this['annotationViews']['length']?this['annotationViews']['length']:_0x3b782b-0x1;}['_toggleDialog'](){const _0x175a4a=this['editor'],_0x490d8b=_0x175a4a['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x175a4a['locale'],this['annotationViews'])),'commentsArchive'===_0x490d8b['id']?_0x490d8b['hide']():_0x490d8b['show']({'id':'commentsArchive','title':N(_0x175a4a['locale'],'COMMENTS_ARCHIVE'),'icon':_0x4c1629,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x2077cc['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x35a387,_0x25fb5d=!0x1){const _0x24457c=this['editor']['locale'],_0x58948f=this['editor']['plugins']['get']('Dialog'),_0x5c2e84=new _0x35a387(_0x24457c);return _0x5c2e84['bind']('isEnabled')['to'](this,'isEnabled'),_0x5c2e84['bind']('isOn')['to'](_0x58948f,'id',_0x36335d=>'commentsArchive'===_0x36335d),_0x5c2e84['set']({'label':N(_0x24457c,'COMMENTS_ARCHIVE'),'icon':_0x4c1629,'isToggleable':!0x0}),_0x25fb5d&&(_0x5c2e84['tooltip']=!0x0),this['listenTo'](_0x5c2e84,'execute',()=>this['_toggleDialog']()),_0x5c2e84;}['_hideDialogOnAnnotationEscape']=_0x343449=>{const _0x4f9312=_0x343449['source'];if(!this['annotationViews']['has'](_0x4f9312['view']))return;const _0x4582aa=this['editor']['plugins']['get']('Dialog');_0x4582aa['isOpen']&&'commentsArchive'===_0x4582aa['id']&&(_0x4582aa['hide'](),_0x343449['stop']());};}class gi extends _0x44affe{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};
23
+ import{Editor as _0xf60486,ContextPlugin as _0x4b682f,PendingActions as lt,Command as _0x14f0aa,Plugin as _0xc00a87,Context as _0x5d9522}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x70c1ad,uid as _0x2e35e1,KeystrokeHandler as jt,FocusTracker as _0x22fbb8,diff as _0x11ee0c,Collection as _0x236aed,Rect as _0x2767ff,CKEditorError as _0x4000c2,first as _0x507315,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x5743fa,keyCodes as _0x46e1a0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x1eb990,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x3a5e2f,trimHtml as ts,LateFocusDropdownButtonView as _0x3735fe,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x433cbb}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x51e02f}from'es-toolkit/compat';import{IconUndo as _0x15be80,IconCheck as _0x2ad987,IconPencil as _0x4eaf7c,IconRemoveComment as _0x415646,IconThreeVerticalDots as _0x243f07,IconAddComment as _0x2a98df,IconCommentsArchive as _0x5d05ce}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x329626,ButtonView as _0x19a4ce,ViewCollection as _0x12e523,createDropdown as _0x27ddc6,ListView as _0x4af2d5,focusChildOnDropdownOpen as _0x5631c1,ListItemView as _0x3f5f88,MenuBarMenuListItemButtonView as _0x171cc0,BodyCollection as _0x5a1f0d,BalloonPanelView as _0x46579c,ContextualBalloon as _0x296170,Dialog as _0x1972a5,DialogViewPosition as _0x20ca1c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0xf0bc54}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0xb096fc}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x32dbb5}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x70c1ad(){['model'];['view'];constructor(_0x3f346a,_0x468cf4){super(),this['model']=_0x3f346a,this['model']['_isAttached']=!0x0,this['view']=_0x468cf4,this['listenTo'](_0x468cf4,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x468cf4,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x468cf4,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x468cf4,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x468cf4,'addComment',(_0x3f9582,_0x513688)=>this['addComment'](_0x513688)),this['listenTo'](_0x468cf4,'updateComment',(_0x4ec6c7,_0x2b7ea6,_0x126d9f)=>this['updateComment'](_0x2b7ea6,_0x126d9f)),this['listenTo'](_0x468cf4,'removeComment',(_0xb0e4ef,_0x3bc207)=>this['removeComment'](_0x3bc207));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x580d5c){this['model']['addComment']({'content':_0x580d5c,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x132eed,_0x4ae474){this['model']['getComment'](_0x132eed)['update']({'content':_0x4ae474});}['removeComment'](_0x1af6f7){this['model']['getComment'](_0x1af6f7)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0xc33ea0,_0x2f4cb7,_0x186d67){const t=_0xc33ea0['t'];switch(_0x2f4cb7){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'},_0x186d67);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'},_0x186d67);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'},_0x186d67);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'},_0x186d67);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x186d67);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'},_0x186d67);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'},_0x186d67);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'},_0x186d67);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Rt extends $t{['main'];['editable'];constructor(_0xb2b353,_0x89a705){super(_0xb2b353);const _0x16c165=_0x2e35e1();this['main']=this['createCollection'](),this['editable']=new Vt(_0xb2b353,_0x89a705,void 0x0,{'label':()=>N(_0xb2b353,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0xb2b353['uiLanguageDirection'],'lang':_0xb2b353['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x16c165},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Et extends Ut{['view'];constructor(_0x4b68ac){super(_0x4b68ac),this['view']=new Rt(_0x4b68ac['locale'],_0x4b68ac['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x3c99e5=this['editor']['editing']['view'],_0x13f549=this['view']['editable'],_0x1462db=_0x3c99e5['document']['getRoot']();_0x13f549['name']=_0x1462db['rootName'],this['view']['render']();const _0x139cf3=_0x13f549['element'];this['setEditableElement'](_0x13f549['name'],_0x139cf3),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3c99e5['attachDomRoot'](_0x139cf3),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
+ _0x70c1ad(_0xf60486){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x5597c8={}){function _0x2d30f3(_0x93ed77){return _0x93ed77['map'](_0x42b712=>String['fromCharCode'](_0x42b712))['join']('');}(_0x5597c8=Object['assign']({},_0x5597c8))['plugins']||(_0x5597c8['plugins']=hs['defaultPlugins']),super(_0x5597c8),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x2d30f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d30f3([0x76,0x69,0x65,0x77])][_0x2d30f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d30f3([0x61,0x75,0x74,0x6f]),this[_0x2d30f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2d30f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d30f3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2d30f3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2d30f3([0x6f,0x6b])});}['create'](){const _0x4ac5c6=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x4ac5c6))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x436b62=>{const _0x44c5e1=this['model']['document']['getRoot'](),_0x317be8=_0x44c5e1&&_0x44c5e1['getChild'](_0x44c5e1['childCount']-0x1);_0x436b62['setSelection'](_0x317be8,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x2ae3f7=this['editing']['view'],_0x12a3a3=_0x2ae3f7['document']['getRoot'](),_0x3174dc=_0x12a3a3['getChild'](0x0);_0x12a3a3['childCount']>0x1||!_0x3174dc||'p'!=_0x3174dc['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x2ae3f7,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3174dc['placeholder']=this['placeholder']),Ft({'view':_0x2ae3f7,'element':_0x3174dc,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3174dc);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x3fd855,_0x40aacd={}){super(_0x3fd855),this['editor']=null,this['_editorConfig']=_0x40aacd,this['set']('value',_0x40aacd['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x3fd855,'Reply...')),this['set']('submitLabel',N(_0x3fd855,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x22fbb8(),this['focusCycler']=new _0x329626({'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',(_0x56cf91,_0x596001)=>{this['cancelButtonView']['fire']('execute'),_0x596001();}),this['keystrokes']['set']('Ctrl+Enter',(_0x27bdb5,_0x30581c)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x30581c());}),this['on']('submit',(_0x1cb218,_0x26b8c2)=>{_0x26b8c2['length']>0xfde8?(alert(N(_0x3fd855,'TOO_LONG_COMMENT_ALERT',[_0x26b8c2['length'],0xfde8])),_0x1cb218['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x3aae5b=this['editor'];this['element']['insertBefore'](_0x3aae5b['ui']['element'],this['element']['firstChild']),_0x3aae5b['model']['document']['on']('change',()=>this['value']=_0x3aae5b['getData']()),_0x3aae5b['bind']('placeholder')['to'](this),this['focusables']['add'](_0x3aae5b['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x2170bb){-0x1===_0x2170bb?(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:_0x56f402}=this,_0x50a1a1=new _0x19a4ce(_0x56f402);return _0x50a1a1['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x50a1a1['withText']=!0x0,_0x50a1a1['bind']('label')['to'](this,'submitLabel'),_0x50a1a1['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x50a1a1['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x171af,_0x58429e)=>!_0x58429e&&!!_0x171af['trim']()),_0x50a1a1;}['_createCancelButton'](){const {locale:_0x564002}=this,_0xf8f0cb=new _0x19a4ce(_0x564002);return _0xf8f0cb['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0xf8f0cb['label']=N(_0x564002,'Cancel'),_0xf8f0cb['withText']=!0x0,_0xf8f0cb['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0xf8f0cb;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x39efd4=>{this['focusTracker']['add'](_0x39efd4['element']);}),this['focusables']['on']('change',(_0x2fdb19,_0xb9b04)=>{for(const _0x4bba8e of Array['from'](_0xb9b04['added'])['reverse']())this['focusTracker']['add'](_0x4bba8e['element']);});}}class ie extends kt{constructor(_0x44f7e9,_0x333abe,_0x1b0d4d){super(_0x44f7e9),this['commentInputView']=new es(_0x44f7e9,_0x1b0d4d),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x2f776e,_0x34b9f2)=>_0x2f776e||!!_0x34b9f2),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 _0x1eb990(_0x44f7e9,_0x333abe),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'](_0x51e35c){this['commentInputView']['focus'](_0x51e35c);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x8a527b,_0x5885dc)=>{const {submitButtonView:_0x27a3f6,cancelButtonView:_0x14df86,editor:_0x15f6d4}=this['commentInputView'];[_0x27a3f6['element'],_0x14df86['element'],_0x15f6d4?_0x15f6d4['editing']['view']['getDomRoot']():null]['filter'](_0x40faab=>_0x40faab)['some'](_0x130013=>_0x130013['contains'](_0x5885dc['target']))||(this['focus'](),_0x5885dc['preventDefault']());});}}class rs extends kt{constructor(_0x4f5404){super(_0x4f5404);const _0x112b5a=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x112b5a['to']('count',_0x3b4b6b=>N(_0x4f5404,'NUMBER_OF_COMMENTS',_0x3b4b6b))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x2f041e,_0x4ffda1,_0x59939a){super(_0x2f041e);const _0x439297=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x4ffda1['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x4ffda1,this['_config']=_0x59939a,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x22fbb8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x329626({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x23415a=>this['commentViews']['map'](_0x1988e0=>_0x1988e0['element'])['includes'](_0x23415a['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x2f041e),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x24891c=>_0x24891c-this['_config']['maxCommentsWhenCollapsed']);for(const _0x6cf611 of _0x4ffda1['comments'])this['_handleNewCommentModel'](_0x6cf611);this['_handleInfoComment'](),this['listenTo'](_0x4ffda1['comments'],'add',(_0x2d101a,_0x598541)=>{const _0x4f188d=this['_calculatePosition'](_0x598541);this['length']++,this['_handleNewCommentModel'](_0x598541,_0x4f188d),this['refreshVisibleViews']();}),this['listenTo'](_0x4ffda1['comments'],'remove',(_0x351703,_0x2b0413)=>{this['length']--,this['_handleRemoveCommentModel'](_0x2b0413),this['refreshVisibleViews']();}),this['listenTo'](_0x4ffda1,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x4ffda1,'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',_0x439297['if']('length','ck-hidden',_0x52ae17=>!_0x52ae17)],'aria-label':N(_0x2f041e,'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'](_0x217800){-0x1===_0x217800?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0xa0751 of this['commentViews'])_0xa0751['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x1bdd13,_0x1e82f6){const _0x481484=new this['_config']['CommentView'](this['locale'],_0x1bdd13,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x481484['viewUid']=_0x1bdd13['id'],_0x481484['delegate']('removeComment')['to'](this),_0x481484['delegate']('updateComment')['to'](this),_0x481484['delegate']('resolveCommentThread')['to'](this),_0x481484['delegate']('editorReady')['to'](this),_0x481484['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x481484,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x481484,_0x1e82f6);}['_calculatePosition'](_0x2df633){const _0x46bccb=this['_model']['_findOptimalIndex'](_0x2df633);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2df633['authoredAt']?_0x46bccb-0x1:_0x46bccb:_0x46bccb-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x1e60aa={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':N(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x1e60aa,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x1e60aa));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x5d8849){const _0x5bfef3=this['commentViews']['remove'](_0x5d8849['id']);this['stopListening'](_0x5bfef3),_0x5bfef3['isEditMode']&&this['_updateHasDirtyComment'](),_0x5bfef3['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x16eeb9=>_0x16eeb9['isEditMode']);}['_rearrangeCollapse'](){const _0x2951bd=function(_0x2ef2c0){const _0x2290e6=new _0x236aed();for(const _0x1f6b8a of _0x2ef2c0)_0x2290e6['add'](_0x1f6b8a);return _0x2290e6;}(this['commentViews']),_0x50b4db=this['_collapsedCommentsView']['count'];for(let _0x146590=0x1;_0x146590<=_0x50b4db;_0x146590++)_0x2951bd['remove'](0x1);for(const _0x10e5a4 of _0x2951bd)_0x10e5a4['collapse']();_0x50b4db>0x0&&_0x2951bd['add'](this['_collapsedCommentsView'],0x1),ns(_0x11ee0c(Array['from'](this['visibleViews']),Array['from'](_0x2951bd)),this['visibleViews'],_0x2951bd);}['_rearrangeExpand'](){ns(_0x11ee0c(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x3180f6 of this['visibleViews'])_0x3180f6['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x20a8bb=>{this['focusTracker']['add'](_0x20a8bb['element']),this['keystrokes']['listenTo'](_0x20a8bb['element']);}),this['commentViews']['on']('change',(_0x497707,_0x183ff9)=>{for(const _0x26fcd6 of _0x183ff9['removed'])this['focusTracker']['remove'](_0x26fcd6['element']),this['keystrokes']['stopListening'](_0x26fcd6['element']);for(const _0x327a2c of Array['from'](_0x183ff9['added'])['reverse']())this['focusTracker']['add'](_0x327a2c['element']),this['keystrokes']['listenTo'](_0x327a2c['element']);});}}function ns(_0x46ee01,_0x4e5685,_0x27f769){let _0x286ca5=0x0;for(const _0x542466 of _0x46ee01)switch(_0x542466){case'insert':_0x4e5685['add'](_0x27f769['get'](_0x286ca5),_0x286ca5),_0x286ca5++;break;case'delete':_0x4e5685['remove'](_0x286ca5);break;case'equal':_0x286ca5++;}}class oe extends kt{constructor(_0x252c05){super(_0x252c05);const _0x31432e=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x31432e['to']('contextValue',_0x471b10=>N(_0x252c05,'THREAD_CONTEXT_LABEL',_0x471b10)),'tabindex':-0x1},'children':[{'text':_0x31432e['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1c0272,_0x526aca){super(_0x1c0272);const _0x52391c=this['bindTemplate'];this['_model']=_0x526aca,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x22fbb8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x329626({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x2ca7c1=>!!_0x2ca7c1),this['bind']('contextValue')['to'](this['_model'],'context',_0x27e4da=>_0x27e4da&&_0x27e4da['value']?this['_trimContextValue'](_0x27e4da['value']):N(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x52391c['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 _0x7a6fdc=new _0x19a4ce(this['locale']);return _0x7a6fdc['label']=N(this['locale'],'Reopen'),_0x7a6fdc['tooltip']=N(this['locale'],'Reopen'),_0x7a6fdc['icon']=_0x15be80,_0x7a6fdc['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xff3bc1=>!_0xff3bc1),_0x7a6fdc['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x12c3cd,_0x2ad2ef)=>_0x12c3cd&&_0x2ad2ef),_0x7a6fdc['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x7a6fdc;}['_trimContextValue'](_0x17d968){if(_0x17d968['length']<0x96)return _0x17d968;const _0x1f119a=_0x17d968['lastIndexOf']('\x20',0x93);return _0x17d968['substring'](0x0,_0x1f119a>-0x1?_0x1f119a:0x93)+'...';}['_attachContextActions'](){const _0x855c70=this['element']['querySelector']('.ck-context'),_0x20ef60=_0x855c70['querySelector']('.ck-context__value');this['listenTo'](_0x855c70,'mouseenter',()=>{_0x20ef60['offsetWidth']<_0x20ef60['scrollWidth']&&_0x855c70['classList']['add']('overlay');}),this['listenTo'](_0x855c70,'mouseleave',()=>{_0x855c70['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x403e9f of this['focusables'])this['focusTracker']['add'](_0x403e9f['element']),this['keystrokes']['listenTo'](_0x403e9f['element']);}['_createContextView'](){const _0x4dfeab=new oe(this['locale']);return _0x4dfeab['bind']('contextValue')['to'](this),_0x4dfeab;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x4e854f,_0x5dd5c7,_0x252128,_0x4e8775){super(_0x4e854f),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x5dd5c7,this['_localUser']=_0x252128,this['_config']=_0x4e8775,this['commentThreadHeaderView']=new Xt(_0x4e854f,_0x5dd5c7),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x4e854f,N(_0x4e854f,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x4e854f,_0x5dd5c7,Object['assign']({'CommentView':this['_config']['CommentView']},_0x4e8775)),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',(_0x2d48ec,_0x3055f0)=>_0x2d48ec||!!_0x3055f0),this['bind']('isUnlinked')['to'](_0x5dd5c7,'unlinkedAt',_0x271b00=>!!_0x271b00),this['bind']('ariaLabel')['to'](this,'length',_0x4556ea=>{const _0x400d2b=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x4556ea,_0x400d2b]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x22fbb8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x329626({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4fa2e4=>_0x4fa2e4['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x1654b4=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x15b0aa=_0x1654b4['commentInputView'];return _0x1654b4['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x15b0aa,'value',(_0x2671d8,_0x54a46a,_0x1bacd7,_0x13d336,_0x44def5)=>!!_0x44def5||!!_0x13d336&&_0x1bacd7&&!_0x54a46a||_0x2671d8&&_0x1bacd7&&!_0x54a46a),_0x15b0aa['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5c03ab,_0x4c1c5b,_0x4a1abb)=>{let _0xb2f298;return _0xb2f298=_0x4a1abb&&_0x4c1c5b?'Reply\x20to\x20reopen\x20discussion...':_0x5c03ab?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0xb2f298);}),_0x15b0aa['bind']('submitLabel')['to'](this,'length',_0xa8f245=>N(this['locale'],_0xa8f245?'Reply':'Comment')),_0x15b0aa['on']('submit',(_0x1b9764,_0x3c50ab)=>{this['fire']('addComment',_0x3c50ab),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x15b0aa['on']('cancel',()=>{this['focus']();}),_0x15b0aa['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x15b0aa['on']('cancel',_0x3788ea=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3788ea['stop']());}),this['on']('change:isActive',(_0x53e57c,_0x379f65,_0x54a8e3)=>{_0x54a8e3||this['length']||_0x15b0aa['value']||this['fire']('removeCommentThread');}),_0x1654b4;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x4a5ee9,_0x202788,_0x213b61,_0x1aded2){super(_0x4a5ee9,_0x202788,_0x213b61,_0x1aded2),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x4a5ee9,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x2672d5,_0x2b1591,_0x595cff)=>{_0x595cff||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x42a56d,_0x5adf06,_0x599b57)=>{_0x599b57&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x24fa58=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x24fa58['if']('isActive','ck-thread--active'),_0x24fa58['if']('isUnlinked','ck-thread--unlinked'),_0x24fa58['to']('actionIndicator',_0xeb0dde=>_0xeb0dde?'ck-thread--'+_0xeb0dde:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x24fa58['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 _0x2107c0 of this['commentsListView']['commentViews'])_0x2107c0['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x32e7c9}=this,_0x321cd3=this['commentsListView']['commentViews']['get'](0x0);_0x321cd3===this['_boundFirstCommentView']||_0x321cd3['isSystemComment']||(this['_boundFirstCommentView']=_0x321cd3,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x321cd3,'actionIndicator',_0x296cde=>'remove'===_0x296cde?'remove':null),_0x321cd3['placeholder']=N(_0x32e7c9,'Write\x20a\x20comment...'),_0x321cd3['removeButton']['on']('execute',_0x374ce1=>{_0x374ce1['stop'](),this['showConfirm'](N(_0x32e7c9,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x321cd3['focus']();}),_0x321cd3['actionBar']['add'](this['resolveButton'],0x0),_0x321cd3['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x33f2b4=new _0x3a5e2f(this['locale']);return _0x33f2b4['label']=N(this['locale'],'Resolve'),_0x33f2b4['tooltip']=N(this['locale'],'Resolve'),_0x33f2b4['icon']=_0x2ad987,_0x33f2b4['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x33f2b4['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x45a827=>!_0x45a827),_0x33f2b4['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x19f930,_0x14aaf8)=>_0x19f930&&!_0x14aaf8),_0x33f2b4['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x33f2b4;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class is extends kt{constructor(_0x4dae1d){super(_0x4dae1d),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x16bd9c,_0x6a68ca,_0x1321f1)=>{this['element']['innerHTML']=_0x1321f1;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x387bf1,_0x493c56,_0x3b9a3d){super(_0x387bf1),this['_model']=_0x493c56,this['_config']=_0x3b9a3d,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x493c56,'content',_0x493c56,'authoredAt',(_0x42a96a,_0x55f6e7)=>N(_0x387bf1,'COMMENT_ARIA_LABEL',[_0x493c56['author']['name'],_0x3b9a3d['formatDateTime'](_0x55f6e7),new DOMParser()['parseFromString'](_0x42a96a,'text/html')['body']['textContent'],_0x493c56['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x387bf1,N(_0x387bf1,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x12e523(),this['focusTracker']=new _0x22fbb8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x329626({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x282e56=>_0x282e56['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):N(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):N(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x2911e1=new is(this['locale']);return _0x2911e1['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x1403b5,_0xfff799)=>_0xfff799?ts(_0x1403b5,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x1403b5),_0x2911e1;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x27f67c=new es(this['locale'],this['_config']['editorConfig']);return _0x27f67c['value']=this['_model']['content'],_0x27f67c['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x27f67c['submitLabel']=N(this['locale'],'Save'),_0x27f67c['on']('submit',(_0x278498,_0x11844e)=>{this['fire']('updateComment',this['_model']['id'],_0x11844e),this['switchToDisplayMode'](),this['focus']();}),_0x27f67c['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x27f67c['once']('editorReady',()=>{_0x27f67c['focus']();}),_0x27f67c['createEditor'](),_0x27f67c['delegate']('editorReady')['to'](this),_0x27f67c['delegate']('editorDestroyed')['to'](this),_0x27f67c;}['_setupKeyboardNavigation'](){const _0x4d2db2=this['element'];this['keystrokes']['listenTo'](_0x4d2db2);for(const _0x221e7d of this['focusables'])this['focusTracker']['add'](_0x221e7d['element']),this['keystrokes']['listenTo'](_0x221e7d['element']);this['focusables']['on']('change',(_0x2d7bb7,_0x1dd6e8)=>{for(const _0xc752b6 of _0x1dd6e8['removed'])this['focusTracker']['remove'](_0xc752b6['element']),this['keystrokes']['stopListening'](_0xc752b6['element']);for(const _0x375711 of _0x1dd6e8['added'])this['focusTracker']['add'](_0x375711['element']),this['keystrokes']['listenTo'](_0x375711['element']);}),this['keystrokes']['set']('enter',(_0x8fcb8a,_0xbea66f)=>{_0x4d2db2===_0x8fcb8a['target']&&(this['focusCycler']['focusFirst'](),_0xbea66f());}),this['keystrokes']['set']('esc',(_0x18fb50,_0x1bc926)=>{_0x4d2db2!==_0x18fb50['target']&&(this['focus'](),_0x1bc926());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x553b03,_0x5b463d,_0x12a758){super(_0x553b03,_0x5b463d,_0x12a758),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x553b03,'Reply...')),this['bind']('authoredAt')['to'](_0x5b463d),this['bind']('resolvedAt')['to'](_0x5b463d),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 _0x1eb990(_0x553b03,_0x5b463d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x5b463d,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3a3a7f=this['bindTemplate'],_0x3d671c=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x3a3a7f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3a3a7f['to']('authoredAt',_0x25a18b=>this['_config']['formatDateTime'](_0x25a18b))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x3a3a7f['if']('isEditMode','ck-comment__actions--hidden'),_0x3a3a7f['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']&&_0x3d671c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x3a3a7f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x3a3a7f['if']('isEditMode','ck-comment--edit'),_0x3a3a7f['if']('isSystemComment','ck-comment--info'),_0x3a3a7f['to']('actionIndicator',_0x5dfb3e=>_0x5dfb3e?'ck-comment--'+_0x5dfb3e:'')],'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':_0x3d671c}]}]};}['_createEditButton'](){const _0x193125=new _0x19a4ce(this['locale']);return _0x193125['label']=N(this['locale'],'Edit'),_0x193125['icon']=_0x4eaf7c,_0x193125['withText']=!0x0,_0x193125['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x193125['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x361b57=>!_0x361b57),_0x193125['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x193125['on']('execute',()=>this['switchToEditMode']()),_0x193125;}['_createRemoveButton'](){const _0x67d49c=new _0x19a4ce(this['locale']);return _0x67d49c['label']=N(this['locale'],'Remove'),_0x67d49c['icon']=_0x415646,_0x67d49c['withText']=!0x0,_0x67d49c['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x67d49c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x349816=>!_0x349816),_0x67d49c['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x67d49c['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x67d49c;}['_createDropdown'](){const _0x1efaf5=_0x27ddc6(this['locale'],_0x3735fe),_0x3a9834=_0x1efaf5['panelView']['children'],_0x20ce3a=new _0x4af2d5(this['locale']),_0x5f5346=_0x1efaf5['bindTemplate'];_0x5631c1(_0x1efaf5,()=>this['items']['find'](_0xef65cc=>_0xef65cc['isVisible'])),_0x1efaf5['extendTemplate']({'attributes':{'class':[_0x5f5346['if']('isVisible','ck-hidden',_0x410e90=>!_0x410e90)]}});const _0x5d84c1=(_0x50b037,_0x4dfaaa=-0x1)=>{const _0x68636c=new _0x3f5f88(this['locale']);_0x68636c['children']['add'](_0x50b037);const _0x122572=_0x4dfaaa>-0x1?_0x4dfaaa:_0x20ce3a['items']['length'];_0x20ce3a['items']['add'](_0x68636c,_0x122572);const _0xf635fb=Array['from'](this['items']);_0x1efaf5['unbind']('isEnabled','isVisible'),_0x1efaf5['bind']('isEnabled')['toMany'](_0xf635fb,'isEnabled',(..._0x22c806)=>_0x22c806['some'](_0x4d927b=>_0x4d927b)),_0x1efaf5['bind']('isVisible')['toMany'](_0xf635fb,'isVisible',(..._0x24d6d4)=>_0x24d6d4['some'](_0x461db1=>_0x461db1));};_0x1efaf5['panelPosition']='sw',_0x1efaf5['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x243f07});for(const _0x49de92 of this['items'])_0x5d84c1(_0x49de92);return _0x3a9834['add'](_0x20ce3a),_0x1efaf5['listenTo'](this['items'],'add',(_0x507b8d,_0x59f09a,_0x3983da)=>{_0x5d84c1(_0x59f09a,_0x3983da);}),_0x1efaf5['listenTo'](this['items'],'remove',(_0x1c026d,_0x53862b,_0x2beba3)=>{_0x20ce3a['items']['remove'](_0x2beba3);}),_0x1efaf5;}['_attachActions'](_0x15f737,_0x7a897f){const _0x399bc1=_0x15f737&&_0x15f737['element'];_0x399bc1&&(this['listenTo'](_0x399bc1,'mouseenter',()=>this['actionIndicator']=_0x7a897f),this['listenTo'](_0x399bc1,'focus',()=>this['actionIndicator']=_0x7a897f),this['listenTo'](_0x399bc1,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x399bc1,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x1321f9=super['_createCommentInputView']();return _0x1321f9['bind']('placeholder')['to'](this),_0x1321f9;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x5e63ea){const _0x12267a=Dt(_0x5e63ea,0x1e),_0x85f823=new MutationObserver(_0x1b448c=>{for(const _0x2acf67 of _0x1b448c)('attributes'==_0x2acf67['type']&&'class'==_0x2acf67['attributeName']||'childList'==_0x2acf67['type']||'characterData'==_0x2acf67['type'])&&_0x12267a();});return{'attach'(_0x123483){_0x85f823['observe'](_0x123483,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x85f823['disconnect'](),_0x12267a['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x16eb35,_0x2288f5){super(_0x16eb35),this['id']=_0x2e35e1(),this['focusTracker']=new _0x22fbb8(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x5e6573,_0x40d52d)=>this['fire']('Esc',_0x40d52d)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=xt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x2288f5),this['mainView']=_0x2288f5;const _0x5b81f8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x5b81f8['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 _0x277f47=this['element']['clientHeight'];_0x277f47&&(this['height']=_0x277f47);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x70c1ad(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x89802e,target:_0x1c9c9c,type:_0x391631,isVisible:_0x35f592=!0x0}){super(),this['view']=_0x89802e,this['view']['element']||this['view']['render'](),this['_type']=_0x391631,this['_target']=_0x1c9c9c,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x236aed([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x47a52b,_0x85ab78)=>{this['view']['focusTracker']['add'](_0x85ab78);}),this['focusableElements']['on']('remove',(_0x594d46,_0x205f37)=>{this['view']['focusTracker']['remove'](_0x205f37);}),this['set']('isVisible',_0x35f592);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x14b3fd=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x14b3fd),_0x14b3fd;}get['targetRect'](){const _0x6875e7=this['target'];if(null===_0x6875e7)return null;if(_0x6875e7 instanceof _0x2767ff)return _0x6875e7;const _0x26c024=_0x6875e7['filter'](_0x3a17b8=>function(_0x277d44){const _0x32f746=_0x277d44['offsetParent'];if(_0x32f746)return!0x0;const _0x1817b3=_0x277d44['getClientRects']()['item'](0x0);return!!_0x1817b3;}(_0x3a17b8));return 0x0===_0x26c024['length']?null:new _0x2767ff(_0x26c024[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3245b1){this['view']['isActive']=_0x3245b1,this['view']['mainView']['isActive']=_0x3245b1;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x466931){if(!(null===_0x466931||_0x466931 instanceof _0x2767ff||Array['isArray'](_0x466931)&&_0x466931['every'](_0x44f31c=>fi(_0x44f31c))))throw new _0x4000c2('annotation-invalid-target',null,{'target':_0x466931});}['_getNormalizedTarget'](){const _0x3f5544='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x3f5544)?[_0x3f5544]:_0x3f5544;}}function fi(_0x5b2266){return null!==_0x5b2266&&'object'==typeof _0x5b2266&&'nodeType'in _0x5b2266&&0x1===_0x5b2266['nodeType'];}class S extends _0x236aed{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x25c196=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x22fbb8(),this['_focusTracker']['on']('change:isFocused',(_0x56d4f0,_0x2f7c74,_0x1ca074)=>{_0x1ca074||this['fire']('blur');});for(const _0x2e965f of _0x25c196)this['add'](_0x2e965f);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x5e69c5){if(this['has'](_0x5e69c5))throw new _0x4000c2('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x5e69c5['innerView'],_0x5e69c5),this['_viewToAnnotation']['set'](_0x5e69c5['view'],_0x5e69c5);for(const _0x4c8010 of _0x5e69c5['focusableElements'])this['_focusTracker']['add'](_0x4c8010);this['listenTo'](_0x5e69c5['focusableElements'],'add',(_0x164533,_0xfd5b71)=>{this['_focusTracker']['add'](_0xfd5b71);}),this['listenTo'](_0x5e69c5['focusableElements'],'remove',(_0x2b6db1,_0x2a56b3)=>{this['_focusTracker']['remove'](_0x2a56b3);}),this['listenTo'](_0x5e69c5['view']['focusTracker'],'change:isFocused',(_0x1448cc,_0x42591d,_0x4a6708)=>{_0x4a6708&&this['fire']('focus',_0x5e69c5);}),_0x5e69c5['updateTargetRect']();const _0x2f3657=this['_getOrderInContent'](_0x5e69c5['view']['targetRect']);return super['add'](_0x5e69c5,_0x2f3657);}['remove'](_0x7c2eac){if(!this['has'](_0x7c2eac))throw new _0x4000c2('annotationcollection-not-existing-item',null);this['stopListening'](_0x7c2eac['view']['focusTracker']),this['stopListening'](_0x7c2eac['focusableElements']);for(const _0x47b738 of _0x7c2eac['focusableElements'])this['_focusTracker']['remove'](_0x47b738);return this['_viewToAnnotation']['delete'](_0x7c2eac['view']),this['_innerViewToAnnotation']['delete'](_0x7c2eac['innerView']),super['remove'](_0x7c2eac);}['getByInnerView'](_0x31ea9d){return this['_innerViewToAnnotation']['get'](_0x31ea9d);}['getByView'](_0x22f9e0){return this['_viewToAnnotation']['get'](_0x22f9e0);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x576d27 of this)_0x576d27['updateTargetRect']();this['_sort']();}['_sort'](){const _0x2d055c=Array['from'](this)['sort']((_0x57e4ee,_0x268ea1)=>w(_0x57e4ee['view']['targetRect'],_0x268ea1['view']['targetRect']));for(let _0x4189f9=_0x2d055c['length']-0x1;_0x4189f9>0x0;_0x4189f9--){const _0x38b9f8=_0x2d055c[_0x4189f9];_0x4189f9!==this['getIndex'](_0x38b9f8)&&(this['remove'](_0x38b9f8),this['add'](_0x38b9f8));}}['_getOrderInContent'](_0x442b5a){let _0x1ff187=0x0;if(!_0x442b5a)return this['length'];for(const _0x124224 of this){const _0x210af4=_0x124224['view']['targetRect'];if(_0x210af4){if(w(_0x442b5a,_0x210af4)<0x0)return _0x1ff187;_0x1ff187++;}}return _0x1ff187;}}function v({source:_0x56a40b,target:_0x319f4e,filter:_0x1506c7}){for(const _0x28e100 of _0x56a40b)_0x1506c7(_0x28e100)&&_0x319f4e['add'](_0x28e100);_0x319f4e['listenTo'](_0x56a40b,'add',(_0x100c0c,_0x5ea43e)=>{_0x1506c7(_0x5ea43e)&&_0x319f4e['add'](_0x5ea43e);}),_0x319f4e['listenTo'](_0x56a40b,'remove',(_0x4eeee1,_0x34b20b)=>{_0x319f4e['has'](_0x34b20b)&&_0x319f4e['remove'](_0x34b20b);});}function w(_0x4c4d55,_0x362a82){if(null===_0x4c4d55&&null===_0x362a82)return 0x0;if(null===_0x4c4d55)return-0x1;if(null===_0x362a82)return 0x1;const _0x18b8ef=_0x4c4d55['top']-_0x362a82['top'];return 0x0==_0x18b8ef?_0x4c4d55['left']-_0x362a82['left']:_0x18b8ef;}class y extends _0x4b682f{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbaf88f){if(super(_0xbaf88f),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0xbaf88f instanceof _0xf60486){const _0x3fc1a8=_0xbaf88f['locale'];_0xbaf88f['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x3fc1a8,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x3fc1a8,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x3fc1a8,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x3fc1a8,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x3fc1a8,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x3fc1a8,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x3fc1a8,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x325d1){this['collection']['add'](_0x325d1);}['remove'](_0x4e0838){this['collection']['remove'](_0x4e0838),_0x4e0838['destroy']();}['refreshVisibility'](){for(const _0x361b89 of this['collection'])_0x361b89['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x57778d){return this['collection']['getByInnerView'](_0x57778d);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x5b740d of this['collection'])_0x5b740d['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x5731b0){this['fire']('_activateAnnotation',_0x5731b0);}['createAnnotation'](_0x390719){return new T(_0x390719);}['createAnnotationView'](_0x2af8d3,_0x14119e){return new E(_0x2af8d3,_0x14119e);}['_addActiveAnnotation'](_0x1322ff){const _0x1d0d17=new Set(this['activeAnnotations']);_0x1d0d17['add'](_0x1322ff),this['activeAnnotations']=_0x1d0d17;}['_removeActiveAnnotation'](_0x2cd07b){const _0x2369f2=new Set(this['activeAnnotations']);_0x2369f2['delete'](_0x2cd07b),this['activeAnnotations']=_0x2369f2;}['_bindAnnotationsToVisibleAnnotations'](){const _0x3b29de=this['collection'],_0x35187b=this['_visibleAnnotations'];function _0x222f32(_0x247b0d){const _0x2c72cb=_0x247b0d['source'];_0x2c72cb['isVisible']&&!_0x35187b['has'](_0x2c72cb)?_0x35187b['add'](_0x2c72cb):!_0x2c72cb['isVisible']&&_0x35187b['has'](_0x2c72cb)&&_0x35187b['remove'](_0x2c72cb),_0x2c72cb['view']['focusTracker']['remove'](_0x2c72cb['view']['element']),_0x2c72cb['view']['focusTracker']['add'](_0x2c72cb['view']['element']);}this['listenTo'](_0x3b29de,'add',(_0x5904b5,_0x155aa5)=>{_0x155aa5['isVisible']&&_0x35187b['add'](_0x155aa5),this['listenTo'](_0x155aa5,'change:isVisible',_0x222f32);}),this['listenTo'](_0x3b29de,'remove',(_0x34ca19,_0x3214dd)=>{_0x35187b['has'](_0x3214dd)&&_0x35187b['remove'](_0x3214dd),this['stopListening'](_0x3214dd,'change:isVisible',_0x222f32);});}['_setupEnterAnnotationKeystroke'](){const _0x1fc73b=_0x5062db=>{_0x5062db['on']('ready',()=>{_0x5062db['keystrokes']['set'](_0xb096fc,(_0x2262b1,_0x4ff38d)=>{const _0x5ddd9d=_0x507315(this['activeAnnotations']['values']());_0x5ddd9d&&(_0x5ddd9d['view']['focus'](),_0x4ff38d());});});};this['context']instanceof _0xf60486?_0x1fc73b(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x567633,_0xca0fba)=>{_0x1fc73b(_0xca0fba);});}['_setupEscapeAnnotationHandling'](){const _0x5a79b4=_0xe0bbfa=>{const _0x3c79b7=_0xe0bbfa['source'],_0x4a5e3b=[];let _0x1e62a1;if(Array['isArray'](_0x3c79b7['target'])){_0x1e62a1=_0x3c79b7['target'][0x0],this['context']instanceof _0xf60486?_0x4a5e3b['push'](this['context']):this['context']['editors']&&_0x4a5e3b['push'](...this['context']['editors']);for(const _0x3582ed of _0x4a5e3b)for(const _0x31cf2c of _0x3582ed['editing']['view']['domRoots']['values']())if(_0x31cf2c['contains'](_0x1e62a1))return void _0x3582ed['editing']['view']['focus']();_0x1e62a1['focus']();}};this['listenTo'](this['collection'],'add',(_0x4df3e0,_0x4b70b9)=>{this['listenTo'](_0x4b70b9,'escape',_0x5a79b4,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x56385e,_0xd6e50d)=>{this['stopListening'](_0xd6e50d,'escape',_0x5a79b4);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x4b682f{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20c331){super(_0x20c331),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x3d81fd=this['context']['config'];_0x3d81fd['define']('comments.maxCommentsWhenCollapsed',0x2),_0x3d81fd['define']('comments.maxThreadTotalWeight',0x1f4),_0x3d81fd['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x3d81fd['define']('comments.CommentThreadView',gt),_0x3d81fd['define']('comments.CommentView',Tt),_0x3d81fd['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x55481e=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x894a8f,_0x56dc47)=>this['_addCommentThread'](_0x56dc47)),this['on']('submitCommentThread',(_0x1684f6,_0x462088)=>this['_submitCommentThread'](_0x462088)),this['on']('resolveCommentThread',(_0x1b7b7c,_0x3f72f2)=>this['_resolveCommentThread'](_0x3f72f2)),this['on']('resolveCommentThread',(_0x115a4a,_0x3d19b0)=>this['_updateActiveAnnotation'](_0x3d19b0),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x6c92f9,_0x35be3f)=>this['_reopenCommentThread'](_0x35be3f)),this['on']('reopenCommentThread',(_0xdffde3,_0x417ff3)=>this['_updateActiveAnnotation'](_0x417ff3),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x310a58,_0x11e638)=>this['_removeCommentThread'](_0x11e638)),this['on']('updateCommentThread',(_0x12f5ba,_0xe7d671)=>this['_updateCommentThread'](_0xe7d671)),this['on']('updateCommentThread',(_0x5f24ee,_0x35b42e)=>this['_updateActiveAnnotation'](_0x35b42e),{'priority':'lowest'}),this['on']('addComment',(_0x186cc0,_0x1eba57)=>this['_addComment'](_0x1eba57)),this['on']('updateComment',(_0x1a5e96,_0x4775c4)=>this['_updateComment'](_0x4775c4)),this['on']('removeComment',(_0x4f54cd,_0x26d6fc)=>this['_removeComment'](_0x26d6fc)),this['on']('addComment',(_0x45f084,{threadId:_0x500d8d,isFromAdapter:_0x2f8c64})=>{if(_0x2f8c64)return;const _0x517e9b=this['getCommentThread'](_0x500d8d),_0x58a1d7=_0x517e9b&&this['_threadToController']['get'](_0x517e9b);_0x58a1d7&&_0x58a1d7['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x55481e,'change:activeAnnotations',(_0x4c2822,_0x363163,_0x1f8ac2)=>{const _0x246743=Array['from'](_0x1f8ac2)['map'](_0x4a4af0=>this['_viewToController']['get'](_0x4a4af0['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x246743?_0x246743['model']:null;});}set['adapter'](_0x2c9acb){if(this['_adapter'])throw new _0x4000c2('commentsrepository-adapter-already-set');this['_adapter']=_0x2c9acb;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x21aaec=_t,threadId:_0x117bc1=_0x2e35e1(),comments:_0x301541=[],unlinkedAt:_0x3c6b7b=null,resolvedAt:_0xce14a4=null,resolvedBy:_0x3acce3=null,target:_0x47bda4=null,context:_0x56df83=null,attributes:_0x15677a={},isResolvable:_0x50ae81=!0x0,isSubmitted:_0x5bf74b=!0x1,isFromAdapter:_0x5e7943=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x21aaec),{'channelId':_0x21aaec,'threadId':_0x117bc1,'comments':_0x301541,'unlinkedAt':_0x3c6b7b,'resolvedAt':_0xce14a4,'resolvedBy':_0x3acce3,'target':_0x47bda4,'context':_0x56df83,'attributes':_0x15677a,'isFromAdapter':_0x5e7943,'isResolvable':_0x50ae81,'isSubmitted':_0x5bf74b}),this['getCommentThread'](_0x117bc1);}['openNewCommentThread']({channelId:_0x328bee=_t,threadId:_0x5e4e91=_0x2e35e1(),target:_0x16a917,context:_0x10d953=null,isResolvable:_0x286931=!0x0}){if(this['_readOnlyChannels']['has'](_0x328bee)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x16a917)throw new _0x4000c2('commentsrepository-missing-target');const _0xcdd271=this['addCommentThread']({'channelId':_0x328bee,'threadId':_0x5e4e91,'target':_0x16a917,'context':_0x10d953,'isResolvable':_0x286931});if(!_0xcdd271)return null;const _0x5da369=this['_threadToController']['get'](_0xcdd271),_0x25c982=_0x5da369['view']['commentThreadInputView']['commentInputView'],_0x15fef6=this['context']['plugins']['get'](y),_0x28d182=_0x15fef6['getByInnerView'](_0x5da369['view']);return _0x15fef6['activate'](_0x28d182),_0x25c982['once']('editorReady',()=>_0x25c982['focus']()),_0xcdd271;}['hasCommentThread'](_0x4096f4){if('string'!=typeof _0x4096f4)throw new _0x4000c2('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x4096f4);}['updateCommentThread']({channelId:_0x55c811=_t,threadId:_0x3af244,context:_0x3b44f1,unlinkedAt:_0x58f77a,attributes:_0x4c0dd3,isFromAdapter:_0xec7e52=!0x1}){return this['fire'](Nt('updateCommentThread',_0x55c811),{'channelId':_0x55c811,'threadId':_0x3af244,'context':_0x3b44f1,'unlinkedAt':_0x58f77a,'attributes':_0x4c0dd3,'isFromAdapter':_0xec7e52}),this['getCommentThread'](_0x3af244);}['getCommentThread'](_0x4fba81){if('string'!=typeof _0x4fba81)throw new _0x4000c2('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x4fba81);}['fetchCommentThread']({channelId:_0x1a3bd8,threadId:_0x1f08c7}={}){const _0x95380b=this['getCommentThread'](_0x1f08c7);if(_0x95380b)return Promise['resolve'](_0x95380b);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x4000c2('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x1a3bd8,'threadId':_0x1f08c7})['then'](_0x48ad1a=>this['hasCommentThread'](_0x1f08c7)?this['getCommentThread'](_0x1f08c7):_0x48ad1a?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x1a3bd8},_0x48ad1a)):void 0x0)['catch'](_0x20d30a=>{throw console['error'](_0x20d30a),new _0x4000c2('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x18d54a,skipNotAttached:_0x2278ce=!0x1,skipEmpty:_0x34e2ee=!0x1,toJSON:_0x31fcac=!0x1}={}){const _0x517f51=[];for(const _0x3683d4 of this['_threads']['values']())_0x18d54a&&_0x3683d4['channelId']!==_0x18d54a||_0x2278ce&&!_0x3683d4['isAttached']||_0x34e2ee&&0x0===_0x3683d4['length']||_0x517f51['push'](_0x3683d4);return _0x31fcac?_0x517f51['map'](_0xb2a3ed=>_0xb2a3ed['toJSON']()):_0x517f51;}['getAnnotationForCommentThread'](_0x38d09f){const _0x4c72e0=this['_threadToController']['get'](_0x38d09f);if(!_0x4c72e0)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x4c72e0['view'])||null;}['getCommentThreadForAnnotation'](_0x1030b1){const _0x777fd7=this['_viewToController']['get'](_0x1030b1['innerView']);return _0x777fd7?_0x777fd7['model']:null;}['setActiveCommentThread'](_0x17d863){const _0x502d60=this['context']['plugins']['get'](y);if(!_0x17d863)return void(this['activeCommentThread']&&_0x502d60['deactivateAll']());const _0x4eadd8=this['getCommentThread'](_0x17d863);if(!_0x4eadd8)throw new _0x4000c2('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x17d863});if(!this['_threadToController']['has'](_0x4eadd8))throw new _0x4000c2('commentsrepository-active-not-attached',null,{'threadId':_0x17d863});const _0x2b7397=_0x502d60['getByInnerView'](this['_threadToController']['get'](_0x4eadd8)['view']);_0x502d60['activate'](_0x2b7397);}['switchReadOnly'](_0x4b964c,_0x5d5975){_0x4b964c?this['_readOnlyChannels']['add'](_0x5d5975):this['_readOnlyChannels']['delete'](_0x5d5975),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x516a07){return this['_readOnlyChannels']['has'](_0x516a07)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x4b5bdb,_0x4d48f2){return new vt(_0x4b5bdb,_0x4d48f2);}['setPermissions'](_0x210380,_0x41a89a=_t){this['_permissions']['set'](_0x41a89a,_0x210380),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x3705c0=_t){return this['_permissions']['has'](_0x3705c0)?this['_permissions']['get'](_0x3705c0):bt;}['_addCommentThread']({channelId:_0x21bc9f,threadId:_0x24e1be,comments:_0x40d7fc,unlinkedAt:_0x4a10a9,resolvedAt:_0x4adc7f,resolvedBy:_0x430c58,target:_0x5862d1,context:_0x5f46a9,attributes:_0x3c993a,isFromAdapter:_0x46fc59,isResolvable:_0x264075,isSubmitted:_0x39d48f}){if('string'!=typeof _0x24e1be)throw new _0x4000c2('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x24e1be});if(this['hasCommentThread'](_0x24e1be))throw new _0x4000c2('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x24e1be});const _0x521eb2=new pi(this,{'channelId':_0x21bc9f,'id':_0x24e1be,'context':_0x5f46a9,'attributes':_0x3c993a,'unlinkedAt':_0x4a10a9,'resolvedAt':_0x4adc7f,'resolvedBy':_0x430c58?this['context']['plugins']['get'](it)['getUser'](_0x430c58):null,'isResolvable':_0x264075,'isSubmitted':_0x39d48f||_0x46fc59});this['_threads']['set'](_0x24e1be,_0x521eb2);for(const _0x51627c of _0x40d7fc)_0x521eb2['_add'](this['_createNewComment']({'threadId':_0x24e1be,..._0x51627c}));return _0x5862d1&&_0x521eb2['attachTo'](_0x5862d1),_0x46fc59||!_0x521eb2['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x21bc9f,'threadId':_0x24e1be});}['_submitCommentThread']({channelId:_0x34ed5a,threadId:_0x49391b}){if(!this['hasCommentThread'](_0x49391b))throw new _0x4000c2('commentsrepository-missing-comment-thread',this);const _0x270e77=this['getCommentThread'](_0x49391b);if(_0x270e77['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x5ee5be,comments:_0x3c701c,resolvedAt:_0x5a3a09,resolvedBy:_0x24934f,context:_0x51b33a,attributes:_0x52093a}=_0x270e77,_0x172566=this['context']['plugins']['get']('PendingActions'),_0x272f18=_0x172566['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x34ed5a,'threadId':_0x5ee5be,'comments':_0x3c701c['map'](_0x1b48f5=>_0x1b48f5['toJSON']()),'resolvedAt':_0x5a3a09,'resolvedBy':_0x24934f?_0x24934f['id']:_0x24934f,'context':_0x51b33a,'attributes':_0x52093a})['then'](({comments:_0x113c2b})=>{_0x172566['remove'](_0x272f18);for(const _0x824c8e of _0x113c2b)this['_updateComment']({'channelId':_0x34ed5a,'threadId':_0x49391b,'commentId':_0x824c8e['commentId'],'createdAt':_0x824c8e['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x49a02e=>{throw console['error'](_0x49a02e),new _0x4000c2('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x372fb1,target:_0x1d1b67}){const _0xb10278=this['getCommentThread'](_0x372fb1);if(!_0xb10278)throw new _0x4000c2('commentsrepository-attach-missing-comment-thread',this);const _0x20b6d7=this['context']['plugins']['get']('PendingActions'),_0x1a4b51=this['context']['plugins']['get'](y),_0x25a114=this['_createCommentThreadView'](_0xb10278),_0x4358c3=new vt(_0xb10278,_0x25a114);let _0x625834=null;_0x25a114['on']('change:isDirty',(_0x4136c8,_0x276a71,_0x126b5a)=>{_0x126b5a?_0x625834=_0x20b6d7['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x625834&&(_0x20b6d7['remove'](_0x625834),_0x625834=null);}),this['_threadToController']['set'](_0xb10278,_0x4358c3),this['_viewToController']['set'](_0x25a114,_0x4358c3);const _0xc08090=new E(this['context']['locale'],_0x25a114);_0xc08090['bind']('length')['to'](_0x25a114),_0xc08090['bind']('isDirty')['to'](_0x25a114,'isDirty',_0x25a114,'length',(_0x589aeb,_0x4982d4)=>_0x589aeb||!_0x4982d4),_0xc08090['bind']('isActive')['to'](_0x25a114),_0xc08090['type']='comment';const _0x1f3026=new T({'view':_0xc08090,'target':_0x1d1b67,'type':'comment','isVisible':!_0xb10278['archivedAt']&&!!('function'==typeof _0x1d1b67?_0x1d1b67():_0x1d1b67)});return _0x25a114['on']('escape',()=>{_0x1f3026['fire']('escape');}),this['_bindAnnotationToEditors'](_0x25a114,_0x1f3026),_0x1a4b51['add'](_0x1f3026),_0x1f3026;}['_bindAnnotationToEditors'](_0x48953f,_0x566c9d){this['listenTo'](_0x48953f,'editorReady',(_0x1eaed8,_0x320c92)=>{const _0xe99c59=_0x320c92['ui']['view']['body']['bodyCollectionContainer'];_0x566c9d['focusableElements']['add'](_0xe99c59),this['context']instanceof _0xf60486&&this['context']['ui']['focusTracker']['add'](_0xe99c59);},{'priority':'highest'}),this['listenTo'](_0x48953f,'editorDestroyed',(_0x1edcba,_0x3c1db8)=>{const _0x5e3ef8=_0x3c1db8['ui']['view']['body']['bodyCollectionContainer'];_0x566c9d['focusableElements']['has'](_0x5e3ef8)&&_0x566c9d['focusableElements']['remove'](_0x5e3ef8),this['context']instanceof _0xf60486&&this['context']['ui']['focusTracker']['remove'](_0x5e3ef8);});}['_unbindEditors'](_0x33b18c){this['stopListening'](_0x33b18c,'editorReady'),this['stopListening'](_0x33b18c,'editorDestroyed');}['_createCommentThreadView'](_0x5023a2){const _0x16004d=this['context']['plugins']['get'](it),{config:_0x1f71f8,locale:_0x43738a}=this['context'],_0x2293c0=pt(_0x1f71f8['get']('locale'),_0x43738a);return new(0x0,(_0x1f71f8['get']('comments'))['CommentThreadView'])(_0x43738a,_0x5023a2,_0x16004d['me'],{'editorConfig':{..._0x1f71f8['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x1f71f8['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x1f71f8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1f71f8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1f71f8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2293c0,'CommentView':_0x1f71f8['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x14d275,channelId:_0x5169de,resolvedAt:_0x29287e,resolvedBy:_0x22e9ca,isFromAdapter:_0x35e984}){if(!this['hasCommentThread'](_0x14d275))throw new _0x4000c2('commentsrepository-missing-comment-thread',null,{'threadId':_0x14d275});const _0x162016=this['getCommentThread'](_0x14d275);if(_0x162016['isResolved'])throw new _0x4000c2('commentsrepository-resolved-comment-thread',null,{'threadId':_0x14d275});const _0xeba651=this['context']['plugins']['get'](it);if(_0x162016['resolvedBy']=_0xeba651['getUser'](_0x22e9ca),_0x162016['resolvedAt']=_0x29287e,_0x35e984||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x1b741d=this['context']['plugins']['get']('PendingActions'),_0x27cb02=_0x1b741d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x5169de,'threadId':_0x14d275})['then'](({resolvedAt:_0x52415f,resolvedBy:_0x3e4d5b})=>{_0x1b741d['remove'](_0x27cb02),_0x162016['resolvedBy']['id']!==_0x3e4d5b&&(_0x162016['resolvedBy']=_0xeba651['getUser'](_0x3e4d5b)),_0x162016['resolvedAt']=_0x52415f;})['catch'](_0x324b91=>{throw console['error'](_0x324b91),new _0x4000c2('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x32f6ed,channelId:_0x3dd945,isFromAdapter:_0x169717}){if(!this['hasCommentThread'](_0x32f6ed))throw new _0x4000c2('commentsrepository-missing-comment-thread',null,{'threadId':_0x32f6ed});const _0x50231b=this['getCommentThread'](_0x32f6ed);if(!_0x50231b['isResolved'])throw new _0x4000c2('commentsrepository-reopen-comment-thread',null,{'threadId':_0x32f6ed});if(_0x50231b['resolvedBy']=null,_0x50231b['resolvedAt']=null,_0x169717||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x2753d7=this['context']['plugins']['get']('PendingActions'),_0x11a258=_0x2753d7['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x3dd945,'threadId':_0x32f6ed})['then'](()=>_0x2753d7['remove'](_0x11a258))['catch'](_0x4369fa=>{throw console['error'](_0x4369fa),new _0x4000c2('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x38bc34,isFromAdapter:_0x1a0ccc}){const _0x4c46be=this['getCommentThread'](_0x38bc34);if(!_0x4c46be)throw new _0x4000c2('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x38bc34),this['_threads']['delete'](_0x38bc34),!_0x4c46be['isSubmitted']||_0x1a0ccc||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5a8e88=this['context']['plugins']['get']('PendingActions'),{channelId:_0x300aab}=_0x4c46be,_0x550b1d=_0x5a8e88['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x300aab,'threadId':_0x38bc34})['then'](()=>_0x5a8e88['remove'](_0x550b1d))['catch'](_0x28f41f=>{throw console['error'](_0x28f41f),new _0x4000c2('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x4c77a9,unlinkedAt:_0x571b14,context:_0x4d5025,attributes:_0x164a49,isFromAdapter:_0x419c34}){if('string'!=typeof _0x4c77a9)throw new _0x4000c2('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4c77a9});if(!this['hasCommentThread'](_0x4c77a9))throw new _0x4000c2('commentsrepository-missing-comment-thread',null,{'threadId':_0x4c77a9});const _0x33416c=this['getCommentThread'](_0x4c77a9);let _0x268729=!0x1;if(void 0x0!==_0x4d5025&&_0x33416c['context']!==_0x4d5025&&(_0x33416c['context']=_0x4d5025,_0x268729=!0x0),void 0x0!==_0x571b14&&_0x33416c['unlinkedAt']!==_0x571b14&&(_0x33416c['unlinkedAt']=_0x571b14,_0x268729=!0x0),_0x164a49&&!At(_0x164a49,_0x33416c['attributes'])&&(_0x33416c['attributes']=_0x164a49,_0x268729=!0x0),!_0x268729)return Promise['resolve']();if(!_0x33416c['isSubmitted']||_0x419c34||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x4f96b2=this['context']['plugins']['get']('PendingActions'),{channelId:_0x56e8b2}=_0x33416c,_0x3fd826=_0x4f96b2['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x56e8b2,'threadId':_0x4c77a9,'context':_0x4d5025,'unlinkedAt':_0x571b14,'attributes':_0x164a49})['then'](()=>_0x4f96b2['remove'](_0x3fd826))['catch'](_0x2338b=>{throw console['error'](_0x2338b),new _0x4000c2('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x2e150d){const _0x1654d0=this['context']['plugins']['get'](y),_0x3f6299=this['getCommentThread'](_0x2e150d);if(_0x3f6299['_isAttached']=!0x1,this['_threadToController']['has'](_0x3f6299)){const _0x1f9f07=this['_threadToController']['get'](_0x3f6299),_0x39d386=_0x1f9f07['view'],_0x5555ea=_0x1654d0['getByInnerView'](_0x39d386);this['_threadToController']['delete'](_0x3f6299),this['_viewToController']['delete'](_0x39d386),_0x5555ea&&_0x1654d0['remove'](_0x5555ea),_0x1f9f07['destroy'](),_0x39d386['destroy']()['then'](()=>{this['_unbindEditors'](_0x39d386);});}}['_updateActiveAnnotation']({threadId:_0x46d69d,resolvedAt:_0x51502e,unlinkedAt:_0x9bab60}){const _0xa14487=!!_0x51502e,_0x451f36=this['context']['plugins']['get'](y),_0x211720=this['getCommentThread'](_0x46d69d);if(this['_threadToController']['has'](_0x211720)){const _0x30445d=this['_threadToController']['get'](_0x211720)['view'],_0x277d84=_0x451f36['getByInnerView'](_0x30445d);_0x277d84&&(_0xa14487&&_0x451f36['_removeActiveAnnotation'](_0x277d84),_0x9bab60?_0x277d84['isVisible']=!0x1:_0x277d84['refreshVisibility']());}}['_getExternalAuthor'](_0x3857f9){const _0x44bbf1=this['context']['plugins']['get'](it),_0x59bba8=It('external:'+_0x3857f9),_0xf5c1e7=_0x44bbf1['getUser'](_0x59bba8);return _0xf5c1e7||_0x44bbf1['addUser']({'id':_0x59bba8,'name':_0x3857f9});}['_createNewComment']({threadId:_0x2acc48,commentId:_0x84e023=_0x2e35e1(),content:_0xaa8a21,authorId:_0x246398,createdAt:_0x733ee0,attributes:_0x313416}){if('string'!=typeof _0x84e023)throw new _0x4000c2('commentsrepository-invalid-commentid');if('string'!=typeof _0x246398)throw new _0x4000c2('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0xaa8a21||!_0xaa8a21['trim']())throw new _0x4000c2('commentsrepository-invalid-comment-content');const _0x4546d8=this['context']['plugins']['get'](it)['getUser'](_0x246398);if(!_0x4546d8)throw new _0x4000c2('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x246398});let _0x1e5b21=null,_0x39c8ee=_0x733ee0;return _0x313416?.['@external']&&(_0x1e5b21=this['_getExternalAuthor'](_0x313416['@external']['authorName']),_0x39c8ee=new Date(_0x313416['@external']['createdAt'])),new wi(this,{'threadId':_0x2acc48,'id':_0x84e023,'author':_0x1e5b21||_0x4546d8,'creator':_0x4546d8,'content':_0xaa8a21,'createdAt':_0x733ee0,'authoredAt':_0x39c8ee,'attributes':_0x313416});}['_addComment'](_0x2a9acc){let {threadId:_0x7454fb,content:_0x36ae9b,attributes:_0x4db46f,isFromAdapter:_0x40f894}=_0x2a9acc;const _0x57d59b=this['getCommentThread'](_0x2a9acc['threadId']);if(!_0x57d59b)throw new _0x4000c2('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x4b22af=this['_createNewComment'](_0x2a9acc),{id:_0x20a008}=_0x4b22af;if(_0x57d59b['_add'](_0x4b22af),_0x40f894||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x57d59b['isSubmitted'])return Promise['resolve']();const _0x4b441d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3771e1}=_0x57d59b,_0x2d0d4f=_0x4b441d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x4db46f||(_0x4db46f={}),this['adapter']['addComment']({'channelId':_0x3771e1,'threadId':_0x7454fb,'commentId':_0x20a008,'content':_0x36ae9b,'attributes':_0x4db46f})['then'](_0x2e16af=>{_0x4b441d['remove'](_0x2d0d4f),_0x2e16af&&this['_updateComment']({'channelId':_0x3771e1,'threadId':_0x7454fb,'commentId':_0x20a008,'createdAt':_0x2e16af['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5cb130=>{throw console['error'](_0x5cb130),new _0x4000c2('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x1fb979,commentId:_0x344d69,content:_0x26acdd,createdAt:_0x4df7ff,attributes:_0x8200f6,isFromAdapter:_0x2cdcfe}){if(void 0x0!==_0x26acdd&&('string'!=typeof _0x26acdd||!_0x26acdd['trim']()['length']))throw new _0x4000c2('commentsrepository-update-comment-invalid-content');const _0x4831ae=this['getCommentThread'](_0x1fb979),_0x1bf03b=_0x4831ae['getComment'](_0x344d69);if(!_0x1bf03b)throw new _0x4000c2('commentsrepository-update-missing-comment',this);let _0x2c161b=!0x1;if(_0x26acdd&&_0x26acdd!==_0x1bf03b['content']&&(_0x1bf03b['isEditable']||_0x2cdcfe)&&(_0x1bf03b['content']=_0x26acdd,_0x2c161b=!0x0),_0x4df7ff&&_0x4df7ff!==_0x1bf03b['createdAt']&&(_0x1bf03b['createdAt']=_0x4df7ff,_0x1bf03b['attributes']&&_0x1bf03b['attributes']['@external']||(_0x1bf03b['authoredAt']=_0x4df7ff),_0x2c161b=!0x0),_0x8200f6&&!At(_0x8200f6,_0x1bf03b['attributes'])&&(_0x1bf03b['attributes']=_0x8200f6,_0x2c161b=!0x0),!_0x2c161b)return Promise['resolve']();if(_0x4831ae['fire']('commentUpdated'),_0x2cdcfe||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x2f40ae=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1df232}=this['getCommentThread'](_0x1bf03b['threadId']),_0x520ca0=_0x2f40ae['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x1df232,'threadId':_0x1fb979,'commentId':_0x344d69,'content':_0x26acdd,'attributes':_0x8200f6})['then'](()=>_0x2f40ae['remove'](_0x520ca0))['catch'](_0x55d652=>{throw console['error'](_0x55d652),new _0x4000c2('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x48ea02,commentId:_0x5a8e23,isFromAdapter:_0x2b74b6}){const _0x3559ce=this['getCommentThread'](_0x48ea02),_0x44fe82=_0x3559ce['getComment'](_0x5a8e23);if(!_0x44fe82)throw new _0x4000c2('commentsrepository-remove-missing-comment',this);if(_0x3559ce['_remove'](_0x44fe82),_0x2b74b6||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x2ed214=this['context']['plugins']['get']('PendingActions'),{channelId:_0x549c25}=_0x3559ce,_0x5d501f=_0x2ed214['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x549c25,'threadId':_0x48ea02,'commentId':_0x5a8e23})['then'](()=>_0x2ed214['remove'](_0x5d501f))['catch'](_0x1d5a6d=>{throw console['error'](_0x1d5a6d),new _0x4000c2('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x70c1ad(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0xa07b4c,_0x18d8ae){super();const _0x33f32a=_0x18d8ae['isResolvable'];this['channelId']=_0x18d8ae['channelId'],this['id']=_0x18d8ae['id'],this['comments']=new _0x236aed(),this['_repository']=_0xa07b4c,this['_isAttached']=!0x1,this['_isSubmitted']=_0x18d8ae['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0xa07b4c,'_permissions',_0xa07b4c,'_readOnlyChannels',()=>_0xa07b4c['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0xa07b4c,'_permissions',()=>_0xa07b4c['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0xa07b4c,'_permissions',()=>{const _0xdcbd0a=_0xa07b4c['getPermissions'](this['channelId']);return _0xdcbd0a['write']||_0xdcbd0a['admin'];}),this['bind']('isResolvable')['to'](_0xa07b4c,'_permissions',()=>_0x33f32a&&_0xa07b4c['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x18d8ae['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x22a6ff,_0x12ec4d)=>_0x22a6ff?_0x12ec4d?_0x22a6ff<_0x12ec4d?_0x22a6ff:_0x12ec4d:_0x22a6ff:_0x12ec4d),this['set']('unlinkedAt',_0x18d8ae['unlinkedAt']||null),this['set']('resolvedAt',_0x18d8ae['resolvedAt']||null),this['set']('resolvedBy',_0x18d8ae['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x259ce4=>!!_0x259ce4),this['set']('attributes',_0x18d8ae['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x243929,_0x24c259)=>_0x243929+_0x24c259['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x5f5662,id:_0x21671f}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x5f5662),{'channelId':_0x5f5662,'threadId':_0x21671f});}['setUnlinkedAt'](_0x4d3ac9){this['_update']({'unlinkedAt':_0x4d3ac9});}['resolve']({resolvedAt:_0x183cad=new Date(),resolvedBy:_0x36364f='',isFromAdapter:_0x3008da=!0x1}={}){const _0x212e68=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x4e6f9d,id:_0x16e1af}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x4e6f9d),{'channelId':_0x4e6f9d,'threadId':_0x16e1af,'resolvedAt':_0x183cad,'resolvedBy':_0x36364f||_0x212e68['id'],'isFromAdapter':_0x3008da});}['reopen']({isFromAdapter:_0x1b21e4=!0x1}={}){const {channelId:_0x4fd896,id:_0x22580f}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x4fd896),{'channelId':_0x4fd896,'threadId':_0x22580f,'isFromAdapter':_0x1b21e4});}['setContext'](_0x44ecb2){this['context']||this['_update']({'context':_0x44ecb2});}['setAttribute'](_0x3a5140,_0x1f9078){const _0x5e1423=wt(this['attributes']);yt(_0x5e1423,_0x3a5140,_0x1f9078),this['_update']({'attributes':_0x5e1423});}['removeAttribute'](_0x2e1a7e){const _0x32c85b=wt(this['attributes']);Ct(_0x32c85b,_0x2e1a7e),this['_update']({'attributes':_0x32c85b});}['remove']({isFromAdapter:_0x541a7c=!0x1}={}){const {channelId:_0xef6479,id:_0x334cac}=this;this['_repository']['fire'](Nt('removeCommentThread',_0xef6479),{'channelId':_0xef6479,'threadId':_0x334cac,'isFromAdapter':_0x541a7c});}['attachTo'](_0xc668c4){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0xc668c4});}['addComment'](_0x1b1acb){const {channelId:_0x581b8f,id:_0x4da915}=this;this['_repository']['fire'](Nt('addComment',_0x581b8f,_0x4da915),Object['assign']({'channelId':_0x581b8f,'threadId':_0x4da915},_0x1b1acb));}['getComment'](_0x5e60c3){if('string'!=typeof _0x5e60c3)throw new _0x4000c2('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x5e60c3});return this['comments']['get'](_0x5e60c3);}['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'](_0x42fe29=>_0x42fe29['toJSON']()),'attributes':this['attributes']};}['_add'](_0x24dffc){return this['listenTo'](_0x24dffc,'change:authoredAt',()=>{const _0x19e857=this['_findOptimalIndex'](_0x24dffc),_0x54aedb=this['comments'];_0x19e857-0x1!=_0x54aedb['getIndex'](_0x24dffc)&&_0x19e857+0x1!=_0x54aedb['getIndex'](_0x24dffc)&&(this['_remove'](_0x24dffc),this['_add'](_0x24dffc));}),this['comments']['add'](_0x24dffc,this['_findOptimalIndex'](_0x24dffc));}['_update'](_0x5d05eb){const {channelId:_0x588803,id:_0x7fda36}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x588803),{..._0x5d05eb,'channelId':_0x588803,'threadId':_0x7fda36});}['_remove'](_0x37bcd9){return this['stopListening'](_0x37bcd9),_0x37bcd9['destroy'](),this['comments']['remove'](_0x37bcd9);}['_findOptimalIndex'](_0x4ced88){const _0x35dc8c=this['comments']['find'](_0x237f3a=>new Date(_0x237f3a['authoredAt'])['getTime']()>new Date(_0x4ced88['authoredAt'])['getTime']());return _0x35dc8c?this['comments']['getIndex'](_0x35dc8c):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x70c1ad(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x57cafe,_0x5df848){super();const _0x5b96c5=_0x57cafe['context']['plugins']['get'](it)['me'],_0x2fc08f=_0x57cafe['getCommentThread'](_0x5df848['threadId']),_0x64ef4f=0x0===_0x2fc08f['comments']['length'],_0x6bffe9=_0x5b96c5===_0x5df848['author'];this['id']=_0x5df848['id'],this['threadId']=_0x5df848['threadId'],this['author']=_0x5df848['author'],this['creator']=_0x5df848['creator'],this['isExternal']=Boolean(_0x5df848['attributes']&&_0x5df848['attributes']['@external']),this['set']('content',_0x5df848['content']),this['createdAt']=_0x5df848['createdAt']||new Date(),this['set']('authoredAt',_0x5df848['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x2fc08f,'resolvedAt'),this['set']('attributes',_0x5df848['attributes']||{}),this['bind']('isEditable')['to'](_0x57cafe,'_permissions',()=>{const _0x5ae8b4=_0x57cafe['getPermissions'](_0x2fc08f['channelId'])['write'],_0xe6b963=_0x57cafe['getPermissions'](_0x2fc08f['channelId'])['modifyAll'];return _0x6bffe9&&_0x5ae8b4||!_0x6bffe9&&_0xe6b963;}),this['bind']('isRemovable')['to'](_0x2fc08f,'isRemovable',_0x57cafe,'_permissions',_0x33c6a6=>{const _0x3ce207=_0x57cafe['getPermissions'](_0x2fc08f['channelId'])['write'],_0x2f9604=_0x57cafe['getPermissions'](_0x2fc08f['channelId'])['modifyAll'];return _0x6bffe9&&_0x3ce207||_0x33c6a6&&_0x64ef4f||!_0x6bffe9&&_0x2f9604&&!_0x64ef4f;}),this['bind']('isReadOnly')['to'](_0x2fc08f,'isReadOnly'),this['_repository']=_0x57cafe;}get['weight'](){return Math['max'](function(_0x7c3ab1){const _0xff32f1=document['createElement']('div');return _0xff32f1['innerHTML']=_0x7c3ab1,_0xff32f1['textContent']['length'];}(this['content']),0xc8);}['update'](_0x11a2e7){const {threadId:_0x3a4894,id:_0x3c4357}=this;if(!this['_repository']['hasCommentThread'](_0x3a4894))throw new _0x4000c2('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x16db9c}=this['_repository']['getCommentThread'](_0x3a4894);this['_repository']['fire'](Nt('updateComment',_0x16db9c,_0x3a4894),{'channelId':_0x16db9c,'threadId':_0x3a4894,'commentId':_0x3c4357,..._0x11a2e7});}['setAttribute'](_0x4abb82,_0x307971){const _0x18d08d=wt(this['attributes']);yt(_0x18d08d,_0x4abb82,_0x307971),this['update']({'attributes':_0x18d08d});}['removeAttribute'](_0xa77559){const _0x2ca721=wt(this['attributes']);Ct(_0x2ca721,_0xa77559),this['update']({'attributes':_0x2ca721});}['remove'](_0x25eab3={}){if(!_0x25eab3['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x17d832,id:_0xd3e8cd}=this;if(!this['_repository']['hasCommentThread'](_0x17d832))throw new _0x4000c2('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x4671d6}=this['_repository']['getCommentThread'](_0x17d832);this['_repository']['fire'](Nt('removeComment',_0x4671d6,_0x17d832),{'channelId':_0x4671d6,'threadId':_0x17d832,'commentId':_0xd3e8cd,..._0x25eab3});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x22bc56,..._0x4f5d50){for(const _0x1ded5f of _0x4f5d50)void 0x0!==_0x1ded5f&&(_0x22bc56+=':'+String(_0x1ded5f));return _0x22bc56;}class ot extends _0x14f0aa{constructor(_0x383dc5){super(_0x383dc5),this['set']('hasContent',!0x1);}['refresh'](){const _0x37b7d8=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0xd465a8 of _0x37b7d8['getRanges']())if(this['_hasContent'](_0xd465a8))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x4548c1=_0x2e35e1(),ranges:_0x17fab1,comment:_0x2d39e1}={}){const _0x169098=this['editor']['model'],_0x4d56ee=_0x17fab1??Array['from'](_0x169098['document']['selection']['getRanges']()),_0x24edbc=[];for(const _0xae996e of _0x4d56ee)this['_hasContent'](_0xae996e)&&_0x24edbc['push'](this['_trimToContent'](_0xae996e));if(!_0x24edbc['length'])throw new _0x4000c2('addcommentthreadcommand-incorrect-ranges',null);_0x2d39e1&&this['_createCommentThread'](_0x4548c1,_0x2d39e1),this['_createMarkersFromRanges'](_0x4548c1,_0x24edbc,!!_0x2d39e1);}['_createMarkersFromRanges'](_0x17cb28,_0x324075,_0x224f1f){this['editor']['model']['change'](_0x4c3490=>{for(const _0x32b373 of _0x324075){const _0x359e0a=_0x2e35e1()['substr'](0x1,0x5),_0x2629f7='comment:'+_0x17cb28+':'+_0x359e0a;_0x4c3490['addMarker'](_0x2629f7,{'range':_0x32b373,'usingOperation':_0x224f1f,'affectsData':_0x224f1f});}});}['_createCommentThread'](_0xc8f1c2,_0xa17ad1){const _0xf2e177=this['editor']['plugins']['get']('CommentsRepository'),_0x201642=this['editor']['config']['get']('collaboration.channelId'),_0x45de28=this['editor']['plugins']['get']('Users')['me'];if(!_0x45de28)throw new _0x4000c2('addcommentthreadcommand-user-not-found',null);_0xf2e177['addCommentThread']({'threadId':_0xc8f1c2,'channelId':_0x201642,'comments':[{'authorId':_0x45de28['id'],'content':_0xa17ad1,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x19c645){for(const _0x11ccc8 of _0x19c645['getItems']())if(this['_itemIsContent'](_0x11ccc8))return!0x0;return!0x1;}['_itemIsContent'](_0x1f16db){return _0x1f16db['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x1f16db)&&!_0x1f16db['is']('element','tableCell');}['_trimToContent'](_0x485d83){const _0x2fb6d8=_0x5f4074=>!this['_itemIsContent'](_0x5f4074['item']),_0x321200=_0x485d83['start']['getLastMatchingPosition'](_0x2fb6d8),_0x4b77fd=_0x485d83['end']['getLastMatchingPosition'](_0x2fb6d8,{'direction':'backward'});return this['editor']['model']['createRange'](_0x321200,_0x4b77fd);}}class b extends _0xc00a87{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x361783){super(_0x361783),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x141876=this['editor'],_0x3d68d9=_0x141876['model']['document']['selection'],_0xec4e9a=_0x51e02f(()=>this['refreshSelectedViews'](),0xa);_0x3d68d9['on']('change:range',(_0x395fb1,_0x5881f0)=>{_0x5881f0['directChange']&&(_0xec4e9a['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x141876['editing']['view']['document'],'change:isFocused',(_0x16cccc,_0x2721b8,_0x497919)=>{_0x497919&&_0xec4e9a();}),this['listenTo'](_0x141876['ui']['focusTracker'],'change:isFocused',(_0x362319,_0x52c526,_0xda193a)=>{_0xda193a||this['fire']('blur',{'isAnnotationTracked':_0x333846=>this['_editorAnnotationsData']['has'](_0x333846['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x4ec4f7){if(this['_editorAnnotations']['has'](_0x4ec4f7['view']))return;this['_editorAnnotations']['add'](_0x4ec4f7['view']),this['editor']['ui']['focusTracker']['add'](_0x4ec4f7['view']['element']);const _0x1083f5=this['editor']['plugins']['get'](y);this['listenTo'](_0x1083f5['collection'],'remove',(_0x540557,_0x18a26a)=>{this['editor']['ui']['focusTracker']['remove'](_0x18a26a['view']['element']),this['_editorAnnotations']['delete'](_0x18a26a['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x487a13){if('function'!=typeof _0x487a13)throw new _0x4000c2('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x487a13);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x10354a,annotations:_0x40b3c3}){const _0x1df11a=[],_0x3e5653=this['editor']['model']['document']['selection'],_0x257b76=Array['from'](_0x3e5653['getRanges']());for(const [_0x2e4066,_0xc9de92]of this['_editorAnnotationsData']){const _0x241227=_0x24b0ec(_0xc9de92),_0x57cd6b=_0x40b3c3['getByInnerView'](_0x2e4066);_0x241227&&_0x57cd6b&&_0x1df11a['push']({'annotation':_0x57cd6b,'range':_0x241227});}function _0x24b0ec(_0x450e78){for(const _0x15bd5c of _0x450e78)for(const _0x4ddffb of _0x257b76)if(_0x15bd5c['containsRange'](_0x4ddffb,!_0x3e5653['isCollapsed']))return _0x15bd5c;return null;}return _0x1df11a['sort']((_0x45fc8c,_0x5e92eb)=>{const _0x1e4175=_0x45fc8c['range'],_0x205d04=_0x5e92eb['range'];if(!_0x1e4175['isEqual'](_0x205d04)){if(_0x1e4175['containsRange'](_0x205d04,!0x0))return 0x1;if(_0x205d04['containsRange'](_0x1e4175,!0x0))return-0x1;}return _0x45fc8c['annotation']==_0x10354a?-0x1:_0x5e92eb['annotation']==_0x10354a?0x1:0x0;})['map'](_0x137139=>_0x137139['annotation']);}get['_editorAnnotationsData'](){const _0x4257c1=new Map();for(const _0x5e13bc of Array['from'](this['_dataCollectors']))for(const [_0x28cf04,_0x283a6e]of _0x5e13bc())_0x4257c1['set'](_0x28cf04,_0x283a6e);return _0x4257c1;}}class st extends _0xc00a87{['afterInit'](){const _0x5ba2de=this['editor'];if(!_0x5ba2de['plugins']['has']('RestrictedEditingModeEditing'))return;_0x5ba2de['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0xc00a87{constructor(_0x4f50ac){super(_0x4f50ac),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x1300de=this['editor'],_0x3e7eee=_0x1300de['commands']['get']('importWord'),_0x3b78f4=_0x1300de['plugins']['get'](it);_0x3e7eee&&(_0x3e7eee['on']('execute',(_0x142b85,[,_0x6b76dd])=>{_0x6b76dd['collaboration_features']={'comments':!0x0,'user_id':_0x3b78f4['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x3e7eee,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x48c80c,_0x1fcd81){const {comment_threads:_0x473c46}=_0x1fcd81;_0x473c46&&_0x473c46['forEach'](({thread_id:_0x1b3e75,comments:_0x223cad,is_resolved:_0x1c9be4})=>{const _0x43ec0e=new Date(),_0x5d4cfe=_0x223cad['map'](({author:_0x16c767,content:_0x45735b,created_at:_0xe67e9e})=>({'content':_0x45735b,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x43ec0e,'attributes':{'@external':{'authorName':_0x16c767,'createdAt':_0xe67e9e?new Date(_0xe67e9e):new Date(),'source':'importWord'}}})),_0xca34a6=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0xca34a6,'threadId':_0x1b3e75,'comments':_0x5d4cfe,'resolvedAt':_0x1c9be4?_0x43ec0e:null});});}}class at extends _0xc00a87{constructor(_0x3383c8){super(_0x3383c8),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x30b402=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x30b402,'contentInsertion',(_0x53a39a,_0x4ef26d)=>this['_removeMarkersWithoutThreads'](_0x4ef26d['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xe7261a){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xe7261a;const _0x201050=this['editor']['plugins']['get']('CommentsRepository');for(const _0xa8539c of _0xe7261a['keys']()){const [_0x3602bd,_0x3cf002]=_0xa8539c['split'](':');'comment'!=_0x3602bd||_0x201050['hasCommentThread'](_0x3cf002)||_0xe7261a['delete'](_0xa8539c);}return _0xe7261a;}['_registerMarkerInClipboardPipeline'](){const _0x3a656b=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x31837c=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x31837c&&_0x3a656b['_registerMarkerToCopy']('comment',_0x31837c);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x4ab135){switch(_0x4ab135){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x2b49f9){const _0x3ff803=_0x2b49f9['split'](':');return{'group':_0x3ff803[0x0],'id':_0x3ff803[0x1],'part':_0x3ff803[0x2]};}class ut extends _0xc00a87{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1eec3d,_0x5126c3)=>{if(!_0x5126c3['options']['showCommentHighlights'])return null;if(_0x5126c3['options']['ignoreResolvedComments']){const {id:_0x5de683}=ft(_0x1eec3d['markerName']),_0xb98094=this['editor']['plugins']['get'](o);if(_0xb98094['getCommentThread'](_0x5de683)?.['isResolved']&&_0x1eec3d['item'])return _0x5126c3['consumable']['consume'](_0x1eec3d['item'],'addMarker:'+_0x1eec3d['markerName']),_0x5126c3['consumable']['consume'](_0x1eec3d['item'],'removeMarker:'+_0x1eec3d['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x23ac9b=>{_0x23ac9b['on']('addMarker:comment',(_0x561521,_0x2032c2,_0x1e96a8)=>{if(!_0x1e96a8['options']['showCommentHighlights'])return;const _0x4221e3=_0x2032c2['item'];if(!_0x4221e3)return;const _0x503a2c=_0x1e96a8['mapper']['toViewElement'](_0x4221e3);this['editor']['model']['schema']['isObject'](_0x4221e3)&&_0x503a2c&&!_0x503a2c['getCustomProperty']('widget')&&_0x503a2c['is']('containerElement')&&_0x32dbb5(_0x503a2c,_0x1e96a8['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3fe7c5,{writer:_0x55dda8,options:_0x3c0911})=>{if(!_0x3c0911['showCommentHighlights'])return null;const _0x55eba5=_0x55dda8['createContainerElement']('div'),_0x195c05=_0x55dda8['createEmptyElement']('hr');return _0x55dda8['addClass']('ck-horizontal-line',_0x55eba5),_0x55dda8['insert'](_0x55dda8['createPositionAt'](_0x55eba5,0x0),_0x195c05),_0x55eba5;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x1d307e,{writer:_0x331c76,options:_0x1dcb15})=>{if(!_0x1dcb15['showCommentHighlights'])return null;const _0x4d352a=_0x331c76['createContainerElement']('span'),_0x1a1523=_0x331c76['createEmptyElement']('img');return _0x331c76['addClass']('image-inline',_0x4d352a),_0x331c76['insert'](_0x331c76['createPositionAt'](_0x4d352a,0x0),_0x1a1523),_0x4d352a;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1d411f,{writer:_0x15490a,options:_0x787615})=>{if(_0x787615['showCommentHighlights'])return _0x15490a['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x37e449,_0x12b89a,_0x35f110)=>{_0x35f110['options']['showCommentHighlights']&&_0x37e449['stop']();},{'priority':'high'});}}class r extends _0xc00a87{static get['requires'](){return[o,b,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xfa37a4){super(_0xfa37a4),this['set']('isThreadsLoadingPaused',!0x0),_0xfa37a4['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x433c87,_0x28b18f,_0xff905d,_0x8cd583)=>{const _0xddf309=_0xfa37a4['plugins']['get'](o),_0x588fc9=_0xff905d?ft(_0xff905d)['id']:null;_0xfa37a4['model']['change'](()=>{if(_0x588fc9){const _0xa37ad2=this['getAllMarkersForId'](_0x588fc9);for(const _0x42af66 of _0xa37ad2)_0xfa37a4['editing']['reconvertMarker'](_0x42af66);}if(_0x8cd583){const {id:_0x5c7e98}=ft(_0x8cd583),_0x430b7b=_0xddf309['getCommentThread'](_0x5c7e98);if(_0x430b7b&&_0x430b7b['unlinkedAt'])return;if(_0x430b7b&&!_0x430b7b['isAttached'])return;const _0x15b0bc=this['getAllMarkersForId'](_0x5c7e98);for(const _0x4f5d99 of _0x15b0bc)_0xfa37a4['editing']['reconvertMarker'](_0x4f5d99);}}),_0x588fc9&&this['scrollToThreadMarker'](_0x588fc9);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x37b467=this['editor'],_0x510aff=_0x37b467['plugins']['get'](o),_0x1a44be=_0x37b467['config']['get']('collaboration.channelId'),_0xe9a3ec=_0x510aff['getCommentThreads']()['filter'](_0x2976a2=>_0x2976a2['channelId']!==_0x1a44be);_0x37b467['commands']['add']('addCommentThread',new ot(_0x37b467)),this['listenTo'](_0x37b467,'change:isReadOnly',(_0x379232,_0x3e5bba,_0x52adb8)=>{_0x510aff['switchReadOnly'](_0x52adb8,_0x37b467['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x510aff,dt('addCommentThread',_0x1a44be),(_0x1bd640,{threadId:_0x3942af})=>{const _0x429424=this['editor']['plugins']['get'](o)['getCommentThread'](_0x3942af);_0x429424?.['unlinkedAt']&&this['_attachArchivedThread'](_0x3942af);}),this['listenTo'](_0x510aff,dt('removeCommentThread',_0x1a44be),(_0x591b27,{threadId:_0x241a7e})=>{_0x37b467['model']['enqueueChange']({'isUndoable':!0x1},_0x698e0a=>{const _0x434aef=this['getAllMarkersForId'](_0x241a7e);for(const _0x42cc86 of _0x434aef)_0x698e0a['removeMarker'](_0x42cc86);});}),this['listenTo'](_0x510aff,dt('resolveCommentThread',_0x1a44be),(_0x3af8e8,{threadId:_0x5d42c8})=>{(this['_reconvertMarkers'](_0x5d42c8),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x5d42c8)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x510aff,dt('reopenCommentThread',_0x1a44be),(_0x16e5d8,{threadId:_0x147b28})=>{this['_reconvertMarkers'](_0x147b28);},{'priority':'low'}),this['listenTo'](_0x510aff,dt('addComment',_0x1a44be),(_0x310466,{threadId:_0x3b0aaa,isFromAdapter:_0x5e07fa})=>{const _0x369a81=this['getAllMarkersForId'](_0x3b0aaa);if(_0x5e07fa||0x0==_0x369a81['length']||!_0x510aff['hasCommentThread'](_0x3b0aaa))return;0x1===_0x510aff['getCommentThread'](_0x3b0aaa)['length']&&_0x37b467['model']['enqueueChange']({'isUndoable':!0x1},_0x5d6c5e=>{for(const _0x529e80 of _0x369a81)_0x5d6c5e['updateMarker'](_0x529e80,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0xe9a3ec);}['afterInit'](){!async function(_0x4a4f5d){const _0x421cba=_0x560da8([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x19a2f2=0x73460ab3,_0x3b090e=0x73417403^_0x19a2f2,_0x13ab9b=window[_0x560da8([0x44,0x61,0x74,0x65])][_0x560da8([0x6e,0x6f,0x77])](),_0x59b929=_0x4a4f5d[_0x560da8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x83a268=new window[(_0x560da8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd75e7=>{_0x59b929[_0x560da8([0x6f,0x6e,0x63,0x65])](_0x560da8([0x72,0x65,0x61,0x64,0x79]),_0xd75e7);}),_0x856ed4={[_0x560da8([0x6b,0x74,0x79])]:_0x560da8([0x45,0x43]),[_0x560da8([0x75,0x73,0x65])]:_0x560da8([0x73,0x69,0x67]),[_0x560da8([0x63,0x72,0x76])]:_0x560da8([0x50,0x2d,0x32,0x35,0x36]),[_0x560da8([0x78])]:_0x560da8([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]),[_0x560da8([0x79])]:_0x560da8([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]),[_0x560da8([0x61,0x6c,0x67])]:_0x560da8([0x45,0x53,0x32,0x35,0x36])},_0x4fc65d=_0x59b929[_0x560da8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x560da8([0x67,0x65,0x74])](_0x560da8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5efa05(){let _0x3bbcb6,_0x15fa99=null,_0x19ebc9=null;try{if(_0x4fc65d==_0x560da8([0x47,0x50,0x4c]))return _0x560da8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3bbcb6=_0x244ebc(),!_0x3bbcb6)return _0x560da8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3bbcb6[_0x560da8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x19ebc9=_0x112c32(_0x3bbcb6[_0x560da8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3bbcb6[_0x560da8([0x6a,0x74,0x69])])),await _0x113dc2()?_0x1f8d5d()?_0x3f6be6()?_0x560da8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39491e()?(_0x3bbcb6[_0x560da8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x560da8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x15fa99=_0x3dc5b8(_0x560da8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x176cc5()):_0x560da8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x560da8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x560da8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x560da8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f6be6(){const _0x27b6b9=[_0x560da8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x560da8([0x74,0x72,0x69,0x61,0x6c])][_0x560da8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bbcb6[_0x560da8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x13ab9b/0x3e8:0xe10*_0x3b090e;return _0x3bbcb6[_0x560da8([0x65,0x78,0x70])]<_0x27b6b9;}function _0x1f8d5d(){const _0x5dc2cd=_0x3bbcb6[_0x560da8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5dc2cd)return!0x1;if(_0x5dc2cd[_0x560da8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560da8([0x2a])))return!0x0;if(_0x5dc2cd[_0x560da8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560da8([0x43,0x4d,0x54])))return!0x0;if(_0x5dc2cd[_0x560da8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560da8([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x5b9ef4())return!0x0;if(_0x5dc2cd[_0x560da8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560da8([0x52,0x43,0x4d,0x54]))){if(_0x22ff6a())return!0x0;if(_0x1f6617()||_0x55e741())return!0x0;}return!0x1;}function _0x39491e(){const _0x876770=_0x3bbcb6[_0x560da8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x876770||0x0==_0x876770[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x124350}=new URL(window[_0x560da8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x876770[_0x560da8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x124350))return!0x0;const _0x40aad6=_0x124350[_0x560da8([0x73,0x70,0x6c,0x69,0x74])](_0x560da8([0x2e]));return _0x876770[_0x560da8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x546077=>_0x546077[_0x560da8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560da8([0x2a])))[_0x560da8([0x6d,0x61,0x70])](_0x4cc198=>_0x4cc198[_0x560da8([0x73,0x70,0x6c,0x69,0x74])](_0x560da8([0x2e])))[_0x560da8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d6b78=>_0x3d6b78[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40aad6[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x560da8([0x6d,0x61,0x70])](_0x42adc8=>Array(_0x40aad6[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42adc8[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x560da8([0x66,0x69,0x6c,0x6c])](_0x42adc8[0x0]===_0x560da8([0x2a])?_0x560da8([0x2a]):'')[_0x560da8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42adc8))[_0x560da8([0x73,0x6f,0x6d,0x65])](_0x3a0247=>_0x40aad6[_0x560da8([0x65,0x76,0x65,0x72,0x79])]((_0x4d8ce8,_0x128615)=>_0x3a0247[_0x128615]===_0x4d8ce8||_0x3a0247[_0x128615]===_0x560da8([0x2a])));}function _0x176cc5(){return _0x15fa99&&_0x19ebc9?new window[(_0x560da8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d37c1,_0x301085)=>{_0x15fa99[_0x560da8([0x74,0x68,0x65,0x6e])](_0x2d37c1,_0x301085),_0x19ebc9[_0x560da8([0x74,0x68,0x65,0x6e])](_0x13a0d1=>{_0x13a0d1!=_0x560da8([0x56,0x61,0x6c,0x69,0x64])&&_0x2d37c1(_0x13a0d1);},_0x301085);}):_0x15fa99||_0x19ebc9||_0x560da8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x112c32(_0x59a055,_0x72b883){return new window[(_0x560da8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x372eba=>{if(_0x2b9419())return _0x372eba(_0x560da8([0x56,0x61,0x6c,0x69,0x64]));_0x29c821(),_0x59b929[_0x560da8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x560da8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4dfd7e=!0x1;const _0x5922e1=_0x2e35e1();function _0xc4c9e9(_0xeb606b){return!!_0xeb606b&&(typeof _0xeb606b===_0x560da8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xeb606b===_0x560da8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xeb606b[_0x560da8([0x74,0x68,0x65,0x6e])]===_0x560da8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xeb606b[_0x560da8([0x63,0x61,0x74,0x63,0x68])]===_0x560da8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2343f2(_0x1897aa){_0x77ec38(_0x1897aa)[_0x560da8([0x74,0x68,0x65,0x6e])](_0xb09ab2=>{if(!_0xb09ab2||_0xb09ab2[_0x560da8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x560da8([0x6f,0x6b]))return _0x560da8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x22a504(_0x5aec07(_0x5922e1+_0x72b883))!=_0xb09ab2[_0x560da8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x560da8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x560da8([0x56,0x61,0x6c,0x69,0x64]);})[_0x560da8([0x74,0x68,0x65,0x6e])](_0x1fe5d2=>(_0x52b446(),_0x1fe5d2),()=>{const _0x286f9a=_0x5e6e4e();return null==_0x286f9a?(_0x52b446(),_0x560da8([0x56,0x61,0x6c,0x69,0x64])):_0x560da8(_0x13ab9b-_0x286f9a>(0x574a8eb3^_0x19a2f2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x560da8([0x74,0x68,0x65,0x6e])](_0x372eba)[_0x560da8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x372eba(_0x560da8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e2a34=0x7370e433^_0x19a2f2;function _0x52b446(){const _0x270cb8=_0x560da8([0x6c,0x6c,0x63,0x74,0x2d])+_0x22a504(_0x5aec07(_0x59a055)),_0x5cd205=_0x38a480(_0x22a504(window[_0x560da8([0x4d,0x61,0x74,0x68])][_0x560da8([0x63,0x65,0x69,0x6c])](_0x13ab9b/_0x2e2a34)));window[_0x560da8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x560da8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x270cb8,_0x5cd205);}function _0x5e6e4e(){const _0x4e238b=_0x560da8([0x6c,0x6c,0x63,0x74,0x2d])+_0x22a504(_0x5aec07(_0x59a055)),_0xb4ac93=window[_0x560da8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x560da8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e238b);return _0xb4ac93?window[_0x560da8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38a480(_0xb4ac93),0x10)*_0x2e2a34:null;}function _0x77ec38(_0x39074e){return new window[(_0x560da8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2fdbeb,_0x266d59)=>{_0x39074e[_0x560da8([0x74,0x68,0x65,0x6e])](_0x2fdbeb,_0x266d59),window[_0x560da8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x266d59,0x7347de73^_0x19a2f2);});}}_0x59b929[_0x560da8([0x6f,0x6e])](_0x560da8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c4960,_0x2d49e2)=>{if(_0x2d49e2[0x0]!=_0x59a055)return _0x372eba(_0x560da8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d49e2[0x1]={..._0x2d49e2[0x1],[_0x560da8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5922e1};},{[_0x560da8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x560da8([0x68,0x69,0x67,0x68])}),_0x59b929[_0x560da8([0x6f,0x6e])](_0x560da8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x51a4f6=>{_0xc4c9e9(_0x51a4f6[_0x560da8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4dfd7e=!0x0,_0x2343f2(_0x51a4f6[_0x560da8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x560da8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x560da8([0x6c,0x6f,0x77])}),_0x83a268[_0x560da8([0x74,0x68,0x65,0x6e])](()=>{_0x4dfd7e||_0x372eba(_0x560da8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b9419(){return _0x59b929[_0x560da8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x560da8([0x76,0x69,0x65,0x77])][_0x560da8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x560da8([0x61,0x75,0x74,0x6f]);}function _0x29c821(){_0x59b929[_0x560da8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x560da8([0x76,0x69,0x65,0x77])][_0x560da8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x560da8([0x61,0x75,0x74,0x6f]);}}function _0x3dc5b8(_0x35ce59){const _0x212479=[new window[(_0x560da8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb91a45=>setTimeout(_0xb91a45,0x734f347f^_0x19a2f2)),_0x83a268[_0x560da8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x560da8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f38a7=>{let _0x31841a=0x0;_0x59b929[_0x560da8([0x6d,0x6f,0x64,0x65,0x6c])][_0x560da8([0x6f,0x6e])](_0x560da8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38b70e,_0x4e69ab)=>{_0x4e69ab[0x0][_0x560da8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x31841a++,_0x31841a==(0x73460f5b^_0x19a2f2)&&(_0x2f38a7(),_0x38b70e[_0x560da8([0x6f,0x66,0x66])]());});}))];return window[_0x560da8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x560da8([0x72,0x61,0x63,0x65])](_0x212479)[_0x560da8([0x74,0x68,0x65,0x6e])](()=>_0x35ce59);}async function _0x3b5ce2(){await _0x83a268,_0x59b929[_0x560da8([0x6d,0x6f,0x64,0x65,0x6c])][_0x560da8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e5c68,_0x59b929[_0x560da8([0x6d,0x6f,0x64,0x65,0x6c])][_0x560da8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e5c68,_0x59b929[_0x560da8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x560da8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b9ef4(){return window[_0x560da8([0x67,0x6c,0x6f,0x62])]&&window[_0x560da8([0x67,0x6c,0x6f,0x62])][_0x560da8([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x22ff6a(){return _0x3455d6(_0x560da8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x370a81(_0x560da8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x560da8([0x73,0x74,0x61,0x74,0x65])]==_0x560da8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1f6617(){return _0x3455d6(_0x560da8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x55e741(){return _0x3455d6(_0x560da8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4548cf(_0x3d6994){const _0x8f493=_0x17037a();_0x59b929[_0x8f493]=_0x560da8([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3d6994,_0x3d6994!=_0x560da8([0x56,0x61,0x6c,0x69,0x64])&&_0x3b5ce2();}function _0x17037a(){const _0x1ad373=window[_0x560da8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x560da8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x560da8([0x6e,0x6f,0x77])]())[_0x560da8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x560da8([0x2e]),'');let _0x1732b9=_0x560da8([0x4b]);for(let _0x3ef9e0=0x0;_0x3ef9e0<_0x1ad373[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ef9e0+=0x2){let _0x5c73b4=window[_0x560da8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ad373[_0x560da8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ef9e0,_0x3ef9e0+0x2));_0x5c73b4>=_0x421cba[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c73b4-=_0x421cba[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1732b9+=_0x421cba[_0x5c73b4];}return _0x1732b9;}function _0x244ebc(){const _0x4d102e=_0x4fc65d[_0x560da8([0x73,0x70,0x6c,0x69,0x74])](_0x560da8([0x2e]));if(0x3!=_0x4d102e[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x518e4b(_0x4d102e[0x1]);function _0x518e4b(_0x3ce095){const _0x42d770=_0x175bfc(_0x3ce095);return _0x42d770&&_0x11bbc6()?_0x42d770:null;function _0x11bbc6(){const _0xff92d9=_0x42d770[_0x560da8([0x6a,0x74,0x69])],_0x135e1a=window[_0x560da8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xff92d9[_0x560da8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xff92d9[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f385d={..._0x42d770,[_0x560da8([0x6a,0x74,0x69])]:_0xff92d9[_0x560da8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xff92d9[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f385d[_0x560da8([0x76,0x63])],_0x5aec07(_0x2f385d)==_0x135e1a;}}}async function _0x113dc2(){let _0x2b89e6=!0x0;try{const _0x112133=_0x4fc65d[_0x560da8([0x73,0x70,0x6c,0x69,0x74])](_0x560da8([0x2e])),[_0x1840cd,_0x3f126,_0x46ca5d]=_0x112133;return _0x264f3b(_0x1840cd),await _0x103fac(_0x1840cd,_0x3f126,_0x46ca5d),_0x2b89e6;}catch{return!0x1;}function _0x264f3b(_0x200bfa){const _0x1af164=_0x175bfc(_0x200bfa);_0x1af164&&_0x1af164[_0x560da8([0x61,0x6c,0x67])]==_0x560da8([0x45,0x53,0x32,0x35,0x36])||(_0x2b89e6=!0x1);}async function _0x103fac(_0x48fcdb,_0x5c05c8,_0x4e92cc){const _0x2606b7=window[_0x560da8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x560da8([0x66,0x72,0x6f,0x6d])](_0x24709a(_0x4e92cc),_0x3c7c78=>_0x3c7c78[_0x560da8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x360c44=new window[(_0x560da8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x560da8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48fcdb+_0x560da8([0x2e])+_0x5c05c8),_0x21ea7d=window[_0x560da8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x560da8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x21ea7d)return;const _0x4de1a3=await _0x21ea7d[_0x560da8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x560da8([0x6a,0x77,0x6b]),_0x856ed4,{[_0x560da8([0x6e,0x61,0x6d,0x65])]:_0x560da8([0x45,0x43,0x44,0x53,0x41]),[_0x560da8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x560da8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x560da8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x21ea7d[_0x560da8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x560da8([0x6e,0x61,0x6d,0x65])]:_0x560da8([0x45,0x43,0x44,0x53,0x41]),[_0x560da8([0x68,0x61,0x73,0x68])]:{[_0x560da8([0x6e,0x61,0x6d,0x65])]:_0x560da8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4de1a3,_0x2606b7,_0x360c44)||(_0x2b89e6=!0x1);}}function _0x175bfc(_0x15c51c){return _0x15c51c[_0x560da8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x560da8([0x65,0x79]))?JSON[_0x560da8([0x70,0x61,0x72,0x73,0x65])](_0x24709a(_0x15c51c)):null;}function _0x24709a(_0xdddac9){return window[_0x560da8([0x61,0x74,0x6f,0x62])](_0xdddac9[_0x560da8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x560da8([0x2b]))[_0x560da8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x560da8([0x2f])));}function _0x5aec07(_0x5251cf){let _0x346a6e=0x1505;function _0x47b54d(_0x4b3823){for(let _0x276f2e=0x0;_0x276f2e<_0x4b3823[_0x560da8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x276f2e++){const _0x3b8f9c=_0x4b3823[_0x560da8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x276f2e);_0x346a6e=(_0x346a6e<<0x5)+_0x346a6e+_0x3b8f9c,_0x346a6e&=_0x346a6e;}}function _0x3e3484(_0x41ce23){Array[_0x560da8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41ce23)?_0x41ce23[_0x560da8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e3484):_0x41ce23&&typeof _0x41ce23==_0x560da8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x560da8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41ce23)[_0x560da8([0x73,0x6f,0x72,0x74])]()[_0x560da8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x256deb,_0x546f74])=>{_0x47b54d(_0x256deb),_0x3e3484(_0x546f74);}):_0x47b54d(window[_0x560da8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41ce23));}return _0x3e3484(_0x5251cf),_0x346a6e>>>0x0;}function _0x22a504(_0x4deda8){return _0x4deda8[_0x560da8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x560da8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x560da8([0x30]));}function _0x38a480(_0x16bc0a){return _0x16bc0a[_0x560da8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x560da8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x560da8([0x6a,0x6f,0x69,0x6e])]('');}function _0x3455d6(_0xbbabc0){return _0x59b929[_0x560da8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x560da8([0x68,0x61,0x73])](_0xbbabc0);}function _0x370a81(_0xec7c30){return _0x59b929[_0x560da8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x560da8([0x67,0x65,0x74])](_0xec7c30);}function _0x4e5c68(){}function _0x560da8(_0x1cbc0f){return _0x1cbc0f['map'](_0x476e1a=>String['fromCharCode'](_0x476e1a))['join']('');}_0x4548cf(await _0x5efa05());}(this);}['destroy'](){const _0x1cfd75=this['editor']['plugins']['get'](o),_0x2ebba5=this['editor']['config']['get']('collaboration.channelId');for(const _0x577bc8 of _0x1cfd75['getCommentThreads']({'channelId':_0x2ebba5}))_0x1cfd75['_detachCommentThread'](_0x577bc8['id']),_0x1cfd75['_threads']['delete'](_0x577bc8['id']);super['destroy']();}['hasMarkerForId'](_0x1c319c){return this['getAllMarkersForId'](_0x1c319c)['length']>0x0;}['getAllMarkersForId'](_0x14d7de){const _0x4d592a=[];for(const _0x5d0dc0 of this['editor']['model']['markers'])_0x5d0dc0['name']['startsWith']('comment:'+_0x14d7de)&&_0x4d592a['push'](_0x5d0dc0);return _0x4d592a;}['scrollToThreadMarker'](_0x492106){setTimeout(()=>{const _0x2da500=this['_getTargetForId'](_0x492106);if(!_0x2da500)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x492106&&nt({'target':_0x2da500[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x2c07eb){this['editor']['model']['change'](()=>{for(const _0x1ab06d of this['getAllMarkersForId'](_0x2c07eb))this['editor']['editing']['reconvertMarker'](_0x1ab06d);});}['_attachArchivedThread'](_0x402b93){const _0x4dc550=this['editor']['plugins']['get'](o),_0x26cf0f=this['editor']['plugins']['get'](b),_0xe6cfbd=_0x4dc550['getCommentThread'](_0x402b93);if(!_0xe6cfbd['isAttached']){const _0x5e89f1=_0xe6cfbd['attachTo'](()=>this['_getTargetForId'](_0xe6cfbd['id']));_0x26cf0f['registerAnnotation'](_0x5e89f1),_0xe6cfbd['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x20ded6=this['editor'],_0x365e98=_0x20ded6['plugins']['get'](it);_0x20ded6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x11e275,_0x3b3a9c)=>{const {id:_0x4b827d}=ft(_0x11e275['markerName']),_0x5919dc=_0x20ded6['plugins']['get'](o)['getCommentThread'](_0x4b827d),_0x14011e=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x4b827d;let _0x553ad6;if(_0x5919dc&&_0x5919dc['isResolved']&&!_0x14011e&&_0x11e275['item'])return _0x3b3a9c['consumable']['consume'](_0x11e275['item'],'addMarker:'+_0x11e275['markerName']),_0x3b3a9c['consumable']['consume'](_0x11e275['item'],'removeMarker:'+_0x11e275['markerName']),null;const _0x5f02d8=['ck-comment-marker'];return _0x14011e&&_0x5f02d8['push']('ck-comment-marker--active'),_0x553ad6=_0x5919dc?.['length']?_0x5919dc['comments']['first']['author']['id']:_0x365e98['me']['id'],{'classes':_0x5f02d8,'attributes':{'data-comment':_0x4b827d,'data-author-id':_0x553ad6}};}}),_0x20ded6['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x10daa6,{options:_0x22ae07})=>{if(_0x22ae07['showCommentHighlights'])return null;const _0x13ed3c=_0x20ded6['plugins']['get'](o),_0x3474b5=_0x20ded6['model']['markers']['get'](_0x10daa6),{id:_0x492457,part:_0x1f39c5}=ft(_0x10daa6);return _0x3474b5&&!_0x3474b5['affectsData']||_0x22ae07['ignoreResolvedComments']&&_0x13ed3c['getCommentThread'](_0x492457)?.['isResolved']?null:{'group':'comment','name':_0x1f39c5?_0x492457+':'+_0x1f39c5:_0x492457};}}),_0x20ded6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x5c7bab,{writer:_0x28066b})=>_0x28066b['createElement']('$marker',{'data-name':'comment:'+_0x5c7bab['getAttribute']('id')})}),_0x20ded6['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x1ba0aa=this['editor'],_0xa09431=_0x1ba0aa['plugins']['get'](o),_0x599861=new Set(),_0x4360af=new Set();_0x1ba0aa['model']['document']['registerPostFixer'](_0x4c6147=>{let _0x4fffc6=!0x1;for(const {name:_0x5c13f4,data:_0x379075}of _0x1ba0aa['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2280c9,id:_0x38ca1c}=ft(_0x5c13f4);let _0x585753=_0x379075['newRange'];if('comment'!==_0x2280c9||!_0x585753)continue;const _0x3602b8='$graveyard'===_0x585753['root']['rootName'];_0x3602b8||(_0x585753=ht(_0x585753,_0x1ba0aa['model']),!_0x585753||_0x585753['isCollapsed']||!_0x379075['newRange']||_0x585753['isEqual'](_0x379075['newRange']))?_0x1ba0aa['model']['hasContent'](_0x585753)&&!_0x3602b8?this['isThreadsLoadingPaused']?_0x599861['add'](_0x5c13f4):this['_handleThreadMarker'](_0x5c13f4,_0x38ca1c):(_0x4360af['add'](_0x5c13f4),_0x599861['delete'](_0x5c13f4),_0x4c6147['removeMarker'](_0x5c13f4),_0x4fffc6=!0x0):(_0x4c6147['updateMarker'](_0x5c13f4,{'range':_0x585753}),_0x4fffc6=!0x0);}return _0x4fffc6;}),this['on']('change:isThreadsLoadingPaused',(_0x39aafa,_0x466f4b,_0x12a4f8)=>{if(!_0x12a4f8&&_0x599861['size'])for(const _0x36593 of _0x599861){const {id:_0xc8b194}=ft(_0x36593);_0x599861['delete'](_0x36593),_0x1ba0aa['model']['markers']['get'](_0x36593)&&this['_handleThreadMarker'](_0x36593,_0xc8b194);}}),this['listenTo'](_0x1ba0aa['model']['document'],'change',()=>{for(const {name:_0x407646,data:{newRange:_0x4a7981}}of _0x1ba0aa['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3a702a,id:_0x137fad}=ft(_0x407646);if('comment'!==_0x3a702a)continue;const _0x1d8e92=_0xa09431['getCommentThread'](_0x137fad),_0x42d680=this['hasMarkerForId'](_0x137fad);_0x1d8e92&&(!_0x1d8e92['_hasTargetInContent']&&_0x4a7981&&_0x1ba0aa['editing']['view']['once']('render',()=>{const _0x15c261=_0x1ba0aa['plugins']['get'](y),_0x2ff880=_0xa09431['_threadToController']['get'](_0x1d8e92)['view'];_0x15c261['getByInnerView'](_0x2ff880)['refreshVisibility']();},{'priority':'low'}),_0x1d8e92['_hasTargetInContent']=_0x42d680||!!_0x4a7981),_0x4a7981||(_0x4360af['add'](_0x407646),_0x599861['delete'](_0x407646));}for(const _0x4b6fb2 of _0x4360af){const {id:_0x21f222}=ft(_0x4b6fb2),_0x29466e=_0xa09431['getCommentThread'](_0x21f222);if(_0x599861['delete'](_0x4b6fb2),!_0x29466e)continue;const _0xf44a62=this['hasMarkerForId'](_0x21f222);_0xf44a62||_0x29466e['isSubmitted']?_0xf44a62||_0x29466e['unlinkedAt']||_0x29466e['setUnlinkedAt'](new Date()):_0x29466e['remove']();}_0x4360af['clear']();});}['_handleInitialThreads'](_0x16f9ba){_0x16f9ba['forEach'](_0x10e08e=>{_0x10e08e['unlinkedAt']&&this['_attachArchivedThread'](_0x10e08e['id']);});}['_getTargetForId'](_0x25cfa8){const _0x7a604d=this['editor'],_0x397c13=this['getAllMarkersForId'](_0x25cfa8);return et(_0x7a604d['editing'],_0x397c13);}['_getTextContext'](_0x5a45fe){const _0x7ec4ab=this['getAllMarkersForId'](_0x5a45fe);let _0x442097='',_0x320b1b=!0x1;for(const _0xf8a1ee of _0x7ec4ab){const _0x2cbfb2=_0xf8a1ee['getRange']();for(const _0x44720e of Array['from'](_0x2cbfb2['getItems']()))_0x44720e['is']('$textProxy')?(_0x442097&&_0x320b1b&&(_0x442097+='\x20',_0x320b1b=!0x1),_0x442097+=_0x44720e['data']):_0x320b1b=!0x0;_0x320b1b=!0x0;}return _0x442097['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x3d93b6,_0x2ef231){const _0x999a73=this['editor'],_0x349179=_0x999a73['plugins']['get'](o);let _0x53d571=_0x349179['getCommentThread'](_0x2ef231);const _0x59d8e0=_0x999a73['config']['get']('collaboration.channelId'),_0x109ec6=_0x999a73['plugins']['get'](b);if(_0x53d571&&(_0x53d571['unlinkedAt']&&_0x53d571['setUnlinkedAt'](null),_0x53d571['isAttached']))return _0x53d571;return!this['getAllMarkersForId'](_0x2ef231)[0x0]['managedUsingOperations']?_0x999a73['editing']['view']['once']('render',()=>{if(_0x349179['getCommentThread'](_0x2ef231))return;const _0x458ab5=_0x999a73['plugins']['get'](y);_0x53d571=_0x349179['openNewCommentThread']({'channelId':_0x59d8e0,'threadId':_0x2ef231,'target':()=>this['_getTargetForId'](_0x2ef231),'context':{'type':'text','value':this['_getTextContext'](_0x2ef231)}});const _0xf4f7b8=_0x349179['_threadToController']['get'](_0x53d571)['view'],_0x4542d0=_0x458ab5['getByInnerView'](_0xf4f7b8);_0x4542d0&&_0x109ec6['registerAnnotation'](_0x4542d0);},{'priority':'low'}):_0x349179['fetchCommentThread']({'channelId':_0x59d8e0,'threadId':_0x2ef231})['then'](_0x135f21=>{if('destroyed'!==_0x999a73['state']){if(_0x53d571=_0x135f21,_0x53d571&&!_0x53d571['isAttached']){const _0x320bbf=_0x53d571['attachTo'](()=>this['_getTargetForId'](_0x2ef231));_0x109ec6['registerAnnotation'](_0x320bbf),_0x53d571['isResolved']&&this['_reconvertMarkers'](_0x2ef231);}else{if(!_0x53d571){const _0x7fea75=this['getAllMarkersForId'](_0x2ef231);_0x999a73['model']['change'](_0x3f64c2=>{for(const _0xb057e0 of _0x7fea75)_0x3f64c2['removeMarker'](_0xb057e0);});}}}}),_0x53d571;}['_handleThreadMarker'](_0x3d33b4,_0x2f25d9){const _0x139739=this['_attachMarkerToThread'](_0x3d33b4,_0x2f25d9);_0x139739&&!_0x139739['context']&&_0x139739['setContext']({'type':'text','value':this['_getTextContext'](_0x2f25d9)});}['_initAriaMarkerChangeAnnouncements'](){const _0x264c99=this['editor'];rt(_0x264c99['model'],({left:_0x20676a,entered:_0x29c845})=>{for(const _0x333b26 of _0x20676a)if(mt(_0x333b26)){_0x264c99['ui']['ariaLiveAnnouncer']['announce'](N(_0x264c99['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x8b9b79 of _0x29c845)if(mt(_0x8b9b79)){_0x264c99['ui']['ariaLiveAnnouncer']['announce'](N(_0x264c99['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x433cbb)));break;}});}}function dt(_0x408819,_0x344c32){return _0x344c32?_0x408819+':'+_0x344c32:_0x408819;}function ht(_0x2e9f3e,_0x519c7b){const _0x5e37e9=_0x519c7b['schema'],_0x175385=_0x519c7b['createRange'](_0x2e9f3e['start']);for(const _0x52830e of _0x2e9f3e['getWalker']()){const {type:_0x3fe3ba,item:_0x37260b,nextPosition:_0x294257}=_0x52830e;if('text'===_0x3fe3ba||_0x5e37e9['isObject'](_0x37260b)){const _0x34fd35=_0x519c7b['createPositionBefore'](_0x37260b);_0x175385['isCollapsed']&&(_0x175385['start']=_0x34fd35),_0x175385['end']=_0x294257;}}return _0x175385;}function mt(_0x33c2dc){return'comment'===ft(_0x33c2dc['name'])['group'];}class s extends _0xc00a87{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,b,y];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x5b6ac8=this['editor'],_0x243213=_0x5b6ac8['plugins']['get'](o),_0x58e1ea=_0x5b6ac8['plugins']['get'](r),_0x4526c5=_0x5b6ac8['plugins']['get'](y),_0x1a76f0=_0x5b6ac8['plugins']['get'](b);_0x5b6ac8['ui']['componentFactory']['add']('comment',()=>{const _0x186ebc=this['_createUIButton'](_0x19a4ce);return _0x186ebc['tooltip']=!0x0,_0x186ebc;}),_0x5b6ac8['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x171cc0)),_0x1a76f0['addSourceCollector'](()=>{const _0x40dce6=[];for(const [_0x3621cb,_0x45a7da]of _0x243213['_threadToController']){const _0x212709=_0x58e1ea['getAllMarkersForId'](_0x3621cb['id']),_0x15e7b0=_0x212709['map'](_0x11d4ba=>_0x11d4ba['getRange']());_0x212709['length']>0x0&&_0x40dce6['push']([_0x45a7da['view'],_0x15e7b0]);}return _0x40dce6;}),this['listenTo'](_0x4526c5,'change:activeAnnotations',(_0x41877a,_0x2c6f21,_0x2814b6)=>{const _0x3ed872=Array['from'](_0x2814b6)['map'](_0x37b5aa=>_0x37b5aa['innerView'])['find'](_0x30a826=>_0x243213['_viewToController']['has'](_0x30a826));if(!_0x3ed872)return void(_0x58e1ea['activeMarker']=null);const _0x220c30=_0x243213['_viewToController']['get'](_0x3ed872)['model']['id'],_0x4d9e5b='comment:'+_0x220c30;_0x220c30&&_0x58e1ea['hasMarkerForId'](_0x220c30)?_0x58e1ea['activeMarker']=_0x4d9e5b:_0x58e1ea['activeMarker']&&(_0x58e1ea['activeMarker']=null);}),this['listenTo'](_0x243213,'removeCommentThread',(_0x58da15,{threadId:_0x3cc54d,isFromAdapter:_0x418cec})=>{!_0x418cec&&_0x5b6ac8['ui']['focusTracker']['isFocused']&&_0x58e1ea['hasMarkerForId'](_0x3cc54d)&&_0x5b6ac8['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x243213,'addComment',(_0x51efe6,{threadId:_0x456ba9,isFromAdapter:_0x3fa8bd})=>{if(_0x3fa8bd||!_0x58e1ea['hasMarkerForId'](_0x456ba9)||!_0x243213['hasCommentThread'](_0x456ba9))return;0x1===_0x243213['getCommentThread'](_0x456ba9)['length']&&(_0x5b6ac8['editing']['view']['focus'](),_0x51efe6['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c2b2d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x547e9d;for(const _0x5973cb in _0x3c2b2d){const _0x15f4ec=_0x5973cb,_0x247580=_0x3c2b2d[_0x15f4ec];if('commentsLicenseKeyValid'==_0x247580||'commentsLicenseKeyInvalid'==_0x247580||'commentsLicenseKeyExpired'==_0x247580||'commentsLicenseKeyDomainLimit'==_0x247580||'commentsLicenseKeyNotAllowed'==_0x247580||'commentsLicenseKeyEvaluationLimit'==_0x247580||'commentsLicenseKeyUsageLimit'==_0x247580){delete _0x3c2b2d[_0x15f4ec],_0x547e9d=_0x247580,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x547e9d&&_0x3c2b2d['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x547e9d&&_0x3c2b2d['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x547e9d&&_0x3c2b2d['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x547e9d&&_0x3c2b2d['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x547e9d&&_0x3c2b2d['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x547e9d&&_0x3c2b2d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0xfc5a23){const _0x50b942=this['editor'],_0x5582d8=new _0xfc5a23(_0x50b942['locale']),_0x941f7b=_0x50b942['commands']['get']('addCommentThread');return _0x5582d8['set']({'label':N(_0x50b942['locale'],'Comment'),'icon':_0x2a98df}),_0x5582d8['bind']('isEnabled')['to'](_0x941f7b,'isEnabled',_0x941f7b,'hasContent',(_0x5626f2,_0xb5b9c7)=>_0x5626f2&&_0xb5b9c7),this['listenTo'](_0x5582d8,'execute',()=>{_0x941f7b['execute']();}),_0x5582d8;}}class i extends _0xc00a87{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x54ab5e){super(_0x54ab5e),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x371250,_0x424858,_0xae0030)=>{_0xae0030?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x38ba77,_0x28492b]of this['editor']['commands'])_0x28492b['affectsData']&&'addCommentThread'!==_0x38ba77&&_0x28492b['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x10cef1=this['editor']['editing']['view']['document'];this['listenTo'](_0x10cef1,'cut',_0x55025b=>_0x55025b['stop'](),{'priority':'highest'}),this['listenTo'](_0x10cef1,'clipboardInput',_0xd649b=>_0xd649b['stop'](),{'priority':'highest'}),this['listenTo'](_0x10cef1,'delete',_0x33fdf9=>_0x33fdf9['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x46fbb6,_0x36a3c6]of this['editor']['commands'])_0x36a3c6['affectsData']&&'addCommentThread'!==_0x46fbb6&&_0x36a3c6['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x4b682f{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xdc6ae){super(_0xdc6ae),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x130ad4=this['context']['plugins']['get'](y);this['listenTo'](_0x130ad4,'_activateAnnotation',(_0x22a1d6,_0x196959)=>{for(const _0x24e8c2 of this['activeUIs']){const _0x143d4=this['_uis']['get'](_0x24e8c2);(0x0,this['uisData']['get'](_0x24e8c2)['filter'])(_0x196959)&&_0x143d4['setActiveAnnotation'](_0x196959);}}),this['listenTo'](_0x130ad4,'_deactivateAllAnnotations',()=>{for(const _0x108f1c of this['activeUIs']){this['_uis']['get'](_0x108f1c)['setActiveAnnotation'](null);}}),this['listenTo'](_0x130ad4['_visibleAnnotations'],'add',(_0x589b55,_0x1869c2)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1869c2);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x29360e){return this['activeUIs']['has'](_0x29360e);}['activate'](_0x2815b1,_0x45222a=this['defaultFilter']){const _0x14e4cf=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x2815b1))throw new _0x4000c2('annotationsuis-missing-ui',this,{'uiName':_0x2815b1});this['isActive'](_0x2815b1)&&this['deactivate'](_0x2815b1),this['activeUIs']['add'](_0x2815b1);const _0x3bab7e=new S();v({'source':_0x14e4cf['_visibleAnnotations'],'target':_0x3bab7e,'filter':_0x45222a}),this['uisData']['set'](_0x2815b1,{'collection':_0x3bab7e,'filter':_0x45222a});const _0x3e6a27=this['_uis']['get'](_0x2815b1);_0x3e6a27['attach'](_0x3bab7e),this['listenTo'](_0x3e6a27,'change:activeAnnotation',(_0x350906,_0x28b81b,_0x3ea3b0,_0x43d75a)=>{_0x43d75a&&_0x14e4cf['_removeActiveAnnotation'](_0x43d75a),_0x3ea3b0&&_0x14e4cf['_addActiveAnnotation'](_0x3ea3b0);});}['deactivate'](_0x266c05){if(this['activeUIs']['delete'](_0x266c05),!this['_uis']['has'](_0x266c05))throw new _0x4000c2('annotationsuis-missing-ui',this,{'uiName':_0x266c05});const _0x5cf0de=this['_uis']['get'](_0x266c05);_0x5cf0de['detach'](),this['stopListening'](_0x5cf0de),this['uisData']['get'](_0x266c05)['collection']['destroy'](),this['uisData']['delete'](_0x266c05);}['switchTo'](_0x18c149){if(!this['_uis']['has'](_0x18c149))throw new _0x4000c2('annotationsuis-missing-ui',this,{'uiName':_0x18c149});const _0x174410=this['context']['plugins']['get'](y),_0x3d8484=Array['from'](_0x174410['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x18c149);const _0xaaad14=this['_uis']['get'](_0x18c149);_0xaaad14['setActiveAnnotation'](_0x3d8484),_0xaaad14['_setSelectedAnnotations']&&_0x3d8484&&_0xaaad14['_setSelectedAnnotations']([_0x3d8484]);}['deactivateAll'](){for(const _0xa278dc of this['activeUIs'])this['deactivate'](_0xa278dc);}['register'](_0x3fb3df,_0x32c57b){if(this['_uis']['has'](_0x3fb3df))throw new _0x4000c2('annotationsuis-register-already-registered');if('function'!=typeof _0x32c57b['attach']||'function'!=typeof _0x32c57b['detach']||'function'!=typeof _0x32c57b['setActiveAnnotation'])throw new _0x4000c2('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x3fb3df,_0x32c57b);}['refilterAnnotations'](){const _0x9c8e03=this['context']['plugins']['get'](y)['collection'],_0x1ac20e=new Map(),_0x14c15a=Array['from'](this['activeUIs']);for(const _0x1eadb4 of this['activeUIs']){const _0x40e160=this['uisData']['get'](_0x1eadb4)['collection'];for(const _0xed50dd of _0x40e160)_0x1ac20e['set'](_0xed50dd,_0x1eadb4);}for(const _0x476cf2 of _0x9c8e03){const _0x6b9586=_0x1ac20e['get'](_0x476cf2);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x476cf2);const _0x43a0b5=_0x14c15a['find'](_0xac37b2=>this['uisData']['get'](_0xac37b2)['filter'](_0x476cf2));_0x6b9586!==_0x43a0b5&&(_0x6b9586&&this['uisData']['get'](_0x6b9586)['collection']['remove'](_0x476cf2),_0x43a0b5&&this['uisData']['get'](_0x43a0b5)['collection']['add'](_0x476cf2));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x51de37){const _0x49f1f7=[];for(const _0x1ec22e of this['activeUIs']){(0x0,this['uisData']['get'](_0x1ec22e)['filter'])(_0x51de37)&&_0x49f1f7['push'](_0x1ec22e);}if(_0x49f1f7['length']>0x1)throw new _0x4000c2('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x49f1f7,'annotationType':_0x51de37['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x5267fc){super(_0x5267fc);const _0x2e028a=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 _0x22fbb8(),this['focusCycler']=new _0x329626({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x2e028a['to']('class')],'style':{'minHeight':_0x2e028a['to']('minHeight',_0x45c364=>'number'==typeof _0x45c364?_i(_0x45c364+0xa):null)},'dir':_0x5267fc['uiLanguageDirection'],'role':'application','aria-label':N(_0x5267fc,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x5267fc,'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',_0x2b74fb=>{this['_updateItemPositionInFocusables'](_0x2b74fb['source']);}),this['list']['forEach'](_0x277d7a=>{this['focusTracker']['add'](_0x277d7a['element']),this['_updateItemPositionInFocusables'](_0x277d7a);}),this['list']['on']('change',(_0x47c2d7,_0x5154bc)=>{for(const _0x10ddd0 of _0x5154bc['removed'])this['focusTracker']['remove'](_0x10ddd0['element']),this['focusables']['remove'](_0x10ddd0);for(const _0x45cc5e of _0x5154bc['added'])this['focusTracker']['add'](_0x45cc5e['element']),this['_updateItemPositionInFocusables'](_0x45cc5e);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x42344e){const _0xdb3179=this['focusables']['getIndex'](_0x42344e);let _0x614eb4,_0x2a83e7;for(const _0x35d209 of this['focusables'])if(_0x42344e['top']<_0x35d209['top']){_0x614eb4=_0x35d209;break;}if(_0x2a83e7=_0x614eb4?this['focusables']['getIndex'](_0x614eb4):this['focusables']['length'],-0x1!==_0xdb3179){if(_0xdb3179===_0x2a83e7-0x1)return;this['focusables']['remove'](_0x42344e),_0x2a83e7=_0x614eb4?this['focusables']['getIndex'](_0x614eb4):this['focusables']['length'];}this['focusables']['add'](_0x42344e,_0x2a83e7);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x2b453e){super(_0x2b453e),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x217f78,_0xc3df6a)=>_0x217f78+_0xc3df6a),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x14decc=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x14decc['to']('isAnimationDisabled',_0x412e6e=>_0x412e6e?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x14decc['to']('top',_0x421733=>Ot(_0x421733))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x5d4edc=this['element']['clientHeight'];_0x5d4edc&&(this['height']=_0x5d4edc);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x4b682f{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1df383){super(_0x1df383),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 _0x293859=this['context']['config']['get']('sidebar.container');_0x293859&&this['setContainer'](_0x293859);}['setContainer'](_0x78815d){if(!g(_0x78815d))throw new _0x4000c2('sidebar-setcontainer-invalid-element');this['container']=_0x78815d;}['_attachToContainer']({viewClass:_0x4887c3='',spaceBetweenItems:_0x468907=0x19}={}){if(!g(this['container']))throw new _0x4000c2('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x4887c3,this['_spaceBetweenItems']=_0x468907;}['rearrange']({removedAnnotation:_0x599252,previousAnnotation:_0x537cf7,nextAnnotation:_0x195a0d}){const _0x7bf28a=this['getSidebarItemView'](_0x599252);this['view']['list']['remove'](_0x7bf28a),this['_destroySidebarItemView'](_0x599252),_0x537cf7&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x537cf7)),_0x195a0d&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x195a0d)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x54524f,activatedAnnotation:_0x295f26,disableAnimationOnActivatedAnnotation:_0x513f15}){if(this['_activeAnnotation']=_0x295f26,_0x54524f){_0x54524f['isActive']=!0x1;const _0x4fb0b1=this['getSidebarItemView'](_0x54524f);_0x4fb0b1&&_0x513f15&&(_0x4fb0b1['isAnimationDisabled']=!0x1);}if(_0x295f26){const _0x437be7=this['getSidebarItemView'](_0x295f26);_0x437be7&&(_0x295f26['isActive']=!0x0,_0x513f15&&(_0x437be7['isAnimationDisabled']=!0x0,_0x437be7['top']+=0x1),this['_alignToTargetRect'](_0x437be7));}}['_detachFromContainer'](_0x25412f){if(this['view']['element']['remove'](),_0x25412f){for(const _0x3726d7 of _0x25412f)this['_destroySidebarItemView'](_0x3726d7);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x2d4ead,_0x4c9d04){_0x4c9d04||(_0x4c9d04=_0x2d4ead['view']);const _0x356e9a=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x356e9a,_0x2d4ead),this['_annotationToSidebarItemView']['set'](_0x2d4ead,_0x356e9a),_0x356e9a['content']['add'](_0x4c9d04),this['listenTo'](_0x2d4ead['view'],'change:targetRect',(_0x3f8fa1,_0x619bf9,_0x4cd5f5)=>{const _0x39b6e3=this['_getTargetTop'](_0x2d4ead,_0x4cd5f5);_0x356e9a['_targetTop']!=_0x39b6e3&&(_0x356e9a['_targetTop']=_0x39b6e3,this['_setItemTop'](_0x356e9a,_0x39b6e3));}),this['listenTo'](_0x356e9a,'change:top',()=>{this['_recalculate'](_0x356e9a,'top');}),this['listenTo'](_0x356e9a,'change:bottom',()=>{this['_recalculate'](_0x356e9a,'bottom');}),this['_alignToTargetRect'](_0x356e9a);const _0x29ccd5=this['_getItemBefore'](_0x356e9a);if(_0x29ccd5)this['_alignAfterItem'](_0x29ccd5,_0x356e9a)||this['_alignToTargetRect'](_0x356e9a);else this['_alignToTargetRect'](_0x356e9a);return this['_updateLastItem'](),this['view']['list']['add'](_0x356e9a),_0x356e9a;}['_alignForTopChange'](_0x2b05dc){if(!_0x2b05dc['content']['length'])return;const _0x37c9bb=this['_getItemBefore'](_0x2b05dc);if(!_0x37c9bb)return;const _0x3f15aa=this['_sidebarItemViewToAnnotation']['get'](_0x37c9bb),_0x1dc4b8=this['_activeAnnotation'];_0x1dc4b8&&_0x1dc4b8===_0x3f15aa?this['_alignAfterItem'](_0x37c9bb,_0x2b05dc):this['_alignBeforeItem'](_0x2b05dc,_0x37c9bb);}['_alignForBottomChange'](_0x3eb444){if(!_0x3eb444['content']['length'])return;const _0x2346c7=this['_getItemAfter'](_0x3eb444);if(!_0x2346c7)return;const _0x26a1dd=this['_sidebarItemViewToAnnotation']['get'](_0x2346c7),_0x424ad0=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x161961=this['_activeAnnotation'];_0x161961&&_0x161961===_0x26a1dd&&_0x424ad0?(this['_alignBeforeItem'](_0x2346c7,_0x3eb444),this['_alignAfterItem'](_0x3eb444,_0x2346c7)):_0x161961&&_0x161961===_0x26a1dd?this['_alignBeforeItem'](_0x2346c7,_0x3eb444):this['_alignAfterItem'](_0x3eb444,_0x2346c7);}['_recalculate'](_0x2537c1,_0x34b389){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x244706,changedProp:_0x55c4b1}of this['_recalculateBuffer'])'top'===_0x55c4b1?this['_alignForTopChange'](_0x244706):this['_alignForBottomChange'](_0x244706);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x2537c1,'changedProp':_0x34b389});}['getSidebarItemView'](_0x2136a9){return this['_annotationToSidebarItemView']['get'](_0x2136a9);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x5141fb){const _0xc7d8c2=this['getSidebarItemView'](_0x5141fb);this['stopListening'](_0xc7d8c2),this['stopListening'](_0x5141fb['view']),_0xc7d8c2['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x5141fb),this['_sidebarItemViewToAnnotation']['delete'](_0xc7d8c2);}['_createSidebarView'](){const _0x34c728=new H(this['context']['locale']);return _0x34c728['render'](),this['on']('change:_lastItem',(_0x3a52b9,_0x12df11,_0x5d34a0,_0x3d2ef6)=>{_0x3d2ef6&&_0x34c728['unbind']('minHeight'),_0x5d34a0?_0x34c728['bind']('minHeight')['to'](_0x5d34a0,'bottom'):_0x34c728['minHeight']=null;}),_0x34c728;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x177573){const _0xe7d80a=this['_sidebarItemViewToAnnotation']['get'](_0x177573),_0xb8870c=_0xe7d80a&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xe7d80a)-0x1);return _0xb8870c&&this['getSidebarItemView'](_0xb8870c)||null;}['_getItemAfter'](_0x560aec){const _0x1d6ecf=this['_sidebarItemViewToAnnotation']['get'](_0x560aec),_0x585e77=_0x1d6ecf&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1d6ecf)+0x1);return _0x585e77&&this['getSidebarItemView'](_0x585e77)||null;}['_alignBeforeItem'](_0x1a2a75,_0x1e3c7c){_0x1a2a75['updateHeight']();const _0x4cc8ac=G(_0x1e3c7c['bottom']+this['_spaceBetweenItems'],_0x1a2a75['top']);return!!_0x4cc8ac&&(this['_setItemTop'](_0x1e3c7c,_0x1e3c7c['top']-_0x4cc8ac),!0x0);}['_alignAfterItem'](_0xe703e4,_0x56e5de){_0xe703e4['updateHeight']();const _0x21fb21=G(_0xe703e4['bottom']+this['_spaceBetweenItems'],_0x56e5de['top']);return!!_0x21fb21&&(this['_setItemTop'](_0x56e5de,_0x56e5de['top']+_0x21fb21,!0x1),!0x0);}['_alignToTargetRect'](_0x381f1b){const _0x3d2c48=this['_sidebarItemViewToAnnotation']['get'](_0x381f1b);if(!_0x3d2c48||!_0x3d2c48['target']||!_0x3d2c48['targetRect'])return;const _0x5e8f4d=this['_getTargetTop'](_0x3d2c48,_0x3d2c48['targetRect']);this['_setItemTop'](_0x381f1b,_0x5e8f4d);}['_getTargetTop'](_0x44e64f,_0x3ba72f){if(null===_0x3ba72f)return 0x0;if(_0x44e64f['target']instanceof _0x2767ff)return _0x3ba72f['top'];{const _0x3be07d=new _0x2767ff(this['view']['element'])['top'];return _0x3ba72f['top']-_0x3be07d;}}['_setItemTop'](_0x32c86c,_0x590b98,_0x3c35f9=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x3c35f9&&(_0x590b98=Math['max'](_0x590b98,this['_getMaxAvailableTop'](_0x32c86c))),_0x32c86c['top']=_0x590b98;}['_getMaxAvailableTop'](_0x1c752b){let _0x59c0ec=this['_getItemBefore'](_0x1c752b),_0x43ccd2=0x0;for(;_0x59c0ec;)_0x59c0ec['updateHeight'](),_0x43ccd2+=this['_spaceBetweenItems']+_0x59c0ec['height'],_0x59c0ec=this['_getItemBefore'](_0x59c0ec);return _0x43ccd2;}}function G(_0x1926bf,_0x3961ad){return Math['max'](_0x1926bf-_0x3961ad,0x0);}function g(_0x576990){return null!==_0x576990&&'object'==typeof _0x576990&&0x1===_0x576990['nodeType'];}class e extends _0x4b682f{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15df6e){super(_0x15df6e),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x236aed(),this['_refreshPositioningDebounced']=_0x51e02f(()=>{_0x15df6e['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x48b23d=this['context']['plugins']['get'](j),_0x6785c=this['context']['plugins']['get'](z);_0x48b23d['register']('wideSidebar',this),_0x6785c['container']&&_0x48b23d['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x1e7489){if(_0x1e7489===this['activeAnnotation'])return;const _0x56a955=this['context']['plugins']['get'](z);_0x56a955['_activeAnnotation']=_0x1e7489;const _0x5ef1bf=this['activeAnnotation'];_0x56a955['refresh']({'blurredAnnotation':_0x5ef1bf,'activatedAnnotation':_0x1e7489}),this['activeAnnotation']=_0x1e7489;}['attach'](_0x5c8f1){this['annotations']=_0x5c8f1;const _0x3c412e=this['context']['plugins']['get'](z);if(_0x3c412e['_annotations']=_0x5c8f1,this['isAttached'])throw new _0x4000c2('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3c412e,'set:container',()=>{this['detach'](),this['listenTo'](_0x3c412e,'change:container',_0xe56543=>{_0xe56543['off'](),this['attach'](_0x5c8f1);});}),_0x3c412e['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x12ecf0=_0x5b9878=>{_0x5b9878['updateTargetRect'](),_0x3c412e['addAnnotation'](_0x5b9878);};for(const _0x46e3f1 of _0x5c8f1)_0x12ecf0(_0x46e3f1);this['listenTo'](_0x5c8f1,'add',(_0x58e039,_0x58b4c9)=>{_0x12ecf0(_0x58b4c9);}),this['listenTo'](_0x5c8f1,'remove',(_0x38a551,_0x20eaa9,_0x4c40d6)=>{_0x3c412e['rearrange']({'removedAnnotation':_0x20eaa9,'previousAnnotation':_0x5c8f1['get'](_0x4c40d6-0x1),'nextAnnotation':_0x5c8f1['get'](_0x4c40d6+0x1)}),_0x20eaa9===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x5c8f1,'focus',(_0x24a474,_0x1d4f6f)=>{this['setActiveAnnotation'](_0x1d4f6f);}),this['listenTo'](_0x5c8f1,'blur',()=>{this['setActiveAnnotation'](null);});const _0x14858c=this['context']instanceof _0x5d9522?this['context']['editors']:new _0x236aed([this['context']]);for(const _0x46fbe6 of _0x14858c)this['_integrateWithEditorAnnotations'](_0x46fbe6);this['listenTo'](_0x14858c,'add',(_0x3d300a,_0x11ea10)=>{this['listenTo'](_0x11ea10,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x11ea10);});}),this['listenTo'](_0x14858c,'remove',(_0x51a624,_0xad8d87)=>{_0xad8d87['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0xad8d87['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x4000c2('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5019ad=this['context']['plugins']['get'](z);_0x5019ad['_detachFromContainer'](this['annotations']),this['stopListening'](_0x5019ad),this['stopListening'](this['annotations']),this['context']instanceof _0x5d9522&&this['stopListening'](this['context']['editors']);for(const _0x1f095c of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1f095c);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2f8337){if(!_0x2f8337['plugins']['has']('EditorAnnotations'))return;const _0x24c63f=_0x2f8337['plugins']['get']('EditorAnnotations'),_0x12c619=()=>{const _0x2482ed=_0x24c63f['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x2482ed[0x0]||null);};this['listenTo'](_0x24c63f,'refresh',_0x12c619),this['listenTo'](_0x24c63f,'blur',(_0x2bc1be,{isAnnotationTracked:_0x50280a})=>{this['activeAnnotation']&&_0x50280a(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x24c63f,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x4221a6=>{_0x24c63f['hasDomSelection']()&&(_0x12c619(),_0x4221a6['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x24c63f);}['_destroyEditorAnnotationsIntegration'](_0x35dac1){this['stopListening'](_0x35dac1),this['_editorAnnotations']['remove'](_0x35dac1);}}class C extends _0x19a4ce{['counterView'];constructor(_0x248208){super(_0x248208);const _0x358fcd=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1ac209,_0x3a6ac9)=>_0x1ac209?'...':_0x3a6ac9['toString']()),this['set']('annotationType',''),this['icon']=_0x2a98df,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x358fcd['to']('annotationType',_0x589b42=>'ck-annotation-counter__badge--'+_0x589b42),_0x358fcd['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x358fcd['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x4b682f{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11d1d8){super(_0x11d1d8),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x5743fa())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x236aed(),this['_refreshPositioningDebounced']=_0x51e02f(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x5a1f0d(this['context']['locale']),this['balloonPanelView']=new _0x46579c(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x346321){this['annotations']=_0x346321;const _0x79904b=this['context']['plugins']['get'](z),_0x2de207=this['balloonPanelView'];if(_0x79904b['_annotations']=_0x346321,this['isAttached'])throw new _0x4000c2('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x79904b,'set:container',()=>{this['detach'](),this['listenTo'](_0x79904b,'change:container',_0x369123=>{_0x369123['off'](),this['attach'](_0x346321);});}),_0x79904b['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x963e67=_0x1b0028=>{const _0x4c0cf9=new C(this['context']['locale']);_0x79904b['addAnnotation'](_0x1b0028,_0x4c0cf9),this['_annotationToNarrowView']['set'](_0x1b0028,_0x4c0cf9),_0x4c0cf9['bind']('isDirty','annotationType','number')['to'](_0x1b0028['view'],'isDirty','type','length'),_0x4c0cf9['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x2de207['content']['first']!==_0x1b0028['view']?(this['_showBalloon'](_0x1b0028),_0x1b0028['view']['element']['focus'](),this['setActiveAnnotation'](_0x1b0028)):this['setActiveAnnotation'](null);});};for(const _0xe39a71 of _0x346321)_0x963e67(_0xe39a71);this['listenTo'](_0x346321,'add',(_0x378c84,_0x2d28ee)=>{_0x963e67(_0x2d28ee);}),this['listenTo'](_0x346321,'remove',(_0x82fb65,_0x4a31e6,_0x57cb3a)=>{this['_annotationToNarrowView']['get'](_0x4a31e6)['destroy'](),this['_annotationToNarrowView']['delete'](_0x4a31e6),_0x79904b['rearrange']({'removedAnnotation':_0x4a31e6,'previousAnnotation':_0x346321['get'](_0x57cb3a-0x1),'nextAnnotation':_0x346321['get'](_0x57cb3a+0x1)}),_0x4a31e6===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x346321,'focus',(_0x36e102,_0x196fc3)=>{this['setActiveAnnotation'](_0x196fc3);}),this['listenTo'](_0x346321,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x2e29d8,_0x270f69)=>{_0x270f69['keyCode']===_0x46e1a0['esc']&&_0x2de207['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x2de207['content']['first']),this['_hideBalloon'](),_0x270f69['stopPropagation'](),_0x270f69['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x2f8945,_0x40b466)=>{const _0x430b59=_0x40b466['target'];_0x2de207['isVisible']&&_0x2de207['element']['contains'](_0x430b59)||_0x79904b['view']['element']['contains'](_0x430b59)||_0x2f8945['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x8c8216=>_0x8c8216['contains'](_0x430b59))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0xcd57ff=this['context']instanceof _0x5d9522?this['context']['editors']:new _0x236aed([this['context']]);for(const _0x34137c of _0xcd57ff)this['_integrateWithEditorAnnotations'](_0x34137c);this['listenTo'](_0xcd57ff,'add',(_0xf27793,_0x5e1f7e)=>{this['listenTo'](_0x5e1f7e,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5e1f7e);});}),this['listenTo'](_0xcd57ff,'remove',(_0x2e4a54,_0x5af42a)=>{_0x5af42a['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5af42a['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x4bacd6){if(_0x4bacd6===this['activeAnnotation'])return;const _0x2f1c01=this['context']['plugins']['get'](z);if(_0x2f1c01['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x4bacd6,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4bacd6)_0x2f1c01['getSidebarItemView'](_0x4bacd6)?this['_showBalloon'](_0x4bacd6):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x4bacd6;}['detach'](){if(!this['isAttached'])throw new _0x4000c2('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x456ff1=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x4ce8d6=>_0x4ce8d6['destroy']()),this['_annotationToNarrowView']['clear'](),_0x456ff1['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x5d9522&&this['stopListening'](this['context']['editors']);for(const _0x3f3c6d of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3f3c6d);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'](_0x4ca695){if(!_0x4ca695['plugins']['has']('EditorAnnotations'))return;const _0x202f15=_0x4ca695['plugins']['get']('EditorAnnotations'),_0x66e099=this['context']['plugins']['get'](z),_0x552842=this['annotations'],_0x341c86=this['balloonPanelView'],_0x4822a3=()=>{const _0x40971e=_0x202f15['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x40971e),this['setActiveAnnotation'](_0x40971e[0x0]||null);};this['listenTo'](_0x202f15,'refresh',_0x4822a3),this['listenTo'](_0x202f15,'blur',(_0x5344fd,{isAnnotationTracked:_0x5697bc})=>{this['activeAnnotation']&&_0x5697bc(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x202f15,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x552842,'blur',_0x5ba7cc=>{_0x202f15['hasDomSelection']()&&_0x5ba7cc['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x2b78a8,_0x33f134)=>{const _0x36679c=_0x33f134['target'];_0x341c86['isVisible']&&_0x341c86['element']['contains'](_0x36679c)||_0x66e099['view']['element']['contains'](_0x36679c)||this['activeAnnotation']&&_0x202f15['hasDomSelection']()&&(_0x4822a3(),_0x2b78a8['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x202f15);}['_destroyEditorAnnotationsIntegration'](_0x33bab2){_0x33bab2&&(this['stopListening'](_0x33bab2),this['_editorAnnotations']['remove'](_0x33bab2));}['_setSelectedAnnotations'](_0x5d94dd){for(const _0x2bf512 of this['_selectedAnnotations'])_0x5d94dd['includes'](_0x2bf512)||this['_manuallyClosedAnnotationViews']['delete'](_0x2bf512['view']);this['_selectedAnnotations']=_0x5d94dd;}['_refreshPositioning'](){const _0x390230=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x390230['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x10d6cb){if(this['_manuallyClosedAnnotationViews']['has'](_0x10d6cb['view']))return;const _0x37d8c5=this['balloonPanelView']['content']['first'];_0x37d8c5!==_0x10d6cb['view']?(_0x37d8c5&&this['_detachListeners'](_0x37d8c5),this['_attachListeners'](_0x10d6cb['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x10d6cb['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0xf3a608=this['balloonPanelView']['content']['first'],_0x119718=_0xf3a608&&this['annotations']['getByView'](_0xf3a608);if(!_0x119718||!this['_annotationToNarrowView']['has'](_0x119718))return;const _0x375bf1=this['_annotationToNarrowView']['get'](_0x119718)['element'],_0x54c1da=(function(){const _0x109173=_0x46579c['defaultPositions'];return[_0x109173['southArrowNorthEast'],_0x109173['northArrowSouthEast'],_0x109173['southArrowNorth'],_0x109173['northArrowSouth'],_0x109173['southArrowNorthWest'],_0x109173['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x375bf1,'positions':_0x54c1da});}['_hideBalloon'](){const _0x2a15ea=this['balloonPanelView'],_0x3e7234=_0x2a15ea['content']['first'];_0x3e7234&&(this['_detachListeners'](_0x3e7234),_0x2a15ea['unpin'](),_0x2a15ea['content']['clear']());}['_attachListeners'](_0x436d4f){this['listenTo'](_0x436d4f,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x436d4f,'Esc',(_0x9d9a96,_0x1f8b9b)=>{this['_manuallyClosedAnnotationViews']['add'](_0x436d4f),this['_hideBalloon'](),_0x1f8b9b();});}['_detachListeners'](_0x2c3eeb){this['stopListening'](_0x2c3eeb);}}class c extends _0xc00a87{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x296170,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb8782f){super(_0xb8782f),_0xb8782f['editing']['view']['addObserver'](_0xf0bc54),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0xb8782f['plugins']['get'](_0x296170),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x8fc44a=this['editor']['plugins']['get'](j);_0x8fc44a['context']===this['editor']&&(_0x8fc44a['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x58b0f8,_0x326b93)=>{const _0x1b33ec=this['_balloon'];if(this['isAttached']&&_0x1b33ec['visibleView']){const _0x622fd8=this['annotations']['getByView'](_0x1b33ec['visibleView']);_0x622fd8&&this['_closeAnnotation'](_0x622fd8),_0x326b93();}}));}['afterInit'](){const _0x7b7f89=this['editor']['plugins']['get'](j);_0x7b7f89['context']===this['editor']&&(_0x7b7f89['hasActive']()||_0x7b7f89['switchTo']('inline'));}['setActiveAnnotation'](_0x2ca70c){_0x2ca70c!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x2ca70c&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x2ca70c)&&this['_addAnnotationToBalloon'](_0x2ca70c,!0x0),_0x2ca70c['isActive']=!0x0),_0x2ca70c||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x2ca70c);}['attach'](_0x5f33e7){this['annotations']=_0x5f33e7;const _0x5a314c=this['editor']['plugins']['get'](j),_0x5a163b=this['_balloon'];if(this['isAttached'])throw new _0x4000c2('inlineannotations-attach-already-attached',this);if(_0x5a314c['context']!==this['editor'])throw new _0x4000c2('inlineannotations-not-allowed-with-context',this);const _0x43cc66=this['editor']['plugins']['get'](b);this['listenTo'](_0x43cc66,'refresh',()=>{const _0x33193a=_0x43cc66['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x31d37e,_0x4cf9a8;!this['_forceRefresh']&&(_0x31d37e=_0x33193a,_0x4cf9a8=this['_selectedAnnotations'],_0x31d37e['length']===_0x4cf9a8['length']&&_0x31d37e['every'](_0x3ef602=>_0x4cf9a8['includes'](_0x3ef602)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x33193a),this['setActiveAnnotation'](_0x33193a[0x0]||null));}),this['listenTo'](_0x43cc66,'blur',(_0x31adb5,{isAnnotationTracked:_0x23d774})=>{this['activeAnnotation']&&_0x23d774(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x451b7,_0x3e8424,_0x62cf8a)=>{_0x62cf8a||this['setActiveAnnotation'](null);}),this['listenTo'](_0x5f33e7,'remove',(_0x1a0d5f,_0x5e5949)=>{this['_removeAnnotationFromBalloon'](_0x5e5949),_0x5e5949===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5a163b,'change:visibleView',(_0x27ca39,_0x4689ac,_0x4feb5f,_0x21ec16)=>{_0x21ec16&&this['stopListening'](_0x21ec16);const _0x46e582=_0x5f33e7['getByView'](_0x4feb5f);_0x4feb5f&&_0x46e582&&(this['listenTo'](_0x4feb5f,'change:height',()=>{_0x5a163b['updatePosition']();}),this['listenTo'](_0x4feb5f,'Esc',()=>{this['_closeAnnotation'](_0x46e582),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x46e582&&this['setActiveAnnotation'](_0x46e582));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5a163b['visibleView']&&(_0x5f33e7['getByView'](_0x5a163b['visibleView'])&&_0x5a163b['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 _0x4000c2('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x57f178 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x57f178);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x1f6e11){for(const _0xc07180 of this['_selectedAnnotations'])_0x1f6e11['includes'](_0xc07180)||this['_manuallyClosed']['delete'](_0xc07180);for(const _0x1312ca of this['annotations'])_0x1f6e11['includes'](_0x1312ca)||this['_removeAnnotationFromBalloon'](_0x1312ca);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x481380 of _0x1f6e11)this['_addAnnotationToBalloon'](_0x481380);}this['_selectedAnnotations']=_0x1f6e11;}['_addAnnotationToBalloon'](_0x5a57be,_0x4de29b=!0x1){this['_manuallyClosed']['has'](_0x5a57be)||(this['_addedAnnotations']['has'](_0x5a57be)||this['_balloon']['hasView'](_0x5a57be['view'])||(this['_addedAnnotations']['add'](_0x5a57be),this['_balloon']['add']({'stackId':_0x5a57be['view']['id'],'view':_0x5a57be['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5a57be)}})),_0x4de29b&&this['_balloon']['showStack'](_0x5a57be['view']['id']));}['_getBalloonTargetForAnnotation'](_0xd3dbdf){const _0x3c45a7=_0xd3dbdf['target'],_0x1eb482=this['editor']['editing']['view'],_0x505ddc=_0x1eb482['document']['selection']['getFirstRange'](),_0x233917=_0x1eb482['domConverter']['viewRangeToDom'](_0x505ddc);if(_0x233917['collapse'](!0x0),_0x3c45a7){if(_0x3c45a7 instanceof _0x2767ff)return _0x3c45a7;let _0x204424=[];for(const _0x2414ae of _0x3c45a7)_0x204424['push'](...F(_0x2414ae['getClientRects']()));_0x204424=function(_0x544737){const _0x16c366=[];let _0x42c59c=_0x544737[0x0];for(let _0x12916f=0x1;_0x12916f<_0x544737['length'];_0x12916f++)P(_0x42c59c,_0x544737[_0x12916f])?_0x42c59c['width']+=_0x544737[_0x12916f]['width']:(_0x16c366['push'](_0x42c59c),_0x42c59c=_0x544737[_0x12916f]);return _0x16c366['push'](_0x42c59c),_0x16c366;}(_0x204424);const _0x54a280=_0x233917['getBoundingClientRect']();return _0x204424['find'](_0x50b314=>_0x50b314['top']<=_0x54a280['top']&&_0x50b314['bottom']>=_0x54a280['bottom']&&_0x50b314['left']<=_0x54a280['left']&&_0x50b314['right']>=_0x54a280['right'])||_0x204424[0x0];}return _0xd3dbdf['targetRect']||_0x233917;}['_removeAnnotationFromBalloon'](_0x18634c){this['_addedAnnotations']['has'](_0x18634c)&&this['_balloon']['hasView'](_0x18634c['view'])&&(this['_addedAnnotations']['delete'](_0x18634c),this['_balloon']['remove'](_0x18634c['view']));}['_closeAnnotation'](_0x2503ce){this['_manuallyClosed']['add'](_0x2503ce),this['_removeAnnotationFromBalloon'](_0x2503ce);}}function F(_0x32a9e3){return Array['from'](_0x32a9e3)['map'](DOMRect['fromRect']);}function P(_0xc5d22e,_0x351be9){return _0xc5d22e['top']===_0x351be9['top']&&_0xc5d22e['bottom']===_0x351be9['bottom']&&_0xc5d22e['right']===_0x351be9['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x4ce75e,_0x2690b7){super(_0x4ce75e),this['set']('isEmpty',!_0x2690b7['length']),this['focusTracker']=new _0x22fbb8(),this['_annotationViews']=_0x2690b7,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x329626({'focusables':_0x2690b7,'focusTracker':this['focusTracker']}),this['listenTo'](_0x2690b7,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x2690b7,'remove',(_0x37da69,_0x377784)=>{_0x377784['isActive']&&this['focus'](),_0x2690b7['length']||(this['isEmpty']=!0x0);});const _0x5abce8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x4ce75e,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x2690b7},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x5abce8['if']('isEmpty','ck-hidden',_0x24e980=>!_0x24e980)]},'children':[{'text':N(_0x4ce75e,'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 _0x98272b of this['_annotationViews'])this['focusTracker']['add'](_0x98272b['element']);this['_annotationViews']['on']('change',(_0x86de5,{added:_0x4f2706,removed:_0x36a710})=>{for(const _0x18a818 of _0x4f2706)this['focusTracker']['add'](_0x18a818['element']);for(const _0x54b016 of _0x36a710)this['focusTracker']['remove'](_0x54b016['element']);});}}class p extends _0x4b682f{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x49ccfc){super(_0x49ccfc),this['archivedThreads']=new _0x236aed();}['init'](){const _0x3f63e8=this['context'],_0x46eec3=_0x3f63e8['plugins']['get'](o),_0x58ae86=_0x3f63e8['plugins']['get'](y);this['listenTo'](_0x46eec3,'addCommentThread',(_0x368851,{threadId:_0x2533f2})=>{const _0x879f88=_0x46eec3['getCommentThread'](_0x2533f2);_0x879f88['archivedAt']&&this['archivedThreads']['add'](_0x879f88,this['_calculatePosition'](_0x879f88['archivedAt'])),this['listenTo'](_0x879f88,'change:archivedAt',(_0x48336d,_0x5c21d0,_0x28da5c)=>{_0x28da5c?this['archivedThreads']['has'](_0x879f88)||this['archivedThreads']['add'](_0x879f88,this['_calculatePosition'](_0x879f88['archivedAt'])):this['archivedThreads']['has'](_0x879f88)&&this['archivedThreads']['remove'](_0x879f88);});}),this['listenTo'](_0x46eec3,'removeCommentThread',(_0x50a1ed,{threadId:_0x473ada})=>{const _0x234136=_0x46eec3['getCommentThread'](_0x473ada);this['stopListening'](_0x234136),this['archivedThreads']['has'](_0x234136)&&this['archivedThreads']['remove'](_0x234136);},{'priority':'highest'}),this['listenTo'](_0x58ae86['collection'],'focus',(_0x1baabe,_0x56efa0)=>{_0x56efa0['isVisible']||(_0x56efa0['isActive']=!0x0,_0x58ae86['activate'](_0x56efa0));});}['_calculatePosition'](_0x180e42){const _0x224811=[...this['archivedThreads']]['findIndex'](_0x2f0c48=>_0x2f0c48['archivedAt']<_0x180e42);return _0x224811>-0x1?_0x224811:this['archivedThreads']['length'];}}class a extends _0xc00a87{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x1972a5];}constructor(_0x6f326a){super(_0x6f326a),this['annotationViews']=new _0x12e523(),this['_pendingThreads']=[];}['init'](){const _0x2fac43=this['editor'],_0x32e50c=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x2fac43['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x19a4ce,!0x0)),_0x2fac43['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x3b4ffe=this['_createCommentsArchiveButton'](_0x171cc0);return _0x3b4ffe['set']({'role':'menuitemcheckbox'}),_0x3b4ffe;});const _0x361138=_0x2fac43['plugins']['get'](p),_0x36980c=_0x2fac43['plugins']['get']('Annotations'),_0x25f6a2=_0x2fac43['plugins']['get']('CommentsRepository');_0x361138['archivedThreads']['forEach'](_0x20fbfc=>{this['_handleNewThread'](_0x20fbfc);}),this['listenTo'](_0x361138['archivedThreads'],'add',(_0x4787ca,_0x319074)=>{this['_handleNewThread'](_0x319074);}),this['listenTo'](_0x36980c['collection'],'add',(_0x25cf35,_0x58b830)=>{const _0x21116b=this['_pendingThreads']['find'](_0x3dbd15=>{const _0x470744=_0x25f6a2['_threadToController']['get'](_0x3dbd15);return _0x470744&&_0x58b830['innerView']===_0x470744['view'];});if(_0x21116b){const _0x48af8a=this['_calculatePosition'](_0x21116b['archivedAt']);this['_addAnnotationToArchive'](_0x58b830,_0x48af8a),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x21116b),0x1);}}),this['listenTo'](_0x361138['archivedThreads'],'remove',(_0xa50b,_0x5cde5c)=>{const _0x476701=_0x2fac43['config']['get']('collaboration.channelId');if(!_0x476701||_0x5cde5c['channelId']===_0x476701){if(this['_pendingThreads']['includes'](_0x5cde5c))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x5cde5c),0x1);else{const _0x5233ed=_0x25f6a2['_threadToController']['get'](_0x5cde5c),_0x3d3487=_0x36980c['getByInnerView'](_0x5233ed['view']);this['annotationViews']['remove'](_0x3d3487['view']),this['stopListening'](_0x3d3487),this['stopListening'](_0x3d3487['focusableElements']);}}}),this['listenTo'](_0x36980c['collection'],'add',(_0x37b479,_0x15c279)=>{this['listenTo'](_0x15c279,'escape',_0x32e50c);}),this['listenTo'](_0x36980c['collection'],'remove',(_0x53f905,_0x372622)=>{this['stopListening'](_0x372622,'escape',_0x32e50c);});}['_addAnnotationToArchive'](_0x382462,_0x50df0a){this['listenTo'](_0x382462,'set:isVisible',_0x1b1c72=>{_0x1b1c72['return']=!0x1,_0x1b1c72['stop']();}),this['annotationViews']['add'](_0x382462['view'],_0x50df0a);}['_handleNewThread'](_0x66fb10){const _0x6a1fd1=this['editor']['plugins']['get']('CommentsRepository'),_0x52647d=this['editor']['plugins']['get']('Annotations'),_0x1fc7e9=this['editor']['config']['get']('collaboration.channelId');if(!_0x1fc7e9||_0x66fb10['channelId']===_0x1fc7e9){const _0x7fb462=_0x6a1fd1['_threadToController']['get'](_0x66fb10);if(!_0x7fb462)return void this['_pendingThreads']['push'](_0x66fb10);const _0x46177d=this['_calculatePosition'](_0x66fb10['archivedAt']),_0x471a53=_0x52647d['getByInnerView'](_0x7fb462['view']);_0x471a53['isVisible']&&_0x52647d['_visibleAnnotations']['remove'](_0x471a53),this['_addAnnotationToArchive'](_0x471a53,_0x46177d);}}['_calculatePosition'](_0xb5bf4d){const _0x4d9ee0=this['editor']['config']['get']('collaboration.channelId'),_0x15e295=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x344e43=>_0x344e43['channelId']===_0x4d9ee0)['findIndex'](_0x2183e8=>_0x2183e8['archivedAt']<_0xb5bf4d);return _0x15e295<0x0||_0x15e295>this['annotationViews']['length']?this['annotationViews']['length']:_0x15e295-0x1;}['_toggleDialog'](){const _0x230663=this['editor'],_0xc8eba=_0x230663['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x230663['locale'],this['annotationViews'])),'commentsArchive'===_0xc8eba['id']?_0xc8eba['hide']():_0xc8eba['show']({'id':'commentsArchive','title':N(_0x230663['locale'],'COMMENTS_ARCHIVE'),'icon':_0x5d05ce,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x20ca1c['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x39c2d9,_0x3b5b79=!0x1){const _0x14ad53=this['editor']['locale'],_0x2c7b12=this['editor']['plugins']['get']('Dialog'),_0x14413d=new _0x39c2d9(_0x14ad53);return _0x14413d['bind']('isEnabled')['to'](this,'isEnabled'),_0x14413d['bind']('isOn')['to'](_0x2c7b12,'id',_0x2eb517=>'commentsArchive'===_0x2eb517),_0x14413d['set']({'label':N(_0x14ad53,'COMMENTS_ARCHIVE'),'icon':_0x5d05ce,'isToggleable':!0x0}),_0x3b5b79&&(_0x14413d['tooltip']=!0x0),this['listenTo'](_0x14413d,'execute',()=>this['_toggleDialog']()),_0x14413d;}['_hideDialogOnAnnotationEscape']=_0x1e0c62=>{const _0x5bd4bd=_0x1e0c62['source'];if(!this['annotationViews']['has'](_0x5bd4bd['view']))return;const _0x3cab00=this['editor']['plugins']['get']('Dialog');_0x3cab00['isOpen']&&'commentsArchive'===_0x3cab00['id']&&(_0x3cab00['hide'](),_0x1e0c62['stop']());};}class gi extends _0xc00a87{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};