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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,12 +20,12 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x32421a,icons as _0x2283c2,ContextPlugin as _0x298ec9,PendingActions as ht,Command as _0x4826d4,Plugin as _0x3d936c,Context as _0x289012}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x18e63e,uid as _0x4e9e8d,KeystrokeHandler as jt,FocusTracker as _0x1a1568,diff as _0x6f790e,Collection as _0x55dc60,Rect as _0x5c15ed,CKEditorError as _0x441e7c,first as _0x29ae78,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0xb88ef1,keyCodes as _0x1ca6aa}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x1dda2f,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x27988a,trimHtml as _0x4ba9c4,LateFocusDropdownButtonView as _0x50d91e,Users as it,getDateTimeFormatter as mt,hashObject as lt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x4e5257}from'ckeditor5-collaboration/dist/index.js';import{throttle as bt,isEqual as It,cloneDeep as pt,set as wt,unset as At,debounce as _0x2023a9}from'lodash-es';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as Ft,ButtonView as _0xc22dd3,ViewCollection as _0x2ff85e,createDropdown as _0x32b072,ListView as _0xd43cb7,focusChildOnDropdownOpen as _0xa16bdc,ListItemView as _0x4c4dfa,MenuBarMenuListItemButtonView as _0x1920af,BodyCollection as _0x51f277,BalloonPanelView as _0x202708,ContextualBalloon as _0x4684a2,Dialog as _0x3c8ef9,DialogViewPosition as _0x2f9a26}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0xc309fc}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Lt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Nt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x3f5078}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
24
- _0x18e63e(){['model'];['view'];constructor(_0x4b59af,_0x1ee8ec){super(),this['model']=_0x4b59af,this['model']['_isAttached']=!0x0,this['view']=_0x1ee8ec,this['listenTo'](_0x1ee8ec,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x1ee8ec,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x1ee8ec,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x1ee8ec,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x1ee8ec,'addComment',(_0x14aed3,_0x3f058a)=>this['addComment'](_0x3f058a)),this['listenTo'](_0x1ee8ec,'updateComment',(_0x479458,_0x1d2432,_0x1141d4)=>this['updateComment'](_0x1d2432,_0x1141d4)),this['listenTo'](_0x1ee8ec,'removeComment',(_0x3fca95,_0x1a2d01)=>this['removeComment'](_0x1a2d01));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x2a77a8){this['model']['addComment']({'content':_0x2a77a8,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x56b1f2,_0x2e745a){this['model']['getComment'](_0x56b1f2)['update']({'content':_0x2e745a});}['removeComment'](_0x3302bb){this['model']['getComment'](_0x3302bb)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x404b3f,_0x5f0524,_0x4fc68e){const t=_0x404b3f['t'];switch(_0x5f0524){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'},_0x4fc68e);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'},_0x4fc68e);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'},_0x4fc68e);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'},_0x4fc68e);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x4fc68e);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'},_0x4fc68e);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'},_0x4fc68e);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'},_0x4fc68e);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0x3b1978,_0x2e3ce5){super(_0x3b1978);const _0x3f3dfa=_0x4e9e8d();this['main']=this['createCollection'](),this['editable']=new $t(_0x3b1978,_0x2e3ce5,void 0x0,{'label':()=>S(_0x3b1978,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x3b1978['uiLanguageDirection'],'lang':_0x3b1978['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x3f3dfa},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Ut{['view'];constructor(_0x5a73e2){super(_0x5a73e2),this['view']=new Vt(_0x5a73e2['locale'],_0x5a73e2['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x3bc432=this['editor']['editing']['view'],_0x3ead61=this['view']['editable'],_0x18fa61=_0x3bc432['document']['getRoot']();_0x3ead61['name']=_0x18fa61['rootName'],this['view']['render']();const _0x1ba7e8=_0x3ead61['element'];this['setEditableElement'](_0x3ead61['name'],_0x1ba7e8),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3bc432['attachDomRoot'](_0x1ba7e8),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[Bt,Et,Gt,Jt,Kt,Lt,Nt];class Rt extends/* #__PURE__ -- @preserve */
25
- _0x18e63e(_0x32421a){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x5043be={}){function _0x3a0275(_0x1b1764){return _0x1b1764['map'](_0x5153c4=>String['fromCharCode'](_0x5153c4))['join']('');}(_0x5043be=Object['assign']({},_0x5043be))['plugins']||(_0x5043be['plugins']=Rt['defaultPlugins']),super(_0x5043be),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[_0x3a0275([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a0275([0x76,0x69,0x65,0x77])][_0x3a0275([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a0275([0x61,0x75,0x74,0x6f]),this[_0x3a0275([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3a0275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a0275([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3a0275([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3a0275([0x6f,0x6b])});}['create'](){const _0x10ab27=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x10ab27))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x4e8942=>{const _0x110057=this['model']['document']['getRoot'](),_0x30b215=_0x110057&&_0x110057['getChild'](_0x110057['childCount']-0x1);_0x4e8942['setSelection'](_0x30b215,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0xa42764=this['editing']['view'],_0x1ba42c=_0xa42764['document']['getRoot'](),_0x2fdcaa=_0x1ba42c['getChild'](0x0);_0x1ba42c['childCount']>0x1||!_0x2fdcaa||'p'!=_0x2fdcaa['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0xa42764,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x2fdcaa['placeholder']=this['placeholder']),St({'view':_0xa42764,'element':_0x2fdcaa,'keepOnFocus':!0x0}),this['placeholderElement']=_0x2fdcaa);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x298b3c,_0x192eb1={}){super(_0x298b3c),this['editor']=null,this['_editorConfig']=_0x192eb1,this['set']('value',_0x192eb1['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x298b3c,'Reply...')),this['set']('submitLabel',S(_0x298b3c,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x1a1568(),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',(_0x500e06,_0x17ca1b)=>{this['cancelButtonView']['fire']('execute'),_0x17ca1b();}),this['keystrokes']['set']('Ctrl+Enter',(_0x105ddc,_0x26a311)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x26a311());}),this['on']('submit',(_0x44ca6b,_0x5ad5a9)=>{_0x5ad5a9['length']>0xfde8?(alert(S(_0x298b3c,'TOO_LONG_COMMENT_ALERT',[_0x5ad5a9['length'],0xfde8])),_0x44ca6b['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x7a4f2c=this['editor'];this['element']['insertBefore'](_0x7a4f2c['ui']['element'],this['element']['firstChild']),_0x7a4f2c['model']['document']['on']('change',()=>this['value']=_0x7a4f2c['getData']()),_0x7a4f2c['bind']('placeholder')['to'](this),this['focusables']['add'](_0x7a4f2c['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x251bbe){-0x1===_0x251bbe?(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:_0x39af49}=this,_0x1b1b60=new _0xc22dd3(_0x39af49);return _0x1b1b60['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x1b1b60['withText']=!0x0,_0x1b1b60['bind']('label')['to'](this,'submitLabel'),_0x1b1b60['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x1b1b60['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0xb18e78,_0x1de8b6)=>!_0x1de8b6&&!!_0xb18e78['trim']()),_0x1b1b60;}['_createCancelButton'](){const {locale:_0x572e03}=this,_0x598481=new _0xc22dd3(_0x572e03);return _0x598481['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x598481['label']=S(_0x572e03,'Cancel'),_0x598481['withText']=!0x0,_0x598481['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x598481;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x1525e3=>{this['focusTracker']['add'](_0x1525e3['element']);}),this['focusables']['on']('change',(_0x21895b,_0x4e5cba)=>{for(const _0x507aeb of Array['from'](_0x4e5cba['added'])['reverse']())this['focusTracker']['add'](_0x507aeb['element']);});}}class ie extends kt{constructor(_0x567b7c,_0x34472b,_0x31711e){super(_0x567b7c),this['commentInputView']=new hs(_0x567b7c,_0x31711e),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x4b55d1,_0x542289)=>_0x4b55d1||!!_0x542289),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 _0x1dda2f(_0x567b7c,_0x34472b),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'](_0x20f4f4){this['commentInputView']['focus'](_0x20f4f4);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x509b27,_0x42801b)=>{const {submitButtonView:_0x3563b3,cancelButtonView:_0x2ad064,editor:_0x3e5117}=this['commentInputView'];[_0x3563b3['element'],_0x2ad064['element'],_0x3e5117?_0x3e5117['editing']['view']['getDomRoot']():null]['filter'](_0x4044f7=>_0x4044f7)['some'](_0x517e0b=>_0x517e0b['contains'](_0x42801b['target']))||(this['focus'](),_0x42801b['preventDefault']());});}}class cs extends kt{constructor(_0x1a32e0){super(_0x1a32e0);const _0x2edeec=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2edeec['to']('count',_0x2b0602=>S(_0x1a32e0,'NUMBER_OF_COMMENTS',_0x2b0602))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x4bff97,_0x39b970,_0x42e5f5){super(_0x4bff97);const _0x3609e4=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x39b970['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x39b970,this['_config']=_0x42e5f5,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x1a1568(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x12a0b4=>this['commentViews']['map'](_0x17632f=>_0x17632f['element'])['includes'](_0x12a0b4['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x4bff97),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x3a6cc0=>_0x3a6cc0-this['_config']['maxCommentsWhenCollapsed']);for(const _0x20018a of _0x39b970['comments'])this['_handleNewCommentModel'](_0x20018a);this['_handleInfoComment'](),this['listenTo'](_0x39b970['comments'],'add',(_0x115c36,_0x3a3a38)=>{const _0x28b09c=this['_calculatePosition'](_0x3a3a38);this['length']++,this['_handleNewCommentModel'](_0x3a3a38,_0x28b09c),this['refreshVisibleViews']();}),this['listenTo'](_0x39b970['comments'],'remove',(_0x23d3ae,_0x354485)=>{this['length']--,this['_handleRemoveCommentModel'](_0x354485),this['refreshVisibleViews']();}),this['listenTo'](_0x39b970,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x39b970,'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',_0x3609e4['if']('length','ck-hidden',_0x62c3c9=>!_0x62c3c9)],'aria-label':S(_0x4bff97,'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'](_0x2c2793){-0x1===_0x2c2793?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3a160c of this['commentViews'])_0x3a160c['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x25b6d2,_0x3fa342){const _0x30f4fb=new this['_config']['CommentView'](this['locale'],_0x25b6d2,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x30f4fb['viewUid']=_0x25b6d2['id'],_0x30f4fb['delegate']('removeComment')['to'](this),_0x30f4fb['delegate']('updateComment')['to'](this),_0x30f4fb['delegate']('resolveCommentThread')['to'](this),_0x30f4fb['delegate']('editorReady')['to'](this),_0x30f4fb['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x30f4fb,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x30f4fb,_0x3fa342);}['_calculatePosition'](_0x3ccbc4){const _0x29cab6=this['_model']['_findOptimalIndex'](_0x3ccbc4);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x3ccbc4['authoredAt']?_0x29cab6-0x1:_0x29cab6:_0x29cab6-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x20be37={'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'],_0x20be37,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x20be37));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x47d182){const _0xacfb5=this['commentViews']['remove'](_0x47d182['id']);this['stopListening'](_0xacfb5),_0xacfb5['isEditMode']&&this['_updateHasDirtyComment'](),_0xacfb5['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x236216=>_0x236216['isEditMode']);}['_rearrangeCollapse'](){const _0x1daef5=function(_0x7615fc){const _0x3d12dd=new _0x55dc60();for(const _0x43d1f0 of _0x7615fc)_0x3d12dd['add'](_0x43d1f0);return _0x3d12dd;}(this['commentViews']),_0x2dcd71=this['_collapsedCommentsView']['count'];for(let _0x4a7485=0x1;_0x4a7485<=_0x2dcd71;_0x4a7485++)_0x1daef5['remove'](0x1);for(const _0x1c0a58 of _0x1daef5)_0x1c0a58['collapse']();_0x2dcd71>0x0&&_0x1daef5['add'](this['_collapsedCommentsView'],0x1),ns(_0x6f790e(Array['from'](this['visibleViews']),Array['from'](_0x1daef5)),this['visibleViews'],_0x1daef5);}['_rearrangeExpand'](){ns(_0x6f790e(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x4eb5bf of this['visibleViews'])_0x4eb5bf['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x4d3b87=>{this['focusTracker']['add'](_0x4d3b87['element']),this['keystrokes']['listenTo'](_0x4d3b87['element']);}),this['commentViews']['on']('change',(_0x484f39,_0x1662b7)=>{for(const _0x56ebfc of _0x1662b7['removed'])this['focusTracker']['remove'](_0x56ebfc['element']),this['keystrokes']['stopListening'](_0x56ebfc['element']);for(const _0x264a3f of Array['from'](_0x1662b7['added'])['reverse']())this['focusTracker']['add'](_0x264a3f['element']),this['keystrokes']['listenTo'](_0x264a3f['element']);});}}function ns(_0xe141b4,_0x4cb8de,_0x63d76b){let _0xb81869=0x0;for(const _0x4afca2 of _0xe141b4)switch(_0x4afca2){case'insert':_0x4cb8de['add'](_0x63d76b['get'](_0xb81869),_0xb81869),_0xb81869++;break;case'delete':_0x4cb8de['remove'](_0xb81869);break;case'equal':_0xb81869++;}}class as extends kt{constructor(_0xd73a16){super(_0xd73a16);const _0x23e579=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x23e579['to']('contextValue',_0x46c563=>S(_0xd73a16,'THREAD_CONTEXT_LABEL',_0x46c563)),'tabindex':-0x1},'children':[{'text':_0x23e579['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x120523,_0xb1d37b){super(_0x120523);const _0x5c8dd5=this['bindTemplate'];this['_model']=_0xb1d37b,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x1a1568(),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',_0x238f68=>!!_0x238f68),this['bind']('contextValue')['to'](this['_model'],'context',_0x5d0ec6=>_0x5d0ec6&&_0x5d0ec6['value']?this['_trimContextValue'](_0x5d0ec6['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',_0x5c8dd5['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 _0x3445a3=new _0xc22dd3(this['locale']);return _0x3445a3['label']=S(this['locale'],'Reopen'),_0x3445a3['tooltip']=S(this['locale'],'Reopen'),_0x3445a3['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>',_0x3445a3['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4c8589=>!_0x4c8589),_0x3445a3['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x300dc6,_0x3d2ec9)=>_0x300dc6&&_0x3d2ec9),_0x3445a3['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x3445a3;}['_trimContextValue'](_0x3f825d){if(_0x3f825d['length']<0x96)return _0x3f825d;const _0x2f4dc7=_0x3f825d['lastIndexOf']('\x20',0x93);return _0x3f825d['substring'](0x0,_0x2f4dc7>-0x1?_0x2f4dc7:0x93)+'...';}['_attachContextActions'](){const _0x4bf9a8=this['element']['querySelector']('.ck-context'),_0x24ecb6=_0x4bf9a8['querySelector']('.ck-context__value');this['listenTo'](_0x4bf9a8,'mouseenter',()=>{_0x24ecb6['offsetWidth']<_0x24ecb6['scrollWidth']&&_0x4bf9a8['classList']['add']('overlay');}),this['listenTo'](_0x4bf9a8,'mouseleave',()=>{_0x4bf9a8['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x3870f3 of this['focusables'])this['focusTracker']['add'](_0x3870f3['element']),this['keystrokes']['listenTo'](_0x3870f3['element']);}['_createContextView'](){const _0x213079=new as(this['locale']);return _0x213079['bind']('contextValue')['to'](this),_0x213079;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xb48209,_0x423230,_0xbcf035,_0x171642){super(_0xb48209),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x423230,this['_localUser']=_0xbcf035,this['_config']=_0x171642,this['commentThreadHeaderView']=new Yt(_0xb48209,_0x423230),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0xb48209,S(_0xb48209,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0xb48209,_0x423230,Object['assign']({'CommentView':this['_config']['CommentView']},_0x171642)),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',(_0x62ab94,_0x42e8e0)=>_0x62ab94||!!_0x42e8e0),this['bind']('isUnlinked')['to'](_0x423230,'unlinkedAt',_0x391057=>!!_0x391057),this['bind']('ariaLabel')['to'](this,'length',_0x1f5567=>{const _0x3100be=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x1f5567,_0x3100be]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x1a1568(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x178bb5=>_0x178bb5['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x51e8b0=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2a6d49=_0x51e8b0['commentInputView'];return _0x51e8b0['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x2a6d49,'value',(_0x1c2743,_0x44a863,_0x3532a1,_0x24e5f8,_0x3dd2bb)=>!!_0x3dd2bb||!!_0x24e5f8&&_0x3532a1&&!_0x44a863||_0x1c2743&&_0x3532a1&&!_0x44a863),_0x2a6d49['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x761727,_0x2bda0f,_0x5e63fb)=>{let _0x334509;return _0x334509=_0x5e63fb&&_0x2bda0f?'Reply\x20to\x20reopen\x20discussion...':_0x761727?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x334509);}),_0x2a6d49['bind']('submitLabel')['to'](this,'length',_0x443897=>S(this['locale'],_0x443897?'Reply':'Comment')),_0x2a6d49['on']('submit',(_0xc16b3,_0x200638)=>{this['fire']('addComment',_0x200638),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x2a6d49['on']('cancel',()=>{this['focus']();}),_0x2a6d49['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2a6d49['on']('cancel',_0x3f4bbf=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3f4bbf['stop']());}),this['on']('change:isActive',(_0x200440,_0x4f609b,_0x3fe58f)=>{_0x3fe58f||this['length']||_0x2a6d49['value']||this['fire']('removeCommentThread');}),_0x51e8b0;}}class Ct extends/* #__PURE__ -- @preserve */
27
- ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x3c3432,_0x3a420b,_0x228d4e,_0x8cb0ba){super(_0x3c3432,_0x3a420b,_0x228d4e,_0x8cb0ba),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x3c3432,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x116e6e,_0x4c863a,_0x41f70c)=>{_0x41f70c||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0xc661a0,_0x449c5c,_0x5a1ce8)=>{_0x5a1ce8&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x4eda3f=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x4eda3f['if']('isActive','ck-thread--active'),_0x4eda3f['if']('isUnlinked','ck-thread--unlinked'),_0x4eda3f['if']('isConfirm','ck-thread--remove-confirmation'),_0x4eda3f['to']('actionIndicator',_0x302ef5=>_0x302ef5?'ck-thread--'+_0x302ef5:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x4eda3f['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 _0x58ceec of this['commentsListView']['commentViews'])_0x58ceec['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x19e202}=this,_0x53e4d2=this['commentsListView']['commentViews']['get'](0x0);_0x53e4d2===this['_boundFirstCommentView']||_0x53e4d2['isSystemComment']||(this['_boundFirstCommentView']=_0x53e4d2,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x53e4d2,'actionIndicator',_0x3ef069=>'remove'===_0x3ef069?'remove':null),_0x53e4d2['placeholder']=S(_0x19e202,'Write\x20a\x20comment...'),_0x53e4d2['removeButton']['on']('execute',_0x590153=>{_0x590153['stop'](),this['showConfirm'](S(_0x19e202,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x53e4d2['focus']();}),_0x53e4d2['actionBar']['add'](this['resolveButton'],0x0),_0x53e4d2['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x2a54bd=new _0x27988a(this['locale']);return _0x2a54bd['label']=S(this['locale'],'Resolve'),_0x2a54bd['tooltip']=S(this['locale'],'Resolve'),_0x2a54bd['icon']=_0x2283c2['check'],_0x2a54bd['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x2a54bd['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x23269a=>!_0x23269a),_0x2a54bd['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x1c36d9,_0x43e405)=>_0x1c36d9&&!_0x43e405),_0x2a54bd['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x2a54bd;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0x40ab29){super(_0x40ab29),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0xdafbcd,_0x3b3f35,_0x978aef)=>{this['element']['innerHTML']=_0x978aef;}),this['element']['innerHTML']=this['content'];}}class os extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xb4eaf8,_0xa17a31,_0x35c931){super(_0xb4eaf8),this['_model']=_0xa17a31,this['_config']=_0x35c931,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0xa17a31,'content',_0xa17a31,'authoredAt',(_0x462021,_0x53681f)=>S(_0xb4eaf8,'COMMENT_ARIA_LABEL',[_0xa17a31['author']['name'],_0x35c931['formatDateTime'](_0x53681f),new DOMParser()['parseFromString'](_0x462021,'text/html')['body']['textContent'],_0xa17a31['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0xb4eaf8,S(_0xb4eaf8,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x2ff85e(),this['focusTracker']=new _0x1a1568(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5bd34c=>_0x5bd34c['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 _0x2ed607=new es(this['locale']);return _0x2ed607['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x1d68a1,_0xb095b0)=>_0xb095b0?_0x4ba9c4(_0x1d68a1,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x1d68a1),_0x2ed607;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x46c2d7=new hs(this['locale'],this['_config']['editorConfig']);return _0x46c2d7['value']=this['_model']['content'],_0x46c2d7['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x46c2d7['submitLabel']=S(this['locale'],'Save'),_0x46c2d7['on']('submit',(_0x31e157,_0x4190db)=>{this['fire']('updateComment',this['_model']['id'],_0x4190db),this['switchToDisplayMode'](),this['focus']();}),_0x46c2d7['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x46c2d7['once']('editorReady',()=>{_0x46c2d7['focus']();}),_0x46c2d7['createEditor'](),_0x46c2d7['delegate']('editorReady')['to'](this),_0x46c2d7['delegate']('editorDestroyed')['to'](this),_0x46c2d7;}['_setupKeyboardNavigation'](){const _0x187ef0=this['element'];this['keystrokes']['listenTo'](_0x187ef0);for(const _0x973282 of this['focusables'])this['focusTracker']['add'](_0x973282['element']),this['keystrokes']['listenTo'](_0x973282['element']);this['focusables']['on']('change',(_0x2595b0,_0x160984)=>{for(const _0x4feb71 of _0x160984['removed'])this['focusTracker']['remove'](_0x4feb71['element']),this['keystrokes']['stopListening'](_0x4feb71['element']);for(const _0x28ec3c of _0x160984['added'])this['focusTracker']['add'](_0x28ec3c['element']),this['keystrokes']['listenTo'](_0x28ec3c['element']);}),this['keystrokes']['set']('enter',(_0x2cb0d0,_0x3dbfaa)=>{_0x187ef0===_0x2cb0d0['target']&&(this['focusCycler']['focusFirst'](),_0x3dbfaa());}),this['keystrokes']['set']('esc',(_0x101157,_0x305e7f)=>{_0x187ef0!==_0x101157['target']&&(this['focus'](),_0x305e7f());});}}class vt extends/* #__PURE__ -- @preserve */
28
- ti(os){['actionBar'];['userView'];constructor(_0x21e2c6,_0x1dcbda,_0x1e322c){super(_0x21e2c6,_0x1dcbda,_0x1e322c),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x21e2c6,'Reply...')),this['bind']('authoredAt')['to'](_0x1dcbda),this['bind']('resolvedAt')['to'](_0x1dcbda),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 _0x1dda2f(_0x21e2c6,_0x1dcbda['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x1dcbda,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x570806=this['bindTemplate'],_0x3527cd=[{'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':_0x570806['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x570806['to']('authoredAt',_0x250afc=>this['_config']['formatDateTime'](_0x250afc))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x570806['if']('isEditMode','ck-comment__actions--hidden'),_0x570806['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']&&_0x3527cd['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x570806['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x570806['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x570806['if']('isEditMode','ck-comment--edit'),_0x570806['if']('isSystemComment','ck-comment--info'),_0x570806['to']('actionIndicator',_0x21d2e4=>_0x21d2e4?'ck-comment--'+_0x21d2e4:'')],'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':_0x3527cd}]}]};}['_createEditButton'](){const _0x283125=new _0xc22dd3(this['locale']);return _0x283125['label']=S(this['locale'],'Edit'),_0x283125['icon']=_0x2283c2['pencil'],_0x283125['withText']=!0x0,_0x283125['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x283125['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x33827c=>!_0x33827c),_0x283125['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x283125['on']('execute',()=>this['switchToEditMode']()),_0x283125;}['_createRemoveButton'](){const _0x2e3c4a=new _0xc22dd3(this['locale']);return _0x2e3c4a['label']=S(this['locale'],'Remove'),_0x2e3c4a['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',_0x2e3c4a['withText']=!0x0,_0x2e3c4a['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x2e3c4a['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x388fbb=>!_0x388fbb),_0x2e3c4a['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x2e3c4a['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x2e3c4a;}['_createDropdown'](){const _0x36f579=_0x32b072(this['locale'],_0x50d91e),_0x4b0c33=_0x36f579['panelView']['children'],_0x38bb4c=new _0xd43cb7(this['locale']),_0x1b4e4f=_0x36f579['bindTemplate'];_0xa16bdc(_0x36f579,()=>this['items']['find'](_0x106f74=>_0x106f74['isVisible'])),_0x36f579['extendTemplate']({'attributes':{'class':[_0x1b4e4f['if']('isVisible','ck-hidden',_0x34f110=>!_0x34f110)]}});const _0xd0fe95=(_0x5f5b56,_0x5617e1=-0x1)=>{const _0x153463=new _0x4c4dfa(this['locale']);_0x153463['children']['add'](_0x5f5b56);const _0x914fcd=_0x5617e1>-0x1?_0x5617e1:_0x38bb4c['items']['length'];_0x38bb4c['items']['add'](_0x153463,_0x914fcd);const _0x420bcd=Array['from'](this['items']);_0x36f579['unbind']('isEnabled','isVisible'),_0x36f579['bind']('isEnabled')['toMany'](_0x420bcd,'isEnabled',(..._0x1138b4)=>_0x1138b4['some'](_0x4cc8ef=>_0x4cc8ef)),_0x36f579['bind']('isVisible')['toMany'](_0x420bcd,'isVisible',(..._0x5a3201)=>_0x5a3201['some'](_0x14513a=>_0x14513a));};_0x36f579['panelPosition']='sw',_0x36f579['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x2283c2['threeVerticalDots']});for(const _0x2b7be0 of this['items'])_0xd0fe95(_0x2b7be0);return _0x4b0c33['add'](_0x38bb4c),_0x36f579['listenTo'](this['items'],'add',(_0xc3b86e,_0x2e5b70,_0x47ac07)=>{_0xd0fe95(_0x2e5b70,_0x47ac07);}),_0x36f579['listenTo'](this['items'],'remove',(_0xbc4a13,_0x14e7d4,_0x1a8edb)=>{_0x38bb4c['items']['remove'](_0x1a8edb);}),_0x36f579;}['_attachActions'](_0x42a5b7,_0x3ce06f){const _0x409854=_0x42a5b7&&_0x42a5b7['element'];_0x409854&&(this['listenTo'](_0x409854,'mouseenter',()=>this['actionIndicator']=_0x3ce06f),this['listenTo'](_0x409854,'focus',()=>this['actionIndicator']=_0x3ce06f),this['listenTo'](_0x409854,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x409854,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x45f197=super['_createCommentInputView']();return _0x45f197['bind']('placeholder')['to'](this),_0x45f197;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Dt(_0x2735cb){const _0x3ccf49=bt(_0x2735cb,0x1e),_0x4f5021=new MutationObserver(_0x457772=>{for(const _0x1bd8d6 of _0x457772)('attributes'==_0x1bd8d6['type']&&'class'==_0x1bd8d6['attributeName']||'childList'==_0x1bd8d6['type']||'characterData'==_0x1bd8d6['type'])&&_0x3ccf49();});return{'attach'(_0x12375d){_0x4f5021['observe'](_0x12375d,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x4f5021['disconnect'](),_0x3ccf49['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x5c36b5,_0x23e1d6){super(_0x5c36b5),this['id']=_0x4e9e8d(),this['focusTracker']=new _0x1a1568(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0xf84ef1,_0x25ca64)=>this['fire']('Esc',_0x25ca64)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Dt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x23e1d6),this['mainView']=_0x23e1d6;const _0x6984cc=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x6984cc['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 _0x1270e2=this['element']['clientHeight'];_0x1270e2&&(this['height']=_0x1270e2);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x18e63e(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x1fb0bb,target:_0x1e8a39,type:_0x1fa694,isVisible:_0x5abbaa=!0x0}){super(),this['view']=_0x1fb0bb,this['view']['element']||this['view']['render'](),this['_type']=_0x1fa694,this['_target']=_0x1e8a39,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x55dc60([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x222f72,_0x8747a8)=>{this['view']['focusTracker']['add'](_0x8747a8);}),this['focusableElements']['on']('remove',(_0x4ac788,_0x46cabd)=>{this['view']['focusTracker']['remove'](_0x46cabd);}),this['set']('isVisible',_0x5abbaa);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x38fee5=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x38fee5),_0x38fee5;}get['targetRect'](){const _0x3cfc57=this['target'];if(null===_0x3cfc57)return null;if(_0x3cfc57 instanceof _0x5c15ed)return _0x3cfc57;const _0x2a8dd7=_0x3cfc57['filter'](_0x1fdcf2=>function(_0x330f16){const _0x332d6d=_0x330f16['offsetParent'];if(_0x332d6d)return!0x0;const _0xfbdbce=_0x330f16['getClientRects']()['item'](0x0);return!!_0xfbdbce;}(_0x1fdcf2));return 0x0===_0x2a8dd7['length']?null:new _0x5c15ed(_0x2a8dd7[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x44d7f5){this['view']['isActive']=_0x44d7f5,this['view']['mainView']['isActive']=_0x44d7f5;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x31ebf2){if(!(null===_0x31ebf2||_0x31ebf2 instanceof _0x5c15ed||Array['isArray'](_0x31ebf2)&&_0x31ebf2['every'](_0x358787=>ne(_0x358787))))throw new _0x441e7c('annotation-invalid-target',null,{'target':_0x31ebf2});}['_getNormalizedTarget'](){const _0x5e2b2d='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x5e2b2d)?[_0x5e2b2d]:_0x5e2b2d;}}function ne(_0x59a5c5){return null!==_0x59a5c5&&'object'==typeof _0x59a5c5&&'nodeType'in _0x59a5c5&&0x1===_0x59a5c5['nodeType'];}class x extends _0x55dc60{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x572ca9=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x1a1568(),this['_focusTracker']['on']('change:isFocused',(_0x20919a,_0x403519,_0x57fb9c)=>{_0x57fb9c||this['fire']('blur');});for(const _0x1db6e0 of _0x572ca9)this['add'](_0x1db6e0);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x342657){if(this['has'](_0x342657))throw new _0x441e7c('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x342657['innerView'],_0x342657),this['_viewToAnnotation']['set'](_0x342657['view'],_0x342657);for(const _0x140f25 of _0x342657['focusableElements'])this['_focusTracker']['add'](_0x140f25);this['listenTo'](_0x342657['focusableElements'],'add',(_0x303b33,_0xc85fc8)=>{this['_focusTracker']['add'](_0xc85fc8);}),this['listenTo'](_0x342657['focusableElements'],'remove',(_0x2ea142,_0x10f8d8)=>{this['_focusTracker']['remove'](_0x10f8d8);}),this['listenTo'](_0x342657['view']['focusTracker'],'change:isFocused',(_0x154f60,_0x4b4845,_0xfefd5e)=>{_0xfefd5e&&this['fire']('focus',_0x342657);}),_0x342657['updateTargetRect']();const _0x2a3f09=this['_getOrderInContent'](_0x342657['view']['targetRect']);return super['add'](_0x342657,_0x2a3f09);}['remove'](_0xa1d9e9){if(!this['has'](_0xa1d9e9))throw new _0x441e7c('annotationcollection-not-existing-item',null);this['stopListening'](_0xa1d9e9['view']['focusTracker']),this['stopListening'](_0xa1d9e9['focusableElements']);for(const _0x5da7aa of _0xa1d9e9['focusableElements'])this['_focusTracker']['remove'](_0x5da7aa);return this['_viewToAnnotation']['delete'](_0xa1d9e9['view']),this['_innerViewToAnnotation']['delete'](_0xa1d9e9['innerView']),super['remove'](_0xa1d9e9);}['getByInnerView'](_0xebb289){return this['_innerViewToAnnotation']['get'](_0xebb289);}['getByView'](_0x2fbf87){return this['_viewToAnnotation']['get'](_0x2fbf87);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x9023f5 of this)_0x9023f5['updateTargetRect']();this['_sort']();}['_sort'](){const _0x3a70d1=Array['from'](this)['sort']((_0x39429f,_0x50ab01)=>v(_0x39429f['view']['targetRect'],_0x50ab01['view']['targetRect']));for(let _0x5a877b=_0x3a70d1['length']-0x1;_0x5a877b>0x0;_0x5a877b--){const _0x2aac27=_0x3a70d1[_0x5a877b];_0x5a877b!==this['getIndex'](_0x2aac27)&&(this['remove'](_0x2aac27),this['add'](_0x2aac27));}}['_getOrderInContent'](_0x5da4bd){let _0x575f16=0x0;if(!_0x5da4bd)return this['length'];for(const _0x806734 of this){const _0x51c049=_0x806734['view']['targetRect'];if(_0x51c049){if(v(_0x5da4bd,_0x51c049)<0x0)return _0x575f16;_0x575f16++;}}return _0x575f16;}}function v(_0xc64a68,_0x1ac4a4){if(null===_0xc64a68&&null===_0x1ac4a4)return 0x0;if(null===_0xc64a68)return-0x1;if(null===_0x1ac4a4)return 0x1;const _0x52d469=_0xc64a68['top']-_0x1ac4a4['top'];return 0x0==_0x52d469?_0xc64a68['left']-_0x1ac4a4['left']:_0x52d469;}class N extends _0x298ec9{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f6858){if(super(_0x4f6858),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x4f6858 instanceof _0x32421a){const _0x543b01=_0x4f6858['locale'];_0x4f6858['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x543b01,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x543b01,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x543b01,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x543b01,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x543b01,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x543b01,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x543b01,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x54174c){this['collection']['add'](_0x54174c);}['remove'](_0x1c820f){this['collection']['remove'](_0x1c820f),_0x1c820f['destroy']();}['refreshVisibility'](){for(const _0x174ae4 of this['collection'])_0x174ae4['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x16e256){return this['collection']['getByInnerView'](_0x16e256);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1d8634 of this['collection'])_0x1d8634['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x2f1c4a){this['fire']('_activateAnnotation',_0x2f1c4a);}['createAnnotation'](_0x1823e6){return new d(_0x1823e6);}['createAnnotationView'](_0xbc2245,_0x2badb5){return new T(_0xbc2245,_0x2badb5);}['_addActiveAnnotation'](_0x5bb987){const _0x199df8=new Set(this['activeAnnotations']);_0x199df8['add'](_0x5bb987),this['activeAnnotations']=_0x199df8;}['_removeActiveAnnotation'](_0x49cff3){const _0x26f146=new Set(this['activeAnnotations']);_0x26f146['delete'](_0x49cff3),this['activeAnnotations']=_0x26f146;}['_bindAnnotationsToVisibleAnnotations'](){const _0x270e05=this['collection'],_0x2c99ce=this['_visibleAnnotations'];function _0x4e92f1(_0x1517dd){const _0x586397=_0x1517dd['source'];_0x586397['isVisible']&&!_0x2c99ce['has'](_0x586397)?_0x2c99ce['add'](_0x586397):!_0x586397['isVisible']&&_0x2c99ce['has'](_0x586397)&&_0x2c99ce['remove'](_0x586397),_0x586397['view']['focusTracker']['remove'](_0x586397['view']['element']),_0x586397['view']['focusTracker']['add'](_0x586397['view']['element']);}this['listenTo'](_0x270e05,'add',(_0x43feaf,_0x37b250)=>{_0x37b250['isVisible']&&_0x2c99ce['add'](_0x37b250),this['listenTo'](_0x37b250,'change:isVisible',_0x4e92f1);}),this['listenTo'](_0x270e05,'remove',(_0x3a58a4,_0x23e72f)=>{_0x2c99ce['has'](_0x23e72f)&&_0x2c99ce['remove'](_0x23e72f),this['stopListening'](_0x23e72f,'change:isVisible',_0x4e92f1);});}['_setupEnterAnnotationKeystroke'](){const _0x5d4088=_0x8eb7b0=>{_0x8eb7b0['on']('ready',()=>{_0x8eb7b0['keystrokes']['set'](_0x3f5078,(_0x32a5ab,_0x291079)=>{const _0x3e8c2d=_0x29ae78(this['activeAnnotations']['values']());_0x3e8c2d&&(_0x3e8c2d['view']['focus'](),_0x291079());});});};this['context']instanceof _0x32421a?_0x5d4088(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x20a910,_0x394a37)=>{_0x5d4088(_0x394a37);});}['_setupEscapeAnnotationHandling'](){const _0x276b15=_0x4a11b1=>{const _0x284e89=_0x4a11b1['source'],_0x318f3b=[];let _0x48726b;if(Array['isArray'](_0x284e89['target'])){_0x48726b=_0x284e89['target'][0x0],this['context']instanceof _0x32421a?_0x318f3b['push'](this['context']):this['context']['editors']&&_0x318f3b['push'](...this['context']['editors']);for(const _0x976064 of _0x318f3b)for(const _0x2a07ac of _0x976064['editing']['view']['domRoots']['values']())if(_0x2a07ac['contains'](_0x48726b))return void _0x976064['editing']['view']['focus']();_0x48726b['focus']();}};this['listenTo'](this['collection'],'add',(_0xdc816f,_0x1bafad)=>{this['listenTo'](_0x1bafad,'escape',_0x276b15,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x953d03,_0x44fe1c)=>{this['stopListening'](_0x44fe1c,'escape',_0x276b15);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x298ec9{['_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(_0x539aa8){super(_0x539aa8),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1de077=this['context']['config'];_0x1de077['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1de077['define']('comments.maxThreadTotalWeight',0x1f4),_0x1de077['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1de077['define']('comments.CommentThreadView',Ct),_0x1de077['define']('comments.CommentView',vt),_0x1de077['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0xbdf9bc=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x863421,_0x1922f3)=>this['_addCommentThread'](_0x1922f3)),this['on']('submitCommentThread',(_0x5b3706,_0x3ac6f9)=>this['_submitCommentThread'](_0x3ac6f9)),this['on']('resolveCommentThread',(_0x152dfd,_0x5a115f)=>this['_resolveCommentThread'](_0x5a115f)),this['on']('resolveCommentThread',(_0x579513,_0x35f75f)=>this['_updateActiveAnnotation'](_0x35f75f),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x3684c5,_0xaddef4)=>this['_reopenCommentThread'](_0xaddef4)),this['on']('reopenCommentThread',(_0x180e4a,_0x3102d9)=>this['_updateActiveAnnotation'](_0x3102d9),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x286b36,_0x344ae2)=>this['_removeCommentThread'](_0x344ae2)),this['on']('updateCommentThread',(_0x504564,_0x505fb0)=>this['_updateCommentThread'](_0x505fb0)),this['on']('updateCommentThread',(_0x389632,_0x556659)=>this['_updateActiveAnnotation'](_0x556659),{'priority':'lowest'}),this['on']('addComment',(_0x2dce52,_0x3f9250)=>this['_addComment'](_0x3f9250)),this['on']('updateComment',(_0x53a120,_0x37200d)=>this['_updateComment'](_0x37200d)),this['on']('removeComment',(_0x5e7163,_0xd764c4)=>this['_removeComment'](_0xd764c4)),this['on']('addComment',(_0xe97c8b,{threadId:_0x3f08c4,isFromAdapter:_0x3aae6b})=>{if(_0x3aae6b)return;const _0x3baff1=this['getCommentThread'](_0x3f08c4),_0xe8e24=_0x3baff1&&this['_threadToController']['get'](_0x3baff1);_0xe8e24&&_0xe8e24['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0xbdf9bc,'change:activeAnnotations',(_0x20a5c0,_0x2d8373,_0x1d87ab)=>{const _0x58b0cc=Array['from'](_0x1d87ab)['map'](_0x101203=>this['_viewToController']['get'](_0x101203['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x58b0cc?_0x58b0cc['model']:null;});}set['adapter'](_0x2dd2b0){if(this['_adapter'])throw new _0x441e7c('commentsrepository-adapter-already-set');this['_adapter']=_0x2dd2b0;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0xab2501=gt,threadId:_0x3bd8e7=_0x4e9e8d(),comments:_0x10ad0c=[],unlinkedAt:_0x250b53=null,resolvedAt:_0x3b979e=null,resolvedBy:_0x15cf3e=null,target:_0x337813=null,context:_0x2b737e=null,attributes:_0x8d8a2={},isResolvable:_0x35322c=!0x0,isSubmitted:_0x475a0f=!0x1,isFromAdapter:_0x276c90=!0x1}={}){return this['fire'](_t('addCommentThread',_0xab2501),{'channelId':_0xab2501,'threadId':_0x3bd8e7,'comments':_0x10ad0c,'unlinkedAt':_0x250b53,'resolvedAt':_0x3b979e,'resolvedBy':_0x15cf3e,'target':_0x337813,'context':_0x2b737e,'attributes':_0x8d8a2,'isFromAdapter':_0x276c90,'isResolvable':_0x35322c,'isSubmitted':_0x475a0f}),this['getCommentThread'](_0x3bd8e7);}['openNewCommentThread']({channelId:_0x343526=gt,threadId:_0x151265=_0x4e9e8d(),target:_0x43563b,context:_0x1cedb2=null,isResolvable:_0xff8aed=!0x0}){if(this['_readOnlyChannels']['has'](_0x343526)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x43563b)throw new _0x441e7c('commentsrepository-missing-target');const _0x2c2b42=this['addCommentThread']({'channelId':_0x343526,'threadId':_0x151265,'target':_0x43563b,'context':_0x1cedb2,'isResolvable':_0xff8aed});if(!_0x2c2b42)return null;const _0xb3b6fc=this['_threadToController']['get'](_0x2c2b42),_0x4aea7e=_0xb3b6fc['view']['commentThreadInputView']['commentInputView'],_0x47adb0=this['context']['plugins']['get'](N),_0x4ce212=_0x47adb0['getByInnerView'](_0xb3b6fc['view']);return _0x47adb0['activate'](_0x4ce212),_0x4aea7e['once']('editorReady',()=>_0x4aea7e['focus']()),_0x2c2b42;}['hasCommentThread'](_0x5da77c){if('string'!=typeof _0x5da77c)throw new _0x441e7c('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x5da77c);}['updateCommentThread']({channelId:_0x597646=gt,threadId:_0x343af1,context:_0x57d195,unlinkedAt:_0x25cb58,attributes:_0x54957a,isFromAdapter:_0x1cd9b7=!0x1}){return this['fire'](_t('updateCommentThread',_0x597646),{'channelId':_0x597646,'threadId':_0x343af1,'context':_0x57d195,'unlinkedAt':_0x25cb58,'attributes':_0x54957a,'isFromAdapter':_0x1cd9b7}),this['getCommentThread'](_0x343af1);}['getCommentThread'](_0x356253){if('string'!=typeof _0x356253)throw new _0x441e7c('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x356253);}['fetchCommentThread']({channelId:_0x5502b6,threadId:_0x201222}={}){const _0x6768bb=this['getCommentThread'](_0x201222);if(_0x6768bb)return Promise['resolve'](_0x6768bb);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x441e7c('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x5502b6,'threadId':_0x201222})['then'](_0x19392d=>this['hasCommentThread'](_0x201222)?this['getCommentThread'](_0x201222):_0x19392d?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x5502b6},_0x19392d)):void 0x0)['catch'](_0x3103fc=>{throw console['error'](_0x3103fc),new _0x441e7c('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x35343b,skipNotAttached:_0x31fdf3=!0x1,skipEmpty:_0x5841c5=!0x1,toJSON:_0x2fc36e=!0x1}={}){const _0x27ec3e=[];for(const _0x8c03c0 of this['_threads']['values']())_0x35343b&&_0x8c03c0['channelId']!==_0x35343b||_0x31fdf3&&!_0x8c03c0['isAttached']||_0x5841c5&&0x0===_0x8c03c0['length']||_0x27ec3e['push'](_0x8c03c0);return _0x2fc36e?_0x27ec3e['map'](_0x424c01=>_0x424c01['toJSON']()):_0x27ec3e;}['setActiveCommentThread'](_0xb8841d){const _0x2688ef=this['context']['plugins']['get'](N);if(!_0xb8841d)return void(this['activeCommentThread']&&_0x2688ef['deactivateAll']());const _0x181e14=this['getCommentThread'](_0xb8841d);if(!_0x181e14)throw new _0x441e7c('commentsrepository-active-missing-comment-thread',null,{'threadId':_0xb8841d});if(!this['_threadToController']['has'](_0x181e14))throw new _0x441e7c('commentsrepository-active-not-attached',null,{'threadId':_0xb8841d});const _0x25bc29=_0x2688ef['getByInnerView'](this['_threadToController']['get'](_0x181e14)['view']);_0x2688ef['activate'](_0x25bc29);}['switchReadOnly'](_0x11c6f9,_0x30c0e2){_0x11c6f9?this['_readOnlyChannels']['add'](_0x30c0e2):this['_readOnlyChannels']['delete'](_0x30c0e2),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x406013){return this['_readOnlyChannels']['has'](_0x406013)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x3653e7,_0x13b789){return new yt(_0x3653e7,_0x13b789);}['setPermissions'](_0x24ff9d,_0x697ee8=gt){this['_permissions']['set'](_0x697ee8,_0x24ff9d),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x4e5a8f=gt){return this['_permissions']['has'](_0x4e5a8f)?this['_permissions']['get'](_0x4e5a8f):Tt;}['_addCommentThread']({channelId:_0x2db373,threadId:_0x484cc2,comments:_0x348cb9,unlinkedAt:_0x3d4722,resolvedAt:_0x2e9510,resolvedBy:_0x5e47b2,target:_0x4e88eb,context:_0x578c4d,attributes:_0x2f3e24,isFromAdapter:_0x3b1373,isResolvable:_0x4e4a81,isSubmitted:_0x122bf8}){if('string'!=typeof _0x484cc2)throw new _0x441e7c('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x484cc2});if(this['hasCommentThread'](_0x484cc2))throw new _0x441e7c('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x484cc2});const _0x36e46e=new oe(this,{'channelId':_0x2db373,'id':_0x484cc2,'context':_0x578c4d,'attributes':_0x2f3e24,'unlinkedAt':_0x3d4722,'resolvedAt':_0x2e9510,'resolvedBy':_0x5e47b2?this['context']['plugins']['get'](it)['getUser'](_0x5e47b2):null,'isResolvable':_0x4e4a81,'isSubmitted':_0x122bf8||_0x3b1373});this['_threads']['set'](_0x484cc2,_0x36e46e);for(const _0x5af580 of _0x348cb9)_0x36e46e['_add'](this['_createNewComment']({'threadId':_0x484cc2,..._0x5af580}));return _0x4e88eb&&_0x36e46e['attachTo'](_0x4e88eb),_0x3b1373||!_0x36e46e['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x2db373,'threadId':_0x484cc2});}['_submitCommentThread']({channelId:_0x319092,threadId:_0xbf71bb}){if(!this['hasCommentThread'](_0xbf71bb))throw new _0x441e7c('commentsrepository-missing-comment-thread',this);const _0x53ca8e=this['getCommentThread'](_0xbf71bb);if(_0x53ca8e['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x214744,comments:_0x3b04cb,resolvedAt:_0x473685,resolvedBy:_0x36ef3e,context:_0x5cb9bb,attributes:_0x22966d}=_0x53ca8e,_0x481e7b=this['context']['plugins']['get']('PendingActions'),_0x5609d8=_0x481e7b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x319092,'threadId':_0x214744,'comments':_0x3b04cb['map'](_0x1675eb=>_0x1675eb['toJSON']()),'resolvedAt':_0x473685,'resolvedBy':_0x36ef3e?_0x36ef3e['id']:_0x36ef3e,'context':_0x5cb9bb,'attributes':_0x22966d})['then'](({comments:_0x538ee4})=>{_0x481e7b['remove'](_0x5609d8);for(const _0x48618f of _0x538ee4)this['_updateComment']({'channelId':_0x319092,'threadId':_0xbf71bb,'commentId':_0x48618f['commentId'],'createdAt':_0x48618f['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4ea3f2=>{throw console['error'](_0x4ea3f2),new _0x441e7c('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x47ca0f,target:_0x22c4d0}){const _0x284fa7=this['getCommentThread'](_0x47ca0f);if(!_0x284fa7)throw new _0x441e7c('commentsrepository-attach-missing-comment-thread',this);const _0x537d2c=this['context']['plugins']['get']('PendingActions'),_0x396e03=this['context']['plugins']['get'](N),_0x3c9dbc=this['_createCommentThreadView'](_0x284fa7),_0x39732d=new yt(_0x284fa7,_0x3c9dbc);let _0x334a9f=null;_0x3c9dbc['on']('change:isDirty',(_0x2244be,_0xe885c,_0x104910)=>{_0x104910?_0x334a9f=_0x537d2c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x334a9f&&(_0x537d2c['remove'](_0x334a9f),_0x334a9f=null);}),this['_threadToController']['set'](_0x284fa7,_0x39732d),this['_viewToController']['set'](_0x3c9dbc,_0x39732d);const _0x3466c4=new T(this['context']['locale'],_0x3c9dbc);_0x3466c4['bind']('length')['to'](_0x3c9dbc),_0x3466c4['bind']('isDirty')['to'](_0x3c9dbc,'isDirty',_0x3c9dbc,'length',(_0x37d25d,_0x12b450)=>_0x37d25d||!_0x12b450),_0x3466c4['bind']('isActive')['to'](_0x3c9dbc),_0x3466c4['type']='comment';const _0x53c1f2=new d({'view':_0x3466c4,'target':_0x22c4d0,'type':'comment','isVisible':!_0x284fa7['isResolved']});return _0x3c9dbc['on']('escape',()=>{_0x53c1f2['fire']('escape');}),this['_bindAnnotationToEditors'](_0x3c9dbc,_0x53c1f2),_0x396e03['add'](_0x53c1f2),_0x53c1f2;}['_bindAnnotationToEditors'](_0x52c4cd,_0x336834){this['listenTo'](_0x52c4cd,'editorReady',(_0x33b85d,_0x3c0bbb)=>{const _0x2ef38d=_0x3c0bbb['ui']['view']['body']['bodyCollectionContainer'];_0x336834['focusableElements']['add'](_0x2ef38d),this['context']instanceof _0x32421a&&this['context']['ui']['focusTracker']['add'](_0x2ef38d);},{'priority':'highest'}),this['listenTo'](_0x52c4cd,'editorDestroyed',(_0x390bec,_0x36eea2)=>{const _0x4d9ffd=_0x36eea2['ui']['view']['body']['bodyCollectionContainer'];_0x336834['focusableElements']['has'](_0x4d9ffd)&&_0x336834['focusableElements']['remove'](_0x4d9ffd),this['context']instanceof _0x32421a&&this['context']['ui']['focusTracker']['remove'](_0x4d9ffd);});}['_unbindEditors'](_0x51a11d){this['stopListening'](_0x51a11d,'editorReady'),this['stopListening'](_0x51a11d,'editorDestroyed');}['_createCommentThreadView'](_0x4841e5){const _0x2e2678=this['context']['plugins']['get'](it),{config:_0x3be331,locale:_0xc5e785}=this['context'],_0x1daffe=mt(_0x3be331['get']('locale'));return new(0x0,(_0x3be331['get']('comments'))['CommentThreadView'])(_0xc5e785,_0x4841e5,_0x2e2678['me'],{'editorConfig':{..._0x3be331['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x3be331['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x3be331['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3be331['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3be331['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1daffe,'CommentView':_0x3be331['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x2cdf8a,channelId:_0x24e226,resolvedAt:_0x4bcb54,resolvedBy:_0x5c003e,isFromAdapter:_0x485ac3}){if(!this['hasCommentThread'](_0x2cdf8a))throw new _0x441e7c('commentsrepository-missing-comment-thread',null,{'threadId':_0x2cdf8a});const _0x18e152=this['getCommentThread'](_0x2cdf8a);if(_0x18e152['isResolved'])throw new _0x441e7c('commentsrepository-resolved-comment-thread',null,{'threadId':_0x2cdf8a});const _0x399721=this['context']['plugins']['get'](it);if(_0x18e152['resolvedBy']=_0x399721['getUser'](_0x5c003e),_0x18e152['resolvedAt']=_0x4bcb54,_0x485ac3||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x2333c3=this['context']['plugins']['get']('PendingActions'),_0x179919=_0x2333c3['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x24e226,'threadId':_0x2cdf8a})['then'](({resolvedAt:_0x23a812,resolvedBy:_0xa35ab3})=>{_0x2333c3['remove'](_0x179919),_0x18e152['resolvedBy']['id']!==_0xa35ab3&&(_0x18e152['resolvedBy']=_0x399721['getUser'](_0xa35ab3)),_0x18e152['resolvedAt']=_0x23a812;})['catch'](_0x52a341=>{throw console['error'](_0x52a341),new _0x441e7c('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x3f3f55,channelId:_0x387bf2,isFromAdapter:_0x33128b}){if(!this['hasCommentThread'](_0x3f3f55))throw new _0x441e7c('commentsrepository-missing-comment-thread',null,{'threadId':_0x3f3f55});const _0x2cea02=this['getCommentThread'](_0x3f3f55);if(!_0x2cea02['isResolved'])throw new _0x441e7c('commentsrepository-reopen-comment-thread',null,{'threadId':_0x3f3f55});if(_0x2cea02['resolvedBy']=null,_0x2cea02['resolvedAt']=null,_0x33128b||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x3b4e06=this['context']['plugins']['get']('PendingActions'),_0x526e70=_0x3b4e06['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x387bf2,'threadId':_0x3f3f55})['then'](()=>_0x3b4e06['remove'](_0x526e70))['catch'](_0x542640=>{throw console['error'](_0x542640),new _0x441e7c('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x32285f,isFromAdapter:_0x10ecbb}){const _0x47d482=this['getCommentThread'](_0x32285f);if(!_0x47d482)throw new _0x441e7c('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x32285f),this['_threads']['delete'](_0x32285f),!_0x47d482['isSubmitted']||_0x10ecbb||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x4b5a97=this['context']['plugins']['get']('PendingActions'),{channelId:_0x41b65f}=_0x47d482,_0x224f9a=_0x4b5a97['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x41b65f,'threadId':_0x32285f})['then'](()=>_0x4b5a97['remove'](_0x224f9a))['catch'](_0x55eb06=>{throw console['error'](_0x55eb06),new _0x441e7c('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x33b38c,unlinkedAt:_0x18307,context:_0x39ba89,attributes:_0x12459a,isFromAdapter:_0x15d47c}){if('string'!=typeof _0x33b38c)throw new _0x441e7c('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x33b38c});if(!this['hasCommentThread'](_0x33b38c))throw new _0x441e7c('commentsrepository-missing-comment-thread',null,{'threadId':_0x33b38c});const _0x339d9e=this['getCommentThread'](_0x33b38c);let _0x261219=!0x1;if(void 0x0!==_0x39ba89&&_0x339d9e['context']!==_0x39ba89&&(_0x339d9e['context']=_0x39ba89,_0x261219=!0x0),void 0x0!==_0x18307&&_0x339d9e['unlinkedAt']!==_0x18307&&(_0x339d9e['unlinkedAt']=_0x18307,_0x261219=!0x0),_0x12459a&&!It(_0x12459a,_0x339d9e['attributes'])&&(_0x339d9e['attributes']=_0x12459a,_0x261219=!0x0),!_0x261219)return Promise['resolve']();if(!_0x339d9e['isSubmitted']||_0x15d47c||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x51085d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2cb5f4}=_0x339d9e,_0x108c7f=_0x51085d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x2cb5f4,'threadId':_0x33b38c,'context':_0x39ba89,'unlinkedAt':_0x18307,'attributes':_0x12459a})['then'](()=>_0x51085d['remove'](_0x108c7f))['catch'](_0x2eff2a=>{throw console['error'](_0x2eff2a),new _0x441e7c('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x567f17){const _0x446538=this['context']['plugins']['get'](N),_0xb12eb9=this['getCommentThread'](_0x567f17);if(this['_threadToController']['has'](_0xb12eb9)){const _0x5d019a=this['_threadToController']['get'](_0xb12eb9),_0x16eb5d=_0x5d019a['view'],_0x5b797e=_0x446538['getByInnerView'](_0x16eb5d);this['_threadToController']['delete'](_0xb12eb9),this['_viewToController']['delete'](_0x16eb5d),_0x5b797e&&_0x446538['remove'](_0x5b797e),_0x5d019a['destroy'](),_0x16eb5d['destroy']()['then'](()=>{this['_unbindEditors'](_0x16eb5d);});}}['_updateActiveAnnotation']({threadId:_0xb727e2,resolvedAt:_0x1d7ff0}){const _0x13bcf4=!!_0x1d7ff0,_0x5edc55=this['context']['plugins']['get'](N),_0x47ad8f=this['getCommentThread'](_0xb727e2);if(this['_threadToController']['has'](_0x47ad8f)){const _0x5ae7e9=this['_threadToController']['get'](_0x47ad8f)['view'],_0x314df7=_0x5edc55['getByInnerView'](_0x5ae7e9);_0x314df7&&(_0x13bcf4&&_0x5edc55['_removeActiveAnnotation'](_0x314df7),_0x314df7['refreshVisibility']());}}['_getExternalAuthor'](_0x4ea42b){const _0x4a77fc=this['context']['plugins']['get'](it),_0x32cedf=lt('external:'+_0x4ea42b),_0x299a9e=_0x4a77fc['getUser'](_0x32cedf);return _0x299a9e||_0x4a77fc['addUser']({'id':_0x32cedf,'name':_0x4ea42b});}['_createNewComment']({threadId:_0x55ac67,commentId:_0x59633c=_0x4e9e8d(),content:_0x45c515,authorId:_0x743aa6,createdAt:_0x430b80,attributes:_0x67adf3}){if('string'!=typeof _0x59633c)throw new _0x441e7c('commentsrepository-invalid-commentid');if('string'!=typeof _0x743aa6)throw new _0x441e7c('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x45c515||!_0x45c515['trim']())throw new _0x441e7c('commentsrepository-invalid-comment-content');const _0x49fe11=this['context']['plugins']['get'](it)['getUser'](_0x743aa6);if(!_0x49fe11)throw new _0x441e7c('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x743aa6});let _0x2e9fed=null,_0x33eea4=_0x430b80;return _0x67adf3&&_0x67adf3['@external']&&(_0x2e9fed=this['_getExternalAuthor'](_0x67adf3['@external']['authorName']),_0x33eea4=new Date(_0x67adf3['@external']['createdAt'])),new re(this,{'threadId':_0x55ac67,'id':_0x59633c,'author':_0x2e9fed||_0x49fe11,'creator':_0x49fe11,'content':_0x45c515,'createdAt':_0x430b80,'authoredAt':_0x33eea4,'attributes':_0x67adf3});}['_addComment'](_0x4ba28a){let {threadId:_0x220155,content:_0x40bca5,attributes:_0x930f33,isFromAdapter:_0x306b35}=_0x4ba28a;const _0x843880=this['getCommentThread'](_0x4ba28a['threadId']);if(!_0x843880)throw new _0x441e7c('commentsrepository-add-comment-to-missing-comment-thread',this);const _0xee56e7=this['_createNewComment'](_0x4ba28a),{id:_0x318b11}=_0xee56e7;if(_0x843880['_add'](_0xee56e7),_0x306b35||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x843880['isSubmitted'])return Promise['resolve']();const _0x5d7330=this['context']['plugins']['get']('PendingActions'),{channelId:_0x53f187}=_0x843880,_0x42d462=_0x5d7330['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x930f33||(_0x930f33={}),this['adapter']['addComment']({'channelId':_0x53f187,'threadId':_0x220155,'commentId':_0x318b11,'content':_0x40bca5,'attributes':_0x930f33})['then'](_0x5a107e=>{_0x5d7330['remove'](_0x42d462),_0x5a107e&&this['_updateComment']({'channelId':_0x53f187,'threadId':_0x220155,'commentId':_0x318b11,'createdAt':_0x5a107e['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2804f0=>{throw console['error'](_0x2804f0),new _0x441e7c('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x2b537e,commentId:_0x468487,content:_0x554459,createdAt:_0x13bac4,attributes:_0x27fa4a,isFromAdapter:_0x1e5132}){if(void 0x0!==_0x554459&&('string'!=typeof _0x554459||!_0x554459['trim']()['length']))throw new _0x441e7c('commentsrepository-update-comment-invalid-content');const _0x3ddf6c=this['getCommentThread'](_0x2b537e),_0x3e9ad6=_0x3ddf6c['getComment'](_0x468487);if(!_0x3e9ad6)throw new _0x441e7c('commentsrepository-update-missing-comment',this);let _0x3036de=!0x1;if(_0x554459&&_0x554459!==_0x3e9ad6['content']&&(_0x3e9ad6['isEditable']||_0x1e5132)&&(_0x3e9ad6['content']=_0x554459,_0x3036de=!0x0),_0x13bac4&&_0x13bac4!==_0x3e9ad6['createdAt']&&(_0x3e9ad6['createdAt']=_0x13bac4,_0x3e9ad6['attributes']&&_0x3e9ad6['attributes']['@external']||(_0x3e9ad6['authoredAt']=_0x13bac4),_0x3036de=!0x0),_0x27fa4a&&!It(_0x27fa4a,_0x3e9ad6['attributes'])&&(_0x3e9ad6['attributes']=_0x27fa4a,_0x3036de=!0x0),!_0x3036de)return Promise['resolve']();if(_0x3ddf6c['fire']('commentUpdated'),_0x1e5132||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x3a605b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x469e46}=this['getCommentThread'](_0x3e9ad6['threadId']),_0x59193a=_0x3a605b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x469e46,'threadId':_0x2b537e,'commentId':_0x468487,'content':_0x554459,'attributes':_0x27fa4a})['then'](()=>_0x3a605b['remove'](_0x59193a))['catch'](_0x48a044=>{throw console['error'](_0x48a044),new _0x441e7c('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x2e0833,commentId:_0x23e200,isFromAdapter:_0x62179b}){const _0x1a42f0=this['getCommentThread'](_0x2e0833),_0x410e45=_0x1a42f0['getComment'](_0x23e200);if(!_0x410e45)throw new _0x441e7c('commentsrepository-remove-missing-comment',this);if(_0x1a42f0['_remove'](_0x410e45),_0x62179b||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x55edf7=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5e8c52}=_0x1a42f0,_0x273cb1=_0x55edf7['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x5e8c52,'threadId':_0x2e0833,'commentId':_0x23e200})['then'](()=>_0x55edf7['remove'](_0x273cb1))['catch'](_0x457ae2=>{throw console['error'](_0x457ae2),new _0x441e7c('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
- _0x18e63e(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x5df34f,_0x4bbca7){super();const _0x58b925=_0x4bbca7['isResolvable'];this['channelId']=_0x4bbca7['channelId'],this['id']=_0x4bbca7['id'],this['comments']=new _0x55dc60(),this['_repository']=_0x5df34f,this['_isAttached']=!0x1,this['_isSubmitted']=_0x4bbca7['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x5df34f,'_permissions',_0x5df34f,'_readOnlyChannels',()=>_0x5df34f['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x5df34f,'_permissions',()=>_0x5df34f['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x5df34f,'_permissions',()=>{const _0x1911ea=_0x5df34f['getPermissions'](this['channelId']);return _0x1911ea['write']||_0x1911ea['admin'];}),this['bind']('isResolvable')['to'](_0x5df34f,'_permissions',()=>_0x58b925&&_0x5df34f['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x4bbca7['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0xe11d95,_0x82231b)=>_0xe11d95?_0x82231b?_0xe11d95<_0x82231b?_0xe11d95:_0x82231b:_0xe11d95:_0x82231b),this['set']('unlinkedAt',_0x4bbca7['unlinkedAt']||null),this['set']('resolvedAt',_0x4bbca7['resolvedAt']||null),this['set']('resolvedBy',_0x4bbca7['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x508932=>!!_0x508932),this['set']('attributes',_0x4bbca7['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0xf9af88,_0x474f40)=>_0xf9af88+_0x474f40['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x37f90d,id:_0x274ac1}=this;this['_repository']['fire'](_t('submitCommentThread',_0x37f90d),{'channelId':_0x37f90d,'threadId':_0x274ac1});}['setUnlinkedAt'](_0x5c8502){this['_update']({'unlinkedAt':_0x5c8502});}['resolve']({resolvedAt:_0x3f39c6=new Date(),resolvedBy:_0x2942eb=null,isFromAdapter:_0x4cc930=!0x1}={}){const _0x115358=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x14d403,id:_0x59bc2c}=this;this['_repository']['fire'](_t('resolveCommentThread',_0x14d403),{'channelId':_0x14d403,'threadId':_0x59bc2c,'resolvedAt':_0x3f39c6,'resolvedBy':_0x2942eb||_0x115358['id'],'isFromAdapter':_0x4cc930});}['reopen']({isFromAdapter:_0x86793d=!0x1}={}){const {channelId:_0x264479,id:_0x1612ff}=this;this['_repository']['fire'](_t('reopenCommentThread',_0x264479),{'channelId':_0x264479,'threadId':_0x1612ff,'isFromAdapter':_0x86793d});}['setContext'](_0x22540b){this['context']||this['_update']({'context':_0x22540b});}['setAttribute'](_0x15d299,_0x3678b0){const _0x1927e1=pt(this['attributes']);wt(_0x1927e1,_0x15d299,_0x3678b0),this['_update']({'attributes':_0x1927e1});}['removeAttribute'](_0x2230f5){const _0xa1483c=pt(this['attributes']);At(_0xa1483c,_0x2230f5),this['_update']({'attributes':_0xa1483c});}['remove']({isFromAdapter:_0x3ac57c=!0x1}={}){const {channelId:_0x46ccda,id:_0x541259}=this;this['_repository']['fire'](_t('removeCommentThread',_0x46ccda),{'channelId':_0x46ccda,'threadId':_0x541259,'isFromAdapter':_0x3ac57c});}['attachTo'](_0x597cea){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x597cea});}['addComment'](_0x178b37){const {channelId:_0x1fe930,id:_0x2c54ae}=this;this['_repository']['fire'](_t('addComment',_0x1fe930,_0x2c54ae),Object['assign']({'channelId':_0x1fe930,'threadId':_0x2c54ae},_0x178b37));}['getComment'](_0x2b880b){if('string'!=typeof _0x2b880b)throw new _0x441e7c('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x2b880b});return this['comments']['get'](_0x2b880b);}['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'](_0x1d2a08=>_0x1d2a08['toJSON']()),'attributes':this['attributes']};}['_add'](_0x244856){return this['listenTo'](_0x244856,'change:authoredAt',()=>{const _0xdf22ef=this['_findOptimalIndex'](_0x244856),_0x22cc0e=this['comments'];_0xdf22ef-0x1!=_0x22cc0e['getIndex'](_0x244856)&&_0xdf22ef+0x1!=_0x22cc0e['getIndex'](_0x244856)&&(this['_remove'](_0x244856),this['_add'](_0x244856));}),this['comments']['add'](_0x244856,this['_findOptimalIndex'](_0x244856));}['_update'](_0xe01e9f){const {channelId:_0x1e58c8,id:_0x28d261}=this;this['_repository']['fire'](_t('updateCommentThread',_0x1e58c8),{..._0xe01e9f,'channelId':_0x1e58c8,'threadId':_0x28d261});}['_remove'](_0x24529e){return this['stopListening'](_0x24529e),_0x24529e['destroy'](),this['comments']['remove'](_0x24529e);}['_findOptimalIndex'](_0x32a237){const _0x127165=this['comments']['find'](_0x3dd736=>new Date(_0x3dd736['authoredAt'])['getTime']()>new Date(_0x32a237['authoredAt'])['getTime']());return _0x127165?this['comments']['getIndex'](_0x127165):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
- _0x18e63e(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x3b74f7,_0x3b6b16){super();const _0x9324db=_0x3b74f7['context']['plugins']['get'](it)['me'],_0x335d17=_0x3b74f7['getCommentThread'](_0x3b6b16['threadId']),_0x43d331=0x0===_0x335d17['comments']['length'],_0x5ae2c3=_0x9324db===_0x3b6b16['author'];this['id']=_0x3b6b16['id'],this['threadId']=_0x3b6b16['threadId'],this['author']=_0x3b6b16['author'],this['creator']=_0x3b6b16['creator'],this['isExternal']=Boolean(_0x3b6b16['attributes']&&_0x3b6b16['attributes']['@external']),this['set']('content',_0x3b6b16['content']),this['createdAt']=_0x3b6b16['createdAt']||new Date(),this['set']('authoredAt',_0x3b6b16['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x335d17,'resolvedAt'),this['set']('attributes',_0x3b6b16['attributes']||{}),this['bind']('isEditable')['to'](_0x3b74f7,'_permissions',()=>{const _0x2c0ced=_0x3b74f7['getPermissions'](_0x335d17['channelId'])['write'],_0x33c744=_0x3b74f7['getPermissions'](_0x335d17['channelId'])['modifyAll'];return _0x5ae2c3&&_0x2c0ced||!_0x5ae2c3&&_0x33c744;}),this['bind']('isRemovable')['to'](_0x335d17,'isRemovable',_0x3b74f7,'_permissions',_0x36f217=>{const _0x42ad2c=_0x3b74f7['getPermissions'](_0x335d17['channelId'])['write'],_0x5a4312=_0x3b74f7['getPermissions'](_0x335d17['channelId'])['modifyAll'];return _0x5ae2c3&&_0x42ad2c||_0x36f217&&_0x43d331||!_0x5ae2c3&&_0x5a4312&&!_0x43d331;}),this['bind']('isReadOnly')['to'](_0x335d17,'isReadOnly'),this['_repository']=_0x3b74f7;}get['weight'](){return Math['max'](function(_0x2f5d33){const _0x193705=document['createElement']('div');return _0x193705['innerHTML']=_0x2f5d33,_0x193705['textContent']['length'];}(this['content']),0xc8);}['update'](_0x396096){const {threadId:_0x26880c,id:_0x290173}=this;if(!this['_repository']['hasCommentThread'](_0x26880c))throw new _0x441e7c('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x387efd}=this['_repository']['getCommentThread'](_0x26880c);this['_repository']['fire'](_t('updateComment',_0x387efd,_0x26880c),{'channelId':_0x387efd,'threadId':_0x26880c,'commentId':_0x290173,..._0x396096});}['setAttribute'](_0x596d2b,_0x1f7cf8){const _0x3fa07f=pt(this['attributes']);wt(_0x3fa07f,_0x596d2b,_0x1f7cf8),this['update']({'attributes':_0x3fa07f});}['removeAttribute'](_0xb1a080){const _0x10923a=pt(this['attributes']);At(_0x10923a,_0xb1a080),this['update']({'attributes':_0x10923a});}['remove'](_0x50b378={}){if(!_0x50b378['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x10bbdc,id:_0x2f7c88}=this;if(!this['_repository']['hasCommentThread'](_0x10bbdc))throw new _0x441e7c('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x2e696f}=this['_repository']['getCommentThread'](_0x10bbdc);this['_repository']['fire'](_t('removeComment',_0x2e696f,_0x10bbdc),{'channelId':_0x2e696f,'threadId':_0x10bbdc,'commentId':_0x2f7c88,..._0x50b378});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0x588e45,..._0x286174){for(const _0x155103 of _0x286174)void 0x0!==_0x155103&&(_0x588e45+=':'+String(_0x155103));return _0x588e45;}class J extends _0x4826d4{['refresh'](){const _0xe2d5e2=this['editor']['model']['document']['selection'];for(const _0x51edb3 of _0xe2d5e2['getRanges']())if(this['_hasContent'](_0x51edb3))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x5304a0=_0x4e9e8d()}={}){const _0x37e2fd=this['editor']['model'],_0x47eeb1=[];for(const _0x177ae8 of _0x37e2fd['document']['selection']['getRanges']())this['_hasContent'](_0x177ae8)&&_0x47eeb1['push'](this['_trimToContent'](_0x177ae8));_0x37e2fd['change'](_0x5da6d6=>{for(const _0x426a73 of _0x47eeb1){const _0x5c3c70=_0x4e9e8d()['substr'](0x1,0x5),_0x595e38='comment:'+_0x5304a0+':'+_0x5c3c70;_0x5da6d6['addMarker'](_0x595e38,{'range':_0x426a73,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x506c76){for(const _0x5ea6b6 of _0x506c76['getItems']())if(this['_itemIsContent'](_0x5ea6b6))return!0x0;return!0x1;}['_itemIsContent'](_0x4174d1){return _0x4174d1['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4174d1)&&!_0x4174d1['is']('element','tableCell');}['_trimToContent'](_0x37b6af){const _0x115685=_0x463a1f=>!this['_itemIsContent'](_0x463a1f['item']),_0x4d69a3=_0x37b6af['start']['getLastMatchingPosition'](_0x115685),_0x57b974=_0x37b6af['end']['getLastMatchingPosition'](_0x115685,{'direction':'backward'});return this['editor']['model']['createRange'](_0x4d69a3,_0x57b974);}}class P extends _0x3d936c{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x385e16){super(_0x385e16),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0xdb7b54=this['editor'],_0x3ce2de=_0xdb7b54['model']['document']['selection'],_0x2937b7=_0x2023a9(()=>this['refreshSelectedViews'](),0xa);_0x3ce2de['on']('change:range',(_0x11eb66,_0x29c117)=>{_0x29c117['directChange']&&(_0x2937b7['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0xdb7b54['editing']['view']['document'],'change:isFocused',(_0x10db09,_0x15b30b,_0x379cb3)=>{_0x379cb3&&_0x2937b7();}),this['listenTo'](_0xdb7b54['ui']['focusTracker'],'change:isFocused',(_0x56f8fa,_0x49c40c,_0x5de4b5)=>{_0x5de4b5||_0xdb7b54['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x4d5193=>this['_editorAnnotationsData']['has'](_0x4d5193['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x5cd401){if(this['_editorAnnotations']['has'](_0x5cd401['view']))return;this['_editorAnnotations']['add'](_0x5cd401['view']),this['editor']['ui']['focusTracker']['add'](_0x5cd401['view']['element']);const _0x27f39f=this['editor']['plugins']['get'](N);this['listenTo'](_0x27f39f['collection'],'remove',(_0x43120a,_0x35eaf8)=>{this['editor']['ui']['focusTracker']['remove'](_0x35eaf8['view']['element']),this['_editorAnnotations']['delete'](_0x35eaf8['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x210447){if('function'!=typeof _0x210447)throw new _0x441e7c('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x210447);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x1d5a97,annotations:_0x437d75}){const _0x29b7e9=[],_0x487b8e=this['editor']['model']['document']['selection'],_0xb4d0bf=Array['from'](_0x487b8e['getRanges']());for(const [_0x101b06,_0x368b64]of this['_editorAnnotationsData']){const _0x1f14de=_0x544e5c(_0x368b64),_0x457108=_0x437d75['getByInnerView'](_0x101b06);_0x1f14de&&_0x457108&&_0x29b7e9['push']({'annotation':_0x457108,'range':_0x1f14de});}function _0x544e5c(_0x4fc75d){for(const _0x53bb12 of _0x4fc75d)for(const _0x17ccc0 of _0xb4d0bf)if(_0x53bb12['containsRange'](_0x17ccc0,!_0x487b8e['isCollapsed']))return _0x53bb12;return null;}return _0x29b7e9['sort']((_0x2802ec,_0x3916bd)=>{const _0x106dcf=_0x2802ec['range'],_0x51f12f=_0x3916bd['range'];if(!_0x106dcf['isEqual'](_0x51f12f)){if(_0x106dcf['containsRange'](_0x51f12f,!0x0))return 0x1;if(_0x51f12f['containsRange'](_0x106dcf,!0x0))return-0x1;}return _0x2802ec['annotation']==_0x1d5a97?-0x1:_0x3916bd['annotation']==_0x1d5a97?0x1:0x0;})['map'](_0x5c2bac=>_0x5c2bac['annotation']);}get['_editorAnnotationsData'](){const _0x528497=new Map();for(const _0x59d236 of Array['from'](this['_dataCollectors']))for(const [_0x3c91bb,_0x369144]of _0x59d236())_0x528497['set'](_0x3c91bb,_0x369144);return _0x528497;}}class st extends _0x3d936c{['afterInit'](){const _0x12e1f1=this['editor'];if(!_0x12e1f1['plugins']['has']('RestrictedEditingModeEditing'))return;_0x12e1f1['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3d936c{constructor(_0x144b87){super(_0x144b87),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x7d4f96=this['editor'],_0x2ddf81=_0x7d4f96['commands']['get']('importWord'),_0x2622cc=_0x7d4f96['plugins']['get'](it);_0x2ddf81&&(_0x2ddf81['on']('execute',(_0x134e7e,[,_0x13c8c7])=>{_0x13c8c7['collaboration_features']={'comments':!0x0,'user_id':_0x2622cc['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x2ddf81,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x218c62,_0x2e3ffe){const {comment_threads:_0x15722b}=_0x2e3ffe;_0x15722b&&_0x15722b['forEach'](({thread_id:_0x24bea4,comments:_0x361b07,is_resolved:_0x1fa78c})=>{const _0x45f58f=new Date(),_0x25f7ec=_0x361b07['map'](({author:_0x4c7224,content:_0x578620,created_at:_0x15678b})=>({'content':_0x578620,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x45f58f,'attributes':{'@external':{'authorName':_0x4c7224,'createdAt':_0x15678b?new Date(_0x15678b):new Date(),'source':'importWord'}}})),_0xfb82ad=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0xfb82ad,'threadId':_0x24bea4,'comments':_0x25f7ec,'resolvedAt':_0x1fa78c?_0x45f58f:null});});}}class at extends _0x3d936c{constructor(_0x12dab0){super(_0x12dab0),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x3a1f1e=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x3a1f1e,'contentInsertion',(_0x145a3a,_0x189527)=>this['_removeMarkersWithoutThreads'](_0x189527['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xda70bf){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xda70bf;const _0x11510b=this['editor']['plugins']['get']('CommentsRepository');for(const _0x5686df of _0xda70bf['keys']()){const [_0x4dfd1b,_0xddf5b9]=_0x5686df['split'](':');'comment'!=_0x4dfd1b||_0x11510b['hasCommentThread'](_0xddf5b9)||_0xda70bf['delete'](_0x5686df);}return _0xda70bf;}['_registerMarkerInClipboardPipeline'](){const _0x467dfa=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x475edb=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x475edb&&_0x467dfa['_registerMarkerToCopy']('comment',_0x475edb);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x35a13f){switch(_0x35a13f){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0x3d936c{static get['requires'](){return[o,P,it,st,ct,at];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50a0c4){super(_0x50a0c4),this['set']('isThreadsLoadingPaused',!0x0),_0x50a0c4['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x3a2d91,_0x9ddcf5,_0x129bd2,_0x321c3e)=>{const _0x45daf3=_0x129bd2?he(_0x129bd2)['id']:null;if(_0x50a0c4['model']['change'](()=>{if(_0x45daf3){const _0x4b8057=this['getAllMarkersForId'](_0x45daf3);for(const _0x5ccfbc of _0x4b8057)_0x50a0c4['editing']['reconvertMarker'](_0x5ccfbc);}if(_0x321c3e){const {id:_0x3b9b9a}=he(_0x321c3e),_0x204036=this['getAllMarkersForId'](_0x3b9b9a);for(const _0x14ec32 of _0x204036)_0x50a0c4['editing']['reconvertMarker'](_0x14ec32);}}),_0x45daf3){const _0x2c8351=_0x50a0c4['plugins']['get'](o)['getCommentThread'](_0x45daf3);_0x2c8351&&_0x2c8351['isResolved']&&this['scrollToThreadMarker'](_0x45daf3);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4ac4f0=this['editor'],_0x18cf76=_0x4ac4f0['plugins']['get'](o),_0x2185d0=_0x4ac4f0['config']['get']('collaboration.channelId');_0x4ac4f0['commands']['add']('addCommentThread',new J(_0x4ac4f0)),this['listenTo'](_0x4ac4f0,'change:isReadOnly',(_0x5e5587,_0x52c247,_0x1cb78d)=>{_0x18cf76['switchReadOnly'](_0x1cb78d,_0x4ac4f0['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x18cf76,ut('addCommentThread',_0x2185d0),(_0x47bd34,{threadId:_0x369094})=>{const _0x1ae9b2=this['editor']['plugins']['get'](o)['getCommentThread'](_0x369094);_0x1ae9b2&&_0x1ae9b2['unlinkedAt']&&this['_attachArchivedThread'](_0x369094);}),this['listenTo'](_0x18cf76,ut('removeCommentThread',_0x2185d0),(_0x193af3,{threadId:_0x5e4bb9})=>{_0x4ac4f0['model']['enqueueChange']({'isUndoable':!0x1},_0x17224a=>{const _0x191c0e=this['getAllMarkersForId'](_0x5e4bb9);for(const _0x3a46f8 of _0x191c0e)_0x17224a['removeMarker'](_0x3a46f8);});}),this['listenTo'](_0x18cf76,ut('resolveCommentThread',_0x2185d0),(_0x2d86d2,{threadId:_0x17e65a})=>{(this['_reconvertMarkers'](_0x17e65a),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x17e65a)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x18cf76,ut('reopenCommentThread',_0x2185d0),(_0x207bf9,{threadId:_0x365cd4})=>{this['_reconvertMarkers'](_0x365cd4);},{'priority':'low'}),this['listenTo'](_0x18cf76,ut('addComment',_0x2185d0),(_0x27a8d6,{threadId:_0x1ad502,isFromAdapter:_0x5755a2})=>{const _0x5098d7=this['getAllMarkersForId'](_0x1ad502);if(_0x5755a2||0x0==_0x5098d7['length']||!_0x18cf76['hasCommentThread'](_0x1ad502))return;0x1===_0x18cf76['getCommentThread'](_0x1ad502)['length']&&_0x4ac4f0['model']['enqueueChange']({'isUndoable':!0x1},_0x5b6af3=>{for(const _0xe376de of _0x5098d7)_0x5b6af3['updateMarker'](_0xe376de,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x1870f3){const _0x9541f4=_0x509292([0x37,0x68,0x48,0x46,0x69,0x44,0x6b,0x58,0x4d,0x42,0x6d,0x36,0x74,0x75,0x6e,0x61,0x54,0x59,0x56,0x6a,0x4f,0x4e,0x49,0x7a,0x65,0x57,0x71,0x35,0x55,0x4c,0x6c,0x34,0x67,0x62,0x64,0x6f,0x32,0x72,0x79,0x52,0x47,0x78,0x43,0x66,0x33,0x63,0x76,0x53,0x51,0x30,0x38,0x73,0x77,0x5a,0x45,0x70,0x39,0x4b,0x41,0x31,0x50,0x4a]),_0x48e7c5=0x7c5dcfc6,_0x204f00=0x7c5a979e^_0x48e7c5,_0x44cedd=window[_0x509292([0x44,0x61,0x74,0x65])][_0x509292([0x6e,0x6f,0x77])](),_0x1f5efe=_0x1870f3[_0x509292([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e94e2=new window[(_0x509292([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x372298=>{_0x1f5efe[_0x509292([0x6f,0x6e,0x63,0x65])](_0x509292([0x72,0x65,0x61,0x64,0x79]),_0x372298);}),_0x52f446={[_0x509292([0x6b,0x74,0x79])]:_0x509292([0x45,0x43]),[_0x509292([0x75,0x73,0x65])]:_0x509292([0x73,0x69,0x67]),[_0x509292([0x63,0x72,0x76])]:_0x509292([0x50,0x2d,0x32,0x35,0x36]),[_0x509292([0x78])]:_0x509292([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]),[_0x509292([0x79])]:_0x509292([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]),[_0x509292([0x61,0x6c,0x67])]:_0x509292([0x45,0x53,0x32,0x35,0x36])},_0x3c491c=_0x1f5efe[_0x509292([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x509292([0x67,0x65,0x74])](_0x509292([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23021b(){let _0xcaad4b,_0x368d0d=null,_0x84db02=null;try{if(_0x3c491c==_0x509292([0x47,0x50,0x4c]))return _0x509292([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xcaad4b=_0x45228a(),!_0xcaad4b)return _0x509292([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xcaad4b[_0x509292([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x84db02=_0x2bd5dc(_0xcaad4b[_0x509292([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xcaad4b[_0x509292([0x6a,0x74,0x69])])),await _0x531d58()?_0x29cc01()?_0x3d175e()?_0x509292([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x23f642()?(_0xcaad4b[_0x509292([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x509292([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x368d0d=_0x3c64ba(_0x509292([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xcaad4b[_0x509292([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x509292([0x74,0x72,0x69,0x61,0x6c])&&(_0x368d0d=_0x3c64ba(_0x509292([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0xcaad4b[_0x509292([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x509292([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x368d0d=_0x3c64ba(_0x509292([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x72b1c8()):_0x509292([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x509292([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x509292([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x29006f){return _0x509292([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d175e(){const _0x104ccf=[_0x509292([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x509292([0x74,0x72,0x69,0x61,0x6c])][_0x509292([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcaad4b[_0x509292([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44cedd/0x3e8:0xe10*_0x204f00;return _0xcaad4b[_0x509292([0x65,0x78,0x70])]<_0x104ccf;}function _0x29cc01(){const _0xaadd87=_0xcaad4b[_0x509292([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xaadd87)return!0x1;if(_0xaadd87[_0x509292([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x509292([0x2a])))return!0x0;if(_0xaadd87[_0x509292([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x509292([0x43,0x4d,0x54])))return!0x0;if(_0xaadd87[_0x509292([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x509292([0x52,0x43,0x4d,0x54]))){if(_0x2094a5())return!0x0;if(_0xa1792c()||_0x203b7f())return!0x0;}return!0x1;}function _0x23f642(){const _0x144842=_0xcaad4b[_0x509292([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x144842||0x0==_0x144842[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e8d33}=new URL(window[_0x509292([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x144842[_0x509292([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e8d33))return!0x0;const _0x4a0b1a=_0x5e8d33[_0x509292([0x73,0x70,0x6c,0x69,0x74])](_0x509292([0x2e]));return _0x144842[_0x509292([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b4282=>_0x2b4282[_0x509292([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x509292([0x2a])))[_0x509292([0x6d,0x61,0x70])](_0x356a59=>_0x356a59[_0x509292([0x73,0x70,0x6c,0x69,0x74])](_0x509292([0x2e])))[_0x509292([0x73,0x6f,0x6d,0x65])](_0x233f28=>_0x4a0b1a[_0x509292([0x65,0x76,0x65,0x72,0x79])]((_0x55473a,_0x1aa25f)=>_0x233f28[_0x1aa25f]===_0x55473a||_0x233f28[_0x1aa25f]===_0x509292([0x2a])));}function _0x72b1c8(){return _0x368d0d&&_0x84db02?new window[(_0x509292([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3480e7,_0x5dd86e)=>{_0x368d0d[_0x509292([0x74,0x68,0x65,0x6e])](_0x3480e7,_0x5dd86e),_0x84db02[_0x509292([0x74,0x68,0x65,0x6e])](_0x224f7b=>{_0x224f7b!=_0x509292([0x56,0x61,0x6c,0x69,0x64])&&_0x3480e7(_0x224f7b);},_0x5dd86e);}):_0x368d0d||_0x84db02||_0x509292([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2bd5dc(_0xc8f765,_0x5919cd){return new window[(_0x509292([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf1b7dd=>{if(_0x3b26df())return _0xf1b7dd(_0x509292([0x56,0x61,0x6c,0x69,0x64]));_0x143d6a(),_0x1f5efe[_0x509292([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x509292([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3441da=!0x1;const _0x325c8b=_0x4e9e8d();function _0x17c0cd(_0x585338){return!!_0x585338&&(typeof _0x585338===_0x509292([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x585338===_0x509292([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x585338[_0x509292([0x74,0x68,0x65,0x6e])]===_0x509292([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x585338[_0x509292([0x63,0x61,0x74,0x63,0x68])]===_0x509292([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32dfd4(_0x290e24){_0x322cf1(_0x290e24)[_0x509292([0x74,0x68,0x65,0x6e])](_0x5db1f0=>{if(!_0x5db1f0||_0x5db1f0[_0x509292([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x509292([0x6f,0x6b]))return _0x509292([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4586ee(_0x252d13(_0x325c8b+_0x5919cd))!=_0x5db1f0[_0x509292([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x509292([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x509292([0x56,0x61,0x6c,0x69,0x64]);})[_0x509292([0x74,0x68,0x65,0x6e])](_0x2e623b=>(_0xe26037(),_0x2e623b),()=>{const _0x342f81=_0x419e1b();return null==_0x342f81?(_0xe26037(),_0x509292([0x56,0x61,0x6c,0x69,0x64])):_0x509292(_0x44cedd-_0x342f81>(0x58514bc6^_0x48e7c5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x509292([0x74,0x68,0x65,0x6e])](_0xf1b7dd)[_0x509292([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf1b7dd(_0x509292([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd455cb=0x7c6b2146^_0x48e7c5;function _0xe26037(){const _0x165912=_0x509292([0x6c,0x6c,0x63,0x74,0x2d])+_0x4586ee(_0x252d13(_0xc8f765)),_0x284f9f=_0x2b2fa3(_0x4586ee(window[_0x509292([0x4d,0x61,0x74,0x68])][_0x509292([0x63,0x65,0x69,0x6c])](_0x44cedd/_0xd455cb)));window[_0x509292([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x509292([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x165912,_0x284f9f);}function _0x419e1b(){const _0x3240d5=_0x509292([0x6c,0x6c,0x63,0x74,0x2d])+_0x4586ee(_0x252d13(_0xc8f765)),_0x3a7f52=window[_0x509292([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x509292([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3240d5);return _0x3a7f52?window[_0x509292([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b2fa3(_0x3a7f52),0x10)*_0xd455cb:null;}function _0x322cf1(_0x1408cd){return new window[(_0x509292([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x200ac6,_0x33277e)=>{_0x1408cd[_0x509292([0x74,0x68,0x65,0x6e])](_0x200ac6,_0x33277e),window[_0x509292([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33277e,0x7c5c1b06^_0x48e7c5);});}}_0x1f5efe[_0x509292([0x6f,0x6e])](_0x509292([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41c2ab,_0x34c89a)=>{if(_0x34c89a[0x0]!=_0xc8f765)return _0xf1b7dd(_0x509292([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34c89a[0x1]={..._0x34c89a[0x1],[_0x509292([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x325c8b};},{[_0x509292([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x509292([0x68,0x69,0x67,0x68])}),_0x1f5efe[_0x509292([0x6f,0x6e])](_0x509292([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1decbf=>{_0x17c0cd(_0x1decbf[_0x509292([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3441da=!0x0,_0x32dfd4(_0x1decbf[_0x509292([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x509292([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x509292([0x6c,0x6f,0x77])}),_0x3e94e2[_0x509292([0x74,0x68,0x65,0x6e])](()=>{_0x3441da||_0xf1b7dd(_0x509292([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b26df(){return _0x1f5efe[_0x509292([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x509292([0x76,0x69,0x65,0x77])][_0x509292([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x509292([0x61,0x75,0x74,0x6f]);}function _0x143d6a(){_0x1f5efe[_0x509292([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x509292([0x76,0x69,0x65,0x77])][_0x509292([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x509292([0x61,0x75,0x74,0x6f]);}}function _0x3c64ba(_0x3c2d70){const _0x3c24fe=[new window[(_0x509292([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a77ce=>setTimeout(_0x3a77ce,0x7c54f10a^_0x48e7c5)),_0x3e94e2[_0x509292([0x74,0x68,0x65,0x6e])](()=>new window[(_0x509292([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57cc4b=>{let _0x5e84b0=0x0;_0x1f5efe[_0x509292([0x6d,0x6f,0x64,0x65,0x6c])][_0x509292([0x6f,0x6e])](_0x509292([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19a4ea,_0x176bfa)=>{_0x176bfa[0x0][_0x509292([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5e84b0++,_0x5e84b0==(0x7c5dce3e^_0x48e7c5)&&(_0x57cc4b(),_0x19a4ea[_0x509292([0x6f,0x66,0x66])]());});}))];return window[_0x509292([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x509292([0x72,0x61,0x63,0x65])](_0x3c24fe)[_0x509292([0x74,0x68,0x65,0x6e])](()=>_0x3c2d70);}async function _0x1616ca(){await _0x3e94e2,_0x1f5efe[_0x509292([0x6d,0x6f,0x64,0x65,0x6c])][_0x509292([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8ab7db,_0x1f5efe[_0x509292([0x6d,0x6f,0x64,0x65,0x6c])][_0x509292([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8ab7db,_0x1f5efe[_0x509292([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x509292([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2094a5(){return _0x5db0e6(_0x509292([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5c5a8d(_0x509292([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x509292([0x73,0x74,0x61,0x74,0x65])]==_0x509292([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa1792c(){return _0x5db0e6(_0x509292([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 _0x203b7f(){return _0x5db0e6(_0x509292([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4acd04(_0xee0fc7){const _0x15fc8b=_0x43e1b8();_0x1f5efe[_0x15fc8b]=_0x509292([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xee0fc7,_0xee0fc7!=_0x509292([0x56,0x61,0x6c,0x69,0x64])&&_0x1616ca();}function _0x43e1b8(){const _0x509ff5=window[_0x509292([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x509292([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x509292([0x6e,0x6f,0x77])]())[_0x509292([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x509292([0x2e]),'');let _0x5ad175=_0x509292([0x68]);for(let _0x59a75b=0x0;_0x59a75b<_0x509ff5[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59a75b+=0x2){let _0x46e1f5=window[_0x509292([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x509ff5[_0x509292([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59a75b,_0x59a75b+0x2));_0x46e1f5>=_0x9541f4[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46e1f5-=_0x9541f4[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ad175+=_0x9541f4[_0x46e1f5];}return _0x5ad175;}function _0x45228a(){const _0x2e3210=_0x3c491c[_0x509292([0x73,0x70,0x6c,0x69,0x74])](_0x509292([0x2e]));if(0x3!=_0x2e3210[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56b072(_0x2e3210[0x1]);function _0x56b072(_0x299d6f){const _0x439011=_0x416f92(_0x299d6f);return _0x439011&&_0x2ebaf9()?_0x439011:null;function _0x2ebaf9(){const _0x1edca6=_0x439011[_0x509292([0x6a,0x74,0x69])],_0x2d8ca5=window[_0x509292([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1edca6[_0x509292([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1edca6[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x598be6={..._0x439011,[_0x509292([0x6a,0x74,0x69])]:_0x1edca6[_0x509292([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1edca6[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x598be6[_0x509292([0x76,0x63])],_0x252d13(_0x598be6)==_0x2d8ca5;}}}async function _0x531d58(){let _0x35ef26=!0x0;try{const _0x433612=_0x3c491c[_0x509292([0x73,0x70,0x6c,0x69,0x74])](_0x509292([0x2e])),[_0x2534cb,_0x378720,_0x49c13f]=_0x433612;return _0x306a44(_0x2534cb),await _0x366cf6(_0x2534cb,_0x378720,_0x49c13f),_0x35ef26;}catch(_0x2bb4a6){return!0x1;}function _0x306a44(_0x4b237f){const _0x2f9870=_0x416f92(_0x4b237f);_0x2f9870&&_0x2f9870[_0x509292([0x61,0x6c,0x67])]==_0x509292([0x45,0x53,0x32,0x35,0x36])||(_0x35ef26=!0x1);}async function _0x366cf6(_0x4ccb07,_0x246dff,_0x25fb95){const _0x418ebc=window[_0x509292([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x509292([0x66,0x72,0x6f,0x6d])](_0x1643d8(_0x25fb95),_0x381c6d=>_0x381c6d[_0x509292([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd4bd01=new window[(_0x509292([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x509292([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ccb07+_0x509292([0x2e])+_0x246dff),_0x6609c7=window[_0x509292([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x509292([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6609c7)return;const _0x9ef46e=await _0x6609c7[_0x509292([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x509292([0x6a,0x77,0x6b]),_0x52f446,{[_0x509292([0x6e,0x61,0x6d,0x65])]:_0x509292([0x45,0x43,0x44,0x53,0x41]),[_0x509292([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x509292([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x509292([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6609c7[_0x509292([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x509292([0x6e,0x61,0x6d,0x65])]:_0x509292([0x45,0x43,0x44,0x53,0x41]),[_0x509292([0x68,0x61,0x73,0x68])]:{[_0x509292([0x6e,0x61,0x6d,0x65])]:_0x509292([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9ef46e,_0x418ebc,_0xd4bd01)||(_0x35ef26=!0x1);}}function _0x416f92(_0x2401d1){return _0x2401d1[_0x509292([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x509292([0x65,0x79]))?JSON[_0x509292([0x70,0x61,0x72,0x73,0x65])](_0x1643d8(_0x2401d1)):null;}function _0x1643d8(_0x5a1553){return window[_0x509292([0x61,0x74,0x6f,0x62])](_0x5a1553[_0x509292([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x509292([0x2b]))[_0x509292([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x509292([0x2f])));}function _0x252d13(_0x1b58c4){let _0x23955a=0x1505;function _0x644661(_0x12d817){for(let _0x1a08f3=0x0;_0x1a08f3<_0x12d817[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a08f3++){const _0x11fa25=_0x12d817[_0x509292([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a08f3);_0x23955a=(_0x23955a<<0x5)+_0x23955a+_0x11fa25,_0x23955a&=_0x23955a;}}function _0x1ed328(_0x3c7466){Array[_0x509292([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c7466)?_0x3c7466[_0x509292([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ed328):_0x3c7466&&typeof _0x3c7466==_0x509292([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x509292([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c7466)[_0x509292([0x73,0x6f,0x72,0x74])]()[_0x509292([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31a627,_0x309e2b])=>{_0x644661(_0x31a627),_0x1ed328(_0x309e2b);}):_0x644661(window[_0x509292([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c7466));}return _0x1ed328(_0x1b58c4),_0x23955a>>>0x0;}function _0x4586ee(_0x364a3d){return _0x364a3d[_0x509292([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x509292([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x509292([0x30]));}function _0x2b2fa3(_0x3107df){return _0x3107df[_0x509292([0x73,0x70,0x6c,0x69,0x74])]('')[_0x509292([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x509292([0x6a,0x6f,0x69,0x6e])]('');}function _0x5db0e6(_0x120295){return _0x1f5efe[_0x509292([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x509292([0x68,0x61,0x73])](_0x120295);}function _0x5c5a8d(_0x54404d){return _0x1f5efe[_0x509292([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x509292([0x67,0x65,0x74])](_0x54404d);}function _0x8ab7db(){}function _0x509292(_0x1b46c2){return _0x1b46c2['map'](_0x254524=>String['fromCharCode'](_0x254524))['join']('');}_0x4acd04(await _0x23021b());}(this);}['destroy'](){const _0x41fe0a=this['editor']['plugins']['get'](o),_0x3dcd24=this['editor']['config']['get']('collaboration.channelId');for(const _0x210f1c of _0x41fe0a['getCommentThreads']({'channelId':_0x3dcd24}))_0x41fe0a['_detachCommentThread'](_0x210f1c['id']),_0x41fe0a['_threads']['delete'](_0x210f1c['id']);super['destroy']();}['hasMarkerForId'](_0x48c096){return this['getAllMarkersForId'](_0x48c096)['length']>0x0;}['getAllMarkersForId'](_0x31ee06){const _0x1f28e1=[];for(const _0x5aae5b of this['editor']['model']['markers'])_0x5aae5b['name']['startsWith']('comment:'+_0x31ee06)&&_0x1f28e1['push'](_0x5aae5b);return _0x1f28e1;}['scrollToThreadMarker'](_0x8a5bcd){const _0x5c4731=this['_getTargetForId'](_0x8a5bcd);_0x5c4731&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x8a5bcd&&rt({'target':_0x5c4731[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x16b223){this['editor']['model']['change'](()=>{for(const _0x3ef84d of this['getAllMarkersForId'](_0x16b223))this['editor']['editing']['reconvertMarker'](_0x3ef84d);});}['_attachArchivedThread'](_0x409fad){const _0x245634=this['editor']['plugins']['get'](o),_0x515519=this['editor']['plugins']['get'](P),_0x318865=_0x245634['getCommentThread'](_0x409fad);if(!_0x318865['isAttached']){const _0x50585c=_0x318865['attachTo'](()=>this['_getTargetForId'](_0x318865['id']));_0x515519['registerAnnotation'](_0x50585c),_0x318865['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x27f149=this['editor'],_0x144cba=_0x27f149['plugins']['get'](it);_0x27f149['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x237a62,_0x44859c)=>{const {id:_0x2a2667}=he(_0x237a62['markerName']),_0x491b29=_0x27f149['plugins']['get'](o)['getCommentThread'](_0x2a2667),_0x8060dd=this['activeMarker']&&he(this['activeMarker'])['id']===_0x2a2667;let _0x1f96ab;if(_0x491b29&&_0x491b29['isResolved']&&!_0x8060dd&&_0x237a62['item'])return _0x44859c['consumable']['consume'](_0x237a62['item'],'addMarker:'+_0x237a62['markerName']),_0x44859c['consumable']['consume'](_0x237a62['item'],'removeMarker:'+_0x237a62['markerName']),null;const _0x2da990=['ck-comment-marker'];return _0x8060dd&&_0x2da990['push']('ck-comment-marker--active'),_0x1f96ab=_0x491b29&&_0x491b29['length']?_0x491b29['comments']['first']['author']['id']:_0x144cba['me']['id'],{'classes':_0x2da990,'attributes':{'data-comment':_0x2a2667,'data-author-id':_0x1f96ab}};}}),_0x27f149['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x25fd56,{options:_0x327be6})=>{const _0x2c77a2=_0x27f149['plugins']['get'](o),_0x58afa7=_0x27f149['model']['markers']['get'](_0x25fd56),{id:_0x429afb,part:_0x16a5b0}=he(_0x25fd56);if(_0x58afa7&&!_0x58afa7['affectsData'])return null;if(_0x327be6['ignoreResolvedComments']){const _0x32319a=_0x2c77a2['getCommentThread'](_0x429afb);if(_0x32319a&&_0x32319a['isResolved'])return null;}return{'group':'comment','name':_0x16a5b0?_0x429afb+':'+_0x16a5b0:_0x429afb};}}),_0x27f149['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x3dcc3f,{writer:_0x468337})=>_0x468337['createElement']('$marker',{'data-name':'comment:'+_0x3dcc3f['getAttribute']('id')})}),_0x27f149['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3767c3=this['editor'],_0xc87dbc=_0x3767c3['plugins']['get'](o),_0x3d29a5=new Set(),_0x340ddf=new Set();_0x3767c3['model']['document']['registerPostFixer'](_0xd43b8e=>{let _0x15d3b6=!0x1;for(const {name:_0x580f72,data:_0x5e89cd}of _0x3767c3['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4ed3be,id:_0x21108b}=he(_0x580f72);let _0x3297c4=_0x5e89cd['newRange'];if('comment'!==_0x4ed3be||!_0x3297c4)continue;const _0x509c6f='$graveyard'===_0x3297c4['root']['rootName'];_0x509c6f||(_0x3297c4=ft(_0x3297c4,_0x3767c3['model']),!_0x3297c4||_0x3297c4['isCollapsed']||!_0x5e89cd['newRange']||_0x3297c4['isEqual'](_0x5e89cd['newRange']))?_0x3767c3['model']['hasContent'](_0x3297c4)&&!_0x509c6f?this['isThreadsLoadingPaused']?_0x3d29a5['add'](_0x580f72):this['_handleThreadMarker'](_0x580f72,_0x21108b):(_0x340ddf['add'](_0x580f72),_0x3d29a5['delete'](_0x580f72),_0xd43b8e['removeMarker'](_0x580f72),_0x15d3b6=!0x0):(_0xd43b8e['updateMarker'](_0x580f72,{'range':_0x3297c4}),_0x15d3b6=!0x0);}return _0x15d3b6;}),this['on']('change:isThreadsLoadingPaused',(_0x5789b5,_0x7016e2,_0x1b27d6)=>{if(!_0x1b27d6&&_0x3d29a5['size'])for(const _0x5009e7 of _0x3d29a5){const {id:_0x3d1533}=he(_0x5009e7);_0x3d29a5['delete'](_0x5009e7),_0x3767c3['model']['markers']['get'](_0x5009e7)&&this['_handleThreadMarker'](_0x5009e7,_0x3d1533);}}),this['listenTo'](_0x3767c3['model']['document'],'change',(_0x11a7ee,_0x214927)=>{for(const {name:_0x5987bc,data:{newRange:_0x2880fa}}of _0x3767c3['model']['document']['differ']['getChangedMarkers']()){const {group:_0x31cc2d,id:_0x349e21}=he(_0x5987bc);if('comment'!==_0x31cc2d)continue;const _0x136219=_0xc87dbc['getCommentThread'](_0x349e21),_0x56c159=this['hasMarkerForId'](_0x349e21);_0x136219&&(!_0x136219['_hasTargetInContent']&&_0x2880fa&&_0x3767c3['editing']['view']['once']('render',()=>{const _0x411921=_0x3767c3['plugins']['get'](N),_0x4640b1=_0xc87dbc['_threadToController']['get'](_0x136219)['view'];_0x411921['getByInnerView'](_0x4640b1)['refreshVisibility']();},{'priority':'low'}),_0x136219['_hasTargetInContent']=_0x56c159||!!_0x2880fa),_0x2880fa||(_0x340ddf['add'](_0x5987bc),_0x3d29a5['delete'](_0x5987bc));}if(_0x214927['isLocal'])for(const _0x330589 of _0x340ddf){const {id:_0x402d52}=he(_0x330589),_0x24d557=_0xc87dbc['getCommentThread'](_0x402d52),_0x103a80=this['hasMarkerForId'](_0x402d52);_0x3d29a5['delete'](_0x330589),!_0x24d557||_0x103a80||_0x24d557['unlinkedAt']||_0x24d557['setUnlinkedAt'](new Date());}_0x340ddf['clear']();});}['_getTargetForId'](_0x5a729e){const _0xcea38d=this['editor'],_0x5df352=this['getAllMarkersForId'](_0x5a729e);return et(_0xcea38d['editing'],_0x5df352);}['_getTextContext'](_0x165751){const _0x1b2c07=this['getAllMarkersForId'](_0x165751);let _0x2330b7='',_0x16853f=!0x1;for(const _0x5d87ff of _0x1b2c07){const _0x94b4ea=_0x5d87ff['getRange']();for(const _0xbd3de4 of Array['from'](_0x94b4ea['getItems']()))_0xbd3de4['is']('$textProxy')?(_0x2330b7&&_0x16853f&&(_0x2330b7+='\x20',_0x16853f=!0x1),_0x2330b7+=_0xbd3de4['data']):_0x16853f=!0x0;_0x16853f=!0x0;}return _0x2330b7['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x10bde4,_0x24b5a6){const _0x3621dd=this['editor'],_0x1feded=_0x3621dd['plugins']['get'](o);let _0x4167cd=_0x1feded['getCommentThread'](_0x24b5a6);const _0x16d6b3=_0x3621dd['config']['get']('collaboration.channelId'),_0x21e1a3=_0x3621dd['plugins']['get'](P);if(_0x4167cd&&(_0x4167cd['unlinkedAt']&&_0x4167cd['setUnlinkedAt'](null),_0x4167cd['isAttached']))return _0x4167cd;return!this['getAllMarkersForId'](_0x24b5a6)[0x0]['managedUsingOperations']?_0x3621dd['editing']['view']['once']('render',()=>{if(_0x1feded['getCommentThread'](_0x24b5a6))return;const _0x4f4b82=_0x3621dd['plugins']['get'](N);_0x4167cd=_0x1feded['openNewCommentThread']({'channelId':_0x16d6b3,'threadId':_0x24b5a6,'target':()=>this['_getTargetForId'](_0x24b5a6),'context':{'type':'text','value':this['_getTextContext'](_0x24b5a6)}});const _0x4ce54a=_0x1feded['_threadToController']['get'](_0x4167cd)['view'],_0x2c9240=_0x4f4b82['getByInnerView'](_0x4ce54a);_0x2c9240&&_0x21e1a3['registerAnnotation'](_0x2c9240);},{'priority':'low'}):_0x1feded['fetchCommentThread']({'channelId':_0x16d6b3,'threadId':_0x24b5a6})['then'](_0x1d4785=>{if('destroyed'!==_0x3621dd['state']){if(_0x4167cd=_0x1d4785,_0x4167cd&&!_0x4167cd['isAttached']){const _0x4fc529=_0x4167cd['attachTo'](()=>this['_getTargetForId'](_0x24b5a6));_0x21e1a3['registerAnnotation'](_0x4fc529),_0x4167cd['isResolved']&&this['_reconvertMarkers'](_0x24b5a6);}else{if(!_0x4167cd){const _0x4190e4=this['getAllMarkersForId'](_0x24b5a6);_0x3621dd['model']['change'](_0x42b148=>{for(const _0x2f2430 of _0x4190e4)_0x42b148['removeMarker'](_0x2f2430);});}}}}),_0x4167cd;}['_handleThreadMarker'](_0x32a5f7,_0x35d6e0){const _0x573a56=this['_attachMarkerToThread'](_0x32a5f7,_0x35d6e0);_0x573a56&&!_0x573a56['context']&&_0x573a56['setContext']({'type':'text','value':this['_getTextContext'](_0x35d6e0)});}['_initAriaMarkerChangeAnnouncements'](){const _0x191a44=this['editor'];ot(_0x191a44['model'],({left:_0x2ff2f5,entered:_0x1c99c2})=>{for(const _0x57b8cc of _0x2ff2f5)if(dt(_0x57b8cc)){_0x191a44['ui']['ariaLiveAnnouncer']['announce'](S(_0x191a44['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x3b4bf3 of _0x1c99c2)if(dt(_0x3b4bf3)){_0x191a44['ui']['ariaLiveAnnouncer']['announce'](S(_0x191a44['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x4e5257)));break;}});}}function ut(_0x354259,_0x4fd4bf){return _0x4fd4bf?_0x354259+':'+_0x4fd4bf:_0x354259;}function he(_0x18eb11){const _0x271fc1=_0x18eb11['split'](':');return{'group':_0x271fc1[0x0],'id':_0x271fc1[0x1],'part':_0x271fc1[0x2]};}function ft(_0x52a651,_0x3a9622){const _0x56515f=_0x3a9622['schema'],_0x4a70b9=_0x3a9622['createRange'](_0x52a651['start']);for(const _0x54f103 of _0x52a651['getWalker']()){const {type:_0x376a72,item:_0x47e894,nextPosition:_0xc5f446}=_0x54f103;if('text'===_0x376a72||_0x56515f['isObject'](_0x47e894)){const _0x2983b5=_0x3a9622['createPositionBefore'](_0x47e894);_0x4a70b9['isCollapsed']&&(_0x4a70b9['start']=_0x2983b5),_0x4a70b9['end']=_0xc5f446;}}return _0x4a70b9;}function dt(_0x5e8399){return'comment'===he(_0x5e8399['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 _0x3d936c{['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 _0xf0f848=this['editor'],_0x3cbac2=_0xf0f848['plugins']['get'](o),_0x2fa197=_0xf0f848['plugins']['get'](r),_0xc26ba3=_0xf0f848['plugins']['get'](N),_0x1f6a2e=_0xf0f848['plugins']['get'](P);_0xf0f848['ui']['componentFactory']['add']('comment',()=>{const _0x2b6ea8=this['_createUIButton'](_0xc22dd3);return _0x2b6ea8['tooltip']=!0x0,_0x2b6ea8;}),_0xf0f848['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x1920af)),_0x1f6a2e['addSourceCollector'](()=>{const _0x584152=[];for(const [_0x3e433b,_0x3b1cca]of _0x3cbac2['_threadToController']){const _0x4d6339=_0x2fa197['getAllMarkersForId'](_0x3e433b['id']),_0x4561b4=_0x4d6339['map'](_0x4b29bd=>_0x4b29bd['getRange']());_0x4d6339['length']>0x0&&_0x584152['push']([_0x3b1cca['view'],_0x4561b4]);}return _0x584152;}),this['listenTo'](_0xc26ba3,'change:activeAnnotations',(_0x1e8900,_0x585f19,_0x2c899d)=>{const _0x4441cc=Array['from'](_0x2c899d)['map'](_0x496abe=>_0x496abe['innerView'])['find'](_0xdce180=>_0x3cbac2['_viewToController']['has'](_0xdce180));if(!_0x4441cc)return void(_0x2fa197['activeMarker']=null);const _0x426dd7=_0x3cbac2['_viewToController']['get'](_0x4441cc)['model']['id'],_0x2b6cd5='comment:'+_0x426dd7;_0x426dd7&&_0x2fa197['hasMarkerForId'](_0x426dd7)?_0x2fa197['activeMarker']=_0x2b6cd5:_0x2fa197['activeMarker']&&(_0x2fa197['activeMarker']=null);}),this['listenTo'](_0x3cbac2,'removeCommentThread',(_0x197069,{threadId:_0x93f9c7,isFromAdapter:_0x5302c8})=>{!_0x5302c8&&_0xf0f848['ui']['focusTracker']['isFocused']&&_0x2fa197['hasMarkerForId'](_0x93f9c7)&&_0xf0f848['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x3cbac2,'addComment',(_0x1fa0f6,{threadId:_0x3d7645,isFromAdapter:_0x57f499})=>{if(_0x57f499||!_0x2fa197['hasMarkerForId'](_0x3d7645)||!_0x3cbac2['hasCommentThread'](_0x3d7645))return;0x1===_0x3cbac2['getCommentThread'](_0x3d7645)['length']&&(_0xf0f848['editing']['view']['focus'](),_0x1fa0f6['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3561c3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3eed53;for(const _0x515d74 in _0x3561c3){const _0x565859=_0x515d74,_0x39858a=_0x3561c3[_0x565859];if('commentsLicenseKeyValid'==_0x39858a||'commentsLicenseKeyInvalid'==_0x39858a||'commentsLicenseKeyExpired'==_0x39858a||'commentsLicenseKeyDomainLimit'==_0x39858a||'commentsLicenseKeyNotAllowed'==_0x39858a||'commentsLicenseKeyEvaluationLimit'==_0x39858a||'commentsLicenseKeyTrialLimit'==_0x39858a||'commentsLicenseKeyDevelopmentLimit'==_0x39858a||'commentsLicenseKeyUsageLimit'==_0x39858a){delete _0x3561c3[_0x565859],_0x3eed53=_0x39858a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x3eed53&&_0x3561c3['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x3eed53&&_0x3561c3['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x3eed53&&_0x3561c3['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x3eed53&&_0x3561c3['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x3eed53&&_0x3561c3['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x3eed53&&_0x3561c3['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x3eed53&&_0x3561c3['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x3eed53&&_0x3561c3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x41458e){const _0x190008=this['editor'],_0x18000d=new _0x41458e(_0x190008['locale']),_0x2369ba=_0x190008['commands']['get']('addCommentThread');return _0x18000d['set']({'label':S(_0x190008['locale'],'Comment'),'icon':xt}),_0x18000d['bind']('isEnabled')['to'](_0x2369ba),this['listenTo'](_0x18000d,'execute',()=>_0x2369ba['execute']()),_0x18000d;}}class s extends _0x3d936c{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x360a63){super(_0x360a63),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x4bc84c,_0x2d4ec9,_0x5d9b8d)=>{_0x5d9b8d?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x23fc48,_0x244fbc]of this['editor']['commands'])_0x244fbc['affectsData']&&'addCommentThread'!==_0x23fc48&&_0x244fbc['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x27b552=this['editor']['editing']['view']['document'];this['listenTo'](_0x27b552,'cut',_0x4acbd3=>_0x4acbd3['stop'](),{'priority':'highest'}),this['listenTo'](_0x27b552,'clipboardInput',_0x1f5a0b=>_0x1f5a0b['stop'](),{'priority':'highest'}),this['listenTo'](_0x27b552,'delete',_0x53e4b1=>_0x53e4b1['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x570a7b,_0x46f55d]of this['editor']['commands'])_0x46f55d['affectsData']&&'addCommentThread'!==_0x570a7b&&_0x46f55d['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x298ec9{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59ade2){super(_0x59ade2),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x16c54f=this['context']['plugins']['get'](N);this['listenTo'](_0x16c54f,'_activateAnnotation',(_0x511d94,_0x4ce8d2)=>{for(const _0x2b5d99 of this['activeUIs']){const _0xb5131a=this['_uis']['get'](_0x2b5d99);(0x0,this['_uisData']['get'](_0x2b5d99)['filter'])(_0x4ce8d2)&&_0xb5131a['setActiveAnnotation'](_0x4ce8d2);}}),this['listenTo'](_0x16c54f,'_deactivateAllAnnotations',()=>{for(const _0x281479 of this['activeUIs']){this['_uis']['get'](_0x281479)['setActiveAnnotation'](null);}}),this['listenTo'](_0x16c54f['_visibleAnnotations'],'add',(_0xe705c,_0x50d1d2)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x50d1d2);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x46be01){return this['activeUIs']['has'](_0x46be01);}['activate'](_0x30c696,_0x11806b=()=>!0x0){const _0xe46282=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x30c696))throw new _0x441e7c('annotationsuis-missing-ui',this,{'uiName':_0x30c696});this['isActive'](_0x30c696)&&this['deactivate'](_0x30c696),this['activeUIs']['add'](_0x30c696);const _0x5b3e3b=new x();!function({source:_0x5e7dd2,target:_0x191a4b,filter:_0x404f78}){for(const _0x40e27b of _0x5e7dd2)_0x404f78(_0x40e27b)&&_0x191a4b['add'](_0x40e27b);_0x191a4b['listenTo'](_0x5e7dd2,'add',(_0x3846ff,_0x28ba64)=>{_0x404f78(_0x28ba64)&&_0x191a4b['add'](_0x28ba64);}),_0x191a4b['listenTo'](_0x5e7dd2,'remove',(_0x188246,_0x164d07)=>{_0x191a4b['has'](_0x164d07)&&_0x191a4b['remove'](_0x164d07);});}({'source':_0xe46282['_visibleAnnotations'],'target':_0x5b3e3b,'filter':_0x11806b}),this['_uisData']['set'](_0x30c696,{'collection':_0x5b3e3b,'filter':_0x11806b});const _0x29ba02=this['_uis']['get'](_0x30c696);_0x29ba02['attach'](_0x5b3e3b),this['listenTo'](_0x29ba02,'change:activeAnnotation',(_0xd6c89b,_0x3d7cf6,_0x19936f,_0x4d0c9c)=>{_0x4d0c9c&&_0xe46282['_removeActiveAnnotation'](_0x4d0c9c),_0x19936f&&_0xe46282['_addActiveAnnotation'](_0x19936f);});}['deactivate'](_0x3abf54){if(this['activeUIs']['delete'](_0x3abf54),!this['_uis']['has'](_0x3abf54))throw new _0x441e7c('annotationsuis-missing-ui',this,{'uiName':_0x3abf54});const _0x133cda=this['_uis']['get'](_0x3abf54);_0x133cda['detach'](),this['stopListening'](_0x133cda),this['_uisData']['get'](_0x3abf54)['collection']['destroy'](),this['_uisData']['delete'](_0x3abf54);}['switchTo'](_0x3850f5){if(!this['_uis']['has'](_0x3850f5))throw new _0x441e7c('annotationsuis-missing-ui',this,{'uiName':_0x3850f5});const _0x21d7a3=this['context']['plugins']['get'](N),_0x11d648=Array['from'](_0x21d7a3['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x3850f5);const _0x5ac2bc=this['_uis']['get'](_0x3850f5);_0x5ac2bc['setActiveAnnotation'](_0x11d648),_0x5ac2bc['_setSelectedAnnotations']&&_0x11d648&&_0x5ac2bc['_setSelectedAnnotations']([_0x11d648]);}['deactivateAll'](){for(const _0x245965 of this['activeUIs'])this['deactivate'](_0x245965);}['register'](_0x476691,_0x46238f){if(this['_uis']['has'](_0x476691))throw new _0x441e7c('annotationsuis-register-already-registered');if('function'!=typeof _0x46238f['attach']||'function'!=typeof _0x46238f['detach']||'function'!=typeof _0x46238f['setActiveAnnotation'])throw new _0x441e7c('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x476691,_0x46238f);}['refilterAnnotations'](){const _0x3e6d65=this['context']['plugins']['get'](N)['collection'],_0x32f6f4=new Map(),_0x22140a=Array['from'](this['activeUIs']);for(const _0x2af306 of this['activeUIs']){const _0x11660f=this['_uisData']['get'](_0x2af306)['collection'];for(const _0x3f66e8 of _0x11660f)_0x32f6f4['set'](_0x3f66e8,_0x2af306);}for(const _0x38f68a of _0x3e6d65){const _0x49ab4b=_0x32f6f4['get'](_0x38f68a);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x38f68a);const _0x760301=_0x22140a['find'](_0x59b936=>this['_uisData']['get'](_0x59b936)['filter'](_0x38f68a));_0x49ab4b!==_0x760301&&(_0x49ab4b&&this['_uisData']['get'](_0x49ab4b)['collection']['remove'](_0x38f68a),_0x760301&&this['_uisData']['get'](_0x760301)['collection']['add'](_0x38f68a));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x536a4e){const _0xbad8c3=[];for(const _0x4f1747 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x4f1747)['filter'])(_0x536a4e)&&_0xbad8c3['push'](_0x4f1747);}if(_0xbad8c3['length']>0x1)throw new _0x441e7c('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0xbad8c3,'annotationType':_0x536a4e['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x4bf569){super(_0x4bf569);const _0x222315=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 _0x1a1568(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x222315['to']('class')],'style':{'minHeight':_0x222315['to']('minHeight',_0x356625=>'number'==typeof _0x356625?ae(_0x356625+0xa):null)},'dir':_0x4bf569['uiLanguageDirection'],'role':'application','aria-label':S(_0x4bf569,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x4bf569,'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',_0x269f81=>{this['_updateItemPositionInFocusables'](_0x269f81['source']);}),this['list']['forEach'](_0x4af998=>{this['focusTracker']['add'](_0x4af998['element']),this['_updateItemPositionInFocusables'](_0x4af998);}),this['list']['on']('change',(_0x49337f,_0x375e81)=>{for(const _0x6aa8b4 of _0x375e81['removed'])this['focusTracker']['remove'](_0x6aa8b4['element']),this['focusables']['remove'](_0x6aa8b4);for(const _0x43b1e4 of _0x375e81['added'])this['focusTracker']['add'](_0x43b1e4['element']),this['_updateItemPositionInFocusables'](_0x43b1e4);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x2921f4){const _0x29bfc4=this['focusables']['getIndex'](_0x2921f4);let _0x110ce6,_0xdcd3ae;for(const _0x4568c9 of this['focusables'])if(_0x2921f4['top']<_0x4568c9['top']){_0x110ce6=_0x4568c9;break;}if(_0xdcd3ae=_0x110ce6?this['focusables']['getIndex'](_0x110ce6):this['focusables']['length'],-0x1!==_0x29bfc4){if(_0x29bfc4===_0xdcd3ae-0x1)return;this['focusables']['remove'](_0x2921f4),_0xdcd3ae=_0x110ce6?this['focusables']['getIndex'](_0x110ce6):this['focusables']['length'];}this['focusables']['add'](_0x2921f4,_0xdcd3ae);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x1223c5){super(_0x1223c5),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5b9f71,_0x3f0db1)=>_0x5b9f71+_0x3f0db1),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x54055f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x54055f['to']('isAnimationDisabled',_0x169c0d=>_0x169c0d?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x54055f['to']('top',_0x4d9536=>qt(_0x4d9536))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x2124ca=this['element']['clientHeight'];_0x2124ca&&(this['height']=_0x2124ca);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x298ec9{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b88cb){super(_0x1b88cb),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 _0x515e14=this['context']['config']['get']('sidebar.container');_0x515e14&&this['setContainer'](_0x515e14);}['setContainer'](_0x44700b){if(!y(_0x44700b))throw new _0x441e7c('sidebar-setcontainer-invalid-element');this['container']=_0x44700b;}['_attachToContainer']({viewClass:_0x49caf5='',spaceBetweenItems:_0x51536d=0x19}={}){if(!y(this['container']))throw new _0x441e7c('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x49caf5,this['_spaceBetweenItems']=_0x51536d;}['rearrange']({removedAnnotation:_0x36e685,previousAnnotation:_0x198262,nextAnnotation:_0x34cca0}){const _0xd53a3c=this['getSidebarItemView'](_0x36e685);this['view']['list']['remove'](_0xd53a3c),this['_destroySidebarItemView'](_0x36e685),_0x198262&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x198262)),_0x34cca0&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x34cca0)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x3b5d43,activatedAnnotation:_0xa32507,disableAnimationOnActivatedAnnotation:_0x5b7757}){if(this['_activeAnnotation']=_0xa32507,_0x3b5d43){_0x3b5d43['isActive']=!0x1;const _0x440c58=this['getSidebarItemView'](_0x3b5d43);_0x440c58&&_0x5b7757&&(_0x440c58['isAnimationDisabled']=!0x1);}if(_0xa32507){const _0x27d084=this['getSidebarItemView'](_0xa32507);_0x27d084&&(_0xa32507['isActive']=!0x0,_0x5b7757&&(_0x27d084['isAnimationDisabled']=!0x0,_0x27d084['top']+=0x1),this['_alignToTargetRect'](_0x27d084));}}['_detachFromContainer'](_0x1fc1e8){if(this['view']['element']['remove'](),_0x1fc1e8){for(const _0x4132be of _0x1fc1e8)this['_destroySidebarItemView'](_0x4132be);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x5660bb,_0xd8a9b2){_0xd8a9b2||(_0xd8a9b2=_0x5660bb['view']);const _0x58a578=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x58a578,_0x5660bb),this['_annotationToSidebarItemView']['set'](_0x5660bb,_0x58a578),_0x58a578['content']['add'](_0xd8a9b2),this['listenTo'](_0x5660bb['view'],'change:targetRect',(_0xd656c1,_0x2ac642,_0x490029)=>{const _0x4f1911=this['_getTargetTop'](_0x5660bb,_0x490029);_0x58a578['_targetTop']!=_0x4f1911&&(_0x58a578['_targetTop']=_0x4f1911,this['_setItemTop'](_0x58a578,_0x4f1911));}),this['listenTo'](_0x58a578,'change:top',()=>{this['_recalculate'](_0x58a578,'top');}),this['listenTo'](_0x58a578,'change:bottom',()=>{this['_recalculate'](_0x58a578,'bottom');}),this['_alignToTargetRect'](_0x58a578);const _0x5bfdf7=this['_getItemBefore'](_0x58a578);if(_0x5bfdf7)this['_alignAfterItem'](_0x5bfdf7,_0x58a578)||this['_alignToTargetRect'](_0x58a578);else this['_alignToTargetRect'](_0x58a578);return this['_updateLastItem'](),this['view']['list']['add'](_0x58a578),_0x58a578;}['_alignForTopChange'](_0x355a11){if(!_0x355a11['content']['length'])return;const _0x5d270b=this['_getItemBefore'](_0x355a11);if(!_0x5d270b)return;const _0x2b7e0f=this['_sidebarItemViewToAnnotation']['get'](_0x5d270b),_0x4c0ff2=this['_activeAnnotation'];_0x4c0ff2&&_0x4c0ff2===_0x2b7e0f?this['_alignAfterItem'](_0x5d270b,_0x355a11):this['_alignBeforeItem'](_0x355a11,_0x5d270b);}['_alignForBottomChange'](_0x51f12e){if(!_0x51f12e['content']['length'])return;const _0x4aa857=this['_getItemAfter'](_0x51f12e);if(!_0x4aa857)return;const _0x471412=this['_sidebarItemViewToAnnotation']['get'](_0x4aa857),_0x53ba4a=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x26b4a9=this['_activeAnnotation'];_0x26b4a9&&_0x26b4a9===_0x471412&&_0x53ba4a?(this['_alignBeforeItem'](_0x4aa857,_0x51f12e),this['_alignAfterItem'](_0x51f12e,_0x4aa857)):_0x26b4a9&&_0x26b4a9===_0x471412?this['_alignBeforeItem'](_0x4aa857,_0x51f12e):this['_alignAfterItem'](_0x51f12e,_0x4aa857);}['_recalculate'](_0xca515d,_0x5861f8){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0xf8c62c,changedProp:_0x2ee496}of this['_recalculateBuffer'])'top'===_0x2ee496?this['_alignForTopChange'](_0xf8c62c):this['_alignForBottomChange'](_0xf8c62c);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0xca515d,'changedProp':_0x5861f8});}['getSidebarItemView'](_0x56dd12){return this['_annotationToSidebarItemView']['get'](_0x56dd12);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x150fc3){const _0x2c7ef3=this['getSidebarItemView'](_0x150fc3);this['stopListening'](_0x2c7ef3),this['stopListening'](_0x150fc3['view']),_0x2c7ef3['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x150fc3),this['_sidebarItemViewToAnnotation']['delete'](_0x2c7ef3);}['_createSidebarView'](){const _0x5482c1=new V(this['context']['locale']);return _0x5482c1['render'](),this['on']('change:_lastItem',(_0x4042fc,_0x3dfe2f,_0xf944fc,_0x1caf06)=>{_0x1caf06&&_0x5482c1['unbind']('minHeight'),_0xf944fc?_0x5482c1['bind']('minHeight')['to'](_0xf944fc,'bottom'):_0x5482c1['minHeight']=null;}),_0x5482c1;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x3e27e3){const _0x1e3cc2=this['_sidebarItemViewToAnnotation']['get'](_0x3e27e3),_0x22b7dd=_0x1e3cc2&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1e3cc2)-0x1);return _0x22b7dd&&this['getSidebarItemView'](_0x22b7dd)||null;}['_getItemAfter'](_0x4921aa){const _0x27cb41=this['_sidebarItemViewToAnnotation']['get'](_0x4921aa),_0x5f49c5=_0x27cb41&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x27cb41)+0x1);return _0x5f49c5&&this['getSidebarItemView'](_0x5f49c5)||null;}['_alignBeforeItem'](_0x3bb549,_0x1198db){_0x3bb549['updateHeight']();const _0x17637f=R(_0x1198db['bottom']+this['_spaceBetweenItems'],_0x3bb549['top']);return!!_0x17637f&&(this['_setItemTop'](_0x1198db,_0x1198db['top']-_0x17637f),!0x0);}['_alignAfterItem'](_0x12e84d,_0x1e30b8){_0x12e84d['updateHeight']();const _0x1ea147=R(_0x12e84d['bottom']+this['_spaceBetweenItems'],_0x1e30b8['top']);return!!_0x1ea147&&(this['_setItemTop'](_0x1e30b8,_0x1e30b8['top']+_0x1ea147,!0x1),!0x0);}['_alignToTargetRect'](_0x449a02){const _0x4ba6b3=this['_sidebarItemViewToAnnotation']['get'](_0x449a02);if(!_0x4ba6b3||!_0x4ba6b3['target']||!_0x4ba6b3['targetRect'])return;const _0xae4276=this['_getTargetTop'](_0x4ba6b3,_0x4ba6b3['targetRect']);this['_setItemTop'](_0x449a02,_0xae4276);}['_getTargetTop'](_0x312cc5,_0x1f8999){if(null===_0x1f8999)return 0x0;if(_0x312cc5['target']instanceof _0x5c15ed)return _0x1f8999['top'];{const _0x164bfd=new _0x5c15ed(this['view']['element'])['top'];return _0x1f8999['top']-_0x164bfd;}}['_setItemTop'](_0x50ba7f,_0x35b0ce,_0x22d385=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x22d385&&(_0x35b0ce=Math['max'](_0x35b0ce,this['_getMaxAvailableTop'](_0x50ba7f))),_0x50ba7f['top']=_0x35b0ce;}['_getMaxAvailableTop'](_0x3331ff){let _0x596a89=this['_getItemBefore'](_0x3331ff),_0x2fa929=0x0;for(;_0x596a89;)_0x596a89['updateHeight'](),_0x2fa929+=this['_spaceBetweenItems']+_0x596a89['height'],_0x596a89=this['_getItemBefore'](_0x596a89);return _0x2fa929;}}function R(_0x8cc83b,_0x1d9156){return Math['max'](_0x8cc83b-_0x1d9156,0x0);}function y(_0x31b1e3){return null!==_0x31b1e3&&'object'==typeof _0x31b1e3&&0x1===_0x31b1e3['nodeType'];}class e extends _0x298ec9{['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(_0x45c38){super(_0x45c38),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x55dc60(),this['_refreshPositioningDebounced']=_0x2023a9(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x3cf867=this['context']['plugins']['get'](M),_0x17c205=this['context']['plugins']['get'](z);_0x3cf867['register']('wideSidebar',this),_0x17c205['container']&&_0x3cf867['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x293d92){if(_0x293d92===this['activeAnnotation'])return;const _0x5b9283=this['context']['plugins']['get'](z);_0x5b9283['_activeAnnotation']=_0x293d92;const _0x5423dd=this['activeAnnotation'];this['activeAnnotation']=_0x293d92,_0x5b9283['refresh']({'blurredAnnotation':_0x5423dd,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x460696){this['annotations']=_0x460696;const _0x4a06ca=this['context']['plugins']['get'](z);if(_0x4a06ca['_annotations']=_0x460696,this['isAttached'])throw new _0x441e7c('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4a06ca,'set:container',()=>{this['detach'](),this['listenTo'](_0x4a06ca,'change:container',_0x574308=>{_0x574308['off'](),this['attach'](_0x460696);});}),_0x4a06ca['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x562f53=_0x191b34=>{_0x191b34['updateTargetRect'](),_0x4a06ca['addAnnotation'](_0x191b34);};for(const _0x129b0f of _0x460696)_0x562f53(_0x129b0f);this['listenTo'](_0x460696,'add',(_0x5ca666,_0x30a1ec)=>{_0x562f53(_0x30a1ec);}),this['listenTo'](_0x460696,'remove',(_0x43a33c,_0x28a182,_0x458342)=>{_0x4a06ca['rearrange']({'removedAnnotation':_0x28a182,'previousAnnotation':_0x460696['get'](_0x458342-0x1),'nextAnnotation':_0x460696['get'](_0x458342+0x1)}),_0x28a182===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x460696,'focus',(_0x11ea18,_0x315040)=>{this['setActiveAnnotation'](_0x315040);}),this['listenTo'](_0x460696,'blur',()=>{this['setActiveAnnotation'](null);});const _0x594855=this['context']instanceof _0x289012?this['context']['editors']:new _0x55dc60([this['context']]);for(const _0x21000f of _0x594855)this['_integrateWithEditorAnnotations'](_0x21000f);this['listenTo'](_0x594855,'add',(_0x269825,_0x4567b3)=>{this['listenTo'](_0x4567b3,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x4567b3);});}),this['listenTo'](_0x594855,'remove',(_0x4e1a9b,_0x49ec37)=>{_0x49ec37['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x49ec37['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x441e7c('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5e0679=this['context']['plugins']['get'](z);_0x5e0679['_detachFromContainer'](this['annotations']),this['stopListening'](_0x5e0679),this['stopListening'](this['annotations']),this['context']instanceof _0x289012&&this['stopListening'](this['context']['editors']);for(const _0x5aa96f of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5aa96f);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x3a0ab8){if(!_0x3a0ab8['plugins']['has']('EditorAnnotations'))return;const _0x150172=_0x3a0ab8['plugins']['get']('EditorAnnotations'),_0x4c5b66=()=>{const _0x58d76e=_0x150172['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x58d76e[0x0]||null);};this['listenTo'](_0x150172,'refresh',_0x4c5b66),this['listenTo'](_0x150172,'blur',(_0x44af6c,{isAnnotationTracked:_0xed549f})=>{this['activeAnnotation']&&_0xed549f(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x150172,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x20734d=>{_0x150172['hasDomSelection']()&&(_0x4c5b66(),_0x20734d['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x150172);}['_destroyEditorAnnotationsIntegration'](_0x5ecd29){this['stopListening'](_0x5ecd29),this['_editorAnnotations']['remove'](_0x5ecd29);}}class D extends _0xc22dd3{['counterView'];constructor(_0x2c41c7){super(_0x2c41c7);const _0x2d106b=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x16e410,_0xa6cfc0)=>_0x16e410?'...':_0xa6cfc0['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',_0x2d106b['to']('annotationType',_0x3ae773=>'ck-annotation-counter__badge--'+_0x3ae773),_0x2d106b['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x2d106b['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x298ec9{['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(_0x35c19f){super(_0x35c19f),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0xb88ef1),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x55dc60(),this['_refreshPositioningDebounced']=_0x2023a9(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x51f277(this['context']['locale']),this['balloonPanelView']=new _0x202708(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x4782cf){this['annotations']=_0x4782cf;const _0x56bd3c=this['context']['plugins']['get'](z),_0x423d73=this['balloonPanelView'];if(_0x56bd3c['_annotations']=_0x4782cf,this['isAttached'])throw new _0x441e7c('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x56bd3c,'set:container',()=>{this['detach'](),this['listenTo'](_0x56bd3c,'change:container',_0x15ea92=>{_0x15ea92['off'](),this['attach'](_0x4782cf);});}),_0x56bd3c['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x7b8e61=_0x269a8d=>{const _0x54c673=new D(this['context']['locale']);_0x56bd3c['addAnnotation'](_0x269a8d,_0x54c673),this['_annotationToNarrowView']['set'](_0x269a8d,_0x54c673),_0x54c673['bind']('isDirty','annotationType','number')['to'](_0x269a8d['view'],'isDirty','type','length'),_0x54c673['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x423d73['content']['first']!==_0x269a8d['view']?(this['_showBalloon'](_0x269a8d),_0x269a8d['view']['element']['focus'](),this['setActiveAnnotation'](_0x269a8d)):this['setActiveAnnotation'](null);});};for(const _0x1674de of _0x4782cf)_0x7b8e61(_0x1674de);this['listenTo'](_0x4782cf,'add',(_0x52451c,_0x30ee27)=>{_0x7b8e61(_0x30ee27);}),this['listenTo'](_0x4782cf,'remove',(_0xe7b35b,_0x166972,_0x3ce4ae)=>{this['_annotationToNarrowView']['get'](_0x166972)['destroy'](),this['_annotationToNarrowView']['delete'](_0x166972),_0x56bd3c['rearrange']({'removedAnnotation':_0x166972,'previousAnnotation':_0x4782cf['get'](_0x3ce4ae-0x1),'nextAnnotation':_0x4782cf['get'](_0x3ce4ae+0x1)}),_0x166972===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x4782cf,'focus',(_0xa58287,_0x1727ae)=>{this['setActiveAnnotation'](_0x1727ae);}),this['listenTo'](_0x4782cf,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x213164,_0x402dc8)=>{_0x402dc8['keyCode']===_0x1ca6aa['esc']&&_0x423d73['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x423d73['content']['first']),this['_hideBalloon'](),_0x402dc8['stopPropagation'](),_0x402dc8['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x4ae5f4,_0x1e62a2)=>{const _0x39c3ca=_0x1e62a2['target'];_0x423d73['isVisible']&&_0x423d73['element']['contains'](_0x39c3ca)||_0x56bd3c['view']['element']['contains'](_0x39c3ca)||_0x4ae5f4['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x448207=>_0x448207['contains'](_0x39c3ca))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x4ce949=this['context']instanceof _0x289012?this['context']['editors']:new _0x55dc60([this['context']]);for(const _0x5ea6b4 of _0x4ce949)this['_integrateWithEditorAnnotations'](_0x5ea6b4);this['listenTo'](_0x4ce949,'add',(_0x1caacb,_0x15bdc2)=>{this['listenTo'](_0x15bdc2,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x15bdc2);});}),this['listenTo'](_0x4ce949,'remove',(_0x5523ad,_0x13c1a4)=>{_0x13c1a4['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x13c1a4['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x5a90ff){if(_0x5a90ff===this['activeAnnotation'])return;const _0x399784=this['context']['plugins']['get'](z);if(_0x399784['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x5a90ff,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5a90ff)_0x399784['getSidebarItemView'](_0x5a90ff)?this['_showBalloon'](_0x5a90ff):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x5a90ff;}['detach'](){if(!this['isAttached'])throw new _0x441e7c('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3b8738=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x2470ee=>_0x2470ee['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3b8738['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x289012&&this['stopListening'](this['context']['editors']);for(const _0x1477ce of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1477ce);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'](_0x27f850){if(!_0x27f850['plugins']['has']('EditorAnnotations'))return;const _0x20595c=_0x27f850['plugins']['get']('EditorAnnotations'),_0x4295b5=this['context']['plugins']['get'](z),_0x37dadc=this['annotations'],_0x282509=this['balloonPanelView'],_0x2b7f7a=()=>{const _0x447696=_0x20595c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x447696),this['setActiveAnnotation'](_0x447696[0x0]||null);};this['listenTo'](_0x20595c,'refresh',_0x2b7f7a),this['listenTo'](_0x20595c,'blur',(_0x4c1e6c,{isAnnotationTracked:_0x5612a1})=>{this['activeAnnotation']&&_0x5612a1(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x20595c,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x37dadc,'blur',_0x4f806b=>{_0x20595c['hasDomSelection']()&&_0x4f806b['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x17eadf,_0x562b99)=>{const _0x443eeb=_0x562b99['target'];_0x282509['isVisible']&&_0x282509['element']['contains'](_0x443eeb)||_0x4295b5['view']['element']['contains'](_0x443eeb)||this['activeAnnotation']&&_0x20595c['hasDomSelection']()&&(_0x2b7f7a(),_0x17eadf['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x20595c);}['_destroyEditorAnnotationsIntegration'](_0x367a6a){_0x367a6a&&(this['stopListening'](_0x367a6a),this['_editorAnnotations']['remove'](_0x367a6a));}['_setSelectedAnnotations'](_0x238504){for(const _0x4e93f8 of this['_selectedAnnotations'])_0x238504['includes'](_0x4e93f8)||this['_manuallyClosedAnnotationViews']['delete'](_0x4e93f8['view']);this['_selectedAnnotations']=_0x238504;}['_refreshPositioning'](){const _0x2635e5=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x2635e5['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x3b43b7){if(this['_manuallyClosedAnnotationViews']['has'](_0x3b43b7['view']))return;const _0x23313d=this['balloonPanelView']['content']['first'];_0x23313d!==_0x3b43b7['view']?(_0x23313d&&this['_detachListeners'](_0x23313d),this['_attachListeners'](_0x3b43b7['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x3b43b7['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x194aec=this['balloonPanelView']['content']['first'],_0x41b5eb=_0x194aec&&this['annotations']['getByView'](_0x194aec);if(!_0x41b5eb||!this['_annotationToNarrowView']['has'](_0x41b5eb))return;const _0xae9ac2=this['_annotationToNarrowView']['get'](_0x41b5eb)['element'],_0x16eff1=(function(){const _0x4b3345=_0x202708['defaultPositions'];return[_0x4b3345['southArrowNorthEast'],_0x4b3345['northArrowSouthEast'],_0x4b3345['southArrowNorth'],_0x4b3345['northArrowSouth'],_0x4b3345['southArrowNorthWest'],_0x4b3345['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0xae9ac2,'positions':_0x16eff1});}['_hideBalloon'](){const _0x44a00b=this['balloonPanelView'],_0x11313f=_0x44a00b['content']['first'];_0x11313f&&(this['_detachListeners'](_0x11313f),_0x44a00b['unpin'](),_0x44a00b['content']['clear']());}['_attachListeners'](_0x5f1d85){this['listenTo'](_0x5f1d85,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x5f1d85,'Esc',(_0x2676a3,_0x4b4c8a)=>{this['_manuallyClosedAnnotationViews']['add'](_0x5f1d85),this['_hideBalloon'](),_0x4b4c8a();});}['_detachListeners'](_0x11f498){this['stopListening'](_0x11f498);}}class c extends _0x3d936c{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x4684a2,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x368db9){super(_0x368db9),_0x368db9['editing']['view']['addObserver'](_0xc309fc),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x368db9['plugins']['get'](_0x4684a2),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x34ab26=this['editor']['plugins']['get'](M);_0x34ab26['context']===this['editor']&&(_0x34ab26['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x3c947a,_0x46e884)=>{const _0x5e14b5=this['_balloon'];if(this['isAttached']&&_0x5e14b5['visibleView']){const _0x18ad81=this['annotations']['getByView'](_0x5e14b5['visibleView']);_0x18ad81&&this['_closeAnnotation'](_0x18ad81),_0x46e884();}}));}['afterInit'](){const _0x487dac=this['editor']['plugins']['get'](M);_0x487dac['context']===this['editor']&&(_0x487dac['hasActive']()||_0x487dac['switchTo']('inline'));}['setActiveAnnotation'](_0xf57fbe){_0xf57fbe!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0xf57fbe&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0xf57fbe)&&this['_addAnnotationToBalloon'](_0xf57fbe,!0x0),_0xf57fbe['isActive']=!0x0),_0xf57fbe||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0xf57fbe);}['attach'](_0x44812f){this['annotations']=_0x44812f;const _0x1b933d=this['editor']['plugins']['get'](M),_0x25f058=this['_balloon'];if(this['isAttached'])throw new _0x441e7c('inlineannotations-attach-already-attached',this);if(_0x1b933d['context']!==this['editor'])throw new _0x441e7c('inlineannotations-not-allowed-with-context',this);const _0x257c10=this['editor']['plugins']['get'](P);this['listenTo'](_0x257c10,'refresh',()=>{const _0x205107=_0x257c10['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x4d6ba2,_0x5be8f8;!this['_forceRefresh']&&(_0x4d6ba2=_0x205107,_0x5be8f8=this['_selectedAnnotations'],_0x4d6ba2['length']===_0x5be8f8['length']&&_0x4d6ba2['every'](_0x2d7f55=>_0x5be8f8['includes'](_0x2d7f55)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x205107),this['setActiveAnnotation'](_0x205107[0x0]||null));}),this['listenTo'](_0x257c10,'blur',(_0x5f5cbb,{isAnnotationTracked:_0xbe96d2})=>{this['activeAnnotation']&&_0xbe96d2(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x166921,_0x594e5a,_0x1b2c84)=>{_0x1b2c84||this['setActiveAnnotation'](null);}),this['listenTo'](_0x44812f,'remove',(_0x7408bc,_0x4c0459)=>{this['_removeAnnotationFromBalloon'](_0x4c0459),_0x4c0459===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x25f058,'change:visibleView',(_0x7be6ad,_0x2fb453,_0x19c59e,_0x1a85d4)=>{_0x1a85d4&&this['stopListening'](_0x1a85d4);const _0x4d7955=_0x44812f['getByView'](_0x19c59e);_0x19c59e&&_0x4d7955&&(this['listenTo'](_0x19c59e,'change:height',()=>{_0x25f058['updatePosition']();}),this['listenTo'](_0x19c59e,'Esc',()=>{this['_closeAnnotation'](_0x4d7955),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x4d7955&&this['setActiveAnnotation'](_0x4d7955));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x25f058['visibleView']&&(_0x44812f['getByView'](_0x25f058['visibleView'])&&_0x25f058['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 _0x441e7c('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0xb40cf9 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0xb40cf9);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x25501f){for(const _0x3aec0b of this['_selectedAnnotations'])_0x25501f['includes'](_0x3aec0b)||this['_manuallyClosed']['delete'](_0x3aec0b);for(const _0x59c1c2 of this['annotations'])_0x25501f['includes'](_0x59c1c2)||this['_removeAnnotationFromBalloon'](_0x59c1c2);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x4fcf9d of _0x25501f)this['_addAnnotationToBalloon'](_0x4fcf9d);}this['_selectedAnnotations']=_0x25501f;}['_addAnnotationToBalloon'](_0x536119,_0x256b8c=!0x1){this['_manuallyClosed']['has'](_0x536119)||(this['_addedAnnotations']['has'](_0x536119)||this['_balloon']['hasView'](_0x536119['view'])||(this['_addedAnnotations']['add'](_0x536119),this['_balloon']['add']({'stackId':_0x536119['view']['id'],'view':_0x536119['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x536119)}})),_0x256b8c&&this['_balloon']['showStack'](_0x536119['view']['id']));}['_getBalloonTargetForAnnotation'](_0x5600a9){const _0x3b1dbe=_0x5600a9['target'],_0xfcc3ed=this['editor']['editing']['view'],_0x19f043=_0xfcc3ed['document']['selection']['getFirstRange'](),_0x2922f8=_0xfcc3ed['domConverter']['viewRangeToDom'](_0x19f043);if(_0x2922f8['collapse'](!0x0),_0x3b1dbe){if(_0x3b1dbe instanceof _0x5c15ed)return _0x3b1dbe;let _0x1c887=[];for(const _0x1cccbe of _0x3b1dbe)_0x1c887['push'](...(_0x1d8ff1=_0x1cccbe['getClientRects'](),Array['from'](_0x1d8ff1)['map'](DOMRect['fromRect'])));_0x1c887=function(_0x400635){const _0x4db2c9=[];let _0x589e5a=_0x400635[0x0];for(let _0x153162=0x1;_0x153162<_0x400635['length'];_0x153162++)b(_0x589e5a,_0x400635[_0x153162])?_0x589e5a['width']+=_0x400635[_0x153162]['width']:(_0x4db2c9['push'](_0x589e5a),_0x589e5a=_0x400635[_0x153162]);return _0x4db2c9['push'](_0x589e5a),_0x4db2c9;}(_0x1c887);const _0x71e43c=_0x2922f8['getBoundingClientRect']();return _0x1c887['find'](_0x40e3fa=>_0x40e3fa['top']<=_0x71e43c['top']&&_0x40e3fa['bottom']>=_0x71e43c['bottom']&&_0x40e3fa['left']<=_0x71e43c['left']&&_0x40e3fa['right']>=_0x71e43c['right'])||_0x1c887[0x0];}var _0x1d8ff1;return _0x5600a9['targetRect']||_0x2922f8;}['_removeAnnotationFromBalloon'](_0x6f566){this['_addedAnnotations']['has'](_0x6f566)&&this['_balloon']['hasView'](_0x6f566['view'])&&(this['_addedAnnotations']['delete'](_0x6f566),this['_balloon']['remove'](_0x6f566['view']));}['_closeAnnotation'](_0x3d4fe4){this['_manuallyClosed']['add'](_0x3d4fe4),this['_removeAnnotationFromBalloon'](_0x3d4fe4);}}function b(_0x25dfa2,_0x1e8117){return _0x25dfa2['top']===_0x1e8117['top']&&_0x25dfa2['bottom']===_0x1e8117['bottom']&&_0x25dfa2['right']===_0x1e8117['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(_0x3e6995,_0x37d560){super(_0x3e6995),this['set']('isEmpty',!_0x37d560['length']),this['focusTracker']=new _0x1a1568(),this['_annotationViews']=_0x37d560,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x37d560,'focusTracker':this['focusTracker']}),this['listenTo'](_0x37d560,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x37d560,'remove',(_0x1cddc9,_0x24a00f)=>{_0x24a00f['isActive']&&this['focus'](),_0x37d560['length']||(this['isEmpty']=!0x0);});const _0x1b0549=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x3e6995,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x37d560},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x1b0549['if']('isEmpty','ck-hidden',_0x2d9387=>!_0x2d9387)]},'children':[{'text':S(_0x3e6995,'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 _0x3466de of this['_annotationViews'])this['focusTracker']['add'](_0x3466de['element']);this['_annotationViews']['on']('change',(_0x16f167,{added:_0x70edf2,removed:_0x4e79a5})=>{for(const _0x4d167c of _0x70edf2)this['focusTracker']['add'](_0x4d167c['element']);for(const _0x19ec82 of _0x4e79a5)this['focusTracker']['remove'](_0x19ec82['element']);});}}class f extends _0x298ec9{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x1e0cfc){super(_0x1e0cfc),this['archivedThreads']=new _0x55dc60();}['init'](){const _0x3f6d59=this['context'],_0x4a6bdf=_0x3f6d59['plugins']['get'](o),_0x18bdd2=_0x3f6d59['plugins']['get'](N);this['listenTo'](_0x4a6bdf,'addCommentThread',(_0x4276a8,{threadId:_0x852166})=>{const _0x5535d1=_0x4a6bdf['getCommentThread'](_0x852166);_0x5535d1['archivedAt']&&this['archivedThreads']['add'](_0x5535d1,this['_calculatePosition'](_0x5535d1['archivedAt'])),this['listenTo'](_0x5535d1,'change:archivedAt',(_0xd57da8,_0x20a242,_0x5b5fb5)=>{_0x5b5fb5?this['archivedThreads']['has'](_0x5535d1)||this['archivedThreads']['add'](_0x5535d1,this['_calculatePosition'](_0x5535d1['archivedAt'])):this['archivedThreads']['has'](_0x5535d1)&&this['archivedThreads']['remove'](_0x5535d1);});}),this['listenTo'](_0x4a6bdf,'removeCommentThread',(_0x4e874c,{threadId:_0x33fbc1})=>{const _0x556ed1=_0x4a6bdf['getCommentThread'](_0x33fbc1);this['stopListening'](_0x556ed1),this['archivedThreads']['has'](_0x556ed1)&&this['archivedThreads']['remove'](_0x556ed1);},{'priority':'highest'}),this['listenTo'](_0x18bdd2['collection'],'focus',(_0x164b75,_0x15860b)=>{_0x15860b['isVisible']||(_0x15860b['isActive']=!0x0,_0x18bdd2['activate'](_0x15860b));});}['_calculatePosition'](_0x1987ad){const _0x550d55=[...this['archivedThreads']]['findIndex'](_0x56145c=>_0x56145c['archivedAt']<_0x1987ad);return _0x550d55>-0x1?_0x550d55:this['archivedThreads']['length'];}}class a extends _0x3d936c{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x3c8ef9];}constructor(_0xf3be1){super(_0xf3be1),this['annotationViews']=new _0x2ff85e(),this['_pendingThreads']=[];}['init'](){const _0x7e477=this['editor'],_0x2b96e1=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x7e477['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0xc22dd3,!0x0)),_0x7e477['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x4de30d=this['_createCommentsArchiveButton'](_0x1920af);return _0x4de30d['set']({'role':'menuitemcheckbox'}),_0x4de30d;});const _0x18dfea=_0x7e477['plugins']['get'](f),_0x28053e=_0x7e477['plugins']['get']('Annotations'),_0x3fcc45=_0x7e477['plugins']['get']('CommentsRepository');this['listenTo'](_0x18dfea['archivedThreads'],'add',(_0x3a2a75,_0x3fd246)=>{const _0x4188b4=_0x7e477['config']['get']('collaboration.channelId');if(!_0x4188b4||_0x3fd246['channelId']===_0x4188b4){const _0x150877=_0x3fcc45['_threadToController']['get'](_0x3fd246);if(!_0x150877)return void this['_pendingThreads']['push'](_0x3fd246);const _0x749c1a=this['_calculatePosition'](_0x3fd246['archivedAt']),_0x2a56d0=_0x28053e['getByInnerView'](_0x150877['view']);_0x2a56d0['isVisible']&&_0x28053e['_visibleAnnotations']['remove'](_0x2a56d0),this['annotationViews']['add'](_0x2a56d0['view'],_0x749c1a);}}),this['listenTo'](_0x28053e['collection'],'add',(_0x292b98,_0xe7b88b)=>{const _0x10323a=this['_pendingThreads']['find'](_0x560245=>{const _0x5ea3fe=_0x3fcc45['_threadToController']['get'](_0x560245);return _0x5ea3fe&&_0xe7b88b['innerView']===_0x5ea3fe['view'];});if(_0x10323a){const _0x19c9ee=this['_calculatePosition'](_0x10323a['archivedAt']);this['annotationViews']['add'](_0xe7b88b['view'],_0x19c9ee),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x10323a),0x1);}}),this['listenTo'](_0x18dfea['archivedThreads'],'remove',(_0xea2ada,_0x32ce14)=>{const _0x2a7c2c=_0x7e477['config']['get']('collaboration.channelId');if(!_0x2a7c2c||_0x32ce14['channelId']===_0x2a7c2c){const _0x194490=_0x3fcc45['_threadToController']['get'](_0x32ce14),_0x5b116b=_0x28053e['getByInnerView'](_0x194490['view']);this['annotationViews']['remove'](_0x5b116b['view']),this['stopListening'](_0x5b116b['focusableElements']);}}),this['listenTo'](_0x28053e['collection'],'add',(_0x578f02,_0x47421f)=>{this['listenTo'](_0x47421f,'escape',_0x2b96e1);}),this['listenTo'](_0x28053e['collection'],'remove',(_0xca760b,_0x121df0)=>{this['stopListening'](_0x121df0,'escape',_0x2b96e1);});}['_calculatePosition'](_0x4b219e){const _0x58bd11=this['editor']['config']['get']('collaboration.channelId'),_0x39cefc=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0xedbc22=>_0xedbc22['channelId']===_0x58bd11)['findIndex'](_0x333766=>_0x333766['archivedAt']<_0x4b219e);return _0x39cefc<0x0||_0x39cefc>this['annotationViews']['length']?this['annotationViews']['length']:_0x39cefc-0x1;}['_toggleDialog'](){const _0x523b3b=this['editor'],_0xcabf13=_0x523b3b['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x523b3b['locale'],this['annotationViews'])),'commentsArchive'===_0xcabf13['id']?_0xcabf13['hide']():_0xcabf13['show']({'id':'commentsArchive','title':S(_0x523b3b['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x2f9a26['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x604e60,_0x2ce359=!0x1){const _0x214a3e=this['editor']['locale'],_0xbb05ba=this['editor']['plugins']['get']('Dialog'),_0x48e402=new _0x604e60(_0x214a3e);return _0x48e402['bind']('isEnabled')['to'](this,'isEnabled'),_0x48e402['bind']('isOn')['to'](_0xbb05ba,'id',_0x45a482=>'commentsArchive'===_0x45a482),_0x48e402['set']({'label':S(_0x214a3e,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x2ce359&&(_0x48e402['tooltip']=!0x0),this['listenTo'](_0x48e402,'execute',()=>this['_toggleDialog']()),_0x48e402;}['_hideDialogOnAnnotationEscape']=_0x271bba=>{const _0x529108=_0x271bba['source'];if(!this['annotationViews']['has'](_0x529108['view']))return;const _0x15f3d6=this['editor']['plugins']['get']('Dialog');_0x15f3d6['isOpen']&&'commentsArchive'===_0x15f3d6['id']&&(_0x15f3d6['hide'](),_0x271bba['stop']());};}class p extends _0x3d936c{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,ss as BaseCommentThreadView,os as BaseCommentView,re as Comment,oe as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,Ct as CommentThreadView,vt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
23
+ import{Editor as _0x2ca61f,icons as _0x380ea0,ContextPlugin as _0x2fb642,PendingActions as ht,Command as _0x16a21a,Plugin as _0x50d6a7,Context as _0x418396}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x57b099,uid as _0x216da5,KeystrokeHandler as jt,FocusTracker as _0x523031,diff as _0xab3921,Collection as _0x556725,Rect as _0x161c21,CKEditorError as _0x4eebb5,first as _0x5ba3c7,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x292265,keyCodes as _0x53ed79}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x4ecd00,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0xf6b86c,trimHtml as _0x2f604b,LateFocusDropdownButtonView as _0x1d4da7,Users as it,getDateTimeFormatter as mt,hashObject as lt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x526bde}from'ckeditor5-collaboration/dist/index.js';import{throttle as bt,isEqual as It,cloneDeep as pt,set as wt,unset as At,debounce as _0x4d24b5}from'lodash-es';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as Ft,ButtonView as _0x30f492,ViewCollection as _0x53afa6,createDropdown as _0x119c38,ListView as _0x15165a,focusChildOnDropdownOpen as _0x5b3040,ListItemView as _0x51afc8,MenuBarMenuListItemButtonView as _0x7e9b73,BodyCollection as _0x237c71,BalloonPanelView as _0x7c24c2,ContextualBalloon as _0x45c664,Dialog as _0x3ca1f2,DialogViewPosition as _0x471e16}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x457f5f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Lt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Nt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x38cfa4}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
24
+ _0x57b099(){['model'];['view'];constructor(_0x578b0d,_0x255826){super(),this['model']=_0x578b0d,this['model']['_isAttached']=!0x0,this['view']=_0x255826,this['listenTo'](_0x255826,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x255826,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x255826,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x255826,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x255826,'addComment',(_0x1636fb,_0x5831af)=>this['addComment'](_0x5831af)),this['listenTo'](_0x255826,'updateComment',(_0x2fbc28,_0x351933,_0x1e1b70)=>this['updateComment'](_0x351933,_0x1e1b70)),this['listenTo'](_0x255826,'removeComment',(_0x4fb1c6,_0x48b81b)=>this['removeComment'](_0x48b81b));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0xdc1720){this['model']['addComment']({'content':_0xdc1720,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x80fe1,_0x20d2a2){this['model']['getComment'](_0x80fe1)['update']({'content':_0x20d2a2});}['removeComment'](_0x461da1){this['model']['getComment'](_0x461da1)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x2f2cd7,_0x4ce6e1,_0x37f716){const t=_0x2f2cd7['t'];switch(_0x4ce6e1){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'},_0x37f716);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'},_0x37f716);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'},_0x37f716);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'},_0x37f716);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x37f716);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'},_0x37f716);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'},_0x37f716);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'},_0x37f716);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0x6ef35d,_0x47e247){super(_0x6ef35d);const _0x5a982e=_0x216da5();this['main']=this['createCollection'](),this['editable']=new $t(_0x6ef35d,_0x47e247,void 0x0,{'label':()=>S(_0x6ef35d,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x6ef35d['uiLanguageDirection'],'lang':_0x6ef35d['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x5a982e},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Ut{['view'];constructor(_0x568476){super(_0x568476),this['view']=new Vt(_0x568476['locale'],_0x568476['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x2bf81d=this['editor']['editing']['view'],_0x1d6f09=this['view']['editable'],_0x501ae3=_0x2bf81d['document']['getRoot']();_0x1d6f09['name']=_0x501ae3['rootName'],this['view']['render']();const _0xfb96ec=_0x1d6f09['element'];this['setEditableElement'](_0x1d6f09['name'],_0xfb96ec),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2bf81d['attachDomRoot'](_0xfb96ec),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[Bt,Et,Gt,Jt,Kt,Lt,Nt];class Rt extends/* #__PURE__ -- @preserve */
25
+ _0x57b099(_0x2ca61f){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x1b381a={}){function _0x5e65ea(_0x137088){return _0x137088['map'](_0x13350f=>String['fromCharCode'](_0x13350f))['join']('');}(_0x1b381a=Object['assign']({},_0x1b381a))['plugins']||(_0x1b381a['plugins']=Rt['defaultPlugins']),super(_0x1b381a),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[_0x5e65ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e65ea([0x76,0x69,0x65,0x77])][_0x5e65ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e65ea([0x61,0x75,0x74,0x6f]),this[_0x5e65ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5e65ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e65ea([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5e65ea([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5e65ea([0x6f,0x6b])});}['create'](){const _0x41434b=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x41434b))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x55e310=>{const _0x5db91d=this['model']['document']['getRoot'](),_0x167c96=_0x5db91d&&_0x5db91d['getChild'](_0x5db91d['childCount']-0x1);_0x55e310['setSelection'](_0x167c96,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x17ae11=this['editing']['view'],_0xb1c657=_0x17ae11['document']['getRoot'](),_0x3ee929=_0xb1c657['getChild'](0x0);_0xb1c657['childCount']>0x1||!_0x3ee929||'p'!=_0x3ee929['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x17ae11,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3ee929['placeholder']=this['placeholder']),St({'view':_0x17ae11,'element':_0x3ee929,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3ee929);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x1be408,_0x27e1c0={}){super(_0x1be408),this['editor']=null,this['_editorConfig']=_0x27e1c0,this['set']('value',_0x27e1c0['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x1be408,'Reply...')),this['set']('submitLabel',S(_0x1be408,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x523031(),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',(_0xe432a7,_0x2aab97)=>{this['cancelButtonView']['fire']('execute'),_0x2aab97();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4d6988,_0x2051c0)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x2051c0());}),this['on']('submit',(_0x25d32b,_0x25fd83)=>{_0x25fd83['length']>0xfde8?(alert(S(_0x1be408,'TOO_LONG_COMMENT_ALERT',[_0x25fd83['length'],0xfde8])),_0x25d32b['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x2221a2=this['editor'];this['element']['insertBefore'](_0x2221a2['ui']['element'],this['element']['firstChild']),_0x2221a2['model']['document']['on']('change',()=>this['value']=_0x2221a2['getData']()),_0x2221a2['bind']('placeholder')['to'](this),this['focusables']['add'](_0x2221a2['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x5a3e75){-0x1===_0x5a3e75?(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:_0x404cc9}=this,_0x58abd2=new _0x30f492(_0x404cc9);return _0x58abd2['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x58abd2['withText']=!0x0,_0x58abd2['bind']('label')['to'](this,'submitLabel'),_0x58abd2['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x58abd2['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0xe3c2bb,_0x4c0485)=>!_0x4c0485&&!!_0xe3c2bb['trim']()),_0x58abd2;}['_createCancelButton'](){const {locale:_0x536edd}=this,_0x59bc64=new _0x30f492(_0x536edd);return _0x59bc64['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x59bc64['label']=S(_0x536edd,'Cancel'),_0x59bc64['withText']=!0x0,_0x59bc64['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x59bc64;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x9aee60=>{this['focusTracker']['add'](_0x9aee60['element']);}),this['focusables']['on']('change',(_0x1962e6,_0x1171f7)=>{for(const _0x50e421 of Array['from'](_0x1171f7['added'])['reverse']())this['focusTracker']['add'](_0x50e421['element']);});}}class ie extends kt{constructor(_0x2b0ccc,_0x31391c,_0x2dafd0){super(_0x2b0ccc),this['commentInputView']=new hs(_0x2b0ccc,_0x2dafd0),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x3999a3,_0x5c2557)=>_0x3999a3||!!_0x5c2557),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 _0x4ecd00(_0x2b0ccc,_0x31391c),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'](_0x2ba18b){this['commentInputView']['focus'](_0x2ba18b);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0xb02246,_0xdb9008)=>{const {submitButtonView:_0xbbf2b6,cancelButtonView:_0x1d4706,editor:_0x49ab78}=this['commentInputView'];[_0xbbf2b6['element'],_0x1d4706['element'],_0x49ab78?_0x49ab78['editing']['view']['getDomRoot']():null]['filter'](_0x21f58e=>_0x21f58e)['some'](_0x4deb6f=>_0x4deb6f['contains'](_0xdb9008['target']))||(this['focus'](),_0xdb9008['preventDefault']());});}}class cs extends kt{constructor(_0x559c96){super(_0x559c96);const _0x39e959=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x39e959['to']('count',_0x3bc2c9=>S(_0x559c96,'NUMBER_OF_COMMENTS',_0x3bc2c9))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x148cd1,_0xe1a73d,_0x111503){super(_0x148cd1);const _0x28cf0c=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0xe1a73d['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0xe1a73d,this['_config']=_0x111503,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x523031(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x59688b=>this['commentViews']['map'](_0x417f77=>_0x417f77['element'])['includes'](_0x59688b['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x148cd1),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x40824b=>_0x40824b-this['_config']['maxCommentsWhenCollapsed']);for(const _0x433df2 of _0xe1a73d['comments'])this['_handleNewCommentModel'](_0x433df2);this['_handleInfoComment'](),this['listenTo'](_0xe1a73d['comments'],'add',(_0x51dfcc,_0x4d7255)=>{const _0x40d24c=this['_calculatePosition'](_0x4d7255);this['length']++,this['_handleNewCommentModel'](_0x4d7255,_0x40d24c),this['refreshVisibleViews']();}),this['listenTo'](_0xe1a73d['comments'],'remove',(_0x1283bf,_0x8426a1)=>{this['length']--,this['_handleRemoveCommentModel'](_0x8426a1),this['refreshVisibleViews']();}),this['listenTo'](_0xe1a73d,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0xe1a73d,'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',_0x28cf0c['if']('length','ck-hidden',_0x4c09d4=>!_0x4c09d4)],'aria-label':S(_0x148cd1,'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'](_0x37d63c){-0x1===_0x37d63c?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x22160e of this['commentViews'])_0x22160e['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x3bb0dd,_0x4a2f36){const _0x2e8206=new this['_config']['CommentView'](this['locale'],_0x3bb0dd,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x2e8206['viewUid']=_0x3bb0dd['id'],_0x2e8206['delegate']('removeComment')['to'](this),_0x2e8206['delegate']('updateComment')['to'](this),_0x2e8206['delegate']('resolveCommentThread')['to'](this),_0x2e8206['delegate']('editorReady')['to'](this),_0x2e8206['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x2e8206,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x2e8206,_0x4a2f36);}['_calculatePosition'](_0x2af0bf){const _0x3535ce=this['_model']['_findOptimalIndex'](_0x2af0bf);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2af0bf['authoredAt']?_0x3535ce-0x1:_0x3535ce:_0x3535ce-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x48f98b={'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'],_0x48f98b,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x48f98b));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3a14a5){const _0x813aa2=this['commentViews']['remove'](_0x3a14a5['id']);this['stopListening'](_0x813aa2),_0x813aa2['isEditMode']&&this['_updateHasDirtyComment'](),_0x813aa2['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x3bf6e5=>_0x3bf6e5['isEditMode']);}['_rearrangeCollapse'](){const _0x3771ab=function(_0x42e671){const _0x5a231b=new _0x556725();for(const _0x41877d of _0x42e671)_0x5a231b['add'](_0x41877d);return _0x5a231b;}(this['commentViews']),_0x33af2f=this['_collapsedCommentsView']['count'];for(let _0x549680=0x1;_0x549680<=_0x33af2f;_0x549680++)_0x3771ab['remove'](0x1);for(const _0x415134 of _0x3771ab)_0x415134['collapse']();_0x33af2f>0x0&&_0x3771ab['add'](this['_collapsedCommentsView'],0x1),ns(_0xab3921(Array['from'](this['visibleViews']),Array['from'](_0x3771ab)),this['visibleViews'],_0x3771ab);}['_rearrangeExpand'](){ns(_0xab3921(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x2fe4d1 of this['visibleViews'])_0x2fe4d1['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x7aa126=>{this['focusTracker']['add'](_0x7aa126['element']),this['keystrokes']['listenTo'](_0x7aa126['element']);}),this['commentViews']['on']('change',(_0xfaa15c,_0xe2feb0)=>{for(const _0x280ef4 of _0xe2feb0['removed'])this['focusTracker']['remove'](_0x280ef4['element']),this['keystrokes']['stopListening'](_0x280ef4['element']);for(const _0x11ba03 of Array['from'](_0xe2feb0['added'])['reverse']())this['focusTracker']['add'](_0x11ba03['element']),this['keystrokes']['listenTo'](_0x11ba03['element']);});}}function ns(_0x5aec71,_0x52bfab,_0xc7b1ec){let _0x1cbce0=0x0;for(const _0x4d3519 of _0x5aec71)switch(_0x4d3519){case'insert':_0x52bfab['add'](_0xc7b1ec['get'](_0x1cbce0),_0x1cbce0),_0x1cbce0++;break;case'delete':_0x52bfab['remove'](_0x1cbce0);break;case'equal':_0x1cbce0++;}}class as extends kt{constructor(_0x17019e){super(_0x17019e);const _0x44dde9=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x44dde9['to']('contextValue',_0x59836b=>S(_0x17019e,'THREAD_CONTEXT_LABEL',_0x59836b)),'tabindex':-0x1},'children':[{'text':_0x44dde9['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xf97e1c,_0x1dfe9d){super(_0xf97e1c);const _0x2fdcdb=this['bindTemplate'];this['_model']=_0x1dfe9d,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x523031(),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',_0x14dd56=>!!_0x14dd56),this['bind']('contextValue')['to'](this['_model'],'context',_0x54a695=>_0x54a695&&_0x54a695['value']?this['_trimContextValue'](_0x54a695['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',_0x2fdcdb['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 _0x3cfc45=new _0x30f492(this['locale']);return _0x3cfc45['label']=S(this['locale'],'Reopen'),_0x3cfc45['tooltip']=S(this['locale'],'Reopen'),_0x3cfc45['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>',_0x3cfc45['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2cdb05=>!_0x2cdb05),_0x3cfc45['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x14d9e9,_0x1dcced)=>_0x14d9e9&&_0x1dcced),_0x3cfc45['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x3cfc45;}['_trimContextValue'](_0x1163d5){if(_0x1163d5['length']<0x96)return _0x1163d5;const _0x3a2c8a=_0x1163d5['lastIndexOf']('\x20',0x93);return _0x1163d5['substring'](0x0,_0x3a2c8a>-0x1?_0x3a2c8a:0x93)+'...';}['_attachContextActions'](){const _0xb3530=this['element']['querySelector']('.ck-context'),_0x2c09b1=_0xb3530['querySelector']('.ck-context__value');this['listenTo'](_0xb3530,'mouseenter',()=>{_0x2c09b1['offsetWidth']<_0x2c09b1['scrollWidth']&&_0xb3530['classList']['add']('overlay');}),this['listenTo'](_0xb3530,'mouseleave',()=>{_0xb3530['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x4da17b of this['focusables'])this['focusTracker']['add'](_0x4da17b['element']),this['keystrokes']['listenTo'](_0x4da17b['element']);}['_createContextView'](){const _0x40aa2a=new as(this['locale']);return _0x40aa2a['bind']('contextValue')['to'](this),_0x40aa2a;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xef848f,_0x5babf7,_0xd7570a,_0x342616){super(_0xef848f),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x5babf7,this['_localUser']=_0xd7570a,this['_config']=_0x342616,this['commentThreadHeaderView']=new Yt(_0xef848f,_0x5babf7),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0xef848f,S(_0xef848f,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0xef848f,_0x5babf7,Object['assign']({'CommentView':this['_config']['CommentView']},_0x342616)),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',(_0x564f9d,_0x534488)=>_0x564f9d||!!_0x534488),this['bind']('isUnlinked')['to'](_0x5babf7,'unlinkedAt',_0xaeba4a=>!!_0xaeba4a),this['bind']('ariaLabel')['to'](this,'length',_0x12e817=>{const _0x52b865=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x12e817,_0x52b865]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x523031(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3a1c87=>_0x3a1c87['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x1cee96=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x24b477=_0x1cee96['commentInputView'];return _0x1cee96['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x24b477,'value',(_0x2f2a40,_0x4e4a2c,_0x2dcb34,_0x1126ef,_0x184853)=>!!_0x184853||!!_0x1126ef&&_0x2dcb34&&!_0x4e4a2c||_0x2f2a40&&_0x2dcb34&&!_0x4e4a2c),_0x24b477['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4af45f,_0x449df7,_0x4cd7be)=>{let _0x1c2008;return _0x1c2008=_0x4cd7be&&_0x449df7?'Reply\x20to\x20reopen\x20discussion...':_0x4af45f?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x1c2008);}),_0x24b477['bind']('submitLabel')['to'](this,'length',_0x2e3b3b=>S(this['locale'],_0x2e3b3b?'Reply':'Comment')),_0x24b477['on']('submit',(_0x39ba83,_0x35e5e0)=>{this['fire']('addComment',_0x35e5e0),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x24b477['on']('cancel',()=>{this['focus']();}),_0x24b477['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x24b477['on']('cancel',_0x1366eb=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x1366eb['stop']());}),this['on']('change:isActive',(_0x4ee297,_0x22ed8e,_0x1ca1e3)=>{_0x1ca1e3||this['length']||_0x24b477['value']||this['fire']('removeCommentThread');}),_0x1cee96;}}class Ct extends/* #__PURE__ -- @preserve */
27
+ ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x18f0ef,_0x5d0271,_0x1b8de9,_0x35af29){super(_0x18f0ef,_0x5d0271,_0x1b8de9,_0x35af29),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x18f0ef,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0xbf4250,_0x4eaba5,_0x28f7c9)=>{_0x28f7c9||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x10771a,_0x4b49a1,_0x5dbe52)=>{_0x5dbe52&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0xc796ab=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0xc796ab['if']('isActive','ck-thread--active'),_0xc796ab['if']('isUnlinked','ck-thread--unlinked'),_0xc796ab['if']('isConfirm','ck-thread--remove-confirmation'),_0xc796ab['to']('actionIndicator',_0x204408=>_0x204408?'ck-thread--'+_0x204408:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0xc796ab['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 _0x49af95 of this['commentsListView']['commentViews'])_0x49af95['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0xe3ada9}=this,_0x3bfb32=this['commentsListView']['commentViews']['get'](0x0);_0x3bfb32===this['_boundFirstCommentView']||_0x3bfb32['isSystemComment']||(this['_boundFirstCommentView']=_0x3bfb32,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x3bfb32,'actionIndicator',_0x19f459=>'remove'===_0x19f459?'remove':null),_0x3bfb32['placeholder']=S(_0xe3ada9,'Write\x20a\x20comment...'),_0x3bfb32['removeButton']['on']('execute',_0x555b60=>{_0x555b60['stop'](),this['showConfirm'](S(_0xe3ada9,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x3bfb32['focus']();}),_0x3bfb32['actionBar']['add'](this['resolveButton'],0x0),_0x3bfb32['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x63a01d=new _0xf6b86c(this['locale']);return _0x63a01d['label']=S(this['locale'],'Resolve'),_0x63a01d['tooltip']=S(this['locale'],'Resolve'),_0x63a01d['icon']=_0x380ea0['check'],_0x63a01d['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x63a01d['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x535398=>!_0x535398),_0x63a01d['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4faaaf,_0x1d9169)=>_0x4faaaf&&!_0x1d9169),_0x63a01d['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x63a01d;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0x171d80){super(_0x171d80),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x2d889c,_0x5968f5,_0x25eff0)=>{this['element']['innerHTML']=_0x25eff0;}),this['element']['innerHTML']=this['content'];}}class os extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1bb0d9,_0x241588,_0x44ce0b){super(_0x1bb0d9),this['_model']=_0x241588,this['_config']=_0x44ce0b,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x241588,'content',_0x241588,'authoredAt',(_0x425a64,_0x46356f)=>S(_0x1bb0d9,'COMMENT_ARIA_LABEL',[_0x241588['author']['name'],_0x44ce0b['formatDateTime'](_0x46356f),new DOMParser()['parseFromString'](_0x425a64,'text/html')['body']['textContent'],_0x241588['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x1bb0d9,S(_0x1bb0d9,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x53afa6(),this['focusTracker']=new _0x523031(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x42dcd3=>_0x42dcd3['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 _0x559492=new es(this['locale']);return _0x559492['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x59d21e,_0xa05c9e)=>_0xa05c9e?_0x2f604b(_0x59d21e,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x59d21e),_0x559492;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x3fb2d=new hs(this['locale'],this['_config']['editorConfig']);return _0x3fb2d['value']=this['_model']['content'],_0x3fb2d['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x3fb2d['submitLabel']=S(this['locale'],'Save'),_0x3fb2d['on']('submit',(_0x451a91,_0x45c5aa)=>{this['fire']('updateComment',this['_model']['id'],_0x45c5aa),this['switchToDisplayMode'](),this['focus']();}),_0x3fb2d['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x3fb2d['once']('editorReady',()=>{_0x3fb2d['focus']();}),_0x3fb2d['createEditor'](),_0x3fb2d['delegate']('editorReady')['to'](this),_0x3fb2d['delegate']('editorDestroyed')['to'](this),_0x3fb2d;}['_setupKeyboardNavigation'](){const _0x5ac3f9=this['element'];this['keystrokes']['listenTo'](_0x5ac3f9);for(const _0x59f4a1 of this['focusables'])this['focusTracker']['add'](_0x59f4a1['element']),this['keystrokes']['listenTo'](_0x59f4a1['element']);this['focusables']['on']('change',(_0x51a2e3,_0x337394)=>{for(const _0x54cae6 of _0x337394['removed'])this['focusTracker']['remove'](_0x54cae6['element']),this['keystrokes']['stopListening'](_0x54cae6['element']);for(const _0x36db5b of _0x337394['added'])this['focusTracker']['add'](_0x36db5b['element']),this['keystrokes']['listenTo'](_0x36db5b['element']);}),this['keystrokes']['set']('enter',(_0x1bbf66,_0x329f5c)=>{_0x5ac3f9===_0x1bbf66['target']&&(this['focusCycler']['focusFirst'](),_0x329f5c());}),this['keystrokes']['set']('esc',(_0x5dc5aa,_0x323c7f)=>{_0x5ac3f9!==_0x5dc5aa['target']&&(this['focus'](),_0x323c7f());});}}class vt extends/* #__PURE__ -- @preserve */
28
+ ti(os){['actionBar'];['userView'];constructor(_0x1d695c,_0x1fc6cc,_0x548d8f){super(_0x1d695c,_0x1fc6cc,_0x548d8f),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x1d695c,'Reply...')),this['bind']('authoredAt')['to'](_0x1fc6cc),this['bind']('resolvedAt')['to'](_0x1fc6cc),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 _0x4ecd00(_0x1d695c,_0x1fc6cc['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x1fc6cc,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x50129e=this['bindTemplate'],_0x419866=[{'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':_0x50129e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x50129e['to']('authoredAt',_0xc414df=>this['_config']['formatDateTime'](_0xc414df))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x50129e['if']('isEditMode','ck-comment__actions--hidden'),_0x50129e['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']&&_0x419866['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x50129e['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x50129e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x50129e['if']('isEditMode','ck-comment--edit'),_0x50129e['if']('isSystemComment','ck-comment--info'),_0x50129e['to']('actionIndicator',_0x359bca=>_0x359bca?'ck-comment--'+_0x359bca:'')],'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':_0x419866}]}]};}['_createEditButton'](){const _0x318f6b=new _0x30f492(this['locale']);return _0x318f6b['label']=S(this['locale'],'Edit'),_0x318f6b['icon']=_0x380ea0['pencil'],_0x318f6b['withText']=!0x0,_0x318f6b['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x318f6b['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x101873=>!_0x101873),_0x318f6b['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x318f6b['on']('execute',()=>this['switchToEditMode']()),_0x318f6b;}['_createRemoveButton'](){const _0x1869b3=new _0x30f492(this['locale']);return _0x1869b3['label']=S(this['locale'],'Remove'),_0x1869b3['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',_0x1869b3['withText']=!0x0,_0x1869b3['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x1869b3['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xe14ffa=>!_0xe14ffa),_0x1869b3['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x1869b3['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x1869b3;}['_createDropdown'](){const _0x1892eb=_0x119c38(this['locale'],_0x1d4da7),_0x527435=_0x1892eb['panelView']['children'],_0x7e73bf=new _0x15165a(this['locale']),_0x4052c7=_0x1892eb['bindTemplate'];_0x5b3040(_0x1892eb,()=>this['items']['find'](_0xb3d891=>_0xb3d891['isVisible'])),_0x1892eb['extendTemplate']({'attributes':{'class':[_0x4052c7['if']('isVisible','ck-hidden',_0x53fd1e=>!_0x53fd1e)]}});const _0x1f1596=(_0x409b6a,_0x1f738c=-0x1)=>{const _0x3e2354=new _0x51afc8(this['locale']);_0x3e2354['children']['add'](_0x409b6a);const _0x3d6bcd=_0x1f738c>-0x1?_0x1f738c:_0x7e73bf['items']['length'];_0x7e73bf['items']['add'](_0x3e2354,_0x3d6bcd);const _0x4ca31b=Array['from'](this['items']);_0x1892eb['unbind']('isEnabled','isVisible'),_0x1892eb['bind']('isEnabled')['toMany'](_0x4ca31b,'isEnabled',(..._0x30c78e)=>_0x30c78e['some'](_0x231434=>_0x231434)),_0x1892eb['bind']('isVisible')['toMany'](_0x4ca31b,'isVisible',(..._0x4ada72)=>_0x4ada72['some'](_0xeb42=>_0xeb42));};_0x1892eb['panelPosition']='sw',_0x1892eb['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x380ea0['threeVerticalDots']});for(const _0x39e493 of this['items'])_0x1f1596(_0x39e493);return _0x527435['add'](_0x7e73bf),_0x1892eb['listenTo'](this['items'],'add',(_0x1bc16c,_0x3b3387,_0x10a27e)=>{_0x1f1596(_0x3b3387,_0x10a27e);}),_0x1892eb['listenTo'](this['items'],'remove',(_0x186d37,_0x17ccb7,_0x353a3b)=>{_0x7e73bf['items']['remove'](_0x353a3b);}),_0x1892eb;}['_attachActions'](_0xca78c9,_0x44334a){const _0x28533b=_0xca78c9&&_0xca78c9['element'];_0x28533b&&(this['listenTo'](_0x28533b,'mouseenter',()=>this['actionIndicator']=_0x44334a),this['listenTo'](_0x28533b,'focus',()=>this['actionIndicator']=_0x44334a),this['listenTo'](_0x28533b,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x28533b,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x38c9a4=super['_createCommentInputView']();return _0x38c9a4['bind']('placeholder')['to'](this),_0x38c9a4;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Dt(_0x29bd7a){const _0x45b0b0=bt(_0x29bd7a,0x1e),_0x1f6088=new MutationObserver(_0x5c94df=>{for(const _0x11b2d1 of _0x5c94df)('attributes'==_0x11b2d1['type']&&'class'==_0x11b2d1['attributeName']||'childList'==_0x11b2d1['type']||'characterData'==_0x11b2d1['type'])&&_0x45b0b0();});return{'attach'(_0x236247){_0x1f6088['observe'](_0x236247,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x1f6088['disconnect'](),_0x45b0b0['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x57e0bd,_0x2ffaf2){super(_0x57e0bd),this['id']=_0x216da5(),this['focusTracker']=new _0x523031(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x35c272,_0x236565)=>this['fire']('Esc',_0x236565)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Dt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x2ffaf2),this['mainView']=_0x2ffaf2;const _0x4ff021=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x4ff021['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 _0x2a6f2b=this['element']['clientHeight'];_0x2a6f2b&&(this['height']=_0x2a6f2b);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x57b099(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x1258dd,target:_0x138012,type:_0xe6bc56,isVisible:_0x3a8bdc=!0x0}){super(),this['view']=_0x1258dd,this['view']['element']||this['view']['render'](),this['_type']=_0xe6bc56,this['_target']=_0x138012,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x556725([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x47ccde,_0x1fc60d)=>{this['view']['focusTracker']['add'](_0x1fc60d);}),this['focusableElements']['on']('remove',(_0x63309,_0x5e1e35)=>{this['view']['focusTracker']['remove'](_0x5e1e35);}),this['set']('isVisible',_0x3a8bdc);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x2e7837=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x2e7837),_0x2e7837;}get['targetRect'](){const _0x35deed=this['target'];if(null===_0x35deed)return null;if(_0x35deed instanceof _0x161c21)return _0x35deed;const _0xe43b3d=_0x35deed['filter'](_0x348a16=>function(_0x1558c0){const _0x189fb6=_0x1558c0['offsetParent'];if(_0x189fb6)return!0x0;const _0x5156cf=_0x1558c0['getClientRects']()['item'](0x0);return!!_0x5156cf;}(_0x348a16));return 0x0===_0xe43b3d['length']?null:new _0x161c21(_0xe43b3d[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5cdc7f){this['view']['isActive']=_0x5cdc7f,this['view']['mainView']['isActive']=_0x5cdc7f;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0xf64b28){if(!(null===_0xf64b28||_0xf64b28 instanceof _0x161c21||Array['isArray'](_0xf64b28)&&_0xf64b28['every'](_0x144883=>ne(_0x144883))))throw new _0x4eebb5('annotation-invalid-target',null,{'target':_0xf64b28});}['_getNormalizedTarget'](){const _0x4c6cc7='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x4c6cc7)?[_0x4c6cc7]:_0x4c6cc7;}}function ne(_0x116175){return null!==_0x116175&&'object'==typeof _0x116175&&'nodeType'in _0x116175&&0x1===_0x116175['nodeType'];}class x extends _0x556725{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x2bde87=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x523031(),this['_focusTracker']['on']('change:isFocused',(_0x44a0a6,_0xe7d909,_0x2da66c)=>{_0x2da66c||this['fire']('blur');});for(const _0xfeac9e of _0x2bde87)this['add'](_0xfeac9e);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x3cc619){if(this['has'](_0x3cc619))throw new _0x4eebb5('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x3cc619['innerView'],_0x3cc619),this['_viewToAnnotation']['set'](_0x3cc619['view'],_0x3cc619);for(const _0x332d63 of _0x3cc619['focusableElements'])this['_focusTracker']['add'](_0x332d63);this['listenTo'](_0x3cc619['focusableElements'],'add',(_0x328ab5,_0x488e35)=>{this['_focusTracker']['add'](_0x488e35);}),this['listenTo'](_0x3cc619['focusableElements'],'remove',(_0x563634,_0x2369e4)=>{this['_focusTracker']['remove'](_0x2369e4);}),this['listenTo'](_0x3cc619['view']['focusTracker'],'change:isFocused',(_0x19e4d0,_0x47dd61,_0x1f6a2f)=>{_0x1f6a2f&&this['fire']('focus',_0x3cc619);}),_0x3cc619['updateTargetRect']();const _0x3335aa=this['_getOrderInContent'](_0x3cc619['view']['targetRect']);return super['add'](_0x3cc619,_0x3335aa);}['remove'](_0x27649d){if(!this['has'](_0x27649d))throw new _0x4eebb5('annotationcollection-not-existing-item',null);this['stopListening'](_0x27649d['view']['focusTracker']),this['stopListening'](_0x27649d['focusableElements']);for(const _0x5934ed of _0x27649d['focusableElements'])this['_focusTracker']['remove'](_0x5934ed);return this['_viewToAnnotation']['delete'](_0x27649d['view']),this['_innerViewToAnnotation']['delete'](_0x27649d['innerView']),super['remove'](_0x27649d);}['getByInnerView'](_0x811cd3){return this['_innerViewToAnnotation']['get'](_0x811cd3);}['getByView'](_0x342ca0){return this['_viewToAnnotation']['get'](_0x342ca0);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x37b2c6 of this)_0x37b2c6['updateTargetRect']();this['_sort']();}['_sort'](){const _0x2f5235=Array['from'](this)['sort']((_0x5e6dd2,_0x482fbb)=>v(_0x5e6dd2['view']['targetRect'],_0x482fbb['view']['targetRect']));for(let _0x2a336e=_0x2f5235['length']-0x1;_0x2a336e>0x0;_0x2a336e--){const _0x5d8a2b=_0x2f5235[_0x2a336e];_0x2a336e!==this['getIndex'](_0x5d8a2b)&&(this['remove'](_0x5d8a2b),this['add'](_0x5d8a2b));}}['_getOrderInContent'](_0x28cb8a){let _0x5c532c=0x0;if(!_0x28cb8a)return this['length'];for(const _0x43e57e of this){const _0x1db0c0=_0x43e57e['view']['targetRect'];if(_0x1db0c0){if(v(_0x28cb8a,_0x1db0c0)<0x0)return _0x5c532c;_0x5c532c++;}}return _0x5c532c;}}function v(_0x2ac3e1,_0x5c4b73){if(null===_0x2ac3e1&&null===_0x5c4b73)return 0x0;if(null===_0x2ac3e1)return-0x1;if(null===_0x5c4b73)return 0x1;const _0x3212be=_0x2ac3e1['top']-_0x5c4b73['top'];return 0x0==_0x3212be?_0x2ac3e1['left']-_0x5c4b73['left']:_0x3212be;}class N extends _0x2fb642{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x33ca15){if(super(_0x33ca15),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x33ca15 instanceof _0x2ca61f){const _0xe629af=_0x33ca15['locale'];_0x33ca15['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0xe629af,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0xe629af,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0xe629af,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0xe629af,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0xe629af,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0xe629af,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0xe629af,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2bda16){this['collection']['add'](_0x2bda16);}['remove'](_0x58404e){this['collection']['remove'](_0x58404e),_0x58404e['destroy']();}['refreshVisibility'](){for(const _0x5166aa of this['collection'])_0x5166aa['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x41f4f0){return this['collection']['getByInnerView'](_0x41f4f0);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x373700 of this['collection'])_0x373700['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x67104){this['fire']('_activateAnnotation',_0x67104);}['createAnnotation'](_0x53a3f5){return new d(_0x53a3f5);}['createAnnotationView'](_0x570e7e,_0x51e036){return new T(_0x570e7e,_0x51e036);}['_addActiveAnnotation'](_0x436f6f){const _0x5c077a=new Set(this['activeAnnotations']);_0x5c077a['add'](_0x436f6f),this['activeAnnotations']=_0x5c077a;}['_removeActiveAnnotation'](_0x5e1057){const _0x24c0f7=new Set(this['activeAnnotations']);_0x24c0f7['delete'](_0x5e1057),this['activeAnnotations']=_0x24c0f7;}['_bindAnnotationsToVisibleAnnotations'](){const _0x43388f=this['collection'],_0x89e77f=this['_visibleAnnotations'];function _0x3a35df(_0x4174aa){const _0x27f9db=_0x4174aa['source'];_0x27f9db['isVisible']&&!_0x89e77f['has'](_0x27f9db)?_0x89e77f['add'](_0x27f9db):!_0x27f9db['isVisible']&&_0x89e77f['has'](_0x27f9db)&&_0x89e77f['remove'](_0x27f9db),_0x27f9db['view']['focusTracker']['remove'](_0x27f9db['view']['element']),_0x27f9db['view']['focusTracker']['add'](_0x27f9db['view']['element']);}this['listenTo'](_0x43388f,'add',(_0x47d76c,_0x489837)=>{_0x489837['isVisible']&&_0x89e77f['add'](_0x489837),this['listenTo'](_0x489837,'change:isVisible',_0x3a35df);}),this['listenTo'](_0x43388f,'remove',(_0x16a244,_0x2d0832)=>{_0x89e77f['has'](_0x2d0832)&&_0x89e77f['remove'](_0x2d0832),this['stopListening'](_0x2d0832,'change:isVisible',_0x3a35df);});}['_setupEnterAnnotationKeystroke'](){const _0x2f69dd=_0x2ce8b2=>{_0x2ce8b2['on']('ready',()=>{_0x2ce8b2['keystrokes']['set'](_0x38cfa4,(_0x5ea89d,_0x34372d)=>{const _0x4baefd=_0x5ba3c7(this['activeAnnotations']['values']());_0x4baefd&&(_0x4baefd['view']['focus'](),_0x34372d());});});};this['context']instanceof _0x2ca61f?_0x2f69dd(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0xe8174d,_0x46258a)=>{_0x2f69dd(_0x46258a);});}['_setupEscapeAnnotationHandling'](){const _0x5e19e3=_0x981855=>{const _0x2dabee=_0x981855['source'],_0x2bee8b=[];let _0x2ae7b9;if(Array['isArray'](_0x2dabee['target'])){_0x2ae7b9=_0x2dabee['target'][0x0],this['context']instanceof _0x2ca61f?_0x2bee8b['push'](this['context']):this['context']['editors']&&_0x2bee8b['push'](...this['context']['editors']);for(const _0x2ba5dc of _0x2bee8b)for(const _0x3ea2c1 of _0x2ba5dc['editing']['view']['domRoots']['values']())if(_0x3ea2c1['contains'](_0x2ae7b9))return void _0x2ba5dc['editing']['view']['focus']();_0x2ae7b9['focus']();}};this['listenTo'](this['collection'],'add',(_0x2a53a7,_0x31cfc9)=>{this['listenTo'](_0x31cfc9,'escape',_0x5e19e3,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x2ef38a,_0x29a003)=>{this['stopListening'](_0x29a003,'escape',_0x5e19e3);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x2fb642{['_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(_0x110394){super(_0x110394),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x3bc7fb=this['context']['config'];_0x3bc7fb['define']('comments.maxCommentsWhenCollapsed',0x2),_0x3bc7fb['define']('comments.maxThreadTotalWeight',0x1f4),_0x3bc7fb['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x3bc7fb['define']('comments.CommentThreadView',Ct),_0x3bc7fb['define']('comments.CommentView',vt),_0x3bc7fb['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x20e07e=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x12dd0e,_0x92a130)=>this['_addCommentThread'](_0x92a130)),this['on']('submitCommentThread',(_0x2c82b8,_0x2e04ee)=>this['_submitCommentThread'](_0x2e04ee)),this['on']('resolveCommentThread',(_0x4d2fd2,_0x27fd3a)=>this['_resolveCommentThread'](_0x27fd3a)),this['on']('resolveCommentThread',(_0x45ffb,_0x2d057c)=>this['_updateActiveAnnotation'](_0x2d057c),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5322cf,_0xa065b5)=>this['_reopenCommentThread'](_0xa065b5)),this['on']('reopenCommentThread',(_0x54d714,_0x1c940f)=>this['_updateActiveAnnotation'](_0x1c940f),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x4a4d6e,_0x189a7b)=>this['_removeCommentThread'](_0x189a7b)),this['on']('updateCommentThread',(_0x36ab74,_0x2f94c2)=>this['_updateCommentThread'](_0x2f94c2)),this['on']('updateCommentThread',(_0x5edb31,_0x12f75d)=>this['_updateActiveAnnotation'](_0x12f75d),{'priority':'lowest'}),this['on']('addComment',(_0x585d2f,_0x399d40)=>this['_addComment'](_0x399d40)),this['on']('updateComment',(_0xd6a6c8,_0x1af6fd)=>this['_updateComment'](_0x1af6fd)),this['on']('removeComment',(_0x2680db,_0x2b5afa)=>this['_removeComment'](_0x2b5afa)),this['on']('addComment',(_0x411496,{threadId:_0x1dac33,isFromAdapter:_0x42f7d8})=>{if(_0x42f7d8)return;const _0x1d1a81=this['getCommentThread'](_0x1dac33),_0x230106=_0x1d1a81&&this['_threadToController']['get'](_0x1d1a81);_0x230106&&_0x230106['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x20e07e,'change:activeAnnotations',(_0x4f3c84,_0x43dd8c,_0x129264)=>{const _0x2fe766=Array['from'](_0x129264)['map'](_0x287a46=>this['_viewToController']['get'](_0x287a46['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x2fe766?_0x2fe766['model']:null;});}set['adapter'](_0x1ced90){if(this['_adapter'])throw new _0x4eebb5('commentsrepository-adapter-already-set');this['_adapter']=_0x1ced90;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x4c092a=gt,threadId:_0x2c562b=_0x216da5(),comments:_0x4c733c=[],unlinkedAt:_0x2ecea4=null,resolvedAt:_0x219f87=null,resolvedBy:_0x2f8db9=null,target:_0xabda18=null,context:_0x46e25c=null,attributes:_0x1f88f1={},isResolvable:_0x565c22=!0x0,isSubmitted:_0x4633f1=!0x1,isFromAdapter:_0x514e8e=!0x1}={}){return this['fire'](_t('addCommentThread',_0x4c092a),{'channelId':_0x4c092a,'threadId':_0x2c562b,'comments':_0x4c733c,'unlinkedAt':_0x2ecea4,'resolvedAt':_0x219f87,'resolvedBy':_0x2f8db9,'target':_0xabda18,'context':_0x46e25c,'attributes':_0x1f88f1,'isFromAdapter':_0x514e8e,'isResolvable':_0x565c22,'isSubmitted':_0x4633f1}),this['getCommentThread'](_0x2c562b);}['openNewCommentThread']({channelId:_0xe6bdd5=gt,threadId:_0x4c03f5=_0x216da5(),target:_0x40a0eb,context:_0x4b5683=null,isResolvable:_0x12c70d=!0x0}){if(this['_readOnlyChannels']['has'](_0xe6bdd5)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x40a0eb)throw new _0x4eebb5('commentsrepository-missing-target');const _0x1baeb1=this['addCommentThread']({'channelId':_0xe6bdd5,'threadId':_0x4c03f5,'target':_0x40a0eb,'context':_0x4b5683,'isResolvable':_0x12c70d});if(!_0x1baeb1)return null;const _0xa5c393=this['_threadToController']['get'](_0x1baeb1),_0x41765e=_0xa5c393['view']['commentThreadInputView']['commentInputView'],_0xb197e5=this['context']['plugins']['get'](N),_0x48c602=_0xb197e5['getByInnerView'](_0xa5c393['view']);return _0xb197e5['activate'](_0x48c602),_0x41765e['once']('editorReady',()=>_0x41765e['focus']()),_0x1baeb1;}['hasCommentThread'](_0x2560ab){if('string'!=typeof _0x2560ab)throw new _0x4eebb5('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x2560ab);}['updateCommentThread']({channelId:_0x1ccec9=gt,threadId:_0x363906,context:_0xad2fcc,unlinkedAt:_0x13cb86,attributes:_0x8dccb3,isFromAdapter:_0x3fcc59=!0x1}){return this['fire'](_t('updateCommentThread',_0x1ccec9),{'channelId':_0x1ccec9,'threadId':_0x363906,'context':_0xad2fcc,'unlinkedAt':_0x13cb86,'attributes':_0x8dccb3,'isFromAdapter':_0x3fcc59}),this['getCommentThread'](_0x363906);}['getCommentThread'](_0x5b2342){if('string'!=typeof _0x5b2342)throw new _0x4eebb5('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x5b2342);}['fetchCommentThread']({channelId:_0x3c486a,threadId:_0x503632}={}){const _0xbc69ac=this['getCommentThread'](_0x503632);if(_0xbc69ac)return Promise['resolve'](_0xbc69ac);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x4eebb5('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x3c486a,'threadId':_0x503632})['then'](_0x36a8ac=>this['hasCommentThread'](_0x503632)?this['getCommentThread'](_0x503632):_0x36a8ac?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x3c486a},_0x36a8ac)):void 0x0)['catch'](_0x31c668=>{throw console['error'](_0x31c668),new _0x4eebb5('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x2c8c95,skipNotAttached:_0x130756=!0x1,skipEmpty:_0x1cb3ae=!0x1,toJSON:_0x537d31=!0x1}={}){const _0x4dd856=[];for(const _0x51b199 of this['_threads']['values']())_0x2c8c95&&_0x51b199['channelId']!==_0x2c8c95||_0x130756&&!_0x51b199['isAttached']||_0x1cb3ae&&0x0===_0x51b199['length']||_0x4dd856['push'](_0x51b199);return _0x537d31?_0x4dd856['map'](_0x392959=>_0x392959['toJSON']()):_0x4dd856;}['setActiveCommentThread'](_0x4ad359){const _0x4ac09f=this['context']['plugins']['get'](N);if(!_0x4ad359)return void(this['activeCommentThread']&&_0x4ac09f['deactivateAll']());const _0x4a0450=this['getCommentThread'](_0x4ad359);if(!_0x4a0450)throw new _0x4eebb5('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x4ad359});if(!this['_threadToController']['has'](_0x4a0450))throw new _0x4eebb5('commentsrepository-active-not-attached',null,{'threadId':_0x4ad359});const _0x32dd90=_0x4ac09f['getByInnerView'](this['_threadToController']['get'](_0x4a0450)['view']);_0x4ac09f['activate'](_0x32dd90);}['switchReadOnly'](_0x441cb2,_0x4ac8cc){_0x441cb2?this['_readOnlyChannels']['add'](_0x4ac8cc):this['_readOnlyChannels']['delete'](_0x4ac8cc),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x19fe94){return this['_readOnlyChannels']['has'](_0x19fe94)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x219b49,_0x1d1dc6){return new yt(_0x219b49,_0x1d1dc6);}['setPermissions'](_0xdc40d0,_0x5c8d63=gt){this['_permissions']['set'](_0x5c8d63,_0xdc40d0),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x982c84=gt){return this['_permissions']['has'](_0x982c84)?this['_permissions']['get'](_0x982c84):Tt;}['_addCommentThread']({channelId:_0x3e6e9a,threadId:_0x193bea,comments:_0x2a4b11,unlinkedAt:_0xdb8347,resolvedAt:_0x10e81e,resolvedBy:_0x5423bc,target:_0x440fce,context:_0x1ba6dd,attributes:_0x44db38,isFromAdapter:_0x2495e1,isResolvable:_0x17d1e5,isSubmitted:_0x437def}){if('string'!=typeof _0x193bea)throw new _0x4eebb5('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x193bea});if(this['hasCommentThread'](_0x193bea))throw new _0x4eebb5('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x193bea});const _0x2b4099=new oe(this,{'channelId':_0x3e6e9a,'id':_0x193bea,'context':_0x1ba6dd,'attributes':_0x44db38,'unlinkedAt':_0xdb8347,'resolvedAt':_0x10e81e,'resolvedBy':_0x5423bc?this['context']['plugins']['get'](it)['getUser'](_0x5423bc):null,'isResolvable':_0x17d1e5,'isSubmitted':_0x437def||_0x2495e1});this['_threads']['set'](_0x193bea,_0x2b4099);for(const _0x4944e0 of _0x2a4b11)_0x2b4099['_add'](this['_createNewComment']({'threadId':_0x193bea,..._0x4944e0}));return _0x440fce&&_0x2b4099['attachTo'](_0x440fce),_0x2495e1||!_0x2b4099['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x3e6e9a,'threadId':_0x193bea});}['_submitCommentThread']({channelId:_0x44d409,threadId:_0x22d1df}){if(!this['hasCommentThread'](_0x22d1df))throw new _0x4eebb5('commentsrepository-missing-comment-thread',this);const _0x19749f=this['getCommentThread'](_0x22d1df);if(_0x19749f['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x22d164,comments:_0x5d8c87,resolvedAt:_0x3db13d,resolvedBy:_0x20ca86,context:_0x2e5fad,attributes:_0x268868}=_0x19749f,_0x1bef68=this['context']['plugins']['get']('PendingActions'),_0xe9d87e=_0x1bef68['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x44d409,'threadId':_0x22d164,'comments':_0x5d8c87['map'](_0x1aab2a=>_0x1aab2a['toJSON']()),'resolvedAt':_0x3db13d,'resolvedBy':_0x20ca86?_0x20ca86['id']:_0x20ca86,'context':_0x2e5fad,'attributes':_0x268868})['then'](({comments:_0x3f4295})=>{_0x1bef68['remove'](_0xe9d87e);for(const _0x14e486 of _0x3f4295)this['_updateComment']({'channelId':_0x44d409,'threadId':_0x22d1df,'commentId':_0x14e486['commentId'],'createdAt':_0x14e486['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5b9261=>{throw console['error'](_0x5b9261),new _0x4eebb5('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x4bf03b,target:_0x24c994}){const _0x4047ff=this['getCommentThread'](_0x4bf03b);if(!_0x4047ff)throw new _0x4eebb5('commentsrepository-attach-missing-comment-thread',this);const _0xd62704=this['context']['plugins']['get']('PendingActions'),_0x1a7cf4=this['context']['plugins']['get'](N),_0x17a7e9=this['_createCommentThreadView'](_0x4047ff),_0x57f868=new yt(_0x4047ff,_0x17a7e9);let _0x5ec9c6=null;_0x17a7e9['on']('change:isDirty',(_0x57cfe,_0x4a9f24,_0x49c8fb)=>{_0x49c8fb?_0x5ec9c6=_0xd62704['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x5ec9c6&&(_0xd62704['remove'](_0x5ec9c6),_0x5ec9c6=null);}),this['_threadToController']['set'](_0x4047ff,_0x57f868),this['_viewToController']['set'](_0x17a7e9,_0x57f868);const _0x4af71e=new T(this['context']['locale'],_0x17a7e9);_0x4af71e['bind']('length')['to'](_0x17a7e9),_0x4af71e['bind']('isDirty')['to'](_0x17a7e9,'isDirty',_0x17a7e9,'length',(_0x4a124e,_0x5e072a)=>_0x4a124e||!_0x5e072a),_0x4af71e['bind']('isActive')['to'](_0x17a7e9),_0x4af71e['type']='comment';const _0x463904=new d({'view':_0x4af71e,'target':_0x24c994,'type':'comment','isVisible':!_0x4047ff['isResolved']});return _0x17a7e9['on']('escape',()=>{_0x463904['fire']('escape');}),this['_bindAnnotationToEditors'](_0x17a7e9,_0x463904),_0x1a7cf4['add'](_0x463904),_0x463904;}['_bindAnnotationToEditors'](_0x1ae264,_0x48eee3){this['listenTo'](_0x1ae264,'editorReady',(_0x4a706e,_0x3a4f06)=>{const _0x4989c2=_0x3a4f06['ui']['view']['body']['bodyCollectionContainer'];_0x48eee3['focusableElements']['add'](_0x4989c2),this['context']instanceof _0x2ca61f&&this['context']['ui']['focusTracker']['add'](_0x4989c2);},{'priority':'highest'}),this['listenTo'](_0x1ae264,'editorDestroyed',(_0xe6aea7,_0x383aef)=>{const _0x281757=_0x383aef['ui']['view']['body']['bodyCollectionContainer'];_0x48eee3['focusableElements']['has'](_0x281757)&&_0x48eee3['focusableElements']['remove'](_0x281757),this['context']instanceof _0x2ca61f&&this['context']['ui']['focusTracker']['remove'](_0x281757);});}['_unbindEditors'](_0x260ee9){this['stopListening'](_0x260ee9,'editorReady'),this['stopListening'](_0x260ee9,'editorDestroyed');}['_createCommentThreadView'](_0x2fcd59){const _0x21c372=this['context']['plugins']['get'](it),{config:_0x54ddf3,locale:_0x380da9}=this['context'],_0x591cd6=mt(_0x54ddf3['get']('locale'));return new(0x0,(_0x54ddf3['get']('comments'))['CommentThreadView'])(_0x380da9,_0x2fcd59,_0x21c372['me'],{'editorConfig':{..._0x54ddf3['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x54ddf3['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x54ddf3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x54ddf3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x54ddf3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x591cd6,'CommentView':_0x54ddf3['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x6f2720,channelId:_0x1e579f,resolvedAt:_0x3c101f,resolvedBy:_0x1a9096,isFromAdapter:_0xd6730a}){if(!this['hasCommentThread'](_0x6f2720))throw new _0x4eebb5('commentsrepository-missing-comment-thread',null,{'threadId':_0x6f2720});const _0x5792f3=this['getCommentThread'](_0x6f2720);if(_0x5792f3['isResolved'])throw new _0x4eebb5('commentsrepository-resolved-comment-thread',null,{'threadId':_0x6f2720});const _0x4c8284=this['context']['plugins']['get'](it);if(_0x5792f3['resolvedBy']=_0x4c8284['getUser'](_0x1a9096),_0x5792f3['resolvedAt']=_0x3c101f,_0xd6730a||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x52dcd0=this['context']['plugins']['get']('PendingActions'),_0xd846b4=_0x52dcd0['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x1e579f,'threadId':_0x6f2720})['then'](({resolvedAt:_0x333b55,resolvedBy:_0x2bce92})=>{_0x52dcd0['remove'](_0xd846b4),_0x5792f3['resolvedBy']['id']!==_0x2bce92&&(_0x5792f3['resolvedBy']=_0x4c8284['getUser'](_0x2bce92)),_0x5792f3['resolvedAt']=_0x333b55;})['catch'](_0x1559ef=>{throw console['error'](_0x1559ef),new _0x4eebb5('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x22a29a,channelId:_0x49e3cc,isFromAdapter:_0x4d949a}){if(!this['hasCommentThread'](_0x22a29a))throw new _0x4eebb5('commentsrepository-missing-comment-thread',null,{'threadId':_0x22a29a});const _0x23dd42=this['getCommentThread'](_0x22a29a);if(!_0x23dd42['isResolved'])throw new _0x4eebb5('commentsrepository-reopen-comment-thread',null,{'threadId':_0x22a29a});if(_0x23dd42['resolvedBy']=null,_0x23dd42['resolvedAt']=null,_0x4d949a||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x3a4fd3=this['context']['plugins']['get']('PendingActions'),_0x244433=_0x3a4fd3['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x49e3cc,'threadId':_0x22a29a})['then'](()=>_0x3a4fd3['remove'](_0x244433))['catch'](_0x11bd68=>{throw console['error'](_0x11bd68),new _0x4eebb5('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x2fb591,isFromAdapter:_0x1e0909}){const _0x47b227=this['getCommentThread'](_0x2fb591);if(!_0x47b227)throw new _0x4eebb5('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x2fb591),this['_threads']['delete'](_0x2fb591),!_0x47b227['isSubmitted']||_0x1e0909||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x46a726=this['context']['plugins']['get']('PendingActions'),{channelId:_0x55ff62}=_0x47b227,_0x4d328f=_0x46a726['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x55ff62,'threadId':_0x2fb591})['then'](()=>_0x46a726['remove'](_0x4d328f))['catch'](_0x49b632=>{throw console['error'](_0x49b632),new _0x4eebb5('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x4ff8c5,unlinkedAt:_0x174fc3,context:_0x5e095d,attributes:_0x1327c8,isFromAdapter:_0x3a59e9}){if('string'!=typeof _0x4ff8c5)throw new _0x4eebb5('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4ff8c5});if(!this['hasCommentThread'](_0x4ff8c5))throw new _0x4eebb5('commentsrepository-missing-comment-thread',null,{'threadId':_0x4ff8c5});const _0x2932d2=this['getCommentThread'](_0x4ff8c5);let _0x2f52e4=!0x1;if(void 0x0!==_0x5e095d&&_0x2932d2['context']!==_0x5e095d&&(_0x2932d2['context']=_0x5e095d,_0x2f52e4=!0x0),void 0x0!==_0x174fc3&&_0x2932d2['unlinkedAt']!==_0x174fc3&&(_0x2932d2['unlinkedAt']=_0x174fc3,_0x2f52e4=!0x0),_0x1327c8&&!It(_0x1327c8,_0x2932d2['attributes'])&&(_0x2932d2['attributes']=_0x1327c8,_0x2f52e4=!0x0),!_0x2f52e4)return Promise['resolve']();if(!_0x2932d2['isSubmitted']||_0x3a59e9||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x59bac0=this['context']['plugins']['get']('PendingActions'),{channelId:_0x396537}=_0x2932d2,_0x4c5666=_0x59bac0['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x396537,'threadId':_0x4ff8c5,'context':_0x5e095d,'unlinkedAt':_0x174fc3,'attributes':_0x1327c8})['then'](()=>_0x59bac0['remove'](_0x4c5666))['catch'](_0x1331a=>{throw console['error'](_0x1331a),new _0x4eebb5('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x5c8a90){const _0x261523=this['context']['plugins']['get'](N),_0x44c8c0=this['getCommentThread'](_0x5c8a90);if(this['_threadToController']['has'](_0x44c8c0)){const _0x19bead=this['_threadToController']['get'](_0x44c8c0),_0x273356=_0x19bead['view'],_0xb5ea12=_0x261523['getByInnerView'](_0x273356);this['_threadToController']['delete'](_0x44c8c0),this['_viewToController']['delete'](_0x273356),_0xb5ea12&&_0x261523['remove'](_0xb5ea12),_0x19bead['destroy'](),_0x273356['destroy']()['then'](()=>{this['_unbindEditors'](_0x273356);});}}['_updateActiveAnnotation']({threadId:_0x4bef0a,resolvedAt:_0x4fbd03}){const _0x240d7a=!!_0x4fbd03,_0x4d33ae=this['context']['plugins']['get'](N),_0x44b486=this['getCommentThread'](_0x4bef0a);if(this['_threadToController']['has'](_0x44b486)){const _0xd5a349=this['_threadToController']['get'](_0x44b486)['view'],_0x1a6c6f=_0x4d33ae['getByInnerView'](_0xd5a349);_0x1a6c6f&&(_0x240d7a&&_0x4d33ae['_removeActiveAnnotation'](_0x1a6c6f),_0x1a6c6f['refreshVisibility']());}}['_getExternalAuthor'](_0x402d73){const _0x281b6e=this['context']['plugins']['get'](it),_0x422a3f=lt('external:'+_0x402d73),_0x4e21ae=_0x281b6e['getUser'](_0x422a3f);return _0x4e21ae||_0x281b6e['addUser']({'id':_0x422a3f,'name':_0x402d73});}['_createNewComment']({threadId:_0xbc5462,commentId:_0x54d565=_0x216da5(),content:_0x1a2167,authorId:_0x215e33,createdAt:_0x1b213e,attributes:_0x258611}){if('string'!=typeof _0x54d565)throw new _0x4eebb5('commentsrepository-invalid-commentid');if('string'!=typeof _0x215e33)throw new _0x4eebb5('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x1a2167||!_0x1a2167['trim']())throw new _0x4eebb5('commentsrepository-invalid-comment-content');const _0x339f7b=this['context']['plugins']['get'](it)['getUser'](_0x215e33);if(!_0x339f7b)throw new _0x4eebb5('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x215e33});let _0x144c88=null,_0x1bb646=_0x1b213e;return _0x258611&&_0x258611['@external']&&(_0x144c88=this['_getExternalAuthor'](_0x258611['@external']['authorName']),_0x1bb646=new Date(_0x258611['@external']['createdAt'])),new re(this,{'threadId':_0xbc5462,'id':_0x54d565,'author':_0x144c88||_0x339f7b,'creator':_0x339f7b,'content':_0x1a2167,'createdAt':_0x1b213e,'authoredAt':_0x1bb646,'attributes':_0x258611});}['_addComment'](_0x4aaadf){let {threadId:_0xbf6c5c,content:_0x1ef981,attributes:_0x7fb0f4,isFromAdapter:_0x4f84ae}=_0x4aaadf;const _0x132b1a=this['getCommentThread'](_0x4aaadf['threadId']);if(!_0x132b1a)throw new _0x4eebb5('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x39fda4=this['_createNewComment'](_0x4aaadf),{id:_0x2b4c2c}=_0x39fda4;if(_0x132b1a['_add'](_0x39fda4),_0x4f84ae||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x132b1a['isSubmitted'])return Promise['resolve']();const _0x46fd22=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3226e4}=_0x132b1a,_0x35c3b3=_0x46fd22['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x7fb0f4||(_0x7fb0f4={}),this['adapter']['addComment']({'channelId':_0x3226e4,'threadId':_0xbf6c5c,'commentId':_0x2b4c2c,'content':_0x1ef981,'attributes':_0x7fb0f4})['then'](_0x28a020=>{_0x46fd22['remove'](_0x35c3b3),_0x28a020&&this['_updateComment']({'channelId':_0x3226e4,'threadId':_0xbf6c5c,'commentId':_0x2b4c2c,'createdAt':_0x28a020['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3a6325=>{throw console['error'](_0x3a6325),new _0x4eebb5('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x597cde,commentId:_0x1493c9,content:_0x1f506b,createdAt:_0x1ba631,attributes:_0x4926b7,isFromAdapter:_0x2880b5}){if(void 0x0!==_0x1f506b&&('string'!=typeof _0x1f506b||!_0x1f506b['trim']()['length']))throw new _0x4eebb5('commentsrepository-update-comment-invalid-content');const _0x1f23d9=this['getCommentThread'](_0x597cde),_0x31f2b7=_0x1f23d9['getComment'](_0x1493c9);if(!_0x31f2b7)throw new _0x4eebb5('commentsrepository-update-missing-comment',this);let _0x323ccf=!0x1;if(_0x1f506b&&_0x1f506b!==_0x31f2b7['content']&&(_0x31f2b7['isEditable']||_0x2880b5)&&(_0x31f2b7['content']=_0x1f506b,_0x323ccf=!0x0),_0x1ba631&&_0x1ba631!==_0x31f2b7['createdAt']&&(_0x31f2b7['createdAt']=_0x1ba631,_0x31f2b7['attributes']&&_0x31f2b7['attributes']['@external']||(_0x31f2b7['authoredAt']=_0x1ba631),_0x323ccf=!0x0),_0x4926b7&&!It(_0x4926b7,_0x31f2b7['attributes'])&&(_0x31f2b7['attributes']=_0x4926b7,_0x323ccf=!0x0),!_0x323ccf)return Promise['resolve']();if(_0x1f23d9['fire']('commentUpdated'),_0x2880b5||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x5328b2=this['context']['plugins']['get']('PendingActions'),{channelId:_0x113ab1}=this['getCommentThread'](_0x31f2b7['threadId']),_0xb9f34d=_0x5328b2['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x113ab1,'threadId':_0x597cde,'commentId':_0x1493c9,'content':_0x1f506b,'attributes':_0x4926b7})['then'](()=>_0x5328b2['remove'](_0xb9f34d))['catch'](_0x347d47=>{throw console['error'](_0x347d47),new _0x4eebb5('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x226389,commentId:_0xaf2562,isFromAdapter:_0x8cf55d}){const _0x64bd09=this['getCommentThread'](_0x226389),_0x154166=_0x64bd09['getComment'](_0xaf2562);if(!_0x154166)throw new _0x4eebb5('commentsrepository-remove-missing-comment',this);if(_0x64bd09['_remove'](_0x154166),_0x8cf55d||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x2b1e10=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5ce504}=_0x64bd09,_0x334165=_0x2b1e10['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x5ce504,'threadId':_0x226389,'commentId':_0xaf2562})['then'](()=>_0x2b1e10['remove'](_0x334165))['catch'](_0x3a655f=>{throw console['error'](_0x3a655f),new _0x4eebb5('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
+ _0x57b099(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x7c58c5,_0x7fc2cc){super();const _0x2b5690=_0x7fc2cc['isResolvable'];this['channelId']=_0x7fc2cc['channelId'],this['id']=_0x7fc2cc['id'],this['comments']=new _0x556725(),this['_repository']=_0x7c58c5,this['_isAttached']=!0x1,this['_isSubmitted']=_0x7fc2cc['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x7c58c5,'_permissions',_0x7c58c5,'_readOnlyChannels',()=>_0x7c58c5['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x7c58c5,'_permissions',()=>_0x7c58c5['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x7c58c5,'_permissions',()=>{const _0x26a3ec=_0x7c58c5['getPermissions'](this['channelId']);return _0x26a3ec['write']||_0x26a3ec['admin'];}),this['bind']('isResolvable')['to'](_0x7c58c5,'_permissions',()=>_0x2b5690&&_0x7c58c5['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x7fc2cc['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x1fbd68,_0xc58a30)=>_0x1fbd68?_0xc58a30?_0x1fbd68<_0xc58a30?_0x1fbd68:_0xc58a30:_0x1fbd68:_0xc58a30),this['set']('unlinkedAt',_0x7fc2cc['unlinkedAt']||null),this['set']('resolvedAt',_0x7fc2cc['resolvedAt']||null),this['set']('resolvedBy',_0x7fc2cc['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x187149=>!!_0x187149),this['set']('attributes',_0x7fc2cc['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x29c34e,_0x113c42)=>_0x29c34e+_0x113c42['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x108dc5,id:_0x4cdb19}=this;this['_repository']['fire'](_t('submitCommentThread',_0x108dc5),{'channelId':_0x108dc5,'threadId':_0x4cdb19});}['setUnlinkedAt'](_0x5ab23d){this['_update']({'unlinkedAt':_0x5ab23d});}['resolve']({resolvedAt:_0x4b33f7=new Date(),resolvedBy:_0x9aa249=null,isFromAdapter:_0x1aee85=!0x1}={}){const _0x29b4a0=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x1d9899,id:_0x36e716}=this;this['_repository']['fire'](_t('resolveCommentThread',_0x1d9899),{'channelId':_0x1d9899,'threadId':_0x36e716,'resolvedAt':_0x4b33f7,'resolvedBy':_0x9aa249||_0x29b4a0['id'],'isFromAdapter':_0x1aee85});}['reopen']({isFromAdapter:_0x4dbbee=!0x1}={}){const {channelId:_0x203e9b,id:_0x14098d}=this;this['_repository']['fire'](_t('reopenCommentThread',_0x203e9b),{'channelId':_0x203e9b,'threadId':_0x14098d,'isFromAdapter':_0x4dbbee});}['setContext'](_0x47b741){this['context']||this['_update']({'context':_0x47b741});}['setAttribute'](_0x2b9f56,_0x1bdf92){const _0x5a5998=pt(this['attributes']);wt(_0x5a5998,_0x2b9f56,_0x1bdf92),this['_update']({'attributes':_0x5a5998});}['removeAttribute'](_0x2dde4c){const _0x1bff22=pt(this['attributes']);At(_0x1bff22,_0x2dde4c),this['_update']({'attributes':_0x1bff22});}['remove']({isFromAdapter:_0x239fa5=!0x1}={}){const {channelId:_0x15d3a7,id:_0x2ae2e7}=this;this['_repository']['fire'](_t('removeCommentThread',_0x15d3a7),{'channelId':_0x15d3a7,'threadId':_0x2ae2e7,'isFromAdapter':_0x239fa5});}['attachTo'](_0x569119){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x569119});}['addComment'](_0x5e26d4){const {channelId:_0x98aea2,id:_0x468002}=this;this['_repository']['fire'](_t('addComment',_0x98aea2,_0x468002),Object['assign']({'channelId':_0x98aea2,'threadId':_0x468002},_0x5e26d4));}['getComment'](_0x252d46){if('string'!=typeof _0x252d46)throw new _0x4eebb5('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x252d46});return this['comments']['get'](_0x252d46);}['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'](_0x663988=>_0x663988['toJSON']()),'attributes':this['attributes']};}['_add'](_0x6440f4){return this['listenTo'](_0x6440f4,'change:authoredAt',()=>{const _0x2a0a8f=this['_findOptimalIndex'](_0x6440f4),_0x5095e7=this['comments'];_0x2a0a8f-0x1!=_0x5095e7['getIndex'](_0x6440f4)&&_0x2a0a8f+0x1!=_0x5095e7['getIndex'](_0x6440f4)&&(this['_remove'](_0x6440f4),this['_add'](_0x6440f4));}),this['comments']['add'](_0x6440f4,this['_findOptimalIndex'](_0x6440f4));}['_update'](_0xa18db3){const {channelId:_0x2cae02,id:_0x515f68}=this;this['_repository']['fire'](_t('updateCommentThread',_0x2cae02),{..._0xa18db3,'channelId':_0x2cae02,'threadId':_0x515f68});}['_remove'](_0xcf5890){return this['stopListening'](_0xcf5890),_0xcf5890['destroy'](),this['comments']['remove'](_0xcf5890);}['_findOptimalIndex'](_0x34a80a){const _0x2906e2=this['comments']['find'](_0x3614a3=>new Date(_0x3614a3['authoredAt'])['getTime']()>new Date(_0x34a80a['authoredAt'])['getTime']());return _0x2906e2?this['comments']['getIndex'](_0x2906e2):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
+ _0x57b099(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x51b6bd,_0x2a298f){super();const _0x15ab97=_0x51b6bd['context']['plugins']['get'](it)['me'],_0x25e3d3=_0x51b6bd['getCommentThread'](_0x2a298f['threadId']),_0x2f3151=0x0===_0x25e3d3['comments']['length'],_0x3687a4=_0x15ab97===_0x2a298f['author'];this['id']=_0x2a298f['id'],this['threadId']=_0x2a298f['threadId'],this['author']=_0x2a298f['author'],this['creator']=_0x2a298f['creator'],this['isExternal']=Boolean(_0x2a298f['attributes']&&_0x2a298f['attributes']['@external']),this['set']('content',_0x2a298f['content']),this['createdAt']=_0x2a298f['createdAt']||new Date(),this['set']('authoredAt',_0x2a298f['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x25e3d3,'resolvedAt'),this['set']('attributes',_0x2a298f['attributes']||{}),this['bind']('isEditable')['to'](_0x51b6bd,'_permissions',()=>{const _0x182e2a=_0x51b6bd['getPermissions'](_0x25e3d3['channelId'])['write'],_0x39c96b=_0x51b6bd['getPermissions'](_0x25e3d3['channelId'])['modifyAll'];return _0x3687a4&&_0x182e2a||!_0x3687a4&&_0x39c96b;}),this['bind']('isRemovable')['to'](_0x25e3d3,'isRemovable',_0x51b6bd,'_permissions',_0x3fa56b=>{const _0x2e9acb=_0x51b6bd['getPermissions'](_0x25e3d3['channelId'])['write'],_0x2f8bcf=_0x51b6bd['getPermissions'](_0x25e3d3['channelId'])['modifyAll'];return _0x3687a4&&_0x2e9acb||_0x3fa56b&&_0x2f3151||!_0x3687a4&&_0x2f8bcf&&!_0x2f3151;}),this['bind']('isReadOnly')['to'](_0x25e3d3,'isReadOnly'),this['_repository']=_0x51b6bd;}get['weight'](){return Math['max'](function(_0x370622){const _0x5a7751=document['createElement']('div');return _0x5a7751['innerHTML']=_0x370622,_0x5a7751['textContent']['length'];}(this['content']),0xc8);}['update'](_0x3df974){const {threadId:_0x1714c7,id:_0x5c4087}=this;if(!this['_repository']['hasCommentThread'](_0x1714c7))throw new _0x4eebb5('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x27a2cb}=this['_repository']['getCommentThread'](_0x1714c7);this['_repository']['fire'](_t('updateComment',_0x27a2cb,_0x1714c7),{'channelId':_0x27a2cb,'threadId':_0x1714c7,'commentId':_0x5c4087,..._0x3df974});}['setAttribute'](_0x5c8884,_0x40479b){const _0x197c4c=pt(this['attributes']);wt(_0x197c4c,_0x5c8884,_0x40479b),this['update']({'attributes':_0x197c4c});}['removeAttribute'](_0x16d635){const _0x504ade=pt(this['attributes']);At(_0x504ade,_0x16d635),this['update']({'attributes':_0x504ade});}['remove'](_0xa6240d={}){if(!_0xa6240d['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x1edff3,id:_0x4411d5}=this;if(!this['_repository']['hasCommentThread'](_0x1edff3))throw new _0x4eebb5('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0xf1a1da}=this['_repository']['getCommentThread'](_0x1edff3);this['_repository']['fire'](_t('removeComment',_0xf1a1da,_0x1edff3),{'channelId':_0xf1a1da,'threadId':_0x1edff3,'commentId':_0x4411d5,..._0xa6240d});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0x50b79e,..._0x180895){for(const _0x51ed42 of _0x180895)void 0x0!==_0x51ed42&&(_0x50b79e+=':'+String(_0x51ed42));return _0x50b79e;}class J extends _0x16a21a{['refresh'](){const _0x1a36aa=this['editor']['model']['document']['selection'];for(const _0x3edbba of _0x1a36aa['getRanges']())if(this['_hasContent'](_0x3edbba))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x22bf3a=_0x216da5()}={}){const _0x9aa591=this['editor']['model'],_0x398fc5=[];for(const _0x379f0e of _0x9aa591['document']['selection']['getRanges']())this['_hasContent'](_0x379f0e)&&_0x398fc5['push'](this['_trimToContent'](_0x379f0e));_0x9aa591['change'](_0x3e7ed6=>{for(const _0x4d456b of _0x398fc5){const _0x1ae468=_0x216da5()['substr'](0x1,0x5),_0x5338da='comment:'+_0x22bf3a+':'+_0x1ae468;_0x3e7ed6['addMarker'](_0x5338da,{'range':_0x4d456b,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x822928){for(const _0x1609f0 of _0x822928['getItems']())if(this['_itemIsContent'](_0x1609f0))return!0x0;return!0x1;}['_itemIsContent'](_0x129b79){return _0x129b79['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x129b79)&&!_0x129b79['is']('element','tableCell');}['_trimToContent'](_0x5859b1){const _0x6eabda=_0x350f79=>!this['_itemIsContent'](_0x350f79['item']),_0x50b948=_0x5859b1['start']['getLastMatchingPosition'](_0x6eabda),_0xb19f11=_0x5859b1['end']['getLastMatchingPosition'](_0x6eabda,{'direction':'backward'});return this['editor']['model']['createRange'](_0x50b948,_0xb19f11);}}class P extends _0x50d6a7{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17f235){super(_0x17f235),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x493637=this['editor'],_0x1b0923=_0x493637['model']['document']['selection'],_0x57e58e=_0x4d24b5(()=>this['refreshSelectedViews'](),0xa);_0x1b0923['on']('change:range',(_0x534185,_0x5ed8c7)=>{_0x5ed8c7['directChange']&&(_0x57e58e['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x493637['editing']['view']['document'],'change:isFocused',(_0x14abbe,_0x2a2a51,_0x43592f)=>{_0x43592f&&_0x57e58e();}),this['listenTo'](_0x493637['ui']['focusTracker'],'change:isFocused',(_0x53c96b,_0x194213,_0x18248e)=>{_0x18248e||_0x493637['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x7156f7=>this['_editorAnnotationsData']['has'](_0x7156f7['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x5d89ee){if(this['_editorAnnotations']['has'](_0x5d89ee['view']))return;this['_editorAnnotations']['add'](_0x5d89ee['view']),this['editor']['ui']['focusTracker']['add'](_0x5d89ee['view']['element']);const _0x805bed=this['editor']['plugins']['get'](N);this['listenTo'](_0x805bed['collection'],'remove',(_0xe30c7e,_0xf9ac9)=>{this['editor']['ui']['focusTracker']['remove'](_0xf9ac9['view']['element']),this['_editorAnnotations']['delete'](_0xf9ac9['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x4c9a39){if('function'!=typeof _0x4c9a39)throw new _0x4eebb5('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x4c9a39);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2551f7,annotations:_0x4e4efe}){const _0x323a47=[],_0x58c9ff=this['editor']['model']['document']['selection'],_0x5ab596=Array['from'](_0x58c9ff['getRanges']());for(const [_0x31d4d9,_0x300ae1]of this['_editorAnnotationsData']){const _0x55a6f0=_0x8588b1(_0x300ae1),_0x2ee6f3=_0x4e4efe['getByInnerView'](_0x31d4d9);_0x55a6f0&&_0x2ee6f3&&_0x323a47['push']({'annotation':_0x2ee6f3,'range':_0x55a6f0});}function _0x8588b1(_0x510393){for(const _0x2cf224 of _0x510393)for(const _0x1d7f1a of _0x5ab596)if(_0x2cf224['containsRange'](_0x1d7f1a,!_0x58c9ff['isCollapsed']))return _0x2cf224;return null;}return _0x323a47['sort']((_0x517cb7,_0x5e306f)=>{const _0x1ac122=_0x517cb7['range'],_0x275b90=_0x5e306f['range'];if(!_0x1ac122['isEqual'](_0x275b90)){if(_0x1ac122['containsRange'](_0x275b90,!0x0))return 0x1;if(_0x275b90['containsRange'](_0x1ac122,!0x0))return-0x1;}return _0x517cb7['annotation']==_0x2551f7?-0x1:_0x5e306f['annotation']==_0x2551f7?0x1:0x0;})['map'](_0x4665fe=>_0x4665fe['annotation']);}get['_editorAnnotationsData'](){const _0x5af45e=new Map();for(const _0x2ec29d of Array['from'](this['_dataCollectors']))for(const [_0x133f15,_0x52df88]of _0x2ec29d())_0x5af45e['set'](_0x133f15,_0x52df88);return _0x5af45e;}}class st extends _0x50d6a7{['afterInit'](){const _0xef6225=this['editor'];if(!_0xef6225['plugins']['has']('RestrictedEditingModeEditing'))return;_0xef6225['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x50d6a7{constructor(_0x2397cf){super(_0x2397cf),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x22ac7e=this['editor'],_0x447f7c=_0x22ac7e['commands']['get']('importWord'),_0x1d031d=_0x22ac7e['plugins']['get'](it);_0x447f7c&&(_0x447f7c['on']('execute',(_0x5309e6,[,_0x21f5b2])=>{_0x21f5b2['collaboration_features']={'comments':!0x0,'user_id':_0x1d031d['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x447f7c,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x3d055a,_0x1036d8){const {comment_threads:_0x3fd7ce}=_0x1036d8;_0x3fd7ce&&_0x3fd7ce['forEach'](({thread_id:_0x2ae522,comments:_0x4ca624,is_resolved:_0x7d8f07})=>{const _0x31e8f1=new Date(),_0x42030d=_0x4ca624['map'](({author:_0xa3b7a5,content:_0xb81d9,created_at:_0x35ff7b})=>({'content':_0xb81d9,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x31e8f1,'attributes':{'@external':{'authorName':_0xa3b7a5,'createdAt':_0x35ff7b?new Date(_0x35ff7b):new Date(),'source':'importWord'}}})),_0x90043d=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x90043d,'threadId':_0x2ae522,'comments':_0x42030d,'resolvedAt':_0x7d8f07?_0x31e8f1:null});});}}class at extends _0x50d6a7{constructor(_0x4cf08c){super(_0x4cf08c),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x537e28=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x537e28,'contentInsertion',(_0x3ccad9,_0x3c5944)=>this['_removeMarkersWithoutThreads'](_0x3c5944['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x633771){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x633771;const _0x5a466d=this['editor']['plugins']['get']('CommentsRepository');for(const _0x52de6c of _0x633771['keys']()){const [_0x5f5900,_0x519f5c]=_0x52de6c['split'](':');'comment'!=_0x5f5900||_0x5a466d['hasCommentThread'](_0x519f5c)||_0x633771['delete'](_0x52de6c);}return _0x633771;}['_registerMarkerInClipboardPipeline'](){const _0x3d2958=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0xead8d=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0xead8d&&_0x3d2958['_registerMarkerToCopy']('comment',_0xead8d);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x169354){switch(_0x169354){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0x50d6a7{static get['requires'](){return[o,P,it,st,ct,at];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c8747){super(_0x5c8747),this['set']('isThreadsLoadingPaused',!0x0),_0x5c8747['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x495f75,_0x429886,_0x281f36,_0x18d345)=>{const _0x25b5ae=_0x281f36?he(_0x281f36)['id']:null;if(_0x5c8747['model']['change'](()=>{if(_0x25b5ae){const _0x2d3e89=this['getAllMarkersForId'](_0x25b5ae);for(const _0x4b2679 of _0x2d3e89)_0x5c8747['editing']['reconvertMarker'](_0x4b2679);}if(_0x18d345){const {id:_0x7a1b8f}=he(_0x18d345),_0x495634=this['getAllMarkersForId'](_0x7a1b8f);for(const _0x2f7db2 of _0x495634)_0x5c8747['editing']['reconvertMarker'](_0x2f7db2);}}),_0x25b5ae){const _0x3c57a8=_0x5c8747['plugins']['get'](o)['getCommentThread'](_0x25b5ae);_0x3c57a8&&_0x3c57a8['isResolved']&&this['scrollToThreadMarker'](_0x25b5ae);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2044e1=this['editor'],_0x201c80=_0x2044e1['plugins']['get'](o),_0x3cb432=_0x2044e1['config']['get']('collaboration.channelId');_0x2044e1['commands']['add']('addCommentThread',new J(_0x2044e1)),this['listenTo'](_0x2044e1,'change:isReadOnly',(_0x52c468,_0x557879,_0x54f4f2)=>{_0x201c80['switchReadOnly'](_0x54f4f2,_0x2044e1['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x201c80,ut('addCommentThread',_0x3cb432),(_0x5938cc,{threadId:_0x1fcae1})=>{const _0x4176fa=this['editor']['plugins']['get'](o)['getCommentThread'](_0x1fcae1);_0x4176fa&&_0x4176fa['unlinkedAt']&&this['_attachArchivedThread'](_0x1fcae1);}),this['listenTo'](_0x201c80,ut('removeCommentThread',_0x3cb432),(_0x9c3b89,{threadId:_0x43d4f0})=>{_0x2044e1['model']['enqueueChange']({'isUndoable':!0x1},_0x4015f5=>{const _0xfbc507=this['getAllMarkersForId'](_0x43d4f0);for(const _0x20308b of _0xfbc507)_0x4015f5['removeMarker'](_0x20308b);});}),this['listenTo'](_0x201c80,ut('resolveCommentThread',_0x3cb432),(_0x168208,{threadId:_0x59927f})=>{(this['_reconvertMarkers'](_0x59927f),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x59927f)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x201c80,ut('reopenCommentThread',_0x3cb432),(_0x229603,{threadId:_0x659089})=>{this['_reconvertMarkers'](_0x659089);},{'priority':'low'}),this['listenTo'](_0x201c80,ut('addComment',_0x3cb432),(_0x308ce7,{threadId:_0x31fabb,isFromAdapter:_0x5f1562})=>{const _0x3e0d64=this['getAllMarkersForId'](_0x31fabb);if(_0x5f1562||0x0==_0x3e0d64['length']||!_0x201c80['hasCommentThread'](_0x31fabb))return;0x1===_0x201c80['getCommentThread'](_0x31fabb)['length']&&_0x2044e1['model']['enqueueChange']({'isUndoable':!0x1},_0x291e27=>{for(const _0x36119e of _0x3e0d64)_0x291e27['updateMarker'](_0x36119e,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x2b8487){const _0x17f128=_0x5f5118([0x66,0x6d,0x51,0x39,0x61,0x48,0x70,0x6f,0x4f,0x4d,0x77,0x54,0x4e,0x6e,0x42,0x76,0x49,0x50,0x75,0x6b,0x5a,0x56,0x30,0x31,0x46,0x79,0x4a,0x63,0x47,0x58,0x37,0x4c,0x36,0x55,0x38,0x67,0x53,0x73,0x33,0x62,0x44,0x52,0x64,0x71,0x74,0x6a,0x57,0x68,0x4b,0x69,0x59,0x7a,0x6c,0x34,0x72,0x45,0x41,0x32,0x43,0x65,0x35,0x78]),_0x3e32d4=0x605c4fb6,_0xee86ec=0x605b173e^_0x3e32d4,_0x228b01=window[_0x5f5118([0x44,0x61,0x74,0x65])][_0x5f5118([0x6e,0x6f,0x77])](),_0x103c06=_0x2b8487[_0x5f5118([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x257f97=new window[(_0x5f5118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17b958=>{_0x103c06[_0x5f5118([0x6f,0x6e,0x63,0x65])](_0x5f5118([0x72,0x65,0x61,0x64,0x79]),_0x17b958);}),_0x3687c7={[_0x5f5118([0x6b,0x74,0x79])]:_0x5f5118([0x45,0x43]),[_0x5f5118([0x75,0x73,0x65])]:_0x5f5118([0x73,0x69,0x67]),[_0x5f5118([0x63,0x72,0x76])]:_0x5f5118([0x50,0x2d,0x32,0x35,0x36]),[_0x5f5118([0x78])]:_0x5f5118([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]),[_0x5f5118([0x79])]:_0x5f5118([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]),[_0x5f5118([0x61,0x6c,0x67])]:_0x5f5118([0x45,0x53,0x32,0x35,0x36])},_0x1d40f4=_0x103c06[_0x5f5118([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f5118([0x67,0x65,0x74])](_0x5f5118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a9b09(){let _0x49b043,_0x5ec188=null,_0x9e4aab=null;try{if(_0x1d40f4==_0x5f5118([0x47,0x50,0x4c]))return _0x5f5118([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49b043=_0x588ca(),!_0x49b043)return _0x5f5118([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49b043[_0x5f5118([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9e4aab=_0x40409d(_0x49b043[_0x5f5118([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49b043[_0x5f5118([0x6a,0x74,0x69])])),await _0x3ebb00()?_0x4d3de2()?_0x46dbdc()?_0x5f5118([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3bd807()?(_0x49b043[_0x5f5118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f5118([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ec188=_0x219bb2(_0x5f5118([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x49b043[_0x5f5118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f5118([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ec188=_0x219bb2(_0x5f5118([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x49b043[_0x5f5118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f5118([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x5ec188=_0x219bb2(_0x5f5118([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ecd06()):_0x5f5118([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f5118([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f5118([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2d456c){return _0x5f5118([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46dbdc(){const _0x304b67=[_0x5f5118([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f5118([0x74,0x72,0x69,0x61,0x6c])][_0x5f5118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b043[_0x5f5118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x228b01/0x3e8:0xe10*_0xee86ec;return _0x49b043[_0x5f5118([0x65,0x78,0x70])]<_0x304b67;}function _0x4d3de2(){const _0x46e6f3=_0x49b043[_0x5f5118([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x46e6f3)return!0x1;if(_0x46e6f3[_0x5f5118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5118([0x2a])))return!0x0;if(_0x46e6f3[_0x5f5118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5118([0x43,0x4d,0x54])))return!0x0;if(_0x46e6f3[_0x5f5118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5118([0x52,0x43,0x4d,0x54]))){if(_0x58f124())return!0x0;if(_0x208afa()||_0x27c039())return!0x0;}return!0x1;}function _0x3bd807(){const _0xaa0005=_0x49b043[_0x5f5118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xaa0005||0x0==_0xaa0005[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x217299}=new URL(window[_0x5f5118([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xaa0005[_0x5f5118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x217299))return!0x0;const _0x10d0a9=_0x217299[_0x5f5118([0x73,0x70,0x6c,0x69,0x74])](_0x5f5118([0x2e]));return _0xaa0005[_0x5f5118([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33d25f=>_0x33d25f[_0x5f5118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5118([0x2a])))[_0x5f5118([0x6d,0x61,0x70])](_0x26c146=>_0x26c146[_0x5f5118([0x73,0x70,0x6c,0x69,0x74])](_0x5f5118([0x2e])))[_0x5f5118([0x73,0x6f,0x6d,0x65])](_0xb3d3c=>_0x10d0a9[_0x5f5118([0x65,0x76,0x65,0x72,0x79])]((_0x3b2916,_0x4dc75f)=>_0xb3d3c[_0x4dc75f]===_0x3b2916||_0xb3d3c[_0x4dc75f]===_0x5f5118([0x2a])));}function _0x1ecd06(){return _0x5ec188&&_0x9e4aab?new window[(_0x5f5118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x219fd1,_0x17d4c9)=>{_0x5ec188[_0x5f5118([0x74,0x68,0x65,0x6e])](_0x219fd1,_0x17d4c9),_0x9e4aab[_0x5f5118([0x74,0x68,0x65,0x6e])](_0x571f6d=>{_0x571f6d!=_0x5f5118([0x56,0x61,0x6c,0x69,0x64])&&_0x219fd1(_0x571f6d);},_0x17d4c9);}):_0x5ec188||_0x9e4aab||_0x5f5118([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40409d(_0xf79170,_0x37b258){return new window[(_0x5f5118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x117ad2=>{if(_0x2c6bfa())return _0x117ad2(_0x5f5118([0x56,0x61,0x6c,0x69,0x64]));_0x447a04(),_0x103c06[_0x5f5118([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f5118([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x44b086=!0x1;const _0x558f3b=_0x216da5();function _0x195027(_0x4d9688){return!!_0x4d9688&&(typeof _0x4d9688===_0x5f5118([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d9688===_0x5f5118([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d9688[_0x5f5118([0x74,0x68,0x65,0x6e])]===_0x5f5118([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d9688[_0x5f5118([0x63,0x61,0x74,0x63,0x68])]===_0x5f5118([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x455b09(_0x59ff55){_0x4b8d97(_0x59ff55)[_0x5f5118([0x74,0x68,0x65,0x6e])](_0x1323f4=>{if(!_0x1323f4||_0x1323f4[_0x5f5118([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f5118([0x6f,0x6b]))return _0x5f5118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x41aada(_0x54eb75(_0x558f3b+_0x37b258))!=_0x1323f4[_0x5f5118([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f5118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f5118([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f5118([0x74,0x68,0x65,0x6e])](_0x3d8e9d=>(_0x1946be(),_0x3d8e9d),()=>{const _0x2eee8b=_0xb5cf27();return null==_0x2eee8b?(_0x1946be(),_0x5f5118([0x56,0x61,0x6c,0x69,0x64])):_0x5f5118(_0x228b01-_0x2eee8b>(0x4450cbb6^_0x3e32d4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f5118([0x74,0x68,0x65,0x6e])](_0x117ad2)[_0x5f5118([0x63,0x61,0x74,0x63,0x68])](()=>{_0x117ad2(_0x5f5118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x8718c3=0x606aa136^_0x3e32d4;function _0x1946be(){const _0x15e1aa=_0x5f5118([0x6c,0x6c,0x63,0x74,0x2d])+_0x41aada(_0x54eb75(_0xf79170)),_0x408d01=_0x2a28de(_0x41aada(window[_0x5f5118([0x4d,0x61,0x74,0x68])][_0x5f5118([0x63,0x65,0x69,0x6c])](_0x228b01/_0x8718c3)));window[_0x5f5118([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f5118([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15e1aa,_0x408d01);}function _0xb5cf27(){const _0x4fd99e=_0x5f5118([0x6c,0x6c,0x63,0x74,0x2d])+_0x41aada(_0x54eb75(_0xf79170)),_0x27d9b3=window[_0x5f5118([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f5118([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fd99e);return _0x27d9b3?window[_0x5f5118([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a28de(_0x27d9b3),0x10)*_0x8718c3:null;}function _0x4b8d97(_0x44c4dd){return new window[(_0x5f5118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ec8c7,_0x2873bd)=>{_0x44c4dd[_0x5f5118([0x74,0x68,0x65,0x6e])](_0x5ec8c7,_0x2873bd),window[_0x5f5118([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2873bd,0x605d9b76^_0x3e32d4);});}}_0x103c06[_0x5f5118([0x6f,0x6e])](_0x5f5118([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x207293,_0x4e27a8)=>{if(_0x4e27a8[0x0]!=_0xf79170)return _0x117ad2(_0x5f5118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e27a8[0x1]={..._0x4e27a8[0x1],[_0x5f5118([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x558f3b};},{[_0x5f5118([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f5118([0x68,0x69,0x67,0x68])}),_0x103c06[_0x5f5118([0x6f,0x6e])](_0x5f5118([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf29a61=>{_0x195027(_0xf29a61[_0x5f5118([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x44b086=!0x0,_0x455b09(_0xf29a61[_0x5f5118([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f5118([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f5118([0x6c,0x6f,0x77])}),_0x257f97[_0x5f5118([0x74,0x68,0x65,0x6e])](()=>{_0x44b086||_0x117ad2(_0x5f5118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c6bfa(){return _0x103c06[_0x5f5118([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f5118([0x76,0x69,0x65,0x77])][_0x5f5118([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f5118([0x61,0x75,0x74,0x6f]);}function _0x447a04(){_0x103c06[_0x5f5118([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f5118([0x76,0x69,0x65,0x77])][_0x5f5118([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f5118([0x61,0x75,0x74,0x6f]);}}function _0x219bb2(_0x42a8fd){const _0x5081b1=[new window[(_0x5f5118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x73e560=>setTimeout(_0x73e560,0x6055717a^_0x3e32d4)),_0x257f97[_0x5f5118([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f5118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x572502=>{let _0x4419f0=0x0;_0x103c06[_0x5f5118([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f5118([0x6f,0x6e])](_0x5f5118([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x488fc8,_0x3161f2)=>{_0x3161f2[0x0][_0x5f5118([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4419f0++,_0x4419f0==(0x605c4e4e^_0x3e32d4)&&(_0x572502(),_0x488fc8[_0x5f5118([0x6f,0x66,0x66])]());});}))];return window[_0x5f5118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f5118([0x72,0x61,0x63,0x65])](_0x5081b1)[_0x5f5118([0x74,0x68,0x65,0x6e])](()=>_0x42a8fd);}async function _0x8ecc45(){await _0x257f97,_0x103c06[_0x5f5118([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f5118([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2ac1bb,_0x103c06[_0x5f5118([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f5118([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2ac1bb,_0x103c06[_0x5f5118([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f5118([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58f124(){return _0x506563(_0x5f5118([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3449c8(_0x5f5118([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5f5118([0x73,0x74,0x61,0x74,0x65])]==_0x5f5118([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x208afa(){return _0x506563(_0x5f5118([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 _0x27c039(){return _0x506563(_0x5f5118([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x44149a(_0x39bec6){const _0x5c14aa=_0x3b399a();_0x103c06[_0x5c14aa]=_0x5f5118([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x39bec6,_0x39bec6!=_0x5f5118([0x56,0x61,0x6c,0x69,0x64])&&_0x8ecc45();}function _0x3b399a(){const _0x4f4e9f=window[_0x5f5118([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f5118([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f5118([0x6e,0x6f,0x77])]())[_0x5f5118([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f5118([0x2e]),'');let _0x301089=_0x5f5118([0x66]);for(let _0xa9bb81=0x0;_0xa9bb81<_0x4f4e9f[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa9bb81+=0x2){let _0x44c362=window[_0x5f5118([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f4e9f[_0x5f5118([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa9bb81,_0xa9bb81+0x2));_0x44c362>=_0x17f128[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x44c362-=_0x17f128[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x301089+=_0x17f128[_0x44c362];}return _0x301089;}function _0x588ca(){const _0x1a7941=_0x1d40f4[_0x5f5118([0x73,0x70,0x6c,0x69,0x74])](_0x5f5118([0x2e]));if(0x3!=_0x1a7941[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2df3cd(_0x1a7941[0x1]);function _0x2df3cd(_0x1e7448){const _0x4c97ed=_0x3443ee(_0x1e7448);return _0x4c97ed&&_0x1263e4()?_0x4c97ed:null;function _0x1263e4(){const _0x2d5ece=_0x4c97ed[_0x5f5118([0x6a,0x74,0x69])],_0x4602ad=window[_0x5f5118([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d5ece[_0x5f5118([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d5ece[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5f0742={..._0x4c97ed,[_0x5f5118([0x6a,0x74,0x69])]:_0x2d5ece[_0x5f5118([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d5ece[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5f0742[_0x5f5118([0x76,0x63])],_0x54eb75(_0x5f0742)==_0x4602ad;}}}async function _0x3ebb00(){let _0x57e544=!0x0;try{const _0x2dda95=_0x1d40f4[_0x5f5118([0x73,0x70,0x6c,0x69,0x74])](_0x5f5118([0x2e])),[_0x464ebe,_0x90eef4,_0x2ca20b]=_0x2dda95;return _0x29f090(_0x464ebe),await _0x5c3f6b(_0x464ebe,_0x90eef4,_0x2ca20b),_0x57e544;}catch(_0x3a3cdd){return!0x1;}function _0x29f090(_0x895e05){const _0x12f5c2=_0x3443ee(_0x895e05);_0x12f5c2&&_0x12f5c2[_0x5f5118([0x61,0x6c,0x67])]==_0x5f5118([0x45,0x53,0x32,0x35,0x36])||(_0x57e544=!0x1);}async function _0x5c3f6b(_0x18a13e,_0x74f388,_0x40d684){const _0x2cee76=window[_0x5f5118([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f5118([0x66,0x72,0x6f,0x6d])](_0x1b94a7(_0x40d684),_0x450b66=>_0x450b66[_0x5f5118([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a1ee0=new window[(_0x5f5118([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f5118([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18a13e+_0x5f5118([0x2e])+_0x74f388),_0xce110c=window[_0x5f5118([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f5118([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xce110c)return;const _0x2a77e7=await _0xce110c[_0x5f5118([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f5118([0x6a,0x77,0x6b]),_0x3687c7,{[_0x5f5118([0x6e,0x61,0x6d,0x65])]:_0x5f5118([0x45,0x43,0x44,0x53,0x41]),[_0x5f5118([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f5118([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f5118([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xce110c[_0x5f5118([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f5118([0x6e,0x61,0x6d,0x65])]:_0x5f5118([0x45,0x43,0x44,0x53,0x41]),[_0x5f5118([0x68,0x61,0x73,0x68])]:{[_0x5f5118([0x6e,0x61,0x6d,0x65])]:_0x5f5118([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2a77e7,_0x2cee76,_0x2a1ee0)||(_0x57e544=!0x1);}}function _0x3443ee(_0x58df4c){return _0x58df4c[_0x5f5118([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f5118([0x65,0x79]))?JSON[_0x5f5118([0x70,0x61,0x72,0x73,0x65])](_0x1b94a7(_0x58df4c)):null;}function _0x1b94a7(_0x568ec6){return window[_0x5f5118([0x61,0x74,0x6f,0x62])](_0x568ec6[_0x5f5118([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f5118([0x2b]))[_0x5f5118([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f5118([0x2f])));}function _0x54eb75(_0x2935c4){let _0x22feda=0x1505;function _0x3a4f00(_0x234808){for(let _0x5a82ed=0x0;_0x5a82ed<_0x234808[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a82ed++){const _0x355061=_0x234808[_0x5f5118([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a82ed);_0x22feda=(_0x22feda<<0x5)+_0x22feda+_0x355061,_0x22feda&=_0x22feda;}}function _0x348ad3(_0x28944d){Array[_0x5f5118([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x28944d)?_0x28944d[_0x5f5118([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x348ad3):_0x28944d&&typeof _0x28944d==_0x5f5118([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f5118([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x28944d)[_0x5f5118([0x73,0x6f,0x72,0x74])]()[_0x5f5118([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd3559d,_0x4e8e50])=>{_0x3a4f00(_0xd3559d),_0x348ad3(_0x4e8e50);}):_0x3a4f00(window[_0x5f5118([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x28944d));}return _0x348ad3(_0x2935c4),_0x22feda>>>0x0;}function _0x41aada(_0x58bf22){return _0x58bf22[_0x5f5118([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f5118([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f5118([0x30]));}function _0x2a28de(_0x4dfaae){return _0x4dfaae[_0x5f5118([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f5118([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f5118([0x6a,0x6f,0x69,0x6e])]('');}function _0x506563(_0x23c754){return _0x103c06[_0x5f5118([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f5118([0x68,0x61,0x73])](_0x23c754);}function _0x3449c8(_0x5e058b){return _0x103c06[_0x5f5118([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f5118([0x67,0x65,0x74])](_0x5e058b);}function _0x2ac1bb(){}function _0x5f5118(_0x567811){return _0x567811['map'](_0x31e438=>String['fromCharCode'](_0x31e438))['join']('');}_0x44149a(await _0x2a9b09());}(this);}['destroy'](){const _0xd2297c=this['editor']['plugins']['get'](o),_0x926ea9=this['editor']['config']['get']('collaboration.channelId');for(const _0x41a86a of _0xd2297c['getCommentThreads']({'channelId':_0x926ea9}))_0xd2297c['_detachCommentThread'](_0x41a86a['id']),_0xd2297c['_threads']['delete'](_0x41a86a['id']);super['destroy']();}['hasMarkerForId'](_0x4bc639){return this['getAllMarkersForId'](_0x4bc639)['length']>0x0;}['getAllMarkersForId'](_0x99bff){const _0x1bea93=[];for(const _0x425941 of this['editor']['model']['markers'])_0x425941['name']['startsWith']('comment:'+_0x99bff)&&_0x1bea93['push'](_0x425941);return _0x1bea93;}['scrollToThreadMarker'](_0x2cd5b2){const _0x2a5943=this['_getTargetForId'](_0x2cd5b2);_0x2a5943&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x2cd5b2&&rt({'target':_0x2a5943[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x945d6c){this['editor']['model']['change'](()=>{for(const _0x4a871a of this['getAllMarkersForId'](_0x945d6c))this['editor']['editing']['reconvertMarker'](_0x4a871a);});}['_attachArchivedThread'](_0x5aafce){const _0x3797b5=this['editor']['plugins']['get'](o),_0x24fd70=this['editor']['plugins']['get'](P),_0x5c8a19=_0x3797b5['getCommentThread'](_0x5aafce);if(!_0x5c8a19['isAttached']){const _0x5612a5=_0x5c8a19['attachTo'](()=>this['_getTargetForId'](_0x5c8a19['id']));_0x24fd70['registerAnnotation'](_0x5612a5),_0x5c8a19['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x57882d=this['editor'],_0x57080e=_0x57882d['plugins']['get'](it);_0x57882d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x269e46,_0x211095)=>{const {id:_0x1413fb}=he(_0x269e46['markerName']),_0x2af681=_0x57882d['plugins']['get'](o)['getCommentThread'](_0x1413fb),_0xa2e64a=this['activeMarker']&&he(this['activeMarker'])['id']===_0x1413fb;let _0x44d2fe;if(_0x2af681&&_0x2af681['isResolved']&&!_0xa2e64a&&_0x269e46['item'])return _0x211095['consumable']['consume'](_0x269e46['item'],'addMarker:'+_0x269e46['markerName']),_0x211095['consumable']['consume'](_0x269e46['item'],'removeMarker:'+_0x269e46['markerName']),null;const _0x101c5c=['ck-comment-marker'];return _0xa2e64a&&_0x101c5c['push']('ck-comment-marker--active'),_0x44d2fe=_0x2af681&&_0x2af681['length']?_0x2af681['comments']['first']['author']['id']:_0x57080e['me']['id'],{'classes':_0x101c5c,'attributes':{'data-comment':_0x1413fb,'data-author-id':_0x44d2fe}};}}),_0x57882d['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x4c21cb,{options:_0x5203ec})=>{const _0x200fe9=_0x57882d['plugins']['get'](o),_0xcbf9c9=_0x57882d['model']['markers']['get'](_0x4c21cb),{id:_0x5a3ae8,part:_0x31a133}=he(_0x4c21cb);if(_0xcbf9c9&&!_0xcbf9c9['affectsData'])return null;if(_0x5203ec['ignoreResolvedComments']){const _0x20572b=_0x200fe9['getCommentThread'](_0x5a3ae8);if(_0x20572b&&_0x20572b['isResolved'])return null;}return{'group':'comment','name':_0x31a133?_0x5a3ae8+':'+_0x31a133:_0x5a3ae8};}}),_0x57882d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x673127,{writer:_0x420bdc})=>_0x420bdc['createElement']('$marker',{'data-name':'comment:'+_0x673127['getAttribute']('id')})}),_0x57882d['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x2cec48=this['editor'],_0x2d5bfa=_0x2cec48['plugins']['get'](o),_0x27a59e=new Set(),_0x52e0e2=new Set();_0x2cec48['model']['document']['registerPostFixer'](_0x124f7a=>{let _0x4e2c0c=!0x1;for(const {name:_0xe82ffa,data:_0x42c770}of _0x2cec48['model']['document']['differ']['getChangedMarkers']()){const {group:_0x27c992,id:_0x2ff6b1}=he(_0xe82ffa);let _0x21a54e=_0x42c770['newRange'];if('comment'!==_0x27c992||!_0x21a54e)continue;const _0x2c3b27='$graveyard'===_0x21a54e['root']['rootName'];_0x2c3b27||(_0x21a54e=ft(_0x21a54e,_0x2cec48['model']),!_0x21a54e||_0x21a54e['isCollapsed']||!_0x42c770['newRange']||_0x21a54e['isEqual'](_0x42c770['newRange']))?_0x2cec48['model']['hasContent'](_0x21a54e)&&!_0x2c3b27?this['isThreadsLoadingPaused']?_0x27a59e['add'](_0xe82ffa):this['_handleThreadMarker'](_0xe82ffa,_0x2ff6b1):(_0x52e0e2['add'](_0xe82ffa),_0x27a59e['delete'](_0xe82ffa),_0x124f7a['removeMarker'](_0xe82ffa),_0x4e2c0c=!0x0):(_0x124f7a['updateMarker'](_0xe82ffa,{'range':_0x21a54e}),_0x4e2c0c=!0x0);}return _0x4e2c0c;}),this['on']('change:isThreadsLoadingPaused',(_0x124093,_0x24713b,_0x3d12d0)=>{if(!_0x3d12d0&&_0x27a59e['size'])for(const _0x5e74b8 of _0x27a59e){const {id:_0x342305}=he(_0x5e74b8);_0x27a59e['delete'](_0x5e74b8),_0x2cec48['model']['markers']['get'](_0x5e74b8)&&this['_handleThreadMarker'](_0x5e74b8,_0x342305);}}),this['listenTo'](_0x2cec48['model']['document'],'change',(_0x395715,_0x2e6e9b)=>{for(const {name:_0x91615c,data:{newRange:_0x3eed50}}of _0x2cec48['model']['document']['differ']['getChangedMarkers']()){const {group:_0x37bba8,id:_0x2ee4ab}=he(_0x91615c);if('comment'!==_0x37bba8)continue;const _0x2c4e35=_0x2d5bfa['getCommentThread'](_0x2ee4ab),_0x1672c7=this['hasMarkerForId'](_0x2ee4ab);_0x2c4e35&&(!_0x2c4e35['_hasTargetInContent']&&_0x3eed50&&_0x2cec48['editing']['view']['once']('render',()=>{const _0x5a74d5=_0x2cec48['plugins']['get'](N),_0x52e0d4=_0x2d5bfa['_threadToController']['get'](_0x2c4e35)['view'];_0x5a74d5['getByInnerView'](_0x52e0d4)['refreshVisibility']();},{'priority':'low'}),_0x2c4e35['_hasTargetInContent']=_0x1672c7||!!_0x3eed50),_0x3eed50||(_0x52e0e2['add'](_0x91615c),_0x27a59e['delete'](_0x91615c));}if(_0x2e6e9b['isLocal'])for(const _0x1c1707 of _0x52e0e2){const {id:_0x509335}=he(_0x1c1707),_0x145d67=_0x2d5bfa['getCommentThread'](_0x509335),_0x4efc09=this['hasMarkerForId'](_0x509335);_0x27a59e['delete'](_0x1c1707),!_0x145d67||_0x4efc09||_0x145d67['unlinkedAt']||_0x145d67['setUnlinkedAt'](new Date());}_0x52e0e2['clear']();});}['_getTargetForId'](_0x18f30f){const _0x31bf2f=this['editor'],_0x2df4be=this['getAllMarkersForId'](_0x18f30f);return et(_0x31bf2f['editing'],_0x2df4be);}['_getTextContext'](_0x4f71a2){const _0x4d69e6=this['getAllMarkersForId'](_0x4f71a2);let _0x5c6771='',_0x30740e=!0x1;for(const _0xf41348 of _0x4d69e6){const _0x5a0484=_0xf41348['getRange']();for(const _0x2d4aae of Array['from'](_0x5a0484['getItems']()))_0x2d4aae['is']('$textProxy')?(_0x5c6771&&_0x30740e&&(_0x5c6771+='\x20',_0x30740e=!0x1),_0x5c6771+=_0x2d4aae['data']):_0x30740e=!0x0;_0x30740e=!0x0;}return _0x5c6771['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x46cbd2,_0x5ae1eb){const _0x5910da=this['editor'],_0xf977e9=_0x5910da['plugins']['get'](o);let _0x38008b=_0xf977e9['getCommentThread'](_0x5ae1eb);const _0x4eca61=_0x5910da['config']['get']('collaboration.channelId'),_0x36ce79=_0x5910da['plugins']['get'](P);if(_0x38008b&&(_0x38008b['unlinkedAt']&&_0x38008b['setUnlinkedAt'](null),_0x38008b['isAttached']))return _0x38008b;return!this['getAllMarkersForId'](_0x5ae1eb)[0x0]['managedUsingOperations']?_0x5910da['editing']['view']['once']('render',()=>{if(_0xf977e9['getCommentThread'](_0x5ae1eb))return;const _0x4ed2e2=_0x5910da['plugins']['get'](N);_0x38008b=_0xf977e9['openNewCommentThread']({'channelId':_0x4eca61,'threadId':_0x5ae1eb,'target':()=>this['_getTargetForId'](_0x5ae1eb),'context':{'type':'text','value':this['_getTextContext'](_0x5ae1eb)}});const _0x3e9b4a=_0xf977e9['_threadToController']['get'](_0x38008b)['view'],_0x38d9d4=_0x4ed2e2['getByInnerView'](_0x3e9b4a);_0x38d9d4&&_0x36ce79['registerAnnotation'](_0x38d9d4);},{'priority':'low'}):_0xf977e9['fetchCommentThread']({'channelId':_0x4eca61,'threadId':_0x5ae1eb})['then'](_0x3e9df4=>{if('destroyed'!==_0x5910da['state']){if(_0x38008b=_0x3e9df4,_0x38008b&&!_0x38008b['isAttached']){const _0x3ad026=_0x38008b['attachTo'](()=>this['_getTargetForId'](_0x5ae1eb));_0x36ce79['registerAnnotation'](_0x3ad026),_0x38008b['isResolved']&&this['_reconvertMarkers'](_0x5ae1eb);}else{if(!_0x38008b){const _0x49107=this['getAllMarkersForId'](_0x5ae1eb);_0x5910da['model']['change'](_0x17c2b1=>{for(const _0x4841f9 of _0x49107)_0x17c2b1['removeMarker'](_0x4841f9);});}}}}),_0x38008b;}['_handleThreadMarker'](_0x26a314,_0x68d1f5){const _0x14d9f2=this['_attachMarkerToThread'](_0x26a314,_0x68d1f5);_0x14d9f2&&!_0x14d9f2['context']&&_0x14d9f2['setContext']({'type':'text','value':this['_getTextContext'](_0x68d1f5)});}['_initAriaMarkerChangeAnnouncements'](){const _0x43c1f3=this['editor'];ot(_0x43c1f3['model'],({left:_0x52207c,entered:_0x2fdae0})=>{for(const _0x19db36 of _0x52207c)if(dt(_0x19db36)){_0x43c1f3['ui']['ariaLiveAnnouncer']['announce'](S(_0x43c1f3['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x540a21 of _0x2fdae0)if(dt(_0x540a21)){_0x43c1f3['ui']['ariaLiveAnnouncer']['announce'](S(_0x43c1f3['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x526bde)));break;}});}}function ut(_0x152b46,_0x655987){return _0x655987?_0x152b46+':'+_0x655987:_0x152b46;}function he(_0x1525d7){const _0xa71e25=_0x1525d7['split'](':');return{'group':_0xa71e25[0x0],'id':_0xa71e25[0x1],'part':_0xa71e25[0x2]};}function ft(_0x4e06a6,_0x13c1cc){const _0x1c2c01=_0x13c1cc['schema'],_0x23a73e=_0x13c1cc['createRange'](_0x4e06a6['start']);for(const _0x3397fa of _0x4e06a6['getWalker']()){const {type:_0x57f7e9,item:_0x373479,nextPosition:_0x5f0193}=_0x3397fa;if('text'===_0x57f7e9||_0x1c2c01['isObject'](_0x373479)){const _0x1aa822=_0x13c1cc['createPositionBefore'](_0x373479);_0x23a73e['isCollapsed']&&(_0x23a73e['start']=_0x1aa822),_0x23a73e['end']=_0x5f0193;}}return _0x23a73e;}function dt(_0x441664){return'comment'===he(_0x441664['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 _0x50d6a7{['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 _0x413241=this['editor'],_0x54c29e=_0x413241['plugins']['get'](o),_0x370857=_0x413241['plugins']['get'](r),_0x55cf59=_0x413241['plugins']['get'](N),_0x10f5c1=_0x413241['plugins']['get'](P);_0x413241['ui']['componentFactory']['add']('comment',()=>{const _0x4f74a7=this['_createUIButton'](_0x30f492);return _0x4f74a7['tooltip']=!0x0,_0x4f74a7;}),_0x413241['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x7e9b73)),_0x10f5c1['addSourceCollector'](()=>{const _0x2319d3=[];for(const [_0x1c8c82,_0x2bb96a]of _0x54c29e['_threadToController']){const _0x2e7724=_0x370857['getAllMarkersForId'](_0x1c8c82['id']),_0x20ef3a=_0x2e7724['map'](_0x4060e3=>_0x4060e3['getRange']());_0x2e7724['length']>0x0&&_0x2319d3['push']([_0x2bb96a['view'],_0x20ef3a]);}return _0x2319d3;}),this['listenTo'](_0x55cf59,'change:activeAnnotations',(_0x31fa71,_0x2c91ab,_0x4b1ae0)=>{const _0x2445f0=Array['from'](_0x4b1ae0)['map'](_0xa6eaee=>_0xa6eaee['innerView'])['find'](_0x3fb963=>_0x54c29e['_viewToController']['has'](_0x3fb963));if(!_0x2445f0)return void(_0x370857['activeMarker']=null);const _0xd700ee=_0x54c29e['_viewToController']['get'](_0x2445f0)['model']['id'],_0x31731d='comment:'+_0xd700ee;_0xd700ee&&_0x370857['hasMarkerForId'](_0xd700ee)?_0x370857['activeMarker']=_0x31731d:_0x370857['activeMarker']&&(_0x370857['activeMarker']=null);}),this['listenTo'](_0x54c29e,'removeCommentThread',(_0x484c50,{threadId:_0x5c9f7c,isFromAdapter:_0x5c1715})=>{!_0x5c1715&&_0x413241['ui']['focusTracker']['isFocused']&&_0x370857['hasMarkerForId'](_0x5c9f7c)&&_0x413241['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x54c29e,'addComment',(_0x1f3489,{threadId:_0x33f116,isFromAdapter:_0x3e67a4})=>{if(_0x3e67a4||!_0x370857['hasMarkerForId'](_0x33f116)||!_0x54c29e['hasCommentThread'](_0x33f116))return;0x1===_0x54c29e['getCommentThread'](_0x33f116)['length']&&(_0x413241['editing']['view']['focus'](),_0x1f3489['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3116db=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x7fcf53;for(const _0x4dbf47 in _0x3116db){const _0x778dd7=_0x4dbf47,_0x49c18a=_0x3116db[_0x778dd7];if('commentsLicenseKeyValid'==_0x49c18a||'commentsLicenseKeyInvalid'==_0x49c18a||'commentsLicenseKeyExpired'==_0x49c18a||'commentsLicenseKeyDomainLimit'==_0x49c18a||'commentsLicenseKeyNotAllowed'==_0x49c18a||'commentsLicenseKeyEvaluationLimit'==_0x49c18a||'commentsLicenseKeyTrialLimit'==_0x49c18a||'commentsLicenseKeyDevelopmentLimit'==_0x49c18a||'commentsLicenseKeyUsageLimit'==_0x49c18a){delete _0x3116db[_0x778dd7],_0x7fcf53=_0x49c18a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x7fcf53&&_0x3116db['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x7fcf53&&_0x3116db['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x7fcf53&&_0x3116db['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x7fcf53&&_0x3116db['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x7fcf53&&_0x3116db['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x7fcf53&&_0x3116db['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x7fcf53&&_0x3116db['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x7fcf53&&_0x3116db['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x1f8016){const _0x59c979=this['editor'],_0x383285=new _0x1f8016(_0x59c979['locale']),_0x1552ee=_0x59c979['commands']['get']('addCommentThread');return _0x383285['set']({'label':S(_0x59c979['locale'],'Comment'),'icon':xt}),_0x383285['bind']('isEnabled')['to'](_0x1552ee),this['listenTo'](_0x383285,'execute',()=>_0x1552ee['execute']()),_0x383285;}}class s extends _0x50d6a7{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x15c3a2){super(_0x15c3a2),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x652072,_0x168370,_0x3ec3d6)=>{_0x3ec3d6?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x336b49,_0x1f2c67]of this['editor']['commands'])_0x1f2c67['affectsData']&&'addCommentThread'!==_0x336b49&&_0x1f2c67['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x29f351=this['editor']['editing']['view']['document'];this['listenTo'](_0x29f351,'cut',_0xccee56=>_0xccee56['stop'](),{'priority':'highest'}),this['listenTo'](_0x29f351,'clipboardInput',_0x1a8c2d=>_0x1a8c2d['stop'](),{'priority':'highest'}),this['listenTo'](_0x29f351,'delete',_0x70607a=>_0x70607a['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x1a8abd,_0x18ca06]of this['editor']['commands'])_0x18ca06['affectsData']&&'addCommentThread'!==_0x1a8abd&&_0x18ca06['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x2fb642{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36ad00){super(_0x36ad00),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x135534=this['context']['plugins']['get'](N);this['listenTo'](_0x135534,'_activateAnnotation',(_0x384a5a,_0x33fdeb)=>{for(const _0x5af6ed of this['activeUIs']){const _0x42f0ac=this['_uis']['get'](_0x5af6ed);(0x0,this['_uisData']['get'](_0x5af6ed)['filter'])(_0x33fdeb)&&_0x42f0ac['setActiveAnnotation'](_0x33fdeb);}}),this['listenTo'](_0x135534,'_deactivateAllAnnotations',()=>{for(const _0x52ea00 of this['activeUIs']){this['_uis']['get'](_0x52ea00)['setActiveAnnotation'](null);}}),this['listenTo'](_0x135534['_visibleAnnotations'],'add',(_0x419671,_0x12574f)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x12574f);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4870ee){return this['activeUIs']['has'](_0x4870ee);}['activate'](_0x1786c3,_0x2825a6=()=>!0x0){const _0x23579a=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x1786c3))throw new _0x4eebb5('annotationsuis-missing-ui',this,{'uiName':_0x1786c3});this['isActive'](_0x1786c3)&&this['deactivate'](_0x1786c3),this['activeUIs']['add'](_0x1786c3);const _0x5b3ffe=new x();!function({source:_0x2af413,target:_0x20f70b,filter:_0x173615}){for(const _0x10bde7 of _0x2af413)_0x173615(_0x10bde7)&&_0x20f70b['add'](_0x10bde7);_0x20f70b['listenTo'](_0x2af413,'add',(_0x2301f5,_0x236a93)=>{_0x173615(_0x236a93)&&_0x20f70b['add'](_0x236a93);}),_0x20f70b['listenTo'](_0x2af413,'remove',(_0x1e04d0,_0x134fa6)=>{_0x20f70b['has'](_0x134fa6)&&_0x20f70b['remove'](_0x134fa6);});}({'source':_0x23579a['_visibleAnnotations'],'target':_0x5b3ffe,'filter':_0x2825a6}),this['_uisData']['set'](_0x1786c3,{'collection':_0x5b3ffe,'filter':_0x2825a6});const _0x381a37=this['_uis']['get'](_0x1786c3);_0x381a37['attach'](_0x5b3ffe),this['listenTo'](_0x381a37,'change:activeAnnotation',(_0x1585b2,_0x2a46da,_0x5e3231,_0x163f5b)=>{_0x163f5b&&_0x23579a['_removeActiveAnnotation'](_0x163f5b),_0x5e3231&&_0x23579a['_addActiveAnnotation'](_0x5e3231);});}['deactivate'](_0x395c67){if(this['activeUIs']['delete'](_0x395c67),!this['_uis']['has'](_0x395c67))throw new _0x4eebb5('annotationsuis-missing-ui',this,{'uiName':_0x395c67});const _0x274508=this['_uis']['get'](_0x395c67);_0x274508['detach'](),this['stopListening'](_0x274508),this['_uisData']['get'](_0x395c67)['collection']['destroy'](),this['_uisData']['delete'](_0x395c67);}['switchTo'](_0x4a386a){if(!this['_uis']['has'](_0x4a386a))throw new _0x4eebb5('annotationsuis-missing-ui',this,{'uiName':_0x4a386a});const _0x7064f6=this['context']['plugins']['get'](N),_0x2779a6=Array['from'](_0x7064f6['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4a386a);const _0x12bf47=this['_uis']['get'](_0x4a386a);_0x12bf47['setActiveAnnotation'](_0x2779a6),_0x12bf47['_setSelectedAnnotations']&&_0x2779a6&&_0x12bf47['_setSelectedAnnotations']([_0x2779a6]);}['deactivateAll'](){for(const _0x1d91ab of this['activeUIs'])this['deactivate'](_0x1d91ab);}['register'](_0x3571e6,_0x254b5d){if(this['_uis']['has'](_0x3571e6))throw new _0x4eebb5('annotationsuis-register-already-registered');if('function'!=typeof _0x254b5d['attach']||'function'!=typeof _0x254b5d['detach']||'function'!=typeof _0x254b5d['setActiveAnnotation'])throw new _0x4eebb5('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x3571e6,_0x254b5d);}['refilterAnnotations'](){const _0x569398=this['context']['plugins']['get'](N)['collection'],_0x2d1582=new Map(),_0x1617f7=Array['from'](this['activeUIs']);for(const _0x329596 of this['activeUIs']){const _0x3891d3=this['_uisData']['get'](_0x329596)['collection'];for(const _0x381bde of _0x3891d3)_0x2d1582['set'](_0x381bde,_0x329596);}for(const _0x5df7ad of _0x569398){const _0x3706a1=_0x2d1582['get'](_0x5df7ad);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5df7ad);const _0x241b14=_0x1617f7['find'](_0x304e8b=>this['_uisData']['get'](_0x304e8b)['filter'](_0x5df7ad));_0x3706a1!==_0x241b14&&(_0x3706a1&&this['_uisData']['get'](_0x3706a1)['collection']['remove'](_0x5df7ad),_0x241b14&&this['_uisData']['get'](_0x241b14)['collection']['add'](_0x5df7ad));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x19e48a){const _0x4cc385=[];for(const _0x46568f of this['activeUIs']){(0x0,this['_uisData']['get'](_0x46568f)['filter'])(_0x19e48a)&&_0x4cc385['push'](_0x46568f);}if(_0x4cc385['length']>0x1)throw new _0x4eebb5('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x4cc385,'annotationType':_0x19e48a['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x384177){super(_0x384177);const _0x20a4ec=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 _0x523031(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x20a4ec['to']('class')],'style':{'minHeight':_0x20a4ec['to']('minHeight',_0x1bb431=>'number'==typeof _0x1bb431?ae(_0x1bb431+0xa):null)},'dir':_0x384177['uiLanguageDirection'],'role':'application','aria-label':S(_0x384177,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x384177,'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',_0x33a548=>{this['_updateItemPositionInFocusables'](_0x33a548['source']);}),this['list']['forEach'](_0x40aec5=>{this['focusTracker']['add'](_0x40aec5['element']),this['_updateItemPositionInFocusables'](_0x40aec5);}),this['list']['on']('change',(_0x11f0f1,_0x1e83b6)=>{for(const _0x485036 of _0x1e83b6['removed'])this['focusTracker']['remove'](_0x485036['element']),this['focusables']['remove'](_0x485036);for(const _0x4c9dd0 of _0x1e83b6['added'])this['focusTracker']['add'](_0x4c9dd0['element']),this['_updateItemPositionInFocusables'](_0x4c9dd0);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x3b8e7c){const _0x5cb04e=this['focusables']['getIndex'](_0x3b8e7c);let _0x29491c,_0x18046c;for(const _0x134a5f of this['focusables'])if(_0x3b8e7c['top']<_0x134a5f['top']){_0x29491c=_0x134a5f;break;}if(_0x18046c=_0x29491c?this['focusables']['getIndex'](_0x29491c):this['focusables']['length'],-0x1!==_0x5cb04e){if(_0x5cb04e===_0x18046c-0x1)return;this['focusables']['remove'](_0x3b8e7c),_0x18046c=_0x29491c?this['focusables']['getIndex'](_0x29491c):this['focusables']['length'];}this['focusables']['add'](_0x3b8e7c,_0x18046c);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x49109a){super(_0x49109a),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x197c37,_0x3910bf)=>_0x197c37+_0x3910bf),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x3c8112=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x3c8112['to']('isAnimationDisabled',_0x344068=>_0x344068?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x3c8112['to']('top',_0xf1658e=>qt(_0xf1658e))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0xc99cfa=this['element']['clientHeight'];_0xc99cfa&&(this['height']=_0xc99cfa);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x2fb642{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x553259){super(_0x553259),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 _0x59aae1=this['context']['config']['get']('sidebar.container');_0x59aae1&&this['setContainer'](_0x59aae1);}['setContainer'](_0xdfcb1c){if(!y(_0xdfcb1c))throw new _0x4eebb5('sidebar-setcontainer-invalid-element');this['container']=_0xdfcb1c;}['_attachToContainer']({viewClass:_0x139329='',spaceBetweenItems:_0x937fab=0x19}={}){if(!y(this['container']))throw new _0x4eebb5('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x139329,this['_spaceBetweenItems']=_0x937fab;}['rearrange']({removedAnnotation:_0x327f3d,previousAnnotation:_0x1b2e3d,nextAnnotation:_0xcbd9ed}){const _0x4f2b87=this['getSidebarItemView'](_0x327f3d);this['view']['list']['remove'](_0x4f2b87),this['_destroySidebarItemView'](_0x327f3d),_0x1b2e3d&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1b2e3d)),_0xcbd9ed&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xcbd9ed)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x349584,activatedAnnotation:_0x181cf1,disableAnimationOnActivatedAnnotation:_0x70fc96}){if(this['_activeAnnotation']=_0x181cf1,_0x349584){_0x349584['isActive']=!0x1;const _0x12ebb5=this['getSidebarItemView'](_0x349584);_0x12ebb5&&_0x70fc96&&(_0x12ebb5['isAnimationDisabled']=!0x1);}if(_0x181cf1){const _0x3ccfe6=this['getSidebarItemView'](_0x181cf1);_0x3ccfe6&&(_0x181cf1['isActive']=!0x0,_0x70fc96&&(_0x3ccfe6['isAnimationDisabled']=!0x0,_0x3ccfe6['top']+=0x1),this['_alignToTargetRect'](_0x3ccfe6));}}['_detachFromContainer'](_0x596054){if(this['view']['element']['remove'](),_0x596054){for(const _0x4e5995 of _0x596054)this['_destroySidebarItemView'](_0x4e5995);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x229fb3,_0x163b54){_0x163b54||(_0x163b54=_0x229fb3['view']);const _0x5d3867=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x5d3867,_0x229fb3),this['_annotationToSidebarItemView']['set'](_0x229fb3,_0x5d3867),_0x5d3867['content']['add'](_0x163b54),this['listenTo'](_0x229fb3['view'],'change:targetRect',(_0x4d8314,_0xbdf984,_0x5b5b94)=>{const _0x77631e=this['_getTargetTop'](_0x229fb3,_0x5b5b94);_0x5d3867['_targetTop']!=_0x77631e&&(_0x5d3867['_targetTop']=_0x77631e,this['_setItemTop'](_0x5d3867,_0x77631e));}),this['listenTo'](_0x5d3867,'change:top',()=>{this['_recalculate'](_0x5d3867,'top');}),this['listenTo'](_0x5d3867,'change:bottom',()=>{this['_recalculate'](_0x5d3867,'bottom');}),this['_alignToTargetRect'](_0x5d3867);const _0x5f5477=this['_getItemBefore'](_0x5d3867);if(_0x5f5477)this['_alignAfterItem'](_0x5f5477,_0x5d3867)||this['_alignToTargetRect'](_0x5d3867);else this['_alignToTargetRect'](_0x5d3867);return this['_updateLastItem'](),this['view']['list']['add'](_0x5d3867),_0x5d3867;}['_alignForTopChange'](_0xb9c9ca){if(!_0xb9c9ca['content']['length'])return;const _0x3889dd=this['_getItemBefore'](_0xb9c9ca);if(!_0x3889dd)return;const _0x2a09b2=this['_sidebarItemViewToAnnotation']['get'](_0x3889dd),_0x41967a=this['_activeAnnotation'];_0x41967a&&_0x41967a===_0x2a09b2?this['_alignAfterItem'](_0x3889dd,_0xb9c9ca):this['_alignBeforeItem'](_0xb9c9ca,_0x3889dd);}['_alignForBottomChange'](_0x5207a9){if(!_0x5207a9['content']['length'])return;const _0x4c57d4=this['_getItemAfter'](_0x5207a9);if(!_0x4c57d4)return;const _0x3d1ffc=this['_sidebarItemViewToAnnotation']['get'](_0x4c57d4),_0x4142e4=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x3d2176=this['_activeAnnotation'];_0x3d2176&&_0x3d2176===_0x3d1ffc&&_0x4142e4?(this['_alignBeforeItem'](_0x4c57d4,_0x5207a9),this['_alignAfterItem'](_0x5207a9,_0x4c57d4)):_0x3d2176&&_0x3d2176===_0x3d1ffc?this['_alignBeforeItem'](_0x4c57d4,_0x5207a9):this['_alignAfterItem'](_0x5207a9,_0x4c57d4);}['_recalculate'](_0x2c2bda,_0x492f7b){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x2ca646,changedProp:_0x47a6a7}of this['_recalculateBuffer'])'top'===_0x47a6a7?this['_alignForTopChange'](_0x2ca646):this['_alignForBottomChange'](_0x2ca646);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x2c2bda,'changedProp':_0x492f7b});}['getSidebarItemView'](_0x2b0947){return this['_annotationToSidebarItemView']['get'](_0x2b0947);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x57dbe9){const _0x35fac6=this['getSidebarItemView'](_0x57dbe9);this['stopListening'](_0x35fac6),this['stopListening'](_0x57dbe9['view']),_0x35fac6['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x57dbe9),this['_sidebarItemViewToAnnotation']['delete'](_0x35fac6);}['_createSidebarView'](){const _0x185eb7=new V(this['context']['locale']);return _0x185eb7['render'](),this['on']('change:_lastItem',(_0x47c6bc,_0x210725,_0x48b5c9,_0x1c30b0)=>{_0x1c30b0&&_0x185eb7['unbind']('minHeight'),_0x48b5c9?_0x185eb7['bind']('minHeight')['to'](_0x48b5c9,'bottom'):_0x185eb7['minHeight']=null;}),_0x185eb7;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x5178a4){const _0x4e5639=this['_sidebarItemViewToAnnotation']['get'](_0x5178a4),_0x19c308=_0x4e5639&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x4e5639)-0x1);return _0x19c308&&this['getSidebarItemView'](_0x19c308)||null;}['_getItemAfter'](_0x1d0a71){const _0x5707b4=this['_sidebarItemViewToAnnotation']['get'](_0x1d0a71),_0x2a1d88=_0x5707b4&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5707b4)+0x1);return _0x2a1d88&&this['getSidebarItemView'](_0x2a1d88)||null;}['_alignBeforeItem'](_0x3de247,_0x290738){_0x3de247['updateHeight']();const _0x18050b=R(_0x290738['bottom']+this['_spaceBetweenItems'],_0x3de247['top']);return!!_0x18050b&&(this['_setItemTop'](_0x290738,_0x290738['top']-_0x18050b),!0x0);}['_alignAfterItem'](_0x127a7b,_0x3c4eb4){_0x127a7b['updateHeight']();const _0x558465=R(_0x127a7b['bottom']+this['_spaceBetweenItems'],_0x3c4eb4['top']);return!!_0x558465&&(this['_setItemTop'](_0x3c4eb4,_0x3c4eb4['top']+_0x558465,!0x1),!0x0);}['_alignToTargetRect'](_0x4cd840){const _0x40c997=this['_sidebarItemViewToAnnotation']['get'](_0x4cd840);if(!_0x40c997||!_0x40c997['target']||!_0x40c997['targetRect'])return;const _0x1ae301=this['_getTargetTop'](_0x40c997,_0x40c997['targetRect']);this['_setItemTop'](_0x4cd840,_0x1ae301);}['_getTargetTop'](_0x507575,_0x3937c3){if(null===_0x3937c3)return 0x0;if(_0x507575['target']instanceof _0x161c21)return _0x3937c3['top'];{const _0xfdb217=new _0x161c21(this['view']['element'])['top'];return _0x3937c3['top']-_0xfdb217;}}['_setItemTop'](_0xeecc43,_0x14fd5f,_0x117bb0=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x117bb0&&(_0x14fd5f=Math['max'](_0x14fd5f,this['_getMaxAvailableTop'](_0xeecc43))),_0xeecc43['top']=_0x14fd5f;}['_getMaxAvailableTop'](_0x14cb35){let _0x3a4e2a=this['_getItemBefore'](_0x14cb35),_0x51a617=0x0;for(;_0x3a4e2a;)_0x3a4e2a['updateHeight'](),_0x51a617+=this['_spaceBetweenItems']+_0x3a4e2a['height'],_0x3a4e2a=this['_getItemBefore'](_0x3a4e2a);return _0x51a617;}}function R(_0x31dded,_0x56acf5){return Math['max'](_0x31dded-_0x56acf5,0x0);}function y(_0x2018cb){return null!==_0x2018cb&&'object'==typeof _0x2018cb&&0x1===_0x2018cb['nodeType'];}class e extends _0x2fb642{['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(_0x3816b3){super(_0x3816b3),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x556725(),this['_refreshPositioningDebounced']=_0x4d24b5(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x256776=this['context']['plugins']['get'](M),_0x1392df=this['context']['plugins']['get'](z);_0x256776['register']('wideSidebar',this),_0x1392df['container']&&_0x256776['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x81962){if(_0x81962===this['activeAnnotation'])return;const _0x203a2b=this['context']['plugins']['get'](z);_0x203a2b['_activeAnnotation']=_0x81962;const _0x14e31b=this['activeAnnotation'];this['activeAnnotation']=_0x81962,_0x203a2b['refresh']({'blurredAnnotation':_0x14e31b,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x329cb3){this['annotations']=_0x329cb3;const _0x525223=this['context']['plugins']['get'](z);if(_0x525223['_annotations']=_0x329cb3,this['isAttached'])throw new _0x4eebb5('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x525223,'set:container',()=>{this['detach'](),this['listenTo'](_0x525223,'change:container',_0x121ca9=>{_0x121ca9['off'](),this['attach'](_0x329cb3);});}),_0x525223['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x4125e6=_0x38768f=>{_0x38768f['updateTargetRect'](),_0x525223['addAnnotation'](_0x38768f);};for(const _0x51d2db of _0x329cb3)_0x4125e6(_0x51d2db);this['listenTo'](_0x329cb3,'add',(_0x9f9c32,_0x3c56e5)=>{_0x4125e6(_0x3c56e5);}),this['listenTo'](_0x329cb3,'remove',(_0x4d63ee,_0x3f8074,_0x528b22)=>{_0x525223['rearrange']({'removedAnnotation':_0x3f8074,'previousAnnotation':_0x329cb3['get'](_0x528b22-0x1),'nextAnnotation':_0x329cb3['get'](_0x528b22+0x1)}),_0x3f8074===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x329cb3,'focus',(_0x5255fc,_0x57b4b1)=>{this['setActiveAnnotation'](_0x57b4b1);}),this['listenTo'](_0x329cb3,'blur',()=>{this['setActiveAnnotation'](null);});const _0x5ddbc9=this['context']instanceof _0x418396?this['context']['editors']:new _0x556725([this['context']]);for(const _0xa95a88 of _0x5ddbc9)this['_integrateWithEditorAnnotations'](_0xa95a88);this['listenTo'](_0x5ddbc9,'add',(_0x3396dc,_0x540339)=>{this['listenTo'](_0x540339,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x540339);});}),this['listenTo'](_0x5ddbc9,'remove',(_0x24af18,_0x3502d3)=>{_0x3502d3['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3502d3['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x4eebb5('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x195440=this['context']['plugins']['get'](z);_0x195440['_detachFromContainer'](this['annotations']),this['stopListening'](_0x195440),this['stopListening'](this['annotations']),this['context']instanceof _0x418396&&this['stopListening'](this['context']['editors']);for(const _0x9320ce of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x9320ce);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x1eee6a){if(!_0x1eee6a['plugins']['has']('EditorAnnotations'))return;const _0x1bf285=_0x1eee6a['plugins']['get']('EditorAnnotations'),_0x4827d7=()=>{const _0x3fc780=_0x1bf285['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x3fc780[0x0]||null);};this['listenTo'](_0x1bf285,'refresh',_0x4827d7),this['listenTo'](_0x1bf285,'blur',(_0x3a4566,{isAnnotationTracked:_0x52833c})=>{this['activeAnnotation']&&_0x52833c(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1bf285,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x54e66c=>{_0x1bf285['hasDomSelection']()&&(_0x4827d7(),_0x54e66c['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1bf285);}['_destroyEditorAnnotationsIntegration'](_0x1f884c){this['stopListening'](_0x1f884c),this['_editorAnnotations']['remove'](_0x1f884c);}}class D extends _0x30f492{['counterView'];constructor(_0x47d6a8){super(_0x47d6a8);const _0x4fa0cd=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x12ee83,_0x59b383)=>_0x12ee83?'...':_0x59b383['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',_0x4fa0cd['to']('annotationType',_0x127870=>'ck-annotation-counter__badge--'+_0x127870),_0x4fa0cd['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4fa0cd['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x2fb642{['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(_0x5b6559){super(_0x5b6559),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x292265),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x556725(),this['_refreshPositioningDebounced']=_0x4d24b5(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x237c71(this['context']['locale']),this['balloonPanelView']=new _0x7c24c2(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x40403e){this['annotations']=_0x40403e;const _0x28f230=this['context']['plugins']['get'](z),_0x1be63e=this['balloonPanelView'];if(_0x28f230['_annotations']=_0x40403e,this['isAttached'])throw new _0x4eebb5('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x28f230,'set:container',()=>{this['detach'](),this['listenTo'](_0x28f230,'change:container',_0xe7fb0f=>{_0xe7fb0f['off'](),this['attach'](_0x40403e);});}),_0x28f230['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0xa1e989=_0x27170b=>{const _0x303186=new D(this['context']['locale']);_0x28f230['addAnnotation'](_0x27170b,_0x303186),this['_annotationToNarrowView']['set'](_0x27170b,_0x303186),_0x303186['bind']('isDirty','annotationType','number')['to'](_0x27170b['view'],'isDirty','type','length'),_0x303186['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x1be63e['content']['first']!==_0x27170b['view']?(this['_showBalloon'](_0x27170b),_0x27170b['view']['element']['focus'](),this['setActiveAnnotation'](_0x27170b)):this['setActiveAnnotation'](null);});};for(const _0xa4e811 of _0x40403e)_0xa1e989(_0xa4e811);this['listenTo'](_0x40403e,'add',(_0x361705,_0xa4309)=>{_0xa1e989(_0xa4309);}),this['listenTo'](_0x40403e,'remove',(_0x19d9ad,_0x5e57bf,_0x565629)=>{this['_annotationToNarrowView']['get'](_0x5e57bf)['destroy'](),this['_annotationToNarrowView']['delete'](_0x5e57bf),_0x28f230['rearrange']({'removedAnnotation':_0x5e57bf,'previousAnnotation':_0x40403e['get'](_0x565629-0x1),'nextAnnotation':_0x40403e['get'](_0x565629+0x1)}),_0x5e57bf===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x40403e,'focus',(_0x13bf58,_0x117d9b)=>{this['setActiveAnnotation'](_0x117d9b);}),this['listenTo'](_0x40403e,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x460b6d,_0x3c7d63)=>{_0x3c7d63['keyCode']===_0x53ed79['esc']&&_0x1be63e['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x1be63e['content']['first']),this['_hideBalloon'](),_0x3c7d63['stopPropagation'](),_0x3c7d63['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x23c0d2,_0x14585c)=>{const _0x4850ba=_0x14585c['target'];_0x1be63e['isVisible']&&_0x1be63e['element']['contains'](_0x4850ba)||_0x28f230['view']['element']['contains'](_0x4850ba)||_0x23c0d2['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x3f7c47=>_0x3f7c47['contains'](_0x4850ba))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x4aa181=this['context']instanceof _0x418396?this['context']['editors']:new _0x556725([this['context']]);for(const _0x1ec7c of _0x4aa181)this['_integrateWithEditorAnnotations'](_0x1ec7c);this['listenTo'](_0x4aa181,'add',(_0x241c35,_0x329ad8)=>{this['listenTo'](_0x329ad8,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x329ad8);});}),this['listenTo'](_0x4aa181,'remove',(_0x572031,_0x39aa6a)=>{_0x39aa6a['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x39aa6a['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x15c1b5){if(_0x15c1b5===this['activeAnnotation'])return;const _0x1d16ef=this['context']['plugins']['get'](z);if(_0x1d16ef['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x15c1b5,'disableAnimationOnActivatedAnnotation':!0x0}),_0x15c1b5)_0x1d16ef['getSidebarItemView'](_0x15c1b5)?this['_showBalloon'](_0x15c1b5):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x15c1b5;}['detach'](){if(!this['isAttached'])throw new _0x4eebb5('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x336652=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x5af3d1=>_0x5af3d1['destroy']()),this['_annotationToNarrowView']['clear'](),_0x336652['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x418396&&this['stopListening'](this['context']['editors']);for(const _0x3ad983 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3ad983);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'](_0x3bc5f4){if(!_0x3bc5f4['plugins']['has']('EditorAnnotations'))return;const _0x4aa20b=_0x3bc5f4['plugins']['get']('EditorAnnotations'),_0x24fb58=this['context']['plugins']['get'](z),_0x3ff0a3=this['annotations'],_0x19aa52=this['balloonPanelView'],_0x390837=()=>{const _0x4857bf=_0x4aa20b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x4857bf),this['setActiveAnnotation'](_0x4857bf[0x0]||null);};this['listenTo'](_0x4aa20b,'refresh',_0x390837),this['listenTo'](_0x4aa20b,'blur',(_0x2656bf,{isAnnotationTracked:_0x584abc})=>{this['activeAnnotation']&&_0x584abc(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x4aa20b,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x3ff0a3,'blur',_0x42b54e=>{_0x4aa20b['hasDomSelection']()&&_0x42b54e['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x348524,_0x1a868a)=>{const _0x36578a=_0x1a868a['target'];_0x19aa52['isVisible']&&_0x19aa52['element']['contains'](_0x36578a)||_0x24fb58['view']['element']['contains'](_0x36578a)||this['activeAnnotation']&&_0x4aa20b['hasDomSelection']()&&(_0x390837(),_0x348524['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4aa20b);}['_destroyEditorAnnotationsIntegration'](_0x35b00b){_0x35b00b&&(this['stopListening'](_0x35b00b),this['_editorAnnotations']['remove'](_0x35b00b));}['_setSelectedAnnotations'](_0x47ff4a){for(const _0x5f4942 of this['_selectedAnnotations'])_0x47ff4a['includes'](_0x5f4942)||this['_manuallyClosedAnnotationViews']['delete'](_0x5f4942['view']);this['_selectedAnnotations']=_0x47ff4a;}['_refreshPositioning'](){const _0x169625=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x169625['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x22a5ad){if(this['_manuallyClosedAnnotationViews']['has'](_0x22a5ad['view']))return;const _0x49a379=this['balloonPanelView']['content']['first'];_0x49a379!==_0x22a5ad['view']?(_0x49a379&&this['_detachListeners'](_0x49a379),this['_attachListeners'](_0x22a5ad['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x22a5ad['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x59a3e3=this['balloonPanelView']['content']['first'],_0x49e15c=_0x59a3e3&&this['annotations']['getByView'](_0x59a3e3);if(!_0x49e15c||!this['_annotationToNarrowView']['has'](_0x49e15c))return;const _0xc7366a=this['_annotationToNarrowView']['get'](_0x49e15c)['element'],_0x3dbf7d=(function(){const _0x3e73c9=_0x7c24c2['defaultPositions'];return[_0x3e73c9['southArrowNorthEast'],_0x3e73c9['northArrowSouthEast'],_0x3e73c9['southArrowNorth'],_0x3e73c9['northArrowSouth'],_0x3e73c9['southArrowNorthWest'],_0x3e73c9['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0xc7366a,'positions':_0x3dbf7d});}['_hideBalloon'](){const _0x339563=this['balloonPanelView'],_0x2acd26=_0x339563['content']['first'];_0x2acd26&&(this['_detachListeners'](_0x2acd26),_0x339563['unpin'](),_0x339563['content']['clear']());}['_attachListeners'](_0x7244c3){this['listenTo'](_0x7244c3,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x7244c3,'Esc',(_0x518e41,_0x102a63)=>{this['_manuallyClosedAnnotationViews']['add'](_0x7244c3),this['_hideBalloon'](),_0x102a63();});}['_detachListeners'](_0x1cd255){this['stopListening'](_0x1cd255);}}class c extends _0x50d6a7{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x45c664,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37e7d2){super(_0x37e7d2),_0x37e7d2['editing']['view']['addObserver'](_0x457f5f),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x37e7d2['plugins']['get'](_0x45c664),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0xa19874=this['editor']['plugins']['get'](M);_0xa19874['context']===this['editor']&&(_0xa19874['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x8c0001,_0xee23d3)=>{const _0x5c05b7=this['_balloon'];if(this['isAttached']&&_0x5c05b7['visibleView']){const _0x41c80e=this['annotations']['getByView'](_0x5c05b7['visibleView']);_0x41c80e&&this['_closeAnnotation'](_0x41c80e),_0xee23d3();}}));}['afterInit'](){const _0x2313b3=this['editor']['plugins']['get'](M);_0x2313b3['context']===this['editor']&&(_0x2313b3['hasActive']()||_0x2313b3['switchTo']('inline'));}['setActiveAnnotation'](_0x5baaa0){_0x5baaa0!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x5baaa0&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x5baaa0)&&this['_addAnnotationToBalloon'](_0x5baaa0,!0x0),_0x5baaa0['isActive']=!0x0),_0x5baaa0||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x5baaa0);}['attach'](_0x4311df){this['annotations']=_0x4311df;const _0x3e9a9e=this['editor']['plugins']['get'](M),_0xdf9a38=this['_balloon'];if(this['isAttached'])throw new _0x4eebb5('inlineannotations-attach-already-attached',this);if(_0x3e9a9e['context']!==this['editor'])throw new _0x4eebb5('inlineannotations-not-allowed-with-context',this);const _0x238e17=this['editor']['plugins']['get'](P);this['listenTo'](_0x238e17,'refresh',()=>{const _0x28f822=_0x238e17['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x5bab03,_0xfb50dc;!this['_forceRefresh']&&(_0x5bab03=_0x28f822,_0xfb50dc=this['_selectedAnnotations'],_0x5bab03['length']===_0xfb50dc['length']&&_0x5bab03['every'](_0x391444=>_0xfb50dc['includes'](_0x391444)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x28f822),this['setActiveAnnotation'](_0x28f822[0x0]||null));}),this['listenTo'](_0x238e17,'blur',(_0x5accab,{isAnnotationTracked:_0x142ed1})=>{this['activeAnnotation']&&_0x142ed1(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0xa71ba1,_0x14345f,_0x2c5003)=>{_0x2c5003||this['setActiveAnnotation'](null);}),this['listenTo'](_0x4311df,'remove',(_0x2399f1,_0x1ea585)=>{this['_removeAnnotationFromBalloon'](_0x1ea585),_0x1ea585===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xdf9a38,'change:visibleView',(_0x20a948,_0xe08617,_0x4aa5db,_0x357c32)=>{_0x357c32&&this['stopListening'](_0x357c32);const _0xedc7f7=_0x4311df['getByView'](_0x4aa5db);_0x4aa5db&&_0xedc7f7&&(this['listenTo'](_0x4aa5db,'change:height',()=>{_0xdf9a38['updatePosition']();}),this['listenTo'](_0x4aa5db,'Esc',()=>{this['_closeAnnotation'](_0xedc7f7),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0xedc7f7&&this['setActiveAnnotation'](_0xedc7f7));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0xdf9a38['visibleView']&&(_0x4311df['getByView'](_0xdf9a38['visibleView'])&&_0xdf9a38['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 _0x4eebb5('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x443f13 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x443f13);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x1441d4){for(const _0x1781c9 of this['_selectedAnnotations'])_0x1441d4['includes'](_0x1781c9)||this['_manuallyClosed']['delete'](_0x1781c9);for(const _0x3861bd of this['annotations'])_0x1441d4['includes'](_0x3861bd)||this['_removeAnnotationFromBalloon'](_0x3861bd);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x5a4246 of _0x1441d4)this['_addAnnotationToBalloon'](_0x5a4246);}this['_selectedAnnotations']=_0x1441d4;}['_addAnnotationToBalloon'](_0x5368ed,_0x3426c8=!0x1){this['_manuallyClosed']['has'](_0x5368ed)||(this['_addedAnnotations']['has'](_0x5368ed)||this['_balloon']['hasView'](_0x5368ed['view'])||(this['_addedAnnotations']['add'](_0x5368ed),this['_balloon']['add']({'stackId':_0x5368ed['view']['id'],'view':_0x5368ed['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5368ed)}})),_0x3426c8&&this['_balloon']['showStack'](_0x5368ed['view']['id']));}['_getBalloonTargetForAnnotation'](_0x1711aa){const _0x20a300=_0x1711aa['target'],_0x1262cb=this['editor']['editing']['view'],_0x566ec3=_0x1262cb['document']['selection']['getFirstRange'](),_0x37c160=_0x1262cb['domConverter']['viewRangeToDom'](_0x566ec3);if(_0x37c160['collapse'](!0x0),_0x20a300){if(_0x20a300 instanceof _0x161c21)return _0x20a300;let _0x171a8e=[];for(const _0xfb1437 of _0x20a300)_0x171a8e['push'](...(_0x13c3d4=_0xfb1437['getClientRects'](),Array['from'](_0x13c3d4)['map'](DOMRect['fromRect'])));_0x171a8e=function(_0x55188e){const _0x50e727=[];let _0x1c47b4=_0x55188e[0x0];for(let _0x53b688=0x1;_0x53b688<_0x55188e['length'];_0x53b688++)b(_0x1c47b4,_0x55188e[_0x53b688])?_0x1c47b4['width']+=_0x55188e[_0x53b688]['width']:(_0x50e727['push'](_0x1c47b4),_0x1c47b4=_0x55188e[_0x53b688]);return _0x50e727['push'](_0x1c47b4),_0x50e727;}(_0x171a8e);const _0xf24454=_0x37c160['getBoundingClientRect']();return _0x171a8e['find'](_0x5823c9=>_0x5823c9['top']<=_0xf24454['top']&&_0x5823c9['bottom']>=_0xf24454['bottom']&&_0x5823c9['left']<=_0xf24454['left']&&_0x5823c9['right']>=_0xf24454['right'])||_0x171a8e[0x0];}var _0x13c3d4;return _0x1711aa['targetRect']||_0x37c160;}['_removeAnnotationFromBalloon'](_0x553b09){this['_addedAnnotations']['has'](_0x553b09)&&this['_balloon']['hasView'](_0x553b09['view'])&&(this['_addedAnnotations']['delete'](_0x553b09),this['_balloon']['remove'](_0x553b09['view']));}['_closeAnnotation'](_0x3c174e){this['_manuallyClosed']['add'](_0x3c174e),this['_removeAnnotationFromBalloon'](_0x3c174e);}}function b(_0x398e90,_0xabcef6){return _0x398e90['top']===_0xabcef6['top']&&_0x398e90['bottom']===_0xabcef6['bottom']&&_0x398e90['right']===_0xabcef6['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(_0x2c6fac,_0x17be3f){super(_0x2c6fac),this['set']('isEmpty',!_0x17be3f['length']),this['focusTracker']=new _0x523031(),this['_annotationViews']=_0x17be3f,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x17be3f,'focusTracker':this['focusTracker']}),this['listenTo'](_0x17be3f,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x17be3f,'remove',(_0x316f58,_0x42f9e2)=>{_0x42f9e2['isActive']&&this['focus'](),_0x17be3f['length']||(this['isEmpty']=!0x0);});const _0x3d7828=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x2c6fac,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x17be3f},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x3d7828['if']('isEmpty','ck-hidden',_0x5b3ca0=>!_0x5b3ca0)]},'children':[{'text':S(_0x2c6fac,'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 _0x6eb025 of this['_annotationViews'])this['focusTracker']['add'](_0x6eb025['element']);this['_annotationViews']['on']('change',(_0x9d6599,{added:_0xfa3a87,removed:_0x27afcc})=>{for(const _0x3f04dd of _0xfa3a87)this['focusTracker']['add'](_0x3f04dd['element']);for(const _0x33318f of _0x27afcc)this['focusTracker']['remove'](_0x33318f['element']);});}}class f extends _0x2fb642{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x4d7893){super(_0x4d7893),this['archivedThreads']=new _0x556725();}['init'](){const _0x478961=this['context'],_0x40d924=_0x478961['plugins']['get'](o),_0x4ae258=_0x478961['plugins']['get'](N);this['listenTo'](_0x40d924,'addCommentThread',(_0x360800,{threadId:_0x54482a})=>{const _0x103f97=_0x40d924['getCommentThread'](_0x54482a);_0x103f97['archivedAt']&&this['archivedThreads']['add'](_0x103f97,this['_calculatePosition'](_0x103f97['archivedAt'])),this['listenTo'](_0x103f97,'change:archivedAt',(_0x364a07,_0x432e79,_0x44e327)=>{_0x44e327?this['archivedThreads']['has'](_0x103f97)||this['archivedThreads']['add'](_0x103f97,this['_calculatePosition'](_0x103f97['archivedAt'])):this['archivedThreads']['has'](_0x103f97)&&this['archivedThreads']['remove'](_0x103f97);});}),this['listenTo'](_0x40d924,'removeCommentThread',(_0x52a576,{threadId:_0xfbd7df})=>{const _0x4e4416=_0x40d924['getCommentThread'](_0xfbd7df);this['stopListening'](_0x4e4416),this['archivedThreads']['has'](_0x4e4416)&&this['archivedThreads']['remove'](_0x4e4416);},{'priority':'highest'}),this['listenTo'](_0x4ae258['collection'],'focus',(_0x4b91a4,_0x3883bb)=>{_0x3883bb['isVisible']||(_0x3883bb['isActive']=!0x0,_0x4ae258['activate'](_0x3883bb));});}['_calculatePosition'](_0x3e0147){const _0x3abe1c=[...this['archivedThreads']]['findIndex'](_0x65a1dd=>_0x65a1dd['archivedAt']<_0x3e0147);return _0x3abe1c>-0x1?_0x3abe1c:this['archivedThreads']['length'];}}class a extends _0x50d6a7{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x3ca1f2];}constructor(_0xef6c1b){super(_0xef6c1b),this['annotationViews']=new _0x53afa6(),this['_pendingThreads']=[];}['init'](){const _0x5b22c3=this['editor'],_0x36e012=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x5b22c3['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x30f492,!0x0)),_0x5b22c3['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0xb0a49a=this['_createCommentsArchiveButton'](_0x7e9b73);return _0xb0a49a['set']({'role':'menuitemcheckbox'}),_0xb0a49a;});const _0x590a18=_0x5b22c3['plugins']['get'](f),_0x2ac7c9=_0x5b22c3['plugins']['get']('Annotations'),_0x5847bf=_0x5b22c3['plugins']['get']('CommentsRepository');this['listenTo'](_0x590a18['archivedThreads'],'add',(_0x39e657,_0x4d9d98)=>{const _0x3ba260=_0x5b22c3['config']['get']('collaboration.channelId');if(!_0x3ba260||_0x4d9d98['channelId']===_0x3ba260){const _0x59fc72=_0x5847bf['_threadToController']['get'](_0x4d9d98);if(!_0x59fc72)return void this['_pendingThreads']['push'](_0x4d9d98);const _0x55eefd=this['_calculatePosition'](_0x4d9d98['archivedAt']),_0x4ad534=_0x2ac7c9['getByInnerView'](_0x59fc72['view']);_0x4ad534['isVisible']&&_0x2ac7c9['_visibleAnnotations']['remove'](_0x4ad534),this['annotationViews']['add'](_0x4ad534['view'],_0x55eefd);}}),this['listenTo'](_0x2ac7c9['collection'],'add',(_0x145b8f,_0x11aa5c)=>{const _0x555a48=this['_pendingThreads']['find'](_0x27dcd9=>{const _0x53554b=_0x5847bf['_threadToController']['get'](_0x27dcd9);return _0x53554b&&_0x11aa5c['innerView']===_0x53554b['view'];});if(_0x555a48){const _0x279797=this['_calculatePosition'](_0x555a48['archivedAt']);this['annotationViews']['add'](_0x11aa5c['view'],_0x279797),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x555a48),0x1);}}),this['listenTo'](_0x590a18['archivedThreads'],'remove',(_0x100ee8,_0xbe3bf0)=>{const _0x31716e=_0x5b22c3['config']['get']('collaboration.channelId');if(!_0x31716e||_0xbe3bf0['channelId']===_0x31716e){const _0x5b399c=_0x5847bf['_threadToController']['get'](_0xbe3bf0),_0x49f3d5=_0x2ac7c9['getByInnerView'](_0x5b399c['view']);this['annotationViews']['remove'](_0x49f3d5['view']),this['stopListening'](_0x49f3d5['focusableElements']);}}),this['listenTo'](_0x2ac7c9['collection'],'add',(_0x33c5e4,_0x37f6d1)=>{this['listenTo'](_0x37f6d1,'escape',_0x36e012);}),this['listenTo'](_0x2ac7c9['collection'],'remove',(_0x3f326f,_0x474b16)=>{this['stopListening'](_0x474b16,'escape',_0x36e012);});}['_calculatePosition'](_0x325f09){const _0x172e6d=this['editor']['config']['get']('collaboration.channelId'),_0x34d8ef=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x387dcd=>_0x387dcd['channelId']===_0x172e6d)['findIndex'](_0x1cc0f0=>_0x1cc0f0['archivedAt']<_0x325f09);return _0x34d8ef<0x0||_0x34d8ef>this['annotationViews']['length']?this['annotationViews']['length']:_0x34d8ef-0x1;}['_toggleDialog'](){const _0x3d9c37=this['editor'],_0x2f044c=_0x3d9c37['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x3d9c37['locale'],this['annotationViews'])),'commentsArchive'===_0x2f044c['id']?_0x2f044c['hide']():_0x2f044c['show']({'id':'commentsArchive','title':S(_0x3d9c37['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x471e16['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0xf7d3a,_0x1a5592=!0x1){const _0x2e6428=this['editor']['locale'],_0x5a8af8=this['editor']['plugins']['get']('Dialog'),_0x44d2e5=new _0xf7d3a(_0x2e6428);return _0x44d2e5['bind']('isEnabled')['to'](this,'isEnabled'),_0x44d2e5['bind']('isOn')['to'](_0x5a8af8,'id',_0x403609=>'commentsArchive'===_0x403609),_0x44d2e5['set']({'label':S(_0x2e6428,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x1a5592&&(_0x44d2e5['tooltip']=!0x0),this['listenTo'](_0x44d2e5,'execute',()=>this['_toggleDialog']()),_0x44d2e5;}['_hideDialogOnAnnotationEscape']=_0x1eaf02=>{const _0xae9785=_0x1eaf02['source'];if(!this['annotationViews']['has'](_0xae9785['view']))return;const _0x596051=this['editor']['plugins']['get']('Dialog');_0x596051['isOpen']&&'commentsArchive'===_0x596051['id']&&(_0x596051['hide'](),_0x1eaf02['stop']());};}class p extends _0x50d6a7{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,ss as BaseCommentThreadView,os as BaseCommentView,re as Comment,oe as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,Ct as CommentThreadView,vt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};