@ckeditor/ckeditor5-comments 44.1.0-alpha.3 → 44.1.0-alpha.4

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.
package/dist/index.js CHANGED
@@ -20,12 +20,12 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x566fe0,icons as _0x20142f,ContextPlugin as _0x3af1c1,PendingActions as ht,Command as _0x155798,Plugin as _0x22c34d,Context as _0x22ff66}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x329efe,uid as _0x2f91a7,KeystrokeHandler as jt,FocusTracker as _0x1394a2,diff as _0x61cf99,Collection as _0x5b4d52,Rect as _0x2bcee5,CKEditorError as _0x5231a1,first as _0x1846ff,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x5dad22,keyCodes as _0x2276f7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0xbcd186,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x54426c,ConfirmMixin as ti,LateFocusButtonView as _0x426ea1,trimHtml as _0x383f48,LateFocusDropdownButtonView as _0x38e758,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x244b9c}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x403224}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x39ca28,ViewCollection as _0xa9c1f1,createDropdown as _0x249169,ListView as _0x135af5,focusChildOnDropdownOpen as _0x56ed8e,ListItemView as _0x50d08e,MenuBarMenuListItemButtonView as _0x2d310f,BodyCollection as _0x2d542c,BalloonPanelView as _0x111549,ContextualBalloon as _0x1b23e4,Dialog as _0x690daf,DialogViewPosition as _0x30a3a1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x379750}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Nt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Qt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x5547df}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x55523f}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
- _0x329efe(){['model'];['view'];constructor(_0x48506a,_0x3c82ef){super(),this['model']=_0x48506a,this['model']['_isAttached']=!0x0,this['view']=_0x3c82ef,this['listenTo'](_0x3c82ef,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x3c82ef,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x3c82ef,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x3c82ef,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x3c82ef,'addComment',(_0x56385d,_0x248e51)=>this['addComment'](_0x248e51)),this['listenTo'](_0x3c82ef,'updateComment',(_0x311594,_0x41b517,_0x2095fa)=>this['updateComment'](_0x41b517,_0x2095fa)),this['listenTo'](_0x3c82ef,'removeComment',(_0x103ffd,_0xa457f7)=>this['removeComment'](_0xa457f7));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0xf1fd67){this['model']['addComment']({'content':_0xf1fd67,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x3d40e3,_0x14fda8){this['model']['getComment'](_0x3d40e3)['update']({'content':_0x14fda8});}['removeComment'](_0x17a567){this['model']['getComment'](_0x17a567)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x17644f,_0x4d2f4e,_0x2b01ac){const t=_0x17644f['t'];switch(_0x4d2f4e){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'},_0x2b01ac);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'},_0x2b01ac);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'},_0x2b01ac);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'},_0x2b01ac);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x2b01ac);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'},_0x2b01ac);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'},_0x2b01ac);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'},_0x2b01ac);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Xt extends Yt{['main'];['editable'];constructor(_0x40319f,_0x5bfbc7){super(_0x40319f);const _0x4358c5=_0x2f91a7();this['main']=this['createCollection'](),this['editable']=new $t(_0x40319f,_0x5bfbc7,void 0x0,{'label':()=>S(_0x40319f,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x40319f['uiLanguageDirection'],'lang':_0x40319f['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x4358c5},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Vt{['view'];constructor(_0x5abd34){super(_0x5abd34),this['view']=new Xt(_0x5abd34['locale'],_0x5abd34['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x279433=this['editor']['editing']['view'],_0x5cbe4b=this['view']['editable'],_0x2e4797=_0x279433['document']['getRoot']();_0x5cbe4b['name']=_0x2e4797['rootName'],this['view']['render']();const _0x4e30b2=_0x5cbe4b['element'];this['setEditableElement'](_0x5cbe4b['name'],_0x4e30b2),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x279433['attachDomRoot'](_0x4e30b2),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
25
- _0x329efe(_0x566fe0){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Rt)());constructor(_0x55550b={}){function _0x6d7138(_0xf165c3){return _0xf165c3['map'](_0x51963e=>String['fromCharCode'](_0x51963e))['join']('');}(_0x55550b=Object['assign']({},_0x55550b))['plugins']||(_0x55550b['plugins']=Ut['defaultPlugins']),super(_0x55550b),this['ui']=new Ot(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x6d7138([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6d7138([0x76,0x69,0x65,0x77])][_0x6d7138([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6d7138([0x61,0x75,0x74,0x6f]),this[_0x6d7138([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x6d7138([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6d7138([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x6d7138([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x6d7138([0x6f,0x6b])});}['create'](){const _0x79ee5a=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x79ee5a))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x1e1d88=>{const _0x114d74=this['model']['document']['getRoot'](),_0x7770de=_0x114d74&&_0x114d74['getChild'](_0x114d74['childCount']-0x1);_0x1e1d88['setSelection'](_0x7770de,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x367b7f=this['editing']['view'],_0x19e8cd=_0x367b7f['document']['getRoot'](),_0x437bb2=_0x19e8cd['getChild'](0x0);_0x19e8cd['childCount']>0x1||!_0x437bb2||'p'!=_0x437bb2['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x367b7f,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x437bb2['placeholder']=this['placeholder']),St({'view':_0x367b7f,'element':_0x437bb2,'keepOnFocus':!0x0}),this['placeholderElement']=_0x437bb2);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x34c2a0,_0x58536a={}){super(_0x34c2a0),this['editor']=null,this['_editorConfig']=_0x58536a,this['set']('value',_0x58536a['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x34c2a0,'Reply...')),this['set']('submitLabel',S(_0x34c2a0,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x1394a2(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x51d471,_0x3dc709)=>{this['cancelButtonView']['fire']('execute'),_0x3dc709();}),this['keystrokes']['set']('Ctrl+Enter',(_0x54360a,_0x38e3d4)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x38e3d4());}),this['on']('submit',(_0x59f4da,_0x5b48bd)=>{_0x5b48bd['length']>0xfde8?(alert(S(_0x34c2a0,'TOO_LONG_COMMENT_ALERT',[_0x5b48bd['length'],0xfde8])),_0x59f4da['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ut(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x17e79c=this['editor'];this['element']['insertBefore'](_0x17e79c['ui']['element'],this['element']['firstChild']),_0x17e79c['model']['document']['on']('change',()=>this['value']=_0x17e79c['getData']()),_0x17e79c['bind']('placeholder')['to'](this),this['focusables']['add'](_0x17e79c['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x1eb8e5){-0x1===_0x1eb8e5?(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:_0x11350c}=this,_0x30bc69=new _0x39ca28(_0x11350c);return _0x30bc69['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x30bc69['withText']=!0x0,_0x30bc69['bind']('label')['to'](this,'submitLabel'),_0x30bc69['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x30bc69['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x718579,_0x39e598)=>!_0x39e598&&!!_0x718579['trim']()),_0x30bc69;}['_createCancelButton'](){const {locale:_0x3905c3}=this,_0x291f29=new _0x39ca28(_0x3905c3);return _0x291f29['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x291f29['label']=S(_0x3905c3,'Cancel'),_0x291f29['withText']=!0x0,_0x291f29['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x291f29;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x4587ab=>{this['focusTracker']['add'](_0x4587ab['element']);}),this['focusables']['on']('change',(_0x12707b,_0x45b2be)=>{for(const _0x53ef80 of Array['from'](_0x45b2be['added'])['reverse']())this['focusTracker']['add'](_0x53ef80['element']);});}}class ie extends kt{constructor(_0x417966,_0x2717c8,_0x1555d9){super(_0x417966),this['commentInputView']=new os(_0x417966,_0x1555d9),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x139479,_0x6cae41)=>_0x139479||!!_0x6cae41),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 _0xbcd186(_0x417966,_0x2717c8),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'](_0x3e139b){this['commentInputView']['focus'](_0x3e139b);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0xa5955d,_0x1a8c91)=>{const {submitButtonView:_0x19b471,cancelButtonView:_0xd38385,editor:_0x498658}=this['commentInputView'];[_0x19b471['element'],_0xd38385['element'],_0x498658?_0x498658['editing']['view']['getDomRoot']():null]['filter'](_0x4dc6c5=>_0x4dc6c5)['some'](_0x13bee1=>_0x13bee1['contains'](_0x1a8c91['target']))||(this['focus'](),_0x1a8c91['preventDefault']());});}}class cs extends kt{constructor(_0x3b392f){super(_0x3b392f);const _0x22c478=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x22c478['to']('count',_0x4a3940=>S(_0x3b392f,'NUMBER_OF_COMMENTS',_0x4a3940))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x2afbdd,_0x43e458,_0x21b1e0){super(_0x2afbdd);const _0x2bb37a=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x43e458['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x43e458,this['_config']=_0x21b1e0,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x1394a2(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5871d9=>this['commentViews']['map'](_0x38205a=>_0x38205a['element'])['includes'](_0x5871d9['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x2afbdd),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x589338=>_0x589338-this['_config']['maxCommentsWhenCollapsed']);for(const _0x13c39e of _0x43e458['comments'])this['_handleNewCommentModel'](_0x13c39e);this['_handleInfoComment'](),this['listenTo'](_0x43e458['comments'],'add',(_0x31fb0b,_0x58fa0f)=>{const _0x2c1e99=this['_calculatePosition'](_0x58fa0f);this['length']++,this['_handleNewCommentModel'](_0x58fa0f,_0x2c1e99),this['refreshVisibleViews']();}),this['listenTo'](_0x43e458['comments'],'remove',(_0x589b27,_0x2b2b43)=>{this['length']--,this['_handleRemoveCommentModel'](_0x2b2b43),this['refreshVisibleViews']();}),this['listenTo'](_0x43e458,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x43e458,'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',_0x2bb37a['if']('length','ck-hidden',_0x23aea9=>!_0x23aea9)],'aria-label':S(_0x2afbdd,'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'](_0x1033b4){-0x1===_0x1033b4?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4d354f of this['commentViews'])_0x4d354f['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0xc6ee74,_0x39db8e){const _0x3e5abd=new this['_config']['CommentView'](this['locale'],_0xc6ee74,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x3e5abd['viewUid']=_0xc6ee74['id'],_0x3e5abd['delegate']('removeComment')['to'](this),_0x3e5abd['delegate']('updateComment')['to'](this),_0x3e5abd['delegate']('resolveCommentThread')['to'](this),_0x3e5abd['delegate']('editorReady')['to'](this),_0x3e5abd['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x3e5abd,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x3e5abd,_0x39db8e);}['_calculatePosition'](_0x7a152b){const _0xb2303b=this['_model']['_findOptimalIndex'](_0x7a152b);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x7a152b['authoredAt']?_0xb2303b-0x1:_0xb2303b:_0xb2303b-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x10ba55={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':S(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x10ba55,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x10ba55));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x2dbf08){const _0x2de6ca=this['commentViews']['remove'](_0x2dbf08['id']);this['stopListening'](_0x2de6ca),_0x2de6ca['isEditMode']&&this['_updateHasDirtyComment'](),_0x2de6ca['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0xaac632=>_0xaac632['isEditMode']);}['_rearrangeCollapse'](){const _0x35410b=function(_0x1fd76f){const _0x312448=new _0x5b4d52();for(const _0x23bc94 of _0x1fd76f)_0x312448['add'](_0x23bc94);return _0x312448;}(this['commentViews']),_0x3583b3=this['_collapsedCommentsView']['count'];for(let _0x2b64f0=0x1;_0x2b64f0<=_0x3583b3;_0x2b64f0++)_0x35410b['remove'](0x1);for(const _0x124b9b of _0x35410b)_0x124b9b['collapse']();_0x3583b3>0x0&&_0x35410b['add'](this['_collapsedCommentsView'],0x1),as(_0x61cf99(Array['from'](this['visibleViews']),Array['from'](_0x35410b)),this['visibleViews'],_0x35410b);}['_rearrangeExpand'](){as(_0x61cf99(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x25a2f1 of this['visibleViews'])_0x25a2f1['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x5d2c18=>{this['focusTracker']['add'](_0x5d2c18['element']),this['keystrokes']['listenTo'](_0x5d2c18['element']);}),this['commentViews']['on']('change',(_0x26c1f8,_0x399bb7)=>{for(const _0x381421 of _0x399bb7['removed'])this['focusTracker']['remove'](_0x381421['element']),this['keystrokes']['stopListening'](_0x381421['element']);for(const _0x6fff2c of Array['from'](_0x399bb7['added'])['reverse']())this['focusTracker']['add'](_0x6fff2c['element']),this['keystrokes']['listenTo'](_0x6fff2c['element']);});}}function as(_0x3a9e7b,_0x41c65f,_0x454103){let _0x249d16=0x0;for(const _0x2d3ee5 of _0x3a9e7b)switch(_0x2d3ee5){case'insert':_0x41c65f['add'](_0x454103['get'](_0x249d16),_0x249d16),_0x249d16++;break;case'delete':_0x41c65f['remove'](_0x249d16);break;case'equal':_0x249d16++;}}class ls extends kt{constructor(_0x5a0e9d){super(_0x5a0e9d);const _0x21fdfc=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x21fdfc['to']('contextValue',_0x43ed70=>S(_0x5a0e9d,'THREAD_CONTEXT_LABEL',_0x43ed70)),'tabindex':-0x1},'children':[{'text':_0x21fdfc['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3548bc,_0x492352){super(_0x3548bc);const _0x13c4ac=this['bindTemplate'];this['_model']=_0x492352,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x1394a2(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0xdf106b=>!!_0xdf106b),this['bind']('contextValue')['to'](this['_model'],'context',_0x4be0a7=>_0x4be0a7&&_0x4be0a7['value']?this['_trimContextValue'](_0x4be0a7['value']):S(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x13c4ac['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 _0x561d6c=new _0x39ca28(this['locale']);return _0x561d6c['label']=S(this['locale'],'Reopen'),_0x561d6c['tooltip']=S(this['locale'],'Reopen'),_0x561d6c['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22m5.042\x209.367\x202.189\x201.837a.75.75\x200\x200\x201-.965\x201.149l-3.788-3.18a.747.747\x200\x200\x201-.21-.284.75.75\x200\x200\x201\x20.17-.945L6.23\x204.762a.75.75\x200\x201\x201\x20.964\x201.15L4.863\x207.866h8.917A.75.75\x200\x200\x201\x2014\x207.9a4\x204\x200\x201\x201-1.477\x207.718l.344-1.489a2.5\x202.5\x200\x201\x200\x201.094-4.73l.008-.032H5.042z\x22/></svg>',_0x561d6c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x58046b=>!_0x58046b),_0x561d6c['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3e08f7,_0x3c3147)=>_0x3e08f7&&_0x3c3147),_0x561d6c['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x561d6c;}['_trimContextValue'](_0x4006e2){if(_0x4006e2['length']<0x96)return _0x4006e2;const _0x3545ef=_0x4006e2['lastIndexOf']('\x20',0x93);return _0x4006e2['substring'](0x0,_0x3545ef>-0x1?_0x3545ef:0x93)+'...';}['_attachContextActions'](){const _0xa8340b=this['element']['querySelector']('.ck-context'),_0x504031=_0xa8340b['querySelector']('.ck-context__value');this['listenTo'](_0xa8340b,'mouseenter',()=>{_0x504031['offsetWidth']<_0x504031['scrollWidth']&&_0xa8340b['classList']['add']('overlay');}),this['listenTo'](_0xa8340b,'mouseleave',()=>{_0xa8340b['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x11c90c of this['focusables'])this['focusTracker']['add'](_0x11c90c['element']),this['keystrokes']['listenTo'](_0x11c90c['element']);}['_createContextView'](){const _0x39c936=new ls(this['locale']);return _0x39c936['bind']('contextValue')['to'](this),_0x39c936;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2903ef,_0x3f98ba,_0x4d291f,_0x2bb05f){super(_0x2903ef),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x3f98ba,this['_localUser']=_0x4d291f,this['_config']=_0x2bb05f,this['commentThreadHeaderView']=new Zt(_0x2903ef,_0x3f98ba),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x2903ef,S(_0x2903ef,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x2903ef,_0x3f98ba,Object['assign']({'CommentView':this['_config']['CommentView']},_0x2bb05f)),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',(_0x139bb6,_0x1dc0d4)=>_0x139bb6||!!_0x1dc0d4),this['bind']('isUnlinked')['to'](_0x3f98ba,'unlinkedAt',_0x11b1ad=>!!_0x11b1ad),this['bind']('ariaLabel')['to'](this,'length',_0x1ac350=>{const _0x13df1c=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x1ac350,_0x13df1c]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x1394a2(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x52d82e=>_0x52d82e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x54426c(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x55bb2c=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x23b311=_0x55bb2c['commentInputView'];return _0x55bb2c['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x23b311,'value',(_0x508f81,_0x1a1a50,_0x34fb2b,_0x3bf12a,_0x2ad615)=>!!_0x2ad615||!!_0x3bf12a&&_0x34fb2b&&!_0x1a1a50||_0x508f81&&_0x34fb2b&&!_0x1a1a50),_0x23b311['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0xd234b2,_0x1a137f,_0x3634cf)=>{let _0xe3d6fb;return _0xe3d6fb=_0x3634cf&&_0x1a137f?'Reply\x20to\x20reopen\x20discussion...':_0xd234b2?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0xe3d6fb);}),_0x23b311['bind']('submitLabel')['to'](this,'length',_0x338aae=>S(this['locale'],_0x338aae?'Reply':'Comment')),_0x23b311['on']('submit',(_0x12cb78,_0x5a8646)=>{this['fire']('addComment',_0x5a8646),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x23b311['on']('cancel',()=>{this['focus']();}),_0x23b311['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x23b311['on']('cancel',_0x566e83=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x566e83['stop']());}),this['on']('change:isActive',(_0x5d29e3,_0xf05ab4,_0x31a0bb)=>{_0x31a0bb||this['length']||_0x23b311['value']||this['fire']('removeCommentThread');}),_0x55bb2c;}}class vt extends/* #__PURE__ -- @preserve */
27
- ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x39b4c8,_0x3e2532,_0x2f0d1e,_0x1f3426){super(_0x39b4c8,_0x3e2532,_0x2f0d1e,_0x1f3426),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x39b4c8,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x222bf0,_0x1f5c6d,_0x4fabcf)=>{_0x4fabcf||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x53490e,_0x285492,_0x562958)=>{_0x562958&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x5ae14d=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x5ae14d['if']('isActive','ck-thread--active'),_0x5ae14d['if']('isUnlinked','ck-thread--unlinked'),_0x5ae14d['if']('isConfirm','ck-thread--remove-confirmation'),_0x5ae14d['to']('actionIndicator',_0x1e8f65=>_0x1e8f65?'ck-thread--'+_0x1e8f65:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x5ae14d['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 _0xdca9d4 of this['commentsListView']['commentViews'])_0xdca9d4['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x490c76}=this,_0x2cbdb8=this['commentsListView']['commentViews']['get'](0x0);_0x2cbdb8===this['_boundFirstCommentView']||_0x2cbdb8['isSystemComment']||(this['_boundFirstCommentView']=_0x2cbdb8,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x2cbdb8,'actionIndicator',_0x2c7553=>'remove'===_0x2c7553?'remove':null),_0x2cbdb8['placeholder']=S(_0x490c76,'Write\x20a\x20comment...'),_0x2cbdb8['removeButton']['on']('execute',_0x4bb805=>{_0x4bb805['stop'](),this['showConfirm'](S(_0x490c76,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x2cbdb8['focus']();}),_0x2cbdb8['actionBar']['add'](this['resolveButton'],0x0),_0x2cbdb8['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x503b67=new _0x426ea1(this['locale']);return _0x503b67['label']=S(this['locale'],'Resolve'),_0x503b67['tooltip']=S(this['locale'],'Resolve'),_0x503b67['icon']=_0x20142f['check'],_0x503b67['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x503b67['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x397bbc=>!_0x397bbc),_0x503b67['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x37f3d0,_0x38acc5)=>_0x37f3d0&&!_0x38acc5),_0x503b67['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x503b67;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class hs extends kt{constructor(_0x5877c9){super(_0x5877c9),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x3147ad,_0x549f08,_0x8e9b29)=>{this['element']['innerHTML']=_0x8e9b29;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x242fc2,_0x21935b,_0x288831){super(_0x242fc2),this['_model']=_0x21935b,this['_config']=_0x288831,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x21935b,'content',_0x21935b,'authoredAt',(_0x2014fd,_0x5f31fe)=>S(_0x242fc2,'COMMENT_ARIA_LABEL',[_0x21935b['author']['name'],_0x288831['formatDateTime'](_0x5f31fe),new DOMParser()['parseFromString'](_0x2014fd,'text/html')['body']['textContent'],_0x21935b['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x242fc2,S(_0x242fc2,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0xa9c1f1(),this['focusTracker']=new _0x1394a2(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4de3fb=>_0x4de3fb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):S(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):S(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x5a9392=new hs(this['locale']);return _0x5a9392['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x155e83,_0x699044)=>_0x699044?_0x383f48(_0x155e83,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x155e83),_0x5a9392;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x150c7c=new os(this['locale'],this['_config']['editorConfig']);return _0x150c7c['value']=this['_model']['content'],_0x150c7c['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x150c7c['submitLabel']=S(this['locale'],'Save'),_0x150c7c['on']('submit',(_0x5cc25a,_0x1789f0)=>{this['fire']('updateComment',this['_model']['id'],_0x1789f0),this['switchToDisplayMode'](),this['focus']();}),_0x150c7c['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x150c7c['once']('editorReady',()=>{_0x150c7c['focus']();}),_0x150c7c['createEditor'](),_0x150c7c['delegate']('editorReady')['to'](this),_0x150c7c['delegate']('editorDestroyed')['to'](this),_0x150c7c;}['_setupKeyboardNavigation'](){const _0x10f2ea=this['element'];this['keystrokes']['listenTo'](_0x10f2ea);for(const _0x3b8e84 of this['focusables'])this['focusTracker']['add'](_0x3b8e84['element']),this['keystrokes']['listenTo'](_0x3b8e84['element']);this['focusables']['on']('change',(_0x5e7618,_0xe69615)=>{for(const _0x2a2841 of _0xe69615['removed'])this['focusTracker']['remove'](_0x2a2841['element']),this['keystrokes']['stopListening'](_0x2a2841['element']);for(const _0x2f6607 of _0xe69615['added'])this['focusTracker']['add'](_0x2f6607['element']),this['keystrokes']['listenTo'](_0x2f6607['element']);}),this['keystrokes']['set']('enter',(_0x519fdd,_0x52c406)=>{_0x10f2ea===_0x519fdd['target']&&(this['focusCycler']['focusFirst'](),_0x52c406());}),this['keystrokes']['set']('esc',(_0x2a0ab0,_0x4de896)=>{_0x10f2ea!==_0x2a0ab0['target']&&(this['focus'](),_0x4de896());});}}class gt extends/* #__PURE__ -- @preserve */
28
- ti(rs){['actionBar'];['userView'];constructor(_0x2a3ab8,_0x56bc94,_0x4c4e38){super(_0x2a3ab8,_0x56bc94,_0x4c4e38),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x2a3ab8,'Reply...')),this['bind']('authoredAt')['to'](_0x56bc94),this['bind']('resolvedAt')['to'](_0x56bc94),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 _0xbcd186(_0x2a3ab8,_0x56bc94['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x56bc94,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3589f9=this['bindTemplate'],_0xe852e1=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x3589f9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3589f9['to']('authoredAt',_0x26ca55=>this['_config']['formatDateTime'](_0x26ca55))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x3589f9['if']('isEditMode','ck-comment__actions--hidden'),_0x3589f9['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']&&_0xe852e1['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x3589f9['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x3589f9['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x3589f9['if']('isEditMode','ck-comment--edit'),_0x3589f9['if']('isSystemComment','ck-comment--info'),_0x3589f9['to']('actionIndicator',_0x948dd=>_0x948dd?'ck-comment--'+_0x948dd:'')],'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':_0xe852e1}]}]};}['_createEditButton'](){const _0x2323ad=new _0x39ca28(this['locale']);return _0x2323ad['label']=S(this['locale'],'Edit'),_0x2323ad['icon']=_0x20142f['pencil'],_0x2323ad['withText']=!0x0,_0x2323ad['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2323ad['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1da9a3=>!_0x1da9a3),_0x2323ad['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2323ad['on']('execute',()=>this['switchToEditMode']()),_0x2323ad;}['_createRemoveButton'](){const _0x56b18b=new _0x39ca28(this['locale']);return _0x56b18b['label']=S(this['locale'],'Remove'),_0x56b18b['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x56b18b['withText']=!0x0,_0x56b18b['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x56b18b['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5817cf=>!_0x5817cf),_0x56b18b['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x56b18b['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x56b18b;}['_createDropdown'](){const _0x904e5=_0x249169(this['locale'],_0x38e758),_0x4648be=_0x904e5['panelView']['children'],_0x312e98=new _0x135af5(this['locale']),_0x66e031=_0x904e5['bindTemplate'];_0x56ed8e(_0x904e5,()=>this['items']['find'](_0x292521=>_0x292521['isVisible'])),_0x904e5['extendTemplate']({'attributes':{'class':[_0x66e031['if']('isVisible','ck-hidden',_0x100d3d=>!_0x100d3d)]}});const _0x5c6008=(_0x1cce52,_0x6e2d4=-0x1)=>{const _0x6de349=new _0x50d08e(this['locale']);_0x6de349['children']['add'](_0x1cce52);const _0x32916e=_0x6e2d4>-0x1?_0x6e2d4:_0x312e98['items']['length'];_0x312e98['items']['add'](_0x6de349,_0x32916e);const _0x50e6bc=Array['from'](this['items']);_0x904e5['unbind']('isEnabled','isVisible'),_0x904e5['bind']('isEnabled')['toMany'](_0x50e6bc,'isEnabled',(..._0x33b85a)=>_0x33b85a['some'](_0x45108e=>_0x45108e)),_0x904e5['bind']('isVisible')['toMany'](_0x50e6bc,'isVisible',(..._0x358a90)=>_0x358a90['some'](_0x49e3b1=>_0x49e3b1));};_0x904e5['panelPosition']='sw',_0x904e5['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x20142f['threeVerticalDots']});for(const _0x3f91c4 of this['items'])_0x5c6008(_0x3f91c4);return _0x4648be['add'](_0x312e98),_0x904e5['listenTo'](this['items'],'add',(_0x8cba85,_0x1b8824,_0x2833ab)=>{_0x5c6008(_0x1b8824,_0x2833ab);}),_0x904e5['listenTo'](this['items'],'remove',(_0xef3eac,_0x4284c4,_0x33aff8)=>{_0x312e98['items']['remove'](_0x33aff8);}),_0x904e5;}['_attachActions'](_0x12c00b,_0x485855){const _0x5c6a15=_0x12c00b&&_0x12c00b['element'];_0x5c6a15&&(this['listenTo'](_0x5c6a15,'mouseenter',()=>this['actionIndicator']=_0x485855),this['listenTo'](_0x5c6a15,'focus',()=>this['actionIndicator']=_0x485855),this['listenTo'](_0x5c6a15,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x5c6a15,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x127935=super['_createCommentInputView']();return _0x127935['bind']('placeholder')['to'](this),_0x127935;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x943c22){const _0x1f450e=Dt(_0x943c22,0x1e),_0x1931bb=new MutationObserver(_0x1838f9=>{for(const _0x4ccec8 of _0x1838f9)('attributes'==_0x4ccec8['type']&&'class'==_0x4ccec8['attributeName']||'childList'==_0x4ccec8['type']||'characterData'==_0x4ccec8['type'])&&_0x1f450e();});return{'attach'(_0x30a906){_0x1931bb['observe'](_0x30a906,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x1931bb['disconnect'](),_0x1f450e['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x1eecd0,_0x4449bb){super(_0x1eecd0),this['id']=_0x2f91a7(),this['focusTracker']=new _0x1394a2(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x5451f2,_0x34b118)=>this['fire']('Esc',_0x34b118)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x4449bb),this['mainView']=_0x4449bb;const _0x26297b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x26297b['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 _0x527224=this['element']['clientHeight'];_0x527224&&(this['height']=_0x527224);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x329efe(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x1296ed,target:_0x1cc7ed,type:_0x1b865d,isVisible:_0x200a91=!0x0}){super(),this['view']=_0x1296ed,this['view']['element']||this['view']['render'](),this['_type']=_0x1b865d,this['_target']=_0x1cc7ed,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x5b4d52([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x164faf,_0x10d93b)=>{this['view']['focusTracker']['add'](_0x10d93b);}),this['focusableElements']['on']('remove',(_0x29cf52,_0x3b9ee8)=>{this['view']['focusTracker']['remove'](_0x3b9ee8);}),this['set']('isVisible',_0x200a91);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x121bca=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x121bca),_0x121bca;}get['targetRect'](){const _0x5a4a9e=this['target'];if(null===_0x5a4a9e)return null;if(_0x5a4a9e instanceof _0x2bcee5)return _0x5a4a9e;const _0xd0abf0=_0x5a4a9e['filter'](_0x29cbd5=>function(_0x2351a7){const _0x23414f=_0x2351a7['offsetParent'];if(_0x23414f)return!0x0;const _0x5073a9=_0x2351a7['getClientRects']()['item'](0x0);return!!_0x5073a9;}(_0x29cbd5));return 0x0===_0xd0abf0['length']?null:new _0x2bcee5(_0xd0abf0[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3c1cc8){this['view']['isActive']=_0x3c1cc8,this['view']['mainView']['isActive']=_0x3c1cc8;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x11af68){if(!(null===_0x11af68||_0x11af68 instanceof _0x2bcee5||Array['isArray'](_0x11af68)&&_0x11af68['every'](_0x39009f=>ne(_0x39009f))))throw new _0x5231a1('annotation-invalid-target',null,{'target':_0x11af68});}['_getNormalizedTarget'](){const _0x432098='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x432098)?[_0x432098]:_0x432098;}}function ne(_0x51356e){return null!==_0x51356e&&'object'==typeof _0x51356e&&'nodeType'in _0x51356e&&0x1===_0x51356e['nodeType'];}class x extends _0x5b4d52{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x608a7c=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x1394a2(),this['_focusTracker']['on']('change:isFocused',(_0x2404b1,_0x54df35,_0x3aea19)=>{_0x3aea19||this['fire']('blur');});for(const _0x3e39ba of _0x608a7c)this['add'](_0x3e39ba);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x52be9d){if(this['has'](_0x52be9d))throw new _0x5231a1('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x52be9d['innerView'],_0x52be9d),this['_viewToAnnotation']['set'](_0x52be9d['view'],_0x52be9d);for(const _0x230443 of _0x52be9d['focusableElements'])this['_focusTracker']['add'](_0x230443);this['listenTo'](_0x52be9d['focusableElements'],'add',(_0xe690c,_0x2fcdf0)=>{this['_focusTracker']['add'](_0x2fcdf0);}),this['listenTo'](_0x52be9d['focusableElements'],'remove',(_0x5b3204,_0x523f09)=>{this['_focusTracker']['remove'](_0x523f09);}),this['listenTo'](_0x52be9d['view']['focusTracker'],'change:isFocused',(_0x3270aa,_0x4d1051,_0x1cbaf7)=>{_0x1cbaf7&&this['fire']('focus',_0x52be9d);}),_0x52be9d['updateTargetRect']();const _0x47121d=this['_getOrderInContent'](_0x52be9d['view']['targetRect']);return super['add'](_0x52be9d,_0x47121d);}['remove'](_0x3f93e3){if(!this['has'](_0x3f93e3))throw new _0x5231a1('annotationcollection-not-existing-item',null);this['stopListening'](_0x3f93e3['view']['focusTracker']),this['stopListening'](_0x3f93e3['focusableElements']);for(const _0x12a5cc of _0x3f93e3['focusableElements'])this['_focusTracker']['remove'](_0x12a5cc);return this['_viewToAnnotation']['delete'](_0x3f93e3['view']),this['_innerViewToAnnotation']['delete'](_0x3f93e3['innerView']),super['remove'](_0x3f93e3);}['getByInnerView'](_0x26f755){return this['_innerViewToAnnotation']['get'](_0x26f755);}['getByView'](_0x394691){return this['_viewToAnnotation']['get'](_0x394691);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1c478c of this)_0x1c478c['updateTargetRect']();this['_sort']();}['_sort'](){const _0x5e1d58=Array['from'](this)['sort']((_0x4a2233,_0x3b85e2)=>v(_0x4a2233['view']['targetRect'],_0x3b85e2['view']['targetRect']));for(let _0x4621dc=_0x5e1d58['length']-0x1;_0x4621dc>0x0;_0x4621dc--){const _0x3cfc9a=_0x5e1d58[_0x4621dc];_0x4621dc!==this['getIndex'](_0x3cfc9a)&&(this['remove'](_0x3cfc9a),this['add'](_0x3cfc9a));}}['_getOrderInContent'](_0x551e67){let _0x21ea55=0x0;if(!_0x551e67)return this['length'];for(const _0x5e5320 of this){const _0x1d26ba=_0x5e5320['view']['targetRect'];if(_0x1d26ba){if(v(_0x551e67,_0x1d26ba)<0x0)return _0x21ea55;_0x21ea55++;}}return _0x21ea55;}}function v(_0x91cdc7,_0x1cbd1e){if(null===_0x91cdc7&&null===_0x1cbd1e)return 0x0;if(null===_0x91cdc7)return-0x1;if(null===_0x1cbd1e)return 0x1;const _0x1474d0=_0x91cdc7['top']-_0x1cbd1e['top'];return 0x0==_0x1474d0?_0x91cdc7['left']-_0x1cbd1e['left']:_0x1474d0;}class N extends _0x3af1c1{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e43a6){if(super(_0x3e43a6),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x3e43a6 instanceof _0x566fe0){const _0x3f67e9=_0x3e43a6['locale'];_0x3e43a6['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x3f67e9,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x3f67e9,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x3f67e9,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x3f67e9,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x3f67e9,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x3f67e9,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x3f67e9,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x41d2ae){this['collection']['add'](_0x41d2ae);}['remove'](_0x41888a){this['collection']['remove'](_0x41888a),_0x41888a['destroy']();}['refreshVisibility'](){for(const _0x344f55 of this['collection'])_0x344f55['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x4ecfe7){return this['collection']['getByInnerView'](_0x4ecfe7);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0xcfcbd3 of this['collection'])_0xcfcbd3['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x1ec2fe){this['fire']('_activateAnnotation',_0x1ec2fe);}['createAnnotation'](_0xcde99f){return new d(_0xcde99f);}['createAnnotationView'](_0x2457a8,_0x33c304){return new T(_0x2457a8,_0x33c304);}['_addActiveAnnotation'](_0x2ff396){const _0x2f7a84=new Set(this['activeAnnotations']);_0x2f7a84['add'](_0x2ff396),this['activeAnnotations']=_0x2f7a84;}['_removeActiveAnnotation'](_0x31816a){const _0x44bd07=new Set(this['activeAnnotations']);_0x44bd07['delete'](_0x31816a),this['activeAnnotations']=_0x44bd07;}['_bindAnnotationsToVisibleAnnotations'](){const _0x544c28=this['collection'],_0x56f11b=this['_visibleAnnotations'];function _0x3b3959(_0xc7f5f){const _0x495647=_0xc7f5f['source'];_0x495647['isVisible']&&!_0x56f11b['has'](_0x495647)?_0x56f11b['add'](_0x495647):!_0x495647['isVisible']&&_0x56f11b['has'](_0x495647)&&_0x56f11b['remove'](_0x495647),_0x495647['view']['focusTracker']['remove'](_0x495647['view']['element']),_0x495647['view']['focusTracker']['add'](_0x495647['view']['element']);}this['listenTo'](_0x544c28,'add',(_0x288043,_0x2b513b)=>{_0x2b513b['isVisible']&&_0x56f11b['add'](_0x2b513b),this['listenTo'](_0x2b513b,'change:isVisible',_0x3b3959);}),this['listenTo'](_0x544c28,'remove',(_0x59e343,_0x16b48e)=>{_0x56f11b['has'](_0x16b48e)&&_0x56f11b['remove'](_0x16b48e),this['stopListening'](_0x16b48e,'change:isVisible',_0x3b3959);});}['_setupEnterAnnotationKeystroke'](){const _0x2b0a8a=_0x1fdb83=>{_0x1fdb83['on']('ready',()=>{_0x1fdb83['keystrokes']['set'](_0x5547df,(_0x5939fa,_0x413ec9)=>{const _0x11c77c=_0x1846ff(this['activeAnnotations']['values']());_0x11c77c&&(_0x11c77c['view']['focus'](),_0x413ec9());});});};this['context']instanceof _0x566fe0?_0x2b0a8a(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x2615d5,_0x2e42e6)=>{_0x2b0a8a(_0x2e42e6);});}['_setupEscapeAnnotationHandling'](){const _0x2f77c5=_0x488544=>{const _0x58f2e9=_0x488544['source'],_0x562fac=[];let _0x5534c8;if(Array['isArray'](_0x58f2e9['target'])){_0x5534c8=_0x58f2e9['target'][0x0],this['context']instanceof _0x566fe0?_0x562fac['push'](this['context']):this['context']['editors']&&_0x562fac['push'](...this['context']['editors']);for(const _0x79b811 of _0x562fac)for(const _0x4cac7e of _0x79b811['editing']['view']['domRoots']['values']())if(_0x4cac7e['contains'](_0x5534c8))return void _0x79b811['editing']['view']['focus']();_0x5534c8['focus']();}};this['listenTo'](this['collection'],'add',(_0x4985f6,_0x34c6bd)=>{this['listenTo'](_0x34c6bd,'escape',_0x2f77c5,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x3809d6,_0x67fde8)=>{this['stopListening'](_0x67fde8,'escape',_0x2f77c5);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x3af1c1{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c6487){super(_0x1c6487),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x4cb05a=this['context']['config'];_0x4cb05a['define']('comments.maxCommentsWhenCollapsed',0x2),_0x4cb05a['define']('comments.maxThreadTotalWeight',0x1f4),_0x4cb05a['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x4cb05a['define']('comments.CommentThreadView',vt),_0x4cb05a['define']('comments.CommentView',gt),_0x4cb05a['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x262a6e=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x5efc37,_0xcda7e0)=>this['_addCommentThread'](_0xcda7e0)),this['on']('submitCommentThread',(_0x52bc24,_0x34cfe2)=>this['_submitCommentThread'](_0x34cfe2)),this['on']('resolveCommentThread',(_0x18fe9f,_0xe80e18)=>this['_resolveCommentThread'](_0xe80e18)),this['on']('resolveCommentThread',(_0x22f4a5,_0x4c7e09)=>this['_updateActiveAnnotation'](_0x4c7e09),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x955503,_0x651131)=>this['_reopenCommentThread'](_0x651131)),this['on']('reopenCommentThread',(_0x190337,_0x2f9016)=>this['_updateActiveAnnotation'](_0x2f9016),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x3550da,_0x5f55e4)=>this['_removeCommentThread'](_0x5f55e4)),this['on']('updateCommentThread',(_0x1ec801,_0x8567f5)=>this['_updateCommentThread'](_0x8567f5)),this['on']('updateCommentThread',(_0x3c5f51,_0x470f3e)=>this['_updateActiveAnnotation'](_0x470f3e),{'priority':'lowest'}),this['on']('addComment',(_0x27fa07,_0x1c0650)=>this['_addComment'](_0x1c0650)),this['on']('updateComment',(_0x5f55f3,_0x11aa68)=>this['_updateComment'](_0x11aa68)),this['on']('removeComment',(_0x37f47f,_0x50d327)=>this['_removeComment'](_0x50d327)),this['on']('addComment',(_0x605c1c,{threadId:_0x128508,isFromAdapter:_0x1f29f1})=>{if(_0x1f29f1)return;const _0x688fbb=this['getCommentThread'](_0x128508),_0x1cbf11=_0x688fbb&&this['_threadToController']['get'](_0x688fbb);_0x1cbf11&&_0x1cbf11['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x262a6e,'change:activeAnnotations',(_0xeca027,_0x587d90,_0x135200)=>{const _0x219ce5=Array['from'](_0x135200)['map'](_0x4de0bc=>this['_viewToController']['get'](_0x4de0bc['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x219ce5?_0x219ce5['model']:null;});}set['adapter'](_0x342295){if(this['_adapter'])throw new _0x5231a1('commentsrepository-adapter-already-set');this['_adapter']=_0x342295;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x36748c=Tt,threadId:_0x203508=_0x2f91a7(),comments:_0x327eb2=[],unlinkedAt:_0x22e094=null,resolvedAt:_0x1b4e3b=null,resolvedBy:_0x115193=null,target:_0x40ce9c=null,context:_0x1288f3=null,attributes:_0x21cf13={},isResolvable:_0xeb1ab2=!0x0,isSubmitted:_0x317a4f=!0x1,isFromAdapter:_0xeb6be6=!0x1}={}){return this['fire'](bt('addCommentThread',_0x36748c),{'channelId':_0x36748c,'threadId':_0x203508,'comments':_0x327eb2,'unlinkedAt':_0x22e094,'resolvedAt':_0x1b4e3b,'resolvedBy':_0x115193,'target':_0x40ce9c,'context':_0x1288f3,'attributes':_0x21cf13,'isFromAdapter':_0xeb6be6,'isResolvable':_0xeb1ab2,'isSubmitted':_0x317a4f}),this['getCommentThread'](_0x203508);}['openNewCommentThread']({channelId:_0x38179f=Tt,threadId:_0x25245f=_0x2f91a7(),target:_0x57bf7b,context:_0x310f36=null,isResolvable:_0x2e9a8e=!0x0}){if(this['_readOnlyChannels']['has'](_0x38179f)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x57bf7b)throw new _0x5231a1('commentsrepository-missing-target');const _0x439eb9=this['addCommentThread']({'channelId':_0x38179f,'threadId':_0x25245f,'target':_0x57bf7b,'context':_0x310f36,'isResolvable':_0x2e9a8e});if(!_0x439eb9)return null;const _0x102ef7=this['_threadToController']['get'](_0x439eb9),_0x1ac730=_0x102ef7['view']['commentThreadInputView']['commentInputView'],_0x3fb4b7=this['context']['plugins']['get'](N),_0x286ab0=_0x3fb4b7['getByInnerView'](_0x102ef7['view']);return _0x3fb4b7['activate'](_0x286ab0),_0x1ac730['once']('editorReady',()=>_0x1ac730['focus']()),_0x439eb9;}['hasCommentThread'](_0x35c005){if('string'!=typeof _0x35c005)throw new _0x5231a1('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x35c005);}['updateCommentThread']({channelId:_0x2ad22b=Tt,threadId:_0x1cb006,context:_0x3e67fe,unlinkedAt:_0xdd029a,attributes:_0x3880ff,isFromAdapter:_0x31a252=!0x1}){return this['fire'](bt('updateCommentThread',_0x2ad22b),{'channelId':_0x2ad22b,'threadId':_0x1cb006,'context':_0x3e67fe,'unlinkedAt':_0xdd029a,'attributes':_0x3880ff,'isFromAdapter':_0x31a252}),this['getCommentThread'](_0x1cb006);}['getCommentThread'](_0x114033){if('string'!=typeof _0x114033)throw new _0x5231a1('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x114033);}['fetchCommentThread']({channelId:_0x38702a,threadId:_0x65ff34}={}){const _0x3b8143=this['getCommentThread'](_0x65ff34);if(_0x3b8143)return Promise['resolve'](_0x3b8143);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x5231a1('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x38702a,'threadId':_0x65ff34})['then'](_0x2e43e2=>this['hasCommentThread'](_0x65ff34)?this['getCommentThread'](_0x65ff34):_0x2e43e2?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x38702a},_0x2e43e2)):void 0x0)['catch'](_0x2fdb82=>{throw console['error'](_0x2fdb82),new _0x5231a1('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x4ed60d,skipNotAttached:_0x57d8ea=!0x1,skipEmpty:_0x586332=!0x1,toJSON:_0x7403ee=!0x1}={}){const _0x7e9bab=[];for(const _0x40d7c7 of this['_threads']['values']())_0x4ed60d&&_0x40d7c7['channelId']!==_0x4ed60d||_0x57d8ea&&!_0x40d7c7['isAttached']||_0x586332&&0x0===_0x40d7c7['length']||_0x7e9bab['push'](_0x40d7c7);return _0x7403ee?_0x7e9bab['map'](_0x3d2d1e=>_0x3d2d1e['toJSON']()):_0x7e9bab;}['setActiveCommentThread'](_0x3da529){const _0x5afc2a=this['context']['plugins']['get'](N);if(!_0x3da529)return void(this['activeCommentThread']&&_0x5afc2a['deactivateAll']());const _0x3683c7=this['getCommentThread'](_0x3da529);if(!_0x3683c7)throw new _0x5231a1('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x3da529});if(!this['_threadToController']['has'](_0x3683c7))throw new _0x5231a1('commentsrepository-active-not-attached',null,{'threadId':_0x3da529});const _0x4ae455=_0x5afc2a['getByInnerView'](this['_threadToController']['get'](_0x3683c7)['view']);_0x5afc2a['activate'](_0x4ae455);}['switchReadOnly'](_0x2919d1,_0x2caaca){_0x2919d1?this['_readOnlyChannels']['add'](_0x2caaca):this['_readOnlyChannels']['delete'](_0x2caaca),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x5b1884){return this['_readOnlyChannels']['has'](_0x5b1884)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x241753,_0x2faf4d){return new Ct(_0x241753,_0x2faf4d);}['setPermissions'](_0x42fd78,_0x2426ad=Tt){this['_permissions']['set'](_0x2426ad,_0x42fd78),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x14eba1=Tt){return this['_permissions']['has'](_0x14eba1)?this['_permissions']['get'](_0x14eba1):_t;}['_addCommentThread']({channelId:_0x2555fe,threadId:_0x3e786d,comments:_0x37b961,unlinkedAt:_0x2b1b61,resolvedAt:_0x4e65f4,resolvedBy:_0x5030d4,target:_0x377e9a,context:_0xefc44f,attributes:_0x17bf6f,isFromAdapter:_0x4e3138,isResolvable:_0xadbf9b,isSubmitted:_0x1c1242}){if('string'!=typeof _0x3e786d)throw new _0x5231a1('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3e786d});if(this['hasCommentThread'](_0x3e786d))throw new _0x5231a1('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x3e786d});const _0x5b63fc=new oe(this,{'channelId':_0x2555fe,'id':_0x3e786d,'context':_0xefc44f,'attributes':_0x17bf6f,'unlinkedAt':_0x2b1b61,'resolvedAt':_0x4e65f4,'resolvedBy':_0x5030d4?this['context']['plugins']['get'](it)['getUser'](_0x5030d4):null,'isResolvable':_0xadbf9b,'isSubmitted':_0x1c1242||_0x4e3138});this['_threads']['set'](_0x3e786d,_0x5b63fc);for(const _0x3fe9b3 of _0x37b961)_0x5b63fc['_add'](this['_createNewComment']({'threadId':_0x3e786d,..._0x3fe9b3}));return _0x377e9a&&_0x5b63fc['attachTo'](_0x377e9a),_0x4e3138||!_0x5b63fc['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x2555fe,'threadId':_0x3e786d});}['_submitCommentThread']({channelId:_0x5f353c,threadId:_0x2bd1f9}){if(!this['hasCommentThread'](_0x2bd1f9))throw new _0x5231a1('commentsrepository-missing-comment-thread',this);const _0x1f4b3c=this['getCommentThread'](_0x2bd1f9);if(_0x1f4b3c['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x47fee2,comments:_0x7029a4,resolvedAt:_0xa6ab7d,resolvedBy:_0x20c98e,context:_0x3435ed,attributes:_0x23d461}=_0x1f4b3c,_0x278505=this['context']['plugins']['get']('PendingActions'),_0x588555=_0x278505['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x5f353c,'threadId':_0x47fee2,'comments':_0x7029a4['map'](_0x240c27=>_0x240c27['toJSON']()),'resolvedAt':_0xa6ab7d,'resolvedBy':_0x20c98e?_0x20c98e['id']:_0x20c98e,'context':_0x3435ed,'attributes':_0x23d461})['then'](({comments:_0x1e8578})=>{_0x278505['remove'](_0x588555);for(const _0x201df5 of _0x1e8578)this['_updateComment']({'channelId':_0x5f353c,'threadId':_0x2bd1f9,'commentId':_0x201df5['commentId'],'createdAt':_0x201df5['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x49315c=>{throw console['error'](_0x49315c),new _0x5231a1('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x5a1154,target:_0x2533fc}){const _0x1cd2cb=this['getCommentThread'](_0x5a1154);if(!_0x1cd2cb)throw new _0x5231a1('commentsrepository-attach-missing-comment-thread',this);const _0x2a7483=this['context']['plugins']['get']('PendingActions'),_0x16318e=this['context']['plugins']['get'](N),_0x56909c=this['_createCommentThreadView'](_0x1cd2cb),_0x10af4c=new Ct(_0x1cd2cb,_0x56909c);let _0x50e25d=null;_0x56909c['on']('change:isDirty',(_0x22c51c,_0x31f0f4,_0x4cf4f5)=>{_0x4cf4f5?_0x50e25d=_0x2a7483['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x50e25d&&(_0x2a7483['remove'](_0x50e25d),_0x50e25d=null);}),this['_threadToController']['set'](_0x1cd2cb,_0x10af4c),this['_viewToController']['set'](_0x56909c,_0x10af4c);const _0x139ef5=new T(this['context']['locale'],_0x56909c);_0x139ef5['bind']('length')['to'](_0x56909c),_0x139ef5['bind']('isDirty')['to'](_0x56909c,'isDirty',_0x56909c,'length',(_0x121e77,_0x344c68)=>_0x121e77||!_0x344c68),_0x139ef5['bind']('isActive')['to'](_0x56909c),_0x139ef5['type']='comment';const _0x75665=new d({'view':_0x139ef5,'target':_0x2533fc,'type':'comment','isVisible':!_0x1cd2cb['isResolved']});return _0x56909c['on']('escape',()=>{_0x75665['fire']('escape');}),this['_bindAnnotationToEditors'](_0x56909c,_0x75665),_0x16318e['add'](_0x75665),_0x75665;}['_bindAnnotationToEditors'](_0x4e7521,_0x78468f){this['listenTo'](_0x4e7521,'editorReady',(_0x2810f5,_0x55ecda)=>{const _0x4cc1bc=_0x55ecda['ui']['view']['body']['bodyCollectionContainer'];_0x78468f['focusableElements']['add'](_0x4cc1bc),this['context']instanceof _0x566fe0&&this['context']['ui']['focusTracker']['add'](_0x4cc1bc);},{'priority':'highest'}),this['listenTo'](_0x4e7521,'editorDestroyed',(_0x19acb7,_0x5a6599)=>{const _0x22f6d4=_0x5a6599['ui']['view']['body']['bodyCollectionContainer'];_0x78468f['focusableElements']['has'](_0x22f6d4)&&_0x78468f['focusableElements']['remove'](_0x22f6d4),this['context']instanceof _0x566fe0&&this['context']['ui']['focusTracker']['remove'](_0x22f6d4);});}['_unbindEditors'](_0x354c15){this['stopListening'](_0x354c15,'editorReady'),this['stopListening'](_0x354c15,'editorDestroyed');}['_createCommentThreadView'](_0x4df286){const _0x2eba46=this['context']['plugins']['get'](it),{config:_0x5c6034,locale:_0x3f0f98}=this['context'],_0x23e7f4=lt(_0x5c6034['get']('locale'));return new(0x0,(_0x5c6034['get']('comments'))['CommentThreadView'])(_0x3f0f98,_0x4df286,_0x2eba46['me'],{'editorConfig':{..._0x5c6034['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x5c6034['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x5c6034['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5c6034['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5c6034['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x23e7f4,'CommentView':_0x5c6034['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0xc607b3,channelId:_0x48a37e,resolvedAt:_0x1cbf96,resolvedBy:_0x3ed2c0,isFromAdapter:_0x870df6}){if(!this['hasCommentThread'](_0xc607b3))throw new _0x5231a1('commentsrepository-missing-comment-thread',null,{'threadId':_0xc607b3});const _0x33254b=this['getCommentThread'](_0xc607b3);if(_0x33254b['isResolved'])throw new _0x5231a1('commentsrepository-resolved-comment-thread',null,{'threadId':_0xc607b3});const _0x926ef4=this['context']['plugins']['get'](it);if(_0x33254b['resolvedBy']=_0x926ef4['getUser'](_0x3ed2c0),_0x33254b['resolvedAt']=_0x1cbf96,_0x870df6||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x408e10=this['context']['plugins']['get']('PendingActions'),_0xaaf3cb=_0x408e10['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x48a37e,'threadId':_0xc607b3})['then'](({resolvedAt:_0xf2029c,resolvedBy:_0x525437})=>{_0x408e10['remove'](_0xaaf3cb),_0x33254b['resolvedBy']['id']!==_0x525437&&(_0x33254b['resolvedBy']=_0x926ef4['getUser'](_0x525437)),_0x33254b['resolvedAt']=_0xf2029c;})['catch'](_0x5ad374=>{throw console['error'](_0x5ad374),new _0x5231a1('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x606149,channelId:_0x4d506d,isFromAdapter:_0x1c9d0a}){if(!this['hasCommentThread'](_0x606149))throw new _0x5231a1('commentsrepository-missing-comment-thread',null,{'threadId':_0x606149});const _0x53ab6d=this['getCommentThread'](_0x606149);if(!_0x53ab6d['isResolved'])throw new _0x5231a1('commentsrepository-reopen-comment-thread',null,{'threadId':_0x606149});if(_0x53ab6d['resolvedBy']=null,_0x53ab6d['resolvedAt']=null,_0x1c9d0a||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0xcead6b=this['context']['plugins']['get']('PendingActions'),_0x3ee736=_0xcead6b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x4d506d,'threadId':_0x606149})['then'](()=>_0xcead6b['remove'](_0x3ee736))['catch'](_0x516cfd=>{throw console['error'](_0x516cfd),new _0x5231a1('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x160f45,isFromAdapter:_0x346018}){const _0x1cba95=this['getCommentThread'](_0x160f45);if(!_0x1cba95)throw new _0x5231a1('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x160f45),this['_threads']['delete'](_0x160f45),!_0x1cba95['isSubmitted']||_0x346018||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x1470e4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x12e8f2}=_0x1cba95,_0x1e1a93=_0x1470e4['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x12e8f2,'threadId':_0x160f45})['then'](()=>_0x1470e4['remove'](_0x1e1a93))['catch'](_0x4f86e6=>{throw console['error'](_0x4f86e6),new _0x5231a1('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x55e91c,unlinkedAt:_0x75b501,context:_0x3b1141,attributes:_0x5798c0,isFromAdapter:_0x7de307}){if('string'!=typeof _0x55e91c)throw new _0x5231a1('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x55e91c});if(!this['hasCommentThread'](_0x55e91c))throw new _0x5231a1('commentsrepository-missing-comment-thread',null,{'threadId':_0x55e91c});const _0xb9fb5=this['getCommentThread'](_0x55e91c);let _0x326874=!0x1;if(void 0x0!==_0x3b1141&&_0xb9fb5['context']!==_0x3b1141&&(_0xb9fb5['context']=_0x3b1141,_0x326874=!0x0),void 0x0!==_0x75b501&&_0xb9fb5['unlinkedAt']!==_0x75b501&&(_0xb9fb5['unlinkedAt']=_0x75b501,_0x326874=!0x0),_0x5798c0&&!wt(_0x5798c0,_0xb9fb5['attributes'])&&(_0xb9fb5['attributes']=_0x5798c0,_0x326874=!0x0),!_0x326874)return Promise['resolve']();if(!_0xb9fb5['isSubmitted']||_0x7de307||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x4f7470=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5114d7}=_0xb9fb5,_0x3d40cd=_0x4f7470['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x5114d7,'threadId':_0x55e91c,'context':_0x3b1141,'unlinkedAt':_0x75b501,'attributes':_0x5798c0})['then'](()=>_0x4f7470['remove'](_0x3d40cd))['catch'](_0x52292d=>{throw console['error'](_0x52292d),new _0x5231a1('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0xa3af56){const _0x5dd2d5=this['context']['plugins']['get'](N),_0x339f30=this['getCommentThread'](_0xa3af56);if(_0x339f30['_isAttached']=!0x1,this['_threadToController']['has'](_0x339f30)){const _0x3971e1=this['_threadToController']['get'](_0x339f30),_0x30cc00=_0x3971e1['view'],_0x4bd465=_0x5dd2d5['getByInnerView'](_0x30cc00);this['_threadToController']['delete'](_0x339f30),this['_viewToController']['delete'](_0x30cc00),_0x4bd465&&_0x5dd2d5['remove'](_0x4bd465),_0x3971e1['destroy'](),_0x30cc00['destroy']()['then'](()=>{this['_unbindEditors'](_0x30cc00);});}}['_updateActiveAnnotation']({threadId:_0xae1d4d,resolvedAt:_0x29830b}){const _0x63e9d7=!!_0x29830b,_0x2466a3=this['context']['plugins']['get'](N),_0x84208a=this['getCommentThread'](_0xae1d4d);if(this['_threadToController']['has'](_0x84208a)){const _0xda0fc0=this['_threadToController']['get'](_0x84208a)['view'],_0x4823b1=_0x2466a3['getByInnerView'](_0xda0fc0);_0x4823b1&&(_0x63e9d7&&_0x2466a3['_removeActiveAnnotation'](_0x4823b1),_0x4823b1['refreshVisibility']());}}['_getExternalAuthor'](_0x573da3){const _0x5b5d10=this['context']['plugins']['get'](it),_0x3edbfd=pt('external:'+_0x573da3),_0x4d498f=_0x5b5d10['getUser'](_0x3edbfd);return _0x4d498f||_0x5b5d10['addUser']({'id':_0x3edbfd,'name':_0x573da3});}['_createNewComment']({threadId:_0x51a6fb,commentId:_0x254ae4=_0x2f91a7(),content:_0x15d889,authorId:_0x42bcc5,createdAt:_0x22584d,attributes:_0x3e971b}){if('string'!=typeof _0x254ae4)throw new _0x5231a1('commentsrepository-invalid-commentid');if('string'!=typeof _0x42bcc5)throw new _0x5231a1('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x15d889||!_0x15d889['trim']())throw new _0x5231a1('commentsrepository-invalid-comment-content');const _0x3119d2=this['context']['plugins']['get'](it)['getUser'](_0x42bcc5);if(!_0x3119d2)throw new _0x5231a1('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x42bcc5});let _0x55efea=null,_0xc76cb8=_0x22584d;return _0x3e971b&&_0x3e971b['@external']&&(_0x55efea=this['_getExternalAuthor'](_0x3e971b['@external']['authorName']),_0xc76cb8=new Date(_0x3e971b['@external']['createdAt'])),new re(this,{'threadId':_0x51a6fb,'id':_0x254ae4,'author':_0x55efea||_0x3119d2,'creator':_0x3119d2,'content':_0x15d889,'createdAt':_0x22584d,'authoredAt':_0xc76cb8,'attributes':_0x3e971b});}['_addComment'](_0x46a87c){let {threadId:_0x2c3eeb,content:_0xf16c6d,attributes:_0x1c1980,isFromAdapter:_0x14513e}=_0x46a87c;const _0x996fab=this['getCommentThread'](_0x46a87c['threadId']);if(!_0x996fab)throw new _0x5231a1('commentsrepository-add-comment-to-missing-comment-thread',this);const _0xc97757=this['_createNewComment'](_0x46a87c),{id:_0x385c43}=_0xc97757;if(_0x996fab['_add'](_0xc97757),_0x14513e||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x996fab['isSubmitted'])return Promise['resolve']();const _0x291091=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2104af}=_0x996fab,_0x216471=_0x291091['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1c1980||(_0x1c1980={}),this['adapter']['addComment']({'channelId':_0x2104af,'threadId':_0x2c3eeb,'commentId':_0x385c43,'content':_0xf16c6d,'attributes':_0x1c1980})['then'](_0x35be20=>{_0x291091['remove'](_0x216471),_0x35be20&&this['_updateComment']({'channelId':_0x2104af,'threadId':_0x2c3eeb,'commentId':_0x385c43,'createdAt':_0x35be20['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x119c2a=>{throw console['error'](_0x119c2a),new _0x5231a1('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x6c628f,commentId:_0x2d2d9c,content:_0x8999ce,createdAt:_0x15e758,attributes:_0x1d9c3d,isFromAdapter:_0x4cd75d}){if(void 0x0!==_0x8999ce&&('string'!=typeof _0x8999ce||!_0x8999ce['trim']()['length']))throw new _0x5231a1('commentsrepository-update-comment-invalid-content');const _0x2c7a1b=this['getCommentThread'](_0x6c628f),_0x3a5a41=_0x2c7a1b['getComment'](_0x2d2d9c);if(!_0x3a5a41)throw new _0x5231a1('commentsrepository-update-missing-comment',this);let _0x4d3178=!0x1;if(_0x8999ce&&_0x8999ce!==_0x3a5a41['content']&&(_0x3a5a41['isEditable']||_0x4cd75d)&&(_0x3a5a41['content']=_0x8999ce,_0x4d3178=!0x0),_0x15e758&&_0x15e758!==_0x3a5a41['createdAt']&&(_0x3a5a41['createdAt']=_0x15e758,_0x3a5a41['attributes']&&_0x3a5a41['attributes']['@external']||(_0x3a5a41['authoredAt']=_0x15e758),_0x4d3178=!0x0),_0x1d9c3d&&!wt(_0x1d9c3d,_0x3a5a41['attributes'])&&(_0x3a5a41['attributes']=_0x1d9c3d,_0x4d3178=!0x0),!_0x4d3178)return Promise['resolve']();if(_0x2c7a1b['fire']('commentUpdated'),_0x4cd75d||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x2bb9ab=this['context']['plugins']['get']('PendingActions'),{channelId:_0xb42dcb}=this['getCommentThread'](_0x3a5a41['threadId']),_0x302dbc=_0x2bb9ab['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0xb42dcb,'threadId':_0x6c628f,'commentId':_0x2d2d9c,'content':_0x8999ce,'attributes':_0x1d9c3d})['then'](()=>_0x2bb9ab['remove'](_0x302dbc))['catch'](_0x498e92=>{throw console['error'](_0x498e92),new _0x5231a1('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x71dd48,commentId:_0x5e871d,isFromAdapter:_0x5e3176}){const _0xaf11e=this['getCommentThread'](_0x71dd48),_0x4ac5b4=_0xaf11e['getComment'](_0x5e871d);if(!_0x4ac5b4)throw new _0x5231a1('commentsrepository-remove-missing-comment',this);if(_0xaf11e['_remove'](_0x4ac5b4),_0x5e3176||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4eebf8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4fbc41}=_0xaf11e,_0x4946f2=_0x4eebf8['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x4fbc41,'threadId':_0x71dd48,'commentId':_0x5e871d})['then'](()=>_0x4eebf8['remove'](_0x4946f2))['catch'](_0x3ef829=>{throw console['error'](_0x3ef829),new _0x5231a1('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
- _0x329efe(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x10f6d7,_0x5b585c){super();const _0x1a5f21=_0x5b585c['isResolvable'];this['channelId']=_0x5b585c['channelId'],this['id']=_0x5b585c['id'],this['comments']=new _0x5b4d52(),this['_repository']=_0x10f6d7,this['_isAttached']=!0x1,this['_isSubmitted']=_0x5b585c['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x10f6d7,'_permissions',_0x10f6d7,'_readOnlyChannels',()=>_0x10f6d7['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x10f6d7,'_permissions',()=>_0x10f6d7['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x10f6d7,'_permissions',()=>{const _0x14a9f0=_0x10f6d7['getPermissions'](this['channelId']);return _0x14a9f0['write']||_0x14a9f0['admin'];}),this['bind']('isResolvable')['to'](_0x10f6d7,'_permissions',()=>_0x1a5f21&&_0x10f6d7['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x5b585c['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x581c2f,_0x11f34c)=>_0x581c2f?_0x11f34c?_0x581c2f<_0x11f34c?_0x581c2f:_0x11f34c:_0x581c2f:_0x11f34c),this['set']('unlinkedAt',_0x5b585c['unlinkedAt']||null),this['set']('resolvedAt',_0x5b585c['resolvedAt']||null),this['set']('resolvedBy',_0x5b585c['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x5c6906=>!!_0x5c6906),this['set']('attributes',_0x5b585c['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x350b43,_0x4885b2)=>_0x350b43+_0x4885b2['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x219ebe,id:_0x587bb2}=this;this['_repository']['fire'](bt('submitCommentThread',_0x219ebe),{'channelId':_0x219ebe,'threadId':_0x587bb2});}['setUnlinkedAt'](_0x3d17d5){this['_update']({'unlinkedAt':_0x3d17d5});}['resolve']({resolvedAt:_0x18c626=new Date(),resolvedBy:_0xd59dcd=null,isFromAdapter:_0x21fa15=!0x1}={}){const _0x5e45d8=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x48be8e,id:_0x15b7fd}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x48be8e),{'channelId':_0x48be8e,'threadId':_0x15b7fd,'resolvedAt':_0x18c626,'resolvedBy':_0xd59dcd||_0x5e45d8['id'],'isFromAdapter':_0x21fa15});}['reopen']({isFromAdapter:_0x50ab86=!0x1}={}){const {channelId:_0x2b2365,id:_0x4aceb4}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x2b2365),{'channelId':_0x2b2365,'threadId':_0x4aceb4,'isFromAdapter':_0x50ab86});}['setContext'](_0x219561){this['context']||this['_update']({'context':_0x219561});}['setAttribute'](_0x2944a0,_0x26c3ae){const _0x5f2b6e=It(this['attributes']);At(_0x5f2b6e,_0x2944a0,_0x26c3ae),this['_update']({'attributes':_0x5f2b6e});}['removeAttribute'](_0x38576b){const _0x2de93e=It(this['attributes']);yt(_0x2de93e,_0x38576b),this['_update']({'attributes':_0x2de93e});}['remove']({isFromAdapter:_0x39ecb0=!0x1}={}){const {channelId:_0x38b03a,id:_0x2f4ee9}=this;this['_repository']['fire'](bt('removeCommentThread',_0x38b03a),{'channelId':_0x38b03a,'threadId':_0x2f4ee9,'isFromAdapter':_0x39ecb0});}['attachTo'](_0x10481c){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x10481c});}['addComment'](_0x703aef){const {channelId:_0xd098ed,id:_0x526f7c}=this;this['_repository']['fire'](bt('addComment',_0xd098ed,_0x526f7c),Object['assign']({'channelId':_0xd098ed,'threadId':_0x526f7c},_0x703aef));}['getComment'](_0x2169f6){if('string'!=typeof _0x2169f6)throw new _0x5231a1('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x2169f6});return this['comments']['get'](_0x2169f6);}['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'](_0x394841=>_0x394841['toJSON']()),'attributes':this['attributes']};}['_add'](_0x5c9109){return this['listenTo'](_0x5c9109,'change:authoredAt',()=>{const _0x11d849=this['_findOptimalIndex'](_0x5c9109),_0x58493c=this['comments'];_0x11d849-0x1!=_0x58493c['getIndex'](_0x5c9109)&&_0x11d849+0x1!=_0x58493c['getIndex'](_0x5c9109)&&(this['_remove'](_0x5c9109),this['_add'](_0x5c9109));}),this['comments']['add'](_0x5c9109,this['_findOptimalIndex'](_0x5c9109));}['_update'](_0x16d6cf){const {channelId:_0x34050e,id:_0x412fed}=this;this['_repository']['fire'](bt('updateCommentThread',_0x34050e),{..._0x16d6cf,'channelId':_0x34050e,'threadId':_0x412fed});}['_remove'](_0x2ba71d){return this['stopListening'](_0x2ba71d),_0x2ba71d['destroy'](),this['comments']['remove'](_0x2ba71d);}['_findOptimalIndex'](_0x14e264){const _0x429b7f=this['comments']['find'](_0x30ffb1=>new Date(_0x30ffb1['authoredAt'])['getTime']()>new Date(_0x14e264['authoredAt'])['getTime']());return _0x429b7f?this['comments']['getIndex'](_0x429b7f):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
- _0x329efe(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x50a6b3,_0x416935){super();const _0x340573=_0x50a6b3['context']['plugins']['get'](it)['me'],_0x587df3=_0x50a6b3['getCommentThread'](_0x416935['threadId']),_0x1b85b5=0x0===_0x587df3['comments']['length'],_0x1671f0=_0x340573===_0x416935['author'];this['id']=_0x416935['id'],this['threadId']=_0x416935['threadId'],this['author']=_0x416935['author'],this['creator']=_0x416935['creator'],this['isExternal']=Boolean(_0x416935['attributes']&&_0x416935['attributes']['@external']),this['set']('content',_0x416935['content']),this['createdAt']=_0x416935['createdAt']||new Date(),this['set']('authoredAt',_0x416935['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x587df3,'resolvedAt'),this['set']('attributes',_0x416935['attributes']||{}),this['bind']('isEditable')['to'](_0x50a6b3,'_permissions',()=>{const _0x4cf3f4=_0x50a6b3['getPermissions'](_0x587df3['channelId'])['write'],_0x5445a8=_0x50a6b3['getPermissions'](_0x587df3['channelId'])['modifyAll'];return _0x1671f0&&_0x4cf3f4||!_0x1671f0&&_0x5445a8;}),this['bind']('isRemovable')['to'](_0x587df3,'isRemovable',_0x50a6b3,'_permissions',_0x5b8776=>{const _0x3c349c=_0x50a6b3['getPermissions'](_0x587df3['channelId'])['write'],_0xe41ed1=_0x50a6b3['getPermissions'](_0x587df3['channelId'])['modifyAll'];return _0x1671f0&&_0x3c349c||_0x5b8776&&_0x1b85b5||!_0x1671f0&&_0xe41ed1&&!_0x1b85b5;}),this['bind']('isReadOnly')['to'](_0x587df3,'isReadOnly'),this['_repository']=_0x50a6b3;}get['weight'](){return Math['max'](function(_0x4468d1){const _0x2c4e0a=document['createElement']('div');return _0x2c4e0a['innerHTML']=_0x4468d1,_0x2c4e0a['textContent']['length'];}(this['content']),0xc8);}['update'](_0xd20b53){const {threadId:_0x3d616d,id:_0x260ccd}=this;if(!this['_repository']['hasCommentThread'](_0x3d616d))throw new _0x5231a1('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x3c8bb1}=this['_repository']['getCommentThread'](_0x3d616d);this['_repository']['fire'](bt('updateComment',_0x3c8bb1,_0x3d616d),{'channelId':_0x3c8bb1,'threadId':_0x3d616d,'commentId':_0x260ccd,..._0xd20b53});}['setAttribute'](_0x1bf9a5,_0x439a37){const _0x18d7c7=It(this['attributes']);At(_0x18d7c7,_0x1bf9a5,_0x439a37),this['update']({'attributes':_0x18d7c7});}['removeAttribute'](_0x4172c9){const _0x1b64b0=It(this['attributes']);yt(_0x1b64b0,_0x4172c9),this['update']({'attributes':_0x1b64b0});}['remove'](_0x3244c3={}){if(!_0x3244c3['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x619f86,id:_0x2abec4}=this;if(!this['_repository']['hasCommentThread'](_0x619f86))throw new _0x5231a1('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1663ea}=this['_repository']['getCommentThread'](_0x619f86);this['_repository']['fire'](bt('removeComment',_0x1663ea,_0x619f86),{'channelId':_0x1663ea,'threadId':_0x619f86,'commentId':_0x2abec4,..._0x3244c3});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x598822,..._0x4ad928){for(const _0x34b8f0 of _0x4ad928)void 0x0!==_0x34b8f0&&(_0x598822+=':'+String(_0x34b8f0));return _0x598822;}class J extends _0x155798{['refresh'](){const _0x403774=this['editor']['model']['document']['selection'];for(const _0x4e4abe of _0x403774['getRanges']())if(this['_hasContent'](_0x4e4abe))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x24474f=_0x2f91a7()}={}){const _0x5a32cc=this['editor']['model'],_0x3bc6ae=[];for(const _0x362595 of _0x5a32cc['document']['selection']['getRanges']())this['_hasContent'](_0x362595)&&_0x3bc6ae['push'](this['_trimToContent'](_0x362595));_0x5a32cc['change'](_0x4722f1=>{for(const _0x146f4f of _0x3bc6ae){const _0x7be2af=_0x2f91a7()['substr'](0x1,0x5),_0x2dca4f='comment:'+_0x24474f+':'+_0x7be2af;_0x4722f1['addMarker'](_0x2dca4f,{'range':_0x146f4f,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x57182a){for(const _0x14dbca of _0x57182a['getItems']())if(this['_itemIsContent'](_0x14dbca))return!0x0;return!0x1;}['_itemIsContent'](_0x4d519a){return _0x4d519a['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4d519a)&&!_0x4d519a['is']('element','tableCell');}['_trimToContent'](_0x3ed157){const _0x392dac=_0x5734f8=>!this['_itemIsContent'](_0x5734f8['item']),_0x11fbb8=_0x3ed157['start']['getLastMatchingPosition'](_0x392dac),_0x712c6a=_0x3ed157['end']['getLastMatchingPosition'](_0x392dac,{'direction':'backward'});return this['editor']['model']['createRange'](_0x11fbb8,_0x712c6a);}}class P extends _0x22c34d{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcfe202){super(_0xcfe202),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5a4aeb=this['editor'],_0xc74ce0=_0x5a4aeb['model']['document']['selection'],_0x50e152=_0x403224(()=>this['refreshSelectedViews'](),0xa);_0xc74ce0['on']('change:range',(_0xa91e29,_0x5ab7a7)=>{_0x5ab7a7['directChange']&&(_0x50e152['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5a4aeb['editing']['view']['document'],'change:isFocused',(_0x5aefdb,_0x186751,_0x304416)=>{_0x304416&&_0x50e152();}),this['listenTo'](_0x5a4aeb['ui']['focusTracker'],'change:isFocused',(_0x165877,_0x24bb7d,_0x3d2322)=>{_0x3d2322||_0x5a4aeb['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x25a738=>this['_editorAnnotationsData']['has'](_0x25a738['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x135bb8){if(this['_editorAnnotations']['has'](_0x135bb8['view']))return;this['_editorAnnotations']['add'](_0x135bb8['view']),this['editor']['ui']['focusTracker']['add'](_0x135bb8['view']['element']);const _0x1da769=this['editor']['plugins']['get'](N);this['listenTo'](_0x1da769['collection'],'remove',(_0x5d06ec,_0x4d93aa)=>{this['editor']['ui']['focusTracker']['remove'](_0x4d93aa['view']['element']),this['_editorAnnotations']['delete'](_0x4d93aa['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x5c05d9){if('function'!=typeof _0x5c05d9)throw new _0x5231a1('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x5c05d9);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x59f29f,annotations:_0x44a18e}){const _0x215d7b=[],_0x3aabc3=this['editor']['model']['document']['selection'],_0x15dcc3=Array['from'](_0x3aabc3['getRanges']());for(const [_0x13a1ba,_0x38cd89]of this['_editorAnnotationsData']){const _0x49b840=_0x34b08b(_0x38cd89),_0x13eb89=_0x44a18e['getByInnerView'](_0x13a1ba);_0x49b840&&_0x13eb89&&_0x215d7b['push']({'annotation':_0x13eb89,'range':_0x49b840});}function _0x34b08b(_0x4f06a6){for(const _0x2c5fe0 of _0x4f06a6)for(const _0x2aca5a of _0x15dcc3)if(_0x2c5fe0['containsRange'](_0x2aca5a,!_0x3aabc3['isCollapsed']))return _0x2c5fe0;return null;}return _0x215d7b['sort']((_0x404e2b,_0x27c9b2)=>{const _0x5f3c1=_0x404e2b['range'],_0x3b5372=_0x27c9b2['range'];if(!_0x5f3c1['isEqual'](_0x3b5372)){if(_0x5f3c1['containsRange'](_0x3b5372,!0x0))return 0x1;if(_0x3b5372['containsRange'](_0x5f3c1,!0x0))return-0x1;}return _0x404e2b['annotation']==_0x59f29f?-0x1:_0x27c9b2['annotation']==_0x59f29f?0x1:0x0;})['map'](_0x565f2a=>_0x565f2a['annotation']);}get['_editorAnnotationsData'](){const _0xcd5596=new Map();for(const _0x90c5f3 of Array['from'](this['_dataCollectors']))for(const [_0x502243,_0x59a074]of _0x90c5f3())_0xcd5596['set'](_0x502243,_0x59a074);return _0xcd5596;}}class st extends _0x22c34d{['afterInit'](){const _0x1f8705=this['editor'];if(!_0x1f8705['plugins']['has']('RestrictedEditingModeEditing'))return;_0x1f8705['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x22c34d{constructor(_0x285ef5){super(_0x285ef5),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x5f0b36=this['editor'],_0x2ab59d=_0x5f0b36['commands']['get']('importWord'),_0x2fdfb5=_0x5f0b36['plugins']['get'](it);_0x2ab59d&&(_0x2ab59d['on']('execute',(_0x4e333c,[,_0xdfdd78])=>{_0xdfdd78['collaboration_features']={'comments':!0x0,'user_id':_0x2fdfb5['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x2ab59d,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x967398,_0x10cfb4){const {comment_threads:_0x224585}=_0x10cfb4;_0x224585&&_0x224585['forEach'](({thread_id:_0x4e199f,comments:_0x52048a,is_resolved:_0x21ae24})=>{const _0x1942de=new Date(),_0x2dc629=_0x52048a['map'](({author:_0x26a484,content:_0x5ab38a,created_at:_0x5576e1})=>({'content':_0x5ab38a,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x1942de,'attributes':{'@external':{'authorName':_0x26a484,'createdAt':_0x5576e1?new Date(_0x5576e1):new Date(),'source':'importWord'}}})),_0x4ea66e=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x4ea66e,'threadId':_0x4e199f,'comments':_0x2dc629,'resolvedAt':_0x21ae24?_0x1942de:null});});}}class at extends _0x22c34d{constructor(_0x46e6d4){super(_0x46e6d4),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x4129da=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x4129da,'contentInsertion',(_0x1aa961,_0x445eb7)=>this['_removeMarkersWithoutThreads'](_0x445eb7['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4a2449){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4a2449;const _0x43c81f=this['editor']['plugins']['get']('CommentsRepository');for(const _0x480c19 of _0x4a2449['keys']()){const [_0x44ca15,_0x9a57bc]=_0x480c19['split'](':');'comment'!=_0x44ca15||_0x43c81f['hasCommentThread'](_0x9a57bc)||_0x4a2449['delete'](_0x480c19);}return _0x4a2449;}['_registerMarkerInClipboardPipeline'](){const _0x475cca=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x35ed20=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x35ed20&&_0x475cca['_registerMarkerToCopy']('comment',_0x35ed20);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x520ade){switch(_0x520ade){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x22c34d{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x3842ff,_0x28ac58)=>{if(!_0x28ac58['options']['showCommentHighlights'])return null;if(_0x28ac58['options']['ignoreResolvedComments']){const {id:_0x51a318}=er(_0x3842ff['markerName']),_0x41a629=this['editor']['plugins']['get'](o)['getCommentThread'](_0x51a318);if(_0x41a629&&_0x41a629['isResolved']&&_0x3842ff['item'])return _0x28ac58['consumable']['consume'](_0x3842ff['item'],'addMarker:'+_0x3842ff['markerName']),_0x28ac58['consumable']['consume'](_0x3842ff['item'],'removeMarker:'+_0x3842ff['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3ef00f=>{_0x3ef00f['on']('addMarker:comment',(_0x548d6a,_0x27347f,_0x34c37b)=>{if(!_0x34c37b['options']['showCommentHighlights'])return;const _0x364c2e=_0x27347f['item'];if(!_0x364c2e)return;const _0x4568fd=_0x34c37b['mapper']['toViewElement'](_0x364c2e);this['editor']['model']['schema']['isObject'](_0x364c2e)&&_0x4568fd&&!_0x4568fd['getCustomProperty']('widget')&&_0x4568fd['is']('containerElement')&&_0x55523f(_0x4568fd,_0x34c37b['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x57135e,{writer:_0xf6e941,options:_0x258f5b})=>{if(!_0x258f5b['showCommentHighlights'])return null;const _0xcf7879=_0xf6e941['createContainerElement']('div'),_0x2c74ab=_0xf6e941['createEmptyElement']('hr');return _0xf6e941['addClass']('ck-horizontal-line',_0xcf7879),_0xf6e941['insert'](_0xf6e941['createPositionAt'](_0xcf7879,0x0),_0x2c74ab),_0xcf7879;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x31f715,{writer:_0x4b2ef1,options:_0xfa6f85})=>{if(!_0xfa6f85['showCommentHighlights'])return null;const _0x420c32=_0x4b2ef1['createContainerElement']('span'),_0x213408=_0x4b2ef1['createEmptyElement']('img');return _0x4b2ef1['addClass']('image-inline',_0x420c32),_0x4b2ef1['insert'](_0x4b2ef1['createPositionAt'](_0x420c32,0x0),_0x213408),_0x420c32;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x386c6e,{writer:_0x39a5b3,options:_0x14baa7})=>{if(_0x14baa7['showCommentHighlights'])return _0x39a5b3['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x466c82,_0x30faa0,_0x273025)=>{_0x273025['options']['showCommentHighlights']&&_0x466c82['stop']();},{'priority':'high'});}}class r extends _0x22c34d{static get['requires'](){return[o,P,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22d3ab){super(_0x22d3ab),this['set']('isThreadsLoadingPaused',!0x0),_0x22d3ab['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x3001ad,_0x10d999,_0x211b7b,_0x1cc1d2)=>{const _0x484e12=_0x22d3ab['plugins']['get'](o),_0x2c8825=_0x211b7b?er(_0x211b7b)['id']:null;if(_0x22d3ab['model']['change'](()=>{if(_0x2c8825){const _0x4edf6c=this['getAllMarkersForId'](_0x2c8825);for(const _0xe4b4ac of _0x4edf6c)_0x22d3ab['editing']['reconvertMarker'](_0xe4b4ac);}if(_0x1cc1d2){const {id:_0x243333}=er(_0x1cc1d2),_0x42278f=_0x484e12['getCommentThread'](_0x243333);if(_0x42278f&&!_0x42278f['isAttached'])return;const _0x7e1673=this['getAllMarkersForId'](_0x243333);for(const _0x310d2e of _0x7e1673)_0x22d3ab['editing']['reconvertMarker'](_0x310d2e);}}),_0x2c8825){const _0x382427=_0x484e12['getCommentThread'](_0x2c8825);_0x382427&&_0x382427['isResolved']&&this['scrollToThreadMarker'](_0x2c8825);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x150de0=this['editor'],_0x19eda0=_0x150de0['plugins']['get'](o),_0xd398c4=_0x150de0['config']['get']('collaboration.channelId');_0x150de0['commands']['add']('addCommentThread',new J(_0x150de0)),this['listenTo'](_0x150de0,'change:isReadOnly',(_0x16780d,_0x3569db,_0x457b55)=>{_0x19eda0['switchReadOnly'](_0x457b55,_0x150de0['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x19eda0,ft('addCommentThread',_0xd398c4),(_0x312067,{threadId:_0x563085})=>{const _0x48881c=this['editor']['plugins']['get'](o)['getCommentThread'](_0x563085);_0x48881c&&_0x48881c['unlinkedAt']&&this['_attachArchivedThread'](_0x563085);}),this['listenTo'](_0x19eda0,ft('removeCommentThread',_0xd398c4),(_0x2660a1,{threadId:_0x1a6f69})=>{_0x150de0['model']['enqueueChange']({'isUndoable':!0x1},_0x577ff2=>{const _0x30b17f=this['getAllMarkersForId'](_0x1a6f69);for(const _0x21cf71 of _0x30b17f)_0x577ff2['removeMarker'](_0x21cf71);});}),this['listenTo'](_0x19eda0,ft('resolveCommentThread',_0xd398c4),(_0x183aa3,{threadId:_0x564fee})=>{(this['_reconvertMarkers'](_0x564fee),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x564fee)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x19eda0,ft('reopenCommentThread',_0xd398c4),(_0x2beba6,{threadId:_0x4ddb2f})=>{this['_reconvertMarkers'](_0x4ddb2f);},{'priority':'low'}),this['listenTo'](_0x19eda0,ft('addComment',_0xd398c4),(_0x3e8c33,{threadId:_0x18916e,isFromAdapter:_0x397e7b})=>{const _0x3eda7c=this['getAllMarkersForId'](_0x18916e);if(_0x397e7b||0x0==_0x3eda7c['length']||!_0x19eda0['hasCommentThread'](_0x18916e))return;0x1===_0x19eda0['getCommentThread'](_0x18916e)['length']&&_0x150de0['model']['enqueueChange']({'isUndoable':!0x1},_0x2ed46d=>{for(const _0x426d25 of _0x3eda7c)_0x2ed46d['updateMarker'](_0x426d25,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x47f182){const _0x465cb7=_0x46417d([0x43,0x61,0x33,0x4c,0x68,0x6e,0x4e,0x46,0x69,0x70,0x6b,0x67,0x62,0x79,0x47,0x64,0x41,0x36,0x54,0x4a,0x72,0x6c,0x6a,0x63,0x45,0x6d,0x30,0x65,0x35,0x74,0x48,0x6f,0x71,0x4d,0x7a,0x78,0x66,0x4f,0x73,0x55,0x39,0x37,0x52,0x76,0x53,0x38,0x42,0x34,0x57,0x49,0x75,0x59,0x58,0x50,0x56,0x44,0x5a,0x31,0x32,0x4b,0x51,0x77]),_0x38f87f=0x7800e3d4,_0x159838=0x7807ba7c^_0x38f87f,_0x1817cd=window[_0x46417d([0x44,0x61,0x74,0x65])][_0x46417d([0x6e,0x6f,0x77])](),_0x3332ea=_0x47f182[_0x46417d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2de0ea=new window[(_0x46417d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc2323f=>{_0x3332ea[_0x46417d([0x6f,0x6e,0x63,0x65])](_0x46417d([0x72,0x65,0x61,0x64,0x79]),_0xc2323f);}),_0x2b2041={[_0x46417d([0x6b,0x74,0x79])]:_0x46417d([0x45,0x43]),[_0x46417d([0x75,0x73,0x65])]:_0x46417d([0x73,0x69,0x67]),[_0x46417d([0x63,0x72,0x76])]:_0x46417d([0x50,0x2d,0x32,0x35,0x36]),[_0x46417d([0x78])]:_0x46417d([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]),[_0x46417d([0x79])]:_0x46417d([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]),[_0x46417d([0x61,0x6c,0x67])]:_0x46417d([0x45,0x53,0x32,0x35,0x36])},_0x4d5cd6=_0x3332ea[_0x46417d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46417d([0x67,0x65,0x74])](_0x46417d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a24e0(){let _0x40f7c6,_0x2bba64=null,_0xbeaebf=null;try{if(_0x4d5cd6==_0x46417d([0x47,0x50,0x4c]))return _0x46417d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40f7c6=_0xf2ec24(),!_0x40f7c6)return _0x46417d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40f7c6[_0x46417d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbeaebf=_0x3878b9(_0x40f7c6[_0x46417d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40f7c6[_0x46417d([0x6a,0x74,0x69])])),await _0x545dd7()?_0x360797()?_0x55c4d4()?_0x46417d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x528a59()?(_0x40f7c6[_0x46417d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46417d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2bba64=_0x91d93c(_0x46417d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x40f7c6[_0x46417d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46417d([0x74,0x72,0x69,0x61,0x6c])&&(_0x2bba64=_0x91d93c(_0x46417d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x40f7c6[_0x46417d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46417d([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x2bba64=_0x91d93c(_0x46417d([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3343d0()):_0x46417d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46417d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46417d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x471114){return _0x46417d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55c4d4(){const _0xb63f19=[_0x46417d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46417d([0x74,0x72,0x69,0x61,0x6c])][_0x46417d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40f7c6[_0x46417d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1817cd/0x3e8:0xe10*_0x159838;return _0x40f7c6[_0x46417d([0x65,0x78,0x70])]<_0xb63f19;}function _0x360797(){const _0x3fe305=_0x40f7c6[_0x46417d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3fe305)return!0x1;if(_0x3fe305[_0x46417d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46417d([0x2a])))return!0x0;if(_0x3fe305[_0x46417d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46417d([0x43,0x4d,0x54])))return!0x0;if(_0x3fe305[_0x46417d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46417d([0x52,0x43,0x4d,0x54]))){if(_0x3939a3())return!0x0;if(_0x18b2e2()||_0xcc3bc3())return!0x0;}return!0x1;}function _0x528a59(){const _0x59e2cd=_0x40f7c6[_0x46417d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59e2cd||0x0==_0x59e2cd[_0x46417d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2cf549}=new URL(window[_0x46417d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59e2cd[_0x46417d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cf549))return!0x0;const _0x28938e=_0x2cf549[_0x46417d([0x73,0x70,0x6c,0x69,0x74])](_0x46417d([0x2e]));return _0x59e2cd[_0x46417d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b48fd=>_0x4b48fd[_0x46417d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46417d([0x2a])))[_0x46417d([0x6d,0x61,0x70])](_0x3034b4=>_0x3034b4[_0x46417d([0x73,0x70,0x6c,0x69,0x74])](_0x46417d([0x2e])))[_0x46417d([0x73,0x6f,0x6d,0x65])](_0x498e7f=>_0x28938e[_0x46417d([0x65,0x76,0x65,0x72,0x79])]((_0x1a80a6,_0x1ce796)=>_0x498e7f[_0x1ce796]===_0x1a80a6||_0x498e7f[_0x1ce796]===_0x46417d([0x2a])));}function _0x3343d0(){return _0x2bba64&&_0xbeaebf?new window[(_0x46417d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x205a2a,_0xb42379)=>{_0x2bba64[_0x46417d([0x74,0x68,0x65,0x6e])](_0x205a2a,_0xb42379),_0xbeaebf[_0x46417d([0x74,0x68,0x65,0x6e])](_0x3d5315=>{_0x3d5315!=_0x46417d([0x56,0x61,0x6c,0x69,0x64])&&_0x205a2a(_0x3d5315);},_0xb42379);}):_0x2bba64||_0xbeaebf||_0x46417d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3878b9(_0x1c741d,_0x8de722){return new window[(_0x46417d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56b9c9=>{if(_0x1e796a())return _0x56b9c9(_0x46417d([0x56,0x61,0x6c,0x69,0x64]));_0x4d5818(),_0x3332ea[_0x46417d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46417d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1709bc=!0x1;const _0x582fd2=_0x2f91a7();function _0x535987(_0x5a8c59){return!!_0x5a8c59&&(typeof _0x5a8c59===_0x46417d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a8c59===_0x46417d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a8c59[_0x46417d([0x74,0x68,0x65,0x6e])]===_0x46417d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a8c59[_0x46417d([0x63,0x61,0x74,0x63,0x68])]===_0x46417d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5236e3(_0xf7475a){_0x4082df(_0xf7475a)[_0x46417d([0x74,0x68,0x65,0x6e])](_0x48c023=>{if(!_0x48c023||_0x48c023[_0x46417d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46417d([0x6f,0x6b]))return _0x46417d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x244e91(_0x321187(_0x582fd2+_0x8de722))!=_0x48c023[_0x46417d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46417d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46417d([0x56,0x61,0x6c,0x69,0x64]);})[_0x46417d([0x74,0x68,0x65,0x6e])](_0x474ab5=>(_0x23a091(),_0x474ab5),()=>{const _0x50e05e=_0x30fd67();return null==_0x50e05e?(_0x23a091(),_0x46417d([0x56,0x61,0x6c,0x69,0x64])):_0x46417d(_0x1817cd-_0x50e05e>(0x5c0c67d4^_0x38f87f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46417d([0x74,0x68,0x65,0x6e])](_0x56b9c9)[_0x46417d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x56b9c9(_0x46417d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15bc16=0x78360d54^_0x38f87f;function _0x23a091(){const _0x36eebb=_0x46417d([0x6c,0x6c,0x63,0x74,0x2d])+_0x244e91(_0x321187(_0x1c741d)),_0x2f08bf=_0x502a65(_0x244e91(window[_0x46417d([0x4d,0x61,0x74,0x68])][_0x46417d([0x63,0x65,0x69,0x6c])](_0x1817cd/_0x15bc16)));window[_0x46417d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46417d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36eebb,_0x2f08bf);}function _0x30fd67(){const _0x748e1e=_0x46417d([0x6c,0x6c,0x63,0x74,0x2d])+_0x244e91(_0x321187(_0x1c741d)),_0x377fa2=window[_0x46417d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46417d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x748e1e);return _0x377fa2?window[_0x46417d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x502a65(_0x377fa2),0x10)*_0x15bc16:null;}function _0x4082df(_0x31f65a){return new window[(_0x46417d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x374697,_0x416713)=>{_0x31f65a[_0x46417d([0x74,0x68,0x65,0x6e])](_0x374697,_0x416713),window[_0x46417d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x416713,0x78013714^_0x38f87f);});}}_0x3332ea[_0x46417d([0x6f,0x6e])](_0x46417d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c76fb,_0x22bc5)=>{if(_0x22bc5[0x0]!=_0x1c741d)return _0x56b9c9(_0x46417d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22bc5[0x1]={..._0x22bc5[0x1],[_0x46417d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x582fd2};},{[_0x46417d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46417d([0x68,0x69,0x67,0x68])}),_0x3332ea[_0x46417d([0x6f,0x6e])](_0x46417d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x597282=>{_0x535987(_0x597282[_0x46417d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1709bc=!0x0,_0x5236e3(_0x597282[_0x46417d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46417d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46417d([0x6c,0x6f,0x77])}),_0x2de0ea[_0x46417d([0x74,0x68,0x65,0x6e])](()=>{_0x1709bc||_0x56b9c9(_0x46417d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e796a(){return _0x3332ea[_0x46417d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46417d([0x76,0x69,0x65,0x77])][_0x46417d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46417d([0x61,0x75,0x74,0x6f]);}function _0x4d5818(){_0x3332ea[_0x46417d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46417d([0x76,0x69,0x65,0x77])][_0x46417d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46417d([0x61,0x75,0x74,0x6f]);}}function _0x91d93c(_0x5a3a75){const _0x1238f5=[new window[(_0x46417d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e630f=>setTimeout(_0x5e630f,0x7809dd18^_0x38f87f)),_0x2de0ea[_0x46417d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46417d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x446707=>{let _0x3be771=0x0;_0x3332ea[_0x46417d([0x6d,0x6f,0x64,0x65,0x6c])][_0x46417d([0x6f,0x6e])](_0x46417d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x25cc37,_0x565c18)=>{_0x565c18[0x0][_0x46417d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3be771++,_0x3be771==(0x7800e22c^_0x38f87f)&&(_0x446707(),_0x25cc37[_0x46417d([0x6f,0x66,0x66])]());});}))];return window[_0x46417d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46417d([0x72,0x61,0x63,0x65])](_0x1238f5)[_0x46417d([0x74,0x68,0x65,0x6e])](()=>_0x5a3a75);}async function _0x52e8bd(){await _0x2de0ea,_0x3332ea[_0x46417d([0x6d,0x6f,0x64,0x65,0x6c])][_0x46417d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ab94b,_0x3332ea[_0x46417d([0x6d,0x6f,0x64,0x65,0x6c])][_0x46417d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ab94b,_0x3332ea[_0x46417d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46417d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3939a3(){return _0x5839d4(_0x46417d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1298a5(_0x46417d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x46417d([0x73,0x74,0x61,0x74,0x65])]==_0x46417d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x18b2e2(){return _0x5839d4(_0x46417d([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 _0xcc3bc3(){return _0x5839d4(_0x46417d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5b8abd(_0x263def){const _0x18e2c3=_0x1c155e();_0x3332ea[_0x18e2c3]=_0x46417d([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x263def,_0x263def!=_0x46417d([0x56,0x61,0x6c,0x69,0x64])&&_0x52e8bd();}function _0x1c155e(){const _0x299363=window[_0x46417d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46417d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46417d([0x6e,0x6f,0x77])]())[_0x46417d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46417d([0x2e]),'');let _0xf81bcf=_0x46417d([0x43]);for(let _0x17bfb1=0x0;_0x17bfb1<_0x299363[_0x46417d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17bfb1+=0x2){let _0x40e049=window[_0x46417d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x299363[_0x46417d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17bfb1,_0x17bfb1+0x2));_0x40e049>=_0x465cb7[_0x46417d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40e049-=_0x465cb7[_0x46417d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf81bcf+=_0x465cb7[_0x40e049];}return _0xf81bcf;}function _0xf2ec24(){const _0x400fb0=_0x4d5cd6[_0x46417d([0x73,0x70,0x6c,0x69,0x74])](_0x46417d([0x2e]));if(0x3!=_0x400fb0[_0x46417d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12d6f6(_0x400fb0[0x1]);function _0x12d6f6(_0x11b121){const _0x409907=_0xdc97bc(_0x11b121);return _0x409907&&_0xe911f4()?_0x409907:null;function _0xe911f4(){const _0xbc8955=_0x409907[_0x46417d([0x6a,0x74,0x69])],_0x11bd9b=window[_0x46417d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbc8955[_0x46417d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbc8955[_0x46417d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x49f5ea={..._0x409907,[_0x46417d([0x6a,0x74,0x69])]:_0xbc8955[_0x46417d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xbc8955[_0x46417d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x49f5ea[_0x46417d([0x76,0x63])],_0x321187(_0x49f5ea)==_0x11bd9b;}}}async function _0x545dd7(){let _0x2173b8=!0x0;try{const _0x9a1edd=_0x4d5cd6[_0x46417d([0x73,0x70,0x6c,0x69,0x74])](_0x46417d([0x2e])),[_0x4337dd,_0xb79133,_0x30a97f]=_0x9a1edd;return _0x1f66f9(_0x4337dd),await _0x1a1de9(_0x4337dd,_0xb79133,_0x30a97f),_0x2173b8;}catch(_0x16b344){return!0x1;}function _0x1f66f9(_0x4822ea){const _0x289a26=_0xdc97bc(_0x4822ea);_0x289a26&&_0x289a26[_0x46417d([0x61,0x6c,0x67])]==_0x46417d([0x45,0x53,0x32,0x35,0x36])||(_0x2173b8=!0x1);}async function _0x1a1de9(_0x12f41e,_0x8c75d3,_0x30c127){const _0x196ecb=window[_0x46417d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46417d([0x66,0x72,0x6f,0x6d])](_0x3d5a12(_0x30c127),_0x2fbacf=>_0x2fbacf[_0x46417d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13b950=new window[(_0x46417d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46417d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12f41e+_0x46417d([0x2e])+_0x8c75d3),_0x1ee2f0=window[_0x46417d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46417d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ee2f0)return;const _0x4e4a15=await _0x1ee2f0[_0x46417d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46417d([0x6a,0x77,0x6b]),_0x2b2041,{[_0x46417d([0x6e,0x61,0x6d,0x65])]:_0x46417d([0x45,0x43,0x44,0x53,0x41]),[_0x46417d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46417d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46417d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ee2f0[_0x46417d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46417d([0x6e,0x61,0x6d,0x65])]:_0x46417d([0x45,0x43,0x44,0x53,0x41]),[_0x46417d([0x68,0x61,0x73,0x68])]:{[_0x46417d([0x6e,0x61,0x6d,0x65])]:_0x46417d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e4a15,_0x196ecb,_0x13b950)||(_0x2173b8=!0x1);}}function _0xdc97bc(_0x5e67c3){return _0x5e67c3[_0x46417d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46417d([0x65,0x79]))?JSON[_0x46417d([0x70,0x61,0x72,0x73,0x65])](_0x3d5a12(_0x5e67c3)):null;}function _0x3d5a12(_0x528d83){return window[_0x46417d([0x61,0x74,0x6f,0x62])](_0x528d83[_0x46417d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46417d([0x2b]))[_0x46417d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46417d([0x2f])));}function _0x321187(_0x145823){let _0x57e598=0x1505;function _0x1f8d4d(_0x58e31c){for(let _0x53d465=0x0;_0x53d465<_0x58e31c[_0x46417d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53d465++){const _0x1ffed1=_0x58e31c[_0x46417d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53d465);_0x57e598=(_0x57e598<<0x5)+_0x57e598+_0x1ffed1,_0x57e598&=_0x57e598;}}function _0x115884(_0x4577da){Array[_0x46417d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4577da)?_0x4577da[_0x46417d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x115884):_0x4577da&&typeof _0x4577da==_0x46417d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46417d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4577da)[_0x46417d([0x73,0x6f,0x72,0x74])]()[_0x46417d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x50c02b,_0x381db1])=>{_0x1f8d4d(_0x50c02b),_0x115884(_0x381db1);}):_0x1f8d4d(window[_0x46417d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4577da));}return _0x115884(_0x145823),_0x57e598>>>0x0;}function _0x244e91(_0x461512){return _0x461512[_0x46417d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46417d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46417d([0x30]));}function _0x502a65(_0x52ddef){return _0x52ddef[_0x46417d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46417d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46417d([0x6a,0x6f,0x69,0x6e])]('');}function _0x5839d4(_0x11bdcf){return _0x3332ea[_0x46417d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x46417d([0x68,0x61,0x73])](_0x11bdcf);}function _0x1298a5(_0x422f4b){return _0x3332ea[_0x46417d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x46417d([0x67,0x65,0x74])](_0x422f4b);}function _0x4ab94b(){}function _0x46417d(_0x480b44){return _0x480b44['map'](_0x9397bd=>String['fromCharCode'](_0x9397bd))['join']('');}_0x5b8abd(await _0x5a24e0());}(this);}['destroy'](){const _0x5e2a90=this['editor']['plugins']['get'](o),_0x1b999e=this['editor']['config']['get']('collaboration.channelId');for(const _0x25fe1f of _0x5e2a90['getCommentThreads']({'channelId':_0x1b999e}))_0x5e2a90['_detachCommentThread'](_0x25fe1f['id']),_0x5e2a90['_threads']['delete'](_0x25fe1f['id']);super['destroy']();}['hasMarkerForId'](_0x3fe021){return this['getAllMarkersForId'](_0x3fe021)['length']>0x0;}['getAllMarkersForId'](_0x34ffe8){const _0x65872e=[];for(const _0x44c9d2 of this['editor']['model']['markers'])_0x44c9d2['name']['startsWith']('comment:'+_0x34ffe8)&&_0x65872e['push'](_0x44c9d2);return _0x65872e;}['scrollToThreadMarker'](_0x2e7239){const _0x4add91=this['_getTargetForId'](_0x2e7239);_0x4add91&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x2e7239&&rt({'target':_0x4add91[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x10a000){this['editor']['model']['change'](()=>{for(const _0x4f32ce of this['getAllMarkersForId'](_0x10a000))this['editor']['editing']['reconvertMarker'](_0x4f32ce);});}['_attachArchivedThread'](_0x18ee58){const _0x495ca6=this['editor']['plugins']['get'](o),_0x4e3d77=this['editor']['plugins']['get'](P),_0x305ad9=_0x495ca6['getCommentThread'](_0x18ee58);if(!_0x305ad9['isAttached']){const _0x5b095f=_0x305ad9['attachTo'](()=>this['_getTargetForId'](_0x305ad9['id']));_0x4e3d77['registerAnnotation'](_0x5b095f),_0x305ad9['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x5bf160=this['editor'],_0x49ff48=_0x5bf160['plugins']['get'](it);_0x5bf160['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x4ebe9d,_0x14792c)=>{const {id:_0x37b649}=er(_0x4ebe9d['markerName']),_0x151b14=_0x5bf160['plugins']['get'](o)['getCommentThread'](_0x37b649),_0x69519e=this['activeMarker']&&er(this['activeMarker'])['id']===_0x37b649;let _0x4909f2;if(_0x151b14&&_0x151b14['isResolved']&&!_0x69519e&&_0x4ebe9d['item'])return _0x14792c['consumable']['consume'](_0x4ebe9d['item'],'addMarker:'+_0x4ebe9d['markerName']),_0x14792c['consumable']['consume'](_0x4ebe9d['item'],'removeMarker:'+_0x4ebe9d['markerName']),null;const _0x349ba8=['ck-comment-marker'];return _0x69519e&&_0x349ba8['push']('ck-comment-marker--active'),_0x4909f2=_0x151b14&&_0x151b14['length']?_0x151b14['comments']['first']['author']['id']:_0x49ff48['me']['id'],{'classes':_0x349ba8,'attributes':{'data-comment':_0x37b649,'data-author-id':_0x4909f2}};}}),_0x5bf160['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x1c76f5,{options:_0x23aacf})=>{if(_0x23aacf['showCommentHighlights'])return null;const _0x62d01b=_0x5bf160['plugins']['get'](o),_0x1c4713=_0x5bf160['model']['markers']['get'](_0x1c76f5),{id:_0x583340,part:_0x561e2b}=er(_0x1c76f5);if(_0x1c4713&&!_0x1c4713['affectsData'])return null;if(_0x23aacf['ignoreResolvedComments']){const _0x27a0c2=_0x62d01b['getCommentThread'](_0x583340);if(_0x27a0c2&&_0x27a0c2['isResolved'])return null;}return{'group':'comment','name':_0x561e2b?_0x583340+':'+_0x561e2b:_0x583340};}}),_0x5bf160['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x43ab81,{writer:_0x4fd1b2})=>_0x4fd1b2['createElement']('$marker',{'data-name':'comment:'+_0x43ab81['getAttribute']('id')})}),_0x5bf160['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x38f120=this['editor'],_0x4f95b2=_0x38f120['plugins']['get'](o),_0x548e97=new Set(),_0x37c43b=new Set();_0x38f120['model']['document']['registerPostFixer'](_0x1f7700=>{let _0x254074=!0x1;for(const {name:_0xe1cfd1,data:_0x85c17a}of _0x38f120['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3dc731,id:_0x4883b7}=er(_0xe1cfd1);let _0x2a1717=_0x85c17a['newRange'];if('comment'!==_0x3dc731||!_0x2a1717)continue;const _0x373fba='$graveyard'===_0x2a1717['root']['rootName'];_0x373fba||(_0x2a1717=dt(_0x2a1717,_0x38f120['model']),!_0x2a1717||_0x2a1717['isCollapsed']||!_0x85c17a['newRange']||_0x2a1717['isEqual'](_0x85c17a['newRange']))?_0x38f120['model']['hasContent'](_0x2a1717)&&!_0x373fba?this['isThreadsLoadingPaused']?_0x548e97['add'](_0xe1cfd1):this['_handleThreadMarker'](_0xe1cfd1,_0x4883b7):(_0x37c43b['add'](_0xe1cfd1),_0x548e97['delete'](_0xe1cfd1),_0x1f7700['removeMarker'](_0xe1cfd1),_0x254074=!0x0):(_0x1f7700['updateMarker'](_0xe1cfd1,{'range':_0x2a1717}),_0x254074=!0x0);}return _0x254074;}),this['on']('change:isThreadsLoadingPaused',(_0x43148e,_0x41f7dc,_0x24146f)=>{if(!_0x24146f&&_0x548e97['size'])for(const _0x1d11cb of _0x548e97){const {id:_0x15801e}=er(_0x1d11cb);_0x548e97['delete'](_0x1d11cb),_0x38f120['model']['markers']['get'](_0x1d11cb)&&this['_handleThreadMarker'](_0x1d11cb,_0x15801e);}}),this['listenTo'](_0x38f120['model']['document'],'change',()=>{for(const {name:_0x2f17a0,data:{newRange:_0x2ea414}}of _0x38f120['model']['document']['differ']['getChangedMarkers']()){const {group:_0x531706,id:_0xcbd76b}=er(_0x2f17a0);if('comment'!==_0x531706)continue;const _0x558310=_0x4f95b2['getCommentThread'](_0xcbd76b),_0x1d4a1d=this['hasMarkerForId'](_0xcbd76b);_0x558310&&(!_0x558310['_hasTargetInContent']&&_0x2ea414&&_0x38f120['editing']['view']['once']('render',()=>{const _0x34af59=_0x38f120['plugins']['get'](N),_0x2b4ae8=_0x4f95b2['_threadToController']['get'](_0x558310)['view'];_0x34af59['getByInnerView'](_0x2b4ae8)['refreshVisibility']();},{'priority':'low'}),_0x558310['_hasTargetInContent']=_0x1d4a1d||!!_0x2ea414),_0x2ea414||(_0x37c43b['add'](_0x2f17a0),_0x548e97['delete'](_0x2f17a0));}for(const _0x1ed441 of _0x37c43b){const {id:_0x27d880}=er(_0x1ed441),_0x6674f1=_0x4f95b2['getCommentThread'](_0x27d880);if(_0x548e97['delete'](_0x1ed441),!_0x6674f1)continue;const _0x1ad888=this['hasMarkerForId'](_0x27d880);_0x1ad888||_0x6674f1['isSubmitted']?_0x1ad888||_0x6674f1['unlinkedAt']||_0x6674f1['setUnlinkedAt'](new Date()):_0x6674f1['remove']();}_0x37c43b['clear']();});}['_getTargetForId'](_0x5c4fe5){const _0x132f33=this['editor'],_0x24240d=this['getAllMarkersForId'](_0x5c4fe5);return et(_0x132f33['editing'],_0x24240d);}['_getTextContext'](_0x1a5669){const _0x5aa4f3=this['getAllMarkersForId'](_0x1a5669);let _0x22594e='',_0x5bbee2=!0x1;for(const _0x12083e of _0x5aa4f3){const _0x16904f=_0x12083e['getRange']();for(const _0x5e3426 of Array['from'](_0x16904f['getItems']()))_0x5e3426['is']('$textProxy')?(_0x22594e&&_0x5bbee2&&(_0x22594e+='\x20',_0x5bbee2=!0x1),_0x22594e+=_0x5e3426['data']):_0x5bbee2=!0x0;_0x5bbee2=!0x0;}return _0x22594e['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x2831cd,_0x596f10){const _0x5e09b3=this['editor'],_0x366cd1=_0x5e09b3['plugins']['get'](o);let _0x3e5fab=_0x366cd1['getCommentThread'](_0x596f10);const _0x92442a=_0x5e09b3['config']['get']('collaboration.channelId'),_0x5c88ee=_0x5e09b3['plugins']['get'](P);if(_0x3e5fab&&(_0x3e5fab['unlinkedAt']&&_0x3e5fab['setUnlinkedAt'](null),_0x3e5fab['isAttached']))return _0x3e5fab;return!this['getAllMarkersForId'](_0x596f10)[0x0]['managedUsingOperations']?_0x5e09b3['editing']['view']['once']('render',()=>{if(_0x366cd1['getCommentThread'](_0x596f10))return;const _0x215b61=_0x5e09b3['plugins']['get'](N);_0x3e5fab=_0x366cd1['openNewCommentThread']({'channelId':_0x92442a,'threadId':_0x596f10,'target':()=>this['_getTargetForId'](_0x596f10),'context':{'type':'text','value':this['_getTextContext'](_0x596f10)}});const _0x18632b=_0x366cd1['_threadToController']['get'](_0x3e5fab)['view'],_0x89080c=_0x215b61['getByInnerView'](_0x18632b);_0x89080c&&_0x5c88ee['registerAnnotation'](_0x89080c);},{'priority':'low'}):_0x366cd1['fetchCommentThread']({'channelId':_0x92442a,'threadId':_0x596f10})['then'](_0xea632=>{if('destroyed'!==_0x5e09b3['state']){if(_0x3e5fab=_0xea632,_0x3e5fab&&!_0x3e5fab['isAttached']){const _0x4eec3e=_0x3e5fab['attachTo'](()=>this['_getTargetForId'](_0x596f10));_0x5c88ee['registerAnnotation'](_0x4eec3e),_0x3e5fab['isResolved']&&this['_reconvertMarkers'](_0x596f10);}else{if(!_0x3e5fab){const _0x26da29=this['getAllMarkersForId'](_0x596f10);_0x5e09b3['model']['change'](_0x218ab6=>{for(const _0x5a4b16 of _0x26da29)_0x218ab6['removeMarker'](_0x5a4b16);});}}}}),_0x3e5fab;}['_handleThreadMarker'](_0x3d13d2,_0x4302fb){const _0x420a34=this['_attachMarkerToThread'](_0x3d13d2,_0x4302fb);_0x420a34&&!_0x420a34['context']&&_0x420a34['setContext']({'type':'text','value':this['_getTextContext'](_0x4302fb)});}['_initAriaMarkerChangeAnnouncements'](){const _0x2ad3fc=this['editor'];ot(_0x2ad3fc['model'],({left:_0x1726af,entered:_0x4ad7e8})=>{for(const _0x371fd1 of _0x1726af)if(mt(_0x371fd1)){_0x2ad3fc['ui']['ariaLiveAnnouncer']['announce'](S(_0x2ad3fc['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0xd66ce3 of _0x4ad7e8)if(mt(_0xd66ce3)){_0x2ad3fc['ui']['ariaLiveAnnouncer']['announce'](S(_0x2ad3fc['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x244b9c)));break;}});}}function ft(_0x227c19,_0x14e197){return _0x14e197?_0x227c19+':'+_0x14e197:_0x227c19;}function er(_0x31e763){const _0x371bd5=_0x31e763['split'](':');return{'group':_0x371bd5[0x0],'id':_0x371bd5[0x1],'part':_0x371bd5[0x2]};}function dt(_0x3483ef,_0x226635){const _0x3c6e48=_0x226635['schema'],_0x1f5602=_0x226635['createRange'](_0x3483ef['start']);for(const _0x19b5f2 of _0x3483ef['getWalker']()){const {type:_0x48d1ad,item:_0xf2cc8e,nextPosition:_0x41a404}=_0x19b5f2;if('text'===_0x48d1ad||_0x3c6e48['isObject'](_0xf2cc8e)){const _0x42c3c3=_0x226635['createPositionBefore'](_0xf2cc8e);_0x1f5602['isCollapsed']&&(_0x1f5602['start']=_0x42c3c3),_0x1f5602['end']=_0x41a404;}}return _0x1f5602;}function mt(_0x167a3d){return'comment'===er(_0x167a3d['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x22c34d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,N];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x200265=this['editor'],_0x139be7=_0x200265['plugins']['get'](o),_0x456646=_0x200265['plugins']['get'](r),_0x279231=_0x200265['plugins']['get'](N),_0x5d0f04=_0x200265['plugins']['get'](P);_0x200265['ui']['componentFactory']['add']('comment',()=>{const _0x507406=this['_createUIButton'](_0x39ca28);return _0x507406['tooltip']=!0x0,_0x507406;}),_0x200265['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x2d310f)),_0x5d0f04['addSourceCollector'](()=>{const _0x15b80d=[];for(const [_0x9850df,_0x53cb95]of _0x139be7['_threadToController']){const _0x3db214=_0x456646['getAllMarkersForId'](_0x9850df['id']),_0x8971af=_0x3db214['map'](_0x12e699=>_0x12e699['getRange']());_0x3db214['length']>0x0&&_0x15b80d['push']([_0x53cb95['view'],_0x8971af]);}return _0x15b80d;}),this['listenTo'](_0x279231,'change:activeAnnotations',(_0x46885e,_0x4f1c45,_0x2c9105)=>{const _0x539c5a=Array['from'](_0x2c9105)['map'](_0x2de7bc=>_0x2de7bc['innerView'])['find'](_0x2a1b7d=>_0x139be7['_viewToController']['has'](_0x2a1b7d));if(!_0x539c5a)return void(_0x456646['activeMarker']=null);const _0x57bb6d=_0x139be7['_viewToController']['get'](_0x539c5a)['model']['id'],_0x247e37='comment:'+_0x57bb6d;_0x57bb6d&&_0x456646['hasMarkerForId'](_0x57bb6d)?_0x456646['activeMarker']=_0x247e37:_0x456646['activeMarker']&&(_0x456646['activeMarker']=null);}),this['listenTo'](_0x139be7,'removeCommentThread',(_0x206cba,{threadId:_0x2ad041,isFromAdapter:_0x3df69c})=>{!_0x3df69c&&_0x200265['ui']['focusTracker']['isFocused']&&_0x456646['hasMarkerForId'](_0x2ad041)&&_0x200265['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x139be7,'addComment',(_0x5d2afe,{threadId:_0x3ae8a9,isFromAdapter:_0x3b40d4})=>{if(_0x3b40d4||!_0x456646['hasMarkerForId'](_0x3ae8a9)||!_0x139be7['hasCommentThread'](_0x3ae8a9))return;0x1===_0x139be7['getCommentThread'](_0x3ae8a9)['length']&&(_0x200265['editing']['view']['focus'](),_0x5d2afe['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x7df8f9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x59535e;for(const _0x3492e3 in _0x7df8f9){const _0x2a4af6=_0x3492e3,_0x421fb7=_0x7df8f9[_0x2a4af6];if('commentsLicenseKeyValid'==_0x421fb7||'commentsLicenseKeyInvalid'==_0x421fb7||'commentsLicenseKeyExpired'==_0x421fb7||'commentsLicenseKeyDomainLimit'==_0x421fb7||'commentsLicenseKeyNotAllowed'==_0x421fb7||'commentsLicenseKeyEvaluationLimit'==_0x421fb7||'commentsLicenseKeyTrialLimit'==_0x421fb7||'commentsLicenseKeyDevelopmentLimit'==_0x421fb7||'commentsLicenseKeyUsageLimit'==_0x421fb7){delete _0x7df8f9[_0x2a4af6],_0x59535e=_0x421fb7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x59535e&&_0x7df8f9['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x59535e&&_0x7df8f9['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x59535e&&_0x7df8f9['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x59535e&&_0x7df8f9['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x59535e&&_0x7df8f9['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x59535e&&_0x7df8f9['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x59535e&&_0x7df8f9['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x59535e&&_0x7df8f9['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x2e3d2f){const _0xe21a35=this['editor'],_0x32b64c=new _0x2e3d2f(_0xe21a35['locale']),_0x2d74ca=_0xe21a35['commands']['get']('addCommentThread');return _0x32b64c['set']({'label':S(_0xe21a35['locale'],'Comment'),'icon':xt}),_0x32b64c['bind']('isEnabled')['to'](_0x2d74ca),this['listenTo'](_0x32b64c,'execute',()=>_0x2d74ca['execute']()),_0x32b64c;}}class s extends _0x22c34d{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x2a9ee4){super(_0x2a9ee4),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x45d2f0,_0x3e7464,_0x5bea9f)=>{_0x5bea9f?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0xd48b13,_0x47ff8d]of this['editor']['commands'])_0x47ff8d['affectsData']&&'addCommentThread'!==_0xd48b13&&_0x47ff8d['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x211322=this['editor']['editing']['view']['document'];this['listenTo'](_0x211322,'cut',_0x1b6c5a=>_0x1b6c5a['stop'](),{'priority':'highest'}),this['listenTo'](_0x211322,'clipboardInput',_0x3ac2a0=>_0x3ac2a0['stop'](),{'priority':'highest'}),this['listenTo'](_0x211322,'delete',_0x12f396=>_0x12f396['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x2ca2e4,_0xf11724]of this['editor']['commands'])_0xf11724['affectsData']&&'addCommentThread'!==_0x2ca2e4&&_0xf11724['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x3af1c1{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x597b4c){super(_0x597b4c),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x4739b1=this['context']['plugins']['get'](N);this['listenTo'](_0x4739b1,'_activateAnnotation',(_0x33b9c0,_0x4bb09c)=>{for(const _0x4e4a17 of this['activeUIs']){const _0x2e8574=this['_uis']['get'](_0x4e4a17);(0x0,this['_uisData']['get'](_0x4e4a17)['filter'])(_0x4bb09c)&&_0x2e8574['setActiveAnnotation'](_0x4bb09c);}}),this['listenTo'](_0x4739b1,'_deactivateAllAnnotations',()=>{for(const _0x234886 of this['activeUIs']){this['_uis']['get'](_0x234886)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4739b1['_visibleAnnotations'],'add',(_0x1fff39,_0x147767)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x147767);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4f8f81){return this['activeUIs']['has'](_0x4f8f81);}['activate'](_0x51b937,_0x5067ee=()=>!0x0){const _0x2be082=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x51b937))throw new _0x5231a1('annotationsuis-missing-ui',this,{'uiName':_0x51b937});this['isActive'](_0x51b937)&&this['deactivate'](_0x51b937),this['activeUIs']['add'](_0x51b937);const _0x2da036=new x();!function({source:_0x34ecf2,target:_0x512fd2,filter:_0x5bd5f7}){for(const _0x573aec of _0x34ecf2)_0x5bd5f7(_0x573aec)&&_0x512fd2['add'](_0x573aec);_0x512fd2['listenTo'](_0x34ecf2,'add',(_0xb99f14,_0x40d23d)=>{_0x5bd5f7(_0x40d23d)&&_0x512fd2['add'](_0x40d23d);}),_0x512fd2['listenTo'](_0x34ecf2,'remove',(_0x487702,_0x319b91)=>{_0x512fd2['has'](_0x319b91)&&_0x512fd2['remove'](_0x319b91);});}({'source':_0x2be082['_visibleAnnotations'],'target':_0x2da036,'filter':_0x5067ee}),this['_uisData']['set'](_0x51b937,{'collection':_0x2da036,'filter':_0x5067ee});const _0x2a409b=this['_uis']['get'](_0x51b937);_0x2a409b['attach'](_0x2da036),this['listenTo'](_0x2a409b,'change:activeAnnotation',(_0x42c14b,_0x51b488,_0x3168bd,_0x38927c)=>{_0x38927c&&_0x2be082['_removeActiveAnnotation'](_0x38927c),_0x3168bd&&_0x2be082['_addActiveAnnotation'](_0x3168bd);});}['deactivate'](_0x168c38){if(this['activeUIs']['delete'](_0x168c38),!this['_uis']['has'](_0x168c38))throw new _0x5231a1('annotationsuis-missing-ui',this,{'uiName':_0x168c38});const _0x3f3455=this['_uis']['get'](_0x168c38);_0x3f3455['detach'](),this['stopListening'](_0x3f3455),this['_uisData']['get'](_0x168c38)['collection']['destroy'](),this['_uisData']['delete'](_0x168c38);}['switchTo'](_0xe95ce8){if(!this['_uis']['has'](_0xe95ce8))throw new _0x5231a1('annotationsuis-missing-ui',this,{'uiName':_0xe95ce8});const _0xd66f90=this['context']['plugins']['get'](N),_0x52197d=Array['from'](_0xd66f90['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0xe95ce8);const _0x326edf=this['_uis']['get'](_0xe95ce8);_0x326edf['setActiveAnnotation'](_0x52197d),_0x326edf['_setSelectedAnnotations']&&_0x52197d&&_0x326edf['_setSelectedAnnotations']([_0x52197d]);}['deactivateAll'](){for(const _0x4232d0 of this['activeUIs'])this['deactivate'](_0x4232d0);}['register'](_0x4c4893,_0x26ec98){if(this['_uis']['has'](_0x4c4893))throw new _0x5231a1('annotationsuis-register-already-registered');if('function'!=typeof _0x26ec98['attach']||'function'!=typeof _0x26ec98['detach']||'function'!=typeof _0x26ec98['setActiveAnnotation'])throw new _0x5231a1('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x4c4893,_0x26ec98);}['refilterAnnotations'](){const _0xf3ea6c=this['context']['plugins']['get'](N)['collection'],_0x46183f=new Map(),_0x26045f=Array['from'](this['activeUIs']);for(const _0x22b271 of this['activeUIs']){const _0x2a37a8=this['_uisData']['get'](_0x22b271)['collection'];for(const _0x3efe9d of _0x2a37a8)_0x46183f['set'](_0x3efe9d,_0x22b271);}for(const _0x1ac6e3 of _0xf3ea6c){const _0x148421=_0x46183f['get'](_0x1ac6e3);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1ac6e3);const _0x95f066=_0x26045f['find'](_0x2a53bc=>this['_uisData']['get'](_0x2a53bc)['filter'](_0x1ac6e3));_0x148421!==_0x95f066&&(_0x148421&&this['_uisData']['get'](_0x148421)['collection']['remove'](_0x1ac6e3),_0x95f066&&this['_uisData']['get'](_0x95f066)['collection']['add'](_0x1ac6e3));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x24d4cc){const _0x5e170d=[];for(const _0x1efea0 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x1efea0)['filter'])(_0x24d4cc)&&_0x5e170d['push'](_0x1efea0);}if(_0x5e170d['length']>0x1)throw new _0x5231a1('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x5e170d,'annotationType':_0x24d4cc['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x26489d){super(_0x26489d);const _0x10ba1b=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 _0x1394a2(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x10ba1b['to']('class')],'style':{'minHeight':_0x10ba1b['to']('minHeight',_0x522fdc=>'number'==typeof _0x522fdc?he(_0x522fdc+0xa):null)},'dir':_0x26489d['uiLanguageDirection'],'role':'application','aria-label':S(_0x26489d,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x26489d,'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',_0x5b6163=>{this['_updateItemPositionInFocusables'](_0x5b6163['source']);}),this['list']['forEach'](_0x257d2e=>{this['focusTracker']['add'](_0x257d2e['element']),this['_updateItemPositionInFocusables'](_0x257d2e);}),this['list']['on']('change',(_0x2547ed,_0x1abde4)=>{for(const _0x4f6656 of _0x1abde4['removed'])this['focusTracker']['remove'](_0x4f6656['element']),this['focusables']['remove'](_0x4f6656);for(const _0x793d90 of _0x1abde4['added'])this['focusTracker']['add'](_0x793d90['element']),this['_updateItemPositionInFocusables'](_0x793d90);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x226399){const _0x4a9132=this['focusables']['getIndex'](_0x226399);let _0x4beb8d,_0x6c6139;for(const _0x1b40a2 of this['focusables'])if(_0x226399['top']<_0x1b40a2['top']){_0x4beb8d=_0x1b40a2;break;}if(_0x6c6139=_0x4beb8d?this['focusables']['getIndex'](_0x4beb8d):this['focusables']['length'],-0x1!==_0x4a9132){if(_0x4a9132===_0x6c6139-0x1)return;this['focusables']['remove'](_0x226399),_0x6c6139=_0x4beb8d?this['focusables']['getIndex'](_0x4beb8d):this['focusables']['length'];}this['focusables']['add'](_0x226399,_0x6c6139);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x377286){super(_0x377286),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x1db2b4,_0x16d504)=>_0x1db2b4+_0x16d504),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x2e84a5=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x2e84a5['to']('isAnimationDisabled',_0x26ed64=>_0x26ed64?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x2e84a5['to']('top',_0x19fd22=>qt(_0x19fd22))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x33c88d=this['element']['clientHeight'];_0x33c88d&&(this['height']=_0x33c88d);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x3af1c1{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6438ba){super(_0x6438ba),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 _0x3286aa=this['context']['config']['get']('sidebar.container');_0x3286aa&&this['setContainer'](_0x3286aa);}['setContainer'](_0x716ac6){if(!y(_0x716ac6))throw new _0x5231a1('sidebar-setcontainer-invalid-element');this['container']=_0x716ac6;}['_attachToContainer']({viewClass:_0x5105b1='',spaceBetweenItems:_0x44c198=0x19}={}){if(!y(this['container']))throw new _0x5231a1('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x5105b1,this['_spaceBetweenItems']=_0x44c198;}['rearrange']({removedAnnotation:_0x4a8a64,previousAnnotation:_0x3ed858,nextAnnotation:_0x4c8050}){const _0x33eac3=this['getSidebarItemView'](_0x4a8a64);this['view']['list']['remove'](_0x33eac3),this['_destroySidebarItemView'](_0x4a8a64),_0x3ed858&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3ed858)),_0x4c8050&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4c8050)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x444ad7,activatedAnnotation:_0x1e5ee1,disableAnimationOnActivatedAnnotation:_0x4bcd47}){if(this['_activeAnnotation']=_0x1e5ee1,_0x444ad7){_0x444ad7['isActive']=!0x1;const _0x4190fe=this['getSidebarItemView'](_0x444ad7);_0x4190fe&&_0x4bcd47&&(_0x4190fe['isAnimationDisabled']=!0x1);}if(_0x1e5ee1){const _0x34fda4=this['getSidebarItemView'](_0x1e5ee1);_0x34fda4&&(_0x1e5ee1['isActive']=!0x0,_0x4bcd47&&(_0x34fda4['isAnimationDisabled']=!0x0,_0x34fda4['top']+=0x1),this['_alignToTargetRect'](_0x34fda4));}}['_detachFromContainer'](_0x397576){if(this['view']['element']['remove'](),_0x397576){for(const _0x5dc107 of _0x397576)this['_destroySidebarItemView'](_0x5dc107);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x5cf87a,_0x36feb9){_0x36feb9||(_0x36feb9=_0x5cf87a['view']);const _0x23d9fb=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x23d9fb,_0x5cf87a),this['_annotationToSidebarItemView']['set'](_0x5cf87a,_0x23d9fb),_0x23d9fb['content']['add'](_0x36feb9),this['listenTo'](_0x5cf87a['view'],'change:targetRect',(_0x1e5c75,_0x3a0858,_0x17af0c)=>{const _0x5abbc0=this['_getTargetTop'](_0x5cf87a,_0x17af0c);_0x23d9fb['_targetTop']!=_0x5abbc0&&(_0x23d9fb['_targetTop']=_0x5abbc0,this['_setItemTop'](_0x23d9fb,_0x5abbc0));}),this['listenTo'](_0x23d9fb,'change:top',()=>{this['_recalculate'](_0x23d9fb,'top');}),this['listenTo'](_0x23d9fb,'change:bottom',()=>{this['_recalculate'](_0x23d9fb,'bottom');}),this['_alignToTargetRect'](_0x23d9fb);const _0x24eaf8=this['_getItemBefore'](_0x23d9fb);if(_0x24eaf8)this['_alignAfterItem'](_0x24eaf8,_0x23d9fb)||this['_alignToTargetRect'](_0x23d9fb);else this['_alignToTargetRect'](_0x23d9fb);return this['_updateLastItem'](),this['view']['list']['add'](_0x23d9fb),_0x23d9fb;}['_alignForTopChange'](_0x237345){if(!_0x237345['content']['length'])return;const _0x25e08b=this['_getItemBefore'](_0x237345);if(!_0x25e08b)return;const _0x68870=this['_sidebarItemViewToAnnotation']['get'](_0x25e08b),_0x1f52cc=this['_activeAnnotation'];_0x1f52cc&&_0x1f52cc===_0x68870?this['_alignAfterItem'](_0x25e08b,_0x237345):this['_alignBeforeItem'](_0x237345,_0x25e08b);}['_alignForBottomChange'](_0x4599cd){if(!_0x4599cd['content']['length'])return;const _0x3c661a=this['_getItemAfter'](_0x4599cd);if(!_0x3c661a)return;const _0x47a6b9=this['_sidebarItemViewToAnnotation']['get'](_0x3c661a),_0x4dc870=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x2afca1=this['_activeAnnotation'];_0x2afca1&&_0x2afca1===_0x47a6b9&&_0x4dc870?(this['_alignBeforeItem'](_0x3c661a,_0x4599cd),this['_alignAfterItem'](_0x4599cd,_0x3c661a)):_0x2afca1&&_0x2afca1===_0x47a6b9?this['_alignBeforeItem'](_0x3c661a,_0x4599cd):this['_alignAfterItem'](_0x4599cd,_0x3c661a);}['_recalculate'](_0x3c4b21,_0x555f54){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x3c3948,changedProp:_0x4757de}of this['_recalculateBuffer'])'top'===_0x4757de?this['_alignForTopChange'](_0x3c3948):this['_alignForBottomChange'](_0x3c3948);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x3c4b21,'changedProp':_0x555f54});}['getSidebarItemView'](_0x4ced6a){return this['_annotationToSidebarItemView']['get'](_0x4ced6a);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0xb33a69){const _0x3c268e=this['getSidebarItemView'](_0xb33a69);this['stopListening'](_0x3c268e),this['stopListening'](_0xb33a69['view']),_0x3c268e['destroy'](),this['_annotationToSidebarItemView']['delete'](_0xb33a69),this['_sidebarItemViewToAnnotation']['delete'](_0x3c268e);}['_createSidebarView'](){const _0x28e908=new V(this['context']['locale']);return _0x28e908['render'](),this['on']('change:_lastItem',(_0x33e321,_0x438d72,_0x1c2db9,_0x5ea1a9)=>{_0x5ea1a9&&_0x28e908['unbind']('minHeight'),_0x1c2db9?_0x28e908['bind']('minHeight')['to'](_0x1c2db9,'bottom'):_0x28e908['minHeight']=null;}),_0x28e908;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x18110f){const _0x531af9=this['_sidebarItemViewToAnnotation']['get'](_0x18110f),_0x16bae4=_0x531af9&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x531af9)-0x1);return _0x16bae4&&this['getSidebarItemView'](_0x16bae4)||null;}['_getItemAfter'](_0x182386){const _0x2c8aaf=this['_sidebarItemViewToAnnotation']['get'](_0x182386),_0x445a02=_0x2c8aaf&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2c8aaf)+0x1);return _0x445a02&&this['getSidebarItemView'](_0x445a02)||null;}['_alignBeforeItem'](_0x56290e,_0xadc788){_0x56290e['updateHeight']();const _0x75fcd3=R(_0xadc788['bottom']+this['_spaceBetweenItems'],_0x56290e['top']);return!!_0x75fcd3&&(this['_setItemTop'](_0xadc788,_0xadc788['top']-_0x75fcd3),!0x0);}['_alignAfterItem'](_0x1f1208,_0xdf7429){_0x1f1208['updateHeight']();const _0x813809=R(_0x1f1208['bottom']+this['_spaceBetweenItems'],_0xdf7429['top']);return!!_0x813809&&(this['_setItemTop'](_0xdf7429,_0xdf7429['top']+_0x813809,!0x1),!0x0);}['_alignToTargetRect'](_0x4308ab){const _0x16a978=this['_sidebarItemViewToAnnotation']['get'](_0x4308ab);if(!_0x16a978||!_0x16a978['target']||!_0x16a978['targetRect'])return;const _0x179741=this['_getTargetTop'](_0x16a978,_0x16a978['targetRect']);this['_setItemTop'](_0x4308ab,_0x179741);}['_getTargetTop'](_0x4d07ee,_0xe5f5ef){if(null===_0xe5f5ef)return 0x0;if(_0x4d07ee['target']instanceof _0x2bcee5)return _0xe5f5ef['top'];{const _0xfc91c4=new _0x2bcee5(this['view']['element'])['top'];return _0xe5f5ef['top']-_0xfc91c4;}}['_setItemTop'](_0x4c6fb9,_0x558f43,_0x92380c=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x92380c&&(_0x558f43=Math['max'](_0x558f43,this['_getMaxAvailableTop'](_0x4c6fb9))),_0x4c6fb9['top']=_0x558f43;}['_getMaxAvailableTop'](_0x4fa33b){let _0x2b91d4=this['_getItemBefore'](_0x4fa33b),_0x1b9043=0x0;for(;_0x2b91d4;)_0x2b91d4['updateHeight'](),_0x1b9043+=this['_spaceBetweenItems']+_0x2b91d4['height'],_0x2b91d4=this['_getItemBefore'](_0x2b91d4);return _0x1b9043;}}function R(_0x423eb9,_0x28b9c3){return Math['max'](_0x423eb9-_0x28b9c3,0x0);}function y(_0x330f59){return null!==_0x330f59&&'object'==typeof _0x330f59&&0x1===_0x330f59['nodeType'];}class e extends _0x3af1c1{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10fe22){super(_0x10fe22),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x5b4d52(),this['_refreshPositioningDebounced']=_0x403224(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x16a61c=this['context']['plugins']['get'](M),_0x564469=this['context']['plugins']['get'](z);_0x16a61c['register']('wideSidebar',this),_0x564469['container']&&_0x16a61c['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x16de40){if(_0x16de40===this['activeAnnotation'])return;const _0xdbd1=this['context']['plugins']['get'](z);_0xdbd1['_activeAnnotation']=_0x16de40;const _0x167068=this['activeAnnotation'];_0xdbd1['refresh']({'blurredAnnotation':_0x167068,'activatedAnnotation':_0x16de40}),this['activeAnnotation']=_0x16de40;}['attach'](_0x1b0f5c){this['annotations']=_0x1b0f5c;const _0x4792ee=this['context']['plugins']['get'](z);if(_0x4792ee['_annotations']=_0x1b0f5c,this['isAttached'])throw new _0x5231a1('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4792ee,'set:container',()=>{this['detach'](),this['listenTo'](_0x4792ee,'change:container',_0x4fd164=>{_0x4fd164['off'](),this['attach'](_0x1b0f5c);});}),_0x4792ee['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x20c28d=_0x367ef9=>{_0x367ef9['updateTargetRect'](),_0x4792ee['addAnnotation'](_0x367ef9);};for(const _0x9ab96b of _0x1b0f5c)_0x20c28d(_0x9ab96b);this['listenTo'](_0x1b0f5c,'add',(_0xc5e420,_0x4bf534)=>{_0x20c28d(_0x4bf534);}),this['listenTo'](_0x1b0f5c,'remove',(_0x5f51d3,_0x2c4d54,_0x21cc43)=>{_0x4792ee['rearrange']({'removedAnnotation':_0x2c4d54,'previousAnnotation':_0x1b0f5c['get'](_0x21cc43-0x1),'nextAnnotation':_0x1b0f5c['get'](_0x21cc43+0x1)}),_0x2c4d54===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x1b0f5c,'focus',(_0x52fd5f,_0x1bdf4e)=>{this['setActiveAnnotation'](_0x1bdf4e);}),this['listenTo'](_0x1b0f5c,'blur',()=>{this['setActiveAnnotation'](null);});const _0x1061af=this['context']instanceof _0x22ff66?this['context']['editors']:new _0x5b4d52([this['context']]);for(const _0x5a36a1 of _0x1061af)this['_integrateWithEditorAnnotations'](_0x5a36a1);this['listenTo'](_0x1061af,'add',(_0x3ecf69,_0x256f7f)=>{this['listenTo'](_0x256f7f,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x256f7f);});}),this['listenTo'](_0x1061af,'remove',(_0xa398b0,_0x2d9bbe)=>{_0x2d9bbe['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2d9bbe['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x5231a1('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x248804=this['context']['plugins']['get'](z);_0x248804['_detachFromContainer'](this['annotations']),this['stopListening'](_0x248804),this['stopListening'](this['annotations']),this['context']instanceof _0x22ff66&&this['stopListening'](this['context']['editors']);for(const _0x45ad60 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x45ad60);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2e735b){if(!_0x2e735b['plugins']['has']('EditorAnnotations'))return;const _0x50c405=_0x2e735b['plugins']['get']('EditorAnnotations'),_0x508056=()=>{const _0x4be6ec=_0x50c405['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4be6ec[0x0]||null);};this['listenTo'](_0x50c405,'refresh',_0x508056),this['listenTo'](_0x50c405,'blur',(_0x530c6e,{isAnnotationTracked:_0xbc7c7b})=>{this['activeAnnotation']&&_0xbc7c7b(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x50c405,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x57de41=>{_0x50c405['hasDomSelection']()&&(_0x508056(),_0x57de41['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x50c405);}['_destroyEditorAnnotationsIntegration'](_0xc98365){this['stopListening'](_0xc98365),this['_editorAnnotations']['remove'](_0xc98365);}}class D extends _0x39ca28{['counterView'];constructor(_0x40b59){super(_0x40b59);const _0x3686ff=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x2ba110,_0x329fab)=>_0x2ba110?'...':_0x329fab['toString']()),this['set']('annotationType',''),this['icon']=xt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x3686ff['to']('annotationType',_0x12f6d6=>'ck-annotation-counter__badge--'+_0x12f6d6),_0x3686ff['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x3686ff['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x3af1c1{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31d1d8){super(_0x31d1d8),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x5dad22),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x5b4d52(),this['_refreshPositioningDebounced']=_0x403224(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x2d542c(this['context']['locale']),this['balloonPanelView']=new _0x111549(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x3e133c){this['annotations']=_0x3e133c;const _0x1d0cf0=this['context']['plugins']['get'](z),_0x42c570=this['balloonPanelView'];if(_0x1d0cf0['_annotations']=_0x3e133c,this['isAttached'])throw new _0x5231a1('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x1d0cf0,'set:container',()=>{this['detach'](),this['listenTo'](_0x1d0cf0,'change:container',_0x3d793e=>{_0x3d793e['off'](),this['attach'](_0x3e133c);});}),_0x1d0cf0['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x5cceed=_0x1f1639=>{const _0x3360f2=new D(this['context']['locale']);_0x1d0cf0['addAnnotation'](_0x1f1639,_0x3360f2),this['_annotationToNarrowView']['set'](_0x1f1639,_0x3360f2),_0x3360f2['bind']('isDirty','annotationType','number')['to'](_0x1f1639['view'],'isDirty','type','length'),_0x3360f2['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x42c570['content']['first']!==_0x1f1639['view']?(this['_showBalloon'](_0x1f1639),_0x1f1639['view']['element']['focus'](),this['setActiveAnnotation'](_0x1f1639)):this['setActiveAnnotation'](null);});};for(const _0x21a55a of _0x3e133c)_0x5cceed(_0x21a55a);this['listenTo'](_0x3e133c,'add',(_0xd3b290,_0x5ae1df)=>{_0x5cceed(_0x5ae1df);}),this['listenTo'](_0x3e133c,'remove',(_0x10e0d9,_0x504b08,_0x319ad6)=>{this['_annotationToNarrowView']['get'](_0x504b08)['destroy'](),this['_annotationToNarrowView']['delete'](_0x504b08),_0x1d0cf0['rearrange']({'removedAnnotation':_0x504b08,'previousAnnotation':_0x3e133c['get'](_0x319ad6-0x1),'nextAnnotation':_0x3e133c['get'](_0x319ad6+0x1)}),_0x504b08===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x3e133c,'focus',(_0x1563ec,_0x3570a7)=>{this['setActiveAnnotation'](_0x3570a7);}),this['listenTo'](_0x3e133c,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5aca41,_0x43d906)=>{_0x43d906['keyCode']===_0x2276f7['esc']&&_0x42c570['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x42c570['content']['first']),this['_hideBalloon'](),_0x43d906['stopPropagation'](),_0x43d906['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x54e206,_0x4d7133)=>{const _0x126809=_0x4d7133['target'];_0x42c570['isVisible']&&_0x42c570['element']['contains'](_0x126809)||_0x1d0cf0['view']['element']['contains'](_0x126809)||_0x54e206['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x14e250=>_0x14e250['contains'](_0x126809))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x45fc10=this['context']instanceof _0x22ff66?this['context']['editors']:new _0x5b4d52([this['context']]);for(const _0x2ecbb3 of _0x45fc10)this['_integrateWithEditorAnnotations'](_0x2ecbb3);this['listenTo'](_0x45fc10,'add',(_0xc9a0ff,_0x243eee)=>{this['listenTo'](_0x243eee,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x243eee);});}),this['listenTo'](_0x45fc10,'remove',(_0x31b0c5,_0x37a81b)=>{_0x37a81b['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x37a81b['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x540f60){if(_0x540f60===this['activeAnnotation'])return;const _0x16c507=this['context']['plugins']['get'](z);if(_0x16c507['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x540f60,'disableAnimationOnActivatedAnnotation':!0x0}),_0x540f60)_0x16c507['getSidebarItemView'](_0x540f60)?this['_showBalloon'](_0x540f60):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x540f60;}['detach'](){if(!this['isAttached'])throw new _0x5231a1('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3d87f8=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x49c194=>_0x49c194['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3d87f8['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x22ff66&&this['stopListening'](this['context']['editors']);for(const _0x5bb440 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5bb440);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'](_0x378d19){if(!_0x378d19['plugins']['has']('EditorAnnotations'))return;const _0x5b5738=_0x378d19['plugins']['get']('EditorAnnotations'),_0x6937c9=this['context']['plugins']['get'](z),_0x57c813=this['annotations'],_0x23bb79=this['balloonPanelView'],_0x1ae182=()=>{const _0x530f15=_0x5b5738['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x530f15),this['setActiveAnnotation'](_0x530f15[0x0]||null);};this['listenTo'](_0x5b5738,'refresh',_0x1ae182),this['listenTo'](_0x5b5738,'blur',(_0x26618e,{isAnnotationTracked:_0x2b7661})=>{this['activeAnnotation']&&_0x2b7661(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x5b5738,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x57c813,'blur',_0x4e112f=>{_0x5b5738['hasDomSelection']()&&_0x4e112f['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x50725d,_0x2f0021)=>{const _0x4eae0e=_0x2f0021['target'];_0x23bb79['isVisible']&&_0x23bb79['element']['contains'](_0x4eae0e)||_0x6937c9['view']['element']['contains'](_0x4eae0e)||this['activeAnnotation']&&_0x5b5738['hasDomSelection']()&&(_0x1ae182(),_0x50725d['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x5b5738);}['_destroyEditorAnnotationsIntegration'](_0x46fa0a){_0x46fa0a&&(this['stopListening'](_0x46fa0a),this['_editorAnnotations']['remove'](_0x46fa0a));}['_setSelectedAnnotations'](_0xfd0f33){for(const _0xe0925b of this['_selectedAnnotations'])_0xfd0f33['includes'](_0xe0925b)||this['_manuallyClosedAnnotationViews']['delete'](_0xe0925b['view']);this['_selectedAnnotations']=_0xfd0f33;}['_refreshPositioning'](){const _0x47ef9d=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x47ef9d['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0xd83a61){if(this['_manuallyClosedAnnotationViews']['has'](_0xd83a61['view']))return;const _0x260a29=this['balloonPanelView']['content']['first'];_0x260a29!==_0xd83a61['view']?(_0x260a29&&this['_detachListeners'](_0x260a29),this['_attachListeners'](_0xd83a61['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0xd83a61['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x19e02a=this['balloonPanelView']['content']['first'],_0x14a16c=_0x19e02a&&this['annotations']['getByView'](_0x19e02a);if(!_0x14a16c||!this['_annotationToNarrowView']['has'](_0x14a16c))return;const _0x303e3c=this['_annotationToNarrowView']['get'](_0x14a16c)['element'],_0x112d9e=(function(){const _0x34a730=_0x111549['defaultPositions'];return[_0x34a730['southArrowNorthEast'],_0x34a730['northArrowSouthEast'],_0x34a730['southArrowNorth'],_0x34a730['northArrowSouth'],_0x34a730['southArrowNorthWest'],_0x34a730['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x303e3c,'positions':_0x112d9e});}['_hideBalloon'](){const _0x2661dc=this['balloonPanelView'],_0x3756a9=_0x2661dc['content']['first'];_0x3756a9&&(this['_detachListeners'](_0x3756a9),_0x2661dc['unpin'](),_0x2661dc['content']['clear']());}['_attachListeners'](_0x41d07a){this['listenTo'](_0x41d07a,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x41d07a,'Esc',(_0xe340d6,_0x4740e3)=>{this['_manuallyClosedAnnotationViews']['add'](_0x41d07a),this['_hideBalloon'](),_0x4740e3();});}['_detachListeners'](_0x5298db){this['stopListening'](_0x5298db);}}class c extends _0x22c34d{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x1b23e4,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52ef0f){super(_0x52ef0f),_0x52ef0f['editing']['view']['addObserver'](_0x379750),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x52ef0f['plugins']['get'](_0x1b23e4),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0xa10a66=this['editor']['plugins']['get'](M);_0xa10a66['context']===this['editor']&&(_0xa10a66['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x45edfb,_0x58e5d9)=>{const _0x1da507=this['_balloon'];if(this['isAttached']&&_0x1da507['visibleView']){const _0x123662=this['annotations']['getByView'](_0x1da507['visibleView']);_0x123662&&this['_closeAnnotation'](_0x123662),_0x58e5d9();}}));}['afterInit'](){const _0x424346=this['editor']['plugins']['get'](M);_0x424346['context']===this['editor']&&(_0x424346['hasActive']()||_0x424346['switchTo']('inline'));}['setActiveAnnotation'](_0x9b0f85){_0x9b0f85!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x9b0f85&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x9b0f85)&&this['_addAnnotationToBalloon'](_0x9b0f85,!0x0),_0x9b0f85['isActive']=!0x0),_0x9b0f85||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x9b0f85);}['attach'](_0x208407){this['annotations']=_0x208407;const _0x195702=this['editor']['plugins']['get'](M),_0x18c4f7=this['_balloon'];if(this['isAttached'])throw new _0x5231a1('inlineannotations-attach-already-attached',this);if(_0x195702['context']!==this['editor'])throw new _0x5231a1('inlineannotations-not-allowed-with-context',this);const _0x2fb353=this['editor']['plugins']['get'](P);this['listenTo'](_0x2fb353,'refresh',()=>{const _0x1cfadd=_0x2fb353['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x28b6e1,_0x2d6e0b;!this['_forceRefresh']&&(_0x28b6e1=_0x1cfadd,_0x2d6e0b=this['_selectedAnnotations'],_0x28b6e1['length']===_0x2d6e0b['length']&&_0x28b6e1['every'](_0x384fa8=>_0x2d6e0b['includes'](_0x384fa8)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x1cfadd),this['setActiveAnnotation'](_0x1cfadd[0x0]||null));}),this['listenTo'](_0x2fb353,'blur',(_0x16e6e5,{isAnnotationTracked:_0x165fa4})=>{this['activeAnnotation']&&_0x165fa4(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x3eb045,_0x31a4b9,_0x13b857)=>{_0x13b857||this['setActiveAnnotation'](null);}),this['listenTo'](_0x208407,'remove',(_0x47f5e6,_0x7700ee)=>{this['_removeAnnotationFromBalloon'](_0x7700ee),_0x7700ee===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x18c4f7,'change:visibleView',(_0x4be5bb,_0x269c4a,_0x24b561,_0x50fb76)=>{_0x50fb76&&this['stopListening'](_0x50fb76);const _0x8371ef=_0x208407['getByView'](_0x24b561);_0x24b561&&_0x8371ef&&(this['listenTo'](_0x24b561,'change:height',()=>{_0x18c4f7['updatePosition']();}),this['listenTo'](_0x24b561,'Esc',()=>{this['_closeAnnotation'](_0x8371ef),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x8371ef&&this['setActiveAnnotation'](_0x8371ef));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x18c4f7['visibleView']&&(_0x208407['getByView'](_0x18c4f7['visibleView'])&&_0x18c4f7['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 _0x5231a1('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x47bbf1 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x47bbf1);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x295247){for(const _0x400c9f of this['_selectedAnnotations'])_0x295247['includes'](_0x400c9f)||this['_manuallyClosed']['delete'](_0x400c9f);for(const _0x4282d5 of this['annotations'])_0x295247['includes'](_0x4282d5)||this['_removeAnnotationFromBalloon'](_0x4282d5);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x1857fd of _0x295247)this['_addAnnotationToBalloon'](_0x1857fd);}this['_selectedAnnotations']=_0x295247;}['_addAnnotationToBalloon'](_0x32a3f5,_0x20d7c7=!0x1){this['_manuallyClosed']['has'](_0x32a3f5)||(this['_addedAnnotations']['has'](_0x32a3f5)||this['_balloon']['hasView'](_0x32a3f5['view'])||(this['_addedAnnotations']['add'](_0x32a3f5),this['_balloon']['add']({'stackId':_0x32a3f5['view']['id'],'view':_0x32a3f5['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x32a3f5)}})),_0x20d7c7&&this['_balloon']['showStack'](_0x32a3f5['view']['id']));}['_getBalloonTargetForAnnotation'](_0x4c6c30){const _0x95c96d=_0x4c6c30['target'],_0x336312=this['editor']['editing']['view'],_0x3e7c99=_0x336312['document']['selection']['getFirstRange'](),_0x15f089=_0x336312['domConverter']['viewRangeToDom'](_0x3e7c99);if(_0x15f089['collapse'](!0x0),_0x95c96d){if(_0x95c96d instanceof _0x2bcee5)return _0x95c96d;let _0x14513a=[];for(const _0x329aff of _0x95c96d)_0x14513a['push'](...(_0x273f78=_0x329aff['getClientRects'](),Array['from'](_0x273f78)['map'](DOMRect['fromRect'])));_0x14513a=function(_0x35eb16){const _0x45a0f1=[];let _0x5e8e6b=_0x35eb16[0x0];for(let _0x4964ad=0x1;_0x4964ad<_0x35eb16['length'];_0x4964ad++)b(_0x5e8e6b,_0x35eb16[_0x4964ad])?_0x5e8e6b['width']+=_0x35eb16[_0x4964ad]['width']:(_0x45a0f1['push'](_0x5e8e6b),_0x5e8e6b=_0x35eb16[_0x4964ad]);return _0x45a0f1['push'](_0x5e8e6b),_0x45a0f1;}(_0x14513a);const _0xae4b77=_0x15f089['getBoundingClientRect']();return _0x14513a['find'](_0x48b459=>_0x48b459['top']<=_0xae4b77['top']&&_0x48b459['bottom']>=_0xae4b77['bottom']&&_0x48b459['left']<=_0xae4b77['left']&&_0x48b459['right']>=_0xae4b77['right'])||_0x14513a[0x0];}var _0x273f78;return _0x4c6c30['targetRect']||_0x15f089;}['_removeAnnotationFromBalloon'](_0x3b58f7){this['_addedAnnotations']['has'](_0x3b58f7)&&this['_balloon']['hasView'](_0x3b58f7['view'])&&(this['_addedAnnotations']['delete'](_0x3b58f7),this['_balloon']['remove'](_0x3b58f7['view']));}['_closeAnnotation'](_0x34d1b8){this['_manuallyClosed']['add'](_0x34d1b8),this['_removeAnnotationFromBalloon'](_0x34d1b8);}}function b(_0x4a749c,_0x3fc410){return _0x4a749c['top']===_0x3fc410['top']&&_0x4a749c['bottom']===_0x3fc410['bottom']&&_0x4a749c['right']===_0x3fc410['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x3e1221,_0x190b07){super(_0x3e1221),this['set']('isEmpty',!_0x190b07['length']),this['focusTracker']=new _0x1394a2(),this['_annotationViews']=_0x190b07,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x190b07,'focusTracker':this['focusTracker']}),this['listenTo'](_0x190b07,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x190b07,'remove',(_0x270fac,_0xc08fc8)=>{_0xc08fc8['isActive']&&this['focus'](),_0x190b07['length']||(this['isEmpty']=!0x0);});const _0x5cac54=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x3e1221,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x190b07},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x5cac54['if']('isEmpty','ck-hidden',_0x394b67=>!_0x394b67)]},'children':[{'text':S(_0x3e1221,'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 _0x46c89b of this['_annotationViews'])this['focusTracker']['add'](_0x46c89b['element']);this['_annotationViews']['on']('change',(_0x17238f,{added:_0x11386b,removed:_0x53e0ae})=>{for(const _0x2b98e1 of _0x11386b)this['focusTracker']['add'](_0x2b98e1['element']);for(const _0x476578 of _0x53e0ae)this['focusTracker']['remove'](_0x476578['element']);});}}class f extends _0x3af1c1{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0xa4ac6e){super(_0xa4ac6e),this['archivedThreads']=new _0x5b4d52();}['init'](){const _0x193992=this['context'],_0xc1965a=_0x193992['plugins']['get'](o),_0xd3b87a=_0x193992['plugins']['get'](N);this['listenTo'](_0xc1965a,'addCommentThread',(_0x33723d,{threadId:_0x20e9a5})=>{const _0x685b1b=_0xc1965a['getCommentThread'](_0x20e9a5);_0x685b1b['archivedAt']&&this['archivedThreads']['add'](_0x685b1b,this['_calculatePosition'](_0x685b1b['archivedAt'])),this['listenTo'](_0x685b1b,'change:archivedAt',(_0x3a73f6,_0x2b82a8,_0x8e778c)=>{_0x8e778c?this['archivedThreads']['has'](_0x685b1b)||this['archivedThreads']['add'](_0x685b1b,this['_calculatePosition'](_0x685b1b['archivedAt'])):this['archivedThreads']['has'](_0x685b1b)&&this['archivedThreads']['remove'](_0x685b1b);});}),this['listenTo'](_0xc1965a,'removeCommentThread',(_0x16555f,{threadId:_0x45ac8a})=>{const _0x330677=_0xc1965a['getCommentThread'](_0x45ac8a);this['stopListening'](_0x330677),this['archivedThreads']['has'](_0x330677)&&this['archivedThreads']['remove'](_0x330677);},{'priority':'highest'}),this['listenTo'](_0xd3b87a['collection'],'focus',(_0xf614b1,_0x3a2459)=>{_0x3a2459['isVisible']||(_0x3a2459['isActive']=!0x0,_0xd3b87a['activate'](_0x3a2459));});}['_calculatePosition'](_0x43bf69){const _0xd7a707=[...this['archivedThreads']]['findIndex'](_0x21208a=>_0x21208a['archivedAt']<_0x43bf69);return _0xd7a707>-0x1?_0xd7a707:this['archivedThreads']['length'];}}class a extends _0x22c34d{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x690daf];}constructor(_0x110160){super(_0x110160),this['annotationViews']=new _0xa9c1f1(),this['_pendingThreads']=[];}['init'](){const _0xe5a0b4=this['editor'],_0x16e9fa=this['_hideDialogOnAnnotationEscape']['bind'](this);_0xe5a0b4['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x39ca28,!0x0)),_0xe5a0b4['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x2a97aa=this['_createCommentsArchiveButton'](_0x2d310f);return _0x2a97aa['set']({'role':'menuitemcheckbox'}),_0x2a97aa;});const _0x32d1f6=_0xe5a0b4['plugins']['get'](f),_0xa47382=_0xe5a0b4['plugins']['get']('Annotations'),_0x113003=_0xe5a0b4['plugins']['get']('CommentsRepository');this['listenTo'](_0x32d1f6['archivedThreads'],'add',(_0x272f9e,_0x10173c)=>{const _0x537653=_0xe5a0b4['config']['get']('collaboration.channelId');if(!_0x537653||_0x10173c['channelId']===_0x537653){const _0x589542=_0x113003['_threadToController']['get'](_0x10173c);if(!_0x589542)return void this['_pendingThreads']['push'](_0x10173c);const _0x272ebd=this['_calculatePosition'](_0x10173c['archivedAt']),_0x10a07b=_0xa47382['getByInnerView'](_0x589542['view']);_0x10a07b['isVisible']&&_0xa47382['_visibleAnnotations']['remove'](_0x10a07b),this['annotationViews']['add'](_0x10a07b['view'],_0x272ebd);}}),this['listenTo'](_0xa47382['collection'],'add',(_0xe18a4,_0x82fe3c)=>{const _0x308471=this['_pendingThreads']['find'](_0x413f82=>{const _0x549d81=_0x113003['_threadToController']['get'](_0x413f82);return _0x549d81&&_0x82fe3c['innerView']===_0x549d81['view'];});if(_0x308471){const _0x3e27bc=this['_calculatePosition'](_0x308471['archivedAt']);this['annotationViews']['add'](_0x82fe3c['view'],_0x3e27bc),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x308471),0x1);}}),this['listenTo'](_0x32d1f6['archivedThreads'],'remove',(_0xa0fd1,_0xc68e1d)=>{const _0x388385=_0xe5a0b4['config']['get']('collaboration.channelId');if(!_0x388385||_0xc68e1d['channelId']===_0x388385){const _0x4890cd=_0x113003['_threadToController']['get'](_0xc68e1d),_0x34029d=_0xa47382['getByInnerView'](_0x4890cd['view']);this['annotationViews']['remove'](_0x34029d['view']),this['stopListening'](_0x34029d['focusableElements']);}}),this['listenTo'](_0xa47382['collection'],'add',(_0x5c04f1,_0x38aa55)=>{this['listenTo'](_0x38aa55,'escape',_0x16e9fa);}),this['listenTo'](_0xa47382['collection'],'remove',(_0x556331,_0x2ea381)=>{this['stopListening'](_0x2ea381,'escape',_0x16e9fa);});}['_calculatePosition'](_0x4e3a87){const _0x268275=this['editor']['config']['get']('collaboration.channelId'),_0x40ad6c=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x4f8886=>_0x4f8886['channelId']===_0x268275)['findIndex'](_0x5b1f04=>_0x5b1f04['archivedAt']<_0x4e3a87);return _0x40ad6c<0x0||_0x40ad6c>this['annotationViews']['length']?this['annotationViews']['length']:_0x40ad6c-0x1;}['_toggleDialog'](){const _0x3d0a44=this['editor'],_0x41072c=_0x3d0a44['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x3d0a44['locale'],this['annotationViews'])),'commentsArchive'===_0x41072c['id']?_0x41072c['hide']():_0x41072c['show']({'id':'commentsArchive','title':S(_0x3d0a44['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x30a3a1['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0xe1d2a6,_0x5ac51e=!0x1){const _0x56e9cc=this['editor']['locale'],_0x1880f8=this['editor']['plugins']['get']('Dialog'),_0x16a502=new _0xe1d2a6(_0x56e9cc);return _0x16a502['bind']('isEnabled')['to'](this,'isEnabled'),_0x16a502['bind']('isOn')['to'](_0x1880f8,'id',_0x452bc7=>'commentsArchive'===_0x452bc7),_0x16a502['set']({'label':S(_0x56e9cc,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x5ac51e&&(_0x16a502['tooltip']=!0x0),this['listenTo'](_0x16a502,'execute',()=>this['_toggleDialog']()),_0x16a502;}['_hideDialogOnAnnotationEscape']=_0xe21213=>{const _0xa24fc7=_0xe21213['source'];if(!this['annotationViews']['has'](_0xa24fc7['view']))return;const _0x3f4bf3=this['editor']['plugins']['get']('Dialog');_0x3f4bf3['isOpen']&&'commentsArchive'===_0x3f4bf3['id']&&(_0x3f4bf3['hide'](),_0xe21213['stop']());};}class p extends _0x22c34d{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
23
+ import{Editor as _0x1ce1a3,icons as _0x44358e,ContextPlugin as _0x2ccda6,PendingActions as ht,Command as _0x54c55a,Plugin as _0x284080,Context as _0x12a73d}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x5965b9,uid as _0x129308,KeystrokeHandler as jt,FocusTracker as _0x42ea23,diff as _0x167a8a,Collection as _0x124e00,Rect as _0x1bf8e1,CKEditorError as _0x7a47c7,first as _0xa992f7,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x5e150c,keyCodes as _0x363287}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x5ae8d0,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x35e371,ConfirmMixin as ti,LateFocusButtonView as _0x538857,trimHtml as _0x2390f9,LateFocusDropdownButtonView as _0x3ef2f3,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0xd0908c}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x4c7cf9}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x2c9fe9,ViewCollection as _0x2a127c,createDropdown as _0x34f068,ListView as _0x3367c2,focusChildOnDropdownOpen as _0x475be8,ListItemView as _0x44795c,MenuBarMenuListItemButtonView as _0xad4ca2,BodyCollection as _0x5d3c18,BalloonPanelView as _0x132b08,ContextualBalloon as _0x52a537,Dialog as _0x20baa2,DialogViewPosition as _0x237004}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x2291ed}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Nt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Qt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x1a85f8}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x5f0d41}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
+ _0x5965b9(){['model'];['view'];constructor(_0x37e5f2,_0x3e33a2){super(),this['model']=_0x37e5f2,this['model']['_isAttached']=!0x0,this['view']=_0x3e33a2,this['listenTo'](_0x3e33a2,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x3e33a2,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x3e33a2,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x3e33a2,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x3e33a2,'addComment',(_0x19c07f,_0x411b61)=>this['addComment'](_0x411b61)),this['listenTo'](_0x3e33a2,'updateComment',(_0x4fb0ed,_0x51b009,_0x2090b4)=>this['updateComment'](_0x51b009,_0x2090b4)),this['listenTo'](_0x3e33a2,'removeComment',(_0x5721e0,_0x533d3c)=>this['removeComment'](_0x533d3c));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x7bc441){this['model']['addComment']({'content':_0x7bc441,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x4688ab,_0x2522ef){this['model']['getComment'](_0x4688ab)['update']({'content':_0x2522ef});}['removeComment'](_0x2c35c4){this['model']['getComment'](_0x2c35c4)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0xd51c71,_0x335037,_0x24a80c){const t=_0xd51c71['t'];switch(_0x335037){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'},_0x24a80c);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'},_0x24a80c);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'},_0x24a80c);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'},_0x24a80c);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x24a80c);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'},_0x24a80c);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'},_0x24a80c);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'},_0x24a80c);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Xt extends Yt{['main'];['editable'];constructor(_0x19c859,_0x1de9b1){super(_0x19c859);const _0x5845ef=_0x129308();this['main']=this['createCollection'](),this['editable']=new $t(_0x19c859,_0x1de9b1,void 0x0,{'label':()=>S(_0x19c859,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x19c859['uiLanguageDirection'],'lang':_0x19c859['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x5845ef},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Vt{['view'];constructor(_0x44a603){super(_0x44a603),this['view']=new Xt(_0x44a603['locale'],_0x44a603['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x69a147=this['editor']['editing']['view'],_0x2ce299=this['view']['editable'],_0x41732a=_0x69a147['document']['getRoot']();_0x2ce299['name']=_0x41732a['rootName'],this['view']['render']();const _0x4da0c3=_0x2ce299['element'];this['setEditableElement'](_0x2ce299['name'],_0x4da0c3),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x69a147['attachDomRoot'](_0x4da0c3),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
25
+ _0x5965b9(_0x1ce1a3){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Rt)());constructor(_0x1305ef={}){function _0x5c0a7e(_0x498e68){return _0x498e68['map'](_0x39e337=>String['fromCharCode'](_0x39e337))['join']('');}(_0x1305ef=Object['assign']({},_0x1305ef))['plugins']||(_0x1305ef['plugins']=Ut['defaultPlugins']),super(_0x1305ef),this['ui']=new Ot(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x5c0a7e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c0a7e([0x76,0x69,0x65,0x77])][_0x5c0a7e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c0a7e([0x61,0x75,0x74,0x6f]),this[_0x5c0a7e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5c0a7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c0a7e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5c0a7e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5c0a7e([0x6f,0x6b])});}['create'](){const _0x5999f7=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x5999f7))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5c0731=>{const _0x522997=this['model']['document']['getRoot'](),_0x434c82=_0x522997&&_0x522997['getChild'](_0x522997['childCount']-0x1);_0x5c0731['setSelection'](_0x434c82,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x39ba68=this['editing']['view'],_0x48f6c1=_0x39ba68['document']['getRoot'](),_0x3bf8a8=_0x48f6c1['getChild'](0x0);_0x48f6c1['childCount']>0x1||!_0x3bf8a8||'p'!=_0x3bf8a8['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x39ba68,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3bf8a8['placeholder']=this['placeholder']),St({'view':_0x39ba68,'element':_0x3bf8a8,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3bf8a8);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x3e4440,_0x367a96={}){super(_0x3e4440),this['editor']=null,this['_editorConfig']=_0x367a96,this['set']('value',_0x367a96['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x3e4440,'Reply...')),this['set']('submitLabel',S(_0x3e4440,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x42ea23(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x210a05,_0x345ee6)=>{this['cancelButtonView']['fire']('execute'),_0x345ee6();}),this['keystrokes']['set']('Ctrl+Enter',(_0x1b0797,_0x4cf400)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x4cf400());}),this['on']('submit',(_0x55e1c1,_0x25b024)=>{_0x25b024['length']>0xfde8?(alert(S(_0x3e4440,'TOO_LONG_COMMENT_ALERT',[_0x25b024['length'],0xfde8])),_0x55e1c1['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ut(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x105560=this['editor'];this['element']['insertBefore'](_0x105560['ui']['element'],this['element']['firstChild']),_0x105560['model']['document']['on']('change',()=>this['value']=_0x105560['getData']()),_0x105560['bind']('placeholder')['to'](this),this['focusables']['add'](_0x105560['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x26aae9){-0x1===_0x26aae9?(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:_0x34f71d}=this,_0x2bd06d=new _0x2c9fe9(_0x34f71d);return _0x2bd06d['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2bd06d['withText']=!0x0,_0x2bd06d['bind']('label')['to'](this,'submitLabel'),_0x2bd06d['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2bd06d['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x59ba8b,_0x53a40d)=>!_0x53a40d&&!!_0x59ba8b['trim']()),_0x2bd06d;}['_createCancelButton'](){const {locale:_0x4cb7aa}=this,_0x15804c=new _0x2c9fe9(_0x4cb7aa);return _0x15804c['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x15804c['label']=S(_0x4cb7aa,'Cancel'),_0x15804c['withText']=!0x0,_0x15804c['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x15804c;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x410b24=>{this['focusTracker']['add'](_0x410b24['element']);}),this['focusables']['on']('change',(_0x3d0747,_0x3d8465)=>{for(const _0x434fc9 of Array['from'](_0x3d8465['added'])['reverse']())this['focusTracker']['add'](_0x434fc9['element']);});}}class ie extends kt{constructor(_0x26022f,_0x505091,_0x25b2cc){super(_0x26022f),this['commentInputView']=new os(_0x26022f,_0x25b2cc),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x519624,_0x51b493)=>_0x519624||!!_0x51b493),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 _0x5ae8d0(_0x26022f,_0x505091),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'](_0x4bb530){this['commentInputView']['focus'](_0x4bb530);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x360273,_0x535cee)=>{const {submitButtonView:_0x4d3a45,cancelButtonView:_0x54a546,editor:_0x1ae9d1}=this['commentInputView'];[_0x4d3a45['element'],_0x54a546['element'],_0x1ae9d1?_0x1ae9d1['editing']['view']['getDomRoot']():null]['filter'](_0x1b1441=>_0x1b1441)['some'](_0x51b644=>_0x51b644['contains'](_0x535cee['target']))||(this['focus'](),_0x535cee['preventDefault']());});}}class cs extends kt{constructor(_0x5db2c4){super(_0x5db2c4);const _0x2e0675=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2e0675['to']('count',_0x50e176=>S(_0x5db2c4,'NUMBER_OF_COMMENTS',_0x50e176))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x342cd6,_0x3b7bc1,_0x3c4410){super(_0x342cd6);const _0x3ccd16=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x3b7bc1['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x3b7bc1,this['_config']=_0x3c4410,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x42ea23(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x162f74=>this['commentViews']['map'](_0x136188=>_0x136188['element'])['includes'](_0x162f74['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x342cd6),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x219ff1=>_0x219ff1-this['_config']['maxCommentsWhenCollapsed']);for(const _0x593160 of _0x3b7bc1['comments'])this['_handleNewCommentModel'](_0x593160);this['_handleInfoComment'](),this['listenTo'](_0x3b7bc1['comments'],'add',(_0x6ccc8d,_0x101e7f)=>{const _0x5f071d=this['_calculatePosition'](_0x101e7f);this['length']++,this['_handleNewCommentModel'](_0x101e7f,_0x5f071d),this['refreshVisibleViews']();}),this['listenTo'](_0x3b7bc1['comments'],'remove',(_0x2cca0d,_0x4ae8df)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4ae8df),this['refreshVisibleViews']();}),this['listenTo'](_0x3b7bc1,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x3b7bc1,'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',_0x3ccd16['if']('length','ck-hidden',_0x2caf6e=>!_0x2caf6e)],'aria-label':S(_0x342cd6,'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'](_0x55856a){-0x1===_0x55856a?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x17ec70 of this['commentViews'])_0x17ec70['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x5a8de6,_0x4900bf){const _0x3cbc04=new this['_config']['CommentView'](this['locale'],_0x5a8de6,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x3cbc04['viewUid']=_0x5a8de6['id'],_0x3cbc04['delegate']('removeComment')['to'](this),_0x3cbc04['delegate']('updateComment')['to'](this),_0x3cbc04['delegate']('resolveCommentThread')['to'](this),_0x3cbc04['delegate']('editorReady')['to'](this),_0x3cbc04['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x3cbc04,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x3cbc04,_0x4900bf);}['_calculatePosition'](_0x39ea3c){const _0xe7e681=this['_model']['_findOptimalIndex'](_0x39ea3c);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x39ea3c['authoredAt']?_0xe7e681-0x1:_0xe7e681:_0xe7e681-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x32fdeb={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':S(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x32fdeb,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x32fdeb));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x6d8e39){const _0xc674d3=this['commentViews']['remove'](_0x6d8e39['id']);this['stopListening'](_0xc674d3),_0xc674d3['isEditMode']&&this['_updateHasDirtyComment'](),_0xc674d3['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x5bca98=>_0x5bca98['isEditMode']);}['_rearrangeCollapse'](){const _0x10f47b=function(_0x48483b){const _0x2defd9=new _0x124e00();for(const _0x17d016 of _0x48483b)_0x2defd9['add'](_0x17d016);return _0x2defd9;}(this['commentViews']),_0x206215=this['_collapsedCommentsView']['count'];for(let _0x468dd2=0x1;_0x468dd2<=_0x206215;_0x468dd2++)_0x10f47b['remove'](0x1);for(const _0x28f9d0 of _0x10f47b)_0x28f9d0['collapse']();_0x206215>0x0&&_0x10f47b['add'](this['_collapsedCommentsView'],0x1),as(_0x167a8a(Array['from'](this['visibleViews']),Array['from'](_0x10f47b)),this['visibleViews'],_0x10f47b);}['_rearrangeExpand'](){as(_0x167a8a(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x2dcd80 of this['visibleViews'])_0x2dcd80['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x38c253=>{this['focusTracker']['add'](_0x38c253['element']),this['keystrokes']['listenTo'](_0x38c253['element']);}),this['commentViews']['on']('change',(_0x517a60,_0x3a29b2)=>{for(const _0x516bb7 of _0x3a29b2['removed'])this['focusTracker']['remove'](_0x516bb7['element']),this['keystrokes']['stopListening'](_0x516bb7['element']);for(const _0x57ba12 of Array['from'](_0x3a29b2['added'])['reverse']())this['focusTracker']['add'](_0x57ba12['element']),this['keystrokes']['listenTo'](_0x57ba12['element']);});}}function as(_0x1d97c9,_0x304c8f,_0x1a4bc8){let _0x5c685f=0x0;for(const _0x2635fa of _0x1d97c9)switch(_0x2635fa){case'insert':_0x304c8f['add'](_0x1a4bc8['get'](_0x5c685f),_0x5c685f),_0x5c685f++;break;case'delete':_0x304c8f['remove'](_0x5c685f);break;case'equal':_0x5c685f++;}}class ls extends kt{constructor(_0x2f65ec){super(_0x2f65ec);const _0x537c07=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x537c07['to']('contextValue',_0x289f43=>S(_0x2f65ec,'THREAD_CONTEXT_LABEL',_0x289f43)),'tabindex':-0x1},'children':[{'text':_0x537c07['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xf80088,_0x55b4d9){super(_0xf80088);const _0x49be7e=this['bindTemplate'];this['_model']=_0x55b4d9,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x42ea23(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x572f08=>!!_0x572f08),this['bind']('contextValue')['to'](this['_model'],'context',_0x47dd2a=>_0x47dd2a&&_0x47dd2a['value']?this['_trimContextValue'](_0x47dd2a['value']):S(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x49be7e['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 _0x3d4272=new _0x2c9fe9(this['locale']);return _0x3d4272['label']=S(this['locale'],'Reopen'),_0x3d4272['tooltip']=S(this['locale'],'Reopen'),_0x3d4272['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22m5.042\x209.367\x202.189\x201.837a.75.75\x200\x200\x201-.965\x201.149l-3.788-3.18a.747.747\x200\x200\x201-.21-.284.75.75\x200\x200\x201\x20.17-.945L6.23\x204.762a.75.75\x200\x201\x201\x20.964\x201.15L4.863\x207.866h8.917A.75.75\x200\x200\x201\x2014\x207.9a4\x204\x200\x201\x201-1.477\x207.718l.344-1.489a2.5\x202.5\x200\x201\x200\x201.094-4.73l.008-.032H5.042z\x22/></svg>',_0x3d4272['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xd11b31=>!_0xd11b31),_0x3d4272['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x291856,_0x343c20)=>_0x291856&&_0x343c20),_0x3d4272['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x3d4272;}['_trimContextValue'](_0x4fa73b){if(_0x4fa73b['length']<0x96)return _0x4fa73b;const _0x17ad26=_0x4fa73b['lastIndexOf']('\x20',0x93);return _0x4fa73b['substring'](0x0,_0x17ad26>-0x1?_0x17ad26:0x93)+'...';}['_attachContextActions'](){const _0x49fe41=this['element']['querySelector']('.ck-context'),_0x4100f5=_0x49fe41['querySelector']('.ck-context__value');this['listenTo'](_0x49fe41,'mouseenter',()=>{_0x4100f5['offsetWidth']<_0x4100f5['scrollWidth']&&_0x49fe41['classList']['add']('overlay');}),this['listenTo'](_0x49fe41,'mouseleave',()=>{_0x49fe41['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0xba9f18 of this['focusables'])this['focusTracker']['add'](_0xba9f18['element']),this['keystrokes']['listenTo'](_0xba9f18['element']);}['_createContextView'](){const _0x1a6ff2=new ls(this['locale']);return _0x1a6ff2['bind']('contextValue')['to'](this),_0x1a6ff2;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3ed75a,_0xb8283a,_0x4a042d,_0x222d8f){super(_0x3ed75a),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xb8283a,this['_localUser']=_0x4a042d,this['_config']=_0x222d8f,this['commentThreadHeaderView']=new Zt(_0x3ed75a,_0xb8283a),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x3ed75a,S(_0x3ed75a,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x3ed75a,_0xb8283a,Object['assign']({'CommentView':this['_config']['CommentView']},_0x222d8f)),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',(_0x13d850,_0x2efb6e)=>_0x13d850||!!_0x2efb6e),this['bind']('isUnlinked')['to'](_0xb8283a,'unlinkedAt',_0x2d5316=>!!_0x2d5316),this['bind']('ariaLabel')['to'](this,'length',_0x1e9514=>{const _0x273944=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x1e9514,_0x273944]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x42ea23(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4a782c=>_0x4a782c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x35e371(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x948357=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x327329=_0x948357['commentInputView'];return _0x948357['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x327329,'value',(_0x1dc3ff,_0x1de728,_0x48ab06,_0x5e352d,_0x58b3dd)=>!!_0x58b3dd||!!_0x5e352d&&_0x48ab06&&!_0x1de728||_0x1dc3ff&&_0x48ab06&&!_0x1de728),_0x327329['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0xf1b928,_0x555b8c,_0x4daec1)=>{let _0x55a8d0;return _0x55a8d0=_0x4daec1&&_0x555b8c?'Reply\x20to\x20reopen\x20discussion...':_0xf1b928?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x55a8d0);}),_0x327329['bind']('submitLabel')['to'](this,'length',_0x5204db=>S(this['locale'],_0x5204db?'Reply':'Comment')),_0x327329['on']('submit',(_0x12546d,_0x45d4fa)=>{this['fire']('addComment',_0x45d4fa),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x327329['on']('cancel',()=>{this['focus']();}),_0x327329['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x327329['on']('cancel',_0x592bb4=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x592bb4['stop']());}),this['on']('change:isActive',(_0x1ecddd,_0x5cd4a9,_0x3cdcef)=>{_0x3cdcef||this['length']||_0x327329['value']||this['fire']('removeCommentThread');}),_0x948357;}}class vt extends/* #__PURE__ -- @preserve */
27
+ ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x36fc6f,_0xe6ba0b,_0x36c1c9,_0x5a7369){super(_0x36fc6f,_0xe6ba0b,_0x36c1c9,_0x5a7369),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x36fc6f,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x2a8616,_0x4080ff,_0x237b66)=>{_0x237b66||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x46cdc4,_0x1f6b19,_0x5414e7)=>{_0x5414e7&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x128b65=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x128b65['if']('isActive','ck-thread--active'),_0x128b65['if']('isUnlinked','ck-thread--unlinked'),_0x128b65['if']('isConfirm','ck-thread--remove-confirmation'),_0x128b65['to']('actionIndicator',_0x2eb01b=>_0x2eb01b?'ck-thread--'+_0x2eb01b:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x128b65['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 _0x5ac81c of this['commentsListView']['commentViews'])_0x5ac81c['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x118b40}=this,_0x4f24e3=this['commentsListView']['commentViews']['get'](0x0);_0x4f24e3===this['_boundFirstCommentView']||_0x4f24e3['isSystemComment']||(this['_boundFirstCommentView']=_0x4f24e3,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x4f24e3,'actionIndicator',_0xba1906=>'remove'===_0xba1906?'remove':null),_0x4f24e3['placeholder']=S(_0x118b40,'Write\x20a\x20comment...'),_0x4f24e3['removeButton']['on']('execute',_0x215cc3=>{_0x215cc3['stop'](),this['showConfirm'](S(_0x118b40,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x4f24e3['focus']();}),_0x4f24e3['actionBar']['add'](this['resolveButton'],0x0),_0x4f24e3['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x19a5c8=new _0x538857(this['locale']);return _0x19a5c8['label']=S(this['locale'],'Resolve'),_0x19a5c8['tooltip']=S(this['locale'],'Resolve'),_0x19a5c8['icon']=_0x44358e['check'],_0x19a5c8['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x19a5c8['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x6e1435=>!_0x6e1435),_0x19a5c8['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2ea4fb,_0x159e6f)=>_0x2ea4fb&&!_0x159e6f),_0x19a5c8['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x19a5c8;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class hs extends kt{constructor(_0x30dd24){super(_0x30dd24),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x401243,_0x413e8d,_0x46a3e9)=>{this['element']['innerHTML']=_0x46a3e9;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xfa8ca3,_0x32ce4f,_0x4b139b){super(_0xfa8ca3),this['_model']=_0x32ce4f,this['_config']=_0x4b139b,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x32ce4f,'content',_0x32ce4f,'authoredAt',(_0x148d6b,_0x2c21ea)=>S(_0xfa8ca3,'COMMENT_ARIA_LABEL',[_0x32ce4f['author']['name'],_0x4b139b['formatDateTime'](_0x2c21ea),new DOMParser()['parseFromString'](_0x148d6b,'text/html')['body']['textContent'],_0x32ce4f['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0xfa8ca3,S(_0xfa8ca3,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x2a127c(),this['focusTracker']=new _0x42ea23(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5ea7cd=>_0x5ea7cd['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):S(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):S(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x424758=new hs(this['locale']);return _0x424758['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x195ce1,_0x2bfa31)=>_0x2bfa31?_0x2390f9(_0x195ce1,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x195ce1),_0x424758;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0xbe07f7=new os(this['locale'],this['_config']['editorConfig']);return _0xbe07f7['value']=this['_model']['content'],_0xbe07f7['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0xbe07f7['submitLabel']=S(this['locale'],'Save'),_0xbe07f7['on']('submit',(_0x49baed,_0x419918)=>{this['fire']('updateComment',this['_model']['id'],_0x419918),this['switchToDisplayMode'](),this['focus']();}),_0xbe07f7['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0xbe07f7['once']('editorReady',()=>{_0xbe07f7['focus']();}),_0xbe07f7['createEditor'](),_0xbe07f7['delegate']('editorReady')['to'](this),_0xbe07f7['delegate']('editorDestroyed')['to'](this),_0xbe07f7;}['_setupKeyboardNavigation'](){const _0x5d3492=this['element'];this['keystrokes']['listenTo'](_0x5d3492);for(const _0x31cb1d of this['focusables'])this['focusTracker']['add'](_0x31cb1d['element']),this['keystrokes']['listenTo'](_0x31cb1d['element']);this['focusables']['on']('change',(_0x1f9ae1,_0x196db0)=>{for(const _0x3e3767 of _0x196db0['removed'])this['focusTracker']['remove'](_0x3e3767['element']),this['keystrokes']['stopListening'](_0x3e3767['element']);for(const _0x40c747 of _0x196db0['added'])this['focusTracker']['add'](_0x40c747['element']),this['keystrokes']['listenTo'](_0x40c747['element']);}),this['keystrokes']['set']('enter',(_0x59b476,_0x1d87d6)=>{_0x5d3492===_0x59b476['target']&&(this['focusCycler']['focusFirst'](),_0x1d87d6());}),this['keystrokes']['set']('esc',(_0xc13d0b,_0x18cdf2)=>{_0x5d3492!==_0xc13d0b['target']&&(this['focus'](),_0x18cdf2());});}}class gt extends/* #__PURE__ -- @preserve */
28
+ ti(rs){['actionBar'];['userView'];constructor(_0x5c80ab,_0x50854f,_0x31fec4){super(_0x5c80ab,_0x50854f,_0x31fec4),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x5c80ab,'Reply...')),this['bind']('authoredAt')['to'](_0x50854f),this['bind']('resolvedAt')['to'](_0x50854f),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 _0x5ae8d0(_0x5c80ab,_0x50854f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x50854f,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x33c69f=this['bindTemplate'],_0x2daff0=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x33c69f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x33c69f['to']('authoredAt',_0x2ceda8=>this['_config']['formatDateTime'](_0x2ceda8))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x33c69f['if']('isEditMode','ck-comment__actions--hidden'),_0x33c69f['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']&&_0x2daff0['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x33c69f['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x33c69f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x33c69f['if']('isEditMode','ck-comment--edit'),_0x33c69f['if']('isSystemComment','ck-comment--info'),_0x33c69f['to']('actionIndicator',_0x491145=>_0x491145?'ck-comment--'+_0x491145:'')],'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':_0x2daff0}]}]};}['_createEditButton'](){const _0xa17da1=new _0x2c9fe9(this['locale']);return _0xa17da1['label']=S(this['locale'],'Edit'),_0xa17da1['icon']=_0x44358e['pencil'],_0xa17da1['withText']=!0x0,_0xa17da1['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0xa17da1['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x7378fe=>!_0x7378fe),_0xa17da1['bind']('isVisible')['to'](this['_model'],'isEditable'),_0xa17da1['on']('execute',()=>this['switchToEditMode']()),_0xa17da1;}['_createRemoveButton'](){const _0x3081e7=new _0x2c9fe9(this['locale']);return _0x3081e7['label']=S(this['locale'],'Remove'),_0x3081e7['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x3081e7['withText']=!0x0,_0x3081e7['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x3081e7['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2f671c=>!_0x2f671c),_0x3081e7['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x3081e7['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x3081e7;}['_createDropdown'](){const _0x303058=_0x34f068(this['locale'],_0x3ef2f3),_0x4c0e5a=_0x303058['panelView']['children'],_0x73ea3=new _0x3367c2(this['locale']),_0x20724b=_0x303058['bindTemplate'];_0x475be8(_0x303058,()=>this['items']['find'](_0x34d6a7=>_0x34d6a7['isVisible'])),_0x303058['extendTemplate']({'attributes':{'class':[_0x20724b['if']('isVisible','ck-hidden',_0x553e66=>!_0x553e66)]}});const _0x13fa01=(_0x2a66f5,_0x488df7=-0x1)=>{const _0x4dc357=new _0x44795c(this['locale']);_0x4dc357['children']['add'](_0x2a66f5);const _0x1106fb=_0x488df7>-0x1?_0x488df7:_0x73ea3['items']['length'];_0x73ea3['items']['add'](_0x4dc357,_0x1106fb);const _0x55bfa0=Array['from'](this['items']);_0x303058['unbind']('isEnabled','isVisible'),_0x303058['bind']('isEnabled')['toMany'](_0x55bfa0,'isEnabled',(..._0x358cf9)=>_0x358cf9['some'](_0x43f00b=>_0x43f00b)),_0x303058['bind']('isVisible')['toMany'](_0x55bfa0,'isVisible',(..._0x22950e)=>_0x22950e['some'](_0x254279=>_0x254279));};_0x303058['panelPosition']='sw',_0x303058['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x44358e['threeVerticalDots']});for(const _0x1ab53e of this['items'])_0x13fa01(_0x1ab53e);return _0x4c0e5a['add'](_0x73ea3),_0x303058['listenTo'](this['items'],'add',(_0x349671,_0x1a2ef7,_0x1eceee)=>{_0x13fa01(_0x1a2ef7,_0x1eceee);}),_0x303058['listenTo'](this['items'],'remove',(_0x45636e,_0x122f5e,_0x52f00a)=>{_0x73ea3['items']['remove'](_0x52f00a);}),_0x303058;}['_attachActions'](_0x329469,_0x2350ce){const _0x42406e=_0x329469&&_0x329469['element'];_0x42406e&&(this['listenTo'](_0x42406e,'mouseenter',()=>this['actionIndicator']=_0x2350ce),this['listenTo'](_0x42406e,'focus',()=>this['actionIndicator']=_0x2350ce),this['listenTo'](_0x42406e,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x42406e,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x50298b=super['_createCommentInputView']();return _0x50298b['bind']('placeholder')['to'](this),_0x50298b;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x179849){const _0x4e8ca0=Dt(_0x179849,0x1e),_0x4e99ea=new MutationObserver(_0x22da7c=>{for(const _0x46e7a2 of _0x22da7c)('attributes'==_0x46e7a2['type']&&'class'==_0x46e7a2['attributeName']||'childList'==_0x46e7a2['type']||'characterData'==_0x46e7a2['type'])&&_0x4e8ca0();});return{'attach'(_0x38ddf5){_0x4e99ea['observe'](_0x38ddf5,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x4e99ea['disconnect'](),_0x4e8ca0['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x37964d,_0x58d27f){super(_0x37964d),this['id']=_0x129308(),this['focusTracker']=new _0x42ea23(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x584d9d,_0x2ab961)=>this['fire']('Esc',_0x2ab961)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x58d27f),this['mainView']=_0x58d27f;const _0x2ce947=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x2ce947['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 _0x2825ee=this['element']['clientHeight'];_0x2825ee&&(this['height']=_0x2825ee);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x5965b9(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x4cc2ce,target:_0x52773e,type:_0x47b98b,isVisible:_0x532ee6=!0x0}){super(),this['view']=_0x4cc2ce,this['view']['element']||this['view']['render'](),this['_type']=_0x47b98b,this['_target']=_0x52773e,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x124e00([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x35deea,_0x2fe031)=>{this['view']['focusTracker']['add'](_0x2fe031);}),this['focusableElements']['on']('remove',(_0x550713,_0x44ab78)=>{this['view']['focusTracker']['remove'](_0x44ab78);}),this['set']('isVisible',_0x532ee6);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x3f3dad=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x3f3dad),_0x3f3dad;}get['targetRect'](){const _0x542b02=this['target'];if(null===_0x542b02)return null;if(_0x542b02 instanceof _0x1bf8e1)return _0x542b02;const _0x5d0a0d=_0x542b02['filter'](_0x3c2807=>function(_0x190652){const _0x244f3b=_0x190652['offsetParent'];if(_0x244f3b)return!0x0;const _0x7b0851=_0x190652['getClientRects']()['item'](0x0);return!!_0x7b0851;}(_0x3c2807));return 0x0===_0x5d0a0d['length']?null:new _0x1bf8e1(_0x5d0a0d[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x15b13b){this['view']['isActive']=_0x15b13b,this['view']['mainView']['isActive']=_0x15b13b;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x6e961b){if(!(null===_0x6e961b||_0x6e961b instanceof _0x1bf8e1||Array['isArray'](_0x6e961b)&&_0x6e961b['every'](_0x5d9391=>ne(_0x5d9391))))throw new _0x7a47c7('annotation-invalid-target',null,{'target':_0x6e961b});}['_getNormalizedTarget'](){const _0x1c866e='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x1c866e)?[_0x1c866e]:_0x1c866e;}}function ne(_0x112cba){return null!==_0x112cba&&'object'==typeof _0x112cba&&'nodeType'in _0x112cba&&0x1===_0x112cba['nodeType'];}class x extends _0x124e00{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x5f50ea=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x42ea23(),this['_focusTracker']['on']('change:isFocused',(_0x2a70ca,_0x516675,_0x10aabe)=>{_0x10aabe||this['fire']('blur');});for(const _0x10e1ad of _0x5f50ea)this['add'](_0x10e1ad);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x257a90){if(this['has'](_0x257a90))throw new _0x7a47c7('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x257a90['innerView'],_0x257a90),this['_viewToAnnotation']['set'](_0x257a90['view'],_0x257a90);for(const _0x58be03 of _0x257a90['focusableElements'])this['_focusTracker']['add'](_0x58be03);this['listenTo'](_0x257a90['focusableElements'],'add',(_0x56afd4,_0x35581d)=>{this['_focusTracker']['add'](_0x35581d);}),this['listenTo'](_0x257a90['focusableElements'],'remove',(_0x2f1e9f,_0x1c2de5)=>{this['_focusTracker']['remove'](_0x1c2de5);}),this['listenTo'](_0x257a90['view']['focusTracker'],'change:isFocused',(_0x33bde2,_0x7f1e04,_0x147acf)=>{_0x147acf&&this['fire']('focus',_0x257a90);}),_0x257a90['updateTargetRect']();const _0xafefc=this['_getOrderInContent'](_0x257a90['view']['targetRect']);return super['add'](_0x257a90,_0xafefc);}['remove'](_0x4cbc69){if(!this['has'](_0x4cbc69))throw new _0x7a47c7('annotationcollection-not-existing-item',null);this['stopListening'](_0x4cbc69['view']['focusTracker']),this['stopListening'](_0x4cbc69['focusableElements']);for(const _0xe48111 of _0x4cbc69['focusableElements'])this['_focusTracker']['remove'](_0xe48111);return this['_viewToAnnotation']['delete'](_0x4cbc69['view']),this['_innerViewToAnnotation']['delete'](_0x4cbc69['innerView']),super['remove'](_0x4cbc69);}['getByInnerView'](_0x571399){return this['_innerViewToAnnotation']['get'](_0x571399);}['getByView'](_0xac1eff){return this['_viewToAnnotation']['get'](_0xac1eff);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1d5d22 of this)_0x1d5d22['updateTargetRect']();this['_sort']();}['_sort'](){const _0x1c5834=Array['from'](this)['sort']((_0x52dc5c,_0x3325bd)=>v(_0x52dc5c['view']['targetRect'],_0x3325bd['view']['targetRect']));for(let _0x4341c0=_0x1c5834['length']-0x1;_0x4341c0>0x0;_0x4341c0--){const _0x5a8c74=_0x1c5834[_0x4341c0];_0x4341c0!==this['getIndex'](_0x5a8c74)&&(this['remove'](_0x5a8c74),this['add'](_0x5a8c74));}}['_getOrderInContent'](_0x108185){let _0x4f5e33=0x0;if(!_0x108185)return this['length'];for(const _0x15fe1a of this){const _0x50eb38=_0x15fe1a['view']['targetRect'];if(_0x50eb38){if(v(_0x108185,_0x50eb38)<0x0)return _0x4f5e33;_0x4f5e33++;}}return _0x4f5e33;}}function v(_0x2dd868,_0x508853){if(null===_0x2dd868&&null===_0x508853)return 0x0;if(null===_0x2dd868)return-0x1;if(null===_0x508853)return 0x1;const _0x70ea7c=_0x2dd868['top']-_0x508853['top'];return 0x0==_0x70ea7c?_0x2dd868['left']-_0x508853['left']:_0x70ea7c;}class N extends _0x2ccda6{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2770e2){if(super(_0x2770e2),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x2770e2 instanceof _0x1ce1a3){const _0x286a23=_0x2770e2['locale'];_0x2770e2['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x286a23,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x286a23,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x286a23,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x286a23,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x286a23,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x286a23,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x286a23,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x70cdd6){this['collection']['add'](_0x70cdd6);}['remove'](_0x29c243){this['collection']['remove'](_0x29c243),_0x29c243['destroy']();}['refreshVisibility'](){for(const _0x32c9d1 of this['collection'])_0x32c9d1['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x415187){return this['collection']['getByInnerView'](_0x415187);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x3223f3 of this['collection'])_0x3223f3['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x190a2b){this['fire']('_activateAnnotation',_0x190a2b);}['createAnnotation'](_0x3b03eb){return new d(_0x3b03eb);}['createAnnotationView'](_0x741732,_0x307707){return new T(_0x741732,_0x307707);}['_addActiveAnnotation'](_0x77200a){const _0x3c8413=new Set(this['activeAnnotations']);_0x3c8413['add'](_0x77200a),this['activeAnnotations']=_0x3c8413;}['_removeActiveAnnotation'](_0x5b9dc2){const _0x1136dc=new Set(this['activeAnnotations']);_0x1136dc['delete'](_0x5b9dc2),this['activeAnnotations']=_0x1136dc;}['_bindAnnotationsToVisibleAnnotations'](){const _0x110118=this['collection'],_0x12f06b=this['_visibleAnnotations'];function _0x5da058(_0x3c24f0){const _0x44c3ab=_0x3c24f0['source'];_0x44c3ab['isVisible']&&!_0x12f06b['has'](_0x44c3ab)?_0x12f06b['add'](_0x44c3ab):!_0x44c3ab['isVisible']&&_0x12f06b['has'](_0x44c3ab)&&_0x12f06b['remove'](_0x44c3ab),_0x44c3ab['view']['focusTracker']['remove'](_0x44c3ab['view']['element']),_0x44c3ab['view']['focusTracker']['add'](_0x44c3ab['view']['element']);}this['listenTo'](_0x110118,'add',(_0x33951d,_0x14e12a)=>{_0x14e12a['isVisible']&&_0x12f06b['add'](_0x14e12a),this['listenTo'](_0x14e12a,'change:isVisible',_0x5da058);}),this['listenTo'](_0x110118,'remove',(_0x3be213,_0xb721a8)=>{_0x12f06b['has'](_0xb721a8)&&_0x12f06b['remove'](_0xb721a8),this['stopListening'](_0xb721a8,'change:isVisible',_0x5da058);});}['_setupEnterAnnotationKeystroke'](){const _0x54e813=_0x453525=>{_0x453525['on']('ready',()=>{_0x453525['keystrokes']['set'](_0x1a85f8,(_0x7e3f89,_0x506252)=>{const _0x1a8aa8=_0xa992f7(this['activeAnnotations']['values']());_0x1a8aa8&&(_0x1a8aa8['view']['focus'](),_0x506252());});});};this['context']instanceof _0x1ce1a3?_0x54e813(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x4ea236,_0x402637)=>{_0x54e813(_0x402637);});}['_setupEscapeAnnotationHandling'](){const _0x2b84e7=_0x58ef3a=>{const _0x2b34c7=_0x58ef3a['source'],_0xabaa4a=[];let _0xac00c7;if(Array['isArray'](_0x2b34c7['target'])){_0xac00c7=_0x2b34c7['target'][0x0],this['context']instanceof _0x1ce1a3?_0xabaa4a['push'](this['context']):this['context']['editors']&&_0xabaa4a['push'](...this['context']['editors']);for(const _0x478977 of _0xabaa4a)for(const _0x122fd2 of _0x478977['editing']['view']['domRoots']['values']())if(_0x122fd2['contains'](_0xac00c7))return void _0x478977['editing']['view']['focus']();_0xac00c7['focus']();}};this['listenTo'](this['collection'],'add',(_0x46c8b4,_0x317cde)=>{this['listenTo'](_0x317cde,'escape',_0x2b84e7,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x282971,_0x1f8ade)=>{this['stopListening'](_0x1f8ade,'escape',_0x2b84e7);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x2ccda6{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x477bb7){super(_0x477bb7),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x40a6d5=this['context']['config'];_0x40a6d5['define']('comments.maxCommentsWhenCollapsed',0x2),_0x40a6d5['define']('comments.maxThreadTotalWeight',0x1f4),_0x40a6d5['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x40a6d5['define']('comments.CommentThreadView',vt),_0x40a6d5['define']('comments.CommentView',gt),_0x40a6d5['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x463753=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x42fa71,_0x348c69)=>this['_addCommentThread'](_0x348c69)),this['on']('submitCommentThread',(_0x5db2e5,_0x1b4f00)=>this['_submitCommentThread'](_0x1b4f00)),this['on']('resolveCommentThread',(_0x1cc995,_0xb4e679)=>this['_resolveCommentThread'](_0xb4e679)),this['on']('resolveCommentThread',(_0x2cbad3,_0x44dc22)=>this['_updateActiveAnnotation'](_0x44dc22),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x3894db,_0x5a8cc3)=>this['_reopenCommentThread'](_0x5a8cc3)),this['on']('reopenCommentThread',(_0x87b3bd,_0x57cb8b)=>this['_updateActiveAnnotation'](_0x57cb8b),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x4d34c3,_0x206cfe)=>this['_removeCommentThread'](_0x206cfe)),this['on']('updateCommentThread',(_0x4236f9,_0x4729a3)=>this['_updateCommentThread'](_0x4729a3)),this['on']('updateCommentThread',(_0x224fbc,_0x5d81ed)=>this['_updateActiveAnnotation'](_0x5d81ed),{'priority':'lowest'}),this['on']('addComment',(_0x5e043f,_0xb67fcc)=>this['_addComment'](_0xb67fcc)),this['on']('updateComment',(_0x1f0028,_0x4d0dda)=>this['_updateComment'](_0x4d0dda)),this['on']('removeComment',(_0x2ee0bf,_0x49ee4c)=>this['_removeComment'](_0x49ee4c)),this['on']('addComment',(_0x31a010,{threadId:_0x1d3133,isFromAdapter:_0x11b866})=>{if(_0x11b866)return;const _0x32d74c=this['getCommentThread'](_0x1d3133),_0x3edc62=_0x32d74c&&this['_threadToController']['get'](_0x32d74c);_0x3edc62&&_0x3edc62['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x463753,'change:activeAnnotations',(_0x5a2270,_0x3e357d,_0x549009)=>{const _0x4348cb=Array['from'](_0x549009)['map'](_0x1a378f=>this['_viewToController']['get'](_0x1a378f['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x4348cb?_0x4348cb['model']:null;});}set['adapter'](_0x45d781){if(this['_adapter'])throw new _0x7a47c7('commentsrepository-adapter-already-set');this['_adapter']=_0x45d781;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x5915e0=Tt,threadId:_0x37ac9d=_0x129308(),comments:_0x30c3df=[],unlinkedAt:_0x216672=null,resolvedAt:_0x28c6ff=null,resolvedBy:_0x31897f=null,target:_0x2ec126=null,context:_0x38f489=null,attributes:_0x38f937={},isResolvable:_0x54978d=!0x0,isSubmitted:_0x247521=!0x1,isFromAdapter:_0x4212fe=!0x1}={}){return this['fire'](bt('addCommentThread',_0x5915e0),{'channelId':_0x5915e0,'threadId':_0x37ac9d,'comments':_0x30c3df,'unlinkedAt':_0x216672,'resolvedAt':_0x28c6ff,'resolvedBy':_0x31897f,'target':_0x2ec126,'context':_0x38f489,'attributes':_0x38f937,'isFromAdapter':_0x4212fe,'isResolvable':_0x54978d,'isSubmitted':_0x247521}),this['getCommentThread'](_0x37ac9d);}['openNewCommentThread']({channelId:_0x4d0564=Tt,threadId:_0x18e5d2=_0x129308(),target:_0x3419ea,context:_0x33d05a=null,isResolvable:_0x2d701c=!0x0}){if(this['_readOnlyChannels']['has'](_0x4d0564)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x3419ea)throw new _0x7a47c7('commentsrepository-missing-target');const _0x369b33=this['addCommentThread']({'channelId':_0x4d0564,'threadId':_0x18e5d2,'target':_0x3419ea,'context':_0x33d05a,'isResolvable':_0x2d701c});if(!_0x369b33)return null;const _0x56dbf8=this['_threadToController']['get'](_0x369b33),_0x5250a3=_0x56dbf8['view']['commentThreadInputView']['commentInputView'],_0x57c758=this['context']['plugins']['get'](N),_0x85aff4=_0x57c758['getByInnerView'](_0x56dbf8['view']);return _0x57c758['activate'](_0x85aff4),_0x5250a3['once']('editorReady',()=>_0x5250a3['focus']()),_0x369b33;}['hasCommentThread'](_0x1929a1){if('string'!=typeof _0x1929a1)throw new _0x7a47c7('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x1929a1);}['updateCommentThread']({channelId:_0x24858a=Tt,threadId:_0x476764,context:_0x37f9d0,unlinkedAt:_0x515b65,attributes:_0x238c4c,isFromAdapter:_0xf449da=!0x1}){return this['fire'](bt('updateCommentThread',_0x24858a),{'channelId':_0x24858a,'threadId':_0x476764,'context':_0x37f9d0,'unlinkedAt':_0x515b65,'attributes':_0x238c4c,'isFromAdapter':_0xf449da}),this['getCommentThread'](_0x476764);}['getCommentThread'](_0x13137d){if('string'!=typeof _0x13137d)throw new _0x7a47c7('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x13137d);}['fetchCommentThread']({channelId:_0x27c8b7,threadId:_0xcb07e4}={}){const _0x2017c9=this['getCommentThread'](_0xcb07e4);if(_0x2017c9)return Promise['resolve'](_0x2017c9);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x7a47c7('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x27c8b7,'threadId':_0xcb07e4})['then'](_0x1a39ac=>this['hasCommentThread'](_0xcb07e4)?this['getCommentThread'](_0xcb07e4):_0x1a39ac?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x27c8b7},_0x1a39ac)):void 0x0)['catch'](_0x551c18=>{throw console['error'](_0x551c18),new _0x7a47c7('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x3b0f59,skipNotAttached:_0x376441=!0x1,skipEmpty:_0x290135=!0x1,toJSON:_0x1e366e=!0x1}={}){const _0x17e405=[];for(const _0x2cb2af of this['_threads']['values']())_0x3b0f59&&_0x2cb2af['channelId']!==_0x3b0f59||_0x376441&&!_0x2cb2af['isAttached']||_0x290135&&0x0===_0x2cb2af['length']||_0x17e405['push'](_0x2cb2af);return _0x1e366e?_0x17e405['map'](_0x3e9749=>_0x3e9749['toJSON']()):_0x17e405;}['setActiveCommentThread'](_0x475ecd){const _0x2172d8=this['context']['plugins']['get'](N);if(!_0x475ecd)return void(this['activeCommentThread']&&_0x2172d8['deactivateAll']());const _0x4594ef=this['getCommentThread'](_0x475ecd);if(!_0x4594ef)throw new _0x7a47c7('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x475ecd});if(!this['_threadToController']['has'](_0x4594ef))throw new _0x7a47c7('commentsrepository-active-not-attached',null,{'threadId':_0x475ecd});const _0x1c0d45=_0x2172d8['getByInnerView'](this['_threadToController']['get'](_0x4594ef)['view']);_0x2172d8['activate'](_0x1c0d45);}['switchReadOnly'](_0x3b6019,_0x4f6141){_0x3b6019?this['_readOnlyChannels']['add'](_0x4f6141):this['_readOnlyChannels']['delete'](_0x4f6141),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x470595){return this['_readOnlyChannels']['has'](_0x470595)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x5de0b0,_0x298a44){return new Ct(_0x5de0b0,_0x298a44);}['setPermissions'](_0x480de5,_0x40c629=Tt){this['_permissions']['set'](_0x40c629,_0x480de5),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x5104dd=Tt){return this['_permissions']['has'](_0x5104dd)?this['_permissions']['get'](_0x5104dd):_t;}['_addCommentThread']({channelId:_0x1c9cdd,threadId:_0x1c6f4a,comments:_0x47cd4f,unlinkedAt:_0x48ce63,resolvedAt:_0x30950b,resolvedBy:_0x170628,target:_0xbf3a80,context:_0xbe78c0,attributes:_0x22de51,isFromAdapter:_0x1631cf,isResolvable:_0x48deff,isSubmitted:_0x19819c}){if('string'!=typeof _0x1c6f4a)throw new _0x7a47c7('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1c6f4a});if(this['hasCommentThread'](_0x1c6f4a))throw new _0x7a47c7('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x1c6f4a});const _0x107daf=new oe(this,{'channelId':_0x1c9cdd,'id':_0x1c6f4a,'context':_0xbe78c0,'attributes':_0x22de51,'unlinkedAt':_0x48ce63,'resolvedAt':_0x30950b,'resolvedBy':_0x170628?this['context']['plugins']['get'](it)['getUser'](_0x170628):null,'isResolvable':_0x48deff,'isSubmitted':_0x19819c||_0x1631cf});this['_threads']['set'](_0x1c6f4a,_0x107daf);for(const _0x16ba3c of _0x47cd4f)_0x107daf['_add'](this['_createNewComment']({'threadId':_0x1c6f4a,..._0x16ba3c}));return _0xbf3a80&&_0x107daf['attachTo'](_0xbf3a80),_0x1631cf||!_0x107daf['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x1c9cdd,'threadId':_0x1c6f4a});}['_submitCommentThread']({channelId:_0x33f38c,threadId:_0x63e63d}){if(!this['hasCommentThread'](_0x63e63d))throw new _0x7a47c7('commentsrepository-missing-comment-thread',this);const _0x1ec54a=this['getCommentThread'](_0x63e63d);if(_0x1ec54a['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x535724,comments:_0x2521d2,resolvedAt:_0x2fa6a6,resolvedBy:_0x54fd5d,context:_0x2f1f0c,attributes:_0x13a38b}=_0x1ec54a,_0x3d9672=this['context']['plugins']['get']('PendingActions'),_0x3beca2=_0x3d9672['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x33f38c,'threadId':_0x535724,'comments':_0x2521d2['map'](_0x109d8e=>_0x109d8e['toJSON']()),'resolvedAt':_0x2fa6a6,'resolvedBy':_0x54fd5d?_0x54fd5d['id']:_0x54fd5d,'context':_0x2f1f0c,'attributes':_0x13a38b})['then'](({comments:_0x53671d})=>{_0x3d9672['remove'](_0x3beca2);for(const _0x1c9aa6 of _0x53671d)this['_updateComment']({'channelId':_0x33f38c,'threadId':_0x63e63d,'commentId':_0x1c9aa6['commentId'],'createdAt':_0x1c9aa6['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x481b4e=>{throw console['error'](_0x481b4e),new _0x7a47c7('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0xc29676,target:_0x4a1cb4}){const _0x4cd0d0=this['getCommentThread'](_0xc29676);if(!_0x4cd0d0)throw new _0x7a47c7('commentsrepository-attach-missing-comment-thread',this);const _0x15956f=this['context']['plugins']['get']('PendingActions'),_0x212b40=this['context']['plugins']['get'](N),_0x5d216c=this['_createCommentThreadView'](_0x4cd0d0),_0x3adf30=new Ct(_0x4cd0d0,_0x5d216c);let _0x52a850=null;_0x5d216c['on']('change:isDirty',(_0x466a3b,_0x308c7a,_0x31ba6d)=>{_0x31ba6d?_0x52a850=_0x15956f['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x52a850&&(_0x15956f['remove'](_0x52a850),_0x52a850=null);}),this['_threadToController']['set'](_0x4cd0d0,_0x3adf30),this['_viewToController']['set'](_0x5d216c,_0x3adf30);const _0x244753=new T(this['context']['locale'],_0x5d216c);_0x244753['bind']('length')['to'](_0x5d216c),_0x244753['bind']('isDirty')['to'](_0x5d216c,'isDirty',_0x5d216c,'length',(_0x59aad1,_0x4106b7)=>_0x59aad1||!_0x4106b7),_0x244753['bind']('isActive')['to'](_0x5d216c),_0x244753['type']='comment';const _0x58e4f2=new d({'view':_0x244753,'target':_0x4a1cb4,'type':'comment','isVisible':!_0x4cd0d0['isResolved']});return _0x5d216c['on']('escape',()=>{_0x58e4f2['fire']('escape');}),this['_bindAnnotationToEditors'](_0x5d216c,_0x58e4f2),_0x212b40['add'](_0x58e4f2),_0x58e4f2;}['_bindAnnotationToEditors'](_0x4c7dc3,_0x1e3fe4){this['listenTo'](_0x4c7dc3,'editorReady',(_0x25bdb1,_0x147e69)=>{const _0x4526bc=_0x147e69['ui']['view']['body']['bodyCollectionContainer'];_0x1e3fe4['focusableElements']['add'](_0x4526bc),this['context']instanceof _0x1ce1a3&&this['context']['ui']['focusTracker']['add'](_0x4526bc);},{'priority':'highest'}),this['listenTo'](_0x4c7dc3,'editorDestroyed',(_0x584561,_0x5af323)=>{const _0x6dbc3=_0x5af323['ui']['view']['body']['bodyCollectionContainer'];_0x1e3fe4['focusableElements']['has'](_0x6dbc3)&&_0x1e3fe4['focusableElements']['remove'](_0x6dbc3),this['context']instanceof _0x1ce1a3&&this['context']['ui']['focusTracker']['remove'](_0x6dbc3);});}['_unbindEditors'](_0x43a6de){this['stopListening'](_0x43a6de,'editorReady'),this['stopListening'](_0x43a6de,'editorDestroyed');}['_createCommentThreadView'](_0x2d6d3e){const _0x53f416=this['context']['plugins']['get'](it),{config:_0x350694,locale:_0x5ecfe2}=this['context'],_0x1932db=lt(_0x350694['get']('locale'));return new(0x0,(_0x350694['get']('comments'))['CommentThreadView'])(_0x5ecfe2,_0x2d6d3e,_0x53f416['me'],{'editorConfig':{..._0x350694['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x350694['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x350694['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x350694['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x350694['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1932db,'CommentView':_0x350694['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x5dcdf2,channelId:_0x10e844,resolvedAt:_0x5abe0c,resolvedBy:_0x2f2127,isFromAdapter:_0x261c4c}){if(!this['hasCommentThread'](_0x5dcdf2))throw new _0x7a47c7('commentsrepository-missing-comment-thread',null,{'threadId':_0x5dcdf2});const _0x44ca67=this['getCommentThread'](_0x5dcdf2);if(_0x44ca67['isResolved'])throw new _0x7a47c7('commentsrepository-resolved-comment-thread',null,{'threadId':_0x5dcdf2});const _0x5a5fab=this['context']['plugins']['get'](it);if(_0x44ca67['resolvedBy']=_0x5a5fab['getUser'](_0x2f2127),_0x44ca67['resolvedAt']=_0x5abe0c,_0x261c4c||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x23d9a4=this['context']['plugins']['get']('PendingActions'),_0x240d49=_0x23d9a4['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x10e844,'threadId':_0x5dcdf2})['then'](({resolvedAt:_0x1c9f62,resolvedBy:_0x287152})=>{_0x23d9a4['remove'](_0x240d49),_0x44ca67['resolvedBy']['id']!==_0x287152&&(_0x44ca67['resolvedBy']=_0x5a5fab['getUser'](_0x287152)),_0x44ca67['resolvedAt']=_0x1c9f62;})['catch'](_0x1fb0c2=>{throw console['error'](_0x1fb0c2),new _0x7a47c7('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x4af18f,channelId:_0x587288,isFromAdapter:_0x325e86}){if(!this['hasCommentThread'](_0x4af18f))throw new _0x7a47c7('commentsrepository-missing-comment-thread',null,{'threadId':_0x4af18f});const _0x2b27c0=this['getCommentThread'](_0x4af18f);if(!_0x2b27c0['isResolved'])throw new _0x7a47c7('commentsrepository-reopen-comment-thread',null,{'threadId':_0x4af18f});if(_0x2b27c0['resolvedBy']=null,_0x2b27c0['resolvedAt']=null,_0x325e86||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x6e7433=this['context']['plugins']['get']('PendingActions'),_0x598469=_0x6e7433['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x587288,'threadId':_0x4af18f})['then'](()=>_0x6e7433['remove'](_0x598469))['catch'](_0x51c7af=>{throw console['error'](_0x51c7af),new _0x7a47c7('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x494ad8,isFromAdapter:_0x42e0a3}){const _0x1d11d9=this['getCommentThread'](_0x494ad8);if(!_0x1d11d9)throw new _0x7a47c7('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x494ad8),this['_threads']['delete'](_0x494ad8),!_0x1d11d9['isSubmitted']||_0x42e0a3||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5c7e37=this['context']['plugins']['get']('PendingActions'),{channelId:_0x11984b}=_0x1d11d9,_0x504337=_0x5c7e37['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x11984b,'threadId':_0x494ad8})['then'](()=>_0x5c7e37['remove'](_0x504337))['catch'](_0x527f26=>{throw console['error'](_0x527f26),new _0x7a47c7('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x43e773,unlinkedAt:_0x4c9473,context:_0x39dd38,attributes:_0x39ae4f,isFromAdapter:_0x5d7665}){if('string'!=typeof _0x43e773)throw new _0x7a47c7('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x43e773});if(!this['hasCommentThread'](_0x43e773))throw new _0x7a47c7('commentsrepository-missing-comment-thread',null,{'threadId':_0x43e773});const _0x760ea2=this['getCommentThread'](_0x43e773);let _0x2ac2af=!0x1;if(void 0x0!==_0x39dd38&&_0x760ea2['context']!==_0x39dd38&&(_0x760ea2['context']=_0x39dd38,_0x2ac2af=!0x0),void 0x0!==_0x4c9473&&_0x760ea2['unlinkedAt']!==_0x4c9473&&(_0x760ea2['unlinkedAt']=_0x4c9473,_0x2ac2af=!0x0),_0x39ae4f&&!wt(_0x39ae4f,_0x760ea2['attributes'])&&(_0x760ea2['attributes']=_0x39ae4f,_0x2ac2af=!0x0),!_0x2ac2af)return Promise['resolve']();if(!_0x760ea2['isSubmitted']||_0x5d7665||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x175aa0=this['context']['plugins']['get']('PendingActions'),{channelId:_0xad1749}=_0x760ea2,_0x4569ae=_0x175aa0['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0xad1749,'threadId':_0x43e773,'context':_0x39dd38,'unlinkedAt':_0x4c9473,'attributes':_0x39ae4f})['then'](()=>_0x175aa0['remove'](_0x4569ae))['catch'](_0x3c4098=>{throw console['error'](_0x3c4098),new _0x7a47c7('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x1f7794){const _0x5aad3a=this['context']['plugins']['get'](N),_0x137177=this['getCommentThread'](_0x1f7794);if(_0x137177['_isAttached']=!0x1,this['_threadToController']['has'](_0x137177)){const _0x5230b0=this['_threadToController']['get'](_0x137177),_0x1c1d75=_0x5230b0['view'],_0x48fd7b=_0x5aad3a['getByInnerView'](_0x1c1d75);this['_threadToController']['delete'](_0x137177),this['_viewToController']['delete'](_0x1c1d75),_0x48fd7b&&_0x5aad3a['remove'](_0x48fd7b),_0x5230b0['destroy'](),_0x1c1d75['destroy']()['then'](()=>{this['_unbindEditors'](_0x1c1d75);});}}['_updateActiveAnnotation']({threadId:_0x499c81,resolvedAt:_0x1abfc8}){const _0x141f79=!!_0x1abfc8,_0x2815c2=this['context']['plugins']['get'](N),_0x4c974d=this['getCommentThread'](_0x499c81);if(this['_threadToController']['has'](_0x4c974d)){const _0x38178d=this['_threadToController']['get'](_0x4c974d)['view'],_0x58151d=_0x2815c2['getByInnerView'](_0x38178d);_0x58151d&&(_0x141f79&&_0x2815c2['_removeActiveAnnotation'](_0x58151d),_0x58151d['refreshVisibility']());}}['_getExternalAuthor'](_0x1e924d){const _0x3a1003=this['context']['plugins']['get'](it),_0x311a04=pt('external:'+_0x1e924d),_0x2f70c7=_0x3a1003['getUser'](_0x311a04);return _0x2f70c7||_0x3a1003['addUser']({'id':_0x311a04,'name':_0x1e924d});}['_createNewComment']({threadId:_0x1bd698,commentId:_0x4c535e=_0x129308(),content:_0x15911c,authorId:_0x23a5e8,createdAt:_0x24b06e,attributes:_0xb3b40}){if('string'!=typeof _0x4c535e)throw new _0x7a47c7('commentsrepository-invalid-commentid');if('string'!=typeof _0x23a5e8)throw new _0x7a47c7('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x15911c||!_0x15911c['trim']())throw new _0x7a47c7('commentsrepository-invalid-comment-content');const _0x4cdf67=this['context']['plugins']['get'](it)['getUser'](_0x23a5e8);if(!_0x4cdf67)throw new _0x7a47c7('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x23a5e8});let _0x24dafe=null,_0x3e46eb=_0x24b06e;return _0xb3b40&&_0xb3b40['@external']&&(_0x24dafe=this['_getExternalAuthor'](_0xb3b40['@external']['authorName']),_0x3e46eb=new Date(_0xb3b40['@external']['createdAt'])),new re(this,{'threadId':_0x1bd698,'id':_0x4c535e,'author':_0x24dafe||_0x4cdf67,'creator':_0x4cdf67,'content':_0x15911c,'createdAt':_0x24b06e,'authoredAt':_0x3e46eb,'attributes':_0xb3b40});}['_addComment'](_0x2400a8){let {threadId:_0x4118a3,content:_0x1f70b9,attributes:_0x3144f1,isFromAdapter:_0x1302a6}=_0x2400a8;const _0x464f36=this['getCommentThread'](_0x2400a8['threadId']);if(!_0x464f36)throw new _0x7a47c7('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x18ffe6=this['_createNewComment'](_0x2400a8),{id:_0x619b83}=_0x18ffe6;if(_0x464f36['_add'](_0x18ffe6),_0x1302a6||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x464f36['isSubmitted'])return Promise['resolve']();const _0x820c71=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3e5a40}=_0x464f36,_0x2eacf4=_0x820c71['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x3144f1||(_0x3144f1={}),this['adapter']['addComment']({'channelId':_0x3e5a40,'threadId':_0x4118a3,'commentId':_0x619b83,'content':_0x1f70b9,'attributes':_0x3144f1})['then'](_0x4f09e7=>{_0x820c71['remove'](_0x2eacf4),_0x4f09e7&&this['_updateComment']({'channelId':_0x3e5a40,'threadId':_0x4118a3,'commentId':_0x619b83,'createdAt':_0x4f09e7['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x46e4f5=>{throw console['error'](_0x46e4f5),new _0x7a47c7('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x2a79c5,commentId:_0x35a62a,content:_0x5d502d,createdAt:_0x4e558c,attributes:_0x3554bc,isFromAdapter:_0x38d3ed}){if(void 0x0!==_0x5d502d&&('string'!=typeof _0x5d502d||!_0x5d502d['trim']()['length']))throw new _0x7a47c7('commentsrepository-update-comment-invalid-content');const _0x36fd92=this['getCommentThread'](_0x2a79c5),_0x3496d5=_0x36fd92['getComment'](_0x35a62a);if(!_0x3496d5)throw new _0x7a47c7('commentsrepository-update-missing-comment',this);let _0x1d44c2=!0x1;if(_0x5d502d&&_0x5d502d!==_0x3496d5['content']&&(_0x3496d5['isEditable']||_0x38d3ed)&&(_0x3496d5['content']=_0x5d502d,_0x1d44c2=!0x0),_0x4e558c&&_0x4e558c!==_0x3496d5['createdAt']&&(_0x3496d5['createdAt']=_0x4e558c,_0x3496d5['attributes']&&_0x3496d5['attributes']['@external']||(_0x3496d5['authoredAt']=_0x4e558c),_0x1d44c2=!0x0),_0x3554bc&&!wt(_0x3554bc,_0x3496d5['attributes'])&&(_0x3496d5['attributes']=_0x3554bc,_0x1d44c2=!0x0),!_0x1d44c2)return Promise['resolve']();if(_0x36fd92['fire']('commentUpdated'),_0x38d3ed||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x8c5277=this['context']['plugins']['get']('PendingActions'),{channelId:_0x49c65c}=this['getCommentThread'](_0x3496d5['threadId']),_0x39a5c1=_0x8c5277['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x49c65c,'threadId':_0x2a79c5,'commentId':_0x35a62a,'content':_0x5d502d,'attributes':_0x3554bc})['then'](()=>_0x8c5277['remove'](_0x39a5c1))['catch'](_0x103877=>{throw console['error'](_0x103877),new _0x7a47c7('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x1b3a9d,commentId:_0x57bed5,isFromAdapter:_0x4708b4}){const _0x113ddd=this['getCommentThread'](_0x1b3a9d),_0x4ea0e1=_0x113ddd['getComment'](_0x57bed5);if(!_0x4ea0e1)throw new _0x7a47c7('commentsrepository-remove-missing-comment',this);if(_0x113ddd['_remove'](_0x4ea0e1),_0x4708b4||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x2902bd=this['context']['plugins']['get']('PendingActions'),{channelId:_0xfccb6e}=_0x113ddd,_0x3140eb=_0x2902bd['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0xfccb6e,'threadId':_0x1b3a9d,'commentId':_0x57bed5})['then'](()=>_0x2902bd['remove'](_0x3140eb))['catch'](_0x5e6d8f=>{throw console['error'](_0x5e6d8f),new _0x7a47c7('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
+ _0x5965b9(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x2614f7,_0x36d1e4){super();const _0x15e262=_0x36d1e4['isResolvable'];this['channelId']=_0x36d1e4['channelId'],this['id']=_0x36d1e4['id'],this['comments']=new _0x124e00(),this['_repository']=_0x2614f7,this['_isAttached']=!0x1,this['_isSubmitted']=_0x36d1e4['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x2614f7,'_permissions',_0x2614f7,'_readOnlyChannels',()=>_0x2614f7['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x2614f7,'_permissions',()=>_0x2614f7['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x2614f7,'_permissions',()=>{const _0x4fe90c=_0x2614f7['getPermissions'](this['channelId']);return _0x4fe90c['write']||_0x4fe90c['admin'];}),this['bind']('isResolvable')['to'](_0x2614f7,'_permissions',()=>_0x15e262&&_0x2614f7['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x36d1e4['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x4dfd04,_0x2161af)=>_0x4dfd04?_0x2161af?_0x4dfd04<_0x2161af?_0x4dfd04:_0x2161af:_0x4dfd04:_0x2161af),this['set']('unlinkedAt',_0x36d1e4['unlinkedAt']||null),this['set']('resolvedAt',_0x36d1e4['resolvedAt']||null),this['set']('resolvedBy',_0x36d1e4['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x285817=>!!_0x285817),this['set']('attributes',_0x36d1e4['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x3f9ea9,_0x25c310)=>_0x3f9ea9+_0x25c310['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x297fa5,id:_0x696f1c}=this;this['_repository']['fire'](bt('submitCommentThread',_0x297fa5),{'channelId':_0x297fa5,'threadId':_0x696f1c});}['setUnlinkedAt'](_0x46fd50){this['_update']({'unlinkedAt':_0x46fd50});}['resolve']({resolvedAt:_0x30baa7=new Date(),resolvedBy:_0xb99d58=null,isFromAdapter:_0x3f55b5=!0x1}={}){const _0x99f0bb=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x15ada6,id:_0x3e7b22}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x15ada6),{'channelId':_0x15ada6,'threadId':_0x3e7b22,'resolvedAt':_0x30baa7,'resolvedBy':_0xb99d58||_0x99f0bb['id'],'isFromAdapter':_0x3f55b5});}['reopen']({isFromAdapter:_0x25c59a=!0x1}={}){const {channelId:_0x59751a,id:_0x14904f}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x59751a),{'channelId':_0x59751a,'threadId':_0x14904f,'isFromAdapter':_0x25c59a});}['setContext'](_0x3b5d29){this['context']||this['_update']({'context':_0x3b5d29});}['setAttribute'](_0x13231e,_0x94df60){const _0x424e15=It(this['attributes']);At(_0x424e15,_0x13231e,_0x94df60),this['_update']({'attributes':_0x424e15});}['removeAttribute'](_0x225d79){const _0x15f792=It(this['attributes']);yt(_0x15f792,_0x225d79),this['_update']({'attributes':_0x15f792});}['remove']({isFromAdapter:_0x512b80=!0x1}={}){const {channelId:_0x1194ed,id:_0x4ef662}=this;this['_repository']['fire'](bt('removeCommentThread',_0x1194ed),{'channelId':_0x1194ed,'threadId':_0x4ef662,'isFromAdapter':_0x512b80});}['attachTo'](_0x555b1d){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x555b1d});}['addComment'](_0x1dcbd6){const {channelId:_0x291bc6,id:_0x1dafbb}=this;this['_repository']['fire'](bt('addComment',_0x291bc6,_0x1dafbb),Object['assign']({'channelId':_0x291bc6,'threadId':_0x1dafbb},_0x1dcbd6));}['getComment'](_0x3b60f4){if('string'!=typeof _0x3b60f4)throw new _0x7a47c7('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x3b60f4});return this['comments']['get'](_0x3b60f4);}['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'](_0x35f06f=>_0x35f06f['toJSON']()),'attributes':this['attributes']};}['_add'](_0x5405be){return this['listenTo'](_0x5405be,'change:authoredAt',()=>{const _0x473985=this['_findOptimalIndex'](_0x5405be),_0xe816e2=this['comments'];_0x473985-0x1!=_0xe816e2['getIndex'](_0x5405be)&&_0x473985+0x1!=_0xe816e2['getIndex'](_0x5405be)&&(this['_remove'](_0x5405be),this['_add'](_0x5405be));}),this['comments']['add'](_0x5405be,this['_findOptimalIndex'](_0x5405be));}['_update'](_0x290e02){const {channelId:_0x36b162,id:_0x3eca42}=this;this['_repository']['fire'](bt('updateCommentThread',_0x36b162),{..._0x290e02,'channelId':_0x36b162,'threadId':_0x3eca42});}['_remove'](_0x29b25e){return this['stopListening'](_0x29b25e),_0x29b25e['destroy'](),this['comments']['remove'](_0x29b25e);}['_findOptimalIndex'](_0x34b230){const _0xbaa2e8=this['comments']['find'](_0x3b2d73=>new Date(_0x3b2d73['authoredAt'])['getTime']()>new Date(_0x34b230['authoredAt'])['getTime']());return _0xbaa2e8?this['comments']['getIndex'](_0xbaa2e8):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
+ _0x5965b9(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x320432,_0xbc81cc){super();const _0x523f61=_0x320432['context']['plugins']['get'](it)['me'],_0x42206b=_0x320432['getCommentThread'](_0xbc81cc['threadId']),_0x351d33=0x0===_0x42206b['comments']['length'],_0x34bbe4=_0x523f61===_0xbc81cc['author'];this['id']=_0xbc81cc['id'],this['threadId']=_0xbc81cc['threadId'],this['author']=_0xbc81cc['author'],this['creator']=_0xbc81cc['creator'],this['isExternal']=Boolean(_0xbc81cc['attributes']&&_0xbc81cc['attributes']['@external']),this['set']('content',_0xbc81cc['content']),this['createdAt']=_0xbc81cc['createdAt']||new Date(),this['set']('authoredAt',_0xbc81cc['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x42206b,'resolvedAt'),this['set']('attributes',_0xbc81cc['attributes']||{}),this['bind']('isEditable')['to'](_0x320432,'_permissions',()=>{const _0x47f3a5=_0x320432['getPermissions'](_0x42206b['channelId'])['write'],_0x568521=_0x320432['getPermissions'](_0x42206b['channelId'])['modifyAll'];return _0x34bbe4&&_0x47f3a5||!_0x34bbe4&&_0x568521;}),this['bind']('isRemovable')['to'](_0x42206b,'isRemovable',_0x320432,'_permissions',_0x5f1b7d=>{const _0x31bbdc=_0x320432['getPermissions'](_0x42206b['channelId'])['write'],_0x4b07b6=_0x320432['getPermissions'](_0x42206b['channelId'])['modifyAll'];return _0x34bbe4&&_0x31bbdc||_0x5f1b7d&&_0x351d33||!_0x34bbe4&&_0x4b07b6&&!_0x351d33;}),this['bind']('isReadOnly')['to'](_0x42206b,'isReadOnly'),this['_repository']=_0x320432;}get['weight'](){return Math['max'](function(_0xfcccd0){const _0x3848f4=document['createElement']('div');return _0x3848f4['innerHTML']=_0xfcccd0,_0x3848f4['textContent']['length'];}(this['content']),0xc8);}['update'](_0x584bc9){const {threadId:_0x12f856,id:_0x53ebea}=this;if(!this['_repository']['hasCommentThread'](_0x12f856))throw new _0x7a47c7('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x437faa}=this['_repository']['getCommentThread'](_0x12f856);this['_repository']['fire'](bt('updateComment',_0x437faa,_0x12f856),{'channelId':_0x437faa,'threadId':_0x12f856,'commentId':_0x53ebea,..._0x584bc9});}['setAttribute'](_0x265445,_0x5714b3){const _0x4f4cbe=It(this['attributes']);At(_0x4f4cbe,_0x265445,_0x5714b3),this['update']({'attributes':_0x4f4cbe});}['removeAttribute'](_0x172bbe){const _0x2d6270=It(this['attributes']);yt(_0x2d6270,_0x172bbe),this['update']({'attributes':_0x2d6270});}['remove'](_0x46f9e2={}){if(!_0x46f9e2['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x390ac9,id:_0x56fab1}=this;if(!this['_repository']['hasCommentThread'](_0x390ac9))throw new _0x7a47c7('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x282a87}=this['_repository']['getCommentThread'](_0x390ac9);this['_repository']['fire'](bt('removeComment',_0x282a87,_0x390ac9),{'channelId':_0x282a87,'threadId':_0x390ac9,'commentId':_0x56fab1,..._0x46f9e2});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x16d14e,..._0x32a28){for(const _0x5ef4e7 of _0x32a28)void 0x0!==_0x5ef4e7&&(_0x16d14e+=':'+String(_0x5ef4e7));return _0x16d14e;}class J extends _0x54c55a{['refresh'](){const _0x51e501=this['editor']['model']['document']['selection'];for(const _0x3b760d of _0x51e501['getRanges']())if(this['_hasContent'](_0x3b760d))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x50b85e=_0x129308()}={}){const _0x28f114=this['editor']['model'],_0x5d7ec1=[];for(const _0xf51f61 of _0x28f114['document']['selection']['getRanges']())this['_hasContent'](_0xf51f61)&&_0x5d7ec1['push'](this['_trimToContent'](_0xf51f61));_0x28f114['change'](_0x203848=>{for(const _0x504fd0 of _0x5d7ec1){const _0x48bf68=_0x129308()['substr'](0x1,0x5),_0x29a521='comment:'+_0x50b85e+':'+_0x48bf68;_0x203848['addMarker'](_0x29a521,{'range':_0x504fd0,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x2dbe65){for(const _0x49db28 of _0x2dbe65['getItems']())if(this['_itemIsContent'](_0x49db28))return!0x0;return!0x1;}['_itemIsContent'](_0x4b301b){return _0x4b301b['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4b301b)&&!_0x4b301b['is']('element','tableCell');}['_trimToContent'](_0x2cbdba){const _0x423384=_0xf263d0=>!this['_itemIsContent'](_0xf263d0['item']),_0x27bb8d=_0x2cbdba['start']['getLastMatchingPosition'](_0x423384),_0x4b05fe=_0x2cbdba['end']['getLastMatchingPosition'](_0x423384,{'direction':'backward'});return this['editor']['model']['createRange'](_0x27bb8d,_0x4b05fe);}}class P extends _0x284080{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7b5c8e){super(_0x7b5c8e),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x445941=this['editor'],_0x101ad8=_0x445941['model']['document']['selection'],_0x2c9b8a=_0x4c7cf9(()=>this['refreshSelectedViews'](),0xa);_0x101ad8['on']('change:range',(_0xaa54a6,_0x27c0e2)=>{_0x27c0e2['directChange']&&(_0x2c9b8a['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x445941['editing']['view']['document'],'change:isFocused',(_0x420402,_0x30b7a2,_0x5a3438)=>{_0x5a3438&&_0x2c9b8a();}),this['listenTo'](_0x445941['ui']['focusTracker'],'change:isFocused',(_0x3ff8df,_0x4c67c2,_0xde211c)=>{_0xde211c||_0x445941['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x3a95fd=>this['_editorAnnotationsData']['has'](_0x3a95fd['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x1b371f){if(this['_editorAnnotations']['has'](_0x1b371f['view']))return;this['_editorAnnotations']['add'](_0x1b371f['view']),this['editor']['ui']['focusTracker']['add'](_0x1b371f['view']['element']);const _0x4cc4af=this['editor']['plugins']['get'](N);this['listenTo'](_0x4cc4af['collection'],'remove',(_0x1c4a56,_0x2bfbbe)=>{this['editor']['ui']['focusTracker']['remove'](_0x2bfbbe['view']['element']),this['_editorAnnotations']['delete'](_0x2bfbbe['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x470881){if('function'!=typeof _0x470881)throw new _0x7a47c7('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x470881);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x7f8d6,annotations:_0x29dd6a}){const _0x9d8b6b=[],_0x2b18b9=this['editor']['model']['document']['selection'],_0x1558f5=Array['from'](_0x2b18b9['getRanges']());for(const [_0x4d0319,_0x319f32]of this['_editorAnnotationsData']){const _0x5de92d=_0x31e9b5(_0x319f32),_0x55929b=_0x29dd6a['getByInnerView'](_0x4d0319);_0x5de92d&&_0x55929b&&_0x9d8b6b['push']({'annotation':_0x55929b,'range':_0x5de92d});}function _0x31e9b5(_0x2ea35d){for(const _0x5acd94 of _0x2ea35d)for(const _0x4a585d of _0x1558f5)if(_0x5acd94['containsRange'](_0x4a585d,!_0x2b18b9['isCollapsed']))return _0x5acd94;return null;}return _0x9d8b6b['sort']((_0x4da7ab,_0x5bb3ad)=>{const _0x38b25f=_0x4da7ab['range'],_0x574c28=_0x5bb3ad['range'];if(!_0x38b25f['isEqual'](_0x574c28)){if(_0x38b25f['containsRange'](_0x574c28,!0x0))return 0x1;if(_0x574c28['containsRange'](_0x38b25f,!0x0))return-0x1;}return _0x4da7ab['annotation']==_0x7f8d6?-0x1:_0x5bb3ad['annotation']==_0x7f8d6?0x1:0x0;})['map'](_0x1f0d22=>_0x1f0d22['annotation']);}get['_editorAnnotationsData'](){const _0x17dede=new Map();for(const _0x15d6ba of Array['from'](this['_dataCollectors']))for(const [_0x38c1ff,_0x10cef6]of _0x15d6ba())_0x17dede['set'](_0x38c1ff,_0x10cef6);return _0x17dede;}}class st extends _0x284080{['afterInit'](){const _0x176ef6=this['editor'];if(!_0x176ef6['plugins']['has']('RestrictedEditingModeEditing'))return;_0x176ef6['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x284080{constructor(_0x3a756d){super(_0x3a756d),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x141878=this['editor'],_0x52bf2b=_0x141878['commands']['get']('importWord'),_0x4be451=_0x141878['plugins']['get'](it);_0x52bf2b&&(_0x52bf2b['on']('execute',(_0x5b7662,[,_0x1719ee])=>{_0x1719ee['collaboration_features']={'comments':!0x0,'user_id':_0x4be451['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x52bf2b,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x102f05,_0x3e76be){const {comment_threads:_0x366e18}=_0x3e76be;_0x366e18&&_0x366e18['forEach'](({thread_id:_0xd7e49c,comments:_0x2924b5,is_resolved:_0x328232})=>{const _0x5e17d3=new Date(),_0x95fb87=_0x2924b5['map'](({author:_0xb409f,content:_0x2ef877,created_at:_0x23a9d4})=>({'content':_0x2ef877,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x5e17d3,'attributes':{'@external':{'authorName':_0xb409f,'createdAt':_0x23a9d4?new Date(_0x23a9d4):new Date(),'source':'importWord'}}})),_0x2397c1=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x2397c1,'threadId':_0xd7e49c,'comments':_0x95fb87,'resolvedAt':_0x328232?_0x5e17d3:null});});}}class at extends _0x284080{constructor(_0x4dbcdc){super(_0x4dbcdc),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x4a0ec5=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x4a0ec5,'contentInsertion',(_0x2cfe05,_0x4ac586)=>this['_removeMarkersWithoutThreads'](_0x4ac586['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x27727a){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x27727a;const _0x2e3e21=this['editor']['plugins']['get']('CommentsRepository');for(const _0x56b59d of _0x27727a['keys']()){const [_0x53c179,_0x121d97]=_0x56b59d['split'](':');'comment'!=_0x53c179||_0x2e3e21['hasCommentThread'](_0x121d97)||_0x27727a['delete'](_0x56b59d);}return _0x27727a;}['_registerMarkerInClipboardPipeline'](){const _0x163d95=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x13de08=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x13de08&&_0x163d95['_registerMarkerToCopy']('comment',_0x13de08);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x1fec48){switch(_0x1fec48){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x284080{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x55df08,_0x3fbf78)=>{if(!_0x3fbf78['options']['showCommentHighlights'])return null;if(_0x3fbf78['options']['ignoreResolvedComments']){const {id:_0x333ab1}=er(_0x55df08['markerName']),_0x270840=this['editor']['plugins']['get'](o)['getCommentThread'](_0x333ab1);if(_0x270840&&_0x270840['isResolved']&&_0x55df08['item'])return _0x3fbf78['consumable']['consume'](_0x55df08['item'],'addMarker:'+_0x55df08['markerName']),_0x3fbf78['consumable']['consume'](_0x55df08['item'],'removeMarker:'+_0x55df08['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x10b99a=>{_0x10b99a['on']('addMarker:comment',(_0xffa06f,_0x5a71c4,_0x1f7687)=>{if(!_0x1f7687['options']['showCommentHighlights'])return;const _0x24e345=_0x5a71c4['item'];if(!_0x24e345)return;const _0x21f0d7=_0x1f7687['mapper']['toViewElement'](_0x24e345);this['editor']['model']['schema']['isObject'](_0x24e345)&&_0x21f0d7&&!_0x21f0d7['getCustomProperty']('widget')&&_0x21f0d7['is']('containerElement')&&_0x5f0d41(_0x21f0d7,_0x1f7687['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5ca3e4,{writer:_0x2a9557,options:_0x432f7a})=>{if(!_0x432f7a['showCommentHighlights'])return null;const _0x157e8e=_0x2a9557['createContainerElement']('div'),_0x3cd4bb=_0x2a9557['createEmptyElement']('hr');return _0x2a9557['addClass']('ck-horizontal-line',_0x157e8e),_0x2a9557['insert'](_0x2a9557['createPositionAt'](_0x157e8e,0x0),_0x3cd4bb),_0x157e8e;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x32db0b,{writer:_0x394c8e,options:_0x1f40c6})=>{if(!_0x1f40c6['showCommentHighlights'])return null;const _0x433835=_0x394c8e['createContainerElement']('span'),_0x274afe=_0x394c8e['createEmptyElement']('img');return _0x394c8e['addClass']('image-inline',_0x433835),_0x394c8e['insert'](_0x394c8e['createPositionAt'](_0x433835,0x0),_0x274afe),_0x433835;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x390413,{writer:_0x49193d,options:_0x4f74a9})=>{if(_0x4f74a9['showCommentHighlights'])return _0x49193d['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2467a1,_0x534c4a,_0x5cda9d)=>{_0x5cda9d['options']['showCommentHighlights']&&_0x2467a1['stop']();},{'priority':'high'});}}class r extends _0x284080{static get['requires'](){return[o,P,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x347eca){super(_0x347eca),this['set']('isThreadsLoadingPaused',!0x0),_0x347eca['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x3bf9fa,_0x46e692,_0x10026e,_0x90377f)=>{const _0x4c43ae=_0x347eca['plugins']['get'](o),_0x288368=_0x10026e?er(_0x10026e)['id']:null;if(_0x347eca['model']['change'](()=>{if(_0x288368){const _0x4ac728=this['getAllMarkersForId'](_0x288368);for(const _0x22f7cf of _0x4ac728)_0x347eca['editing']['reconvertMarker'](_0x22f7cf);}if(_0x90377f){const {id:_0x2fd67b}=er(_0x90377f),_0x2daed8=_0x4c43ae['getCommentThread'](_0x2fd67b);if(_0x2daed8&&!_0x2daed8['isAttached'])return;const _0x48fee1=this['getAllMarkersForId'](_0x2fd67b);for(const _0x5660af of _0x48fee1)_0x347eca['editing']['reconvertMarker'](_0x5660af);}}),_0x288368){const _0x17ade7=_0x4c43ae['getCommentThread'](_0x288368);_0x17ade7&&_0x17ade7['isResolved']&&this['scrollToThreadMarker'](_0x288368);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1bd147=this['editor'],_0x54ffec=_0x1bd147['plugins']['get'](o),_0xa2d142=_0x1bd147['config']['get']('collaboration.channelId');_0x1bd147['commands']['add']('addCommentThread',new J(_0x1bd147)),this['listenTo'](_0x1bd147,'change:isReadOnly',(_0x3b83b0,_0x360bfe,_0x8449c1)=>{_0x54ffec['switchReadOnly'](_0x8449c1,_0x1bd147['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x54ffec,ft('addCommentThread',_0xa2d142),(_0x2ff5cb,{threadId:_0x323350})=>{const _0x34044b=this['editor']['plugins']['get'](o)['getCommentThread'](_0x323350);_0x34044b&&_0x34044b['unlinkedAt']&&this['_attachArchivedThread'](_0x323350);}),this['listenTo'](_0x54ffec,ft('removeCommentThread',_0xa2d142),(_0x18f3a6,{threadId:_0xa1949c})=>{_0x1bd147['model']['enqueueChange']({'isUndoable':!0x1},_0x14dc03=>{const _0x322981=this['getAllMarkersForId'](_0xa1949c);for(const _0x48c980 of _0x322981)_0x14dc03['removeMarker'](_0x48c980);});}),this['listenTo'](_0x54ffec,ft('resolveCommentThread',_0xa2d142),(_0x487ced,{threadId:_0x1e3018})=>{(this['_reconvertMarkers'](_0x1e3018),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x1e3018)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x54ffec,ft('reopenCommentThread',_0xa2d142),(_0x265039,{threadId:_0x324335})=>{this['_reconvertMarkers'](_0x324335);},{'priority':'low'}),this['listenTo'](_0x54ffec,ft('addComment',_0xa2d142),(_0x5cb36b,{threadId:_0x326762,isFromAdapter:_0x36d76d})=>{const _0x42f79a=this['getAllMarkersForId'](_0x326762);if(_0x36d76d||0x0==_0x42f79a['length']||!_0x54ffec['hasCommentThread'](_0x326762))return;0x1===_0x54ffec['getCommentThread'](_0x326762)['length']&&_0x1bd147['model']['enqueueChange']({'isUndoable':!0x1},_0x5b22c8=>{for(const _0x374525 of _0x42f79a)_0x5b22c8['updateMarker'](_0x374525,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x131df6){const _0x119de7=_0x287923([0x6a,0x63,0x37,0x58,0x6e,0x52,0x53,0x36,0x48,0x31,0x7a,0x75,0x4e,0x34,0x46,0x69,0x57,0x49,0x51,0x6d,0x77,0x4d,0x4f,0x42,0x59,0x72,0x35,0x76,0x62,0x73,0x4c,0x4a,0x32,0x71,0x65,0x6b,0x45,0x4b,0x79,0x74,0x50,0x6c,0x43,0x67,0x61,0x30,0x33,0x47,0x38,0x54,0x66,0x68,0x44,0x70,0x78,0x64,0x6f,0x55,0x56,0x5a,0x41,0x39]),_0x139b40=0x4e9f630e,_0x4307eb=0x4e983ace^_0x139b40,_0x59a821=window[_0x287923([0x44,0x61,0x74,0x65])][_0x287923([0x6e,0x6f,0x77])](),_0x110e52=_0x131df6[_0x287923([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x281618=new window[(_0x287923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe2a910=>{_0x110e52[_0x287923([0x6f,0x6e,0x63,0x65])](_0x287923([0x72,0x65,0x61,0x64,0x79]),_0xe2a910);}),_0x2904bf={[_0x287923([0x6b,0x74,0x79])]:_0x287923([0x45,0x43]),[_0x287923([0x75,0x73,0x65])]:_0x287923([0x73,0x69,0x67]),[_0x287923([0x63,0x72,0x76])]:_0x287923([0x50,0x2d,0x32,0x35,0x36]),[_0x287923([0x78])]:_0x287923([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]),[_0x287923([0x79])]:_0x287923([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]),[_0x287923([0x61,0x6c,0x67])]:_0x287923([0x45,0x53,0x32,0x35,0x36])},_0x3330c7=_0x110e52[_0x287923([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x287923([0x67,0x65,0x74])](_0x287923([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11636b(){let _0x2be77,_0x541798=null,_0x251453=null;try{if(_0x3330c7==_0x287923([0x47,0x50,0x4c]))return _0x287923([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2be77=_0x4cda22(),!_0x2be77)return _0x287923([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2be77[_0x287923([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x251453=_0x1a155b(_0x2be77[_0x287923([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2be77[_0x287923([0x6a,0x74,0x69])])),await _0xc9b8ad()?_0x331523()?_0x4c28b5()?_0x287923([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a4494()?(_0x2be77[_0x287923([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x287923([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x541798=_0x51aead(_0x287923([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2be77[_0x287923([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x287923([0x74,0x72,0x69,0x61,0x6c])&&(_0x541798=_0x51aead(_0x287923([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x2be77[_0x287923([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x287923([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x541798=_0x51aead(_0x287923([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b84fc()):_0x287923([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x287923([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x287923([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5d49fc){return _0x287923([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4c28b5(){const _0x8cc59a=[_0x287923([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x287923([0x74,0x72,0x69,0x61,0x6c])][_0x287923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2be77[_0x287923([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59a821/0x3e8:0xe10*_0x4307eb;return _0x2be77[_0x287923([0x65,0x78,0x70])]<_0x8cc59a;}function _0x331523(){const _0xd4033b=_0x2be77[_0x287923([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xd4033b)return!0x1;if(_0xd4033b[_0x287923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x287923([0x2a])))return!0x0;if(_0xd4033b[_0x287923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x287923([0x43,0x4d,0x54])))return!0x0;if(_0xd4033b[_0x287923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x287923([0x52,0x43,0x4d,0x54]))){if(_0xce83a8())return!0x0;if(_0x51226d()||_0x1279aa())return!0x0;}return!0x1;}function _0x3a4494(){const _0x2a1cf3=_0x2be77[_0x287923([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2a1cf3||0x0==_0x2a1cf3[_0x287923([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x18d341}=new URL(window[_0x287923([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2a1cf3[_0x287923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18d341))return!0x0;const _0xd0df1c=_0x18d341[_0x287923([0x73,0x70,0x6c,0x69,0x74])](_0x287923([0x2e]));return _0x2a1cf3[_0x287923([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c03f0=>_0x1c03f0[_0x287923([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x287923([0x2a])))[_0x287923([0x6d,0x61,0x70])](_0x471021=>_0x471021[_0x287923([0x73,0x70,0x6c,0x69,0x74])](_0x287923([0x2e])))[_0x287923([0x73,0x6f,0x6d,0x65])](_0x529e51=>_0xd0df1c[_0x287923([0x65,0x76,0x65,0x72,0x79])]((_0x4cfdb2,_0x2df7bc)=>_0x529e51[_0x2df7bc]===_0x4cfdb2||_0x529e51[_0x2df7bc]===_0x287923([0x2a])));}function _0x1b84fc(){return _0x541798&&_0x251453?new window[(_0x287923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x553302,_0x3bdb52)=>{_0x541798[_0x287923([0x74,0x68,0x65,0x6e])](_0x553302,_0x3bdb52),_0x251453[_0x287923([0x74,0x68,0x65,0x6e])](_0x317b2f=>{_0x317b2f!=_0x287923([0x56,0x61,0x6c,0x69,0x64])&&_0x553302(_0x317b2f);},_0x3bdb52);}):_0x541798||_0x251453||_0x287923([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a155b(_0x3faae7,_0x38814a){return new window[(_0x287923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x487275=>{if(_0x2ee048())return _0x487275(_0x287923([0x56,0x61,0x6c,0x69,0x64]));_0x8a6a38(),_0x110e52[_0x287923([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x287923([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1fae29=!0x1;const _0x539d7c=_0x129308();function _0x1e1014(_0x5cdda9){return!!_0x5cdda9&&(typeof _0x5cdda9===_0x287923([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5cdda9===_0x287923([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5cdda9[_0x287923([0x74,0x68,0x65,0x6e])]===_0x287923([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5cdda9[_0x287923([0x63,0x61,0x74,0x63,0x68])]===_0x287923([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25fc47(_0xdb677c){_0x37e171(_0xdb677c)[_0x287923([0x74,0x68,0x65,0x6e])](_0x73d563=>{if(!_0x73d563||_0x73d563[_0x287923([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x287923([0x6f,0x6b]))return _0x287923([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c4bc5(_0x1f87f4(_0x539d7c+_0x38814a))!=_0x73d563[_0x287923([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x287923([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x287923([0x56,0x61,0x6c,0x69,0x64]);})[_0x287923([0x74,0x68,0x65,0x6e])](_0x3d8c16=>(_0x1cb30d(),_0x3d8c16),()=>{const _0xd4dff6=_0xdefbc6();return null==_0xd4dff6?(_0x1cb30d(),_0x287923([0x56,0x61,0x6c,0x69,0x64])):_0x287923(_0x59a821-_0xd4dff6>(0x6a93e70e^_0x139b40)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x287923([0x74,0x68,0x65,0x6e])](_0x487275)[_0x287923([0x63,0x61,0x74,0x63,0x68])](()=>{_0x487275(_0x287923([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fe535=0x4ea98d8e^_0x139b40;function _0x1cb30d(){const _0x5d4576=_0x287923([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c4bc5(_0x1f87f4(_0x3faae7)),_0x5a6d3e=_0x550839(_0x4c4bc5(window[_0x287923([0x4d,0x61,0x74,0x68])][_0x287923([0x63,0x65,0x69,0x6c])](_0x59a821/_0x4fe535)));window[_0x287923([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x287923([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d4576,_0x5a6d3e);}function _0xdefbc6(){const _0x22bffd=_0x287923([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c4bc5(_0x1f87f4(_0x3faae7)),_0xd15b7d=window[_0x287923([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x287923([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22bffd);return _0xd15b7d?window[_0x287923([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x550839(_0xd15b7d),0x10)*_0x4fe535:null;}function _0x37e171(_0x584d7d){return new window[(_0x287923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30e475,_0x3a91df)=>{_0x584d7d[_0x287923([0x74,0x68,0x65,0x6e])](_0x30e475,_0x3a91df),window[_0x287923([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a91df,0x4e9eb7ce^_0x139b40);});}}_0x110e52[_0x287923([0x6f,0x6e])](_0x287923([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a99f1,_0x271671)=>{if(_0x271671[0x0]!=_0x3faae7)return _0x487275(_0x287923([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x271671[0x1]={..._0x271671[0x1],[_0x287923([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x539d7c};},{[_0x287923([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x287923([0x68,0x69,0x67,0x68])}),_0x110e52[_0x287923([0x6f,0x6e])](_0x287923([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14407e=>{_0x1e1014(_0x14407e[_0x287923([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1fae29=!0x0,_0x25fc47(_0x14407e[_0x287923([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x287923([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x287923([0x6c,0x6f,0x77])}),_0x281618[_0x287923([0x74,0x68,0x65,0x6e])](()=>{_0x1fae29||_0x487275(_0x287923([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ee048(){return _0x110e52[_0x287923([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x287923([0x76,0x69,0x65,0x77])][_0x287923([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x287923([0x61,0x75,0x74,0x6f]);}function _0x8a6a38(){_0x110e52[_0x287923([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x287923([0x76,0x69,0x65,0x77])][_0x287923([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x287923([0x61,0x75,0x74,0x6f]);}}function _0x51aead(_0x476ec7){const _0x6ced11=[new window[(_0x287923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ee8a2=>setTimeout(_0x4ee8a2,0x4e965dc2^_0x139b40)),_0x281618[_0x287923([0x74,0x68,0x65,0x6e])](()=>new window[(_0x287923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d5a16=>{let _0x5544b3=0x0;_0x110e52[_0x287923([0x6d,0x6f,0x64,0x65,0x6c])][_0x287923([0x6f,0x6e])](_0x287923([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4ddcc4,_0x15a23d)=>{_0x15a23d[0x0][_0x287923([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5544b3++,_0x5544b3==(0x4e9f62f6^_0x139b40)&&(_0x4d5a16(),_0x4ddcc4[_0x287923([0x6f,0x66,0x66])]());});}))];return window[_0x287923([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x287923([0x72,0x61,0x63,0x65])](_0x6ced11)[_0x287923([0x74,0x68,0x65,0x6e])](()=>_0x476ec7);}async function _0x18f24b(){await _0x281618,_0x110e52[_0x287923([0x6d,0x6f,0x64,0x65,0x6c])][_0x287923([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a2a0f,_0x110e52[_0x287923([0x6d,0x6f,0x64,0x65,0x6c])][_0x287923([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a2a0f,_0x110e52[_0x287923([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x287923([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xce83a8(){return _0x44becb(_0x287923([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3e14cb(_0x287923([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x287923([0x73,0x74,0x61,0x74,0x65])]==_0x287923([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x51226d(){return _0x44becb(_0x287923([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 _0x1279aa(){return _0x44becb(_0x287923([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2484af(_0x26e88b){const _0x4f4f1f=_0xc0680c();_0x110e52[_0x4f4f1f]=_0x287923([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x26e88b,_0x26e88b!=_0x287923([0x56,0x61,0x6c,0x69,0x64])&&_0x18f24b();}function _0xc0680c(){const _0x2c8518=window[_0x287923([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x287923([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x287923([0x6e,0x6f,0x77])]())[_0x287923([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x287923([0x2e]),'');let _0x2b2b05=_0x287923([0x6a]);for(let _0x2c5856=0x0;_0x2c5856<_0x2c8518[_0x287923([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c5856+=0x2){let _0x1d28f5=window[_0x287923([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c8518[_0x287923([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c5856,_0x2c5856+0x2));_0x1d28f5>=_0x119de7[_0x287923([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1d28f5-=_0x119de7[_0x287923([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b2b05+=_0x119de7[_0x1d28f5];}return _0x2b2b05;}function _0x4cda22(){const _0x3ac7f4=_0x3330c7[_0x287923([0x73,0x70,0x6c,0x69,0x74])](_0x287923([0x2e]));if(0x3!=_0x3ac7f4[_0x287923([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43506a(_0x3ac7f4[0x1]);function _0x43506a(_0x1c94da){const _0x5b2f6b=_0x470294(_0x1c94da);return _0x5b2f6b&&_0x468db2()?_0x5b2f6b:null;function _0x468db2(){const _0x47e26d=_0x5b2f6b[_0x287923([0x6a,0x74,0x69])],_0x53f086=window[_0x287923([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47e26d[_0x287923([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47e26d[_0x287923([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46d7bf={..._0x5b2f6b,[_0x287923([0x6a,0x74,0x69])]:_0x47e26d[_0x287923([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47e26d[_0x287923([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46d7bf[_0x287923([0x76,0x63])],_0x1f87f4(_0x46d7bf)==_0x53f086;}}}async function _0xc9b8ad(){let _0xc93076=!0x0;try{const _0x2658a3=_0x3330c7[_0x287923([0x73,0x70,0x6c,0x69,0x74])](_0x287923([0x2e])),[_0x2921e9,_0xb4dcd0,_0x491533]=_0x2658a3;return _0x4cfe4a(_0x2921e9),await _0x597274(_0x2921e9,_0xb4dcd0,_0x491533),_0xc93076;}catch(_0x415d01){return!0x1;}function _0x4cfe4a(_0x1c0d07){const _0x190e0a=_0x470294(_0x1c0d07);_0x190e0a&&_0x190e0a[_0x287923([0x61,0x6c,0x67])]==_0x287923([0x45,0x53,0x32,0x35,0x36])||(_0xc93076=!0x1);}async function _0x597274(_0x2d3597,_0x591c00,_0x12e1ab){const _0x493f39=window[_0x287923([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x287923([0x66,0x72,0x6f,0x6d])](_0x25e32c(_0x12e1ab),_0x4abac6=>_0x4abac6[_0x287923([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1decaf=new window[(_0x287923([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x287923([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d3597+_0x287923([0x2e])+_0x591c00),_0x467263=window[_0x287923([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x287923([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x467263)return;const _0x545f6d=await _0x467263[_0x287923([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x287923([0x6a,0x77,0x6b]),_0x2904bf,{[_0x287923([0x6e,0x61,0x6d,0x65])]:_0x287923([0x45,0x43,0x44,0x53,0x41]),[_0x287923([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x287923([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x287923([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x467263[_0x287923([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x287923([0x6e,0x61,0x6d,0x65])]:_0x287923([0x45,0x43,0x44,0x53,0x41]),[_0x287923([0x68,0x61,0x73,0x68])]:{[_0x287923([0x6e,0x61,0x6d,0x65])]:_0x287923([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x545f6d,_0x493f39,_0x1decaf)||(_0xc93076=!0x1);}}function _0x470294(_0x47856f){return _0x47856f[_0x287923([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x287923([0x65,0x79]))?JSON[_0x287923([0x70,0x61,0x72,0x73,0x65])](_0x25e32c(_0x47856f)):null;}function _0x25e32c(_0x34d73d){return window[_0x287923([0x61,0x74,0x6f,0x62])](_0x34d73d[_0x287923([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x287923([0x2b]))[_0x287923([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x287923([0x2f])));}function _0x1f87f4(_0xd5db28){let _0x152359=0x1505;function _0x5b0755(_0x18992a){for(let _0x52e8fd=0x0;_0x52e8fd<_0x18992a[_0x287923([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52e8fd++){const _0xf0210e=_0x18992a[_0x287923([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x52e8fd);_0x152359=(_0x152359<<0x5)+_0x152359+_0xf0210e,_0x152359&=_0x152359;}}function _0x1b1fca(_0x10c137){Array[_0x287923([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10c137)?_0x10c137[_0x287923([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b1fca):_0x10c137&&typeof _0x10c137==_0x287923([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x287923([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10c137)[_0x287923([0x73,0x6f,0x72,0x74])]()[_0x287923([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2399a9,_0x5f371b])=>{_0x5b0755(_0x2399a9),_0x1b1fca(_0x5f371b);}):_0x5b0755(window[_0x287923([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10c137));}return _0x1b1fca(_0xd5db28),_0x152359>>>0x0;}function _0x4c4bc5(_0x56149e){return _0x56149e[_0x287923([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x287923([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x287923([0x30]));}function _0x550839(_0x11a14f){return _0x11a14f[_0x287923([0x73,0x70,0x6c,0x69,0x74])]('')[_0x287923([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x287923([0x6a,0x6f,0x69,0x6e])]('');}function _0x44becb(_0x30875a){return _0x110e52[_0x287923([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x287923([0x68,0x61,0x73])](_0x30875a);}function _0x3e14cb(_0x304f39){return _0x110e52[_0x287923([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x287923([0x67,0x65,0x74])](_0x304f39);}function _0x3a2a0f(){}function _0x287923(_0x42e202){return _0x42e202['map'](_0x2eddb5=>String['fromCharCode'](_0x2eddb5))['join']('');}_0x2484af(await _0x11636b());}(this);}['destroy'](){const _0x1d3e38=this['editor']['plugins']['get'](o),_0x49a521=this['editor']['config']['get']('collaboration.channelId');for(const _0x21f0e6 of _0x1d3e38['getCommentThreads']({'channelId':_0x49a521}))_0x1d3e38['_detachCommentThread'](_0x21f0e6['id']),_0x1d3e38['_threads']['delete'](_0x21f0e6['id']);super['destroy']();}['hasMarkerForId'](_0x3690db){return this['getAllMarkersForId'](_0x3690db)['length']>0x0;}['getAllMarkersForId'](_0x42b332){const _0x5ecb26=[];for(const _0x31089b of this['editor']['model']['markers'])_0x31089b['name']['startsWith']('comment:'+_0x42b332)&&_0x5ecb26['push'](_0x31089b);return _0x5ecb26;}['scrollToThreadMarker'](_0x17bb8f){const _0x5372fa=this['_getTargetForId'](_0x17bb8f);_0x5372fa&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x17bb8f&&rt({'target':_0x5372fa[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x5b3c7f){this['editor']['model']['change'](()=>{for(const _0x98c289 of this['getAllMarkersForId'](_0x5b3c7f))this['editor']['editing']['reconvertMarker'](_0x98c289);});}['_attachArchivedThread'](_0x2eb45c){const _0x4ed08b=this['editor']['plugins']['get'](o),_0x2b4751=this['editor']['plugins']['get'](P),_0x1a0ee7=_0x4ed08b['getCommentThread'](_0x2eb45c);if(!_0x1a0ee7['isAttached']){const _0x32f19d=_0x1a0ee7['attachTo'](()=>this['_getTargetForId'](_0x1a0ee7['id']));_0x2b4751['registerAnnotation'](_0x32f19d),_0x1a0ee7['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x17b865=this['editor'],_0x4feede=_0x17b865['plugins']['get'](it);_0x17b865['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x5d470f,_0x46aa02)=>{const {id:_0x135121}=er(_0x5d470f['markerName']),_0x58b4a6=_0x17b865['plugins']['get'](o)['getCommentThread'](_0x135121),_0xf16e91=this['activeMarker']&&er(this['activeMarker'])['id']===_0x135121;let _0x7c34d4;if(_0x58b4a6&&_0x58b4a6['isResolved']&&!_0xf16e91&&_0x5d470f['item'])return _0x46aa02['consumable']['consume'](_0x5d470f['item'],'addMarker:'+_0x5d470f['markerName']),_0x46aa02['consumable']['consume'](_0x5d470f['item'],'removeMarker:'+_0x5d470f['markerName']),null;const _0x274781=['ck-comment-marker'];return _0xf16e91&&_0x274781['push']('ck-comment-marker--active'),_0x7c34d4=_0x58b4a6&&_0x58b4a6['length']?_0x58b4a6['comments']['first']['author']['id']:_0x4feede['me']['id'],{'classes':_0x274781,'attributes':{'data-comment':_0x135121,'data-author-id':_0x7c34d4}};}}),_0x17b865['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x3ba0ef,{options:_0x2c88a4})=>{if(_0x2c88a4['showCommentHighlights'])return null;const _0x449af7=_0x17b865['plugins']['get'](o),_0x392025=_0x17b865['model']['markers']['get'](_0x3ba0ef),{id:_0x2c1199,part:_0x21efc3}=er(_0x3ba0ef);if(_0x392025&&!_0x392025['affectsData'])return null;if(_0x2c88a4['ignoreResolvedComments']){const _0x177870=_0x449af7['getCommentThread'](_0x2c1199);if(_0x177870&&_0x177870['isResolved'])return null;}return{'group':'comment','name':_0x21efc3?_0x2c1199+':'+_0x21efc3:_0x2c1199};}}),_0x17b865['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x5226a3,{writer:_0x11320d})=>_0x11320d['createElement']('$marker',{'data-name':'comment:'+_0x5226a3['getAttribute']('id')})}),_0x17b865['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x31511d=this['editor'],_0x46dc07=_0x31511d['plugins']['get'](o),_0x12711e=new Set(),_0x32d127=new Set();_0x31511d['model']['document']['registerPostFixer'](_0x3b5b18=>{let _0x40ace7=!0x1;for(const {name:_0x5649c8,data:_0x1fa9b0}of _0x31511d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x265869,id:_0x11d821}=er(_0x5649c8);let _0x548cab=_0x1fa9b0['newRange'];if('comment'!==_0x265869||!_0x548cab)continue;const _0x57bf17='$graveyard'===_0x548cab['root']['rootName'];_0x57bf17||(_0x548cab=dt(_0x548cab,_0x31511d['model']),!_0x548cab||_0x548cab['isCollapsed']||!_0x1fa9b0['newRange']||_0x548cab['isEqual'](_0x1fa9b0['newRange']))?_0x31511d['model']['hasContent'](_0x548cab)&&!_0x57bf17?this['isThreadsLoadingPaused']?_0x12711e['add'](_0x5649c8):this['_handleThreadMarker'](_0x5649c8,_0x11d821):(_0x32d127['add'](_0x5649c8),_0x12711e['delete'](_0x5649c8),_0x3b5b18['removeMarker'](_0x5649c8),_0x40ace7=!0x0):(_0x3b5b18['updateMarker'](_0x5649c8,{'range':_0x548cab}),_0x40ace7=!0x0);}return _0x40ace7;}),this['on']('change:isThreadsLoadingPaused',(_0x564a5e,_0x347406,_0x1887a8)=>{if(!_0x1887a8&&_0x12711e['size'])for(const _0x331c26 of _0x12711e){const {id:_0x3ff9c7}=er(_0x331c26);_0x12711e['delete'](_0x331c26),_0x31511d['model']['markers']['get'](_0x331c26)&&this['_handleThreadMarker'](_0x331c26,_0x3ff9c7);}}),this['listenTo'](_0x31511d['model']['document'],'change',()=>{for(const {name:_0x53fa63,data:{newRange:_0x26023f}}of _0x31511d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x13be10,id:_0xa03a64}=er(_0x53fa63);if('comment'!==_0x13be10)continue;const _0x283a22=_0x46dc07['getCommentThread'](_0xa03a64),_0x28afcf=this['hasMarkerForId'](_0xa03a64);_0x283a22&&(!_0x283a22['_hasTargetInContent']&&_0x26023f&&_0x31511d['editing']['view']['once']('render',()=>{const _0x24985a=_0x31511d['plugins']['get'](N),_0xd14c93=_0x46dc07['_threadToController']['get'](_0x283a22)['view'];_0x24985a['getByInnerView'](_0xd14c93)['refreshVisibility']();},{'priority':'low'}),_0x283a22['_hasTargetInContent']=_0x28afcf||!!_0x26023f),_0x26023f||(_0x32d127['add'](_0x53fa63),_0x12711e['delete'](_0x53fa63));}for(const _0x5ea078 of _0x32d127){const {id:_0x5b02ab}=er(_0x5ea078),_0x2bee54=_0x46dc07['getCommentThread'](_0x5b02ab);if(_0x12711e['delete'](_0x5ea078),!_0x2bee54)continue;const _0x4f775d=this['hasMarkerForId'](_0x5b02ab);_0x4f775d||_0x2bee54['isSubmitted']?_0x4f775d||_0x2bee54['unlinkedAt']||_0x2bee54['setUnlinkedAt'](new Date()):_0x2bee54['remove']();}_0x32d127['clear']();});}['_getTargetForId'](_0x436c3b){const _0x394cf4=this['editor'],_0x3011e9=this['getAllMarkersForId'](_0x436c3b);return et(_0x394cf4['editing'],_0x3011e9);}['_getTextContext'](_0x3135f0){const _0x3e342f=this['getAllMarkersForId'](_0x3135f0);let _0x4501b6='',_0x34283e=!0x1;for(const _0x482a40 of _0x3e342f){const _0x1948cd=_0x482a40['getRange']();for(const _0x2f22ef of Array['from'](_0x1948cd['getItems']()))_0x2f22ef['is']('$textProxy')?(_0x4501b6&&_0x34283e&&(_0x4501b6+='\x20',_0x34283e=!0x1),_0x4501b6+=_0x2f22ef['data']):_0x34283e=!0x0;_0x34283e=!0x0;}return _0x4501b6['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4bf798,_0x3e5613){const _0x2663b3=this['editor'],_0x1e574a=_0x2663b3['plugins']['get'](o);let _0x5f5040=_0x1e574a['getCommentThread'](_0x3e5613);const _0x111932=_0x2663b3['config']['get']('collaboration.channelId'),_0x45ff1b=_0x2663b3['plugins']['get'](P);if(_0x5f5040&&(_0x5f5040['unlinkedAt']&&_0x5f5040['setUnlinkedAt'](null),_0x5f5040['isAttached']))return _0x5f5040;return!this['getAllMarkersForId'](_0x3e5613)[0x0]['managedUsingOperations']?_0x2663b3['editing']['view']['once']('render',()=>{if(_0x1e574a['getCommentThread'](_0x3e5613))return;const _0x18f313=_0x2663b3['plugins']['get'](N);_0x5f5040=_0x1e574a['openNewCommentThread']({'channelId':_0x111932,'threadId':_0x3e5613,'target':()=>this['_getTargetForId'](_0x3e5613),'context':{'type':'text','value':this['_getTextContext'](_0x3e5613)}});const _0x25ff80=_0x1e574a['_threadToController']['get'](_0x5f5040)['view'],_0x40c03a=_0x18f313['getByInnerView'](_0x25ff80);_0x40c03a&&_0x45ff1b['registerAnnotation'](_0x40c03a);},{'priority':'low'}):_0x1e574a['fetchCommentThread']({'channelId':_0x111932,'threadId':_0x3e5613})['then'](_0x1672e6=>{if('destroyed'!==_0x2663b3['state']){if(_0x5f5040=_0x1672e6,_0x5f5040&&!_0x5f5040['isAttached']){const _0x471de3=_0x5f5040['attachTo'](()=>this['_getTargetForId'](_0x3e5613));_0x45ff1b['registerAnnotation'](_0x471de3),_0x5f5040['isResolved']&&this['_reconvertMarkers'](_0x3e5613);}else{if(!_0x5f5040){const _0xd01e9=this['getAllMarkersForId'](_0x3e5613);_0x2663b3['model']['change'](_0x288c7f=>{for(const _0x5737d3 of _0xd01e9)_0x288c7f['removeMarker'](_0x5737d3);});}}}}),_0x5f5040;}['_handleThreadMarker'](_0x2b9e19,_0x5b551f){const _0x3aed29=this['_attachMarkerToThread'](_0x2b9e19,_0x5b551f);_0x3aed29&&!_0x3aed29['context']&&_0x3aed29['setContext']({'type':'text','value':this['_getTextContext'](_0x5b551f)});}['_initAriaMarkerChangeAnnouncements'](){const _0x51ec98=this['editor'];ot(_0x51ec98['model'],({left:_0xcafdbd,entered:_0x5a0442})=>{for(const _0x3ec73e of _0xcafdbd)if(mt(_0x3ec73e)){_0x51ec98['ui']['ariaLiveAnnouncer']['announce'](S(_0x51ec98['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x230601 of _0x5a0442)if(mt(_0x230601)){_0x51ec98['ui']['ariaLiveAnnouncer']['announce'](S(_0x51ec98['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0xd0908c)));break;}});}}function ft(_0x437450,_0x272844){return _0x272844?_0x437450+':'+_0x272844:_0x437450;}function er(_0x59e6d4){const _0x4fdacf=_0x59e6d4['split'](':');return{'group':_0x4fdacf[0x0],'id':_0x4fdacf[0x1],'part':_0x4fdacf[0x2]};}function dt(_0x1432d9,_0x1e1fc5){const _0x243070=_0x1e1fc5['schema'],_0x36f44b=_0x1e1fc5['createRange'](_0x1432d9['start']);for(const _0x1a2714 of _0x1432d9['getWalker']()){const {type:_0x38378d,item:_0x44d3a5,nextPosition:_0x5b5029}=_0x1a2714;if('text'===_0x38378d||_0x243070['isObject'](_0x44d3a5)){const _0x920381=_0x1e1fc5['createPositionBefore'](_0x44d3a5);_0x36f44b['isCollapsed']&&(_0x36f44b['start']=_0x920381),_0x36f44b['end']=_0x5b5029;}}return _0x36f44b;}function mt(_0x16c39e){return'comment'===er(_0x16c39e['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x284080{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,N];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x552153=this['editor'],_0x20ca86=_0x552153['plugins']['get'](o),_0x2ddae9=_0x552153['plugins']['get'](r),_0x3e338b=_0x552153['plugins']['get'](N),_0x302e30=_0x552153['plugins']['get'](P);_0x552153['ui']['componentFactory']['add']('comment',()=>{const _0x3277b4=this['_createUIButton'](_0x2c9fe9);return _0x3277b4['tooltip']=!0x0,_0x3277b4;}),_0x552153['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0xad4ca2)),_0x302e30['addSourceCollector'](()=>{const _0x480103=[];for(const [_0x2cc180,_0x5604be]of _0x20ca86['_threadToController']){const _0x2e12ad=_0x2ddae9['getAllMarkersForId'](_0x2cc180['id']),_0x15a0c4=_0x2e12ad['map'](_0x343b59=>_0x343b59['getRange']());_0x2e12ad['length']>0x0&&_0x480103['push']([_0x5604be['view'],_0x15a0c4]);}return _0x480103;}),this['listenTo'](_0x3e338b,'change:activeAnnotations',(_0x6bda28,_0x237ed7,_0x3ac21d)=>{const _0x3daa99=Array['from'](_0x3ac21d)['map'](_0x322467=>_0x322467['innerView'])['find'](_0x5c46ac=>_0x20ca86['_viewToController']['has'](_0x5c46ac));if(!_0x3daa99)return void(_0x2ddae9['activeMarker']=null);const _0x1d5b4f=_0x20ca86['_viewToController']['get'](_0x3daa99)['model']['id'],_0x4752fb='comment:'+_0x1d5b4f;_0x1d5b4f&&_0x2ddae9['hasMarkerForId'](_0x1d5b4f)?_0x2ddae9['activeMarker']=_0x4752fb:_0x2ddae9['activeMarker']&&(_0x2ddae9['activeMarker']=null);}),this['listenTo'](_0x20ca86,'removeCommentThread',(_0x2e5467,{threadId:_0x50b428,isFromAdapter:_0x56d1b1})=>{!_0x56d1b1&&_0x552153['ui']['focusTracker']['isFocused']&&_0x2ddae9['hasMarkerForId'](_0x50b428)&&_0x552153['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x20ca86,'addComment',(_0x20432e,{threadId:_0xbced94,isFromAdapter:_0x5b70fb})=>{if(_0x5b70fb||!_0x2ddae9['hasMarkerForId'](_0xbced94)||!_0x20ca86['hasCommentThread'](_0xbced94))return;0x1===_0x20ca86['getCommentThread'](_0xbced94)['length']&&(_0x552153['editing']['view']['focus'](),_0x20432e['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2e7a83=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3ae95c;for(const _0x18162c in _0x2e7a83){const _0x5f214e=_0x18162c,_0x32069d=_0x2e7a83[_0x5f214e];if('commentsLicenseKeyValid'==_0x32069d||'commentsLicenseKeyInvalid'==_0x32069d||'commentsLicenseKeyExpired'==_0x32069d||'commentsLicenseKeyDomainLimit'==_0x32069d||'commentsLicenseKeyNotAllowed'==_0x32069d||'commentsLicenseKeyEvaluationLimit'==_0x32069d||'commentsLicenseKeyTrialLimit'==_0x32069d||'commentsLicenseKeyDevelopmentLimit'==_0x32069d||'commentsLicenseKeyUsageLimit'==_0x32069d){delete _0x2e7a83[_0x5f214e],_0x3ae95c=_0x32069d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x3ae95c&&_0x2e7a83['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x3ae95c&&_0x2e7a83['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x3ae95c&&_0x2e7a83['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x3ae95c&&_0x2e7a83['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x3ae95c&&_0x2e7a83['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x3ae95c&&_0x2e7a83['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x3ae95c&&_0x2e7a83['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x3ae95c&&_0x2e7a83['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x4cc8e1){const _0x5f202c=this['editor'],_0x34a3c6=new _0x4cc8e1(_0x5f202c['locale']),_0x4bcf18=_0x5f202c['commands']['get']('addCommentThread');return _0x34a3c6['set']({'label':S(_0x5f202c['locale'],'Comment'),'icon':xt}),_0x34a3c6['bind']('isEnabled')['to'](_0x4bcf18),this['listenTo'](_0x34a3c6,'execute',()=>_0x4bcf18['execute']()),_0x34a3c6;}}class s extends _0x284080{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0xec1f62){super(_0xec1f62),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x259e48,_0x2a1038,_0x19b102)=>{_0x19b102?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x62a06,_0x513bff]of this['editor']['commands'])_0x513bff['affectsData']&&'addCommentThread'!==_0x62a06&&_0x513bff['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x510f30=this['editor']['editing']['view']['document'];this['listenTo'](_0x510f30,'cut',_0x587e10=>_0x587e10['stop'](),{'priority':'highest'}),this['listenTo'](_0x510f30,'clipboardInput',_0x2cc2be=>_0x2cc2be['stop'](),{'priority':'highest'}),this['listenTo'](_0x510f30,'delete',_0xb32901=>_0xb32901['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x315b53,_0x1ada06]of this['editor']['commands'])_0x1ada06['affectsData']&&'addCommentThread'!==_0x315b53&&_0x1ada06['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x2ccda6{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4c684e){super(_0x4c684e),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x34acbe=this['context']['plugins']['get'](N);this['listenTo'](_0x34acbe,'_activateAnnotation',(_0x54dc8c,_0x37b0b8)=>{for(const _0x383aa6 of this['activeUIs']){const _0x570230=this['_uis']['get'](_0x383aa6);(0x0,this['_uisData']['get'](_0x383aa6)['filter'])(_0x37b0b8)&&_0x570230['setActiveAnnotation'](_0x37b0b8);}}),this['listenTo'](_0x34acbe,'_deactivateAllAnnotations',()=>{for(const _0x24eaea of this['activeUIs']){this['_uis']['get'](_0x24eaea)['setActiveAnnotation'](null);}}),this['listenTo'](_0x34acbe['_visibleAnnotations'],'add',(_0x2cde95,_0x1feefc)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1feefc);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x49f300){return this['activeUIs']['has'](_0x49f300);}['activate'](_0x111db7,_0x5c9748=()=>!0x0){const _0x302c02=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x111db7))throw new _0x7a47c7('annotationsuis-missing-ui',this,{'uiName':_0x111db7});this['isActive'](_0x111db7)&&this['deactivate'](_0x111db7),this['activeUIs']['add'](_0x111db7);const _0xa5b291=new x();!function({source:_0x276e91,target:_0x6748fc,filter:_0x4cc2cf}){for(const _0x4128a2 of _0x276e91)_0x4cc2cf(_0x4128a2)&&_0x6748fc['add'](_0x4128a2);_0x6748fc['listenTo'](_0x276e91,'add',(_0x4cb399,_0x5acbed)=>{_0x4cc2cf(_0x5acbed)&&_0x6748fc['add'](_0x5acbed);}),_0x6748fc['listenTo'](_0x276e91,'remove',(_0x409752,_0x2675ae)=>{_0x6748fc['has'](_0x2675ae)&&_0x6748fc['remove'](_0x2675ae);});}({'source':_0x302c02['_visibleAnnotations'],'target':_0xa5b291,'filter':_0x5c9748}),this['_uisData']['set'](_0x111db7,{'collection':_0xa5b291,'filter':_0x5c9748});const _0xe8250=this['_uis']['get'](_0x111db7);_0xe8250['attach'](_0xa5b291),this['listenTo'](_0xe8250,'change:activeAnnotation',(_0x205fbe,_0x29e6c6,_0x5b9096,_0x16381b)=>{_0x16381b&&_0x302c02['_removeActiveAnnotation'](_0x16381b),_0x5b9096&&_0x302c02['_addActiveAnnotation'](_0x5b9096);});}['deactivate'](_0x4f6265){if(this['activeUIs']['delete'](_0x4f6265),!this['_uis']['has'](_0x4f6265))throw new _0x7a47c7('annotationsuis-missing-ui',this,{'uiName':_0x4f6265});const _0x512a53=this['_uis']['get'](_0x4f6265);_0x512a53['detach'](),this['stopListening'](_0x512a53),this['_uisData']['get'](_0x4f6265)['collection']['destroy'](),this['_uisData']['delete'](_0x4f6265);}['switchTo'](_0x5ca453){if(!this['_uis']['has'](_0x5ca453))throw new _0x7a47c7('annotationsuis-missing-ui',this,{'uiName':_0x5ca453});const _0xb81368=this['context']['plugins']['get'](N),_0x18295c=Array['from'](_0xb81368['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x5ca453);const _0x3aecc4=this['_uis']['get'](_0x5ca453);_0x3aecc4['setActiveAnnotation'](_0x18295c),_0x3aecc4['_setSelectedAnnotations']&&_0x18295c&&_0x3aecc4['_setSelectedAnnotations']([_0x18295c]);}['deactivateAll'](){for(const _0x49e405 of this['activeUIs'])this['deactivate'](_0x49e405);}['register'](_0x41107c,_0x6278f3){if(this['_uis']['has'](_0x41107c))throw new _0x7a47c7('annotationsuis-register-already-registered');if('function'!=typeof _0x6278f3['attach']||'function'!=typeof _0x6278f3['detach']||'function'!=typeof _0x6278f3['setActiveAnnotation'])throw new _0x7a47c7('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x41107c,_0x6278f3);}['refilterAnnotations'](){const _0x5a1498=this['context']['plugins']['get'](N)['collection'],_0x18b0f8=new Map(),_0x39ca57=Array['from'](this['activeUIs']);for(const _0x358dc9 of this['activeUIs']){const _0x5706a0=this['_uisData']['get'](_0x358dc9)['collection'];for(const _0x9d4788 of _0x5706a0)_0x18b0f8['set'](_0x9d4788,_0x358dc9);}for(const _0x14112e of _0x5a1498){const _0x4346dc=_0x18b0f8['get'](_0x14112e);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x14112e);const _0xcad12e=_0x39ca57['find'](_0x3baddb=>this['_uisData']['get'](_0x3baddb)['filter'](_0x14112e));_0x4346dc!==_0xcad12e&&(_0x4346dc&&this['_uisData']['get'](_0x4346dc)['collection']['remove'](_0x14112e),_0xcad12e&&this['_uisData']['get'](_0xcad12e)['collection']['add'](_0x14112e));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x408bfb){const _0x4be2f5=[];for(const _0x5cae59 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x5cae59)['filter'])(_0x408bfb)&&_0x4be2f5['push'](_0x5cae59);}if(_0x4be2f5['length']>0x1)throw new _0x7a47c7('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x4be2f5,'annotationType':_0x408bfb['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x38063a){super(_0x38063a);const _0x30c173=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 _0x42ea23(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x30c173['to']('class')],'style':{'minHeight':_0x30c173['to']('minHeight',_0x1511b8=>'number'==typeof _0x1511b8?he(_0x1511b8+0xa):null)},'dir':_0x38063a['uiLanguageDirection'],'role':'application','aria-label':S(_0x38063a,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x38063a,'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',_0x501579=>{this['_updateItemPositionInFocusables'](_0x501579['source']);}),this['list']['forEach'](_0x3395c1=>{this['focusTracker']['add'](_0x3395c1['element']),this['_updateItemPositionInFocusables'](_0x3395c1);}),this['list']['on']('change',(_0x17b65a,_0x96f300)=>{for(const _0x38475c of _0x96f300['removed'])this['focusTracker']['remove'](_0x38475c['element']),this['focusables']['remove'](_0x38475c);for(const _0x59a247 of _0x96f300['added'])this['focusTracker']['add'](_0x59a247['element']),this['_updateItemPositionInFocusables'](_0x59a247);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x1ba48c){const _0x870643=this['focusables']['getIndex'](_0x1ba48c);let _0x22ba97,_0x5edcdc;for(const _0x4523fe of this['focusables'])if(_0x1ba48c['top']<_0x4523fe['top']){_0x22ba97=_0x4523fe;break;}if(_0x5edcdc=_0x22ba97?this['focusables']['getIndex'](_0x22ba97):this['focusables']['length'],-0x1!==_0x870643){if(_0x870643===_0x5edcdc-0x1)return;this['focusables']['remove'](_0x1ba48c),_0x5edcdc=_0x22ba97?this['focusables']['getIndex'](_0x22ba97):this['focusables']['length'];}this['focusables']['add'](_0x1ba48c,_0x5edcdc);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x4be792){super(_0x4be792),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5dd0e8,_0x35a7c3)=>_0x5dd0e8+_0x35a7c3),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x7e83f0=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x7e83f0['to']('isAnimationDisabled',_0x138a73=>_0x138a73?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x7e83f0['to']('top',_0x1923ce=>qt(_0x1923ce))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x195267=this['element']['clientHeight'];_0x195267&&(this['height']=_0x195267);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x2ccda6{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d4b3a){super(_0x4d4b3a),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 _0x475562=this['context']['config']['get']('sidebar.container');_0x475562&&this['setContainer'](_0x475562);}['setContainer'](_0x421681){if(!y(_0x421681))throw new _0x7a47c7('sidebar-setcontainer-invalid-element');this['container']=_0x421681;}['_attachToContainer']({viewClass:_0x6ddd05='',spaceBetweenItems:_0x4d7bc6=0x19}={}){if(!y(this['container']))throw new _0x7a47c7('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x6ddd05,this['_spaceBetweenItems']=_0x4d7bc6;}['rearrange']({removedAnnotation:_0x20e88b,previousAnnotation:_0x1cafa2,nextAnnotation:_0x4c1caa}){const _0x1e4112=this['getSidebarItemView'](_0x20e88b);this['view']['list']['remove'](_0x1e4112),this['_destroySidebarItemView'](_0x20e88b),_0x1cafa2&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1cafa2)),_0x4c1caa&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4c1caa)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0xbac7ce,activatedAnnotation:_0x21b972,disableAnimationOnActivatedAnnotation:_0x1f5f6d}){if(this['_activeAnnotation']=_0x21b972,_0xbac7ce){_0xbac7ce['isActive']=!0x1;const _0x38adab=this['getSidebarItemView'](_0xbac7ce);_0x38adab&&_0x1f5f6d&&(_0x38adab['isAnimationDisabled']=!0x1);}if(_0x21b972){const _0x5aea6e=this['getSidebarItemView'](_0x21b972);_0x5aea6e&&(_0x21b972['isActive']=!0x0,_0x1f5f6d&&(_0x5aea6e['isAnimationDisabled']=!0x0,_0x5aea6e['top']+=0x1),this['_alignToTargetRect'](_0x5aea6e));}}['_detachFromContainer'](_0x3b19c9){if(this['view']['element']['remove'](),_0x3b19c9){for(const _0xdec35a of _0x3b19c9)this['_destroySidebarItemView'](_0xdec35a);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x1f5dd1,_0x4c779e){_0x4c779e||(_0x4c779e=_0x1f5dd1['view']);const _0x1b0203=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x1b0203,_0x1f5dd1),this['_annotationToSidebarItemView']['set'](_0x1f5dd1,_0x1b0203),_0x1b0203['content']['add'](_0x4c779e),this['listenTo'](_0x1f5dd1['view'],'change:targetRect',(_0x31100b,_0x213228,_0x4579e6)=>{const _0x4b03ae=this['_getTargetTop'](_0x1f5dd1,_0x4579e6);_0x1b0203['_targetTop']!=_0x4b03ae&&(_0x1b0203['_targetTop']=_0x4b03ae,this['_setItemTop'](_0x1b0203,_0x4b03ae));}),this['listenTo'](_0x1b0203,'change:top',()=>{this['_recalculate'](_0x1b0203,'top');}),this['listenTo'](_0x1b0203,'change:bottom',()=>{this['_recalculate'](_0x1b0203,'bottom');}),this['_alignToTargetRect'](_0x1b0203);const _0x4fc7e7=this['_getItemBefore'](_0x1b0203);if(_0x4fc7e7)this['_alignAfterItem'](_0x4fc7e7,_0x1b0203)||this['_alignToTargetRect'](_0x1b0203);else this['_alignToTargetRect'](_0x1b0203);return this['_updateLastItem'](),this['view']['list']['add'](_0x1b0203),_0x1b0203;}['_alignForTopChange'](_0x4e6d3c){if(!_0x4e6d3c['content']['length'])return;const _0x4c54f9=this['_getItemBefore'](_0x4e6d3c);if(!_0x4c54f9)return;const _0x2ec5ea=this['_sidebarItemViewToAnnotation']['get'](_0x4c54f9),_0x2009ec=this['_activeAnnotation'];_0x2009ec&&_0x2009ec===_0x2ec5ea?this['_alignAfterItem'](_0x4c54f9,_0x4e6d3c):this['_alignBeforeItem'](_0x4e6d3c,_0x4c54f9);}['_alignForBottomChange'](_0x4e0858){if(!_0x4e0858['content']['length'])return;const _0x6be20f=this['_getItemAfter'](_0x4e0858);if(!_0x6be20f)return;const _0x51d2fe=this['_sidebarItemViewToAnnotation']['get'](_0x6be20f),_0x464b7b=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0xd8caa6=this['_activeAnnotation'];_0xd8caa6&&_0xd8caa6===_0x51d2fe&&_0x464b7b?(this['_alignBeforeItem'](_0x6be20f,_0x4e0858),this['_alignAfterItem'](_0x4e0858,_0x6be20f)):_0xd8caa6&&_0xd8caa6===_0x51d2fe?this['_alignBeforeItem'](_0x6be20f,_0x4e0858):this['_alignAfterItem'](_0x4e0858,_0x6be20f);}['_recalculate'](_0x560341,_0xe7ddcd){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x115bc8,changedProp:_0x477117}of this['_recalculateBuffer'])'top'===_0x477117?this['_alignForTopChange'](_0x115bc8):this['_alignForBottomChange'](_0x115bc8);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x560341,'changedProp':_0xe7ddcd});}['getSidebarItemView'](_0x36b486){return this['_annotationToSidebarItemView']['get'](_0x36b486);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x443559){const _0x3dfc2f=this['getSidebarItemView'](_0x443559);this['stopListening'](_0x3dfc2f),this['stopListening'](_0x443559['view']),_0x3dfc2f['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x443559),this['_sidebarItemViewToAnnotation']['delete'](_0x3dfc2f);}['_createSidebarView'](){const _0x2f19fd=new V(this['context']['locale']);return _0x2f19fd['render'](),this['on']('change:_lastItem',(_0x1ae59d,_0xdf06af,_0x3474bf,_0x2ad732)=>{_0x2ad732&&_0x2f19fd['unbind']('minHeight'),_0x3474bf?_0x2f19fd['bind']('minHeight')['to'](_0x3474bf,'bottom'):_0x2f19fd['minHeight']=null;}),_0x2f19fd;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x54fbed){const _0x364b11=this['_sidebarItemViewToAnnotation']['get'](_0x54fbed),_0x18378a=_0x364b11&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x364b11)-0x1);return _0x18378a&&this['getSidebarItemView'](_0x18378a)||null;}['_getItemAfter'](_0x590b4e){const _0x44e045=this['_sidebarItemViewToAnnotation']['get'](_0x590b4e),_0x4f40fc=_0x44e045&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x44e045)+0x1);return _0x4f40fc&&this['getSidebarItemView'](_0x4f40fc)||null;}['_alignBeforeItem'](_0x41db5d,_0x33d8e6){_0x41db5d['updateHeight']();const _0x18bbcf=R(_0x33d8e6['bottom']+this['_spaceBetweenItems'],_0x41db5d['top']);return!!_0x18bbcf&&(this['_setItemTop'](_0x33d8e6,_0x33d8e6['top']-_0x18bbcf),!0x0);}['_alignAfterItem'](_0x45c322,_0x281dd6){_0x45c322['updateHeight']();const _0x294f04=R(_0x45c322['bottom']+this['_spaceBetweenItems'],_0x281dd6['top']);return!!_0x294f04&&(this['_setItemTop'](_0x281dd6,_0x281dd6['top']+_0x294f04,!0x1),!0x0);}['_alignToTargetRect'](_0x1d4332){const _0xd9f2bf=this['_sidebarItemViewToAnnotation']['get'](_0x1d4332);if(!_0xd9f2bf||!_0xd9f2bf['target']||!_0xd9f2bf['targetRect'])return;const _0xf608bc=this['_getTargetTop'](_0xd9f2bf,_0xd9f2bf['targetRect']);this['_setItemTop'](_0x1d4332,_0xf608bc);}['_getTargetTop'](_0x5de5e8,_0x222d31){if(null===_0x222d31)return 0x0;if(_0x5de5e8['target']instanceof _0x1bf8e1)return _0x222d31['top'];{const _0x551976=new _0x1bf8e1(this['view']['element'])['top'];return _0x222d31['top']-_0x551976;}}['_setItemTop'](_0x5cc70e,_0x19c98f,_0x560d7e=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x560d7e&&(_0x19c98f=Math['max'](_0x19c98f,this['_getMaxAvailableTop'](_0x5cc70e))),_0x5cc70e['top']=_0x19c98f;}['_getMaxAvailableTop'](_0x58f64a){let _0x4883f3=this['_getItemBefore'](_0x58f64a),_0x53547e=0x0;for(;_0x4883f3;)_0x4883f3['updateHeight'](),_0x53547e+=this['_spaceBetweenItems']+_0x4883f3['height'],_0x4883f3=this['_getItemBefore'](_0x4883f3);return _0x53547e;}}function R(_0x33e8a1,_0x3fee20){return Math['max'](_0x33e8a1-_0x3fee20,0x0);}function y(_0x9e841b){return null!==_0x9e841b&&'object'==typeof _0x9e841b&&0x1===_0x9e841b['nodeType'];}class e extends _0x2ccda6{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53e0a5){super(_0x53e0a5),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x124e00(),this['_refreshPositioningDebounced']=_0x4c7cf9(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x2254f8=this['context']['plugins']['get'](M),_0x3e94cb=this['context']['plugins']['get'](z);_0x2254f8['register']('wideSidebar',this),_0x3e94cb['container']&&_0x2254f8['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x160ad9){if(_0x160ad9===this['activeAnnotation'])return;const _0x479234=this['context']['plugins']['get'](z);_0x479234['_activeAnnotation']=_0x160ad9;const _0x10485b=this['activeAnnotation'];_0x479234['refresh']({'blurredAnnotation':_0x10485b,'activatedAnnotation':_0x160ad9}),this['activeAnnotation']=_0x160ad9;}['attach'](_0xc5beb8){this['annotations']=_0xc5beb8;const _0x5c2ca6=this['context']['plugins']['get'](z);if(_0x5c2ca6['_annotations']=_0xc5beb8,this['isAttached'])throw new _0x7a47c7('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5c2ca6,'set:container',()=>{this['detach'](),this['listenTo'](_0x5c2ca6,'change:container',_0x1decd3=>{_0x1decd3['off'](),this['attach'](_0xc5beb8);});}),_0x5c2ca6['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x33efc3=_0xd5c57a=>{_0xd5c57a['updateTargetRect'](),_0x5c2ca6['addAnnotation'](_0xd5c57a);};for(const _0x22f311 of _0xc5beb8)_0x33efc3(_0x22f311);this['listenTo'](_0xc5beb8,'add',(_0x4f1c28,_0x8c72b3)=>{_0x33efc3(_0x8c72b3);}),this['listenTo'](_0xc5beb8,'remove',(_0x15b464,_0x50f927,_0x410086)=>{_0x5c2ca6['rearrange']({'removedAnnotation':_0x50f927,'previousAnnotation':_0xc5beb8['get'](_0x410086-0x1),'nextAnnotation':_0xc5beb8['get'](_0x410086+0x1)}),_0x50f927===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0xc5beb8,'focus',(_0x507927,_0x24545d)=>{this['setActiveAnnotation'](_0x24545d);}),this['listenTo'](_0xc5beb8,'blur',()=>{this['setActiveAnnotation'](null);});const _0x13b885=this['context']instanceof _0x12a73d?this['context']['editors']:new _0x124e00([this['context']]);for(const _0x449973 of _0x13b885)this['_integrateWithEditorAnnotations'](_0x449973);this['listenTo'](_0x13b885,'add',(_0x447fd1,_0x39502c)=>{this['listenTo'](_0x39502c,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x39502c);});}),this['listenTo'](_0x13b885,'remove',(_0x532adf,_0x5175df)=>{_0x5175df['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5175df['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x7a47c7('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x383f24=this['context']['plugins']['get'](z);_0x383f24['_detachFromContainer'](this['annotations']),this['stopListening'](_0x383f24),this['stopListening'](this['annotations']),this['context']instanceof _0x12a73d&&this['stopListening'](this['context']['editors']);for(const _0x34ecdb of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x34ecdb);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x682095){if(!_0x682095['plugins']['has']('EditorAnnotations'))return;const _0x3fbebf=_0x682095['plugins']['get']('EditorAnnotations'),_0x8250ec=()=>{const _0x493125=_0x3fbebf['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x493125[0x0]||null);};this['listenTo'](_0x3fbebf,'refresh',_0x8250ec),this['listenTo'](_0x3fbebf,'blur',(_0x341944,{isAnnotationTracked:_0x17040e})=>{this['activeAnnotation']&&_0x17040e(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3fbebf,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x315133=>{_0x3fbebf['hasDomSelection']()&&(_0x8250ec(),_0x315133['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3fbebf);}['_destroyEditorAnnotationsIntegration'](_0x443087){this['stopListening'](_0x443087),this['_editorAnnotations']['remove'](_0x443087);}}class D extends _0x2c9fe9{['counterView'];constructor(_0x5701ec){super(_0x5701ec);const _0x2166d=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x627f5f,_0x1692ea)=>_0x627f5f?'...':_0x1692ea['toString']()),this['set']('annotationType',''),this['icon']=xt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x2166d['to']('annotationType',_0x5d2fb7=>'ck-annotation-counter__badge--'+_0x5d2fb7),_0x2166d['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x2166d['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x2ccda6{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa69142){super(_0xa69142),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x5e150c),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x124e00(),this['_refreshPositioningDebounced']=_0x4c7cf9(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x5d3c18(this['context']['locale']),this['balloonPanelView']=new _0x132b08(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x3976ff){this['annotations']=_0x3976ff;const _0x163aa2=this['context']['plugins']['get'](z),_0xdb3a9a=this['balloonPanelView'];if(_0x163aa2['_annotations']=_0x3976ff,this['isAttached'])throw new _0x7a47c7('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x163aa2,'set:container',()=>{this['detach'](),this['listenTo'](_0x163aa2,'change:container',_0xdc0c55=>{_0xdc0c55['off'](),this['attach'](_0x3976ff);});}),_0x163aa2['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2d535e=_0x8e74f=>{const _0x4570f4=new D(this['context']['locale']);_0x163aa2['addAnnotation'](_0x8e74f,_0x4570f4),this['_annotationToNarrowView']['set'](_0x8e74f,_0x4570f4),_0x4570f4['bind']('isDirty','annotationType','number')['to'](_0x8e74f['view'],'isDirty','type','length'),_0x4570f4['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0xdb3a9a['content']['first']!==_0x8e74f['view']?(this['_showBalloon'](_0x8e74f),_0x8e74f['view']['element']['focus'](),this['setActiveAnnotation'](_0x8e74f)):this['setActiveAnnotation'](null);});};for(const _0x43a127 of _0x3976ff)_0x2d535e(_0x43a127);this['listenTo'](_0x3976ff,'add',(_0x15d0f9,_0xf8dfa8)=>{_0x2d535e(_0xf8dfa8);}),this['listenTo'](_0x3976ff,'remove',(_0x5f593b,_0x1fdb51,_0x84bd32)=>{this['_annotationToNarrowView']['get'](_0x1fdb51)['destroy'](),this['_annotationToNarrowView']['delete'](_0x1fdb51),_0x163aa2['rearrange']({'removedAnnotation':_0x1fdb51,'previousAnnotation':_0x3976ff['get'](_0x84bd32-0x1),'nextAnnotation':_0x3976ff['get'](_0x84bd32+0x1)}),_0x1fdb51===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x3976ff,'focus',(_0x233445,_0xa40dd7)=>{this['setActiveAnnotation'](_0xa40dd7);}),this['listenTo'](_0x3976ff,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x241119,_0x493b60)=>{_0x493b60['keyCode']===_0x363287['esc']&&_0xdb3a9a['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0xdb3a9a['content']['first']),this['_hideBalloon'](),_0x493b60['stopPropagation'](),_0x493b60['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x1c3d32,_0x4a0672)=>{const _0x35c36e=_0x4a0672['target'];_0xdb3a9a['isVisible']&&_0xdb3a9a['element']['contains'](_0x35c36e)||_0x163aa2['view']['element']['contains'](_0x35c36e)||_0x1c3d32['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x35e3a0=>_0x35e3a0['contains'](_0x35c36e))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x50bc32=this['context']instanceof _0x12a73d?this['context']['editors']:new _0x124e00([this['context']]);for(const _0x2d2448 of _0x50bc32)this['_integrateWithEditorAnnotations'](_0x2d2448);this['listenTo'](_0x50bc32,'add',(_0x27d070,_0x1f710f)=>{this['listenTo'](_0x1f710f,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1f710f);});}),this['listenTo'](_0x50bc32,'remove',(_0x50a1c9,_0x369ea1)=>{_0x369ea1['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x369ea1['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0xeaa264){if(_0xeaa264===this['activeAnnotation'])return;const _0xa23e0c=this['context']['plugins']['get'](z);if(_0xa23e0c['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0xeaa264,'disableAnimationOnActivatedAnnotation':!0x0}),_0xeaa264)_0xa23e0c['getSidebarItemView'](_0xeaa264)?this['_showBalloon'](_0xeaa264):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0xeaa264;}['detach'](){if(!this['isAttached'])throw new _0x7a47c7('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2fddfa=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x34a441=>_0x34a441['destroy']()),this['_annotationToNarrowView']['clear'](),_0x2fddfa['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x12a73d&&this['stopListening'](this['context']['editors']);for(const _0x5520fc of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5520fc);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'](_0x302d24){if(!_0x302d24['plugins']['has']('EditorAnnotations'))return;const _0x3c56b1=_0x302d24['plugins']['get']('EditorAnnotations'),_0x2884f0=this['context']['plugins']['get'](z),_0x14fbfd=this['annotations'],_0xb51152=this['balloonPanelView'],_0x47c466=()=>{const _0x2a0efb=_0x3c56b1['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x2a0efb),this['setActiveAnnotation'](_0x2a0efb[0x0]||null);};this['listenTo'](_0x3c56b1,'refresh',_0x47c466),this['listenTo'](_0x3c56b1,'blur',(_0x471ab0,{isAnnotationTracked:_0x2d1a96})=>{this['activeAnnotation']&&_0x2d1a96(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x3c56b1,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x14fbfd,'blur',_0x38e943=>{_0x3c56b1['hasDomSelection']()&&_0x38e943['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x54d164,_0x420b03)=>{const _0x206a24=_0x420b03['target'];_0xb51152['isVisible']&&_0xb51152['element']['contains'](_0x206a24)||_0x2884f0['view']['element']['contains'](_0x206a24)||this['activeAnnotation']&&_0x3c56b1['hasDomSelection']()&&(_0x47c466(),_0x54d164['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3c56b1);}['_destroyEditorAnnotationsIntegration'](_0x1b79b5){_0x1b79b5&&(this['stopListening'](_0x1b79b5),this['_editorAnnotations']['remove'](_0x1b79b5));}['_setSelectedAnnotations'](_0xbe0410){for(const _0xf7702f of this['_selectedAnnotations'])_0xbe0410['includes'](_0xf7702f)||this['_manuallyClosedAnnotationViews']['delete'](_0xf7702f['view']);this['_selectedAnnotations']=_0xbe0410;}['_refreshPositioning'](){const _0x2c4830=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x2c4830['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x223514){if(this['_manuallyClosedAnnotationViews']['has'](_0x223514['view']))return;const _0x3e4a8c=this['balloonPanelView']['content']['first'];_0x3e4a8c!==_0x223514['view']?(_0x3e4a8c&&this['_detachListeners'](_0x3e4a8c),this['_attachListeners'](_0x223514['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x223514['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x19dcd8=this['balloonPanelView']['content']['first'],_0xe0ff6e=_0x19dcd8&&this['annotations']['getByView'](_0x19dcd8);if(!_0xe0ff6e||!this['_annotationToNarrowView']['has'](_0xe0ff6e))return;const _0x5bc130=this['_annotationToNarrowView']['get'](_0xe0ff6e)['element'],_0x23f2da=(function(){const _0x2d2ba9=_0x132b08['defaultPositions'];return[_0x2d2ba9['southArrowNorthEast'],_0x2d2ba9['northArrowSouthEast'],_0x2d2ba9['southArrowNorth'],_0x2d2ba9['northArrowSouth'],_0x2d2ba9['southArrowNorthWest'],_0x2d2ba9['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x5bc130,'positions':_0x23f2da});}['_hideBalloon'](){const _0x15ffa5=this['balloonPanelView'],_0x10bd89=_0x15ffa5['content']['first'];_0x10bd89&&(this['_detachListeners'](_0x10bd89),_0x15ffa5['unpin'](),_0x15ffa5['content']['clear']());}['_attachListeners'](_0x1836da){this['listenTo'](_0x1836da,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x1836da,'Esc',(_0x50e93c,_0x446908)=>{this['_manuallyClosedAnnotationViews']['add'](_0x1836da),this['_hideBalloon'](),_0x446908();});}['_detachListeners'](_0x4fd0cd){this['stopListening'](_0x4fd0cd);}}class c extends _0x284080{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x52a537,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5bef23){super(_0x5bef23),_0x5bef23['editing']['view']['addObserver'](_0x2291ed),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x5bef23['plugins']['get'](_0x52a537),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x173c85=this['editor']['plugins']['get'](M);_0x173c85['context']===this['editor']&&(_0x173c85['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x201d5a,_0x580840)=>{const _0x2cf37e=this['_balloon'];if(this['isAttached']&&_0x2cf37e['visibleView']){const _0x14157f=this['annotations']['getByView'](_0x2cf37e['visibleView']);_0x14157f&&this['_closeAnnotation'](_0x14157f),_0x580840();}}));}['afterInit'](){const _0x303567=this['editor']['plugins']['get'](M);_0x303567['context']===this['editor']&&(_0x303567['hasActive']()||_0x303567['switchTo']('inline'));}['setActiveAnnotation'](_0x2cf167){_0x2cf167!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x2cf167&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x2cf167)&&this['_addAnnotationToBalloon'](_0x2cf167,!0x0),_0x2cf167['isActive']=!0x0),_0x2cf167||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x2cf167);}['attach'](_0x241c52){this['annotations']=_0x241c52;const _0x5854be=this['editor']['plugins']['get'](M),_0x2f0843=this['_balloon'];if(this['isAttached'])throw new _0x7a47c7('inlineannotations-attach-already-attached',this);if(_0x5854be['context']!==this['editor'])throw new _0x7a47c7('inlineannotations-not-allowed-with-context',this);const _0x83a248=this['editor']['plugins']['get'](P);this['listenTo'](_0x83a248,'refresh',()=>{const _0x1e2154=_0x83a248['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x5bfe07,_0x4ffaa5;!this['_forceRefresh']&&(_0x5bfe07=_0x1e2154,_0x4ffaa5=this['_selectedAnnotations'],_0x5bfe07['length']===_0x4ffaa5['length']&&_0x5bfe07['every'](_0xb03354=>_0x4ffaa5['includes'](_0xb03354)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x1e2154),this['setActiveAnnotation'](_0x1e2154[0x0]||null));}),this['listenTo'](_0x83a248,'blur',(_0x146566,{isAnnotationTracked:_0x1928e6})=>{this['activeAnnotation']&&_0x1928e6(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0xe7ead8,_0xdd4294,_0x24e1c1)=>{_0x24e1c1||this['setActiveAnnotation'](null);}),this['listenTo'](_0x241c52,'remove',(_0x241fa7,_0x25754d)=>{this['_removeAnnotationFromBalloon'](_0x25754d),_0x25754d===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2f0843,'change:visibleView',(_0x54dd08,_0x39cc23,_0x5bb6f1,_0x81d428)=>{_0x81d428&&this['stopListening'](_0x81d428);const _0x9b8c53=_0x241c52['getByView'](_0x5bb6f1);_0x5bb6f1&&_0x9b8c53&&(this['listenTo'](_0x5bb6f1,'change:height',()=>{_0x2f0843['updatePosition']();}),this['listenTo'](_0x5bb6f1,'Esc',()=>{this['_closeAnnotation'](_0x9b8c53),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x9b8c53&&this['setActiveAnnotation'](_0x9b8c53));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x2f0843['visibleView']&&(_0x241c52['getByView'](_0x2f0843['visibleView'])&&_0x2f0843['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 _0x7a47c7('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x4d92f9 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x4d92f9);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x2c7bae){for(const _0x530c97 of this['_selectedAnnotations'])_0x2c7bae['includes'](_0x530c97)||this['_manuallyClosed']['delete'](_0x530c97);for(const _0x1ffe86 of this['annotations'])_0x2c7bae['includes'](_0x1ffe86)||this['_removeAnnotationFromBalloon'](_0x1ffe86);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x47efb6 of _0x2c7bae)this['_addAnnotationToBalloon'](_0x47efb6);}this['_selectedAnnotations']=_0x2c7bae;}['_addAnnotationToBalloon'](_0x14e61a,_0x28d2bb=!0x1){this['_manuallyClosed']['has'](_0x14e61a)||(this['_addedAnnotations']['has'](_0x14e61a)||this['_balloon']['hasView'](_0x14e61a['view'])||(this['_addedAnnotations']['add'](_0x14e61a),this['_balloon']['add']({'stackId':_0x14e61a['view']['id'],'view':_0x14e61a['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x14e61a)}})),_0x28d2bb&&this['_balloon']['showStack'](_0x14e61a['view']['id']));}['_getBalloonTargetForAnnotation'](_0x2dfd04){const _0x5170fd=_0x2dfd04['target'],_0x31d01f=this['editor']['editing']['view'],_0xa8b5dc=_0x31d01f['document']['selection']['getFirstRange'](),_0x3d57f3=_0x31d01f['domConverter']['viewRangeToDom'](_0xa8b5dc);if(_0x3d57f3['collapse'](!0x0),_0x5170fd){if(_0x5170fd instanceof _0x1bf8e1)return _0x5170fd;let _0x27819e=[];for(const _0x479380 of _0x5170fd)_0x27819e['push'](...(_0x370cee=_0x479380['getClientRects'](),Array['from'](_0x370cee)['map'](DOMRect['fromRect'])));_0x27819e=function(_0x1d8ef4){const _0x5292a3=[];let _0x337e0f=_0x1d8ef4[0x0];for(let _0x5e2c7b=0x1;_0x5e2c7b<_0x1d8ef4['length'];_0x5e2c7b++)b(_0x337e0f,_0x1d8ef4[_0x5e2c7b])?_0x337e0f['width']+=_0x1d8ef4[_0x5e2c7b]['width']:(_0x5292a3['push'](_0x337e0f),_0x337e0f=_0x1d8ef4[_0x5e2c7b]);return _0x5292a3['push'](_0x337e0f),_0x5292a3;}(_0x27819e);const _0x302897=_0x3d57f3['getBoundingClientRect']();return _0x27819e['find'](_0x54b1dc=>_0x54b1dc['top']<=_0x302897['top']&&_0x54b1dc['bottom']>=_0x302897['bottom']&&_0x54b1dc['left']<=_0x302897['left']&&_0x54b1dc['right']>=_0x302897['right'])||_0x27819e[0x0];}var _0x370cee;return _0x2dfd04['targetRect']||_0x3d57f3;}['_removeAnnotationFromBalloon'](_0xfe2a71){this['_addedAnnotations']['has'](_0xfe2a71)&&this['_balloon']['hasView'](_0xfe2a71['view'])&&(this['_addedAnnotations']['delete'](_0xfe2a71),this['_balloon']['remove'](_0xfe2a71['view']));}['_closeAnnotation'](_0x1163c4){this['_manuallyClosed']['add'](_0x1163c4),this['_removeAnnotationFromBalloon'](_0x1163c4);}}function b(_0x3d705c,_0xd2d564){return _0x3d705c['top']===_0xd2d564['top']&&_0x3d705c['bottom']===_0xd2d564['bottom']&&_0x3d705c['right']===_0xd2d564['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x403906,_0x15d8f8){super(_0x403906),this['set']('isEmpty',!_0x15d8f8['length']),this['focusTracker']=new _0x42ea23(),this['_annotationViews']=_0x15d8f8,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x15d8f8,'focusTracker':this['focusTracker']}),this['listenTo'](_0x15d8f8,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x15d8f8,'remove',(_0x475284,_0x3c8c16)=>{_0x3c8c16['isActive']&&this['focus'](),_0x15d8f8['length']||(this['isEmpty']=!0x0);});const _0x34ec4b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x403906,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x15d8f8},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x34ec4b['if']('isEmpty','ck-hidden',_0x96282e=>!_0x96282e)]},'children':[{'text':S(_0x403906,'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 _0x4533dc of this['_annotationViews'])this['focusTracker']['add'](_0x4533dc['element']);this['_annotationViews']['on']('change',(_0xde8c7c,{added:_0x55c11c,removed:_0x370263})=>{for(const _0x3bbb6f of _0x55c11c)this['focusTracker']['add'](_0x3bbb6f['element']);for(const _0x4b434d of _0x370263)this['focusTracker']['remove'](_0x4b434d['element']);});}}class f extends _0x2ccda6{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x4844d6){super(_0x4844d6),this['archivedThreads']=new _0x124e00();}['init'](){const _0x5df8ae=this['context'],_0x13e47f=_0x5df8ae['plugins']['get'](o),_0x5e084d=_0x5df8ae['plugins']['get'](N);this['listenTo'](_0x13e47f,'addCommentThread',(_0x38f288,{threadId:_0x2d0894})=>{const _0x4ad31c=_0x13e47f['getCommentThread'](_0x2d0894);_0x4ad31c['archivedAt']&&this['archivedThreads']['add'](_0x4ad31c,this['_calculatePosition'](_0x4ad31c['archivedAt'])),this['listenTo'](_0x4ad31c,'change:archivedAt',(_0x1ea8e5,_0x4af7a6,_0x2ca8c8)=>{_0x2ca8c8?this['archivedThreads']['has'](_0x4ad31c)||this['archivedThreads']['add'](_0x4ad31c,this['_calculatePosition'](_0x4ad31c['archivedAt'])):this['archivedThreads']['has'](_0x4ad31c)&&this['archivedThreads']['remove'](_0x4ad31c);});}),this['listenTo'](_0x13e47f,'removeCommentThread',(_0x315a79,{threadId:_0x1be928})=>{const _0x493dd3=_0x13e47f['getCommentThread'](_0x1be928);this['stopListening'](_0x493dd3),this['archivedThreads']['has'](_0x493dd3)&&this['archivedThreads']['remove'](_0x493dd3);},{'priority':'highest'}),this['listenTo'](_0x5e084d['collection'],'focus',(_0x1a7ec2,_0x12a090)=>{_0x12a090['isVisible']||(_0x12a090['isActive']=!0x0,_0x5e084d['activate'](_0x12a090));});}['_calculatePosition'](_0x1d6e34){const _0xec80c0=[...this['archivedThreads']]['findIndex'](_0x2c2223=>_0x2c2223['archivedAt']<_0x1d6e34);return _0xec80c0>-0x1?_0xec80c0:this['archivedThreads']['length'];}}class a extends _0x284080{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x20baa2];}constructor(_0x53fbc4){super(_0x53fbc4),this['annotationViews']=new _0x2a127c(),this['_pendingThreads']=[];}['init'](){const _0x489b5c=this['editor'],_0x18c45c=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x489b5c['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x2c9fe9,!0x0)),_0x489b5c['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x56f559=this['_createCommentsArchiveButton'](_0xad4ca2);return _0x56f559['set']({'role':'menuitemcheckbox'}),_0x56f559;});const _0xf8f95b=_0x489b5c['plugins']['get'](f),_0xb20aaf=_0x489b5c['plugins']['get']('Annotations'),_0x38c0e7=_0x489b5c['plugins']['get']('CommentsRepository');this['listenTo'](_0xf8f95b['archivedThreads'],'add',(_0x440d1e,_0x249ed5)=>{const _0x258790=_0x489b5c['config']['get']('collaboration.channelId');if(!_0x258790||_0x249ed5['channelId']===_0x258790){const _0x35b6f6=_0x38c0e7['_threadToController']['get'](_0x249ed5);if(!_0x35b6f6)return void this['_pendingThreads']['push'](_0x249ed5);const _0x228994=this['_calculatePosition'](_0x249ed5['archivedAt']),_0x3efab4=_0xb20aaf['getByInnerView'](_0x35b6f6['view']);_0x3efab4['isVisible']&&_0xb20aaf['_visibleAnnotations']['remove'](_0x3efab4),this['annotationViews']['add'](_0x3efab4['view'],_0x228994);}}),this['listenTo'](_0xb20aaf['collection'],'add',(_0xc6d213,_0x2249c4)=>{const _0x4171eb=this['_pendingThreads']['find'](_0x589e64=>{const _0x5ef8ab=_0x38c0e7['_threadToController']['get'](_0x589e64);return _0x5ef8ab&&_0x2249c4['innerView']===_0x5ef8ab['view'];});if(_0x4171eb){const _0x499f08=this['_calculatePosition'](_0x4171eb['archivedAt']);this['annotationViews']['add'](_0x2249c4['view'],_0x499f08),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x4171eb),0x1);}}),this['listenTo'](_0xf8f95b['archivedThreads'],'remove',(_0x5b01e0,_0x481dcc)=>{const _0x3dd9d0=_0x489b5c['config']['get']('collaboration.channelId');if(!_0x3dd9d0||_0x481dcc['channelId']===_0x3dd9d0){const _0x2ff9c2=_0x38c0e7['_threadToController']['get'](_0x481dcc),_0x16d76f=_0xb20aaf['getByInnerView'](_0x2ff9c2['view']);this['annotationViews']['remove'](_0x16d76f['view']),this['stopListening'](_0x16d76f['focusableElements']);}}),this['listenTo'](_0xb20aaf['collection'],'add',(_0x1bf8f4,_0xb164e8)=>{this['listenTo'](_0xb164e8,'escape',_0x18c45c);}),this['listenTo'](_0xb20aaf['collection'],'remove',(_0x189c14,_0x2705dd)=>{this['stopListening'](_0x2705dd,'escape',_0x18c45c);});}['_calculatePosition'](_0x257cd4){const _0xdadd7f=this['editor']['config']['get']('collaboration.channelId'),_0x4b03f5=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x481448=>_0x481448['channelId']===_0xdadd7f)['findIndex'](_0x2e9302=>_0x2e9302['archivedAt']<_0x257cd4);return _0x4b03f5<0x0||_0x4b03f5>this['annotationViews']['length']?this['annotationViews']['length']:_0x4b03f5-0x1;}['_toggleDialog'](){const _0x26bc44=this['editor'],_0x3952c9=_0x26bc44['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x26bc44['locale'],this['annotationViews'])),'commentsArchive'===_0x3952c9['id']?_0x3952c9['hide']():_0x3952c9['show']({'id':'commentsArchive','title':S(_0x26bc44['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x237004['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x18a1fe,_0x1ebebd=!0x1){const _0x4a40fa=this['editor']['locale'],_0x2bd439=this['editor']['plugins']['get']('Dialog'),_0x46d921=new _0x18a1fe(_0x4a40fa);return _0x46d921['bind']('isEnabled')['to'](this,'isEnabled'),_0x46d921['bind']('isOn')['to'](_0x2bd439,'id',_0x23bb6b=>'commentsArchive'===_0x23bb6b),_0x46d921['set']({'label':S(_0x4a40fa,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x1ebebd&&(_0x46d921['tooltip']=!0x0),this['listenTo'](_0x46d921,'execute',()=>this['_toggleDialog']()),_0x46d921;}['_hideDialogOnAnnotationEscape']=_0x2fd973=>{const _0x22185f=_0x2fd973['source'];if(!this['annotationViews']['has'](_0x22185f['view']))return;const _0x5990c3=this['editor']['plugins']['get']('Dialog');_0x5990c3['isOpen']&&'commentsArchive'===_0x5990c3['id']&&(_0x5990c3['hide'](),_0x2fd973['stop']());};}class p extends _0x284080{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};