@ckeditor/ckeditor5-comments 43.3.1 → 44.0.0-alpha.1
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/README.md +16 -6
- package/build/comments.js +1 -1
- package/dist/augmentation.d.ts +8 -1
- package/dist/comments/commentsarchiveui.d.ts +7 -0
- package/dist/comments/commentsediting.d.ts +4 -0
- package/dist/comments/commentsrepository.d.ts +1 -6
- package/dist/comments/commentsui.d.ts +4 -0
- package/dist/index-editor.css +37 -37
- package/dist/index.css +46 -46
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -9
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +8 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +7 -0
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +4 -0
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1 -6
- package/src/comments/commentsrepository.js +3 -3
- package/src/comments/commentsui.d.ts +4 -0
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/clipboard.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Editor as
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
((()=>Vt)());constructor(_0x1ef422={}){(_0x1ef422=Object['assign']({},_0x1ef422))['plugins']||(_0x1ef422['plugins']=Xt['defaultPlugins']),super(_0x1ef422),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']();}['create'](){const _0x4ee7ca=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x4ee7ca))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x568580=>{const _0x46c29d=this['model']['document']['getRoot'](),_0x2d0c10=_0x46c29d&&_0x46c29d['getChild'](_0x46c29d['childCount']-0x1);_0x568580['setSelection'](_0x2d0c10,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x4b370a=this['editing']['view'],_0xe1267=_0x4b370a['document']['getRoot'](),_0x210bd3=_0xe1267['getChild'](0x0);_0xe1267['childCount']>0x1||!_0x210bd3||'p'!=_0x210bd3['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(Bt(_0x4b370a,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x210bd3['placeholder']=this['placeholder']),zt({'view':_0x4b370a,'element':_0x210bd3,'keepOnFocus':!0x0}),this['placeholderElement']=_0x210bd3);}}class rs extends _t{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x570183,_0x5777d8={}){super(_0x570183),this['editor']=null,this['_editorConfig']=_0x5777d8,this['set']('value',_0x5777d8['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x570183,'Reply...')),this['set']('submitLabel',S(_0x570183,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new Et(),this['focusTracker']=new _0x465762(),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',(_0x2fc58e,_0x30e212)=>{this['cancelButtonView']['fire']('execute'),_0x30e212();}),this['keystrokes']['set']('Ctrl+Enter',(_0x365590,_0x3a6288)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x3a6288());}),this['on']('submit',(_0xf9f7c0,_0x1eaabb)=>{_0x1eaabb['length']>0xfde8?(alert(S(_0x570183,'TOO_LONG_COMMENT_ALERT',[_0x1eaabb['length'],0xfde8])),_0xf9f7c0['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Xt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x459823=this['editor'];this['element']['insertBefore'](_0x459823['ui']['element'],this['element']['firstChild']),_0x459823['model']['document']['on']('change',()=>this['value']=_0x459823['getData']()),_0x459823['bind']('placeholder')['to'](this),this['focusables']['add'](_0x459823['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x158581){-0x1===_0x158581?(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:_0x3842d8}=this,_0x2cbf85=new _0x1c4b84(_0x3842d8);return _0x2cbf85['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2cbf85['withText']=!0x0,_0x2cbf85['bind']('label')['to'](this,'submitLabel'),_0x2cbf85['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2cbf85['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x18ccf1,_0x731e67)=>!_0x731e67&&!!_0x18ccf1['trim']()),_0x2cbf85;}['_createCancelButton'](){const {locale:_0xbcb6b1}=this,_0x10a883=new _0x1c4b84(_0xbcb6b1);return _0x10a883['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x10a883['label']=S(_0xbcb6b1,'Cancel'),_0x10a883['withText']=!0x0,_0x10a883['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x10a883;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x39ea62=>{this['focusTracker']['add'](_0x39ea62['element']);}),this['focusables']['on']('change',(_0x41b604,_0x4fe318)=>{for(const _0x2f6a24 of Array['from'](_0x4fe318['added'])['reverse']())this['focusTracker']['add'](_0x2f6a24['element']);});}}class Pt extends _t{constructor(_0x55c5b1,_0x12d3f4,_0x51be09){super(_0x55c5b1),this['commentInputView']=new rs(_0x55c5b1,_0x51be09),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x1e335c,_0x22e340)=>_0x1e335c||!!_0x22e340),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 _0xcaa168(_0x55c5b1,_0x12d3f4),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'](_0x1712a3){this['commentInputView']['focus'](_0x1712a3);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x39c881,_0x2be8a7)=>{const {submitButtonView:_0x4dfc42,cancelButtonView:_0x2b225e,editor:_0x5d92c2}=this['commentInputView'];[_0x4dfc42['element'],_0x2b225e['element'],_0x5d92c2?_0x5d92c2['editing']['view']['getDomRoot']():null]['filter'](_0x32c206=>_0x32c206)['some'](_0x195247=>_0x195247['contains'](_0x2be8a7['target']))||(this['focus'](),_0x2be8a7['preventDefault']());});}}class cs extends _t{constructor(_0x2ddbec){super(_0x2ddbec);const _0x472f62=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x472f62['to']('count',_0x3c10fe=>S(_0x2ddbec,'NUMBER_OF_COMMENTS',_0x3c10fe))}]});}}class xt extends _t{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0xbd9baf,_0x1fd924,_0x3f69fa){super(_0xbd9baf);const _0xfe9f42=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x1fd924['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x1fd924,this['_config']=_0x3f69fa,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x465762(),this['keystrokes']=new Et(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1ac3cf=>this['commentViews']['map'](_0x7824d4=>_0x7824d4['element'])['includes'](_0x1ac3cf['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0xbd9baf),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x42617a=>_0x42617a-this['_config']['maxCommentsWhenCollapsed']);for(const _0x358d9d of _0x1fd924['comments'])this['_handleNewCommentModel'](_0x358d9d);this['_handleInfoComment'](),this['listenTo'](_0x1fd924['comments'],'add',(_0x252e7c,_0xb56e3d)=>{const _0x47718e=this['_calculatePosition'](_0xb56e3d);this['length']++,this['_handleNewCommentModel'](_0xb56e3d,_0x47718e),this['refreshVisibleViews']();}),this['listenTo'](_0x1fd924['comments'],'remove',(_0x465ba7,_0x124035)=>{this['length']--,this['_handleRemoveCommentModel'](_0x124035),this['refreshVisibleViews']();}),this['listenTo'](_0x1fd924,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x1fd924,'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',_0xfe9f42['if']('length','ck-hidden',_0x565268=>!_0x565268)],'aria-label':S(_0xbd9baf,'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'](_0x51f798){-0x1===_0x51f798?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4e6150 of this['commentViews'])_0x4e6150['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x4a3aec,_0x1524ba){const _0x416762=new this['_config']['CommentView'](this['locale'],_0x4a3aec,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x416762['viewUid']=_0x4a3aec['id'],_0x416762['delegate']('removeComment')['to'](this),_0x416762['delegate']('updateComment')['to'](this),_0x416762['delegate']('resolveCommentThread')['to'](this),_0x416762['delegate']('editorReady')['to'](this),_0x416762['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x416762,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x416762,_0x1524ba);}['_calculatePosition'](_0x5b22fd){const _0x25614e=this['_model']['_findOptimalIndex'](_0x5b22fd);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x5b22fd['authoredAt']?_0x25614e-0x1:_0x25614e:_0x25614e-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x3b66e8={'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'],_0x3b66e8,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x3b66e8));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x292f81){const _0x1640ad=this['commentViews']['remove'](_0x292f81['id']);this['stopListening'](_0x1640ad),_0x1640ad['isEditMode']&&this['_updateHasDirtyComment'](),_0x1640ad['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2c0035=>_0x2c0035['isEditMode']);}['_rearrangeCollapse'](){const _0x49ff70=function(_0x5c1ca5){const _0x1457ee=new _0x82816a();for(const _0x4694bc of _0x5c1ca5)_0x1457ee['add'](_0x4694bc);return _0x1457ee;}(this['commentViews']),_0x36d318=this['_collapsedCommentsView']['count'];for(let _0x30a450=0x1;_0x30a450<=_0x36d318;_0x30a450++)_0x49ff70['remove'](0x1);for(const _0x5d5f3d of _0x49ff70)_0x5d5f3d['collapse']();_0x36d318>0x0&&_0x49ff70['add'](this['_collapsedCommentsView'],0x1),ms(_0x440c02(Array['from'](this['visibleViews']),Array['from'](_0x49ff70)),this['visibleViews'],_0x49ff70);}['_rearrangeExpand'](){ms(_0x440c02(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x282674 of this['visibleViews'])_0x282674['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x28aaf9=>{this['focusTracker']['add'](_0x28aaf9['element']),this['keystrokes']['listenTo'](_0x28aaf9['element']);}),this['commentViews']['on']('change',(_0x178c5f,_0x191247)=>{for(const _0x52b3c6 of _0x191247['removed'])this['focusTracker']['remove'](_0x52b3c6['element']),this['keystrokes']['stopListening'](_0x52b3c6['element']);for(const _0x262462 of Array['from'](_0x191247['added'])['reverse']())this['focusTracker']['add'](_0x262462['element']),this['keystrokes']['listenTo'](_0x262462['element']);});}}function ms(_0x475eaa,_0x471bbc,_0x548b55){let _0x4652c7=0x0;for(const _0x263356 of _0x475eaa)switch(_0x263356){case'insert':_0x471bbc['add'](_0x548b55['get'](_0x4652c7),_0x4652c7),_0x4652c7++;break;case'delete':_0x471bbc['remove'](_0x4652c7);break;case'equal':_0x4652c7++;}}class ls extends _t{constructor(_0x12c98e){super(_0x12c98e);const _0x4a04a2=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4a04a2['to']('contextValue',_0x2cacd2=>S(_0x12c98e,'THREAD_CONTEXT_LABEL',_0x2cacd2)),'tabindex':-0x1},'children':[{'text':_0x4a04a2['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class ts extends _t{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xb8e4d,_0x1c84bc){super(_0xb8e4d);const _0x1dec89=this['bindTemplate'];this['_model']=_0x1c84bc,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x465762(),this['keystrokes']=new Et(),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',_0x279912=>!!_0x279912),this['bind']('contextValue')['to'](this['_model'],'context',_0x87e9db=>_0x87e9db&&_0x87e9db['value']?this['_trimContextValue'](_0x87e9db['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',_0x1dec89['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 _0x41f8e9=new _0x1c4b84(this['locale']);return _0x41f8e9['label']=S(this['locale'],'Reopen'),_0x41f8e9['tooltip']=S(this['locale'],'Reopen'),_0x41f8e9['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>',_0x41f8e9['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x417a74=>!_0x417a74),_0x41f8e9['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5d8d40,_0x5bf837)=>_0x5d8d40&&_0x5bf837),_0x41f8e9['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x41f8e9;}['_trimContextValue'](_0x55fb31){if(_0x55fb31['length']<0x96)return _0x55fb31;const _0x4e53df=_0x55fb31['lastIndexOf']('\x20',0x93);return _0x55fb31['substring'](0x0,_0x4e53df>-0x1?_0x4e53df:0x93)+'...';}['_attachContextActions'](){const _0x168017=this['element']['querySelector']('.ck-context'),_0x70062=_0x168017['querySelector']('.ck-context__value');this['listenTo'](_0x168017,'mouseenter',()=>{_0x70062['offsetWidth']<_0x70062['scrollWidth']&&_0x168017['classList']['add']('overlay');}),this['listenTo'](_0x168017,'mouseleave',()=>{_0x168017['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x177c8c of this['focusables'])this['focusTracker']['add'](_0x177c8c['element']),this['keystrokes']['listenTo'](_0x177c8c['element']);}['_createContextView'](){const _0x4d8337=new ls(this['locale']);return _0x4d8337['bind']('contextValue')['to'](this),_0x4d8337;}}class es extends _t{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x45fe84,_0x33bb02,_0x188eaf,_0x41b613){super(_0x45fe84),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x33bb02,this['_localUser']=_0x188eaf,this['_config']=_0x41b613,this['commentThreadHeaderView']=new ts(_0x45fe84,_0x33bb02),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new _0x252e69(_0x45fe84,S(_0x45fe84,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new xt(_0x45fe84,_0x33bb02,Object['assign']({'CommentView':this['_config']['CommentView']},_0x41b613)),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',(_0x8c3e68,_0x405ed2)=>_0x8c3e68||!!_0x405ed2),this['bind']('isUnlinked')['to'](_0x33bb02,'unlinkedAt',_0x7d4e8c=>!!_0x7d4e8c),this['bind']('ariaLabel')['to'](this,'length',_0x59ff05=>{const _0xa0dc65=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x59ff05,_0xa0dc65]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x465762(),this['keystrokes']=new Et(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x37adb3=>_0x37adb3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x532d9a(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x27280b=new Pt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x51ea99=_0x27280b['commentInputView'];return _0x27280b['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x51ea99,'value',(_0x5c4c82,_0x41a29f,_0x565bc0,_0x4dca88,_0x5abc39)=>!!_0x5abc39||!!_0x4dca88&&_0x565bc0&&!_0x41a29f||_0x5c4c82&&_0x565bc0&&!_0x41a29f),_0x51ea99['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3067b2,_0x2c00e9,_0x111712)=>{let _0x109d56;return _0x109d56=_0x111712&&_0x2c00e9?'Reply\x20to\x20reopen\x20discussion...':_0x3067b2?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x109d56);}),_0x51ea99['bind']('submitLabel')['to'](this,'length',_0x474874=>S(this['locale'],_0x474874?'Reply':'Comment')),_0x51ea99['on']('submit',(_0x521f78,_0x5cad42)=>{this['fire']('addComment',_0x5cad42),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x51ea99['on']('cancel',()=>{this['focus']();}),_0x51ea99['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x51ea99['on']('cancel',_0x273a94=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x273a94['stop']());}),this['on']('change:isActive',(_0x41ad2e,_0x4b9c02,_0x11083a)=>{_0x11083a||this['length']||_0x51ea99['value']||this['fire']('removeCommentThread');}),_0x27280b;}}class Ct extends/* #__PURE__ -- @preserve */
|
|
27
|
-
ti(
|
|
28
|
-
ti(
|
|
29
|
-
_0x226f8d(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x1703e8,target:_0x286b7d,type:_0xa37040,isVisible:_0x2d5c3e=!0x0}){super(),this['view']=_0x1703e8,this['view']['element']||this['view']['render'](),this['_type']=_0xa37040,this['_target']=_0x286b7d,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x82816a([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x1739d,_0x4420e2)=>{this['view']['focusTracker']['add'](_0x4420e2);}),this['focusableElements']['on']('remove',(_0x17c5c4,_0x543f60)=>{this['view']['focusTracker']['remove'](_0x543f60);}),this['set']('isVisible',_0x2d5c3e);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x42dcc0=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x42dcc0),_0x42dcc0;}get['targetRect'](){const _0x4afd80=this['target'];if(null===_0x4afd80)return null;if(_0x4afd80 instanceof _0x5239f0)return _0x4afd80;const _0x39d3c0=_0x4afd80['filter'](_0x4d0e5f=>function(_0x2236c7){const _0x5a5354=_0x2236c7['offsetParent'];if(_0x5a5354)return!0x0;const _0x54e2a6=_0x2236c7['getClientRects']()['item'](0x0);return!!_0x54e2a6;}(_0x4d0e5f));return 0x0===_0x39d3c0['length']?null:new _0x5239f0(_0x39d3c0[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x12d145){this['view']['isActive']=_0x12d145,this['view']['mainView']['isActive']=_0x12d145;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x37e740){if(!(null===_0x37e740||_0x37e740 instanceof _0x5239f0||Array['isArray'](_0x37e740)&&_0x37e740['every'](_0x46bfe8=>ee(_0x46bfe8))))throw new _0x4f0fc3('annotation-invalid-target',null,{'target':_0x37e740});}['_getNormalizedTarget'](){const _0x235493='function'==typeof this['_target']?this['_target']():this['_target'];return ee(_0x235493)?[_0x235493]:_0x235493;}}function ee(_0x50ce52){return null!==_0x50ce52&&'object'==typeof _0x50ce52&&'nodeType'in _0x50ce52&&0x1===_0x50ce52['nodeType'];}class x extends _0x82816a{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x415804=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x465762(),this['_focusTracker']['on']('change:isFocused',(_0x5443aa,_0x2018a4,_0x468bd2)=>{_0x468bd2||this['fire']('blur');});for(const _0x257c8d of _0x415804)this['add'](_0x257c8d);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x5b8176){if(this['has'](_0x5b8176))throw new _0x4f0fc3('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x5b8176['innerView'],_0x5b8176),this['_viewToAnnotation']['set'](_0x5b8176['view'],_0x5b8176);for(const _0xea101 of _0x5b8176['focusableElements'])this['_focusTracker']['add'](_0xea101);this['listenTo'](_0x5b8176['focusableElements'],'add',(_0x553c69,_0x4df00e)=>{this['_focusTracker']['add'](_0x4df00e);}),this['listenTo'](_0x5b8176['focusableElements'],'remove',(_0x436a2e,_0x2c9c9e)=>{this['_focusTracker']['remove'](_0x2c9c9e);}),this['listenTo'](_0x5b8176['view']['focusTracker'],'change:isFocused',(_0x30be99,_0x363371,_0x3329d9)=>{_0x3329d9&&this['fire']('focus',_0x5b8176);}),_0x5b8176['updateTargetRect']();const _0x316ab5=this['_getOrderInContent'](_0x5b8176['view']['targetRect']);return super['add'](_0x5b8176,_0x316ab5);}['remove'](_0xffcfb){if(!this['has'](_0xffcfb))throw new _0x4f0fc3('annotationcollection-not-existing-item',null);this['stopListening'](_0xffcfb['view']['focusTracker']),this['stopListening'](_0xffcfb['focusableElements']);for(const _0x5ab802 of _0xffcfb['focusableElements'])this['_focusTracker']['remove'](_0x5ab802);return this['_viewToAnnotation']['delete'](_0xffcfb['view']),this['_innerViewToAnnotation']['delete'](_0xffcfb['innerView']),super['remove'](_0xffcfb);}['getByInnerView'](_0x52ed05){return this['_innerViewToAnnotation']['get'](_0x52ed05);}['getByView'](_0xcb0221){return this['_viewToAnnotation']['get'](_0xcb0221);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x5c435d of this)_0x5c435d['updateTargetRect']();this['_sort']();}['_sort'](){const _0x157cf3=Array['from'](this)['sort']((_0x319f4e,_0x1c17b8)=>v(_0x319f4e['view']['targetRect'],_0x1c17b8['view']['targetRect']));for(let _0x5a760c=_0x157cf3['length']-0x1;_0x5a760c>0x0;_0x5a760c--){const _0x35d153=_0x157cf3[_0x5a760c];_0x5a760c!==this['getIndex'](_0x35d153)&&(this['remove'](_0x35d153),this['add'](_0x35d153));}}['_getOrderInContent'](_0x3a55ed){let _0x4cc19b=0x0;if(!_0x3a55ed)return this['length'];for(const _0x26b32d of this){const _0x27b04d=_0x26b32d['view']['targetRect'];if(_0x27b04d){if(v(_0x3a55ed,_0x27b04d)<0x0)return _0x4cc19b;_0x4cc19b++;}}return _0x4cc19b;}}function v(_0x3ad85b,_0x583466){if(null===_0x3ad85b&&null===_0x583466)return 0x0;if(null===_0x3ad85b)return-0x1;if(null===_0x583466)return 0x1;const _0x50b7b6=_0x3ad85b['top']-_0x583466['top'];return 0x0==_0x50b7b6?_0x3ad85b['left']-_0x583466['left']:_0x50b7b6;}class N extends _0x5c60c1{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x383e88){if(super(_0x383e88),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x383e88 instanceof _0x1fac51){const _0x1ea5d0=_0x383e88['locale'];_0x383e88['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x1ea5d0,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x1ea5d0,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x1ea5d0,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x1ea5d0,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x1ea5d0,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x1ea5d0,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x1ea5d0,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x22cc60){this['collection']['add'](_0x22cc60);}['remove'](_0x924405){this['collection']['remove'](_0x924405),_0x924405['destroy']();}['refreshVisibility'](){for(const _0x3d1a68 of this['collection'])_0x3d1a68['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x23a694){return this['collection']['getByInnerView'](_0x23a694);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0xfa34e3 of this['collection'])_0xfa34e3['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x52a509){this['fire']('_activateAnnotation',_0x52a509);}['createAnnotation'](_0x1dbc62){return new d(_0x1dbc62);}['createAnnotationView'](_0x47d696,_0xc1c909){return new T(_0x47d696,_0xc1c909);}['_addActiveAnnotation'](_0xa69ed1){const _0x2a43b0=new Set(this['activeAnnotations']);_0x2a43b0['add'](_0xa69ed1),this['activeAnnotations']=_0x2a43b0;}['_removeActiveAnnotation'](_0x455a66){const _0x47daaf=new Set(this['activeAnnotations']);_0x47daaf['delete'](_0x455a66),this['activeAnnotations']=_0x47daaf;}['_bindAnnotationsToVisibleAnnotations'](){const _0x44721e=this['collection'],_0x40660b=this['_visibleAnnotations'];function _0x17ed7f(_0x470256){const _0x5f5b94=_0x470256['source'];_0x5f5b94['isVisible']&&!_0x40660b['has'](_0x5f5b94)?_0x40660b['add'](_0x5f5b94):!_0x5f5b94['isVisible']&&_0x40660b['has'](_0x5f5b94)&&_0x40660b['remove'](_0x5f5b94),_0x5f5b94['view']['focusTracker']['remove'](_0x5f5b94['view']['element']),_0x5f5b94['view']['focusTracker']['add'](_0x5f5b94['view']['element']);}this['listenTo'](_0x44721e,'add',(_0x34dbfe,_0x1bb630)=>{_0x1bb630['isVisible']&&_0x40660b['add'](_0x1bb630),this['listenTo'](_0x1bb630,'change:isVisible',_0x17ed7f);}),this['listenTo'](_0x44721e,'remove',(_0x4c9b60,_0x4c4cc9)=>{_0x40660b['has'](_0x4c4cc9)&&_0x40660b['remove'](_0x4c4cc9),this['stopListening'](_0x4c4cc9,'change:isVisible',_0x17ed7f);});}['_setupEnterAnnotationKeystroke'](){const _0x11ca4b=_0x9db7d4=>{_0x9db7d4['on']('ready',()=>{_0x9db7d4['keystrokes']['set'](_0x27f8e2,(_0x28ecc2,_0x1f58ee)=>{const _0x1c5d28=_0x1b259d(this['activeAnnotations']['values']());_0x1c5d28&&(_0x1c5d28['view']['focus'](),_0x1f58ee());});});};this['context']instanceof _0x1fac51?_0x11ca4b(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x1a20e5,_0xb28806)=>{_0x11ca4b(_0xb28806);});}['_setupEscapeAnnotationHandling'](){const _0x511305=_0x327896=>{const _0x8026dd=_0x327896['source'],_0x5c4b7e=[];let _0x4d3eee;if(Array['isArray'](_0x8026dd['target'])){_0x4d3eee=_0x8026dd['target'][0x0],this['context']instanceof _0x1fac51?_0x5c4b7e['push'](this['context']):this['context']['editors']&&_0x5c4b7e['push'](...this['context']['editors']);for(const _0x57d2b7 of _0x5c4b7e)for(const _0x5f1dcb of _0x57d2b7['editing']['view']['domRoots']['values']())if(_0x5f1dcb['contains'](_0x4d3eee))return void _0x57d2b7['editing']['view']['focus']();_0x4d3eee['focus']();}};this['listenTo'](this['collection'],'add',(_0x4be628,_0x21f6b7)=>{this['listenTo'](_0x21f6b7,'escape',_0x511305,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x3c9146,_0x52e76f)=>{this['stopListening'](_0x52e76f,'escape',_0x511305);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x5c60c1{['licenseKey'];['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ae82b){super(_0x5ae82b),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map()),this['licenseKey']=this['context']['config']['get']('licenseKey');const _0x1b8809=this['context']['config'];_0x1b8809['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1b8809['define']('comments.maxThreadTotalWeight',0x1f4),_0x1b8809['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1b8809['define']('comments.CommentThreadView',Ct),_0x1b8809['define']('comments.CommentView',vt),_0x1b8809['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x369254=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x23ba1f,_0x44aea6)=>this['_addCommentThread'](_0x44aea6)),this['on']('submitCommentThread',(_0x1a2966,_0xbc8386)=>this['_submitCommentThread'](_0xbc8386)),this['on']('resolveCommentThread',(_0x325405,_0x226753)=>this['_resolveCommentThread'](_0x226753)),this['on']('resolveCommentThread',(_0x550413,_0x542f08)=>this['_updateActiveAnnotation'](_0x542f08),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x205137,_0x35e8ef)=>this['_reopenCommentThread'](_0x35e8ef)),this['on']('reopenCommentThread',(_0x3c61ae,_0xd8084)=>this['_updateActiveAnnotation'](_0xd8084),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x3a15af,_0x483499)=>this['_removeCommentThread'](_0x483499)),this['on']('updateCommentThread',(_0x3485f,_0x45a88c)=>this['_updateCommentThread'](_0x45a88c)),this['on']('updateCommentThread',(_0x2eef6e,_0x41929c)=>this['_updateActiveAnnotation'](_0x41929c),{'priority':'lowest'}),this['on']('addComment',(_0x3e22f6,_0xd2e73b)=>this['_addComment'](_0xd2e73b)),this['on']('updateComment',(_0x496003,_0x5b352e)=>this['_updateComment'](_0x5b352e)),this['on']('removeComment',(_0x55d4cd,_0x128b2c)=>this['_removeComment'](_0x128b2c)),this['on']('addComment',(_0x464d34,{threadId:_0x3e23af,isFromAdapter:_0x5e6e34})=>{if(_0x5e6e34)return;const _0x1b83ac=this['getCommentThread'](_0x3e23af),_0x4bee7a=_0x1b83ac&&this['_threadToController']['get'](_0x1b83ac);_0x4bee7a&&_0x4bee7a['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x369254,'change:activeAnnotations',(_0x114ccb,_0x2431b4,_0x2ccceb)=>{const _0x35b4b4=Array['from'](_0x2ccceb)['map'](_0x50c8c3=>this['_viewToController']['get'](_0x50c8c3['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x35b4b4?_0x35b4b4['model']:null;});}['afterInit'](){!function(_0x1923ac){function _0x5a3299(_0x4aabf3,_0x3e3be5,_0x55c83c){const _0x450e5b={};_0x450e5b[_0x5a67dd([0x6e,0x75,0x6d,0x62,0x65,0x72,0x4f,0x66,0x52,0x6f,0x75,0x6e,0x64,0x73])]={0x10:0xa,0x18:0xc,0x20:0xe},_0x450e5b[_0x5a67dd([0x72,0x63,0x6f,0x6e])]=[0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36,0x6c,0xd8,0xab,0x4d,0x9a,0x2f,0x5e,0xbc,0x63,0xc6,0x97,0x35,0x6a,0xd4,0xb3,0x7d,0xfa,0xef,0xc5,0x91],_0x450e5b[_0x5a67dd([0x53])]=[0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x1,0x67,0x2b,0xfe,0xd7,0xab,0x76,0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0,0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc,0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15,0x4,0xc7,0x23,0xc3,0x18,0x96,0x5,0x9a,0x7,0x12,0x80,0xe2,0xeb,0x27,0xb2,0x75,0x9,0x83,0x2c,0x1a,0x1b,0x6e,0x5a,0xa0,0x52,0x3b,0xd6,0xb3,0x29,0xe3,0x2f,0x84,0x53,0xd1,0x0,0xed,0x20,0xfc,0xb1,0x5b,0x6a,0xcb,0xbe,0x39,0x4a,0x4c,0x58,0xcf,0xd0,0xef,0xaa,0xfb,0x43,0x4d,0x33,0x85,0x45,0xf9,0x2,0x7f,0x50,0x3c,0x9f,0xa8,0x51,0xa3,0x40,0x8f,0x92,0x9d,0x38,0xf5,0xbc,0xb6,0xda,0x21,0x10,0xff,0xf3,0xd2,0xcd,0xc,0x13,0xec,0x5f,0x97,0x44,0x17,0xc4,0xa7,0x7e,0x3d,0x64,0x5d,0x19,0x73,0x60,0x81,0x4f,0xdc,0x22,0x2a,0x90,0x88,0x46,0xee,0xb8,0x14,0xde,0x5e,0xb,0xdb,0xe0,0x32,0x3a,0xa,0x49,0x6,0x24,0x5c,0xc2,0xd3,0xac,0x62,0x91,0x95,0xe4,0x79,0xe7,0xc8,0x37,0x6d,0x8d,0xd5,0x4e,0xa9,0x6c,0x56,0xf4,0xea,0x65,0x7a,0xae,0x8,0xba,0x78,0x25,0x2e,0x1c,0xa6,0xb4,0xc6,0xe8,0xdd,0x74,0x1f,0x4b,0xbd,0x8b,0x8a,0x70,0x3e,0xb5,0x66,0x48,0x3,0xf6,0xe,0x61,0x35,0x57,0xb9,0x86,0xc1,0x1d,0x9e,0xe1,0xf8,0x98,0x11,0x69,0xd9,0x8e,0x94,0x9b,0x1e,0x87,0xe9,0xce,0x55,0x28,0xdf,0x8c,0xa1,0x89,0xd,0xbf,0xe6,0x42,0x68,0x41,0x99,0x2d,0xf,0xb0,0x54,0xbb,0x16],_0x450e5b[_0x5a67dd([0x54,0x31])]=[0xc66363a5,0xf87c7c84,0xee777799,0xf67b7b8d,0xfff2f20d,0xd66b6bbd,0xde6f6fb1,0x91c5c554,0x60303050,0x2010103,0xce6767a9,0x562b2b7d,0xe7fefe19,0xb5d7d762,0x4dababe6,0xec76769a,0x8fcaca45,0x1f82829d,0x89c9c940,0xfa7d7d87,0xeffafa15,0xb25959eb,0x8e4747c9,0xfbf0f00b,0x41adadec,0xb3d4d467,0x5fa2a2fd,0x45afafea,0x239c9cbf,0x53a4a4f7,0xe4727296,0x9bc0c05b,0x75b7b7c2,0xe1fdfd1c,0x3d9393ae,0x4c26266a,0x6c36365a,0x7e3f3f41,0xf5f7f702,0x83cccc4f,0x6834345c,0x51a5a5f4,0xd1e5e534,0xf9f1f108,0xe2717193,0xabd8d873,0x62313153,0x2a15153f,0x804040c,0x95c7c752,0x46232365,0x9dc3c35e,0x30181828,0x379696a1,0xa05050f,0x2f9a9ab5,0xe070709,0x24121236,0x1b80809b,0xdfe2e23d,0xcdebeb26,0x4e272769,0x7fb2b2cd,0xea75759f,0x1209091b,0x1d83839e,0x582c2c74,0x341a1a2e,0x361b1b2d,0xdc6e6eb2,0xb45a5aee,0x5ba0a0fb,0xa45252f6,0x763b3b4d,0xb7d6d661,0x7db3b3ce,0x5229297b,0xdde3e33e,0x5e2f2f71,0x13848497,0xa65353f5,0xb9d1d168,0x0,0xc1eded2c,0x40202060,0xe3fcfc1f,0x79b1b1c8,0xb65b5bed,0xd46a6abe,0x8dcbcb46,0x67bebed9,0x7239394b,0x944a4ade,0x984c4cd4,0xb05858e8,0x85cfcf4a,0xbbd0d06b,0xc5efef2a,0x4faaaae5,0xedfbfb16,0x864343c5,0x9a4d4dd7,0x66333355,0x11858594,0x8a4545cf,0xe9f9f910,0x4020206,0xfe7f7f81,0xa05050f0,0x783c3c44,0x259f9fba,0x4ba8a8e3,0xa25151f3,0x5da3a3fe,0x804040c0,0x58f8f8a,0x3f9292ad,0x219d9dbc,0x70383848,0xf1f5f504,0x63bcbcdf,0x77b6b6c1,0xafdada75,0x42212163,0x20101030,0xe5ffff1a,0xfdf3f30e,0xbfd2d26d,0x81cdcd4c,0x180c0c14,0x26131335,0xc3ecec2f,0xbe5f5fe1,0x359797a2,0x884444cc,0x2e171739,0x93c4c457,0x55a7a7f2,0xfc7e7e82,0x7a3d3d47,0xc86464ac,0xba5d5de7,0x3219192b,0xe6737395,0xc06060a0,0x19818198,0x9e4f4fd1,0xa3dcdc7f,0x44222266,0x542a2a7e,0x3b9090ab,0xb888883,0x8c4646ca,0xc7eeee29,0x6bb8b8d3,0x2814143c,0xa7dede79,0xbc5e5ee2,0x160b0b1d,0xaddbdb76,0xdbe0e03b,0x64323256,0x743a3a4e,0x140a0a1e,0x924949db,0xc06060a,0x4824246c,0xb85c5ce4,0x9fc2c25d,0xbdd3d36e,0x43acacef,0xc46262a6,0x399191a8,0x319595a4,0xd3e4e437,0xf279798b,0xd5e7e732,0x8bc8c843,0x6e373759,0xda6d6db7,0x18d8d8c,0xb1d5d564,0x9c4e4ed2,0x49a9a9e0,0xd86c6cb4,0xac5656fa,0xf3f4f407,0xcfeaea25,0xca6565af,0xf47a7a8e,0x47aeaee9,0x10080818,0x6fbabad5,0xf0787888,0x4a25256f,0x5c2e2e72,0x381c1c24,0x57a6a6f1,0x73b4b4c7,0x97c6c651,0xcbe8e823,0xa1dddd7c,0xe874749c,0x3e1f1f21,0x964b4bdd,0x61bdbddc,0xd8b8b86,0xf8a8a85,0xe0707090,0x7c3e3e42,0x71b5b5c4,0xcc6666aa,0x904848d8,0x6030305,0xf7f6f601,0x1c0e0e12,0xc26161a3,0x6a35355f,0xae5757f9,0x69b9b9d0,0x17868691,0x99c1c158,0x3a1d1d27,0x279e9eb9,0xd9e1e138,0xebf8f813,0x2b9898b3,0x22111133,0xd26969bb,0xa9d9d970,0x78e8e89,0x339494a7,0x2d9b9bb6,0x3c1e1e22,0x15878792,0xc9e9e920,0x87cece49,0xaa5555ff,0x50282878,0xa5dfdf7a,0x38c8c8f,0x59a1a1f8,0x9898980,0x1a0d0d17,0x65bfbfda,0xd7e6e631,0x844242c6,0xd06868b8,0x824141c3,0x299999b0,0x5a2d2d77,0x1e0f0f11,0x7bb0b0cb,0xa85454fc,0x6dbbbbd6,0x2c16163a],_0x450e5b[_0x5a67dd([0x54,0x32])]=[0xa5c66363,0x84f87c7c,0x99ee7777,0x8df67b7b,0xdfff2f2,0xbdd66b6b,0xb1de6f6f,0x5491c5c5,0x50603030,0x3020101,0xa9ce6767,0x7d562b2b,0x19e7fefe,0x62b5d7d7,0xe64dabab,0x9aec7676,0x458fcaca,0x9d1f8282,0x4089c9c9,0x87fa7d7d,0x15effafa,0xebb25959,0xc98e4747,0xbfbf0f0,0xec41adad,0x67b3d4d4,0xfd5fa2a2,0xea45afaf,0xbf239c9c,0xf753a4a4,0x96e47272,0x5b9bc0c0,0xc275b7b7,0x1ce1fdfd,0xae3d9393,0x6a4c2626,0x5a6c3636,0x417e3f3f,0x2f5f7f7,0x4f83cccc,0x5c683434,0xf451a5a5,0x34d1e5e5,0x8f9f1f1,0x93e27171,0x73abd8d8,0x53623131,0x3f2a1515,0xc080404,0x5295c7c7,0x65462323,0x5e9dc3c3,0x28301818,0xa1379696,0xf0a0505,0xb52f9a9a,0x90e0707,0x36241212,0x9b1b8080,0x3ddfe2e2,0x26cdebeb,0x694e2727,0xcd7fb2b2,0x9fea7575,0x1b120909,0x9e1d8383,0x74582c2c,0x2e341a1a,0x2d361b1b,0xb2dc6e6e,0xeeb45a5a,0xfb5ba0a0,0xf6a45252,0x4d763b3b,0x61b7d6d6,0xce7db3b3,0x7b522929,0x3edde3e3,0x715e2f2f,0x97138484,0xf5a65353,0x68b9d1d1,0x0,0x2cc1eded,0x60402020,0x1fe3fcfc,0xc879b1b1,0xedb65b5b,0xbed46a6a,0x468dcbcb,0xd967bebe,0x4b723939,0xde944a4a,0xd4984c4c,0xe8b05858,0x4a85cfcf,0x6bbbd0d0,0x2ac5efef,0xe54faaaa,0x16edfbfb,0xc5864343,0xd79a4d4d,0x55663333,0x94118585,0xcf8a4545,0x10e9f9f9,0x6040202,0x81fe7f7f,0xf0a05050,0x44783c3c,0xba259f9f,0xe34ba8a8,0xf3a25151,0xfe5da3a3,0xc0804040,0x8a058f8f,0xad3f9292,0xbc219d9d,0x48703838,0x4f1f5f5,0xdf63bcbc,0xc177b6b6,0x75afdada,0x63422121,0x30201010,0x1ae5ffff,0xefdf3f3,0x6dbfd2d2,0x4c81cdcd,0x14180c0c,0x35261313,0x2fc3ecec,0xe1be5f5f,0xa2359797,0xcc884444,0x392e1717,0x5793c4c4,0xf255a7a7,0x82fc7e7e,0x477a3d3d,0xacc86464,0xe7ba5d5d,0x2b321919,0x95e67373,0xa0c06060,0x98198181,0xd19e4f4f,0x7fa3dcdc,0x66442222,0x7e542a2a,0xab3b9090,0x830b8888,0xca8c4646,0x29c7eeee,0xd36bb8b8,0x3c281414,0x79a7dede,0xe2bc5e5e,0x1d160b0b,0x76addbdb,0x3bdbe0e0,0x56643232,0x4e743a3a,0x1e140a0a,0xdb924949,0xa0c0606,0x6c482424,0xe4b85c5c,0x5d9fc2c2,0x6ebdd3d3,0xef43acac,0xa6c46262,0xa8399191,0xa4319595,0x37d3e4e4,0x8bf27979,0x32d5e7e7,0x438bc8c8,0x596e3737,0xb7da6d6d,0x8c018d8d,0x64b1d5d5,0xd29c4e4e,0xe049a9a9,0xb4d86c6c,0xfaac5656,0x7f3f4f4,0x25cfeaea,0xafca6565,0x8ef47a7a,0xe947aeae,0x18100808,0xd56fbaba,0x88f07878,0x6f4a2525,0x725c2e2e,0x24381c1c,0xf157a6a6,0xc773b4b4,0x5197c6c6,0x23cbe8e8,0x7ca1dddd,0x9ce87474,0x213e1f1f,0xdd964b4b,0xdc61bdbd,0x860d8b8b,0x850f8a8a,0x90e07070,0x427c3e3e,0xc471b5b5,0xaacc6666,0xd8904848,0x5060303,0x1f7f6f6,0x121c0e0e,0xa3c26161,0x5f6a3535,0xf9ae5757,0xd069b9b9,0x91178686,0x5899c1c1,0x273a1d1d,0xb9279e9e,0x38d9e1e1,0x13ebf8f8,0xb32b9898,0x33221111,0xbbd26969,0x70a9d9d9,0x89078e8e,0xa7339494,0xb62d9b9b,0x223c1e1e,0x92158787,0x20c9e9e9,0x4987cece,0xffaa5555,0x78502828,0x7aa5dfdf,0x8f038c8c,0xf859a1a1,0x80098989,0x171a0d0d,0xda65bfbf,0x31d7e6e6,0xc6844242,0xb8d06868,0xc3824141,0xb0299999,0x775a2d2d,0x111e0f0f,0xcb7bb0b0,0xfca85454,0xd66dbbbb,0x3a2c1616],_0x450e5b[_0x5a67dd([0x54,0x33])]=[0x63a5c663,0x7c84f87c,0x7799ee77,0x7b8df67b,0xf20dfff2,0x6bbdd66b,0x6fb1de6f,0xc55491c5,0x30506030,0x1030201,0x67a9ce67,0x2b7d562b,0xfe19e7fe,0xd762b5d7,0xabe64dab,0x769aec76,0xca458fca,0x829d1f82,0xc94089c9,0x7d87fa7d,0xfa15effa,0x59ebb259,0x47c98e47,0xf00bfbf0,0xadec41ad,0xd467b3d4,0xa2fd5fa2,0xafea45af,0x9cbf239c,0xa4f753a4,0x7296e472,0xc05b9bc0,0xb7c275b7,0xfd1ce1fd,0x93ae3d93,0x266a4c26,0x365a6c36,0x3f417e3f,0xf702f5f7,0xcc4f83cc,0x345c6834,0xa5f451a5,0xe534d1e5,0xf108f9f1,0x7193e271,0xd873abd8,0x31536231,0x153f2a15,0x40c0804,0xc75295c7,0x23654623,0xc35e9dc3,0x18283018,0x96a13796,0x50f0a05,0x9ab52f9a,0x7090e07,0x12362412,0x809b1b80,0xe23ddfe2,0xeb26cdeb,0x27694e27,0xb2cd7fb2,0x759fea75,0x91b1209,0x839e1d83,0x2c74582c,0x1a2e341a,0x1b2d361b,0x6eb2dc6e,0x5aeeb45a,0xa0fb5ba0,0x52f6a452,0x3b4d763b,0xd661b7d6,0xb3ce7db3,0x297b5229,0xe33edde3,0x2f715e2f,0x84971384,0x53f5a653,0xd168b9d1,0x0,0xed2cc1ed,0x20604020,0xfc1fe3fc,0xb1c879b1,0x5bedb65b,0x6abed46a,0xcb468dcb,0xbed967be,0x394b7239,0x4ade944a,0x4cd4984c,0x58e8b058,0xcf4a85cf,0xd06bbbd0,0xef2ac5ef,0xaae54faa,0xfb16edfb,0x43c58643,0x4dd79a4d,0x33556633,0x85941185,0x45cf8a45,0xf910e9f9,0x2060402,0x7f81fe7f,0x50f0a050,0x3c44783c,0x9fba259f,0xa8e34ba8,0x51f3a251,0xa3fe5da3,0x40c08040,0x8f8a058f,0x92ad3f92,0x9dbc219d,0x38487038,0xf504f1f5,0xbcdf63bc,0xb6c177b6,0xda75afda,0x21634221,0x10302010,0xff1ae5ff,0xf30efdf3,0xd26dbfd2,0xcd4c81cd,0xc14180c,0x13352613,0xec2fc3ec,0x5fe1be5f,0x97a23597,0x44cc8844,0x17392e17,0xc45793c4,0xa7f255a7,0x7e82fc7e,0x3d477a3d,0x64acc864,0x5de7ba5d,0x192b3219,0x7395e673,0x60a0c060,0x81981981,0x4fd19e4f,0xdc7fa3dc,0x22664422,0x2a7e542a,0x90ab3b90,0x88830b88,0x46ca8c46,0xee29c7ee,0xb8d36bb8,0x143c2814,0xde79a7de,0x5ee2bc5e,0xb1d160b,0xdb76addb,0xe03bdbe0,0x32566432,0x3a4e743a,0xa1e140a,0x49db9249,0x60a0c06,0x246c4824,0x5ce4b85c,0xc25d9fc2,0xd36ebdd3,0xacef43ac,0x62a6c462,0x91a83991,0x95a43195,0xe437d3e4,0x798bf279,0xe732d5e7,0xc8438bc8,0x37596e37,0x6db7da6d,0x8d8c018d,0xd564b1d5,0x4ed29c4e,0xa9e049a9,0x6cb4d86c,0x56faac56,0xf407f3f4,0xea25cfea,0x65afca65,0x7a8ef47a,0xaee947ae,0x8181008,0xbad56fba,0x7888f078,0x256f4a25,0x2e725c2e,0x1c24381c,0xa6f157a6,0xb4c773b4,0xc65197c6,0xe823cbe8,0xdd7ca1dd,0x749ce874,0x1f213e1f,0x4bdd964b,0xbddc61bd,0x8b860d8b,0x8a850f8a,0x7090e070,0x3e427c3e,0xb5c471b5,0x66aacc66,0x48d89048,0x3050603,0xf601f7f6,0xe121c0e,0x61a3c261,0x355f6a35,0x57f9ae57,0xb9d069b9,0x86911786,0xc15899c1,0x1d273a1d,0x9eb9279e,0xe138d9e1,0xf813ebf8,0x98b32b98,0x11332211,0x69bbd269,0xd970a9d9,0x8e89078e,0x94a73394,0x9bb62d9b,0x1e223c1e,0x87921587,0xe920c9e9,0xce4987ce,0x55ffaa55,0x28785028,0xdf7aa5df,0x8c8f038c,0xa1f859a1,0x89800989,0xd171a0d,0xbfda65bf,0xe631d7e6,0x42c68442,0x68b8d068,0x41c38241,0x99b02999,0x2d775a2d,0xf111e0f,0xb0cb7bb0,0x54fca854,0xbbd66dbb,0x163a2c16],_0x450e5b[_0x5a67dd([0x54,0x34])]=[0x6363a5c6,0x7c7c84f8,0x777799ee,0x7b7b8df6,0xf2f20dff,0x6b6bbdd6,0x6f6fb1de,0xc5c55491,0x30305060,0x1010302,0x6767a9ce,0x2b2b7d56,0xfefe19e7,0xd7d762b5,0xababe64d,0x76769aec,0xcaca458f,0x82829d1f,0xc9c94089,0x7d7d87fa,0xfafa15ef,0x5959ebb2,0x4747c98e,0xf0f00bfb,0xadadec41,0xd4d467b3,0xa2a2fd5f,0xafafea45,0x9c9cbf23,0xa4a4f753,0x727296e4,0xc0c05b9b,0xb7b7c275,0xfdfd1ce1,0x9393ae3d,0x26266a4c,0x36365a6c,0x3f3f417e,0xf7f702f5,0xcccc4f83,0x34345c68,0xa5a5f451,0xe5e534d1,0xf1f108f9,0x717193e2,0xd8d873ab,0x31315362,0x15153f2a,0x4040c08,0xc7c75295,0x23236546,0xc3c35e9d,0x18182830,0x9696a137,0x5050f0a,0x9a9ab52f,0x707090e,0x12123624,0x80809b1b,0xe2e23ddf,0xebeb26cd,0x2727694e,0xb2b2cd7f,0x75759fea,0x9091b12,0x83839e1d,0x2c2c7458,0x1a1a2e34,0x1b1b2d36,0x6e6eb2dc,0x5a5aeeb4,0xa0a0fb5b,0x5252f6a4,0x3b3b4d76,0xd6d661b7,0xb3b3ce7d,0x29297b52,0xe3e33edd,0x2f2f715e,0x84849713,0x5353f5a6,0xd1d168b9,0x0,0xeded2cc1,0x20206040,0xfcfc1fe3,0xb1b1c879,0x5b5bedb6,0x6a6abed4,0xcbcb468d,0xbebed967,0x39394b72,0x4a4ade94,0x4c4cd498,0x5858e8b0,0xcfcf4a85,0xd0d06bbb,0xefef2ac5,0xaaaae54f,0xfbfb16ed,0x4343c586,0x4d4dd79a,0x33335566,0x85859411,0x4545cf8a,0xf9f910e9,0x2020604,0x7f7f81fe,0x5050f0a0,0x3c3c4478,0x9f9fba25,0xa8a8e34b,0x5151f3a2,0xa3a3fe5d,0x4040c080,0x8f8f8a05,0x9292ad3f,0x9d9dbc21,0x38384870,0xf5f504f1,0xbcbcdf63,0xb6b6c177,0xdada75af,0x21216342,0x10103020,0xffff1ae5,0xf3f30efd,0xd2d26dbf,0xcdcd4c81,0xc0c1418,0x13133526,0xecec2fc3,0x5f5fe1be,0x9797a235,0x4444cc88,0x1717392e,0xc4c45793,0xa7a7f255,0x7e7e82fc,0x3d3d477a,0x6464acc8,0x5d5de7ba,0x19192b32,0x737395e6,0x6060a0c0,0x81819819,0x4f4fd19e,0xdcdc7fa3,0x22226644,0x2a2a7e54,0x9090ab3b,0x8888830b,0x4646ca8c,0xeeee29c7,0xb8b8d36b,0x14143c28,0xdede79a7,0x5e5ee2bc,0xb0b1d16,0xdbdb76ad,0xe0e03bdb,0x32325664,0x3a3a4e74,0xa0a1e14,0x4949db92,0x6060a0c,0x24246c48,0x5c5ce4b8,0xc2c25d9f,0xd3d36ebd,0xacacef43,0x6262a6c4,0x9191a839,0x9595a431,0xe4e437d3,0x79798bf2,0xe7e732d5,0xc8c8438b,0x3737596e,0x6d6db7da,0x8d8d8c01,0xd5d564b1,0x4e4ed29c,0xa9a9e049,0x6c6cb4d8,0x5656faac,0xf4f407f3,0xeaea25cf,0x6565afca,0x7a7a8ef4,0xaeaee947,0x8081810,0xbabad56f,0x787888f0,0x25256f4a,0x2e2e725c,0x1c1c2438,0xa6a6f157,0xb4b4c773,0xc6c65197,0xe8e823cb,0xdddd7ca1,0x74749ce8,0x1f1f213e,0x4b4bdd96,0xbdbddc61,0x8b8b860d,0x8a8a850f,0x707090e0,0x3e3e427c,0xb5b5c471,0x6666aacc,0x4848d890,0x3030506,0xf6f601f7,0xe0e121c,0x6161a3c2,0x35355f6a,0x5757f9ae,0xb9b9d069,0x86869117,0xc1c15899,0x1d1d273a,0x9e9eb927,0xe1e138d9,0xf8f813eb,0x9898b32b,0x11113322,0x6969bbd2,0xd9d970a9,0x8e8e8907,0x9494a733,0x9b9bb62d,0x1e1e223c,0x87879215,0xe9e920c9,0xcece4987,0x5555ffaa,0x28287850,0xdfdf7aa5,0x8c8c8f03,0xa1a1f859,0x89898009,0xd0d171a,0xbfbfda65,0xe6e631d7,0x4242c684,0x6868b8d0,0x4141c382,0x9999b029,0x2d2d775a,0xf0f111e,0xb0b0cb7b,0x5454fca8,0xbbbbd66d,0x16163a2c],_0x450e5b[_0x5a67dd([0x55,0x31])]=[0x0,0xe090d0b,0x1c121a16,0x121b171d,0x3824342c,0x362d3927,0x24362e3a,0x2a3f2331,0x70486858,0x7e416553,0x6c5a724e,0x62537f45,0x486c5c74,0x4665517f,0x547e4662,0x5a774b69,0xe090d0b0,0xee99ddbb,0xfc82caa6,0xf28bc7ad,0xd8b4e49c,0xd6bde997,0xc4a6fe8a,0xcaaff381,0x90d8b8e8,0x9ed1b5e3,0x8ccaa2fe,0x82c3aff5,0xa8fc8cc4,0xa6f581cf,0xb4ee96d2,0xbae79bd9,0xdb3bbb7b,0xd532b670,0xc729a16d,0xc920ac66,0xe31f8f57,0xed16825c,0xff0d9541,0xf104984a,0xab73d323,0xa57ade28,0xb761c935,0xb968c43e,0x9357e70f,0x9d5eea04,0x8f45fd19,0x814cf012,0x3bab6bcb,0x35a266c0,0x27b971dd,0x29b07cd6,0x38f5fe7,0xd8652ec,0x1f9d45f1,0x119448fa,0x4be30393,0x45ea0e98,0x57f11985,0x59f8148e,0x73c737bf,0x7dce3ab4,0x6fd52da9,0x61dc20a2,0xad766df6,0xa37f60fd,0xb16477e0,0xbf6d7aeb,0x955259da,0x9b5b54d1,0x894043cc,0x87494ec7,0xdd3e05ae,0xd33708a5,0xc12c1fb8,0xcf2512b3,0xe51a3182,0xeb133c89,0xf9082b94,0xf701269f,0x4de6bd46,0x43efb04d,0x51f4a750,0x5ffdaa5b,0x75c2896a,0x7bcb8461,0x69d0937c,0x67d99e77,0x3daed51e,0x33a7d815,0x21bccf08,0x2fb5c203,0x58ae132,0xb83ec39,0x1998fb24,0x1791f62f,0x764dd68d,0x7844db86,0x6a5fcc9b,0x6456c190,0x4e69e2a1,0x4060efaa,0x527bf8b7,0x5c72f5bc,0x605bed5,0x80cb3de,0x1a17a4c3,0x141ea9c8,0x3e218af9,0x302887f2,0x223390ef,0x2c3a9de4,0x96dd063d,0x98d40b36,0x8acf1c2b,0x84c61120,0xaef93211,0xa0f03f1a,0xb2eb2807,0xbce2250c,0xe6956e65,0xe89c636e,0xfa877473,0xf48e7978,0xdeb15a49,0xd0b85742,0xc2a3405f,0xccaa4d54,0x41ecdaf7,0x4fe5d7fc,0x5dfec0e1,0x53f7cdea,0x79c8eedb,0x77c1e3d0,0x65daf4cd,0x6bd3f9c6,0x31a4b2af,0x3fadbfa4,0x2db6a8b9,0x23bfa5b2,0x9808683,0x7898b88,0x15929c95,0x1b9b919e,0xa17c0a47,0xaf75074c,0xbd6e1051,0xb3671d5a,0x99583e6b,0x97513360,0x854a247d,0x8b432976,0xd134621f,0xdf3d6f14,0xcd267809,0xc32f7502,0xe9105633,0xe7195b38,0xf5024c25,0xfb0b412e,0x9ad7618c,0x94de6c87,0x86c57b9a,0x88cc7691,0xa2f355a0,0xacfa58ab,0xbee14fb6,0xb0e842bd,0xea9f09d4,0xe49604df,0xf68d13c2,0xf8841ec9,0xd2bb3df8,0xdcb230f3,0xcea927ee,0xc0a02ae5,0x7a47b13c,0x744ebc37,0x6655ab2a,0x685ca621,0x42638510,0x4c6a881b,0x5e719f06,0x5078920d,0xa0fd964,0x406d46f,0x161dc372,0x1814ce79,0x322bed48,0x3c22e043,0x2e39f75e,0x2030fa55,0xec9ab701,0xe293ba0a,0xf088ad17,0xfe81a01c,0xd4be832d,0xdab78e26,0xc8ac993b,0xc6a59430,0x9cd2df59,0x92dbd252,0x80c0c54f,0x8ec9c844,0xa4f6eb75,0xaaffe67e,0xb8e4f163,0xb6edfc68,0xc0a67b1,0x2036aba,0x10187da7,0x1e1170ac,0x342e539d,0x3a275e96,0x283c498b,0x26354480,0x7c420fe9,0x724b02e2,0x605015ff,0x6e5918f4,0x44663bc5,0x4a6f36ce,0x587421d3,0x567d2cd8,0x37a10c7a,0x39a80171,0x2bb3166c,0x25ba1b67,0xf853856,0x18c355d,0x13972240,0x1d9e2f4b,0x47e96422,0x49e06929,0x5bfb7e34,0x55f2733f,0x7fcd500e,0x71c45d05,0x63df4a18,0x6dd64713,0xd731dcca,0xd938d1c1,0xcb23c6dc,0xc52acbd7,0xef15e8e6,0xe11ce5ed,0xf307f2f0,0xfd0efffb,0xa779b492,0xa970b999,0xbb6bae84,0xb562a38f,0x9f5d80be,0x91548db5,0x834f9aa8,0x8d4697a3],_0x450e5b[_0x5a67dd([0x55,0x32])]=[0x0,0xb0e090d,0x161c121a,0x1d121b17,0x2c382434,0x27362d39,0x3a24362e,0x312a3f23,0x58704868,0x537e4165,0x4e6c5a72,0x4562537f,0x74486c5c,0x7f466551,0x62547e46,0x695a774b,0xb0e090d0,0xbbee99dd,0xa6fc82ca,0xadf28bc7,0x9cd8b4e4,0x97d6bde9,0x8ac4a6fe,0x81caaff3,0xe890d8b8,0xe39ed1b5,0xfe8ccaa2,0xf582c3af,0xc4a8fc8c,0xcfa6f581,0xd2b4ee96,0xd9bae79b,0x7bdb3bbb,0x70d532b6,0x6dc729a1,0x66c920ac,0x57e31f8f,0x5ced1682,0x41ff0d95,0x4af10498,0x23ab73d3,0x28a57ade,0x35b761c9,0x3eb968c4,0xf9357e7,0x49d5eea,0x198f45fd,0x12814cf0,0xcb3bab6b,0xc035a266,0xdd27b971,0xd629b07c,0xe7038f5f,0xec0d8652,0xf11f9d45,0xfa119448,0x934be303,0x9845ea0e,0x8557f119,0x8e59f814,0xbf73c737,0xb47dce3a,0xa96fd52d,0xa261dc20,0xf6ad766d,0xfda37f60,0xe0b16477,0xebbf6d7a,0xda955259,0xd19b5b54,0xcc894043,0xc787494e,0xaedd3e05,0xa5d33708,0xb8c12c1f,0xb3cf2512,0x82e51a31,0x89eb133c,0x94f9082b,0x9ff70126,0x464de6bd,0x4d43efb0,0x5051f4a7,0x5b5ffdaa,0x6a75c289,0x617bcb84,0x7c69d093,0x7767d99e,0x1e3daed5,0x1533a7d8,0x821bccf,0x32fb5c2,0x32058ae1,0x390b83ec,0x241998fb,0x2f1791f6,0x8d764dd6,0x867844db,0x9b6a5fcc,0x906456c1,0xa14e69e2,0xaa4060ef,0xb7527bf8,0xbc5c72f5,0xd50605be,0xde080cb3,0xc31a17a4,0xc8141ea9,0xf93e218a,0xf2302887,0xef223390,0xe42c3a9d,0x3d96dd06,0x3698d40b,0x2b8acf1c,0x2084c611,0x11aef932,0x1aa0f03f,0x7b2eb28,0xcbce225,0x65e6956e,0x6ee89c63,0x73fa8774,0x78f48e79,0x49deb15a,0x42d0b857,0x5fc2a340,0x54ccaa4d,0xf741ecda,0xfc4fe5d7,0xe15dfec0,0xea53f7cd,0xdb79c8ee,0xd077c1e3,0xcd65daf4,0xc66bd3f9,0xaf31a4b2,0xa43fadbf,0xb92db6a8,0xb223bfa5,0x83098086,0x8807898b,0x9515929c,0x9e1b9b91,0x47a17c0a,0x4caf7507,0x51bd6e10,0x5ab3671d,0x6b99583e,0x60975133,0x7d854a24,0x768b4329,0x1fd13462,0x14df3d6f,0x9cd2678,0x2c32f75,0x33e91056,0x38e7195b,0x25f5024c,0x2efb0b41,0x8c9ad761,0x8794de6c,0x9a86c57b,0x9188cc76,0xa0a2f355,0xabacfa58,0xb6bee14f,0xbdb0e842,0xd4ea9f09,0xdfe49604,0xc2f68d13,0xc9f8841e,0xf8d2bb3d,0xf3dcb230,0xeecea927,0xe5c0a02a,0x3c7a47b1,0x37744ebc,0x2a6655ab,0x21685ca6,0x10426385,0x1b4c6a88,0x65e719f,0xd507892,0x640a0fd9,0x6f0406d4,0x72161dc3,0x791814ce,0x48322bed,0x433c22e0,0x5e2e39f7,0x552030fa,0x1ec9ab7,0xae293ba,0x17f088ad,0x1cfe81a0,0x2dd4be83,0x26dab78e,0x3bc8ac99,0x30c6a594,0x599cd2df,0x5292dbd2,0x4f80c0c5,0x448ec9c8,0x75a4f6eb,0x7eaaffe6,0x63b8e4f1,0x68b6edfc,0xb10c0a67,0xba02036a,0xa710187d,0xac1e1170,0x9d342e53,0x963a275e,0x8b283c49,0x80263544,0xe97c420f,0xe2724b02,0xff605015,0xf46e5918,0xc544663b,0xce4a6f36,0xd3587421,0xd8567d2c,0x7a37a10c,0x7139a801,0x6c2bb316,0x6725ba1b,0x560f8538,0x5d018c35,0x40139722,0x4b1d9e2f,0x2247e964,0x2949e069,0x345bfb7e,0x3f55f273,0xe7fcd50,0x571c45d,0x1863df4a,0x136dd647,0xcad731dc,0xc1d938d1,0xdccb23c6,0xd7c52acb,0xe6ef15e8,0xede11ce5,0xf0f307f2,0xfbfd0eff,0x92a779b4,0x99a970b9,0x84bb6bae,0x8fb562a3,0xbe9f5d80,0xb591548d,0xa8834f9a,0xa38d4697],_0x450e5b[_0x5a67dd([0x55,0x33])]=[0x0,0xd0b0e09,0x1a161c12,0x171d121b,0x342c3824,0x3927362d,0x2e3a2436,0x23312a3f,0x68587048,0x65537e41,0x724e6c5a,0x7f456253,0x5c74486c,0x517f4665,0x4662547e,0x4b695a77,0xd0b0e090,0xddbbee99,0xcaa6fc82,0xc7adf28b,0xe49cd8b4,0xe997d6bd,0xfe8ac4a6,0xf381caaf,0xb8e890d8,0xb5e39ed1,0xa2fe8cca,0xaff582c3,0x8cc4a8fc,0x81cfa6f5,0x96d2b4ee,0x9bd9bae7,0xbb7bdb3b,0xb670d532,0xa16dc729,0xac66c920,0x8f57e31f,0x825ced16,0x9541ff0d,0x984af104,0xd323ab73,0xde28a57a,0xc935b761,0xc43eb968,0xe70f9357,0xea049d5e,0xfd198f45,0xf012814c,0x6bcb3bab,0x66c035a2,0x71dd27b9,0x7cd629b0,0x5fe7038f,0x52ec0d86,0x45f11f9d,0x48fa1194,0x3934be3,0xe9845ea,0x198557f1,0x148e59f8,0x37bf73c7,0x3ab47dce,0x2da96fd5,0x20a261dc,0x6df6ad76,0x60fda37f,0x77e0b164,0x7aebbf6d,0x59da9552,0x54d19b5b,0x43cc8940,0x4ec78749,0x5aedd3e,0x8a5d337,0x1fb8c12c,0x12b3cf25,0x3182e51a,0x3c89eb13,0x2b94f908,0x269ff701,0xbd464de6,0xb04d43ef,0xa75051f4,0xaa5b5ffd,0x896a75c2,0x84617bcb,0x937c69d0,0x9e7767d9,0xd51e3dae,0xd81533a7,0xcf0821bc,0xc2032fb5,0xe132058a,0xec390b83,0xfb241998,0xf62f1791,0xd68d764d,0xdb867844,0xcc9b6a5f,0xc1906456,0xe2a14e69,0xefaa4060,0xf8b7527b,0xf5bc5c72,0xbed50605,0xb3de080c,0xa4c31a17,0xa9c8141e,0x8af93e21,0x87f23028,0x90ef2233,0x9de42c3a,0x63d96dd,0xb3698d4,0x1c2b8acf,0x112084c6,0x3211aef9,0x3f1aa0f0,0x2807b2eb,0x250cbce2,0x6e65e695,0x636ee89c,0x7473fa87,0x7978f48e,0x5a49deb1,0x5742d0b8,0x405fc2a3,0x4d54ccaa,0xdaf741ec,0xd7fc4fe5,0xc0e15dfe,0xcdea53f7,0xeedb79c8,0xe3d077c1,0xf4cd65da,0xf9c66bd3,0xb2af31a4,0xbfa43fad,0xa8b92db6,0xa5b223bf,0x86830980,0x8b880789,0x9c951592,0x919e1b9b,0xa47a17c,0x74caf75,0x1051bd6e,0x1d5ab367,0x3e6b9958,0x33609751,0x247d854a,0x29768b43,0x621fd134,0x6f14df3d,0x7809cd26,0x7502c32f,0x5633e910,0x5b38e719,0x4c25f502,0x412efb0b,0x618c9ad7,0x6c8794de,0x7b9a86c5,0x769188cc,0x55a0a2f3,0x58abacfa,0x4fb6bee1,0x42bdb0e8,0x9d4ea9f,0x4dfe496,0x13c2f68d,0x1ec9f884,0x3df8d2bb,0x30f3dcb2,0x27eecea9,0x2ae5c0a0,0xb13c7a47,0xbc37744e,0xab2a6655,0xa621685c,0x85104263,0x881b4c6a,0x9f065e71,0x920d5078,0xd9640a0f,0xd46f0406,0xc372161d,0xce791814,0xed48322b,0xe0433c22,0xf75e2e39,0xfa552030,0xb701ec9a,0xba0ae293,0xad17f088,0xa01cfe81,0x832dd4be,0x8e26dab7,0x993bc8ac,0x9430c6a5,0xdf599cd2,0xd25292db,0xc54f80c0,0xc8448ec9,0xeb75a4f6,0xe67eaaff,0xf163b8e4,0xfc68b6ed,0x67b10c0a,0x6aba0203,0x7da71018,0x70ac1e11,0x539d342e,0x5e963a27,0x498b283c,0x44802635,0xfe97c42,0x2e2724b,0x15ff6050,0x18f46e59,0x3bc54466,0x36ce4a6f,0x21d35874,0x2cd8567d,0xc7a37a1,0x17139a8,0x166c2bb3,0x1b6725ba,0x38560f85,0x355d018c,0x22401397,0x2f4b1d9e,0x642247e9,0x692949e0,0x7e345bfb,0x733f55f2,0x500e7fcd,0x5d0571c4,0x4a1863df,0x47136dd6,0xdccad731,0xd1c1d938,0xc6dccb23,0xcbd7c52a,0xe8e6ef15,0xe5ede11c,0xf2f0f307,0xfffbfd0e,0xb492a779,0xb999a970,0xae84bb6b,0xa38fb562,0x80be9f5d,0x8db59154,0x9aa8834f,0x97a38d46],_0x450e5b[_0x5a67dd([0x55,0x34])]=[0x0,0x90d0b0e,0x121a161c,0x1b171d12,0x24342c38,0x2d392736,0x362e3a24,0x3f23312a,0x48685870,0x4165537e,0x5a724e6c,0x537f4562,0x6c5c7448,0x65517f46,0x7e466254,0x774b695a,0x90d0b0e0,0x99ddbbee,0x82caa6fc,0x8bc7adf2,0xb4e49cd8,0xbde997d6,0xa6fe8ac4,0xaff381ca,0xd8b8e890,0xd1b5e39e,0xcaa2fe8c,0xc3aff582,0xfc8cc4a8,0xf581cfa6,0xee96d2b4,0xe79bd9ba,0x3bbb7bdb,0x32b670d5,0x29a16dc7,0x20ac66c9,0x1f8f57e3,0x16825ced,0xd9541ff,0x4984af1,0x73d323ab,0x7ade28a5,0x61c935b7,0x68c43eb9,0x57e70f93,0x5eea049d,0x45fd198f,0x4cf01281,0xab6bcb3b,0xa266c035,0xb971dd27,0xb07cd629,0x8f5fe703,0x8652ec0d,0x9d45f11f,0x9448fa11,0xe303934b,0xea0e9845,0xf1198557,0xf8148e59,0xc737bf73,0xce3ab47d,0xd52da96f,0xdc20a261,0x766df6ad,0x7f60fda3,0x6477e0b1,0x6d7aebbf,0x5259da95,0x5b54d19b,0x4043cc89,0x494ec787,0x3e05aedd,0x3708a5d3,0x2c1fb8c1,0x2512b3cf,0x1a3182e5,0x133c89eb,0x82b94f9,0x1269ff7,0xe6bd464d,0xefb04d43,0xf4a75051,0xfdaa5b5f,0xc2896a75,0xcb84617b,0xd0937c69,0xd99e7767,0xaed51e3d,0xa7d81533,0xbccf0821,0xb5c2032f,0x8ae13205,0x83ec390b,0x98fb2419,0x91f62f17,0x4dd68d76,0x44db8678,0x5fcc9b6a,0x56c19064,0x69e2a14e,0x60efaa40,0x7bf8b752,0x72f5bc5c,0x5bed506,0xcb3de08,0x17a4c31a,0x1ea9c814,0x218af93e,0x2887f230,0x3390ef22,0x3a9de42c,0xdd063d96,0xd40b3698,0xcf1c2b8a,0xc6112084,0xf93211ae,0xf03f1aa0,0xeb2807b2,0xe2250cbc,0x956e65e6,0x9c636ee8,0x877473fa,0x8e7978f4,0xb15a49de,0xb85742d0,0xa3405fc2,0xaa4d54cc,0xecdaf741,0xe5d7fc4f,0xfec0e15d,0xf7cdea53,0xc8eedb79,0xc1e3d077,0xdaf4cd65,0xd3f9c66b,0xa4b2af31,0xadbfa43f,0xb6a8b92d,0xbfa5b223,0x80868309,0x898b8807,0x929c9515,0x9b919e1b,0x7c0a47a1,0x75074caf,0x6e1051bd,0x671d5ab3,0x583e6b99,0x51336097,0x4a247d85,0x4329768b,0x34621fd1,0x3d6f14df,0x267809cd,0x2f7502c3,0x105633e9,0x195b38e7,0x24c25f5,0xb412efb,0xd7618c9a,0xde6c8794,0xc57b9a86,0xcc769188,0xf355a0a2,0xfa58abac,0xe14fb6be,0xe842bdb0,0x9f09d4ea,0x9604dfe4,0x8d13c2f6,0x841ec9f8,0xbb3df8d2,0xb230f3dc,0xa927eece,0xa02ae5c0,0x47b13c7a,0x4ebc3774,0x55ab2a66,0x5ca62168,0x63851042,0x6a881b4c,0x719f065e,0x78920d50,0xfd9640a,0x6d46f04,0x1dc37216,0x14ce7918,0x2bed4832,0x22e0433c,0x39f75e2e,0x30fa5520,0x9ab701ec,0x93ba0ae2,0x88ad17f0,0x81a01cfe,0xbe832dd4,0xb78e26da,0xac993bc8,0xa59430c6,0xd2df599c,0xdbd25292,0xc0c54f80,0xc9c8448e,0xf6eb75a4,0xffe67eaa,0xe4f163b8,0xedfc68b6,0xa67b10c,0x36aba02,0x187da710,0x1170ac1e,0x2e539d34,0x275e963a,0x3c498b28,0x35448026,0x420fe97c,0x4b02e272,0x5015ff60,0x5918f46e,0x663bc544,0x6f36ce4a,0x7421d358,0x7d2cd856,0xa10c7a37,0xa8017139,0xb3166c2b,0xba1b6725,0x8538560f,0x8c355d01,0x97224013,0x9e2f4b1d,0xe9642247,0xe0692949,0xfb7e345b,0xf2733f55,0xcd500e7f,0xc45d0571,0xdf4a1863,0xd647136d,0x31dccad7,0x38d1c1d9,0x23c6dccb,0x2acbd7c5,0x15e8e6ef,0x1ce5ede1,0x7f2f0f3,0xefffbfd,0x79b492a7,0x70b999a9,0x6bae84bb,0x62a38fb5,0x5d80be9f,0x548db591,0x4f9aa883,0x4697a38d];const _0x8334ae=new Uint8Array(0x10);for(let _0x25a2fa=0xf;_0x25a2fa>=0x0;--_0x25a2fa)_0x8334ae[_0x25a2fa]=_0x55c83c%0x100,_0x55c83c=parseInt(_0x55c83c/0x100);let _0x204c87=null,_0x16e669=0x10;const _0x1d19f6=new Uint8Array(_0x3e3be5),_0x37f8f4=[],_0x14dbbe=[];_0x144ddb();for(let _0x3a931c=0x0;_0x3a931c<_0x4aabf3[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a931c++)0x10===_0x16e669&&(_0x204c87=_0x1a4df8(_0x8334ae),_0x16e669=0x0,_0x4d46b5(_0x8334ae)),_0x4aabf3[_0x3a931c]^=_0x204c87[_0x16e669++];return _0x4aabf3;function _0xb8e351(_0x27c096){const _0x24050d=[];for(let _0x40c258=0x0;_0x40c258<_0x27c096[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40c258+=0x4)_0x24050d[_0x5a67dd([0x70,0x75,0x73,0x68])](_0x27c096[_0x40c258]<<0x18|_0x27c096[_0x40c258+0x1]<<0x10|_0x27c096[_0x40c258+0x2]<<0x8|_0x27c096[_0x40c258+0x3]);return _0x24050d;}function _0x4d46b5(_0x980b02){for(let _0x34f19c=0xf;_0x34f19c>=0x0;_0x34f19c--){if(0xff!==_0x980b02[_0x34f19c]){_0x980b02[_0x34f19c]++;break;}_0x980b02[_0x34f19c]=0x0;}}function _0x1a4df8(_0x3617bf){const _0x43f23b=_0x37f8f4[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x1,_0x862a26=[0x0,0x0,0x0,0x0];let t=_0xb8e351(_0x3617bf);for(let _0x15d833=0x0;_0x15d833<0x4;_0x15d833++)t[_0x15d833]^=_0x37f8f4[0x0][_0x15d833];for(let _0x22a86b=0x1;_0x22a86b<_0x43f23b;_0x22a86b++){for(let _0x1aad20=0x0;_0x1aad20<0x4;_0x1aad20++)_0x862a26[_0x1aad20]=_0x450e5b[_0x5a67dd([0x54,0x31])][t[_0x1aad20]>>0x18&0xff]^_0x450e5b[_0x5a67dd([0x54,0x32])][t[(_0x1aad20+0x1)%0x4]>>0x10&0xff]^_0x450e5b[_0x5a67dd([0x54,0x33])][t[(_0x1aad20+0x2)%0x4]>>0x8&0xff]^_0x450e5b[_0x5a67dd([0x54,0x34])][0xff&t[(_0x1aad20+0x3)%0x4]]^_0x37f8f4[_0x22a86b][_0x1aad20];t=_0x862a26[_0x5a67dd([0x73,0x6c,0x69,0x63,0x65])]();}const _0x411e92=new Uint8Array(0x10);let _0x54844e;for(let _0x575552=0x0;_0x575552<0x4;_0x575552++)_0x54844e=_0x37f8f4[_0x43f23b][_0x575552],_0x411e92[0x4*_0x575552]=0xff&(_0x450e5b[_0x5a67dd([0x53])][t[_0x575552]>>0x18&0xff]^_0x54844e>>0x18),_0x411e92[0x4*_0x575552+0x1]=0xff&(_0x450e5b[_0x5a67dd([0x53])][t[(_0x575552+0x1)%0x4]>>0x10&0xff]^_0x54844e>>0x10),_0x411e92[0x4*_0x575552+0x2]=0xff&(_0x450e5b[_0x5a67dd([0x53])][t[(_0x575552+0x2)%0x4]>>0x8&0xff]^_0x54844e>>0x8),_0x411e92[0x4*_0x575552+0x3]=0xff&(_0x450e5b[_0x5a67dd([0x53])][0xff&t[(_0x575552+0x3)%0x4]]^_0x54844e);return _0x411e92;}function _0x144ddb(){const _0x47ccb6=_0x450e5b[_0x5a67dd([0x6e,0x75,0x6d,0x62,0x65,0x72,0x4f,0x66,0x52,0x6f,0x75,0x6e,0x64,0x73])][_0x1d19f6[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]];for(let _0x5e5c89=0x0;_0x5e5c89<=_0x47ccb6;_0x5e5c89++)_0x37f8f4[_0x5a67dd([0x70,0x75,0x73,0x68])]([0x0,0x0,0x0,0x0]),_0x14dbbe[_0x5a67dd([0x70,0x75,0x73,0x68])]([0x0,0x0,0x0,0x0]);const _0x4784f5=0x4*(_0x47ccb6+0x1),_0x55831a=_0x1d19f6[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]/0x4,_0x449083=_0xb8e351(_0x1d19f6);let _0x4ed7a0;for(let _0x2de90a=0x0;_0x2de90a<_0x55831a;_0x2de90a++)_0x4ed7a0=_0x2de90a>>0x2,_0x37f8f4[_0x4ed7a0][_0x2de90a%0x4]=_0x449083[_0x2de90a],_0x14dbbe[_0x47ccb6-_0x4ed7a0][_0x2de90a%0x4]=_0x449083[_0x2de90a];let _0x4d9e9a,_0xbe246a=0x0,t=_0x55831a;for(;t<_0x4784f5;){_0x4d9e9a=_0x449083[_0x55831a-0x1],_0x449083[0x0]^=_0x450e5b[_0x5a67dd([0x53])][_0x4d9e9a>>0x10&0xff]<<0x18^_0x450e5b[_0x5a67dd([0x53])][_0x4d9e9a>>0x8&0xff]<<0x10^_0x450e5b[_0x5a67dd([0x53])][0xff&_0x4d9e9a]<<0x8^_0x450e5b[_0x5a67dd([0x53])][_0x4d9e9a>>0x18&0xff]^_0x450e5b[_0x5a67dd([0x72,0x63,0x6f,0x6e])][_0xbe246a]<<0x18,_0xbe246a+=0x1;for(let _0x1a653d=0x1;_0x1a653d<_0x55831a/0x2;_0x1a653d++)_0x449083[_0x1a653d]^=_0x449083[_0x1a653d-0x1];_0x4d9e9a=_0x449083[_0x55831a/0x2-0x1],_0x449083[_0x55831a/0x2]^=_0x450e5b[_0x5a67dd([0x53])][0xff&_0x4d9e9a]^_0x450e5b[_0x5a67dd([0x53])][_0x4d9e9a>>0x8&0xff]<<0x8^_0x450e5b[_0x5a67dd([0x53])][_0x4d9e9a>>0x10&0xff]<<0x10^_0x450e5b[_0x5a67dd([0x53])][_0x4d9e9a>>0x18&0xff]<<0x18;for(let _0xd0e928=_0x55831a/0x2+0x1;_0xd0e928<_0x55831a;_0xd0e928++)_0x449083[_0xd0e928]^=_0x449083[_0xd0e928-0x1];let _0x460fd8,_0x93922a,_0x1d6b87=0x0;for(;_0x1d6b87<_0x55831a&&t<_0x4784f5;)_0x460fd8=t>>0x2,_0x93922a=t%0x4,_0x37f8f4[_0x460fd8][_0x93922a]=_0x449083[_0x1d6b87],_0x14dbbe[_0x47ccb6-_0x460fd8][_0x93922a]=_0x449083[_0x1d6b87++],t++;}for(let _0x543cda=0x1;_0x543cda<_0x47ccb6;_0x543cda++)for(let _0x1ac895=0x0;_0x1ac895<0x4;_0x1ac895++)_0x4d9e9a=_0x14dbbe[_0x543cda][_0x1ac895],_0x14dbbe[_0x543cda][_0x1ac895]=_0x450e5b[_0x5a67dd([0x55,0x31])][_0x4d9e9a>>0x18&0xff]^_0x450e5b[_0x5a67dd([0x55,0x32])][_0x4d9e9a>>0x10&0xff]^_0x450e5b[_0x5a67dd([0x55,0x33])][_0x4d9e9a>>0x8&0xff]^_0x450e5b[_0x5a67dd([0x55,0x34])][0xff&_0x4d9e9a];}}function _0x5a67dd(_0x2e203f){return _0x2e203f['map'](_0x137047=>String['fromCharCode'](_0x137047))['join']('');}(_0x7e9c4a=>{function _0x29499b(){const _0xc97e4b=[{[_0x5a67dd([0x69,0x64])]:0x1,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]:[{[_0x5a67dd([0x69,0x64])]:0x2,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x54,0x72,0x61,0x63,0x6b,0x20,0x43,0x68,0x61,0x6e,0x67,0x65,0x73]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x46,0x6f,0x72,0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]:!0x0,[_0x5a67dd([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]:!0x0,[_0x5a67dd([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]:!0x0}}],[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]:!0x0,[_0x5a67dd([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]:!0x0,[_0x5a67dd([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]:!0x0}},{[_0x5a67dd([0x69,0x64])]:0x3,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x50,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x50,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x6f,0x6f,0x6b,0x75,0x70]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])},{[_0x5a67dd([0x69,0x64])]:0x4,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x20,0x48,0x69,0x73,0x74,0x6f,0x72,0x79]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x46,0x6f,0x72,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]:!0x0,[_0x5a67dd([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]:!0x0,[_0x5a67dd([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]:!0x0}},{[_0x5a67dd([0x69,0x64])]:0x5,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x20,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65,0x55,0x49]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x64,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc]}},{[_0x5a67dd([0x69,0x64])]:0x6,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x46,0x6f,0x72,0x6d,0x61,0x74,0x20,0x50,0x61,0x69,0x6e,0x74,0x65,0x72]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x46,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x55,0x49]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc]}},{[_0x5a67dd([0x69,0x64])]:0x7,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x53,0x6c,0x61,0x73,0x68,0x20,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x53,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x55,0x49]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc]}},{[_0x5a67dd([0x69,0x64])]:0x8,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x54,0x61,0x62,0x6c,0x65,0x20,0x6f,0x66,0x20,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x54,0x61,0x62,0x6c,0x65,0x4f,0x66,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x74,0x61,0x62,0x6c,0x65,0x4f,0x66,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc]}},{[_0x5a67dd([0x69,0x64])]:0x9,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x55,0x49]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc,0xe]}},{[_0x5a67dd([0x69,0x64])]:0xa,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x50,0x61,0x73,0x74,0x65,0x20,0x66,0x72,0x6f,0x6d,0x20,0x4f,0x66,0x66,0x69,0x63,0x65,0x20,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x50,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x72]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x70,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc]}},{[_0x5a67dd([0x69,0x64])]:0xb,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x41,0x49,0x20,0x41,0x73,0x73,0x69,0x73,0x74,0x61,0x6e,0x74]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x41,0x49,0x41,0x73,0x73,0x69,0x73,0x74,0x61,0x6e,0x74,0x55,0x49]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])},{[_0x5a67dd([0x69,0x64])]:0xc,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x50,0x72,0x6f,0x64,0x75,0x63,0x74,0x69,0x76,0x69,0x74,0x79,0x20,0x70,0x61,0x63,0x6b])},{[_0x5a67dd([0x69,0x64])]:0xd,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x43,0x61,0x73,0x65,0x20,0x43,0x68,0x61,0x6e,0x67,0x65]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x43,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x55,0x49]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc]}},{[_0x5a67dd([0x69,0x64])]:0xe,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x44,0x72,0x75,0x70,0x61,0x6c,0x20,0x70,0x61,0x63,0x6b]),[_0x5a67dd([0x66,0x6f,0x72,0x62,0x69,0x64,0x64,0x65,0x6e,0x48,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x66,0x6f,0x72,0x62,0x69,0x64,0x64,0x65,0x6e,0x48,0x61,0x6e,0x64,0x6c,0x65,0x72,0x46,0x6f,0x72,0x44,0x72,0x75,0x70,0x61,0x6c])},{[_0x5a67dd([0x69,0x64])]:0xf,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x4d,0x75,0x6c,0x74,0x69,0x20,0x4c,0x65,0x76,0x65,0x6c,0x20,0x4c,0x69,0x73,0x74]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x4d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x6d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])},{[_0x5a67dd([0x69,0x64])]:0x10,[_0x5a67dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x4d,0x65,0x72,0x67,0x65,0x20,0x46,0x69,0x65,0x6c,0x64,0x73]),[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x5a67dd([0x4d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x55,0x49]),[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x5a67dd([0x6d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x5a67dd([0x66,0x67,0x69])]:[0xc]}}];return _0x5a4061(_0xc97e4b),_0xc97e4b;function _0x26fddd(_0xbada5b){return 0x1<<_0xbada5b-0x1;}function _0x5a4061(_0x2e7eb4){_0x2e7eb4[_0x5a67dd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x425bce=>{_0x425bce[_0x5a67dd([0x70,0x65,0x72,0x6d,0x69,0x73,0x73,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b])]=_0x26fddd(_0x425bce[_0x5a67dd([0x69,0x64])]),_0x3dbbcd(_0x425bce)&&_0x425bce[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]&&_0x5a4061(_0x425bce[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]);});}}function _0x3dbbcd(_0xa5a31d){return _0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])in _0xa5a31d;}const _0x5a9b57=[0x1,0x55,0x4e,0x73,0xc6,0xff,0x32,0x70,0x53,0x57,0xa1],_0x163172=[0x7f,0x22,0x6,0xd3,0xa7,0x56,0x92,0xc7,0x84,0xa0,0x12];function _0x5d975d(_0x27fc90){const _0x262a55=[0x1d,0xdd,0xaf,0x5a,0xe7,0x85,0xef,0xf0,0x4b,0xb4];return _0x543d2d(_0x27fc90,new Uint8Array([..._0x5a9b57,..._0x262a55,..._0x163172]));}function _0x543d2d(_0x12b5a8,_0x45bcb8){const _0x66de49=_0x11f5d8(_0x12b5a8),_0x22adb4=Array[_0x5a67dd([0x66,0x72,0x6f,0x6d])](_0x3a3029(_0x66de49)),_0x194b55=_0x22adb4[_0x5a67dd([0x70,0x6f,0x70])](),_0x566f74=_0x22adb4[_0x5a67dd([0x70,0x6f,0x70])]();return _0x4bfb16(_0x5a3299(_0x22adb4,_0x45bcb8,_0x566f74+0x100*_0x194b55));}function _0x11f5d8(_0x2b3cef){const _0x30418a=atob(_0x2b3cef),[_0x71d47d,_0xc7db38]=_0x30418a[_0x5a67dd([0x73,0x70,0x6c,0x69,0x74])](_0x5a67dd([0x2d]));try{if(atob(_0xc7db38))return atob(_0x71d47d);}catch(_0x1df870){}return _0x30418a;}function _0x3eac9b(_0x7cd5a8){try{const _0x3d70a9=_0x5d975d(_0x7cd5a8),_0x15ae23=JSON[_0x5a67dd([0x70,0x61,0x72,0x73,0x65])](_0x3d70a9),_0x358b9c=parseInt(_0x15ae23[_0x5a67dd([0x31])]),_0x2945d3=_0x15ae23[_0x5a67dd([0x32])]||'',_0x401511=parseInt(_0x15ae23[_0x5a67dd([0x33])]),_0xd963fb=parseInt(_0x15ae23[_0x5a67dd([0x34])])||0x0,_0x212737=parseInt(_0x15ae23[_0x5a67dd([0x35])])||0x0;return{[_0x5a67dd([0x70,0x72,0x6f,0x64,0x75,0x63,0x74,0x4e,0x61,0x6d,0x65])]:_0x2945d3,[_0x5a67dd([0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x50,0x6c,0x75,0x67,0x69,0x6e,0x73])]:_0xd963fb,[_0x5a67dd([0x65,0x78,0x70,0x69,0x72,0x61,0x74,0x69,0x6f,0x6e,0x44,0x61,0x74,0x65])]:_0x358b9c,[_0x5a67dd([0x69,0x73,0x54,0x72,0x69,0x61,0x6c])]:_0x401511,[_0x5a67dd([0x69,0x73,0x49,0x6e,0x74,0x65,0x72,0x6e,0x61,0x6c])]:_0x212737};}catch(_0x5a3153){return null;}}const _0x3001e2=_0x29499b(),_0xa63dd3={[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])]:_0x4f9f82,[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x46,0x6f,0x72,0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73])]:_0x457a16,[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x46,0x6f,0x72,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79])]:_0x340819},_0x4aa0b5=_0x7e9c4a[_0x5a67dd([0x63,0x6f,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x6f,0x72])][_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])],_0x41dd6e=_0x5a67dd([0x63,0x6f,0x6e,0x74,0x65,0x78,0x74])in _0x7e9c4a?_0x7e9c4a['context']:_0x7e9c4a['editor'],_0x4fef9d=_0x5a67dd([0x34,0x30,0x34,0x38,0x32,0x32,0x31,0x32]),_0x580e23=_0x5a67dd([0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39]),_0x4438df=_0x41dd6e['config']['get'](_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x249ffb=_0x3001e2[_0x5a67dd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3dbbcd)[_0x5a67dd([0x66,0x69,0x6e,0x64])](_0x57f801=>_0x57f801[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]===_0x4aa0b5);function _0x1d670a(_0x500f64,_0x10e216){_0xa63dd3[_0x10e216[_0x5a67dd([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]](_0x500f64,_0x10e216),_0x10e216[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]&&_0x10e216[_0x5a67dd([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])][_0x5a67dd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49fd19=>_0x59f785(_0x41dd6e,_0x49fd19[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]))[_0x5a67dd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e1e67=>_0x1d670a(_0x500f64,_0x3e1e67));}function _0x4f9f82(_0x26d1dd,_0x218ab9){_0x254996(_0x4749d3(_0x26d1dd,_0x218ab9),_0x218ab9);}function _0x457a16(_0x1660d1,_0x4380c3){function _0x314585(_0x1c3e2b,_0x34471c){try{if(_0x59f785(_0x41dd6e,_0x5a67dd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]))&&_0x1c3e2b){const _0x5d3be8=_0x23617b(_0x41dd6e,_0x5a67dd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]))[_0x5a67dd([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])];if(parseInt(_0x5d3be8)/0x2>_0x1c3e2b[_0x5a67dd([0x65,0x78,0x70,0x69,0x72,0x61,0x74,0x69,0x6f,0x6e,0x44,0x61,0x74,0x65])])return _0x4f7d47(_0x34471c[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}return _0x4749d3(_0x1c3e2b,_0x34471c);}catch(_0x580f92){return _0x4f7d47(_0x34471c[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}}_0x254996(_0x314585(_0x1660d1,_0x4380c3),_0x4380c3);}function _0x340819(_0x5ad37c,_0xec3b1c){const _0xae597c=_0x163172[0x0]*_0x5a9b57[0x1],_0x8ea88a=_0x163172[0x0]*_0x5a9b57[0x2],_0x276fed=_0x163172[0x2]*_0x5a9b57[0x2];_0x59f785(_0x41dd6e,_0x5a67dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x23617b(_0x41dd6e,_0x5a67dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5a67dd([0x73,0x74,0x61,0x74,0x65])]==_0x5a67dd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64])&&(window[_0x39c6d9()]=_0x276fed);function _0x3cfe6a(_0x277c55,_0x3a690c){try{return _0x53a718()?_0x4f7d47(_0x3a690c[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x56,0x61,0x6c,0x69,0x64])):_0x4749d3(_0x277c55,_0x3a690c);}catch(_0x33a1c7){return _0x4f7d47(_0x3a690c[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}}function _0x1d1805(_0xd39ce3,_0x245aea){const _0x18d81f=0x7;if(_0xd39ce3==_0x245aea[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]))_0x38cdf5();else{if(_0xd39ce3==_0x245aea[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c])){const _0xbfab80=_0xdc038e();_0xbfab80&&_0x217052(_0xbfab80,_0x245aea[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]);const _0x468491=_0x513bac();window[_0x5a67dd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](()=>{_0x217052(_0x5a67dd([0x74,0x69,0x6d,0x65]),_0x245aea[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]);},_0x468491);const _0x568fa9=_0x23617b(_0x41dd6e,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x5a67dd([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];_0x568fa9[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x18d81f?_0x217052(_0x5a67dd([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73]),_0x245aea[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]):_0x568fa9['on'](_0x5a67dd([0x61,0x64,0x64]),()=>{_0x568fa9[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x18d81f&&_0x217052(_0x5a67dd([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73]),_0x245aea[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]);});}}}function _0xdc038e(){if(!_0x59f785(_0x41dd6e,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72])))return!0x1;for(const _0x2c67ae in window)if(Number['isNaN'](Number(_0x2c67ae))){if(window[_0x2c67ae]===_0xae597c)return _0x5a67dd([0x74,0x69,0x6d,0x65]);if(window[_0x2c67ae]===_0x8ea88a)return _0x5a67dd([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73]);}return!0x1;}function _0x53a718(){if(!_0x59f785(_0x41dd6e,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72])))return!0x1;for(const _0x264b2e in window)if(Number['isNaN'](Number(_0x264b2e))&&window[_0x264b2e]===_0x276fed)return!0x0;return!0x1;}function _0x217052(_0x27391d,_0x2cbf42){_0x38cdf5(),_0x4f7d47(_0x2cbf42+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a])+_0x27391d),window[_0x39c6d9()]=_0x27391d===_0x5a67dd([0x74,0x69,0x6d,0x65])?_0xae597c:_0x8ea88a;}function _0x513bac(){let _0x2541b9=_0x163172[0x6]*_0x5a9b57[0x8]*_0x5a9b57[0x6];return _0x59f785(_0x41dd6e,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&(_0x2541b9/=0xa),_0x2541b9;}function _0x38cdf5(){const _0xdfffe0=_0x41dd6e;function _0x53c1c8(){_0x59f785(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))&&(_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x5a67dd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5a67dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x5a67dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x5a67dd([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5a2e1c,_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x5a67dd([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5a2e1c,_0xdfffe0[_0x5a67dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a67dd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a2e1c,_0xdfffe0[_0x5a67dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a67dd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a2e1c,_0xdfffe0[_0x5a67dd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a67dd([0x6d,0x6f,0x64,0x65,0x6c]))),_0x59f785(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&(_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x5a67dd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5a67dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x5a67dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x5a67dd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5a2e1c,_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x5a67dd([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5a2e1c);}_0xdfffe0[_0x5a67dd([0x73,0x74,0x61,0x74,0x65])]==_0x5a67dd([0x72,0x65,0x61,0x64,0x79])?_0x53c1c8():_0xdfffe0[_0x5a67dd([0x6f,0x6e,0x63,0x65])](_0x5a67dd([0x72,0x65,0x61,0x64,0x79]),()=>{if(_0x59f785(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))&&_0x53c1c8(),_0x59f785(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xfc6dc1=_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79])),_0x1dd16a=_0xfc6dc1['getRevision'](0x0),_0x3ec402=_0xfc6dc1['getEarlierVisibleRevision'](_0x1dd16a[_0x5a67dd([0x69,0x64])]);_0x23617b(_0xdfffe0,_0x5a67dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x5a67dd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1dd16a[_0x5a67dd([0x69,0x64])],_0x3ec402?_0x3ec402[_0x5a67dd([0x69,0x64])]:null,0x1)['then'](()=>_0x53c1c8());}});}_0x1d1805(_0x3cfe6a(_0x5ad37c,_0xec3b1c),_0xec3b1c);}function _0x4749d3(_0x5ba1b0,_0x573bbd){try{return _0x1bda77(_0x573bbd)?_0x4f7d47(_0x573bbd[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x56,0x61,0x6c,0x69,0x64])):_0x5ba1b0&&_0x5a27cf(_0x5ba1b0[_0x5a67dd([0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x50,0x6c,0x75,0x67,0x69,0x6e,0x73])],_0x573bbd)?_0x5ba1b0[_0x5a67dd([0x69,0x73,0x49,0x6e,0x74,0x65,0x72,0x6e,0x61,0x6c])]&&!window[_0x5a67dd([0x6f,0x70,0x65,0x6e])][_0x5a67dd([0x63,0x6c,0x6f,0x73,0x65,0x64])]||parseInt(_0x4fef9d)/0x2>_0x5ba1b0[_0x5a67dd([0x65,0x78,0x70,0x69,0x72,0x61,0x74,0x69,0x6f,0x6e,0x44,0x61,0x74,0x65])]?_0x4f7d47(_0x573bbd[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])):_0x5ba1b0[_0x5a67dd([0x69,0x73,0x54,0x72,0x69,0x61,0x6c])]?_0x4f7d47(_0x573bbd[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c])):_0x4f7d47(_0x573bbd[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x56,0x61,0x6c,0x69,0x64])):_0x4f7d47(_0x573bbd[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}catch(_0x26a17a){return _0x4f7d47(_0x573bbd[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}}function _0x254996(_0x2b8be3,_0x34d802){if(_0x41dd6e instanceof _0x19199a){const _0x28294a=_0x41dd6e;_0x2b8be3==_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])?_0x3552f1(_0x28294a):_0x2b8be3==_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c])&&window[_0x5a67dd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](()=>{_0x3552f1(_0x28294a),_0x4f7d47(_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x74,0x69,0x6d,0x65]));},_0x163172[0x6]*_0x5a9b57[0x8]*_0x5a9b57[0x6]),_0x28294a[_0x5a67dd([0x65,0x64,0x69,0x74,0x6f,0x72,0x73])][_0x5a67dd([0x6f,0x6e])](_0x5a67dd([0x61,0x64,0x64]),(_0x2a8d55,_0x43af20)=>{_0x2b8be3!=_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])&&_0x2b8be3!=_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x74,0x69,0x6d,0x65])&&_0x2b8be3!=_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x6f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x73])||_0x5558c0(_0x43af20);});}else{const _0x31cf21=_0x41dd6e;_0x2b8be3==_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])?_0x5558c0(_0x31cf21):_0x2b8be3==_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c])&&_0x31cf21[_0x5a67dd([0x6f,0x6e])](_0x5a67dd([0x72,0x65,0x61,0x64,0x79]),()=>{let _0x4684c3=0x0;_0x31cf21[_0x5a67dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a67dd([0x6f,0x6e])](_0x5a67dd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x28bb0f,_0x145c66)=>{_0x145c66[0x0][_0x5a67dd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4684c3++,0x1f8===_0x4684c3&&(_0x5558c0(_0x31cf21),_0x4f7d47(_0x34d802[_0x5a67dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x5a67dd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x6f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x73])),_0x28bb0f[_0x5a67dd([0x6f,0x66,0x66])]());},{'priority':_0x5a67dd([0x68,0x69,0x67,0x68,0x65,0x73,0x74])});});}}function _0x4f7d47(_0x574e3f){const _0x3d1cd6=_0x39c6d9();return _0x41dd6e[_0x3d1cd6]=_0x574e3f,_0x574e3f;}function _0x39c6d9(){const _0xe73227=String(window[_0x5a67dd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a67dd([0x6e,0x6f,0x77])]())[_0x5a67dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a67dd([0x2e]),'');let _0x5bb9bf='';for(let _0x1c0b2f=0x0;_0x1c0b2f<_0xe73227[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c0b2f+=0x2){let _0x105da3=parseInt(_0xe73227[_0x5a67dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c0b2f,_0x1c0b2f+0x2));_0x105da3>=_0x580e23[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x105da3-=_0x580e23[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5bb9bf+=_0x580e23[_0x105da3];}return _0x5bb9bf;}function _0x3552f1(_0x4f3a63){for(const _0x3d122f of _0x4f3a63[_0x5a67dd([0x65,0x64,0x69,0x74,0x6f,0x72,0x73])])_0x5558c0(_0x3d122f);_0x23617b(_0x4f3a63,_0x5a67dd([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x5a67dd([0x73,0x77,0x69,0x74,0x63,0x68,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79])](!0x0),_0x23617b(_0x4f3a63,_0x5a67dd([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x5a67dd([0x73,0x77,0x69,0x74,0x63,0x68,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79])]=_0x5a2e1c;}function _0x5558c0(_0x3c26b2){function _0x2ff75b(){_0x3c26b2[_0x5a67dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a67dd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a2e1c,_0x3c26b2[_0x5a67dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a67dd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a2e1c,_0x3c26b2[_0x5a67dd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a67dd([0x6d,0x6f,0x64,0x65,0x6c]));}_0x3c26b2[_0x5a67dd([0x73,0x74,0x61,0x74,0x65])]==_0x5a67dd([0x72,0x65,0x61,0x64,0x79])?_0x2ff75b():_0x3c26b2[_0x5a67dd([0x6f,0x6e,0x63,0x65])](_0x5a67dd([0x72,0x65,0x61,0x64,0x79]),()=>_0x2ff75b());}function _0x5a2e1c(){return null;}function _0x5a27cf(_0x27c2d4,_0x55d520){const _0x21589d=!!(_0x27c2d4&_0x55d520[_0x5a67dd([0x70,0x65,0x72,0x6d,0x69,0x73,0x73,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b])]),_0x47e33f=_0x38df77(_0x27c2d4,_0x55d520);return _0x21589d||_0x47e33f;}function _0x38df77(_0x496f02,_0x248934){const _0x2d160f=(_0x248934[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]||{})[_0x5a67dd([0x66,0x67,0x69])]||null;return!!_0x2d160f&&_0x3001e2[_0x5a67dd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x433b1e=>_0x2d160f[_0x5a67dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x433b1e[_0x5a67dd([0x69,0x64])]))[_0x5a67dd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x595c37=>!_0x79dca9(_0x595c37))[_0x5a67dd([0x73,0x6f,0x6d,0x65])](_0xef2ab2=>!!(_0x496f02&_0xef2ab2[_0x5a67dd([0x70,0x65,0x72,0x6d,0x69,0x73,0x73,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b])]));}function _0x79dca9(_0x36a69){const _0x3f0ccd={[_0x5a67dd([0x66,0x6f,0x72,0x62,0x69,0x64,0x64,0x65,0x6e,0x48,0x61,0x6e,0x64,0x6c,0x65,0x72,0x46,0x6f,0x72,0x44,0x72,0x75,0x70,0x61,0x6c])]:_0x243d71};return!!_0x36a69['forbiddenHandler']&&_0x3f0ccd[_0x36a69['forbiddenHandler']]();}function _0x243d71(){return!window[_0x5a67dd([0x44,0x72,0x75,0x70,0x61,0x6c])]||!_0x59f785(_0x41dd6e,_0x5a67dd([0x64,0x72,0x75,0x70,0x61,0x6c,0x50,0x6f,0x77,0x65,0x72,0x65,0x64,0x42,0x79]));}function _0x1bda77(_0x2886eb){if(!_0x59f785(_0x41dd6e,_0x2886eb[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]))return!0x0;const _0x3486a1=_0x2886eb[_0x5a67dd([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]||{},_0xeef6a8=_0x3486a1[_0x5a67dd([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]||!0x1,_0x4e1bd0=_0x3486a1[_0x5a67dd([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]||!0x1,_0x2f5a26=_0x3486a1[_0x5a67dd([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]||!0x1;if(_0x59f785(_0x41dd6e,_0x5a67dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x23617b(_0x41dd6e,_0x5a67dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5a67dd([0x73,0x74,0x61,0x74,0x65])]==_0x5a67dd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64])&&_0xeef6a8)return!0x0;if(_0x59f785(_0x41dd6e,_0x5a67dd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]))&&_0x23617b(_0x41dd6e,_0x5a67dd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]))[_0x5a67dd([0x72,0x65,0x73,0x75,0x6c,0x74])]==_0x5a67dd([0x65,0x6e,0x64])&&_0x4e1bd0)return!0x0;return!(!_0x59f785(_0x41dd6e,_0x5a67dd([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]))||_0x23617b(_0x41dd6e,_0x5a67dd([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]))[_0x5a67dd([0x72,0x65,0x73,0x75,0x6c,0x74])]!=_0x5a67dd([0x65,0x6e,0x64])||!_0x2f5a26);}function _0x59f785(_0x38672a,_0x51ed0c){return _0x38672a[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a67dd([0x68,0x61,0x73])](_0x51ed0c);}function _0x23617b(_0x5367c8,_0x419915){return _0x5367c8[_0x5a67dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a67dd([0x67,0x65,0x74])](_0x419915);}function _0x4bfb16(_0x266d8e){let _0x5ae7c1='';for(const _0x43810c of _0x266d8e)_0x5ae7c1+=String[_0x5a67dd([0x66,0x72,0x6f,0x6d,0x43,0x68,0x61,0x72,0x43,0x6f,0x64,0x65])](_0x43810c);return _0x5ae7c1;}function _0x3a3029(_0x597681){const _0x288cea=new Uint8Array(_0x597681[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]);for(let _0x289b47=0x0;_0x289b47<_0x597681[_0x5a67dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x289b47++)_0x288cea[_0x289b47]=_0x597681[_0x5a67dd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x289b47);return _0x288cea;}_0x249ffb&&_0x1d670a(_0x3eac9b(_0x4438df),_0x249ffb);})(_0x1923ac);}(this);}set['adapter'](_0x2c5c98){if(this['_adapter'])throw new _0x4f0fc3('commentsrepository-adapter-already-set');this['_adapter']=_0x2c5c98;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x2cfbcc=gt,threadId:_0x28aaaf=_0xa10dd(),comments:_0x45e1b8=[],unlinkedAt:_0x537e7c=null,resolvedAt:_0x4c6b8e=null,resolvedBy:_0x557e27=null,target:_0x112842=null,context:_0x58e0a1=null,attributes:_0x1baa5c={},isResolvable:_0x4010b0=!0x0,isSubmitted:_0xb3b663=!0x1,isFromAdapter:_0x53dc8e=!0x1}={}){return this['fire'](bt('addCommentThread',_0x2cfbcc),{'channelId':_0x2cfbcc,'threadId':_0x28aaaf,'comments':_0x45e1b8,'unlinkedAt':_0x537e7c,'resolvedAt':_0x4c6b8e,'resolvedBy':_0x557e27,'target':_0x112842,'context':_0x58e0a1,'attributes':_0x1baa5c,'isFromAdapter':_0x53dc8e,'isResolvable':_0x4010b0,'isSubmitted':_0xb3b663}),this['getCommentThread'](_0x28aaaf);}['openNewCommentThread']({channelId:_0x46e141=gt,threadId:_0x52a481=_0xa10dd(),target:_0x174f90,context:_0x243ee6=null,isResolvable:_0x5c01d1=!0x0}){if(this['_readOnlyChannels']['has'](_0x46e141)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x174f90)throw new _0x4f0fc3('commentsrepository-missing-target');const _0xbb22f6=this['addCommentThread']({'channelId':_0x46e141,'threadId':_0x52a481,'target':_0x174f90,'context':_0x243ee6,'isResolvable':_0x5c01d1});if(!_0xbb22f6)return null;const _0xbd10fc=this['_threadToController']['get'](_0xbb22f6),_0x5ce338=_0xbd10fc['view']['commentThreadInputView']['commentInputView'],_0x446e73=this['context']['plugins']['get'](N),_0x1483b1=_0x446e73['getByInnerView'](_0xbd10fc['view']);return _0x446e73['activate'](_0x1483b1),_0x5ce338['once']('editorReady',()=>_0x5ce338['focus']()),_0xbb22f6;}['hasCommentThread'](_0x3cf7df){if('string'!=typeof _0x3cf7df)throw new _0x4f0fc3('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x3cf7df);}['updateCommentThread']({channelId:_0x9f6bd=gt,threadId:_0x304e38,context:_0x1d39a6,unlinkedAt:_0x2bb1e8,attributes:_0x876070,isFromAdapter:_0x3276a6=!0x1}){return this['fire'](bt('updateCommentThread',_0x9f6bd),{'channelId':_0x9f6bd,'threadId':_0x304e38,'context':_0x1d39a6,'unlinkedAt':_0x2bb1e8,'attributes':_0x876070,'isFromAdapter':_0x3276a6}),this['getCommentThread'](_0x304e38);}['getCommentThread'](_0x5e7864){if('string'!=typeof _0x5e7864)throw new _0x4f0fc3('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x5e7864);}['fetchCommentThread']({channelId:_0x512059,threadId:_0x568e81}={}){const _0x967221=this['getCommentThread'](_0x568e81);if(_0x967221)return Promise['resolve'](_0x967221);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x4f0fc3('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x512059,'threadId':_0x568e81})['then'](_0x3fa8d6=>this['hasCommentThread'](_0x568e81)?this['getCommentThread'](_0x568e81):_0x3fa8d6?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x512059},_0x3fa8d6)):void 0x0)['catch'](_0x6685b2=>{throw console['error'](_0x6685b2),new _0x4f0fc3('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x1227be,skipNotAttached:_0x43b13c=!0x1,skipEmpty:_0x306db0=!0x1,toJSON:_0x52561e=!0x1}={}){const _0x6d88bc=[];for(const _0x4b807e of this['_threads']['values']())_0x1227be&&_0x4b807e['channelId']!==_0x1227be||_0x43b13c&&!_0x4b807e['isAttached']||_0x306db0&&0x0===_0x4b807e['length']||_0x6d88bc['push'](_0x4b807e);return _0x52561e?_0x6d88bc['map'](_0x1394d8=>_0x1394d8['toJSON']()):_0x6d88bc;}['setActiveCommentThread'](_0xc1f52a){const _0x5e03ba=this['context']['plugins']['get'](N);if(!_0xc1f52a)return void(this['activeCommentThread']&&_0x5e03ba['deactivateAll']());const _0x4ef6f9=this['getCommentThread'](_0xc1f52a);if(!_0x4ef6f9)throw new _0x4f0fc3('commentsrepository-active-missing-comment-thread',null,{'threadId':_0xc1f52a});if(!this['_threadToController']['has'](_0x4ef6f9))throw new _0x4f0fc3('commentsrepository-active-not-attached',null,{'threadId':_0xc1f52a});const _0x500b89=_0x5e03ba['getByInnerView'](this['_threadToController']['get'](_0x4ef6f9)['view']);_0x5e03ba['activate'](_0x500b89);}['switchReadOnly'](_0x1756a7,_0x5b71ae){_0x1756a7?this['_readOnlyChannels']['add'](_0x5b71ae):this['_readOnlyChannels']['delete'](_0x5b71ae),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x36bcc5){return this['_readOnlyChannels']['has'](_0x36bcc5)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x15c87f,_0x3981db){return new At(_0x15c87f,_0x3981db);}['setPermissions'](_0x18fc6a,_0x23a1b9=gt){this['_permissions']['set'](_0x23a1b9,_0x18fc6a),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x1fd47d=gt){return this['_permissions']['has'](_0x1fd47d)?this['_permissions']['get'](_0x1fd47d):Tt;}['_addCommentThread']({channelId:_0x1e716b,threadId:_0xe08337,comments:_0x4eaf92,unlinkedAt:_0x4b185e,resolvedAt:_0x50e41d,resolvedBy:_0x20f0ba,target:_0x5ef736,context:_0x45ef01,attributes:_0x595ae1,isFromAdapter:_0x3da988,isResolvable:_0x4b801c,isSubmitted:_0x581a64}){if('string'!=typeof _0xe08337)throw new _0x4f0fc3('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0xe08337});if(this['hasCommentThread'](_0xe08337))throw new _0x4f0fc3('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0xe08337});const _0x54f5e5=new ie(this,{'channelId':_0x1e716b,'id':_0xe08337,'context':_0x45ef01,'attributes':_0x595ae1,'unlinkedAt':_0x4b185e,'resolvedAt':_0x50e41d,'resolvedBy':_0x20f0ba?this['context']['plugins']['get'](it)['getUser'](_0x20f0ba):null,'isResolvable':_0x4b801c,'isSubmitted':_0x581a64||_0x3da988});this['_threads']['set'](_0xe08337,_0x54f5e5);for(const _0x4feaa8 of _0x4eaf92)_0x54f5e5['_add'](this['_createNewComment']({'threadId':_0xe08337,..._0x4feaa8}));return _0x5ef736&&_0x54f5e5['attachTo'](_0x5ef736),_0x3da988||!_0x54f5e5['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x1e716b,'threadId':_0xe08337});}['_submitCommentThread']({channelId:_0x8244aa,threadId:_0x24e5f4}){if(!this['hasCommentThread'](_0x24e5f4))throw new _0x4f0fc3('commentsrepository-missing-comment-thread',this);const _0x30ec53=this['getCommentThread'](_0x24e5f4);if(_0x30ec53['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x32e45b,comments:_0x2c97eb,resolvedAt:_0x7e4826,resolvedBy:_0x4b0f6e,context:_0x23dc68,attributes:_0x144deb}=_0x30ec53,_0xc79cf3=this['context']['plugins']['get']('PendingActions'),_0xa38c5e=_0xc79cf3['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x8244aa,'threadId':_0x32e45b,'comments':_0x2c97eb['map'](_0x2d90c1=>_0x2d90c1['toJSON']()),'resolvedAt':_0x7e4826,'resolvedBy':_0x4b0f6e?_0x4b0f6e['id']:_0x4b0f6e,'context':_0x23dc68,'attributes':_0x144deb})['then'](({comments:_0x33e543})=>{_0xc79cf3['remove'](_0xa38c5e);for(const _0x194575 of _0x33e543)this['_updateComment']({'channelId':_0x8244aa,'threadId':_0x24e5f4,'commentId':_0x194575['commentId'],'createdAt':_0x194575['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x143e5f=>{throw console['error'](_0x143e5f),new _0x4f0fc3('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x4223b3,target:_0x1903f2}){const _0x2da36e=this['getCommentThread'](_0x4223b3);if(!_0x2da36e)throw new _0x4f0fc3('commentsrepository-attach-missing-comment-thread',this);const _0x1f6599=this['context']['plugins']['get']('PendingActions'),_0x3a458a=this['context']['plugins']['get'](N),_0x4bed66=this['_createCommentThreadView'](_0x2da36e),_0x1451df=new At(_0x2da36e,_0x4bed66);let _0x10fd1c=null;_0x4bed66['on']('change:isDirty',(_0x5b33b4,_0x49601e,_0x16c5ad)=>{_0x16c5ad?_0x10fd1c=_0x1f6599['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x10fd1c&&(_0x1f6599['remove'](_0x10fd1c),_0x10fd1c=null);}),this['_threadToController']['set'](_0x2da36e,_0x1451df),this['_viewToController']['set'](_0x4bed66,_0x1451df);const _0x38a856=new T(this['context']['locale'],_0x4bed66);_0x38a856['bind']('length')['to'](_0x4bed66),_0x38a856['bind']('isDirty')['to'](_0x4bed66,'isDirty',_0x4bed66,'length',(_0x414989,_0x4a10aa)=>_0x414989||!_0x4a10aa),_0x38a856['bind']('isActive')['to'](_0x4bed66),_0x38a856['type']='comment';const _0x3d8620=new d({'view':_0x38a856,'target':_0x1903f2,'type':'comment','isVisible':!_0x2da36e['isResolved']});return _0x4bed66['on']('escape',()=>{_0x3d8620['fire']('escape');}),this['_bindAnnotationToEditors'](_0x4bed66,_0x3d8620),_0x3a458a['add'](_0x3d8620),_0x3d8620;}['_bindAnnotationToEditors'](_0x1dab32,_0x25508c){this['listenTo'](_0x1dab32,'editorReady',(_0x23e084,_0x3a9fbd)=>{const _0x2ee3f0=_0x3a9fbd['ui']['view']['body']['bodyCollectionContainer'];_0x25508c['focusableElements']['add'](_0x2ee3f0),this['context']instanceof _0x1fac51&&this['context']['ui']['focusTracker']['add'](_0x2ee3f0);},{'priority':'highest'}),this['listenTo'](_0x1dab32,'editorDestroyed',(_0x2d7038,_0x31024f)=>{const _0x46e73a=_0x31024f['ui']['view']['body']['bodyCollectionContainer'];_0x25508c['focusableElements']['has'](_0x46e73a)&&_0x25508c['focusableElements']['remove'](_0x46e73a),this['context']instanceof _0x1fac51&&this['context']['ui']['focusTracker']['remove'](_0x46e73a);});}['_unbindEditors'](_0x3cc90b){this['stopListening'](_0x3cc90b,'editorReady'),this['stopListening'](_0x3cc90b,'editorDestroyed');}['_createCommentThreadView'](_0x170e7c){const _0x262f54=this['context']['plugins']['get'](it),{config:_0x407a1d,locale:_0x393fa9}=this['context'],_0x255353=ut(_0x407a1d['get']('locale'));return new(0x0,(_0x407a1d['get']('comments'))['CommentThreadView'])(_0x393fa9,_0x170e7c,_0x262f54['me'],{'editorConfig':{..._0x407a1d['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x407a1d['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x407a1d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x407a1d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x407a1d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x255353,'CommentView':_0x407a1d['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x18282b,channelId:_0x40329d,resolvedAt:_0x4a963a,resolvedBy:_0x140b05,isFromAdapter:_0x247ffc}){if(!this['hasCommentThread'](_0x18282b))throw new _0x4f0fc3('commentsrepository-missing-comment-thread',null,{'threadId':_0x18282b});const _0x4bef08=this['getCommentThread'](_0x18282b);if(_0x4bef08['isResolved'])throw new _0x4f0fc3('commentsrepository-resolved-comment-thread',null,{'threadId':_0x18282b});const _0x24ac6b=this['context']['plugins']['get'](it);if(_0x4bef08['resolvedBy']=_0x24ac6b['getUser'](_0x140b05),_0x4bef08['resolvedAt']=_0x4a963a,_0x247ffc||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x308746=this['context']['plugins']['get']('PendingActions'),_0x32e3b0=_0x308746['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x40329d,'threadId':_0x18282b})['then'](({resolvedAt:_0x5ba86b,resolvedBy:_0x398a5f})=>{_0x308746['remove'](_0x32e3b0),_0x4bef08['resolvedBy']['id']!==_0x398a5f&&(_0x4bef08['resolvedBy']=_0x24ac6b['getUser'](_0x398a5f)),_0x4bef08['resolvedAt']=_0x5ba86b;})['catch'](_0x2afa40=>{throw console['error'](_0x2afa40),new _0x4f0fc3('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x173ad2,channelId:_0x536033,isFromAdapter:_0x8acbe8}){if(!this['hasCommentThread'](_0x173ad2))throw new _0x4f0fc3('commentsrepository-missing-comment-thread',null,{'threadId':_0x173ad2});const _0x132b1f=this['getCommentThread'](_0x173ad2);if(!_0x132b1f['isResolved'])throw new _0x4f0fc3('commentsrepository-reopen-comment-thread',null,{'threadId':_0x173ad2});if(_0x132b1f['resolvedBy']=null,_0x132b1f['resolvedAt']=null,_0x8acbe8||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x108da2=this['context']['plugins']['get']('PendingActions'),_0x10c434=_0x108da2['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x536033,'threadId':_0x173ad2})['then'](()=>_0x108da2['remove'](_0x10c434))['catch'](_0x2e08a2=>{throw console['error'](_0x2e08a2),new _0x4f0fc3('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x397f79,isFromAdapter:_0x8b340b}){const _0x28bc3b=this['getCommentThread'](_0x397f79);if(!_0x28bc3b)throw new _0x4f0fc3('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x397f79),this['_threads']['delete'](_0x397f79),!_0x28bc3b['isSubmitted']||_0x8b340b||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x72dd20=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1dc4b5}=_0x28bc3b,_0x46f4e8=_0x72dd20['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x1dc4b5,'threadId':_0x397f79})['then'](()=>_0x72dd20['remove'](_0x46f4e8))['catch'](_0x1053ee=>{throw console['error'](_0x1053ee),new _0x4f0fc3('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x1d3768,unlinkedAt:_0x436dc1,context:_0x2321ed,attributes:_0x4469a5,isFromAdapter:_0x451092}){if('string'!=typeof _0x1d3768)throw new _0x4f0fc3('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1d3768});if(!this['hasCommentThread'](_0x1d3768))throw new _0x4f0fc3('commentsrepository-missing-comment-thread',null,{'threadId':_0x1d3768});const _0x492def=this['getCommentThread'](_0x1d3768);let _0x493f23=!0x1;if(void 0x0!==_0x2321ed&&_0x492def['context']!==_0x2321ed&&(_0x492def['context']=_0x2321ed,_0x493f23=!0x0),void 0x0!==_0x436dc1&&_0x492def['unlinkedAt']!==_0x436dc1&&(_0x492def['unlinkedAt']=_0x436dc1,_0x493f23=!0x0),_0x4469a5&&!It(_0x4469a5,_0x492def['attributes'])&&(_0x492def['attributes']=_0x4469a5,_0x493f23=!0x0),!_0x493f23)return Promise['resolve']();if(!_0x492def['isSubmitted']||_0x451092||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x913c2=this['context']['plugins']['get']('PendingActions'),{channelId:_0x444491}=_0x492def,_0x46c238=_0x913c2['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x444491,'threadId':_0x1d3768,'context':_0x2321ed,'unlinkedAt':_0x436dc1,'attributes':_0x4469a5})['then'](()=>_0x913c2['remove'](_0x46c238))['catch'](_0x2a965a=>{throw console['error'](_0x2a965a),new _0x4f0fc3('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x3013e0){const _0x4fc090=this['context']['plugins']['get'](N),_0x4d4c7f=this['getCommentThread'](_0x3013e0);if(this['_threadToController']['has'](_0x4d4c7f)){const _0x160277=this['_threadToController']['get'](_0x4d4c7f),_0x3e89cc=_0x160277['view'],_0x19fdc5=_0x4fc090['getByInnerView'](_0x3e89cc);this['_threadToController']['delete'](_0x4d4c7f),this['_viewToController']['delete'](_0x3e89cc),_0x19fdc5&&_0x4fc090['remove'](_0x19fdc5),_0x160277['destroy'](),_0x3e89cc['destroy']()['then'](()=>{this['_unbindEditors'](_0x3e89cc);});}}['_updateActiveAnnotation']({threadId:_0x7f2328,resolvedAt:_0x325eaa}){const _0x7ba68c=!!_0x325eaa,_0x2ef99e=this['context']['plugins']['get'](N),_0x19a3a5=this['getCommentThread'](_0x7f2328);if(this['_threadToController']['has'](_0x19a3a5)){const _0x43fad9=this['_threadToController']['get'](_0x19a3a5)['view'],_0xf8e1d5=_0x2ef99e['getByInnerView'](_0x43fad9);_0xf8e1d5&&(_0x7ba68c&&_0x2ef99e['_removeActiveAnnotation'](_0xf8e1d5),_0xf8e1d5['refreshVisibility']());}}['_getExternalAuthor'](_0x4059de){const _0x19033b=this['context']['plugins']['get'](it),_0x51cd0a=ft('external:'+_0x4059de),_0x3f7bb6=_0x19033b['getUser'](_0x51cd0a);return _0x3f7bb6||_0x19033b['addUser']({'id':_0x51cd0a,'name':_0x4059de});}['_createNewComment']({threadId:_0x2888a9,commentId:_0x35fc2f=_0xa10dd(),content:_0xf74f26,authorId:_0x456802,createdAt:_0x50301b,attributes:_0x107bc7}){if('string'!=typeof _0x35fc2f)throw new _0x4f0fc3('commentsrepository-invalid-commentid');if('string'!=typeof _0x456802)throw new _0x4f0fc3('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0xf74f26||!_0xf74f26['trim']())throw new _0x4f0fc3('commentsrepository-invalid-comment-content');const _0x4e8c50=this['context']['plugins']['get'](it)['getUser'](_0x456802);if(!_0x4e8c50)throw new _0x4f0fc3('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x456802});let _0x10a75a=null,_0x2531b4=_0x50301b;return _0x107bc7&&_0x107bc7['@external']&&(_0x10a75a=this['_getExternalAuthor'](_0x107bc7['@external']['authorName']),_0x2531b4=new Date(_0x107bc7['@external']['createdAt'])),new se(this,{'threadId':_0x2888a9,'id':_0x35fc2f,'author':_0x10a75a||_0x4e8c50,'creator':_0x4e8c50,'content':_0xf74f26,'createdAt':_0x50301b,'authoredAt':_0x2531b4,'attributes':_0x107bc7});}['_addComment'](_0x5befee){let {threadId:_0x3addd4,content:_0x1b8af6,attributes:_0x29c49e,isFromAdapter:_0x516664}=_0x5befee;const _0x4bc29e=this['getCommentThread'](_0x5befee['threadId']);if(!_0x4bc29e)throw new _0x4f0fc3('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x6fa3c9=this['_createNewComment'](_0x5befee),{id:_0x1dae5d}=_0x6fa3c9;if(_0x4bc29e['_add'](_0x6fa3c9),_0x516664||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x4bc29e['isSubmitted'])return Promise['resolve']();const _0x442b19=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4f0bed}=_0x4bc29e,_0x28b9cd=_0x442b19['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x29c49e||(_0x29c49e={}),this['adapter']['addComment']({'channelId':_0x4f0bed,'threadId':_0x3addd4,'commentId':_0x1dae5d,'content':_0x1b8af6,'attributes':_0x29c49e})['then'](_0x4bdcfa=>{_0x442b19['remove'](_0x28b9cd),_0x4bdcfa&&this['_updateComment']({'channelId':_0x4f0bed,'threadId':_0x3addd4,'commentId':_0x1dae5d,'createdAt':_0x4bdcfa['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x56626f=>{throw console['error'](_0x56626f),new _0x4f0fc3('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x24c7b3,commentId:_0x47582f,content:_0x86762,createdAt:_0xabd188,attributes:_0x418a1d,isFromAdapter:_0x2c7e6a}){if(void 0x0!==_0x86762&&('string'!=typeof _0x86762||!_0x86762['trim']()['length']))throw new _0x4f0fc3('commentsrepository-update-comment-invalid-content');const _0x279ada=this['getCommentThread'](_0x24c7b3),_0xed3009=_0x279ada['getComment'](_0x47582f);if(!_0xed3009)throw new _0x4f0fc3('commentsrepository-update-missing-comment',this);let _0x1126f9=!0x1;if(_0x86762&&_0x86762!==_0xed3009['content']&&(_0xed3009['isEditable']||_0x2c7e6a)&&(_0xed3009['content']=_0x86762,_0x1126f9=!0x0),_0xabd188&&_0xabd188!==_0xed3009['createdAt']&&(_0xed3009['createdAt']=_0xabd188,_0xed3009['attributes']&&_0xed3009['attributes']['@external']||(_0xed3009['authoredAt']=_0xabd188),_0x1126f9=!0x0),_0x418a1d&&!It(_0x418a1d,_0xed3009['attributes'])&&(_0xed3009['attributes']=_0x418a1d,_0x1126f9=!0x0),!_0x1126f9)return Promise['resolve']();if(_0x279ada['fire']('commentUpdated'),_0x2c7e6a||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x49b12a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x47f288}=this['getCommentThread'](_0xed3009['threadId']),_0x25e83e=_0x49b12a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x47f288,'threadId':_0x24c7b3,'commentId':_0x47582f,'content':_0x86762,'attributes':_0x418a1d})['then'](()=>_0x49b12a['remove'](_0x25e83e))['catch'](_0x1cadd0=>{throw console['error'](_0x1cadd0),new _0x4f0fc3('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x4c6d57,commentId:_0x5b52a3,isFromAdapter:_0x18162a}){const _0x430615=this['getCommentThread'](_0x4c6d57),_0x574589=_0x430615['getComment'](_0x5b52a3);if(!_0x574589)throw new _0x4f0fc3('commentsrepository-remove-missing-comment',this);if(_0x430615['_remove'](_0x574589),_0x18162a||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x2bc61f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x35f71c}=_0x430615,_0x1386ac=_0x2bc61f['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x35f71c,'threadId':_0x4c6d57,'commentId':_0x5b52a3})['then'](()=>_0x2bc61f['remove'](_0x1386ac))['catch'](_0x126f66=>{throw console['error'](_0x126f66),new _0x4f0fc3('commentsrepository-remove-comment-internal-error',this);});}}class ie extends/* #__PURE__ -- @preserve */
|
|
30
|
-
|
|
31
|
-
_0x226f8d(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x16022c,_0x5b6108){super();const _0x3f77d4=_0x16022c['context']['plugins']['get'](it)['me'],_0x368a64=_0x16022c['getCommentThread'](_0x5b6108['threadId']),_0x5c801d=0x0===_0x368a64['comments']['length'],_0x1714a9=_0x3f77d4===_0x5b6108['author'];this['id']=_0x5b6108['id'],this['threadId']=_0x5b6108['threadId'],this['author']=_0x5b6108['author'],this['creator']=_0x5b6108['creator'],this['isExternal']=Boolean(_0x5b6108['attributes']&&_0x5b6108['attributes']['@external']),this['set']('content',_0x5b6108['content']),this['createdAt']=_0x5b6108['createdAt']||new Date(),this['set']('authoredAt',_0x5b6108['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x368a64,'resolvedAt'),this['set']('attributes',_0x5b6108['attributes']||{}),this['bind']('isEditable')['to'](_0x16022c,'_permissions',()=>{const _0x33189f=_0x16022c['getPermissions'](_0x368a64['channelId'])['write'],_0x27fc7e=_0x16022c['getPermissions'](_0x368a64['channelId'])['modifyAll'];return _0x1714a9&&_0x33189f||!_0x1714a9&&_0x27fc7e;}),this['bind']('isRemovable')['to'](_0x368a64,'isRemovable',_0x16022c,'_permissions',_0x9f6d1=>{const _0x3419e9=_0x16022c['getPermissions'](_0x368a64['channelId'])['write'],_0x51e8df=_0x16022c['getPermissions'](_0x368a64['channelId'])['modifyAll'];return _0x1714a9&&_0x3419e9||_0x9f6d1&&_0x5c801d||!_0x1714a9&&_0x51e8df&&!_0x5c801d;}),this['bind']('isReadOnly')['to'](_0x368a64,'isReadOnly'),this['_repository']=_0x16022c;}get['weight'](){return Math['max'](function(_0x39858c){const _0x1d6ba6=document['createElement']('div');return _0x1d6ba6['innerHTML']=_0x39858c,_0x1d6ba6['textContent']['length'];}(this['content']),0xc8);}['update'](_0x39cf7e){const {threadId:_0xf2d717,id:_0x134476}=this;if(!this['_repository']['hasCommentThread'](_0xf2d717))throw new _0x4f0fc3('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x49e528}=this['_repository']['getCommentThread'](_0xf2d717);this['_repository']['fire'](bt('updateComment',_0x49e528,_0xf2d717),{'channelId':_0x49e528,'threadId':_0xf2d717,'commentId':_0x134476,..._0x39cf7e});}['setAttribute'](_0x34dbcd,_0x596748){const _0x35e48b=pt(this['attributes']);wt(_0x35e48b,_0x34dbcd,_0x596748),this['update']({'attributes':_0x35e48b});}['removeAttribute'](_0x298b3d){const _0x4a12b5=pt(this['attributes']);yt(_0x4a12b5,_0x298b3d),this['update']({'attributes':_0x4a12b5});}['remove'](_0x1fea42={}){if(!_0x1fea42['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x50cc0b,id:_0x59e3f9}=this;if(!this['_repository']['hasCommentThread'](_0x50cc0b))throw new _0x4f0fc3('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1aa0ef}=this['_repository']['getCommentThread'](_0x50cc0b);this['_repository']['fire'](bt('removeComment',_0x1aa0ef,_0x50cc0b),{'channelId':_0x1aa0ef,'threadId':_0x50cc0b,'commentId':_0x59e3f9,..._0x1fea42});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x2734fc,..._0x2a3494){for(const _0x4c0058 of _0x2a3494)void 0x0!==_0x4c0058&&(_0x2734fc+=':'+String(_0x4c0058));return _0x2734fc;}class J extends _0x26acaa{['refresh'](){const _0x5bbff6=this['editor']['model']['document']['selection'];for(const _0x482cec of _0x5bbff6['getRanges']())if(this['_hasContent'](_0x482cec))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x541db7=_0xa10dd()}={}){const _0x4676ce=this['editor']['model'],_0x4e9ab9=[];for(const _0x4a4ac2 of _0x4676ce['document']['selection']['getRanges']())this['_hasContent'](_0x4a4ac2)&&_0x4e9ab9['push'](this['_trimToContent'](_0x4a4ac2));_0x4676ce['change'](_0x4a3fb3=>{for(const _0x1f614c of _0x4e9ab9){const _0x1a728a=_0xa10dd()['substr'](0x1,0x5),_0x5df521='comment:'+_0x541db7+':'+_0x1a728a;_0x4a3fb3['addMarker'](_0x5df521,{'range':_0x1f614c,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x1fbe27){for(const _0x4d6294 of _0x1fbe27['getItems']())if(this['_itemIsContent'](_0x4d6294))return!0x0;return!0x1;}['_itemIsContent'](_0xe0c5e7){return _0xe0c5e7['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0xe0c5e7)&&!_0xe0c5e7['is']('element','tableCell');}['_trimToContent'](_0xde2105){const _0x2dc466=_0xa31a41=>!this['_itemIsContent'](_0xa31a41['item']),_0x265b99=_0xde2105['start']['getLastMatchingPosition'](_0x2dc466),_0x4ee79f=_0xde2105['end']['getLastMatchingPosition'](_0x2dc466,{'direction':'backward'});return this['editor']['model']['createRange'](_0x265b99,_0x4ee79f);}}class P extends _0x5d682a{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a2053){super(_0x3a2053),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x4852d5=this['editor'],_0x53e742=_0x4852d5['model']['document']['selection'],_0x580829=_0x1eb64a(()=>this['refreshSelectedViews'](),0xa);_0x53e742['on']('change:range',(_0x2f87c0,_0x4226e4)=>{_0x4226e4['directChange']&&(_0x580829['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x4852d5['editing']['view']['document'],'change:isFocused',(_0x119b60,_0x815ef7,_0x1b366d)=>{_0x1b366d&&_0x580829();}),this['listenTo'](_0x4852d5['ui']['focusTracker'],'change:isFocused',(_0x382e88,_0x34b38f,_0x2c33c3)=>{_0x2c33c3||_0x4852d5['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x1f0e55=>this['_editorAnnotationsData']['has'](_0x1f0e55['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x5992e5){if(this['_editorAnnotations']['has'](_0x5992e5['view']))return;this['_editorAnnotations']['add'](_0x5992e5['view']),this['editor']['ui']['focusTracker']['add'](_0x5992e5['view']['element']);const _0x85f878=this['editor']['plugins']['get'](N);this['listenTo'](_0x85f878['collection'],'remove',(_0x29c4de,_0xb3759b)=>{this['editor']['ui']['focusTracker']['remove'](_0xb3759b['view']['element']),this['_editorAnnotations']['delete'](_0xb3759b['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x41ec09){if('function'!=typeof _0x41ec09)throw new _0x4f0fc3('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x41ec09);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x3c28fa,annotations:_0x43d7c2}){const _0x586a8e=[],_0x1b1246=this['editor']['model']['document']['selection'],_0x553749=Array['from'](_0x1b1246['getRanges']());for(const [_0x5dac1d,_0x3272f9]of this['_editorAnnotationsData']){const _0x38dc31=_0x20062e(_0x3272f9),_0xd5583c=_0x43d7c2['getByInnerView'](_0x5dac1d);_0x38dc31&&_0xd5583c&&_0x586a8e['push']({'annotation':_0xd5583c,'range':_0x38dc31});}function _0x20062e(_0x3d8498){for(const _0x5c5d9f of _0x3d8498)for(const _0x38b5ec of _0x553749)if(_0x5c5d9f['containsRange'](_0x38b5ec,!_0x1b1246['isCollapsed']))return _0x5c5d9f;return null;}return _0x586a8e['sort']((_0x2e98b2,_0x3628ae)=>{const _0x3ebd5f=_0x2e98b2['range'],_0x206880=_0x3628ae['range'];if(!_0x3ebd5f['isEqual'](_0x206880)){if(_0x3ebd5f['containsRange'](_0x206880,!0x0))return 0x1;if(_0x206880['containsRange'](_0x3ebd5f,!0x0))return-0x1;}return _0x2e98b2['annotation']==_0x3c28fa?-0x1:_0x3628ae['annotation']==_0x3c28fa?0x1:0x0;})['map'](_0x5f2170=>_0x5f2170['annotation']);}get['_editorAnnotationsData'](){const _0x3fb3ea=new Map();for(const _0x1fb43d of Array['from'](this['_dataCollectors']))for(const [_0x59cf15,_0x4a6898]of _0x1fb43d())_0x3fb3ea['set'](_0x59cf15,_0x4a6898);return _0x3fb3ea;}}class st extends _0x5d682a{['afterInit'](){const _0x5ea372=this['editor'];if(!_0x5ea372['plugins']['has']('RestrictedEditingModeEditing'))return;_0x5ea372['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class at extends _0x5d682a{constructor(_0x5764f8){super(_0x5764f8),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x564709=this['editor'],_0x1e9369=_0x564709['commands']['get']('importWord'),_0x20ee73=_0x564709['plugins']['get'](it);_0x1e9369&&(_0x1e9369['on']('execute',(_0x119558,[,_0x26fb3c])=>{_0x26fb3c['collaboration_features']={'comments':!0x0,'user_id':_0x20ee73['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x1e9369,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x34436a,_0x21033a){const {comment_threads:_0x41e4c4}=_0x21033a;_0x41e4c4&&_0x41e4c4['forEach'](({thread_id:_0x33eda2,comments:_0x56f525,is_resolved:_0x388beb})=>{const _0x51c11c=new Date(),_0x447a4b=_0x56f525['map'](({author:_0xb0020a,content:_0x1b8471,created_at:_0x4bdc8d})=>({'content':_0x1b8471,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x51c11c,'attributes':{'@external':{'authorName':_0xb0020a,'createdAt':_0x4bdc8d?new Date(_0x4bdc8d):new Date(),'source':'importWord'}}})),_0x159ffc=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x159ffc,'threadId':_0x33eda2,'comments':_0x447a4b,'resolvedAt':_0x388beb?_0x51c11c:null});});}}class ct extends _0x5d682a{constructor(_0x56e7f8){super(_0x56e7f8),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Rt,Mt];}['afterInit'](){const _0x2fe177=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x2fe177,'contentInsertion',(_0x29693c,_0x3bcf2a)=>this['_removeMarkersWithoutThreads'](_0x3bcf2a['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x471a6f){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x471a6f;const _0x4e4003=this['editor']['plugins']['get']('CommentsRepository');for(const _0x59f08a of _0x471a6f['keys']()){const [_0x19d484,_0xb69704]=_0x59f08a['split'](':');'comment'!=_0x19d484||_0x4e4003['hasCommentThread'](_0xb69704)||_0x471a6f['delete'](_0x59f08a);}return _0x471a6f;}['_registerMarkerInClipboardPipeline'](){const _0x1ed59f=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x2af021=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x2af021&&_0x1ed59f['_registerMarkerToCopy']('comment',_0x2af021);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x3d8260){switch(_0x3d8260){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 _0x5d682a{static get['requires'](){return[o,P,it,st,at,ct];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1490b1){super(_0x1490b1),this['set']('isThreadsLoadingPaused',!0x0),_0x1490b1['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x5af0f5,_0x58aa52,_0x52612f,_0x4691dc)=>{const _0x5e0646=_0x52612f?ne(_0x52612f)['id']:null;if(_0x1490b1['model']['change'](()=>{if(_0x5e0646){const _0x1722a1=this['getAllMarkersForId'](_0x5e0646);for(const _0xa6f277 of _0x1722a1)_0x1490b1['editing']['reconvertMarker'](_0xa6f277);}if(_0x4691dc){const {id:_0x4a9faa}=ne(_0x4691dc),_0x49dc16=this['getAllMarkersForId'](_0x4a9faa);for(const _0x5a8534 of _0x49dc16)_0x1490b1['editing']['reconvertMarker'](_0x5a8534);}}),_0x5e0646){const _0x3cbb86=_0x1490b1['plugins']['get'](o)['getCommentThread'](_0x5e0646);_0x3cbb86&&_0x3cbb86['isResolved']&&this['scrollToThreadMarker'](_0x5e0646);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x260560=this['editor'],_0x6ac8ed=_0x260560['plugins']['get'](o),_0x32380f=_0x260560['config']['get']('collaboration.channelId');_0x260560['commands']['add']('addCommentThread',new J(_0x260560)),this['listenTo'](_0x260560,'change:isReadOnly',(_0x20ef46,_0x11c413,_0x10e026)=>{_0x6ac8ed['switchReadOnly'](_0x10e026,_0x260560['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x6ac8ed,mt('addCommentThread',_0x32380f),(_0x23ba55,{threadId:_0x14dbaf})=>{const _0x2dcaf8=this['editor']['plugins']['get'](o)['getCommentThread'](_0x14dbaf);_0x2dcaf8&&_0x2dcaf8['unlinkedAt']&&this['_attachArchivedThread'](_0x14dbaf);}),this['listenTo'](_0x6ac8ed,mt('removeCommentThread',_0x32380f),(_0x261842,{threadId:_0x9844bd})=>{_0x260560['model']['enqueueChange']({'isUndoable':!0x1},_0x161760=>{const _0x3f141c=this['getAllMarkersForId'](_0x9844bd);for(const _0x1a05e8 of _0x3f141c)_0x161760['removeMarker'](_0x1a05e8);});}),this['listenTo'](_0x6ac8ed,mt('resolveCommentThread',_0x32380f),(_0x18f2eb,{threadId:_0x46fee8})=>{(this['_reconvertMarkers'](_0x46fee8),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x46fee8)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x6ac8ed,mt('reopenCommentThread',_0x32380f),(_0x45e70b,{threadId:_0x5dc58d})=>{this['_reconvertMarkers'](_0x5dc58d);},{'priority':'low'}),this['listenTo'](_0x6ac8ed,mt('addComment',_0x32380f),(_0x15ceb5,{threadId:_0x257f41,isFromAdapter:_0x560e9f})=>{const _0xbcb079=this['getAllMarkersForId'](_0x257f41);if(_0x560e9f||0x0==_0xbcb079['length']||!_0x6ac8ed['hasCommentThread'](_0x257f41))return;0x1===_0x6ac8ed['getCommentThread'](_0x257f41)['length']&&_0x260560['model']['enqueueChange']({'isUndoable':!0x1},_0x309eda=>{for(const _0x5f4878 of _0xbcb079)_0x309eda['updateMarker'](_0x5f4878,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['destroy'](){const _0x1a6c24=this['editor']['plugins']['get'](o),_0x37855d=this['editor']['config']['get']('collaboration.channelId');for(const _0x4ec9db of _0x1a6c24['getCommentThreads']({'channelId':_0x37855d}))_0x1a6c24['_detachCommentThread'](_0x4ec9db['id']),_0x1a6c24['_threads']['delete'](_0x4ec9db['id']);super['destroy']();}['hasMarkerForId'](_0x39301d){return this['getAllMarkersForId'](_0x39301d)['length']>0x0;}['getAllMarkersForId'](_0x261f02){const _0x4a9035=[];for(const _0x4900c8 of this['editor']['model']['markers'])_0x4900c8['name']['startsWith']('comment:'+_0x261f02)&&_0x4a9035['push'](_0x4900c8);return _0x4a9035;}['scrollToThreadMarker'](_0x53e679){const _0x3edd4e=this['_getTargetForId'](_0x53e679);_0x3edd4e&&setTimeout(()=>{this['activeMarker']&&ne(this['activeMarker'])['id']===_0x53e679&&rt({'target':_0x3edd4e[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x8a3a07){this['editor']['model']['change'](()=>{for(const _0x28ce92 of this['getAllMarkersForId'](_0x8a3a07))this['editor']['editing']['reconvertMarker'](_0x28ce92);});}['_attachArchivedThread'](_0x3b1131){const _0x4b9bc6=this['editor']['plugins']['get'](o),_0x317f80=this['editor']['plugins']['get'](P),_0x10c17e=_0x4b9bc6['getCommentThread'](_0x3b1131);if(!_0x10c17e['isAttached']){const _0x3a434d=_0x10c17e['attachTo'](()=>this['_getTargetForId'](_0x10c17e['id']));_0x317f80['registerAnnotation'](_0x3a434d),_0x10c17e['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x26b4ac=this['editor'],_0x27ac79=_0x26b4ac['plugins']['get'](it);_0x26b4ac['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0xcd2f14,_0x570cc5)=>{const {id:_0x2a5252}=ne(_0xcd2f14['markerName']),_0x408169=_0x26b4ac['plugins']['get'](o)['getCommentThread'](_0x2a5252),_0xbc9853=this['activeMarker']&&ne(this['activeMarker'])['id']===_0x2a5252;let _0x4d1b3e;if(_0x408169&&_0x408169['isResolved']&&!_0xbc9853&&_0xcd2f14['item'])return _0x570cc5['consumable']['consume'](_0xcd2f14['item'],'addMarker:'+_0xcd2f14['markerName']),_0x570cc5['consumable']['consume'](_0xcd2f14['item'],'removeMarker:'+_0xcd2f14['markerName']),null;const _0x47c180=['ck-comment-marker'];return _0xbc9853&&_0x47c180['push']('ck-comment-marker--active'),_0x4d1b3e=_0x408169&&_0x408169['length']?_0x408169['comments']['first']['author']['id']:_0x27ac79['me']['id'],{'classes':_0x47c180,'attributes':{'data-comment':_0x2a5252,'data-author-id':_0x4d1b3e}};}}),_0x26b4ac['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x45fd8c,{options:_0x26b265})=>{const _0x4ad9d8=_0x26b4ac['plugins']['get'](o),_0x161b75=_0x26b4ac['model']['markers']['get'](_0x45fd8c),{id:_0x41789c,part:_0x21910e}=ne(_0x45fd8c);if(_0x161b75&&!_0x161b75['affectsData'])return null;if(_0x26b265['ignoreResolvedComments']){const _0x296878=_0x4ad9d8['getCommentThread'](_0x41789c);if(_0x296878&&_0x296878['isResolved'])return null;}return{'group':'comment','name':_0x21910e?_0x41789c+':'+_0x21910e:_0x41789c};}}),_0x26b4ac['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x171bee,{writer:_0x20ee5a})=>_0x20ee5a['createElement']('$marker',{'data-name':'comment:'+_0x171bee['getAttribute']('id')})}),_0x26b4ac['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x186e77=this['editor'],_0x32720f=_0x186e77['plugins']['get'](o),_0x12d578=new Set(),_0x3413e2=new Set();_0x186e77['model']['document']['registerPostFixer'](_0x59d8c6=>{let _0x48413e=!0x1;for(const {name:_0x4f8ae9,data:_0x1b8b69}of _0x186e77['model']['document']['differ']['getChangedMarkers']()){const {group:_0x75be2c,id:_0x2ec82a}=ne(_0x4f8ae9);let _0x119766=_0x1b8b69['newRange'];if('comment'!==_0x75be2c||!_0x119766)continue;const _0x1d1473='$graveyard'===_0x119766['root']['rootName'];_0x1d1473||(_0x119766=dt(_0x119766,_0x186e77['model']),!_0x119766||_0x119766['isCollapsed']||!_0x1b8b69['newRange']||_0x119766['isEqual'](_0x1b8b69['newRange']))?_0x186e77['model']['hasContent'](_0x119766)&&!_0x1d1473?this['isThreadsLoadingPaused']?_0x12d578['add'](_0x4f8ae9):this['_handleThreadMarker'](_0x4f8ae9,_0x2ec82a):(_0x3413e2['add'](_0x4f8ae9),_0x12d578['delete'](_0x4f8ae9),_0x59d8c6['removeMarker'](_0x4f8ae9),_0x48413e=!0x0):(_0x59d8c6['updateMarker'](_0x4f8ae9,{'range':_0x119766}),_0x48413e=!0x0);}return _0x48413e;}),this['on']('change:isThreadsLoadingPaused',(_0x3c05a9,_0x1f52d8,_0x36b25f)=>{if(!_0x36b25f&&_0x12d578['size'])for(const _0x16d9f2 of _0x12d578){const {id:_0x34bbde}=ne(_0x16d9f2);_0x12d578['delete'](_0x16d9f2),_0x186e77['model']['markers']['get'](_0x16d9f2)&&this['_handleThreadMarker'](_0x16d9f2,_0x34bbde);}}),this['listenTo'](_0x186e77['model']['document'],'change',(_0x2f241f,_0x3bd322)=>{for(const {name:_0x37af2a,data:{newRange:_0x133192}}of _0x186e77['model']['document']['differ']['getChangedMarkers']()){const {group:_0xd736b8,id:_0x39082e}=ne(_0x37af2a);if('comment'!==_0xd736b8)continue;const _0x5ed506=_0x32720f['getCommentThread'](_0x39082e),_0x4d09b9=this['hasMarkerForId'](_0x39082e);_0x5ed506&&(!_0x5ed506['_hasTargetInContent']&&_0x133192&&_0x186e77['editing']['view']['once']('render',()=>{const _0x6bb58f=_0x186e77['plugins']['get'](N),_0x1c5d98=_0x32720f['_threadToController']['get'](_0x5ed506)['view'];_0x6bb58f['getByInnerView'](_0x1c5d98)['refreshVisibility']();},{'priority':'low'}),_0x5ed506['_hasTargetInContent']=_0x4d09b9||!!_0x133192),_0x133192||(_0x3413e2['add'](_0x37af2a),_0x12d578['delete'](_0x37af2a));}if(_0x3bd322['isLocal'])for(const _0x4f8add of _0x3413e2){const {id:_0x183f90}=ne(_0x4f8add),_0x36db05=_0x32720f['getCommentThread'](_0x183f90),_0x4ad052=this['hasMarkerForId'](_0x183f90);_0x12d578['delete'](_0x4f8add),!_0x36db05||_0x4ad052||_0x36db05['unlinkedAt']||_0x36db05['setUnlinkedAt'](new Date());}_0x3413e2['clear']();});}['_getTargetForId'](_0x3bd8e6){const _0x75a2b3=this['editor'],_0x420b82=this['getAllMarkersForId'](_0x3bd8e6);return nt(_0x75a2b3['editing'],_0x420b82);}['_getTextContext'](_0x490d5c){const _0x1ca384=this['getAllMarkersForId'](_0x490d5c);let _0x26e0d2='',_0x1feb97=!0x1;for(const _0x525616 of _0x1ca384){const _0x4366cb=_0x525616['getRange']();for(const _0x867c0c of Array['from'](_0x4366cb['getItems']()))_0x867c0c['is']('$textProxy')?(_0x26e0d2&&_0x1feb97&&(_0x26e0d2+='\x20',_0x1feb97=!0x1),_0x26e0d2+=_0x867c0c['data']):_0x1feb97=!0x0;_0x1feb97=!0x0;}return _0x26e0d2['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x5e5b94,_0x30105b){const _0x11da19=this['editor'],_0x45ae7e=_0x11da19['plugins']['get'](o);let _0x57d591=_0x45ae7e['getCommentThread'](_0x30105b);const _0x482af5=_0x11da19['config']['get']('collaboration.channelId'),_0x29efd5=_0x11da19['plugins']['get'](P);if(_0x57d591&&(_0x57d591['unlinkedAt']&&_0x57d591['setUnlinkedAt'](null),_0x57d591['isAttached']))return _0x57d591;return!this['getAllMarkersForId'](_0x30105b)[0x0]['managedUsingOperations']?_0x11da19['editing']['view']['once']('render',()=>{if(_0x45ae7e['getCommentThread'](_0x30105b))return;const _0x15c2d6=_0x11da19['plugins']['get'](N);_0x57d591=_0x45ae7e['openNewCommentThread']({'channelId':_0x482af5,'threadId':_0x30105b,'target':()=>this['_getTargetForId'](_0x30105b),'context':{'type':'text','value':this['_getTextContext'](_0x30105b)}});const _0x38a665=_0x45ae7e['_threadToController']['get'](_0x57d591)['view'],_0x64095d=_0x15c2d6['getByInnerView'](_0x38a665);_0x64095d&&_0x29efd5['registerAnnotation'](_0x64095d);},{'priority':'low'}):_0x45ae7e['fetchCommentThread']({'channelId':_0x482af5,'threadId':_0x30105b})['then'](_0x19e413=>{if('destroyed'!==_0x11da19['state']){if(_0x57d591=_0x19e413,_0x57d591&&!_0x57d591['isAttached']){const _0x27b382=_0x57d591['attachTo'](()=>this['_getTargetForId'](_0x30105b));_0x29efd5['registerAnnotation'](_0x27b382),_0x57d591['isResolved']&&this['_reconvertMarkers'](_0x30105b);}else{if(!_0x57d591){const _0x467b04=this['getAllMarkersForId'](_0x30105b);_0x11da19['model']['change'](_0x4ce679=>{for(const _0xd190b5 of _0x467b04)_0x4ce679['removeMarker'](_0xd190b5);});}}}}),_0x57d591;}['_handleThreadMarker'](_0x495b48,_0x451a15){const _0x49a943=this['_attachMarkerToThread'](_0x495b48,_0x451a15);_0x49a943&&!_0x49a943['context']&&_0x49a943['setContext']({'type':'text','value':this['_getTextContext'](_0x451a15)});}['_initAriaMarkerChangeAnnouncements'](){const _0x296fbb=this['editor'];ot(_0x296fbb['model'],({left:_0x4800cf,entered:_0xa7db9d})=>{for(const _0x2bab81 of _0x4800cf)if(ht(_0x2bab81)){_0x296fbb['ui']['ariaLiveAnnouncer']['announce'](S(_0x296fbb['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x577960 of _0xa7db9d)if(ht(_0x577960)){_0x296fbb['ui']['ariaLiveAnnouncer']['announce'](S(_0x296fbb['locale'],'ENTER_COMMENT_ANNOUNCEMENT',et(te)));break;}});}}function mt(_0xc170d6,_0x70051f){return _0x70051f?_0xc170d6+':'+_0x70051f:_0xc170d6;}function ne(_0x14b495){const _0x311322=_0x14b495['split'](':');return{'group':_0x311322[0x0],'id':_0x311322[0x1],'part':_0x311322[0x2]};}function dt(_0x161fc5,_0x1144f1){const _0x52b1a6=_0x1144f1['schema'],_0x2390d6=_0x1144f1['createRange'](_0x161fc5['start']);for(const _0xaeb3b8 of _0x161fc5['getWalker']()){const {type:_0x37768c,item:_0x3c9514,nextPosition:_0xd50504}=_0xaeb3b8;if('text'===_0x37768c||_0x52b1a6['isObject'](_0x3c9514)){const _0xb1b7ee=_0x1144f1['createPositionBefore'](_0x3c9514);_0x2390d6['isCollapsed']&&(_0x2390d6['start']=_0xb1b7ee),_0x2390d6['end']=_0xd50504;}}return _0x2390d6;}function ht(_0x1bd6e5){return'comment'===ne(_0x1bd6e5['name'])['group'];}var kt='<!--\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 _0x5d682a{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 xt;}get['CommentThreadInputView'](){return Pt;}['init'](){const _0x4707db=this['editor'],_0x5d2b46=_0x4707db['plugins']['get'](o),_0x17af76=_0x4707db['plugins']['get'](r),_0x49d5d0=_0x4707db['plugins']['get'](N),_0x5b11a3=_0x4707db['plugins']['get'](P);_0x4707db['ui']['componentFactory']['add']('comment',()=>{const _0x39c0fb=this['_createUIButton'](_0x1c4b84);return _0x39c0fb['tooltip']=!0x0,_0x39c0fb;}),_0x4707db['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x5ce43a)),_0x5b11a3['addSourceCollector'](()=>{const _0x1a72d3=[];for(const [_0x41a4e0,_0x547859]of _0x5d2b46['_threadToController']){const _0x49282c=_0x17af76['getAllMarkersForId'](_0x41a4e0['id']),_0x4361a0=_0x49282c['map'](_0x5e376e=>_0x5e376e['getRange']());_0x49282c['length']>0x0&&_0x1a72d3['push']([_0x547859['view'],_0x4361a0]);}return _0x1a72d3;}),this['listenTo'](_0x49d5d0,'change:activeAnnotations',(_0x141a81,_0x41604a,_0x57d2f0)=>{const _0x16e96f=Array['from'](_0x57d2f0)['map'](_0x334833=>_0x334833['innerView'])['find'](_0x3c5702=>_0x5d2b46['_viewToController']['has'](_0x3c5702));if(!_0x16e96f)return void(_0x17af76['activeMarker']=null);const _0x443064=_0x5d2b46['_viewToController']['get'](_0x16e96f)['model']['id'],_0x5a051b='comment:'+_0x443064;_0x443064&&_0x17af76['hasMarkerForId'](_0x443064)?_0x17af76['activeMarker']=_0x5a051b:_0x17af76['activeMarker']&&(_0x17af76['activeMarker']=null);}),this['listenTo'](_0x5d2b46,'removeCommentThread',(_0x691e69,{threadId:_0x3de5dc,isFromAdapter:_0x49d530})=>{!_0x49d530&&_0x4707db['ui']['focusTracker']['isFocused']&&_0x17af76['hasMarkerForId'](_0x3de5dc)&&_0x4707db['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x5d2b46,'addComment',(_0xde9282,{threadId:_0x28aea0,isFromAdapter:_0x4da5a2})=>{if(_0x4da5a2||!_0x17af76['hasMarkerForId'](_0x28aea0)||!_0x5d2b46['hasCommentThread'](_0x28aea0))return;0x1===_0x5d2b46['getCommentThread'](_0x28aea0)['length']&&(_0x4707db['editing']['view']['focus'](),_0xde9282['stop']());},{'priority':'low'});}['_createUIButton'](_0x4fa52c){const _0x1a6110=this['editor'],_0x73990f=new _0x4fa52c(_0x1a6110['locale']),_0xe36251=_0x1a6110['commands']['get']('addCommentThread');return _0x73990f['set']({'label':S(_0x1a6110['locale'],'Comment'),'icon':kt}),_0x73990f['bind']('isEnabled')['to'](_0xe36251),this['listenTo'](_0x73990f,'execute',()=>_0xe36251['execute']()),_0x73990f;}}class s extends _0x5d682a{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x3653c0){super(_0x3653c0),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x3fc805,_0x21f771,_0x38c6f7)=>{_0x38c6f7?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x4ded60,_0x331471]of this['editor']['commands'])_0x331471['affectsData']&&'addCommentThread'!==_0x4ded60&&_0x331471['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0xa7b105=this['editor']['editing']['view']['document'];this['listenTo'](_0xa7b105,'cut',_0x2dfe4a=>_0x2dfe4a['stop'](),{'priority':'highest'}),this['listenTo'](_0xa7b105,'clipboardInput',_0xf165fe=>_0xf165fe['stop'](),{'priority':'highest'}),this['listenTo'](_0xa7b105,'delete',_0x4870e8=>_0x4870e8['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x1345de,_0x115ed3]of this['editor']['commands'])_0x115ed3['affectsData']&&'addCommentThread'!==_0x1345de&&_0x115ed3['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x5c60c1{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4805ff){super(_0x4805ff),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x31267e=this['context']['plugins']['get'](N);this['listenTo'](_0x31267e,'_activateAnnotation',(_0x1db9cd,_0x28c579)=>{for(const _0x37d5b7 of this['activeUIs']){const _0x3548ed=this['_uis']['get'](_0x37d5b7);(0x0,this['_uisData']['get'](_0x37d5b7)['filter'])(_0x28c579)&&_0x3548ed['setActiveAnnotation'](_0x28c579);}}),this['listenTo'](_0x31267e,'_deactivateAllAnnotations',()=>{for(const _0x54c983 of this['activeUIs']){this['_uis']['get'](_0x54c983)['setActiveAnnotation'](null);}}),this['listenTo'](_0x31267e['_visibleAnnotations'],'add',(_0x22c49f,_0x483eed)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x483eed);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x325682){return this['activeUIs']['has'](_0x325682);}['activate'](_0x266a4d,_0x49587d=()=>!0x0){const _0x37c95a=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x266a4d))throw new _0x4f0fc3('annotationsuis-missing-ui',this,{'uiName':_0x266a4d});this['isActive'](_0x266a4d)&&this['deactivate'](_0x266a4d),this['activeUIs']['add'](_0x266a4d);const _0x1eb4b8=new x();!function({source:_0x5d3c07,target:_0x28bfbc,filter:_0xd5d625}){for(const _0x5f2fb5 of _0x5d3c07)_0xd5d625(_0x5f2fb5)&&_0x28bfbc['add'](_0x5f2fb5);_0x28bfbc['listenTo'](_0x5d3c07,'add',(_0x1bfe61,_0x2e6cb9)=>{_0xd5d625(_0x2e6cb9)&&_0x28bfbc['add'](_0x2e6cb9);}),_0x28bfbc['listenTo'](_0x5d3c07,'remove',(_0x46d8eb,_0xcd3eeb)=>{_0x28bfbc['has'](_0xcd3eeb)&&_0x28bfbc['remove'](_0xcd3eeb);});}({'source':_0x37c95a['_visibleAnnotations'],'target':_0x1eb4b8,'filter':_0x49587d}),this['_uisData']['set'](_0x266a4d,{'collection':_0x1eb4b8,'filter':_0x49587d});const _0x456764=this['_uis']['get'](_0x266a4d);_0x456764['attach'](_0x1eb4b8),this['listenTo'](_0x456764,'change:activeAnnotation',(_0x1572e1,_0x339b9e,_0x225598,_0x4599b5)=>{_0x4599b5&&_0x37c95a['_removeActiveAnnotation'](_0x4599b5),_0x225598&&_0x37c95a['_addActiveAnnotation'](_0x225598);});}['deactivate'](_0x5b9a51){if(this['activeUIs']['delete'](_0x5b9a51),!this['_uis']['has'](_0x5b9a51))throw new _0x4f0fc3('annotationsuis-missing-ui',this,{'uiName':_0x5b9a51});const _0x377514=this['_uis']['get'](_0x5b9a51);_0x377514['detach'](),this['stopListening'](_0x377514),this['_uisData']['get'](_0x5b9a51)['collection']['destroy'](),this['_uisData']['delete'](_0x5b9a51);}['switchTo'](_0x390fd0){if(!this['_uis']['has'](_0x390fd0))throw new _0x4f0fc3('annotationsuis-missing-ui',this,{'uiName':_0x390fd0});const _0xaf5e6b=this['context']['plugins']['get'](N),_0x254aac=Array['from'](_0xaf5e6b['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x390fd0);const _0x1b4f7b=this['_uis']['get'](_0x390fd0);_0x1b4f7b['setActiveAnnotation'](_0x254aac),_0x1b4f7b['_setSelectedAnnotations']&&_0x254aac&&_0x1b4f7b['_setSelectedAnnotations']([_0x254aac]);}['deactivateAll'](){for(const _0x325109 of this['activeUIs'])this['deactivate'](_0x325109);}['register'](_0x56f714,_0x32a6f7){if(this['_uis']['has'](_0x56f714))throw new _0x4f0fc3('annotationsuis-register-already-registered');if('function'!=typeof _0x32a6f7['attach']||'function'!=typeof _0x32a6f7['detach']||'function'!=typeof _0x32a6f7['setActiveAnnotation'])throw new _0x4f0fc3('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x56f714,_0x32a6f7);}['refilterAnnotations'](){const _0x61b031=this['context']['plugins']['get'](N)['collection'],_0x2d4386=new Map(),_0x3843f5=Array['from'](this['activeUIs']);for(const _0x1de41d of this['activeUIs']){const _0x48ce94=this['_uisData']['get'](_0x1de41d)['collection'];for(const _0x17df64 of _0x48ce94)_0x2d4386['set'](_0x17df64,_0x1de41d);}for(const _0x411a69 of _0x61b031){const _0x57333d=_0x2d4386['get'](_0x411a69);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x411a69);const _0x5eedb8=_0x3843f5['find'](_0x14b756=>this['_uisData']['get'](_0x14b756)['filter'](_0x411a69));_0x57333d!==_0x5eedb8&&(_0x57333d&&this['_uisData']['get'](_0x57333d)['collection']['remove'](_0x411a69),_0x5eedb8&&this['_uisData']['get'](_0x5eedb8)['collection']['add'](_0x411a69));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5054c5){const _0x29a6ed=[];for(const _0x39815d of this['activeUIs']){(0x0,this['_uisData']['get'](_0x39815d)['filter'])(_0x5054c5)&&_0x29a6ed['push'](_0x39815d);}if(_0x29a6ed['length']>0x1)throw new _0x4f0fc3('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x29a6ed,'annotationType':_0x5054c5['type']});}}const oe=Ht('px');class V extends _t{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x516edb){super(_0x516edb);const _0x7cd4ec=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 _0x465762(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x7cd4ec['to']('class')],'style':{'minHeight':_0x7cd4ec['to']('minHeight',_0x779f9e=>'number'==typeof _0x779f9e?oe(_0x779f9e+0xa):null)},'dir':_0x516edb['uiLanguageDirection'],'role':'application','aria-label':S(_0x516edb,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x516edb,'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',_0x507ace=>{this['_updateItemPositionInFocusables'](_0x507ace['source']);}),this['list']['forEach'](_0x54cd48=>{this['focusTracker']['add'](_0x54cd48['element']),this['_updateItemPositionInFocusables'](_0x54cd48);}),this['list']['on']('change',(_0xa83a0d,_0x18eb1e)=>{for(const _0xa9ac54 of _0x18eb1e['removed'])this['focusTracker']['remove'](_0xa9ac54['element']),this['focusables']['remove'](_0xa9ac54);for(const _0xe6fc7d of _0x18eb1e['added'])this['focusTracker']['add'](_0xe6fc7d['element']),this['_updateItemPositionInFocusables'](_0xe6fc7d);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x2af5f9){const _0x56dfb6=this['focusables']['getIndex'](_0x2af5f9);let _0x273a60,_0x1d9b1f;for(const _0x50bb42 of this['focusables'])if(_0x2af5f9['top']<_0x50bb42['top']){_0x273a60=_0x50bb42;break;}if(_0x1d9b1f=_0x273a60?this['focusables']['getIndex'](_0x273a60):this['focusables']['length'],-0x1!==_0x56dfb6){if(_0x56dfb6===_0x1d9b1f-0x1)return;this['focusables']['remove'](_0x2af5f9),_0x1d9b1f=_0x273a60?this['focusables']['getIndex'](_0x273a60):this['focusables']['length'];}this['focusables']['add'](_0x2af5f9,_0x1d9b1f);}}const qt=Ht('px');class H extends _t{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x3bf38b){super(_0x3bf38b),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x266bc4,_0x24c9aa)=>_0x266bc4+_0x24c9aa),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x30a395=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x30a395['to']('isAnimationDisabled',_0x420ee8=>_0x420ee8?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x30a395['to']('top',_0x1701cf=>qt(_0x1701cf))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x58b4d6=this['element']['clientHeight'];_0x58b4d6&&(this['height']=_0x58b4d6);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x5c60c1{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24eaca){super(_0x24eaca),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 _0x59a395=this['context']['config']['get']('sidebar.container');_0x59a395&&this['setContainer'](_0x59a395);}['setContainer'](_0xd23557){if(!y(_0xd23557))throw new _0x4f0fc3('sidebar-setcontainer-invalid-element');this['container']=_0xd23557;}['_attachToContainer']({viewClass:_0x9f9b12='',spaceBetweenItems:_0x25e9e6=0x19}={}){if(!y(this['container']))throw new _0x4f0fc3('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x9f9b12,this['_spaceBetweenItems']=_0x25e9e6;}['rearrange']({removedAnnotation:_0x1929a5,previousAnnotation:_0x4cd0bf,nextAnnotation:_0x546772}){const _0x131e65=this['getSidebarItemView'](_0x1929a5);this['view']['list']['remove'](_0x131e65),this['_destroySidebarItemView'](_0x1929a5),_0x4cd0bf&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4cd0bf)),_0x546772&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x546772)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x55c0a1,activatedAnnotation:_0x574a98,disableAnimationOnActivatedAnnotation:_0x5844e3}){if(this['_activeAnnotation']=_0x574a98,_0x55c0a1){_0x55c0a1['isActive']=!0x1;const _0x500be2=this['getSidebarItemView'](_0x55c0a1);_0x500be2&&_0x5844e3&&(_0x500be2['isAnimationDisabled']=!0x1);}if(_0x574a98){const _0x3d713e=this['getSidebarItemView'](_0x574a98);_0x3d713e&&(_0x574a98['isActive']=!0x0,_0x5844e3&&(_0x3d713e['isAnimationDisabled']=!0x0,_0x3d713e['top']+=0x1),this['_alignToTargetRect'](_0x3d713e));}}['_detachFromContainer'](_0x56ab58){if(this['view']['element']['remove'](),_0x56ab58){for(const _0x560f01 of _0x56ab58)this['_destroySidebarItemView'](_0x560f01);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x108067,_0x349342){_0x349342||(_0x349342=_0x108067['view']);const _0x1dd600=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x1dd600,_0x108067),this['_annotationToSidebarItemView']['set'](_0x108067,_0x1dd600),_0x1dd600['content']['add'](_0x349342),this['listenTo'](_0x108067['view'],'change:targetRect',(_0x40bce7,_0x5f69a6,_0x26c5ad)=>{const _0x53e4a2=this['_getTargetTop'](_0x108067,_0x26c5ad);_0x1dd600['_targetTop']!=_0x53e4a2&&(_0x1dd600['_targetTop']=_0x53e4a2,this['_setItemTop'](_0x1dd600,_0x53e4a2));}),this['listenTo'](_0x1dd600,'change:top',()=>{this['_recalculate'](_0x1dd600,'top');}),this['listenTo'](_0x1dd600,'change:bottom',()=>{this['_recalculate'](_0x1dd600,'bottom');}),this['_alignToTargetRect'](_0x1dd600);const _0x55a495=this['_getItemBefore'](_0x1dd600);if(_0x55a495)this['_alignAfterItem'](_0x55a495,_0x1dd600)||this['_alignToTargetRect'](_0x1dd600);else this['_alignToTargetRect'](_0x1dd600);return this['_updateLastItem'](),this['view']['list']['add'](_0x1dd600),_0x1dd600;}['_alignForTopChange'](_0x3e6d36){if(!_0x3e6d36['content']['length'])return;const _0x56c07a=this['_getItemBefore'](_0x3e6d36);if(!_0x56c07a)return;const _0x4610bc=this['_sidebarItemViewToAnnotation']['get'](_0x56c07a),_0x8c78ff=this['_activeAnnotation'];_0x8c78ff&&_0x8c78ff===_0x4610bc?this['_alignAfterItem'](_0x56c07a,_0x3e6d36):this['_alignBeforeItem'](_0x3e6d36,_0x56c07a);}['_alignForBottomChange'](_0x30e63d){if(!_0x30e63d['content']['length'])return;const _0x338baf=this['_getItemAfter'](_0x30e63d);if(!_0x338baf)return;const _0x38667b=this['_sidebarItemViewToAnnotation']['get'](_0x338baf),_0x2b9cc0=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x75ffe3=this['_activeAnnotation'];_0x75ffe3&&_0x75ffe3===_0x38667b&&_0x2b9cc0?(this['_alignBeforeItem'](_0x338baf,_0x30e63d),this['_alignAfterItem'](_0x30e63d,_0x338baf)):_0x75ffe3&&_0x75ffe3===_0x38667b?this['_alignBeforeItem'](_0x338baf,_0x30e63d):this['_alignAfterItem'](_0x30e63d,_0x338baf);}['_recalculate'](_0x507c42,_0xbe23d){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x61f1e7,changedProp:_0x44155f}of this['_recalculateBuffer'])'top'===_0x44155f?this['_alignForTopChange'](_0x61f1e7):this['_alignForBottomChange'](_0x61f1e7);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x507c42,'changedProp':_0xbe23d});}['getSidebarItemView'](_0x17ad66){return this['_annotationToSidebarItemView']['get'](_0x17ad66);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x27185f){const _0x5f3599=this['getSidebarItemView'](_0x27185f);this['stopListening'](_0x5f3599),this['stopListening'](_0x27185f['view']),_0x5f3599['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x27185f),this['_sidebarItemViewToAnnotation']['delete'](_0x5f3599);}['_createSidebarView'](){const _0x931276=new V(this['context']['locale']);return _0x931276['render'](),this['on']('change:_lastItem',(_0x874c8b,_0x2a6148,_0x680e59,_0x284266)=>{_0x284266&&_0x931276['unbind']('minHeight'),_0x680e59?_0x931276['bind']('minHeight')['to'](_0x680e59,'bottom'):_0x931276['minHeight']=null;}),_0x931276;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0xc09028){const _0x17eda6=this['_sidebarItemViewToAnnotation']['get'](_0xc09028),_0x52cbd0=_0x17eda6&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x17eda6)-0x1);return _0x52cbd0&&this['getSidebarItemView'](_0x52cbd0)||null;}['_getItemAfter'](_0x29ed5d){const _0x41a2d9=this['_sidebarItemViewToAnnotation']['get'](_0x29ed5d),_0x6df59e=_0x41a2d9&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x41a2d9)+0x1);return _0x6df59e&&this['getSidebarItemView'](_0x6df59e)||null;}['_alignBeforeItem'](_0x1eae6b,_0x2634c2){_0x1eae6b['updateHeight']();const _0x4c418e=R(_0x2634c2['bottom']+this['_spaceBetweenItems'],_0x1eae6b['top']);return!!_0x4c418e&&(this['_setItemTop'](_0x2634c2,_0x2634c2['top']-_0x4c418e),!0x0);}['_alignAfterItem'](_0x46051c,_0x11631b){_0x46051c['updateHeight']();const _0x185383=R(_0x46051c['bottom']+this['_spaceBetweenItems'],_0x11631b['top']);return!!_0x185383&&(this['_setItemTop'](_0x11631b,_0x11631b['top']+_0x185383,!0x1),!0x0);}['_alignToTargetRect'](_0x1f492c){const _0x2771aa=this['_sidebarItemViewToAnnotation']['get'](_0x1f492c);if(!_0x2771aa||!_0x2771aa['target']||!_0x2771aa['targetRect'])return;const _0x1a2c75=this['_getTargetTop'](_0x2771aa,_0x2771aa['targetRect']);this['_setItemTop'](_0x1f492c,_0x1a2c75);}['_getTargetTop'](_0x56b676,_0x3d22c6){if(null===_0x3d22c6)return 0x0;if(_0x56b676['target']instanceof _0x5239f0)return _0x3d22c6['top'];{const _0x1ad475=new _0x5239f0(this['view']['element'])['top'];return _0x3d22c6['top']-_0x1ad475;}}['_setItemTop'](_0x5abbd4,_0x2417e8,_0x58a876=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x58a876&&(_0x2417e8=Math['max'](_0x2417e8,this['_getMaxAvailableTop'](_0x5abbd4))),_0x5abbd4['top']=_0x2417e8;}['_getMaxAvailableTop'](_0x44de82){let _0x1d65f8=this['_getItemBefore'](_0x44de82),_0xf388d=0x0;for(;_0x1d65f8;)_0x1d65f8['updateHeight'](),_0xf388d+=this['_spaceBetweenItems']+_0x1d65f8['height'],_0x1d65f8=this['_getItemBefore'](_0x1d65f8);return _0xf388d;}}function R(_0xc8c18d,_0x22b05b){return Math['max'](_0xc8c18d-_0x22b05b,0x0);}function y(_0x203388){return null!==_0x203388&&'object'==typeof _0x203388&&0x1===_0x203388['nodeType'];}class e extends _0x5c60c1{['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(_0x110c1b){super(_0x110c1b),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x82816a(),this['_refreshPositioningDebounced']=_0x1eb64a(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x533cb6=this['context']['plugins']['get'](M),_0x10b072=this['context']['plugins']['get'](z);_0x533cb6['register']('wideSidebar',this),_0x10b072['container']&&_0x533cb6['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x45695f){if(_0x45695f===this['activeAnnotation'])return;const _0x189030=this['context']['plugins']['get'](z);_0x189030['_activeAnnotation']=_0x45695f;const _0x5fa1ad=this['activeAnnotation'];this['activeAnnotation']=_0x45695f,_0x189030['refresh']({'blurredAnnotation':_0x5fa1ad,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x363408){this['annotations']=_0x363408;const _0xe65fb3=this['context']['plugins']['get'](z);if(_0xe65fb3['_annotations']=_0x363408,this['isAttached'])throw new _0x4f0fc3('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0xe65fb3,'set:container',()=>{this['detach'](),this['listenTo'](_0xe65fb3,'change:container',_0xfeb6f5=>{_0xfeb6f5['off'](),this['attach'](_0x363408);});}),_0xe65fb3['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x39e8eb=_0xe5299f=>{_0xe5299f['updateTargetRect'](),_0xe65fb3['addAnnotation'](_0xe5299f);};for(const _0x154744 of _0x363408)_0x39e8eb(_0x154744);this['listenTo'](_0x363408,'add',(_0x230745,_0x2888bb)=>{_0x39e8eb(_0x2888bb);}),this['listenTo'](_0x363408,'remove',(_0x269866,_0x5488aa,_0xdbf0e5)=>{_0xe65fb3['rearrange']({'removedAnnotation':_0x5488aa,'previousAnnotation':_0x363408['get'](_0xdbf0e5-0x1),'nextAnnotation':_0x363408['get'](_0xdbf0e5+0x1)}),_0x5488aa===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x363408,'focus',(_0x4a5687,_0x1613e2)=>{this['setActiveAnnotation'](_0x1613e2);}),this['listenTo'](_0x363408,'blur',()=>{this['setActiveAnnotation'](null);});const _0x4cbd0d=this['context']instanceof _0x19199a?this['context']['editors']:new _0x82816a([this['context']]);for(const _0x19bf42 of _0x4cbd0d)this['_integrateWithEditorAnnotations'](_0x19bf42);this['listenTo'](_0x4cbd0d,'add',(_0x103421,_0x5564bf)=>{this['listenTo'](_0x5564bf,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5564bf);});}),this['listenTo'](_0x4cbd0d,'remove',(_0x1553d7,_0x30a03d)=>{_0x30a03d['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x30a03d['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x4f0fc3('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x26a3dc=this['context']['plugins']['get'](z);_0x26a3dc['_detachFromContainer'](this['annotations']),this['stopListening'](_0x26a3dc),this['stopListening'](this['annotations']),this['context']instanceof _0x19199a&&this['stopListening'](this['context']['editors']);for(const _0x1bc952 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1bc952);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x350e7d){if(!_0x350e7d['plugins']['has']('EditorAnnotations'))return;const _0x3d7edd=_0x350e7d['plugins']['get']('EditorAnnotations'),_0x1e2f30=()=>{const _0x2e5ad2=_0x3d7edd['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x2e5ad2[0x0]||null);};this['listenTo'](_0x3d7edd,'refresh',_0x1e2f30),this['listenTo'](_0x3d7edd,'blur',(_0x29145c,{isAnnotationTracked:_0x2c8296})=>{this['activeAnnotation']&&_0x2c8296(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3d7edd,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x41407a=>{_0x3d7edd['hasDomSelection']()&&(_0x1e2f30(),_0x41407a['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3d7edd);}['_destroyEditorAnnotationsIntegration'](_0x318681){this['stopListening'](_0x318681),this['_editorAnnotations']['remove'](_0x318681);}}class D extends _0x1c4b84{['counterView'];constructor(_0xa59784){super(_0xa59784);const _0x3d0cc5=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1ebca7,_0x38a439)=>_0x1ebca7?'...':_0x38a439['toString']()),this['set']('annotationType',''),this['icon']=kt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _t(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x3d0cc5['to']('annotationType',_0x458177=>'ck-annotation-counter__badge--'+_0x458177),_0x3d0cc5['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x3d0cc5['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x5c60c1{['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(_0xa25271){super(_0xa25271),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0xee441c),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x82816a(),this['_refreshPositioningDebounced']=_0x1eb64a(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x555bf2(this['context']['locale']),this['balloonPanelView']=new _0x15415b(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x5ef6d6){this['annotations']=_0x5ef6d6;const _0x288976=this['context']['plugins']['get'](z),_0x1ab6c1=this['balloonPanelView'];if(_0x288976['_annotations']=_0x5ef6d6,this['isAttached'])throw new _0x4f0fc3('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x288976,'set:container',()=>{this['detach'](),this['listenTo'](_0x288976,'change:container',_0xc859a3=>{_0xc859a3['off'](),this['attach'](_0x5ef6d6);});}),_0x288976['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x490eed=_0x591473=>{const _0x3e8092=new D(this['context']['locale']);_0x288976['addAnnotation'](_0x591473,_0x3e8092),this['_annotationToNarrowView']['set'](_0x591473,_0x3e8092),_0x3e8092['bind']('isDirty','annotationType','number')['to'](_0x591473['view'],'isDirty','type','length'),_0x3e8092['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x1ab6c1['content']['first']!==_0x591473['view']?(this['_showBalloon'](_0x591473),_0x591473['view']['element']['focus'](),this['setActiveAnnotation'](_0x591473)):this['setActiveAnnotation'](null);});};for(const _0x15f944 of _0x5ef6d6)_0x490eed(_0x15f944);this['listenTo'](_0x5ef6d6,'add',(_0x5e953c,_0x1a6259)=>{_0x490eed(_0x1a6259);}),this['listenTo'](_0x5ef6d6,'remove',(_0x1d5a76,_0x5cae85,_0xe7fdbb)=>{this['_annotationToNarrowView']['get'](_0x5cae85)['destroy'](),this['_annotationToNarrowView']['delete'](_0x5cae85),_0x288976['rearrange']({'removedAnnotation':_0x5cae85,'previousAnnotation':_0x5ef6d6['get'](_0xe7fdbb-0x1),'nextAnnotation':_0x5ef6d6['get'](_0xe7fdbb+0x1)}),_0x5cae85===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x5ef6d6,'focus',(_0x1ee1c9,_0x5f424f)=>{this['setActiveAnnotation'](_0x5f424f);}),this['listenTo'](_0x5ef6d6,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x4688a0,_0x5cbe78)=>{_0x5cbe78['keyCode']===_0x106a68['esc']&&_0x1ab6c1['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x1ab6c1['content']['first']),this['_hideBalloon'](),_0x5cbe78['stopPropagation'](),_0x5cbe78['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x293b4b,_0x2d4807)=>{const _0x58a6a7=_0x2d4807['target'];_0x1ab6c1['isVisible']&&_0x1ab6c1['element']['contains'](_0x58a6a7)||_0x288976['view']['element']['contains'](_0x58a6a7)||_0x293b4b['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x31a0a4=>_0x31a0a4['contains'](_0x58a6a7))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x7780e0=this['context']instanceof _0x19199a?this['context']['editors']:new _0x82816a([this['context']]);for(const _0x4da204 of _0x7780e0)this['_integrateWithEditorAnnotations'](_0x4da204);this['listenTo'](_0x7780e0,'add',(_0x3a3ecc,_0x1be20c)=>{this['listenTo'](_0x1be20c,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1be20c);});}),this['listenTo'](_0x7780e0,'remove',(_0x4dbcd8,_0x53f946)=>{_0x53f946['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x53f946['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x5d4d4a){if(_0x5d4d4a===this['activeAnnotation'])return;const _0x47c1c0=this['context']['plugins']['get'](z);if(_0x47c1c0['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x5d4d4a,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5d4d4a)_0x47c1c0['getSidebarItemView'](_0x5d4d4a)?this['_showBalloon'](_0x5d4d4a):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x5d4d4a;}['detach'](){if(!this['isAttached'])throw new _0x4f0fc3('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x12ea2a=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x5efa3a=>_0x5efa3a['destroy']()),this['_annotationToNarrowView']['clear'](),_0x12ea2a['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x19199a&&this['stopListening'](this['context']['editors']);for(const _0x150b50 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x150b50);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'](_0x25e7bd){if(!_0x25e7bd['plugins']['has']('EditorAnnotations'))return;const _0x3e7aee=_0x25e7bd['plugins']['get']('EditorAnnotations'),_0xdae151=this['context']['plugins']['get'](z),_0x20df6b=this['annotations'],_0x13214c=this['balloonPanelView'],_0x8ae124=()=>{const _0x2450d4=_0x3e7aee['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x2450d4),this['setActiveAnnotation'](_0x2450d4[0x0]||null);};this['listenTo'](_0x3e7aee,'refresh',_0x8ae124),this['listenTo'](_0x3e7aee,'blur',(_0x3c0ef0,{isAnnotationTracked:_0x5bcce6})=>{this['activeAnnotation']&&_0x5bcce6(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x3e7aee,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x20df6b,'blur',_0x1f498b=>{_0x3e7aee['hasDomSelection']()&&_0x1f498b['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x5a24ac,_0x3fc79b)=>{const _0x2c3772=_0x3fc79b['target'];_0x13214c['isVisible']&&_0x13214c['element']['contains'](_0x2c3772)||_0xdae151['view']['element']['contains'](_0x2c3772)||this['activeAnnotation']&&_0x3e7aee['hasDomSelection']()&&(_0x8ae124(),_0x5a24ac['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3e7aee);}['_destroyEditorAnnotationsIntegration'](_0x1bdea6){_0x1bdea6&&(this['stopListening'](_0x1bdea6),this['_editorAnnotations']['remove'](_0x1bdea6));}['_setSelectedAnnotations'](_0xc4f635){for(const _0x3f5d0a of this['_selectedAnnotations'])_0xc4f635['includes'](_0x3f5d0a)||this['_manuallyClosedAnnotationViews']['delete'](_0x3f5d0a['view']);this['_selectedAnnotations']=_0xc4f635;}['_refreshPositioning'](){const _0xe7c21a=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0xe7c21a['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x3ffb7c){if(this['_manuallyClosedAnnotationViews']['has'](_0x3ffb7c['view']))return;const _0x4bb42a=this['balloonPanelView']['content']['first'];_0x4bb42a!==_0x3ffb7c['view']?(_0x4bb42a&&this['_detachListeners'](_0x4bb42a),this['_attachListeners'](_0x3ffb7c['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x3ffb7c['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4a849d=this['balloonPanelView']['content']['first'],_0x4cc62b=_0x4a849d&&this['annotations']['getByView'](_0x4a849d);if(!_0x4cc62b||!this['_annotationToNarrowView']['has'](_0x4cc62b))return;const _0x1ec424=this['_annotationToNarrowView']['get'](_0x4cc62b)['element'],_0x5486a4=(function(){const _0x4002f8=_0x15415b['defaultPositions'];return[_0x4002f8['southArrowNorthEast'],_0x4002f8['northArrowSouthEast'],_0x4002f8['southArrowNorth'],_0x4002f8['northArrowSouth'],_0x4002f8['southArrowNorthWest'],_0x4002f8['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x1ec424,'positions':_0x5486a4});}['_hideBalloon'](){const _0x2f2f2a=this['balloonPanelView'],_0x4b8155=_0x2f2f2a['content']['first'];_0x4b8155&&(this['_detachListeners'](_0x4b8155),_0x2f2f2a['unpin'](),_0x2f2f2a['content']['clear']());}['_attachListeners'](_0x2f75e0){this['listenTo'](_0x2f75e0,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x2f75e0,'Esc',(_0x26ed7b,_0x4844d8)=>{this['_manuallyClosedAnnotationViews']['add'](_0x2f75e0),this['_hideBalloon'](),_0x4844d8();});}['_detachListeners'](_0x164a9c){this['stopListening'](_0x164a9c);}}class c extends _0x5d682a{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x391d19,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x326fb3){super(_0x326fb3),_0x326fb3['editing']['view']['addObserver'](_0x301a94),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x326fb3['plugins']['get'](_0x391d19),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x415dc1=this['editor']['plugins']['get'](M);_0x415dc1['context']===this['editor']&&(_0x415dc1['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x31f130,_0x3ed819)=>{const _0x5b0ad8=this['_balloon'];if(this['isAttached']&&_0x5b0ad8['visibleView']){const _0x3daa9b=this['annotations']['getByView'](_0x5b0ad8['visibleView']);_0x3daa9b&&this['_closeAnnotation'](_0x3daa9b),_0x3ed819();}}));}['afterInit'](){const _0xcf3325=this['editor']['plugins']['get'](M);_0xcf3325['context']===this['editor']&&(_0xcf3325['hasActive']()||_0xcf3325['switchTo']('inline'));}['setActiveAnnotation'](_0x109616){_0x109616!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x109616&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x109616)&&this['_addAnnotationToBalloon'](_0x109616,!0x0),_0x109616['isActive']=!0x0),_0x109616||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x109616);}['attach'](_0x1c3397){this['annotations']=_0x1c3397;const _0x214071=this['editor']['plugins']['get'](M),_0x349385=this['_balloon'];if(this['isAttached'])throw new _0x4f0fc3('inlineannotations-attach-already-attached',this);if(_0x214071['context']!==this['editor'])throw new _0x4f0fc3('inlineannotations-not-allowed-with-context',this);const _0xb21c9=this['editor']['plugins']['get'](P);this['listenTo'](_0xb21c9,'refresh',()=>{const _0x34c7c4=_0xb21c9['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x2ade63,_0xea8430;!this['_forceRefresh']&&(_0x2ade63=_0x34c7c4,_0xea8430=this['_selectedAnnotations'],_0x2ade63['length']===_0xea8430['length']&&_0x2ade63['every'](_0x2f7b2e=>_0xea8430['includes'](_0x2f7b2e)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x34c7c4),this['setActiveAnnotation'](_0x34c7c4[0x0]||null));}),this['listenTo'](_0xb21c9,'blur',(_0x2b0cc1,{isAnnotationTracked:_0x5b7256})=>{this['activeAnnotation']&&_0x5b7256(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x4a6357,_0x32141d,_0x408e26)=>{_0x408e26||this['setActiveAnnotation'](null);}),this['listenTo'](_0x1c3397,'remove',(_0x542dc1,_0x36788c)=>{this['_removeAnnotationFromBalloon'](_0x36788c),_0x36788c===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x349385,'change:visibleView',(_0x5a3dbb,_0x46e3f1,_0x3eaad5,_0x75e5dc)=>{_0x75e5dc&&this['stopListening'](_0x75e5dc);const _0x14b59f=_0x1c3397['getByView'](_0x3eaad5);_0x3eaad5&&_0x14b59f&&(this['listenTo'](_0x3eaad5,'change:height',()=>{_0x349385['updatePosition']();}),this['listenTo'](_0x3eaad5,'Esc',()=>{this['_closeAnnotation'](_0x14b59f),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x14b59f&&this['setActiveAnnotation'](_0x14b59f));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x349385['visibleView']&&(_0x1c3397['getByView'](_0x349385['visibleView'])&&_0x349385['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 _0x4f0fc3('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x467b43 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x467b43);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x363045){for(const _0x355f85 of this['_selectedAnnotations'])_0x363045['includes'](_0x355f85)||this['_manuallyClosed']['delete'](_0x355f85);for(const _0x103555 of this['annotations'])_0x363045['includes'](_0x103555)||this['_removeAnnotationFromBalloon'](_0x103555);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x3417cf of _0x363045)this['_addAnnotationToBalloon'](_0x3417cf);}this['_selectedAnnotations']=_0x363045;}['_addAnnotationToBalloon'](_0x49f15a,_0xe22ef6=!0x1){this['_manuallyClosed']['has'](_0x49f15a)||(this['_addedAnnotations']['has'](_0x49f15a)||this['_balloon']['hasView'](_0x49f15a['view'])||(this['_addedAnnotations']['add'](_0x49f15a),this['_balloon']['add']({'stackId':_0x49f15a['view']['id'],'view':_0x49f15a['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x49f15a)}})),_0xe22ef6&&this['_balloon']['showStack'](_0x49f15a['view']['id']));}['_getBalloonTargetForAnnotation'](_0x2a3912){const _0x2b98dc=_0x2a3912['target'],_0x3e1fe7=this['editor']['editing']['view'],_0x5386cf=_0x3e1fe7['document']['selection']['getFirstRange'](),_0x169cdf=_0x3e1fe7['domConverter']['viewRangeToDom'](_0x5386cf);if(_0x169cdf['collapse'](!0x0),_0x2b98dc){if(_0x2b98dc instanceof _0x5239f0)return _0x2b98dc;let _0x16f7f4=[];for(const _0x42dc4d of _0x2b98dc)_0x16f7f4['push'](...(_0x522ebc=_0x42dc4d['getClientRects'](),Array['from'](_0x522ebc)['map'](DOMRect['fromRect'])));_0x16f7f4=function(_0x482e85){const _0x3b8da3=[];let _0xb1d73b=_0x482e85[0x0];for(let _0x36c23c=0x1;_0x36c23c<_0x482e85['length'];_0x36c23c++)b(_0xb1d73b,_0x482e85[_0x36c23c])?_0xb1d73b['width']+=_0x482e85[_0x36c23c]['width']:(_0x3b8da3['push'](_0xb1d73b),_0xb1d73b=_0x482e85[_0x36c23c]);return _0x3b8da3['push'](_0xb1d73b),_0x3b8da3;}(_0x16f7f4);const _0x3d77a1=_0x169cdf['getBoundingClientRect']();return _0x16f7f4['find'](_0x491a79=>_0x491a79['top']<=_0x3d77a1['top']&&_0x491a79['bottom']>=_0x3d77a1['bottom']&&_0x491a79['left']<=_0x3d77a1['left']&&_0x491a79['right']>=_0x3d77a1['right'])||_0x16f7f4[0x0];}var _0x522ebc;return _0x2a3912['targetRect']||_0x169cdf;}['_removeAnnotationFromBalloon'](_0x218d4a){this['_addedAnnotations']['has'](_0x218d4a)&&this['_balloon']['hasView'](_0x218d4a['view'])&&(this['_addedAnnotations']['delete'](_0x218d4a),this['_balloon']['remove'](_0x218d4a['view']));}['_closeAnnotation'](_0x3cd741){this['_manuallyClosed']['add'](_0x3cd741),this['_removeAnnotationFromBalloon'](_0x3cd741);}}function b(_0x4d2ab0,_0x10173b){return _0x4d2ab0['top']===_0x10173b['top']&&_0x4d2ab0['bottom']===_0x10173b['bottom']&&_0x4d2ab0['right']===_0x10173b['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 _t{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x39f9a3,_0x54440b){super(_0x39f9a3),this['set']('isEmpty',!_0x54440b['length']),this['focusTracker']=new _0x465762(),this['_annotationViews']=_0x54440b,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x54440b,'focusTracker':this['focusTracker']}),this['listenTo'](_0x54440b,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x54440b,'remove',(_0x52d06c,_0x2949f5)=>{_0x2949f5['isActive']&&this['focus'](),_0x54440b['length']||(this['isEmpty']=!0x0);});const _0x2ab9f6=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x39f9a3,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x54440b},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2ab9f6['if']('isEmpty','ck-hidden',_0x11ed52=>!_0x11ed52)]},'children':[{'text':S(_0x39f9a3,'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 _0x475945 of this['_annotationViews'])this['focusTracker']['add'](_0x475945['element']);this['_annotationViews']['on']('change',(_0x52560e,{added:_0x21c322,removed:_0x5ab7f1})=>{for(const _0x4e3888 of _0x21c322)this['focusTracker']['add'](_0x4e3888['element']);for(const _0x1c3dda of _0x5ab7f1)this['focusTracker']['remove'](_0x1c3dda['element']);});}}class f extends _0x5c60c1{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x11a557){super(_0x11a557),this['archivedThreads']=new _0x82816a();}['init'](){const _0x5279ed=this['context'],_0x1dacb6=_0x5279ed['plugins']['get'](o),_0xcf46e3=_0x5279ed['plugins']['get'](N);this['listenTo'](_0x1dacb6,'addCommentThread',(_0x45b750,{threadId:_0x4e30fc})=>{const _0x586ec8=_0x1dacb6['getCommentThread'](_0x4e30fc);_0x586ec8['archivedAt']&&this['archivedThreads']['add'](_0x586ec8,this['_calculatePosition'](_0x586ec8['archivedAt'])),this['listenTo'](_0x586ec8,'change:archivedAt',(_0x1d4860,_0x46dd33,_0x5e0c12)=>{_0x5e0c12?this['archivedThreads']['has'](_0x586ec8)||this['archivedThreads']['add'](_0x586ec8,this['_calculatePosition'](_0x586ec8['archivedAt'])):this['archivedThreads']['has'](_0x586ec8)&&this['archivedThreads']['remove'](_0x586ec8);});}),this['listenTo'](_0x1dacb6,'removeCommentThread',(_0x471437,{threadId:_0x148f8b})=>{const _0x504917=_0x1dacb6['getCommentThread'](_0x148f8b);this['stopListening'](_0x504917),this['archivedThreads']['has'](_0x504917)&&this['archivedThreads']['remove'](_0x504917);},{'priority':'highest'}),this['listenTo'](_0xcf46e3['collection'],'focus',(_0x10945d,_0x30efdf)=>{_0x30efdf['isVisible']||(_0x30efdf['isActive']=!0x0,_0xcf46e3['activate'](_0x30efdf));});}['_calculatePosition'](_0x81fb47){const _0x10332a=[...this['archivedThreads']]['findIndex'](_0x44b3bf=>_0x44b3bf['archivedAt']<_0x81fb47);return _0x10332a>-0x1?_0x10332a:this['archivedThreads']['length'];}}class a extends _0x5d682a{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x44ebc3];}constructor(_0x20e88f){super(_0x20e88f),this['annotationViews']=new _0x8b0193(),this['_pendingThreads']=[];}['init'](){const _0x37a934=this['editor'],_0x259acd=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x37a934['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x1c4b84,!0x0)),_0x37a934['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x27f284=this['_createCommentsArchiveButton'](_0x5ce43a);return _0x27f284['set']({'role':'menuitemcheckbox'}),_0x27f284;});const _0x2185c4=_0x37a934['plugins']['get'](f),_0x780a94=_0x37a934['plugins']['get']('Annotations'),_0x526494=_0x37a934['plugins']['get']('CommentsRepository');this['listenTo'](_0x2185c4['archivedThreads'],'add',(_0x380b1e,_0x52ec14)=>{const _0x205ab0=_0x37a934['config']['get']('collaboration.channelId');if(!_0x205ab0||_0x52ec14['channelId']===_0x205ab0){const _0x51744b=_0x526494['_threadToController']['get'](_0x52ec14);if(!_0x51744b)return void this['_pendingThreads']['push'](_0x52ec14);const _0x1575cb=this['_calculatePosition'](_0x52ec14['archivedAt']),_0x1bba98=_0x780a94['getByInnerView'](_0x51744b['view']);_0x1bba98['isVisible']&&_0x780a94['_visibleAnnotations']['remove'](_0x1bba98),this['annotationViews']['add'](_0x1bba98['view'],_0x1575cb);}}),this['listenTo'](_0x780a94['collection'],'add',(_0x40608f,_0x33c4f6)=>{const _0xeb08a8=this['_pendingThreads']['find'](_0x24448c=>{const _0x3b435e=_0x526494['_threadToController']['get'](_0x24448c);return _0x3b435e&&_0x33c4f6['innerView']===_0x3b435e['view'];});if(_0xeb08a8){const _0x2c2b6c=this['_calculatePosition'](_0xeb08a8['archivedAt']);this['annotationViews']['add'](_0x33c4f6['view'],_0x2c2b6c),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xeb08a8),0x1);}}),this['listenTo'](_0x2185c4['archivedThreads'],'remove',(_0x21b636,_0x1db7bb)=>{const _0x1332ba=_0x37a934['config']['get']('collaboration.channelId');if(!_0x1332ba||_0x1db7bb['channelId']===_0x1332ba){const _0x82ee93=_0x526494['_threadToController']['get'](_0x1db7bb),_0xc0d966=_0x780a94['getByInnerView'](_0x82ee93['view']);this['annotationViews']['remove'](_0xc0d966['view']),this['stopListening'](_0xc0d966['focusableElements']);}}),this['listenTo'](_0x780a94['collection'],'add',(_0x4f8c6b,_0x57f256)=>{this['listenTo'](_0x57f256,'escape',_0x259acd);}),this['listenTo'](_0x780a94['collection'],'remove',(_0x3a5323,_0x5b04bf)=>{this['stopListening'](_0x5b04bf,'escape',_0x259acd);});}['_calculatePosition'](_0x5f2304){const _0x3541c0=this['editor']['config']['get']('collaboration.channelId'),_0x3437b1=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x37a205=>_0x37a205['channelId']===_0x3541c0)['findIndex'](_0x3c0c27=>_0x3c0c27['archivedAt']<_0x5f2304);return _0x3437b1<0x0||_0x3437b1>this['annotationViews']['length']?this['annotationViews']['length']:_0x3437b1-0x1;}['_toggleDialog'](){const _0x1ebeea=this['editor'],_0xb4ecf3=_0x1ebeea['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x1ebeea['locale'],this['annotationViews'])),'commentsArchive'===_0xb4ecf3['id']?_0xb4ecf3['hide']():_0xb4ecf3['show']({'id':'commentsArchive','title':S(_0x1ebeea['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x486e51['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0xdb2e6e,_0x4dbd18=!0x1){const _0x50e96e=this['editor']['locale'],_0x58e791=this['editor']['plugins']['get']('Dialog'),_0x329ddb=new _0xdb2e6e(_0x50e96e);return _0x329ddb['bind']('isEnabled')['to'](this,'isEnabled'),_0x329ddb['bind']('isOn')['to'](_0x58e791,'id',_0x556479=>'commentsArchive'===_0x556479),_0x329ddb['set']({'label':S(_0x50e96e,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x4dbd18&&(_0x329ddb['tooltip']=!0x0),this['listenTo'](_0x329ddb,'execute',()=>this['_toggleDialog']()),_0x329ddb;}['_hideDialogOnAnnotationEscape']=_0x13bcc9=>{const _0x2c980d=_0x13bcc9['source'];if(!this['annotationViews']['has'](_0x2c980d['view']))return;const _0x1b6b07=this['editor']['plugins']['get']('Dialog');_0x1b6b07['isOpen']&&'commentsArchive'===_0x1b6b07['id']&&(_0x1b6b07['hide'](),_0x13bcc9['stop']());};}class p extends _0x5d682a{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,es as BaseCommentThreadView,ns as BaseCommentView,se as Comment,ie as CommentThread,At as CommentThreadController,Pt as CommentThreadInputView,Ct as CommentThreadView,vt as CommentView,p as Comments,f as CommentsArchive,xt 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 _0x40857b,icons as _0x2e4242,ContextPlugin as _0x13541d,PendingActions as ht,Command as _0x13a902,Plugin as _0x407575,Context as _0x578923}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x2ae98f,uid as _0x19322d,KeystrokeHandler as jt,FocusTracker as _0x3d5a2c,diff as _0x51bb09,Collection as _0x42f184,Rect as _0x2c8594,CKEditorError as _0x59aed7,first as _0x47e92c,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0xd7308b,keyCodes as _0x91a8de}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x5eabfd,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x422a78,trimHtml as _0x52825e,LateFocusDropdownButtonView as _0x45b310,Users as it,getDateTimeFormatter as mt,hashObject as lt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x5db1f7}from'ckeditor5-collaboration/dist/index.js';import{throttle as bt,isEqual as It,cloneDeep as pt,set as wt,unset as At,debounce as _0x31e186}from'lodash-es';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as Ft,ButtonView as _0x50e81f,ViewCollection as _0x184ae2,createDropdown as _0x46a9e6,ListView as _0x2a68f8,focusChildOnDropdownOpen as _0x5a460e,ListItemView as _0xb7565b,MenuBarMenuListItemButtonView as _0x23f078,BodyCollection as _0x89f2ad,BalloonPanelView as _0x4ead26,ContextualBalloon as _0x11b9fc,Dialog as _0x59526a,DialogViewPosition as _0x30b3b0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x35a9d6}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 _0x59d34a}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2ae98f(){['model'];['view'];constructor(_0x137aac,_0x6434b2){super(),this['model']=_0x137aac,this['model']['_isAttached']=!0x0,this['view']=_0x6434b2,this['listenTo'](_0x6434b2,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x6434b2,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x6434b2,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x6434b2,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x6434b2,'addComment',(_0xbaccdc,_0x587c3c)=>this['addComment'](_0x587c3c)),this['listenTo'](_0x6434b2,'updateComment',(_0x4644d9,_0x524fbf,_0x5b1cb9)=>this['updateComment'](_0x524fbf,_0x5b1cb9)),this['listenTo'](_0x6434b2,'removeComment',(_0x3876e7,_0x21d942)=>this['removeComment'](_0x21d942));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x280619){this['model']['addComment']({'content':_0x280619,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x17623c,_0x1673dd){this['model']['getComment'](_0x17623c)['update']({'content':_0x1673dd});}['removeComment'](_0x526635){this['model']['getComment'](_0x526635)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x201b4c,_0x2cd92e,_0x2b9db9){const t=_0x201b4c['t'];switch(_0x2cd92e){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'},_0x2b9db9);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'},_0x2b9db9);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'},_0x2b9db9);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'},_0x2b9db9);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x2b9db9);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'},_0x2b9db9);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'},_0x2b9db9);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'},_0x2b9db9);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(_0x23aa14,_0x3cf86a){super(_0x23aa14);const _0x506081=_0x19322d();this['main']=this['createCollection'](),this['editable']=new $t(_0x23aa14,_0x3cf86a,void 0x0,{'label':()=>S(_0x23aa14,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x23aa14['uiLanguageDirection'],'lang':_0x23aa14['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x506081},'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(_0x424ca7){super(_0x424ca7),this['view']=new Vt(_0x424ca7['locale'],_0x424ca7['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x2f76ef=this['editor']['editing']['view'],_0xdffd2c=this['view']['editable'],_0xb9095c=_0x2f76ef['document']['getRoot']();_0xdffd2c['name']=_0xb9095c['rootName'],this['view']['render']();const _0x5542cd=_0xdffd2c['element'];this['setEditableElement'](_0xdffd2c['name'],_0x5542cd),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2f76ef['attachDomRoot'](_0x5542cd),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[Bt,Et,Gt,Jt,Kt,Lt,Nt];class Rt extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2ae98f(_0x40857b){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
|
|
26
|
+
((()=>Qt)());constructor(_0x2664f5={}){function _0x463973(_0x5cfa91){return _0x5cfa91['map'](_0x409a8a=>String['fromCharCode'](_0x409a8a))['join']('');}(_0x2664f5=Object['assign']({},_0x2664f5))['plugins']||(_0x2664f5['plugins']=Rt['defaultPlugins']),super(_0x2664f5),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[_0x463973([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x463973([0x76,0x69,0x65,0x77])][_0x463973([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x463973([0x61,0x75,0x74,0x6f]),this[_0x463973([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x463973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x463973([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x463973([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x463973([0x6f,0x6b])});}['create'](){const _0x18f8e8=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x18f8e8))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x39d963=>{const _0x5d2af9=this['model']['document']['getRoot'](),_0x3b5b23=_0x5d2af9&&_0x5d2af9['getChild'](_0x5d2af9['childCount']-0x1);_0x39d963['setSelection'](_0x3b5b23,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x3a55a5=this['editing']['view'],_0xb0f3fc=_0x3a55a5['document']['getRoot'](),_0xfb1c1=_0xb0f3fc['getChild'](0x0);_0xb0f3fc['childCount']>0x1||!_0xfb1c1||'p'!=_0xfb1c1['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x3a55a5,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0xfb1c1['placeholder']=this['placeholder']),St({'view':_0x3a55a5,'element':_0xfb1c1,'keepOnFocus':!0x0}),this['placeholderElement']=_0xfb1c1);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x9ec24f,_0x5bda7c={}){super(_0x9ec24f),this['editor']=null,this['_editorConfig']=_0x5bda7c,this['set']('value',_0x5bda7c['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x9ec24f,'Reply...')),this['set']('submitLabel',S(_0x9ec24f,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x3d5a2c(),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',(_0x3e363f,_0x17c920)=>{this['cancelButtonView']['fire']('execute'),_0x17c920();}),this['keystrokes']['set']('Ctrl+Enter',(_0x38f7e9,_0x3f6af9)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x3f6af9());}),this['on']('submit',(_0xccf48a,_0x475fbb)=>{_0x475fbb['length']>0xfde8?(alert(S(_0x9ec24f,'TOO_LONG_COMMENT_ALERT',[_0x475fbb['length'],0xfde8])),_0xccf48a['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 _0x1f0318=this['editor'];this['element']['insertBefore'](_0x1f0318['ui']['element'],this['element']['firstChild']),_0x1f0318['model']['document']['on']('change',()=>this['value']=_0x1f0318['getData']()),_0x1f0318['bind']('placeholder')['to'](this),this['focusables']['add'](_0x1f0318['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x2d5b5e){-0x1===_0x2d5b5e?(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:_0x1c0cfb}=this,_0x41da21=new _0x50e81f(_0x1c0cfb);return _0x41da21['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x41da21['withText']=!0x0,_0x41da21['bind']('label')['to'](this,'submitLabel'),_0x41da21['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x41da21['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x1b358c,_0x569df0)=>!_0x569df0&&!!_0x1b358c['trim']()),_0x41da21;}['_createCancelButton'](){const {locale:_0x5cac22}=this,_0x104fc6=new _0x50e81f(_0x5cac22);return _0x104fc6['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x104fc6['label']=S(_0x5cac22,'Cancel'),_0x104fc6['withText']=!0x0,_0x104fc6['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x104fc6;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x4f6ccf=>{this['focusTracker']['add'](_0x4f6ccf['element']);}),this['focusables']['on']('change',(_0x4e4a45,_0x33b999)=>{for(const _0x87474e of Array['from'](_0x33b999['added'])['reverse']())this['focusTracker']['add'](_0x87474e['element']);});}}class ie extends kt{constructor(_0x50e0f2,_0x1be498,_0x3ebeea){super(_0x50e0f2),this['commentInputView']=new hs(_0x50e0f2,_0x3ebeea),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x22c657,_0x53b40b)=>_0x22c657||!!_0x53b40b),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 _0x5eabfd(_0x50e0f2,_0x1be498),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'](_0xf441b3){this['commentInputView']['focus'](_0xf441b3);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x37a1f6,_0x195673)=>{const {submitButtonView:_0x17f744,cancelButtonView:_0x1349e6,editor:_0x2d9bad}=this['commentInputView'];[_0x17f744['element'],_0x1349e6['element'],_0x2d9bad?_0x2d9bad['editing']['view']['getDomRoot']():null]['filter'](_0x2d7520=>_0x2d7520)['some'](_0x5a2d6c=>_0x5a2d6c['contains'](_0x195673['target']))||(this['focus'](),_0x195673['preventDefault']());});}}class cs extends kt{constructor(_0x3e5fd1){super(_0x3e5fd1);const _0x195678=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x195678['to']('count',_0x4b8979=>S(_0x3e5fd1,'NUMBER_OF_COMMENTS',_0x4b8979))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x2b5bfe,_0x7c86e8,_0x484238){super(_0x2b5bfe);const _0x4b4306=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x7c86e8['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x7c86e8,this['_config']=_0x484238,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x3d5a2c(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x44e8aa=>this['commentViews']['map'](_0x256c3d=>_0x256c3d['element'])['includes'](_0x44e8aa['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x2b5bfe),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0xb5468a=>_0xb5468a-this['_config']['maxCommentsWhenCollapsed']);for(const _0x3260b8 of _0x7c86e8['comments'])this['_handleNewCommentModel'](_0x3260b8);this['_handleInfoComment'](),this['listenTo'](_0x7c86e8['comments'],'add',(_0x359ab9,_0xee5254)=>{const _0x2e053a=this['_calculatePosition'](_0xee5254);this['length']++,this['_handleNewCommentModel'](_0xee5254,_0x2e053a),this['refreshVisibleViews']();}),this['listenTo'](_0x7c86e8['comments'],'remove',(_0x4a0012,_0x36346e)=>{this['length']--,this['_handleRemoveCommentModel'](_0x36346e),this['refreshVisibleViews']();}),this['listenTo'](_0x7c86e8,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x7c86e8,'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',_0x4b4306['if']('length','ck-hidden',_0x2cc6df=>!_0x2cc6df)],'aria-label':S(_0x2b5bfe,'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'](_0x5a96c1){-0x1===_0x5a96c1?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3f68b4 of this['commentViews'])_0x3f68b4['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x53e852,_0x2476b4){const _0x2b2ab8=new this['_config']['CommentView'](this['locale'],_0x53e852,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x2b2ab8['viewUid']=_0x53e852['id'],_0x2b2ab8['delegate']('removeComment')['to'](this),_0x2b2ab8['delegate']('updateComment')['to'](this),_0x2b2ab8['delegate']('resolveCommentThread')['to'](this),_0x2b2ab8['delegate']('editorReady')['to'](this),_0x2b2ab8['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x2b2ab8,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x2b2ab8,_0x2476b4);}['_calculatePosition'](_0x2acbd8){const _0x54b431=this['_model']['_findOptimalIndex'](_0x2acbd8);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2acbd8['authoredAt']?_0x54b431-0x1:_0x54b431:_0x54b431-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x981bf3={'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'],_0x981bf3,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x981bf3));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3d1536){const _0x25e0ea=this['commentViews']['remove'](_0x3d1536['id']);this['stopListening'](_0x25e0ea),_0x25e0ea['isEditMode']&&this['_updateHasDirtyComment'](),_0x25e0ea['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x21fbf2=>_0x21fbf2['isEditMode']);}['_rearrangeCollapse'](){const _0x7f7a06=function(_0xaf045d){const _0x2b8805=new _0x42f184();for(const _0x1514de of _0xaf045d)_0x2b8805['add'](_0x1514de);return _0x2b8805;}(this['commentViews']),_0x4540c0=this['_collapsedCommentsView']['count'];for(let _0x46ee02=0x1;_0x46ee02<=_0x4540c0;_0x46ee02++)_0x7f7a06['remove'](0x1);for(const _0x1fa7c8 of _0x7f7a06)_0x1fa7c8['collapse']();_0x4540c0>0x0&&_0x7f7a06['add'](this['_collapsedCommentsView'],0x1),ns(_0x51bb09(Array['from'](this['visibleViews']),Array['from'](_0x7f7a06)),this['visibleViews'],_0x7f7a06);}['_rearrangeExpand'](){ns(_0x51bb09(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x489404 of this['visibleViews'])_0x489404['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x3ba00d=>{this['focusTracker']['add'](_0x3ba00d['element']),this['keystrokes']['listenTo'](_0x3ba00d['element']);}),this['commentViews']['on']('change',(_0x521bbd,_0x51a13a)=>{for(const _0x98e74 of _0x51a13a['removed'])this['focusTracker']['remove'](_0x98e74['element']),this['keystrokes']['stopListening'](_0x98e74['element']);for(const _0x28679d of Array['from'](_0x51a13a['added'])['reverse']())this['focusTracker']['add'](_0x28679d['element']),this['keystrokes']['listenTo'](_0x28679d['element']);});}}function ns(_0x2d45e6,_0x3d8315,_0x218877){let _0x39a19c=0x0;for(const _0x46ce40 of _0x2d45e6)switch(_0x46ce40){case'insert':_0x3d8315['add'](_0x218877['get'](_0x39a19c),_0x39a19c),_0x39a19c++;break;case'delete':_0x3d8315['remove'](_0x39a19c);break;case'equal':_0x39a19c++;}}class as extends kt{constructor(_0x2519ff){super(_0x2519ff);const _0x32d602=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x32d602['to']('contextValue',_0x3da441=>S(_0x2519ff,'THREAD_CONTEXT_LABEL',_0x3da441)),'tabindex':-0x1},'children':[{'text':_0x32d602['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3f2111,_0x10d40d){super(_0x3f2111);const _0x5abd8f=this['bindTemplate'];this['_model']=_0x10d40d,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x3d5a2c(),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',_0x2448f1=>!!_0x2448f1),this['bind']('contextValue')['to'](this['_model'],'context',_0x6aadac=>_0x6aadac&&_0x6aadac['value']?this['_trimContextValue'](_0x6aadac['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',_0x5abd8f['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 _0x11d0cb=new _0x50e81f(this['locale']);return _0x11d0cb['label']=S(this['locale'],'Reopen'),_0x11d0cb['tooltip']=S(this['locale'],'Reopen'),_0x11d0cb['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>',_0x11d0cb['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x54922c=>!_0x54922c),_0x11d0cb['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x19355c,_0x133c91)=>_0x19355c&&_0x133c91),_0x11d0cb['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x11d0cb;}['_trimContextValue'](_0x17166c){if(_0x17166c['length']<0x96)return _0x17166c;const _0x2c4448=_0x17166c['lastIndexOf']('\x20',0x93);return _0x17166c['substring'](0x0,_0x2c4448>-0x1?_0x2c4448:0x93)+'...';}['_attachContextActions'](){const _0x571de5=this['element']['querySelector']('.ck-context'),_0x470351=_0x571de5['querySelector']('.ck-context__value');this['listenTo'](_0x571de5,'mouseenter',()=>{_0x470351['offsetWidth']<_0x470351['scrollWidth']&&_0x571de5['classList']['add']('overlay');}),this['listenTo'](_0x571de5,'mouseleave',()=>{_0x571de5['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x494cb2 of this['focusables'])this['focusTracker']['add'](_0x494cb2['element']),this['keystrokes']['listenTo'](_0x494cb2['element']);}['_createContextView'](){const _0x44a316=new as(this['locale']);return _0x44a316['bind']('contextValue')['to'](this),_0x44a316;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x21d503,_0x53d1da,_0x26d9d2,_0x1123e0){super(_0x21d503),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x53d1da,this['_localUser']=_0x26d9d2,this['_config']=_0x1123e0,this['commentThreadHeaderView']=new Yt(_0x21d503,_0x53d1da),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x21d503,S(_0x21d503,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x21d503,_0x53d1da,Object['assign']({'CommentView':this['_config']['CommentView']},_0x1123e0)),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',(_0x508542,_0x398290)=>_0x508542||!!_0x398290),this['bind']('isUnlinked')['to'](_0x53d1da,'unlinkedAt',_0x2b02a5=>!!_0x2b02a5),this['bind']('ariaLabel')['to'](this,'length',_0x3fb5c0=>{const _0x1afe68=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x3fb5c0,_0x1afe68]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x3d5a2c(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3efcb2=>_0x3efcb2['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 _0x223a7e=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x253273=_0x223a7e['commentInputView'];return _0x223a7e['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x253273,'value',(_0x490cd6,_0x43e953,_0x13f509,_0x54aa30,_0xaafb7b)=>!!_0xaafb7b||!!_0x54aa30&&_0x13f509&&!_0x43e953||_0x490cd6&&_0x13f509&&!_0x43e953),_0x253273['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4bebae,_0x45090a,_0x461c64)=>{let _0x3ae104;return _0x3ae104=_0x461c64&&_0x45090a?'Reply\x20to\x20reopen\x20discussion...':_0x4bebae?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x3ae104);}),_0x253273['bind']('submitLabel')['to'](this,'length',_0x3dcfae=>S(this['locale'],_0x3dcfae?'Reply':'Comment')),_0x253273['on']('submit',(_0x22410b,_0x11dca4)=>{this['fire']('addComment',_0x11dca4),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x253273['on']('cancel',()=>{this['focus']();}),_0x253273['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x253273['on']('cancel',_0x475ff4=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x475ff4['stop']());}),this['on']('change:isActive',(_0x47fb66,_0x219c11,_0x14c5b2)=>{_0x14c5b2||this['length']||_0x253273['value']||this['fire']('removeCommentThread');}),_0x223a7e;}}class Ct extends/* #__PURE__ -- @preserve */
|
|
27
|
+
ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x4380af,_0xffc815,_0x84ed86,_0x35fe15){super(_0x4380af,_0xffc815,_0x84ed86,_0x35fe15),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x4380af,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x45c00a,_0x31da03,_0x301fdd)=>{_0x301fdd||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x1ddba6,_0x283f28,_0x3a8d89)=>{_0x3a8d89&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x2e729c=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x2e729c['if']('isActive','ck-thread--active'),_0x2e729c['if']('isUnlinked','ck-thread--unlinked'),_0x2e729c['if']('isConfirm','ck-thread--remove-confirmation'),_0x2e729c['to']('actionIndicator',_0x52a06b=>_0x52a06b?'ck-thread--'+_0x52a06b:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x2e729c['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 _0x2ef4c2 of this['commentsListView']['commentViews'])_0x2ef4c2['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x612f09}=this,_0x110ae5=this['commentsListView']['commentViews']['get'](0x0);_0x110ae5===this['_boundFirstCommentView']||_0x110ae5['isSystemComment']||(this['_boundFirstCommentView']=_0x110ae5,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x110ae5,'actionIndicator',_0xbe5cf4=>'remove'===_0xbe5cf4?'remove':null),_0x110ae5['placeholder']=S(_0x612f09,'Write\x20a\x20comment...'),_0x110ae5['removeButton']['on']('execute',_0x51d068=>{_0x51d068['stop'](),this['showConfirm'](S(_0x612f09,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x110ae5['focus']();}),_0x110ae5['actionBar']['add'](this['resolveButton'],0x0),_0x110ae5['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x1dc949=new _0x422a78(this['locale']);return _0x1dc949['label']=S(this['locale'],'Resolve'),_0x1dc949['tooltip']=S(this['locale'],'Resolve'),_0x1dc949['icon']=_0x2e4242['check'],_0x1dc949['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x1dc949['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x106fe7=>!_0x106fe7),_0x1dc949['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4e2723,_0x3322fd)=>_0x4e2723&&!_0x3322fd),_0x1dc949['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x1dc949;}['_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(_0x321335){super(_0x321335),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x65d8c7,_0x25774f,_0x1d0b12)=>{this['element']['innerHTML']=_0x1d0b12;}),this['element']['innerHTML']=this['content'];}}class os extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x57278e,_0x6fdc19,_0x2082a6){super(_0x57278e),this['_model']=_0x6fdc19,this['_config']=_0x2082a6,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x6fdc19,'content',_0x6fdc19,'authoredAt',(_0x10d874,_0x56ff9b)=>S(_0x57278e,'COMMENT_ARIA_LABEL',[_0x6fdc19['author']['name'],_0x2082a6['formatDateTime'](_0x56ff9b),new DOMParser()['parseFromString'](_0x10d874,'text/html')['body']['textContent'],_0x6fdc19['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x57278e,S(_0x57278e,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x184ae2(),this['focusTracker']=new _0x3d5a2c(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x180e04=>_0x180e04['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 _0x1f7245=new es(this['locale']);return _0x1f7245['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x178779,_0x3178b4)=>_0x3178b4?_0x52825e(_0x178779,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x178779),_0x1f7245;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x5d2b23=new hs(this['locale'],this['_config']['editorConfig']);return _0x5d2b23['value']=this['_model']['content'],_0x5d2b23['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5d2b23['submitLabel']=S(this['locale'],'Save'),_0x5d2b23['on']('submit',(_0x1c7458,_0x2bfb23)=>{this['fire']('updateComment',this['_model']['id'],_0x2bfb23),this['switchToDisplayMode'](),this['focus']();}),_0x5d2b23['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x5d2b23['once']('editorReady',()=>{_0x5d2b23['focus']();}),_0x5d2b23['createEditor'](),_0x5d2b23['delegate']('editorReady')['to'](this),_0x5d2b23['delegate']('editorDestroyed')['to'](this),_0x5d2b23;}['_setupKeyboardNavigation'](){const _0xb06d0b=this['element'];this['keystrokes']['listenTo'](_0xb06d0b);for(const _0x4aab04 of this['focusables'])this['focusTracker']['add'](_0x4aab04['element']),this['keystrokes']['listenTo'](_0x4aab04['element']);this['focusables']['on']('change',(_0x5a01bd,_0x1199e3)=>{for(const _0x2ebc75 of _0x1199e3['removed'])this['focusTracker']['remove'](_0x2ebc75['element']),this['keystrokes']['stopListening'](_0x2ebc75['element']);for(const _0x432497 of _0x1199e3['added'])this['focusTracker']['add'](_0x432497['element']),this['keystrokes']['listenTo'](_0x432497['element']);}),this['keystrokes']['set']('enter',(_0x3cb5ea,_0x57bd8d)=>{_0xb06d0b===_0x3cb5ea['target']&&(this['focusCycler']['focusFirst'](),_0x57bd8d());}),this['keystrokes']['set']('esc',(_0x2b94ea,_0x155a00)=>{_0xb06d0b!==_0x2b94ea['target']&&(this['focus'](),_0x155a00());});}}class vt extends/* #__PURE__ -- @preserve */
|
|
28
|
+
ti(os){['actionBar'];['userView'];constructor(_0x398c12,_0x4d12b7,_0xd0b81f){super(_0x398c12,_0x4d12b7,_0xd0b81f),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x398c12,'Reply...')),this['bind']('authoredAt')['to'](_0x4d12b7),this['bind']('resolvedAt')['to'](_0x4d12b7),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 _0x5eabfd(_0x398c12,_0x4d12b7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x4d12b7,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5c7a18=this['bindTemplate'],_0x10521b=[{'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':_0x5c7a18['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5c7a18['to']('authoredAt',_0x25ff3c=>this['_config']['formatDateTime'](_0x25ff3c))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x5c7a18['if']('isEditMode','ck-comment__actions--hidden'),_0x5c7a18['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']&&_0x10521b['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x5c7a18['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x5c7a18['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x5c7a18['if']('isEditMode','ck-comment--edit'),_0x5c7a18['if']('isSystemComment','ck-comment--info'),_0x5c7a18['to']('actionIndicator',_0x4e7800=>_0x4e7800?'ck-comment--'+_0x4e7800:'')],'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':_0x10521b}]}]};}['_createEditButton'](){const _0x4fbffc=new _0x50e81f(this['locale']);return _0x4fbffc['label']=S(this['locale'],'Edit'),_0x4fbffc['icon']=_0x2e4242['pencil'],_0x4fbffc['withText']=!0x0,_0x4fbffc['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x4fbffc['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1ddc0d=>!_0x1ddc0d),_0x4fbffc['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x4fbffc['on']('execute',()=>this['switchToEditMode']()),_0x4fbffc;}['_createRemoveButton'](){const _0x37d768=new _0x50e81f(this['locale']);return _0x37d768['label']=S(this['locale'],'Remove'),_0x37d768['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',_0x37d768['withText']=!0x0,_0x37d768['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x37d768['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4df167=>!_0x4df167),_0x37d768['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x37d768['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x37d768;}['_createDropdown'](){const _0x440dc0=_0x46a9e6(this['locale'],_0x45b310),_0x247ba7=_0x440dc0['panelView']['children'],_0x30c32b=new _0x2a68f8(this['locale']),_0x3cf0a6=_0x440dc0['bindTemplate'];_0x5a460e(_0x440dc0,()=>this['items']['find'](_0x3bf9d0=>_0x3bf9d0['isVisible'])),_0x440dc0['extendTemplate']({'attributes':{'class':[_0x3cf0a6['if']('isVisible','ck-hidden',_0xc12e74=>!_0xc12e74)]}});const _0x9e3ecb=(_0x2fa31e,_0x577ef0=-0x1)=>{const _0xc4ae91=new _0xb7565b(this['locale']);_0xc4ae91['children']['add'](_0x2fa31e);const _0x48d7ab=_0x577ef0>-0x1?_0x577ef0:_0x30c32b['items']['length'];_0x30c32b['items']['add'](_0xc4ae91,_0x48d7ab);const _0x3abdf5=Array['from'](this['items']);_0x440dc0['unbind']('isEnabled','isVisible'),_0x440dc0['bind']('isEnabled')['toMany'](_0x3abdf5,'isEnabled',(..._0x3a987f)=>_0x3a987f['some'](_0x2a4c5b=>_0x2a4c5b)),_0x440dc0['bind']('isVisible')['toMany'](_0x3abdf5,'isVisible',(..._0x10146b)=>_0x10146b['some'](_0xd3ea37=>_0xd3ea37));};_0x440dc0['panelPosition']='sw',_0x440dc0['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x2e4242['threeVerticalDots']});for(const _0x5bf78e of this['items'])_0x9e3ecb(_0x5bf78e);return _0x247ba7['add'](_0x30c32b),_0x440dc0['listenTo'](this['items'],'add',(_0x24d9a7,_0x4b844e,_0x475c12)=>{_0x9e3ecb(_0x4b844e,_0x475c12);}),_0x440dc0['listenTo'](this['items'],'remove',(_0x2f00f8,_0x394c84,_0x3cb918)=>{_0x30c32b['items']['remove'](_0x3cb918);}),_0x440dc0;}['_attachActions'](_0x2b8107,_0x3f6377){const _0x31e52c=_0x2b8107&&_0x2b8107['element'];_0x31e52c&&(this['listenTo'](_0x31e52c,'mouseenter',()=>this['actionIndicator']=_0x3f6377),this['listenTo'](_0x31e52c,'focus',()=>this['actionIndicator']=_0x3f6377),this['listenTo'](_0x31e52c,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x31e52c,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x4bd3d3=super['_createCommentInputView']();return _0x4bd3d3['bind']('placeholder')['to'](this),_0x4bd3d3;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Dt(_0x42d9d8){const _0xbeaed9=bt(_0x42d9d8,0x1e),_0x2a75f2=new MutationObserver(_0x5cef1c=>{for(const _0x31f3e1 of _0x5cef1c)('attributes'==_0x31f3e1['type']&&'class'==_0x31f3e1['attributeName']||'childList'==_0x31f3e1['type']||'characterData'==_0x31f3e1['type'])&&_0xbeaed9();});return{'attach'(_0x3c9150){_0x2a75f2['observe'](_0x3c9150,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x2a75f2['disconnect'](),_0xbeaed9['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x196210,_0x4c2e01){super(_0x196210),this['id']=_0x19322d(),this['focusTracker']=new _0x3d5a2c(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x11f688,_0x18bebd)=>this['fire']('Esc',_0x18bebd)),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'](_0x4c2e01),this['mainView']=_0x4c2e01;const _0x29cf90=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x29cf90['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 _0x1f83df=this['element']['clientHeight'];_0x1f83df&&(this['height']=_0x1f83df);}}class d extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x2ae98f(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x91859f,target:_0x3f2165,type:_0x9a5fa2,isVisible:_0x10c948=!0x0}){super(),this['view']=_0x91859f,this['view']['element']||this['view']['render'](),this['_type']=_0x9a5fa2,this['_target']=_0x3f2165,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x42f184([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x391207,_0x216e0f)=>{this['view']['focusTracker']['add'](_0x216e0f);}),this['focusableElements']['on']('remove',(_0xf8f5a,_0x9f8b23)=>{this['view']['focusTracker']['remove'](_0x9f8b23);}),this['set']('isVisible',_0x10c948);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x16c2e8=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x16c2e8),_0x16c2e8;}get['targetRect'](){const _0xd83158=this['target'];if(null===_0xd83158)return null;if(_0xd83158 instanceof _0x2c8594)return _0xd83158;const _0x3885b6=_0xd83158['filter'](_0x1389d8=>function(_0x2daf27){const _0x3a0a71=_0x2daf27['offsetParent'];if(_0x3a0a71)return!0x0;const _0x2239e6=_0x2daf27['getClientRects']()['item'](0x0);return!!_0x2239e6;}(_0x1389d8));return 0x0===_0x3885b6['length']?null:new _0x2c8594(_0x3885b6[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0xd676e){this['view']['isActive']=_0xd676e,this['view']['mainView']['isActive']=_0xd676e;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x27aa8a){if(!(null===_0x27aa8a||_0x27aa8a instanceof _0x2c8594||Array['isArray'](_0x27aa8a)&&_0x27aa8a['every'](_0x349259=>ne(_0x349259))))throw new _0x59aed7('annotation-invalid-target',null,{'target':_0x27aa8a});}['_getNormalizedTarget'](){const _0x4ac841='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x4ac841)?[_0x4ac841]:_0x4ac841;}}function ne(_0xa0f324){return null!==_0xa0f324&&'object'==typeof _0xa0f324&&'nodeType'in _0xa0f324&&0x1===_0xa0f324['nodeType'];}class x extends _0x42f184{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x9e39e3=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x3d5a2c(),this['_focusTracker']['on']('change:isFocused',(_0x54290c,_0xe7d469,_0x45833b)=>{_0x45833b||this['fire']('blur');});for(const _0x35dd81 of _0x9e39e3)this['add'](_0x35dd81);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x156fe3){if(this['has'](_0x156fe3))throw new _0x59aed7('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x156fe3['innerView'],_0x156fe3),this['_viewToAnnotation']['set'](_0x156fe3['view'],_0x156fe3);for(const _0x1123d9 of _0x156fe3['focusableElements'])this['_focusTracker']['add'](_0x1123d9);this['listenTo'](_0x156fe3['focusableElements'],'add',(_0x1f55d1,_0x42e694)=>{this['_focusTracker']['add'](_0x42e694);}),this['listenTo'](_0x156fe3['focusableElements'],'remove',(_0x3aeccf,_0x29a3a6)=>{this['_focusTracker']['remove'](_0x29a3a6);}),this['listenTo'](_0x156fe3['view']['focusTracker'],'change:isFocused',(_0x34c38b,_0x16b017,_0x2ee641)=>{_0x2ee641&&this['fire']('focus',_0x156fe3);}),_0x156fe3['updateTargetRect']();const _0x4669ef=this['_getOrderInContent'](_0x156fe3['view']['targetRect']);return super['add'](_0x156fe3,_0x4669ef);}['remove'](_0x2e46ff){if(!this['has'](_0x2e46ff))throw new _0x59aed7('annotationcollection-not-existing-item',null);this['stopListening'](_0x2e46ff['view']['focusTracker']),this['stopListening'](_0x2e46ff['focusableElements']);for(const _0x95e664 of _0x2e46ff['focusableElements'])this['_focusTracker']['remove'](_0x95e664);return this['_viewToAnnotation']['delete'](_0x2e46ff['view']),this['_innerViewToAnnotation']['delete'](_0x2e46ff['innerView']),super['remove'](_0x2e46ff);}['getByInnerView'](_0x503433){return this['_innerViewToAnnotation']['get'](_0x503433);}['getByView'](_0x581e93){return this['_viewToAnnotation']['get'](_0x581e93);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x37dd0e of this)_0x37dd0e['updateTargetRect']();this['_sort']();}['_sort'](){const _0x1a9419=Array['from'](this)['sort']((_0x4fe05a,_0x3748cb)=>v(_0x4fe05a['view']['targetRect'],_0x3748cb['view']['targetRect']));for(let _0x5bcf32=_0x1a9419['length']-0x1;_0x5bcf32>0x0;_0x5bcf32--){const _0x4b5a4e=_0x1a9419[_0x5bcf32];_0x5bcf32!==this['getIndex'](_0x4b5a4e)&&(this['remove'](_0x4b5a4e),this['add'](_0x4b5a4e));}}['_getOrderInContent'](_0x5d3a0a){let _0x557026=0x0;if(!_0x5d3a0a)return this['length'];for(const _0x487bd1 of this){const _0x31a7a3=_0x487bd1['view']['targetRect'];if(_0x31a7a3){if(v(_0x5d3a0a,_0x31a7a3)<0x0)return _0x557026;_0x557026++;}}return _0x557026;}}function v(_0x56451e,_0x3813f0){if(null===_0x56451e&&null===_0x3813f0)return 0x0;if(null===_0x56451e)return-0x1;if(null===_0x3813f0)return 0x1;const _0x2bbf01=_0x56451e['top']-_0x3813f0['top'];return 0x0==_0x2bbf01?_0x56451e['left']-_0x3813f0['left']:_0x2bbf01;}class N extends _0x13541d{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x338bb1){if(super(_0x338bb1),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x338bb1 instanceof _0x40857b){const _0x136b70=_0x338bb1['locale'];_0x338bb1['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x136b70,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x136b70,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x136b70,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x136b70,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x136b70,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x136b70,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x136b70,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x332eeb){this['collection']['add'](_0x332eeb);}['remove'](_0x6ae3aa){this['collection']['remove'](_0x6ae3aa),_0x6ae3aa['destroy']();}['refreshVisibility'](){for(const _0x27ac2f of this['collection'])_0x27ac2f['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x2ca156){return this['collection']['getByInnerView'](_0x2ca156);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1628c7 of this['collection'])_0x1628c7['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x4c4802){this['fire']('_activateAnnotation',_0x4c4802);}['createAnnotation'](_0x472aba){return new d(_0x472aba);}['createAnnotationView'](_0x3c6661,_0x48fdc3){return new T(_0x3c6661,_0x48fdc3);}['_addActiveAnnotation'](_0x3954fd){const _0x5682da=new Set(this['activeAnnotations']);_0x5682da['add'](_0x3954fd),this['activeAnnotations']=_0x5682da;}['_removeActiveAnnotation'](_0x5e5bf3){const _0x57e3aa=new Set(this['activeAnnotations']);_0x57e3aa['delete'](_0x5e5bf3),this['activeAnnotations']=_0x57e3aa;}['_bindAnnotationsToVisibleAnnotations'](){const _0x2f4c6b=this['collection'],_0x3bb33c=this['_visibleAnnotations'];function _0x479873(_0x19c29a){const _0x2d241d=_0x19c29a['source'];_0x2d241d['isVisible']&&!_0x3bb33c['has'](_0x2d241d)?_0x3bb33c['add'](_0x2d241d):!_0x2d241d['isVisible']&&_0x3bb33c['has'](_0x2d241d)&&_0x3bb33c['remove'](_0x2d241d),_0x2d241d['view']['focusTracker']['remove'](_0x2d241d['view']['element']),_0x2d241d['view']['focusTracker']['add'](_0x2d241d['view']['element']);}this['listenTo'](_0x2f4c6b,'add',(_0xbdc8ce,_0x282cf3)=>{_0x282cf3['isVisible']&&_0x3bb33c['add'](_0x282cf3),this['listenTo'](_0x282cf3,'change:isVisible',_0x479873);}),this['listenTo'](_0x2f4c6b,'remove',(_0x2f5749,_0xda9a0d)=>{_0x3bb33c['has'](_0xda9a0d)&&_0x3bb33c['remove'](_0xda9a0d),this['stopListening'](_0xda9a0d,'change:isVisible',_0x479873);});}['_setupEnterAnnotationKeystroke'](){const _0x18968e=_0x5064e7=>{_0x5064e7['on']('ready',()=>{_0x5064e7['keystrokes']['set'](_0x59d34a,(_0x67ee44,_0x7e4506)=>{const _0x4e4f5e=_0x47e92c(this['activeAnnotations']['values']());_0x4e4f5e&&(_0x4e4f5e['view']['focus'](),_0x7e4506());});});};this['context']instanceof _0x40857b?_0x18968e(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x4cb86c,_0x5c9a35)=>{_0x18968e(_0x5c9a35);});}['_setupEscapeAnnotationHandling'](){const _0x546a0c=_0x347086=>{const _0x2a2fee=_0x347086['source'],_0x3963c6=[];let _0x2cdb90;if(Array['isArray'](_0x2a2fee['target'])){_0x2cdb90=_0x2a2fee['target'][0x0],this['context']instanceof _0x40857b?_0x3963c6['push'](this['context']):this['context']['editors']&&_0x3963c6['push'](...this['context']['editors']);for(const _0x24071d of _0x3963c6)for(const _0x1f8b18 of _0x24071d['editing']['view']['domRoots']['values']())if(_0x1f8b18['contains'](_0x2cdb90))return void _0x24071d['editing']['view']['focus']();_0x2cdb90['focus']();}};this['listenTo'](this['collection'],'add',(_0x1d2e73,_0x55deb6)=>{this['listenTo'](_0x55deb6,'escape',_0x546a0c,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x130d31,_0x4a6fe8)=>{this['stopListening'](_0x4a6fe8,'escape',_0x546a0c);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x13541d{['_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(_0x1e8a29){super(_0x1e8a29),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x2682b2=this['context']['config'];_0x2682b2['define']('comments.maxCommentsWhenCollapsed',0x2),_0x2682b2['define']('comments.maxThreadTotalWeight',0x1f4),_0x2682b2['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x2682b2['define']('comments.CommentThreadView',Ct),_0x2682b2['define']('comments.CommentView',vt),_0x2682b2['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0xd3ae76=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x3ee1c2,_0x17a0a0)=>this['_addCommentThread'](_0x17a0a0)),this['on']('submitCommentThread',(_0x3ed872,_0x342e3a)=>this['_submitCommentThread'](_0x342e3a)),this['on']('resolveCommentThread',(_0x1916bf,_0x4a297c)=>this['_resolveCommentThread'](_0x4a297c)),this['on']('resolveCommentThread',(_0x464252,_0x155b32)=>this['_updateActiveAnnotation'](_0x155b32),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x1f93cb,_0x11fccb)=>this['_reopenCommentThread'](_0x11fccb)),this['on']('reopenCommentThread',(_0x375307,_0x34759c)=>this['_updateActiveAnnotation'](_0x34759c),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x6083c7,_0x1c3093)=>this['_removeCommentThread'](_0x1c3093)),this['on']('updateCommentThread',(_0x2c4763,_0x5395d8)=>this['_updateCommentThread'](_0x5395d8)),this['on']('updateCommentThread',(_0x432c4b,_0x3a1adf)=>this['_updateActiveAnnotation'](_0x3a1adf),{'priority':'lowest'}),this['on']('addComment',(_0x3e6905,_0x4ffcd5)=>this['_addComment'](_0x4ffcd5)),this['on']('updateComment',(_0x377d3e,_0x453692)=>this['_updateComment'](_0x453692)),this['on']('removeComment',(_0x4da326,_0x810ec8)=>this['_removeComment'](_0x810ec8)),this['on']('addComment',(_0x29ff4f,{threadId:_0x192106,isFromAdapter:_0x283ab0})=>{if(_0x283ab0)return;const _0x185b47=this['getCommentThread'](_0x192106),_0x43a820=_0x185b47&&this['_threadToController']['get'](_0x185b47);_0x43a820&&_0x43a820['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0xd3ae76,'change:activeAnnotations',(_0x27d7d7,_0x2a23db,_0x531d26)=>{const _0x3d19d1=Array['from'](_0x531d26)['map'](_0xfa81af=>this['_viewToController']['get'](_0xfa81af['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x3d19d1?_0x3d19d1['model']:null;});}set['adapter'](_0x4c1709){if(this['_adapter'])throw new _0x59aed7('commentsrepository-adapter-already-set');this['_adapter']=_0x4c1709;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x58fce8=gt,threadId:_0xb1ac3f=_0x19322d(),comments:_0x1bc3d9=[],unlinkedAt:_0x4527d7=null,resolvedAt:_0x15ce27=null,resolvedBy:_0x13ce52=null,target:_0x3c146f=null,context:_0x545fba=null,attributes:_0x5cc3fc={},isResolvable:_0x166cd0=!0x0,isSubmitted:_0x47ec8c=!0x1,isFromAdapter:_0xa00155=!0x1}={}){return this['fire'](_t('addCommentThread',_0x58fce8),{'channelId':_0x58fce8,'threadId':_0xb1ac3f,'comments':_0x1bc3d9,'unlinkedAt':_0x4527d7,'resolvedAt':_0x15ce27,'resolvedBy':_0x13ce52,'target':_0x3c146f,'context':_0x545fba,'attributes':_0x5cc3fc,'isFromAdapter':_0xa00155,'isResolvable':_0x166cd0,'isSubmitted':_0x47ec8c}),this['getCommentThread'](_0xb1ac3f);}['openNewCommentThread']({channelId:_0x275bcb=gt,threadId:_0x12669b=_0x19322d(),target:_0x2be61f,context:_0x5f26fc=null,isResolvable:_0x24b51b=!0x0}){if(this['_readOnlyChannels']['has'](_0x275bcb)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x2be61f)throw new _0x59aed7('commentsrepository-missing-target');const _0x3f225c=this['addCommentThread']({'channelId':_0x275bcb,'threadId':_0x12669b,'target':_0x2be61f,'context':_0x5f26fc,'isResolvable':_0x24b51b});if(!_0x3f225c)return null;const _0x1b84c1=this['_threadToController']['get'](_0x3f225c),_0x16992e=_0x1b84c1['view']['commentThreadInputView']['commentInputView'],_0x22d80a=this['context']['plugins']['get'](N),_0x5d67a9=_0x22d80a['getByInnerView'](_0x1b84c1['view']);return _0x22d80a['activate'](_0x5d67a9),_0x16992e['once']('editorReady',()=>_0x16992e['focus']()),_0x3f225c;}['hasCommentThread'](_0x575c19){if('string'!=typeof _0x575c19)throw new _0x59aed7('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x575c19);}['updateCommentThread']({channelId:_0x16de1d=gt,threadId:_0x289de8,context:_0x3cac4d,unlinkedAt:_0x27db7c,attributes:_0x51226d,isFromAdapter:_0x572753=!0x1}){return this['fire'](_t('updateCommentThread',_0x16de1d),{'channelId':_0x16de1d,'threadId':_0x289de8,'context':_0x3cac4d,'unlinkedAt':_0x27db7c,'attributes':_0x51226d,'isFromAdapter':_0x572753}),this['getCommentThread'](_0x289de8);}['getCommentThread'](_0xa1640b){if('string'!=typeof _0xa1640b)throw new _0x59aed7('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0xa1640b);}['fetchCommentThread']({channelId:_0x2d5ed2,threadId:_0x2d1ee1}={}){const _0x3ae758=this['getCommentThread'](_0x2d1ee1);if(_0x3ae758)return Promise['resolve'](_0x3ae758);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x59aed7('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x2d5ed2,'threadId':_0x2d1ee1})['then'](_0x101705=>this['hasCommentThread'](_0x2d1ee1)?this['getCommentThread'](_0x2d1ee1):_0x101705?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x2d5ed2},_0x101705)):void 0x0)['catch'](_0x2f2ad8=>{throw console['error'](_0x2f2ad8),new _0x59aed7('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x2700e7,skipNotAttached:_0x2275fe=!0x1,skipEmpty:_0x45b767=!0x1,toJSON:_0x5d07ea=!0x1}={}){const _0x48aa90=[];for(const _0x4d1ac4 of this['_threads']['values']())_0x2700e7&&_0x4d1ac4['channelId']!==_0x2700e7||_0x2275fe&&!_0x4d1ac4['isAttached']||_0x45b767&&0x0===_0x4d1ac4['length']||_0x48aa90['push'](_0x4d1ac4);return _0x5d07ea?_0x48aa90['map'](_0x1decc5=>_0x1decc5['toJSON']()):_0x48aa90;}['setActiveCommentThread'](_0x54942a){const _0xd1b7f=this['context']['plugins']['get'](N);if(!_0x54942a)return void(this['activeCommentThread']&&_0xd1b7f['deactivateAll']());const _0x178282=this['getCommentThread'](_0x54942a);if(!_0x178282)throw new _0x59aed7('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x54942a});if(!this['_threadToController']['has'](_0x178282))throw new _0x59aed7('commentsrepository-active-not-attached',null,{'threadId':_0x54942a});const _0x2d5601=_0xd1b7f['getByInnerView'](this['_threadToController']['get'](_0x178282)['view']);_0xd1b7f['activate'](_0x2d5601);}['switchReadOnly'](_0x12c3f7,_0x52c065){_0x12c3f7?this['_readOnlyChannels']['add'](_0x52c065):this['_readOnlyChannels']['delete'](_0x52c065),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x31b37e){return this['_readOnlyChannels']['has'](_0x31b37e)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x21d86a,_0x121d92){return new yt(_0x21d86a,_0x121d92);}['setPermissions'](_0x43e0a5,_0x2af454=gt){this['_permissions']['set'](_0x2af454,_0x43e0a5),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x1eb230=gt){return this['_permissions']['has'](_0x1eb230)?this['_permissions']['get'](_0x1eb230):Tt;}['_addCommentThread']({channelId:_0x4d85cb,threadId:_0x24e882,comments:_0x3924d1,unlinkedAt:_0x14e8c0,resolvedAt:_0x1c1287,resolvedBy:_0x545e03,target:_0x586791,context:_0x2bf92a,attributes:_0x305d50,isFromAdapter:_0x646987,isResolvable:_0x17a263,isSubmitted:_0x146025}){if('string'!=typeof _0x24e882)throw new _0x59aed7('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x24e882});if(this['hasCommentThread'](_0x24e882))throw new _0x59aed7('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x24e882});const _0x2764f5=new oe(this,{'channelId':_0x4d85cb,'id':_0x24e882,'context':_0x2bf92a,'attributes':_0x305d50,'unlinkedAt':_0x14e8c0,'resolvedAt':_0x1c1287,'resolvedBy':_0x545e03?this['context']['plugins']['get'](it)['getUser'](_0x545e03):null,'isResolvable':_0x17a263,'isSubmitted':_0x146025||_0x646987});this['_threads']['set'](_0x24e882,_0x2764f5);for(const _0x37fce7 of _0x3924d1)_0x2764f5['_add'](this['_createNewComment']({'threadId':_0x24e882,..._0x37fce7}));return _0x586791&&_0x2764f5['attachTo'](_0x586791),_0x646987||!_0x2764f5['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x4d85cb,'threadId':_0x24e882});}['_submitCommentThread']({channelId:_0x157501,threadId:_0x11b9a5}){if(!this['hasCommentThread'](_0x11b9a5))throw new _0x59aed7('commentsrepository-missing-comment-thread',this);const _0x50ba51=this['getCommentThread'](_0x11b9a5);if(_0x50ba51['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x400be7,comments:_0x339439,resolvedAt:_0xbe841c,resolvedBy:_0x1bcff2,context:_0x157c94,attributes:_0x5aa51e}=_0x50ba51,_0x4756d7=this['context']['plugins']['get']('PendingActions'),_0x119af1=_0x4756d7['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x157501,'threadId':_0x400be7,'comments':_0x339439['map'](_0x95563b=>_0x95563b['toJSON']()),'resolvedAt':_0xbe841c,'resolvedBy':_0x1bcff2?_0x1bcff2['id']:_0x1bcff2,'context':_0x157c94,'attributes':_0x5aa51e})['then'](({comments:_0x3d33e7})=>{_0x4756d7['remove'](_0x119af1);for(const _0x5361f7 of _0x3d33e7)this['_updateComment']({'channelId':_0x157501,'threadId':_0x11b9a5,'commentId':_0x5361f7['commentId'],'createdAt':_0x5361f7['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x35b2a2=>{throw console['error'](_0x35b2a2),new _0x59aed7('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x4cca7e,target:_0x2914f0}){const _0x5d41c3=this['getCommentThread'](_0x4cca7e);if(!_0x5d41c3)throw new _0x59aed7('commentsrepository-attach-missing-comment-thread',this);const _0xea2440=this['context']['plugins']['get']('PendingActions'),_0x19f35c=this['context']['plugins']['get'](N),_0x5e42e5=this['_createCommentThreadView'](_0x5d41c3),_0xac5f91=new yt(_0x5d41c3,_0x5e42e5);let _0x3f7f0d=null;_0x5e42e5['on']('change:isDirty',(_0x307484,_0x2ecb47,_0x981473)=>{_0x981473?_0x3f7f0d=_0xea2440['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x3f7f0d&&(_0xea2440['remove'](_0x3f7f0d),_0x3f7f0d=null);}),this['_threadToController']['set'](_0x5d41c3,_0xac5f91),this['_viewToController']['set'](_0x5e42e5,_0xac5f91);const _0x201ddc=new T(this['context']['locale'],_0x5e42e5);_0x201ddc['bind']('length')['to'](_0x5e42e5),_0x201ddc['bind']('isDirty')['to'](_0x5e42e5,'isDirty',_0x5e42e5,'length',(_0x52d532,_0x36764d)=>_0x52d532||!_0x36764d),_0x201ddc['bind']('isActive')['to'](_0x5e42e5),_0x201ddc['type']='comment';const _0x2277e6=new d({'view':_0x201ddc,'target':_0x2914f0,'type':'comment','isVisible':!_0x5d41c3['isResolved']});return _0x5e42e5['on']('escape',()=>{_0x2277e6['fire']('escape');}),this['_bindAnnotationToEditors'](_0x5e42e5,_0x2277e6),_0x19f35c['add'](_0x2277e6),_0x2277e6;}['_bindAnnotationToEditors'](_0x3c4a26,_0x1ce7bb){this['listenTo'](_0x3c4a26,'editorReady',(_0x380161,_0x2c58c1)=>{const _0x214ecd=_0x2c58c1['ui']['view']['body']['bodyCollectionContainer'];_0x1ce7bb['focusableElements']['add'](_0x214ecd),this['context']instanceof _0x40857b&&this['context']['ui']['focusTracker']['add'](_0x214ecd);},{'priority':'highest'}),this['listenTo'](_0x3c4a26,'editorDestroyed',(_0x2839ee,_0x30ef17)=>{const _0xc377bf=_0x30ef17['ui']['view']['body']['bodyCollectionContainer'];_0x1ce7bb['focusableElements']['has'](_0xc377bf)&&_0x1ce7bb['focusableElements']['remove'](_0xc377bf),this['context']instanceof _0x40857b&&this['context']['ui']['focusTracker']['remove'](_0xc377bf);});}['_unbindEditors'](_0x1993d1){this['stopListening'](_0x1993d1,'editorReady'),this['stopListening'](_0x1993d1,'editorDestroyed');}['_createCommentThreadView'](_0x1f62ce){const _0x4171be=this['context']['plugins']['get'](it),{config:_0x1fb25f,locale:_0x4e1c19}=this['context'],_0x137cdc=mt(_0x1fb25f['get']('locale'));return new(0x0,(_0x1fb25f['get']('comments'))['CommentThreadView'])(_0x4e1c19,_0x1f62ce,_0x4171be['me'],{'editorConfig':{..._0x1fb25f['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x1fb25f['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x1fb25f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1fb25f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1fb25f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x137cdc,'CommentView':_0x1fb25f['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x293519,channelId:_0x136a97,resolvedAt:_0x12318d,resolvedBy:_0x110c19,isFromAdapter:_0x3b5304}){if(!this['hasCommentThread'](_0x293519))throw new _0x59aed7('commentsrepository-missing-comment-thread',null,{'threadId':_0x293519});const _0x394beb=this['getCommentThread'](_0x293519);if(_0x394beb['isResolved'])throw new _0x59aed7('commentsrepository-resolved-comment-thread',null,{'threadId':_0x293519});const _0x55ec59=this['context']['plugins']['get'](it);if(_0x394beb['resolvedBy']=_0x55ec59['getUser'](_0x110c19),_0x394beb['resolvedAt']=_0x12318d,_0x3b5304||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x398a97=this['context']['plugins']['get']('PendingActions'),_0x3f5623=_0x398a97['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x136a97,'threadId':_0x293519})['then'](({resolvedAt:_0x1a63b9,resolvedBy:_0x2c0d03})=>{_0x398a97['remove'](_0x3f5623),_0x394beb['resolvedBy']['id']!==_0x2c0d03&&(_0x394beb['resolvedBy']=_0x55ec59['getUser'](_0x2c0d03)),_0x394beb['resolvedAt']=_0x1a63b9;})['catch'](_0x13daac=>{throw console['error'](_0x13daac),new _0x59aed7('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x1c848c,channelId:_0x3f5729,isFromAdapter:_0x2bb020}){if(!this['hasCommentThread'](_0x1c848c))throw new _0x59aed7('commentsrepository-missing-comment-thread',null,{'threadId':_0x1c848c});const _0x59b706=this['getCommentThread'](_0x1c848c);if(!_0x59b706['isResolved'])throw new _0x59aed7('commentsrepository-reopen-comment-thread',null,{'threadId':_0x1c848c});if(_0x59b706['resolvedBy']=null,_0x59b706['resolvedAt']=null,_0x2bb020||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x5edc4a=this['context']['plugins']['get']('PendingActions'),_0x2d3331=_0x5edc4a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x3f5729,'threadId':_0x1c848c})['then'](()=>_0x5edc4a['remove'](_0x2d3331))['catch'](_0x5260cd=>{throw console['error'](_0x5260cd),new _0x59aed7('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x271179,isFromAdapter:_0x47bf81}){const _0x25656a=this['getCommentThread'](_0x271179);if(!_0x25656a)throw new _0x59aed7('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x271179),this['_threads']['delete'](_0x271179),!_0x25656a['isSubmitted']||_0x47bf81||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x153f6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3645ef}=_0x25656a,_0x11ca50=_0x153f6['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x3645ef,'threadId':_0x271179})['then'](()=>_0x153f6['remove'](_0x11ca50))['catch'](_0x2f51d3=>{throw console['error'](_0x2f51d3),new _0x59aed7('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x3a7f7d,unlinkedAt:_0x78c967,context:_0x3b6039,attributes:_0x83ab18,isFromAdapter:_0x58a09f}){if('string'!=typeof _0x3a7f7d)throw new _0x59aed7('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3a7f7d});if(!this['hasCommentThread'](_0x3a7f7d))throw new _0x59aed7('commentsrepository-missing-comment-thread',null,{'threadId':_0x3a7f7d});const _0x2c6e9f=this['getCommentThread'](_0x3a7f7d);let _0xf25170=!0x1;if(void 0x0!==_0x3b6039&&_0x2c6e9f['context']!==_0x3b6039&&(_0x2c6e9f['context']=_0x3b6039,_0xf25170=!0x0),void 0x0!==_0x78c967&&_0x2c6e9f['unlinkedAt']!==_0x78c967&&(_0x2c6e9f['unlinkedAt']=_0x78c967,_0xf25170=!0x0),_0x83ab18&&!It(_0x83ab18,_0x2c6e9f['attributes'])&&(_0x2c6e9f['attributes']=_0x83ab18,_0xf25170=!0x0),!_0xf25170)return Promise['resolve']();if(!_0x2c6e9f['isSubmitted']||_0x58a09f||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x107376=this['context']['plugins']['get']('PendingActions'),{channelId:_0x27fe55}=_0x2c6e9f,_0x53d1a6=_0x107376['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x27fe55,'threadId':_0x3a7f7d,'context':_0x3b6039,'unlinkedAt':_0x78c967,'attributes':_0x83ab18})['then'](()=>_0x107376['remove'](_0x53d1a6))['catch'](_0x34136b=>{throw console['error'](_0x34136b),new _0x59aed7('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x1e8ab6){const _0x3b98ab=this['context']['plugins']['get'](N),_0x298dd5=this['getCommentThread'](_0x1e8ab6);if(this['_threadToController']['has'](_0x298dd5)){const _0x1d94bf=this['_threadToController']['get'](_0x298dd5),_0x5263b2=_0x1d94bf['view'],_0x2d984f=_0x3b98ab['getByInnerView'](_0x5263b2);this['_threadToController']['delete'](_0x298dd5),this['_viewToController']['delete'](_0x5263b2),_0x2d984f&&_0x3b98ab['remove'](_0x2d984f),_0x1d94bf['destroy'](),_0x5263b2['destroy']()['then'](()=>{this['_unbindEditors'](_0x5263b2);});}}['_updateActiveAnnotation']({threadId:_0x465b48,resolvedAt:_0x3c34b0}){const _0x549950=!!_0x3c34b0,_0xfb509d=this['context']['plugins']['get'](N),_0x1a0a9b=this['getCommentThread'](_0x465b48);if(this['_threadToController']['has'](_0x1a0a9b)){const _0x4c54d9=this['_threadToController']['get'](_0x1a0a9b)['view'],_0x49cad4=_0xfb509d['getByInnerView'](_0x4c54d9);_0x49cad4&&(_0x549950&&_0xfb509d['_removeActiveAnnotation'](_0x49cad4),_0x49cad4['refreshVisibility']());}}['_getExternalAuthor'](_0x4271e1){const _0x3394ed=this['context']['plugins']['get'](it),_0x58f237=lt('external:'+_0x4271e1),_0xbe197d=_0x3394ed['getUser'](_0x58f237);return _0xbe197d||_0x3394ed['addUser']({'id':_0x58f237,'name':_0x4271e1});}['_createNewComment']({threadId:_0x32d244,commentId:_0x2b8dd9=_0x19322d(),content:_0x2883d8,authorId:_0x273822,createdAt:_0x2cfb0a,attributes:_0x5e2dd0}){if('string'!=typeof _0x2b8dd9)throw new _0x59aed7('commentsrepository-invalid-commentid');if('string'!=typeof _0x273822)throw new _0x59aed7('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x2883d8||!_0x2883d8['trim']())throw new _0x59aed7('commentsrepository-invalid-comment-content');const _0x43c159=this['context']['plugins']['get'](it)['getUser'](_0x273822);if(!_0x43c159)throw new _0x59aed7('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x273822});let _0x266024=null,_0x363f20=_0x2cfb0a;return _0x5e2dd0&&_0x5e2dd0['@external']&&(_0x266024=this['_getExternalAuthor'](_0x5e2dd0['@external']['authorName']),_0x363f20=new Date(_0x5e2dd0['@external']['createdAt'])),new re(this,{'threadId':_0x32d244,'id':_0x2b8dd9,'author':_0x266024||_0x43c159,'creator':_0x43c159,'content':_0x2883d8,'createdAt':_0x2cfb0a,'authoredAt':_0x363f20,'attributes':_0x5e2dd0});}['_addComment'](_0x16f096){let {threadId:_0xd488ab,content:_0x125959,attributes:_0xe3ae05,isFromAdapter:_0x547d25}=_0x16f096;const _0x424c8e=this['getCommentThread'](_0x16f096['threadId']);if(!_0x424c8e)throw new _0x59aed7('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x496147=this['_createNewComment'](_0x16f096),{id:_0x57b6d7}=_0x496147;if(_0x424c8e['_add'](_0x496147),_0x547d25||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x424c8e['isSubmitted'])return Promise['resolve']();const _0x49af12=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5159c7}=_0x424c8e,_0x2afeff=_0x49af12['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0xe3ae05||(_0xe3ae05={}),this['adapter']['addComment']({'channelId':_0x5159c7,'threadId':_0xd488ab,'commentId':_0x57b6d7,'content':_0x125959,'attributes':_0xe3ae05})['then'](_0x2c3510=>{_0x49af12['remove'](_0x2afeff),_0x2c3510&&this['_updateComment']({'channelId':_0x5159c7,'threadId':_0xd488ab,'commentId':_0x57b6d7,'createdAt':_0x2c3510['createdAt'],'isFromAdapter':!0x0});})['catch'](_0xe33783=>{throw console['error'](_0xe33783),new _0x59aed7('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x2dab1e,commentId:_0x1a75e8,content:_0x16582a,createdAt:_0x483b14,attributes:_0x3e133d,isFromAdapter:_0x45ed2c}){if(void 0x0!==_0x16582a&&('string'!=typeof _0x16582a||!_0x16582a['trim']()['length']))throw new _0x59aed7('commentsrepository-update-comment-invalid-content');const _0xa1cea=this['getCommentThread'](_0x2dab1e),_0x219387=_0xa1cea['getComment'](_0x1a75e8);if(!_0x219387)throw new _0x59aed7('commentsrepository-update-missing-comment',this);let _0x225490=!0x1;if(_0x16582a&&_0x16582a!==_0x219387['content']&&(_0x219387['isEditable']||_0x45ed2c)&&(_0x219387['content']=_0x16582a,_0x225490=!0x0),_0x483b14&&_0x483b14!==_0x219387['createdAt']&&(_0x219387['createdAt']=_0x483b14,_0x219387['attributes']&&_0x219387['attributes']['@external']||(_0x219387['authoredAt']=_0x483b14),_0x225490=!0x0),_0x3e133d&&!It(_0x3e133d,_0x219387['attributes'])&&(_0x219387['attributes']=_0x3e133d,_0x225490=!0x0),!_0x225490)return Promise['resolve']();if(_0xa1cea['fire']('commentUpdated'),_0x45ed2c||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0xaed472=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5ca3ac}=this['getCommentThread'](_0x219387['threadId']),_0x45ee63=_0xaed472['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x5ca3ac,'threadId':_0x2dab1e,'commentId':_0x1a75e8,'content':_0x16582a,'attributes':_0x3e133d})['then'](()=>_0xaed472['remove'](_0x45ee63))['catch'](_0x52e706=>{throw console['error'](_0x52e706),new _0x59aed7('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x9658f2,commentId:_0x26942c,isFromAdapter:_0x44ec42}){const _0x8307c4=this['getCommentThread'](_0x9658f2),_0x4d1a93=_0x8307c4['getComment'](_0x26942c);if(!_0x4d1a93)throw new _0x59aed7('commentsrepository-remove-missing-comment',this);if(_0x8307c4['_remove'](_0x4d1a93),_0x44ec42||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x59bf4c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1a5b7b}=_0x8307c4,_0x28eaf3=_0x59bf4c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x1a5b7b,'threadId':_0x9658f2,'commentId':_0x26942c})['then'](()=>_0x59bf4c['remove'](_0x28eaf3))['catch'](_0x3bc301=>{throw console['error'](_0x3bc301),new _0x59aed7('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x2ae98f(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x37c09d,_0x54f2ba){super();const _0x6ae15b=_0x54f2ba['isResolvable'];this['channelId']=_0x54f2ba['channelId'],this['id']=_0x54f2ba['id'],this['comments']=new _0x42f184(),this['_repository']=_0x37c09d,this['_isAttached']=!0x1,this['_isSubmitted']=_0x54f2ba['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x37c09d,'_permissions',_0x37c09d,'_readOnlyChannels',()=>_0x37c09d['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x37c09d,'_permissions',()=>_0x37c09d['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x37c09d,'_permissions',()=>{const _0x186526=_0x37c09d['getPermissions'](this['channelId']);return _0x186526['write']||_0x186526['admin'];}),this['bind']('isResolvable')['to'](_0x37c09d,'_permissions',()=>_0x6ae15b&&_0x37c09d['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x54f2ba['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x444de4,_0x4e5b65)=>_0x444de4?_0x4e5b65?_0x444de4<_0x4e5b65?_0x444de4:_0x4e5b65:_0x444de4:_0x4e5b65),this['set']('unlinkedAt',_0x54f2ba['unlinkedAt']||null),this['set']('resolvedAt',_0x54f2ba['resolvedAt']||null),this['set']('resolvedBy',_0x54f2ba['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x24a7f8=>!!_0x24a7f8),this['set']('attributes',_0x54f2ba['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x46064c,_0x49c226)=>_0x46064c+_0x49c226['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x4ba87b,id:_0x3ff419}=this;this['_repository']['fire'](_t('submitCommentThread',_0x4ba87b),{'channelId':_0x4ba87b,'threadId':_0x3ff419});}['setUnlinkedAt'](_0x4d9895){this['_update']({'unlinkedAt':_0x4d9895});}['resolve']({resolvedAt:_0x599794=new Date(),resolvedBy:_0x1aedaf=null,isFromAdapter:_0x48c416=!0x1}={}){const _0x2c5209=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x561768,id:_0x476dc6}=this;this['_repository']['fire'](_t('resolveCommentThread',_0x561768),{'channelId':_0x561768,'threadId':_0x476dc6,'resolvedAt':_0x599794,'resolvedBy':_0x1aedaf||_0x2c5209['id'],'isFromAdapter':_0x48c416});}['reopen']({isFromAdapter:_0x4d0a03=!0x1}={}){const {channelId:_0x1036c1,id:_0x5cdddb}=this;this['_repository']['fire'](_t('reopenCommentThread',_0x1036c1),{'channelId':_0x1036c1,'threadId':_0x5cdddb,'isFromAdapter':_0x4d0a03});}['setContext'](_0x95e204){this['context']||this['_update']({'context':_0x95e204});}['setAttribute'](_0x5d6af5,_0x3c3666){const _0x272a8c=pt(this['attributes']);wt(_0x272a8c,_0x5d6af5,_0x3c3666),this['_update']({'attributes':_0x272a8c});}['removeAttribute'](_0x5b2522){const _0x4c1811=pt(this['attributes']);At(_0x4c1811,_0x5b2522),this['_update']({'attributes':_0x4c1811});}['remove']({isFromAdapter:_0xa8f839=!0x1}={}){const {channelId:_0x2495e7,id:_0x466ba8}=this;this['_repository']['fire'](_t('removeCommentThread',_0x2495e7),{'channelId':_0x2495e7,'threadId':_0x466ba8,'isFromAdapter':_0xa8f839});}['attachTo'](_0x2d2858){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x2d2858});}['addComment'](_0xd5d938){const {channelId:_0x43ea6e,id:_0x2b1062}=this;this['_repository']['fire'](_t('addComment',_0x43ea6e,_0x2b1062),Object['assign']({'channelId':_0x43ea6e,'threadId':_0x2b1062},_0xd5d938));}['getComment'](_0x3dcf35){if('string'!=typeof _0x3dcf35)throw new _0x59aed7('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x3dcf35});return this['comments']['get'](_0x3dcf35);}['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'](_0x416969=>_0x416969['toJSON']()),'attributes':this['attributes']};}['_add'](_0x269d36){return this['listenTo'](_0x269d36,'change:authoredAt',()=>{const _0x1f8b21=this['_findOptimalIndex'](_0x269d36),_0xe8ef0d=this['comments'];_0x1f8b21-0x1!=_0xe8ef0d['getIndex'](_0x269d36)&&_0x1f8b21+0x1!=_0xe8ef0d['getIndex'](_0x269d36)&&(this['_remove'](_0x269d36),this['_add'](_0x269d36));}),this['comments']['add'](_0x269d36,this['_findOptimalIndex'](_0x269d36));}['_update'](_0x5ae49d){const {channelId:_0x4ad2ac,id:_0x138790}=this;this['_repository']['fire'](_t('updateCommentThread',_0x4ad2ac),{..._0x5ae49d,'channelId':_0x4ad2ac,'threadId':_0x138790});}['_remove'](_0x5ce0d2){return this['stopListening'](_0x5ce0d2),_0x5ce0d2['destroy'](),this['comments']['remove'](_0x5ce0d2);}['_findOptimalIndex'](_0x1de495){const _0x135c39=this['comments']['find'](_0x48c3e3=>new Date(_0x48c3e3['authoredAt'])['getTime']()>new Date(_0x1de495['authoredAt'])['getTime']());return _0x135c39?this['comments']['getIndex'](_0x135c39):this['length'];}}class re extends/* #__PURE__ -- @preserve */
|
|
31
|
+
_0x2ae98f(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x37251d,_0x482bf1){super();const _0x4cd6b1=_0x37251d['context']['plugins']['get'](it)['me'],_0x1187d8=_0x37251d['getCommentThread'](_0x482bf1['threadId']),_0x2eee72=0x0===_0x1187d8['comments']['length'],_0x477294=_0x4cd6b1===_0x482bf1['author'];this['id']=_0x482bf1['id'],this['threadId']=_0x482bf1['threadId'],this['author']=_0x482bf1['author'],this['creator']=_0x482bf1['creator'],this['isExternal']=Boolean(_0x482bf1['attributes']&&_0x482bf1['attributes']['@external']),this['set']('content',_0x482bf1['content']),this['createdAt']=_0x482bf1['createdAt']||new Date(),this['set']('authoredAt',_0x482bf1['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x1187d8,'resolvedAt'),this['set']('attributes',_0x482bf1['attributes']||{}),this['bind']('isEditable')['to'](_0x37251d,'_permissions',()=>{const _0x554828=_0x37251d['getPermissions'](_0x1187d8['channelId'])['write'],_0x5a5b4f=_0x37251d['getPermissions'](_0x1187d8['channelId'])['modifyAll'];return _0x477294&&_0x554828||!_0x477294&&_0x5a5b4f;}),this['bind']('isRemovable')['to'](_0x1187d8,'isRemovable',_0x37251d,'_permissions',_0x215e49=>{const _0x1bfe11=_0x37251d['getPermissions'](_0x1187d8['channelId'])['write'],_0x34d5f5=_0x37251d['getPermissions'](_0x1187d8['channelId'])['modifyAll'];return _0x477294&&_0x1bfe11||_0x215e49&&_0x2eee72||!_0x477294&&_0x34d5f5&&!_0x2eee72;}),this['bind']('isReadOnly')['to'](_0x1187d8,'isReadOnly'),this['_repository']=_0x37251d;}get['weight'](){return Math['max'](function(_0x31fd36){const _0x3701fc=document['createElement']('div');return _0x3701fc['innerHTML']=_0x31fd36,_0x3701fc['textContent']['length'];}(this['content']),0xc8);}['update'](_0x167472){const {threadId:_0x14cd99,id:_0x21b342}=this;if(!this['_repository']['hasCommentThread'](_0x14cd99))throw new _0x59aed7('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x572b46}=this['_repository']['getCommentThread'](_0x14cd99);this['_repository']['fire'](_t('updateComment',_0x572b46,_0x14cd99),{'channelId':_0x572b46,'threadId':_0x14cd99,'commentId':_0x21b342,..._0x167472});}['setAttribute'](_0x2455c4,_0x1f197d){const _0x1e3b48=pt(this['attributes']);wt(_0x1e3b48,_0x2455c4,_0x1f197d),this['update']({'attributes':_0x1e3b48});}['removeAttribute'](_0x6dfdb9){const _0x32e774=pt(this['attributes']);At(_0x32e774,_0x6dfdb9),this['update']({'attributes':_0x32e774});}['remove'](_0x2d2c1b={}){if(!_0x2d2c1b['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x36f545,id:_0x5c52f7}=this;if(!this['_repository']['hasCommentThread'](_0x36f545))throw new _0x59aed7('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1a944c}=this['_repository']['getCommentThread'](_0x36f545);this['_repository']['fire'](_t('removeComment',_0x1a944c,_0x36f545),{'channelId':_0x1a944c,'threadId':_0x36f545,'commentId':_0x5c52f7,..._0x2d2c1b});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0x223058,..._0x468fe7){for(const _0x702b21 of _0x468fe7)void 0x0!==_0x702b21&&(_0x223058+=':'+String(_0x702b21));return _0x223058;}class J extends _0x13a902{['refresh'](){const _0x3f9d47=this['editor']['model']['document']['selection'];for(const _0x28534d of _0x3f9d47['getRanges']())if(this['_hasContent'](_0x28534d))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x3b8132=_0x19322d()}={}){const _0x479e2b=this['editor']['model'],_0x52ca68=[];for(const _0x459a32 of _0x479e2b['document']['selection']['getRanges']())this['_hasContent'](_0x459a32)&&_0x52ca68['push'](this['_trimToContent'](_0x459a32));_0x479e2b['change'](_0x166eb5=>{for(const _0x2c8abb of _0x52ca68){const _0x27cb71=_0x19322d()['substr'](0x1,0x5),_0x152bce='comment:'+_0x3b8132+':'+_0x27cb71;_0x166eb5['addMarker'](_0x152bce,{'range':_0x2c8abb,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x3ab145){for(const _0x5efb38 of _0x3ab145['getItems']())if(this['_itemIsContent'](_0x5efb38))return!0x0;return!0x1;}['_itemIsContent'](_0x3d1223){return _0x3d1223['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x3d1223)&&!_0x3d1223['is']('element','tableCell');}['_trimToContent'](_0x232cc7){const _0x5cbfed=_0x44eb6e=>!this['_itemIsContent'](_0x44eb6e['item']),_0x823b9f=_0x232cc7['start']['getLastMatchingPosition'](_0x5cbfed),_0x2a3274=_0x232cc7['end']['getLastMatchingPosition'](_0x5cbfed,{'direction':'backward'});return this['editor']['model']['createRange'](_0x823b9f,_0x2a3274);}}class P extends _0x407575{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bcce0){super(_0x3bcce0),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x225b3d=this['editor'],_0x261322=_0x225b3d['model']['document']['selection'],_0x1826e5=_0x31e186(()=>this['refreshSelectedViews'](),0xa);_0x261322['on']('change:range',(_0x411dae,_0x274d63)=>{_0x274d63['directChange']&&(_0x1826e5['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x225b3d['editing']['view']['document'],'change:isFocused',(_0x4fe2f6,_0x4a2672,_0x4a3635)=>{_0x4a3635&&_0x1826e5();}),this['listenTo'](_0x225b3d['ui']['focusTracker'],'change:isFocused',(_0x5a41f3,_0x5dd931,_0x4e2f79)=>{_0x4e2f79||_0x225b3d['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x20e8b7=>this['_editorAnnotationsData']['has'](_0x20e8b7['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x47a58a){if(this['_editorAnnotations']['has'](_0x47a58a['view']))return;this['_editorAnnotations']['add'](_0x47a58a['view']),this['editor']['ui']['focusTracker']['add'](_0x47a58a['view']['element']);const _0x1b9ae4=this['editor']['plugins']['get'](N);this['listenTo'](_0x1b9ae4['collection'],'remove',(_0x53b933,_0x3eb1b6)=>{this['editor']['ui']['focusTracker']['remove'](_0x3eb1b6['view']['element']),this['_editorAnnotations']['delete'](_0x3eb1b6['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x22e3ed){if('function'!=typeof _0x22e3ed)throw new _0x59aed7('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x22e3ed);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x1974be,annotations:_0x42308e}){const _0x43da9c=[],_0x4a10e5=this['editor']['model']['document']['selection'],_0x181872=Array['from'](_0x4a10e5['getRanges']());for(const [_0x369d09,_0x55b1c2]of this['_editorAnnotationsData']){const _0x5903df=_0x1524e5(_0x55b1c2),_0x5d0400=_0x42308e['getByInnerView'](_0x369d09);_0x5903df&&_0x5d0400&&_0x43da9c['push']({'annotation':_0x5d0400,'range':_0x5903df});}function _0x1524e5(_0x18062b){for(const _0x17b778 of _0x18062b)for(const _0x49254b of _0x181872)if(_0x17b778['containsRange'](_0x49254b,!_0x4a10e5['isCollapsed']))return _0x17b778;return null;}return _0x43da9c['sort']((_0x1e5e72,_0x4a596c)=>{const _0x4e1a22=_0x1e5e72['range'],_0x349aaf=_0x4a596c['range'];if(!_0x4e1a22['isEqual'](_0x349aaf)){if(_0x4e1a22['containsRange'](_0x349aaf,!0x0))return 0x1;if(_0x349aaf['containsRange'](_0x4e1a22,!0x0))return-0x1;}return _0x1e5e72['annotation']==_0x1974be?-0x1:_0x4a596c['annotation']==_0x1974be?0x1:0x0;})['map'](_0x1fdddb=>_0x1fdddb['annotation']);}get['_editorAnnotationsData'](){const _0x2afc25=new Map();for(const _0x308ddb of Array['from'](this['_dataCollectors']))for(const [_0x44ff8e,_0x5ab6b6]of _0x308ddb())_0x2afc25['set'](_0x44ff8e,_0x5ab6b6);return _0x2afc25;}}class st extends _0x407575{['afterInit'](){const _0x3a9dc3=this['editor'];if(!_0x3a9dc3['plugins']['has']('RestrictedEditingModeEditing'))return;_0x3a9dc3['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x407575{constructor(_0x52bb86){super(_0x52bb86),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x575e78=this['editor'],_0x8ed508=_0x575e78['commands']['get']('importWord'),_0x188273=_0x575e78['plugins']['get'](it);_0x8ed508&&(_0x8ed508['on']('execute',(_0x20405e,[,_0x548632])=>{_0x548632['collaboration_features']={'comments':!0x0,'user_id':_0x188273['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x8ed508,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x291f11,_0x726f9d){const {comment_threads:_0x31e05e}=_0x726f9d;_0x31e05e&&_0x31e05e['forEach'](({thread_id:_0x598403,comments:_0x3970bd,is_resolved:_0x463fe8})=>{const _0x26cdb3=new Date(),_0x4fd9ef=_0x3970bd['map'](({author:_0x5b1e6a,content:_0x313ecc,created_at:_0x29abe9})=>({'content':_0x313ecc,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x26cdb3,'attributes':{'@external':{'authorName':_0x5b1e6a,'createdAt':_0x29abe9?new Date(_0x29abe9):new Date(),'source':'importWord'}}})),_0x450e0=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x450e0,'threadId':_0x598403,'comments':_0x4fd9ef,'resolvedAt':_0x463fe8?_0x26cdb3:null});});}}class at extends _0x407575{constructor(_0x20d9dd){super(_0x20d9dd),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x7c1248=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x7c1248,'contentInsertion',(_0x1d9f11,_0x33c034)=>this['_removeMarkersWithoutThreads'](_0x33c034['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x30d3b2){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x30d3b2;const _0x16fd75=this['editor']['plugins']['get']('CommentsRepository');for(const _0x140032 of _0x30d3b2['keys']()){const [_0x4ee664,_0x5d955d]=_0x140032['split'](':');'comment'!=_0x4ee664||_0x16fd75['hasCommentThread'](_0x5d955d)||_0x30d3b2['delete'](_0x140032);}return _0x30d3b2;}['_registerMarkerInClipboardPipeline'](){const _0x43e4e5=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x36a39a=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x36a39a&&_0x43e4e5['_registerMarkerToCopy']('comment',_0x36a39a);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x1420d9){switch(_0x1420d9){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 _0x407575{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(_0x276e57){super(_0x276e57),this['set']('isThreadsLoadingPaused',!0x0),_0x276e57['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x67d778,_0x26d530,_0x132e13,_0x35ca8a)=>{const _0x9644c0=_0x132e13?he(_0x132e13)['id']:null;if(_0x276e57['model']['change'](()=>{if(_0x9644c0){const _0x29c0ca=this['getAllMarkersForId'](_0x9644c0);for(const _0x5b4752 of _0x29c0ca)_0x276e57['editing']['reconvertMarker'](_0x5b4752);}if(_0x35ca8a){const {id:_0xca8f4b}=he(_0x35ca8a),_0x3d60df=this['getAllMarkersForId'](_0xca8f4b);for(const _0x58f1d8 of _0x3d60df)_0x276e57['editing']['reconvertMarker'](_0x58f1d8);}}),_0x9644c0){const _0x11ea9b=_0x276e57['plugins']['get'](o)['getCommentThread'](_0x9644c0);_0x11ea9b&&_0x11ea9b['isResolved']&&this['scrollToThreadMarker'](_0x9644c0);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x20c87c=this['editor'],_0x5216a9=_0x20c87c['plugins']['get'](o),_0x574b53=_0x20c87c['config']['get']('collaboration.channelId');_0x20c87c['commands']['add']('addCommentThread',new J(_0x20c87c)),this['listenTo'](_0x20c87c,'change:isReadOnly',(_0x448010,_0x2e4245,_0x1f7aa2)=>{_0x5216a9['switchReadOnly'](_0x1f7aa2,_0x20c87c['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x5216a9,ut('addCommentThread',_0x574b53),(_0x523ec6,{threadId:_0x301adf})=>{const _0x187899=this['editor']['plugins']['get'](o)['getCommentThread'](_0x301adf);_0x187899&&_0x187899['unlinkedAt']&&this['_attachArchivedThread'](_0x301adf);}),this['listenTo'](_0x5216a9,ut('removeCommentThread',_0x574b53),(_0x3ace54,{threadId:_0x3621b9})=>{_0x20c87c['model']['enqueueChange']({'isUndoable':!0x1},_0x1f70c2=>{const _0xce7dbc=this['getAllMarkersForId'](_0x3621b9);for(const _0x5ea367 of _0xce7dbc)_0x1f70c2['removeMarker'](_0x5ea367);});}),this['listenTo'](_0x5216a9,ut('resolveCommentThread',_0x574b53),(_0x47f603,{threadId:_0x16861e})=>{(this['_reconvertMarkers'](_0x16861e),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x16861e)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x5216a9,ut('reopenCommentThread',_0x574b53),(_0x423741,{threadId:_0x2cbcfa})=>{this['_reconvertMarkers'](_0x2cbcfa);},{'priority':'low'}),this['listenTo'](_0x5216a9,ut('addComment',_0x574b53),(_0x40f694,{threadId:_0x246146,isFromAdapter:_0x5ddde3})=>{const _0x5c3509=this['getAllMarkersForId'](_0x246146);if(_0x5ddde3||0x0==_0x5c3509['length']||!_0x5216a9['hasCommentThread'](_0x246146))return;0x1===_0x5216a9['getCommentThread'](_0x246146)['length']&&_0x20c87c['model']['enqueueChange']({'isUndoable':!0x1},_0x15f263=>{for(const _0x261ff4 of _0x5c3509)_0x15f263['updateMarker'](_0x261ff4,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x4f53a6){const _0x52a8f3=_0x457822([0x52,0x48,0x32,0x58,0x49,0x54,0x30,0x55,0x6e,0x4d,0x33,0x70,0x76,0x53,0x50,0x68,0x6a,0x39,0x37,0x71,0x66,0x45,0x47,0x63,0x6f,0x69,0x64,0x4c,0x38,0x77,0x5a,0x51,0x34,0x46,0x73,0x75,0x78,0x74,0x65,0x7a,0x4f,0x31,0x35,0x6c,0x57,0x67,0x42,0x61,0x44,0x6b,0x43,0x41,0x4a,0x72,0x62,0x4e,0x36,0x79,0x56,0x59,0x4b,0x6d]),_0x4cdee6=0x60301e76,_0x40da07=0x603749f6^_0x4cdee6,_0x47cc94=window[_0x457822([0x44,0x61,0x74,0x65])][_0x457822([0x6e,0x6f,0x77])](),_0x300952=_0x4f53a6[_0x457822([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47b341=new window[(_0x457822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14c32b=>{_0x300952[_0x457822([0x6f,0x6e,0x63,0x65])](_0x457822([0x72,0x65,0x61,0x64,0x79]),_0x14c32b);}),_0x15d4b7={[_0x457822([0x6b,0x74,0x79])]:_0x457822([0x45,0x43]),[_0x457822([0x75,0x73,0x65])]:_0x457822([0x73,0x69,0x67]),[_0x457822([0x63,0x72,0x76])]:_0x457822([0x50,0x2d,0x32,0x35,0x36]),[_0x457822([0x78])]:_0x457822([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]),[_0x457822([0x79])]:_0x457822([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]),[_0x457822([0x61,0x6c,0x67])]:_0x457822([0x45,0x53,0x32,0x35,0x36])},_0x4c7e51=_0x300952[_0x457822([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x457822([0x67,0x65,0x74])](_0x457822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x57fb08(){let _0x3ec5a7,_0x128345=null,_0x55def6=null;try{if(_0x4c7e51==_0x457822([0x47,0x50,0x4c]))return _0x457822([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ec5a7=_0x3c329c(),!_0x3ec5a7)return _0x457822([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ec5a7[_0x457822([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55def6=_0x5a3026(_0x3ec5a7[_0x457822([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ec5a7[_0x457822([0x6a,0x74,0x69])])),await _0x383a52()?_0x5a9067()?_0x28ee44()?_0x457822([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x23a5db()?(_0x3ec5a7[_0x457822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x457822([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x128345=_0x4b7419(_0x457822([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ec5a7[_0x457822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x457822([0x74,0x72,0x69,0x61,0x6c])&&(_0x128345=_0x4b7419(_0x457822([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ec5a7[_0x457822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x457822([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x128345=_0x4b7419(_0x457822([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16de8c()):_0x457822([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x457822([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x457822([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3c6a87){return _0x457822([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28ee44(){const _0x53b174=[_0x457822([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x457822([0x74,0x72,0x69,0x61,0x6c])][_0x457822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ec5a7[_0x457822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47cc94/0x3e8:0xe10*_0x40da07;return _0x3ec5a7[_0x457822([0x65,0x78,0x70])]<_0x53b174;}function _0x5a9067(){const _0x2ef36d=_0x3ec5a7[_0x457822([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2ef36d&&(!!_0x2ef36d[_0x457822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x457822([0x2a]))||(!!_0x2ef36d[_0x457822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x457822([0x43,0x4d,0x54]))||!(!_0x2ef36d[_0x457822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x457822([0x52,0x43,0x4d,0x54]))||!_0x16508c())));}function _0x23a5db(){const _0x1e7492=_0x3ec5a7[_0x457822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e7492||0x0==_0x1e7492[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x41ea05}=new URL(window[_0x457822([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1e7492[_0x457822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41ea05))return!0x0;const _0x4e6ad1=_0x41ea05[_0x457822([0x73,0x70,0x6c,0x69,0x74])](_0x457822([0x2e]));return _0x1e7492[_0x457822([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1541f1=>_0x1541f1[_0x457822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x457822([0x2a])))[_0x457822([0x6d,0x61,0x70])](_0x5be107=>_0x5be107[_0x457822([0x73,0x70,0x6c,0x69,0x74])](_0x457822([0x2e])))[_0x457822([0x73,0x6f,0x6d,0x65])](_0x14284c=>_0x4e6ad1[_0x457822([0x65,0x76,0x65,0x72,0x79])]((_0x35d9d2,_0x54fd0b)=>_0x14284c[_0x54fd0b]===_0x35d9d2||_0x14284c[_0x54fd0b]===_0x457822([0x2a])));}function _0x16de8c(){return _0x128345&&_0x55def6?new window[(_0x457822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fd64f,_0x2abc21)=>{_0x128345[_0x457822([0x74,0x68,0x65,0x6e])](_0x4fd64f,_0x2abc21),_0x55def6[_0x457822([0x74,0x68,0x65,0x6e])](_0xfe44c2=>{_0xfe44c2!=_0x457822([0x56,0x61,0x6c,0x69,0x64])&&_0x4fd64f(_0xfe44c2);},_0x2abc21);}):_0x128345||_0x55def6||_0x457822([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a3026(_0x129e19,_0x5c5840){return new window[(_0x457822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329245=>{if(_0x189206())return _0x329245(_0x457822([0x56,0x61,0x6c,0x69,0x64]));_0xe7aa6e(),_0x300952[_0x457822([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x457822([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x81d626=!0x1;const _0x2f2f7c=_0x19322d();function _0x316e57(_0x48983c){return!!_0x48983c&&(typeof _0x48983c===_0x457822([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48983c===_0x457822([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48983c[_0x457822([0x74,0x68,0x65,0x6e])]===_0x457822([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48983c[_0x457822([0x63,0x61,0x74,0x63,0x68])]===_0x457822([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x24a527(_0xd6482d){_0x835fe8(_0xd6482d)[_0x457822([0x74,0x68,0x65,0x6e])](_0x180e1e=>{if(!_0x180e1e||_0x180e1e[_0x457822([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x457822([0x6f,0x6b]))return _0x457822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x478fb5(_0x1c894d(_0x2f2f7c+_0x5c5840))!=_0x180e1e[_0x457822([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x457822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x457822([0x56,0x61,0x6c,0x69,0x64]);})[_0x457822([0x74,0x68,0x65,0x6e])](_0x2fc578=>(_0x37e35b(),_0x2fc578),()=>{const _0x53c2db=_0x4198d4();return null==_0x53c2db?(_0x37e35b(),_0x457822([0x56,0x61,0x6c,0x69,0x64])):_0x457822(_0x47cc94-_0x53c2db>(0x443c9a76^_0x4cdee6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x457822([0x74,0x68,0x65,0x6e])](_0x329245)[_0x457822([0x63,0x61,0x74,0x63,0x68])](()=>{_0x329245(_0x457822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3804c1=0x6006f0f6^_0x4cdee6;function _0x37e35b(){const _0x2634c4=_0x457822([0x6c,0x6c,0x63,0x74,0x2d])+_0x478fb5(_0x1c894d(_0x129e19)),_0x361862=_0x1f3264(_0x478fb5(window[_0x457822([0x4d,0x61,0x74,0x68])][_0x457822([0x63,0x65,0x69,0x6c])](_0x47cc94/_0x3804c1)));window[_0x457822([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x457822([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2634c4,_0x361862);}function _0x4198d4(){const _0x3be082=_0x457822([0x6c,0x6c,0x63,0x74,0x2d])+_0x478fb5(_0x1c894d(_0x129e19)),_0x179543=window[_0x457822([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x457822([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3be082);return _0x179543?window[_0x457822([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f3264(_0x179543),0x10)*_0x3804c1:null;}function _0x835fe8(_0x19142b){return new window[(_0x457822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x348fb8,_0x2871bd)=>{_0x19142b[_0x457822([0x74,0x68,0x65,0x6e])](_0x348fb8,_0x2871bd),window[_0x457822([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2871bd,0x6031cab6^_0x4cdee6);});}}_0x300952[_0x457822([0x6f,0x6e])](_0x457822([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e20f3,_0x293b20)=>{if(_0x293b20[0x0]!=_0x129e19)return _0x329245(_0x457822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x293b20[0x1]={..._0x293b20[0x1],[_0x457822([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f2f7c};},{[_0x457822([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x457822([0x68,0x69,0x67,0x68])}),_0x300952[_0x457822([0x6f,0x6e])](_0x457822([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x26b7df=>{_0x316e57(_0x26b7df[_0x457822([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x81d626=!0x0,_0x24a527(_0x26b7df[_0x457822([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x457822([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x457822([0x6c,0x6f,0x77])}),_0x47b341[_0x457822([0x74,0x68,0x65,0x6e])](()=>{_0x81d626||_0x329245(_0x457822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x189206(){return _0x300952[_0x457822([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x457822([0x76,0x69,0x65,0x77])][_0x457822([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x457822([0x61,0x75,0x74,0x6f]);}function _0xe7aa6e(){_0x300952[_0x457822([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x457822([0x76,0x69,0x65,0x77])][_0x457822([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x457822([0x61,0x75,0x74,0x6f]);}}function _0x4b7419(_0xf9b1ef){const _0x1ab9e5=[new window[(_0x457822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e03a7=>setTimeout(_0x5e03a7,0x603920ba^_0x4cdee6)),_0x47b341[_0x457822([0x74,0x68,0x65,0x6e])](()=>new window[(_0x457822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13a265=>{let _0x418701=0x0;_0x300952[_0x457822([0x6d,0x6f,0x64,0x65,0x6c])][_0x457822([0x6f,0x6e])](_0x457822([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x37c0e4,_0x3761aa)=>{_0x3761aa[0x0][_0x457822([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x418701++,_0x418701==(0x60301f8e^_0x4cdee6)&&(_0x13a265(),_0x37c0e4[_0x457822([0x6f,0x66,0x66])]());});}))];return window[_0x457822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x457822([0x72,0x61,0x63,0x65])](_0x1ab9e5)[_0x457822([0x74,0x68,0x65,0x6e])](()=>_0xf9b1ef);}async function _0x451e8c(){await _0x47b341,_0x300952[_0x457822([0x6d,0x6f,0x64,0x65,0x6c])][_0x457822([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x17474a,_0x300952[_0x457822([0x6d,0x6f,0x64,0x65,0x6c])][_0x457822([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x17474a,_0x300952[_0x457822([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x457822([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16508c(){return _0x28fbfc(_0x457822([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x176f6c(_0x457822([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x457822([0x73,0x74,0x61,0x74,0x65])]==_0x457822([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x43bfd9(_0x27dce6){const _0x1eed03=_0x621e60();_0x300952[_0x1eed03]=_0x457822([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x27dce6,_0x27dce6!=_0x457822([0x56,0x61,0x6c,0x69,0x64])&&_0x451e8c();}function _0x621e60(){const _0x2f2c12=window[_0x457822([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x457822([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x457822([0x6e,0x6f,0x77])]())[_0x457822([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x457822([0x2e]),'');let _0x1001cc=_0x457822([0x52]);for(let _0x15c2a4=0x0;_0x15c2a4<_0x2f2c12[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15c2a4+=0x2){let _0xe77553=window[_0x457822([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f2c12[_0x457822([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15c2a4,_0x15c2a4+0x2));_0xe77553>=_0x52a8f3[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe77553-=_0x52a8f3[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1001cc+=_0x52a8f3[_0xe77553];}return _0x1001cc;}function _0x3c329c(){const _0x1d3871=_0x4c7e51[_0x457822([0x73,0x70,0x6c,0x69,0x74])](_0x457822([0x2e]));if(0x3!=_0x1d3871[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x514c45(_0x1d3871[0x1]);function _0x514c45(_0x1352c6){const _0x15e301=_0x5e3f80(_0x1352c6);return _0x15e301&&_0x4c5504()?_0x15e301:null;function _0x4c5504(){const _0xd1e6e6=_0x15e301[_0x457822([0x6a,0x74,0x69])],_0x367ebb=window[_0x457822([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd1e6e6[_0x457822([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd1e6e6[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x77fbac={..._0x15e301,[_0x457822([0x6a,0x74,0x69])]:_0xd1e6e6[_0x457822([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xd1e6e6[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x77fbac[_0x457822([0x76,0x63])],_0x1c894d(_0x77fbac)==_0x367ebb;}}}async function _0x383a52(){let _0x32f4a8=!0x0;try{const _0x2f671a=_0x4c7e51[_0x457822([0x73,0x70,0x6c,0x69,0x74])](_0x457822([0x2e])),[_0x43b40b,_0x156e51,_0x4814e5]=_0x2f671a;return _0x260d95(_0x43b40b),await _0x5cbfbd(_0x43b40b,_0x156e51,_0x4814e5),_0x32f4a8;}catch(_0x309e00){return!0x1;}function _0x260d95(_0x43b5ff){const _0x4f8e8b=_0x5e3f80(_0x43b5ff);_0x4f8e8b&&_0x4f8e8b[_0x457822([0x61,0x6c,0x67])]==_0x457822([0x45,0x53,0x32,0x35,0x36])||(_0x32f4a8=!0x1);}async function _0x5cbfbd(_0x121c88,_0x40b400,_0x13184f){const _0x9463ef=window[_0x457822([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x457822([0x66,0x72,0x6f,0x6d])](_0x3c874d(_0x13184f),_0xcdc212=>_0xcdc212[_0x457822([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x331ef8=new window[(_0x457822([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x457822([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x121c88+_0x457822([0x2e])+_0x40b400),_0x2d62fc=window[_0x457822([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x457822([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d62fc)return;const _0x1871e8=await _0x2d62fc[_0x457822([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x457822([0x6a,0x77,0x6b]),_0x15d4b7,{[_0x457822([0x6e,0x61,0x6d,0x65])]:_0x457822([0x45,0x43,0x44,0x53,0x41]),[_0x457822([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x457822([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x457822([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d62fc[_0x457822([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x457822([0x6e,0x61,0x6d,0x65])]:_0x457822([0x45,0x43,0x44,0x53,0x41]),[_0x457822([0x68,0x61,0x73,0x68])]:{[_0x457822([0x6e,0x61,0x6d,0x65])]:_0x457822([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1871e8,_0x9463ef,_0x331ef8)||(_0x32f4a8=!0x1);}}function _0x5e3f80(_0x186b88){return _0x186b88[_0x457822([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x457822([0x65,0x79]))?JSON[_0x457822([0x70,0x61,0x72,0x73,0x65])](_0x3c874d(_0x186b88)):null;}function _0x3c874d(_0x4c7254){return window[_0x457822([0x61,0x74,0x6f,0x62])](_0x4c7254[_0x457822([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x457822([0x2b]))[_0x457822([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x457822([0x2f])));}function _0x1c894d(_0x20d73d){let _0x325041=0x1505;function _0x4da875(_0xa0029a){for(let _0x3c1a4a=0x0;_0x3c1a4a<_0xa0029a[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c1a4a++){const _0xbcef46=_0xa0029a[_0x457822([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c1a4a);_0x325041=(_0x325041<<0x5)+_0x325041+_0xbcef46,_0x325041&=_0x325041;}}function _0x140eb6(_0x9d93ba){Array[_0x457822([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9d93ba)?_0x9d93ba[_0x457822([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x140eb6):_0x9d93ba&&typeof _0x9d93ba==_0x457822([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x457822([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9d93ba)[_0x457822([0x73,0x6f,0x72,0x74])]()[_0x457822([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f3225,_0x3ee0cf])=>{_0x4da875(_0x2f3225),_0x140eb6(_0x3ee0cf);}):_0x4da875(window[_0x457822([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9d93ba));}return _0x140eb6(_0x20d73d),_0x325041>>>0x0;}function _0x478fb5(_0x301d7c){return _0x301d7c[_0x457822([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x457822([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x457822([0x30]));}function _0x1f3264(_0xb0e291){return _0xb0e291[_0x457822([0x73,0x70,0x6c,0x69,0x74])]('')[_0x457822([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x457822([0x6a,0x6f,0x69,0x6e])]('');}function _0x28fbfc(_0x18c127){return _0x300952[_0x457822([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x457822([0x68,0x61,0x73])](_0x18c127);}function _0x176f6c(_0x1618fb){return _0x300952[_0x457822([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x457822([0x67,0x65,0x74])](_0x1618fb);}function _0x17474a(){}function _0x457822(_0x4efe6c){return _0x4efe6c['map'](_0x3d8bca=>String['fromCharCode'](_0x3d8bca))['join']('');}_0x43bfd9(await _0x57fb08());}(this);}['destroy'](){const _0xe87869=this['editor']['plugins']['get'](o),_0x3a1643=this['editor']['config']['get']('collaboration.channelId');for(const _0x124f30 of _0xe87869['getCommentThreads']({'channelId':_0x3a1643}))_0xe87869['_detachCommentThread'](_0x124f30['id']),_0xe87869['_threads']['delete'](_0x124f30['id']);super['destroy']();}['hasMarkerForId'](_0x2afb47){return this['getAllMarkersForId'](_0x2afb47)['length']>0x0;}['getAllMarkersForId'](_0x5f3d38){const _0x5b4ce4=[];for(const _0x5a21c3 of this['editor']['model']['markers'])_0x5a21c3['name']['startsWith']('comment:'+_0x5f3d38)&&_0x5b4ce4['push'](_0x5a21c3);return _0x5b4ce4;}['scrollToThreadMarker'](_0x142ed2){const _0x5d2a62=this['_getTargetForId'](_0x142ed2);_0x5d2a62&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x142ed2&&rt({'target':_0x5d2a62[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x315645){this['editor']['model']['change'](()=>{for(const _0x538498 of this['getAllMarkersForId'](_0x315645))this['editor']['editing']['reconvertMarker'](_0x538498);});}['_attachArchivedThread'](_0xb7fadc){const _0xe79496=this['editor']['plugins']['get'](o),_0x239e9d=this['editor']['plugins']['get'](P),_0x4fd1b5=_0xe79496['getCommentThread'](_0xb7fadc);if(!_0x4fd1b5['isAttached']){const _0x443446=_0x4fd1b5['attachTo'](()=>this['_getTargetForId'](_0x4fd1b5['id']));_0x239e9d['registerAnnotation'](_0x443446),_0x4fd1b5['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x26952a=this['editor'],_0x22d7c7=_0x26952a['plugins']['get'](it);_0x26952a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x2eebe6,_0x512c08)=>{const {id:_0x1d2dba}=he(_0x2eebe6['markerName']),_0x412b0c=_0x26952a['plugins']['get'](o)['getCommentThread'](_0x1d2dba),_0xb7c876=this['activeMarker']&&he(this['activeMarker'])['id']===_0x1d2dba;let _0x1c0afa;if(_0x412b0c&&_0x412b0c['isResolved']&&!_0xb7c876&&_0x2eebe6['item'])return _0x512c08['consumable']['consume'](_0x2eebe6['item'],'addMarker:'+_0x2eebe6['markerName']),_0x512c08['consumable']['consume'](_0x2eebe6['item'],'removeMarker:'+_0x2eebe6['markerName']),null;const _0x203cbf=['ck-comment-marker'];return _0xb7c876&&_0x203cbf['push']('ck-comment-marker--active'),_0x1c0afa=_0x412b0c&&_0x412b0c['length']?_0x412b0c['comments']['first']['author']['id']:_0x22d7c7['me']['id'],{'classes':_0x203cbf,'attributes':{'data-comment':_0x1d2dba,'data-author-id':_0x1c0afa}};}}),_0x26952a['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x1dcad9,{options:_0x123449})=>{const _0x38cce3=_0x26952a['plugins']['get'](o),_0x149814=_0x26952a['model']['markers']['get'](_0x1dcad9),{id:_0x43db64,part:_0x352fc1}=he(_0x1dcad9);if(_0x149814&&!_0x149814['affectsData'])return null;if(_0x123449['ignoreResolvedComments']){const _0xfab7a4=_0x38cce3['getCommentThread'](_0x43db64);if(_0xfab7a4&&_0xfab7a4['isResolved'])return null;}return{'group':'comment','name':_0x352fc1?_0x43db64+':'+_0x352fc1:_0x43db64};}}),_0x26952a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0xa2f306,{writer:_0x37925b})=>_0x37925b['createElement']('$marker',{'data-name':'comment:'+_0xa2f306['getAttribute']('id')})}),_0x26952a['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3a6126=this['editor'],_0x1fa192=_0x3a6126['plugins']['get'](o),_0x4d2b77=new Set(),_0x300f7f=new Set();_0x3a6126['model']['document']['registerPostFixer'](_0x30cbc7=>{let _0x3cf593=!0x1;for(const {name:_0xf9fd3c,data:_0x501aa8}of _0x3a6126['model']['document']['differ']['getChangedMarkers']()){const {group:_0x36dd6f,id:_0x57ac9a}=he(_0xf9fd3c);let _0x381c60=_0x501aa8['newRange'];if('comment'!==_0x36dd6f||!_0x381c60)continue;const _0x2901d2='$graveyard'===_0x381c60['root']['rootName'];_0x2901d2||(_0x381c60=ft(_0x381c60,_0x3a6126['model']),!_0x381c60||_0x381c60['isCollapsed']||!_0x501aa8['newRange']||_0x381c60['isEqual'](_0x501aa8['newRange']))?_0x3a6126['model']['hasContent'](_0x381c60)&&!_0x2901d2?this['isThreadsLoadingPaused']?_0x4d2b77['add'](_0xf9fd3c):this['_handleThreadMarker'](_0xf9fd3c,_0x57ac9a):(_0x300f7f['add'](_0xf9fd3c),_0x4d2b77['delete'](_0xf9fd3c),_0x30cbc7['removeMarker'](_0xf9fd3c),_0x3cf593=!0x0):(_0x30cbc7['updateMarker'](_0xf9fd3c,{'range':_0x381c60}),_0x3cf593=!0x0);}return _0x3cf593;}),this['on']('change:isThreadsLoadingPaused',(_0x1f44f2,_0x5d0d4f,_0x4106f9)=>{if(!_0x4106f9&&_0x4d2b77['size'])for(const _0x527671 of _0x4d2b77){const {id:_0x4e7766}=he(_0x527671);_0x4d2b77['delete'](_0x527671),_0x3a6126['model']['markers']['get'](_0x527671)&&this['_handleThreadMarker'](_0x527671,_0x4e7766);}}),this['listenTo'](_0x3a6126['model']['document'],'change',(_0xb17c87,_0x243c08)=>{for(const {name:_0x4eb84e,data:{newRange:_0x499523}}of _0x3a6126['model']['document']['differ']['getChangedMarkers']()){const {group:_0x101473,id:_0x53953a}=he(_0x4eb84e);if('comment'!==_0x101473)continue;const _0x44f704=_0x1fa192['getCommentThread'](_0x53953a),_0x2e5adf=this['hasMarkerForId'](_0x53953a);_0x44f704&&(!_0x44f704['_hasTargetInContent']&&_0x499523&&_0x3a6126['editing']['view']['once']('render',()=>{const _0x2f7843=_0x3a6126['plugins']['get'](N),_0x1f2739=_0x1fa192['_threadToController']['get'](_0x44f704)['view'];_0x2f7843['getByInnerView'](_0x1f2739)['refreshVisibility']();},{'priority':'low'}),_0x44f704['_hasTargetInContent']=_0x2e5adf||!!_0x499523),_0x499523||(_0x300f7f['add'](_0x4eb84e),_0x4d2b77['delete'](_0x4eb84e));}if(_0x243c08['isLocal'])for(const _0x141cb4 of _0x300f7f){const {id:_0x37eb29}=he(_0x141cb4),_0x59d51c=_0x1fa192['getCommentThread'](_0x37eb29),_0x1e9781=this['hasMarkerForId'](_0x37eb29);_0x4d2b77['delete'](_0x141cb4),!_0x59d51c||_0x1e9781||_0x59d51c['unlinkedAt']||_0x59d51c['setUnlinkedAt'](new Date());}_0x300f7f['clear']();});}['_getTargetForId'](_0x2c46cd){const _0x4fd902=this['editor'],_0x3493c8=this['getAllMarkersForId'](_0x2c46cd);return et(_0x4fd902['editing'],_0x3493c8);}['_getTextContext'](_0x36a1d2){const _0x407afb=this['getAllMarkersForId'](_0x36a1d2);let _0x46f7a5='',_0x1f1f94=!0x1;for(const _0x3bdf67 of _0x407afb){const _0x13df51=_0x3bdf67['getRange']();for(const _0x485994 of Array['from'](_0x13df51['getItems']()))_0x485994['is']('$textProxy')?(_0x46f7a5&&_0x1f1f94&&(_0x46f7a5+='\x20',_0x1f1f94=!0x1),_0x46f7a5+=_0x485994['data']):_0x1f1f94=!0x0;_0x1f1f94=!0x0;}return _0x46f7a5['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4550c7,_0x1f3119){const _0x2238a2=this['editor'],_0x5cd06c=_0x2238a2['plugins']['get'](o);let _0x4aeac2=_0x5cd06c['getCommentThread'](_0x1f3119);const _0x4bee41=_0x2238a2['config']['get']('collaboration.channelId'),_0x44d095=_0x2238a2['plugins']['get'](P);if(_0x4aeac2&&(_0x4aeac2['unlinkedAt']&&_0x4aeac2['setUnlinkedAt'](null),_0x4aeac2['isAttached']))return _0x4aeac2;return!this['getAllMarkersForId'](_0x1f3119)[0x0]['managedUsingOperations']?_0x2238a2['editing']['view']['once']('render',()=>{if(_0x5cd06c['getCommentThread'](_0x1f3119))return;const _0x154e10=_0x2238a2['plugins']['get'](N);_0x4aeac2=_0x5cd06c['openNewCommentThread']({'channelId':_0x4bee41,'threadId':_0x1f3119,'target':()=>this['_getTargetForId'](_0x1f3119),'context':{'type':'text','value':this['_getTextContext'](_0x1f3119)}});const _0x5162a3=_0x5cd06c['_threadToController']['get'](_0x4aeac2)['view'],_0x83a483=_0x154e10['getByInnerView'](_0x5162a3);_0x83a483&&_0x44d095['registerAnnotation'](_0x83a483);},{'priority':'low'}):_0x5cd06c['fetchCommentThread']({'channelId':_0x4bee41,'threadId':_0x1f3119})['then'](_0x32d435=>{if('destroyed'!==_0x2238a2['state']){if(_0x4aeac2=_0x32d435,_0x4aeac2&&!_0x4aeac2['isAttached']){const _0x5a0468=_0x4aeac2['attachTo'](()=>this['_getTargetForId'](_0x1f3119));_0x44d095['registerAnnotation'](_0x5a0468),_0x4aeac2['isResolved']&&this['_reconvertMarkers'](_0x1f3119);}else{if(!_0x4aeac2){const _0x15678a=this['getAllMarkersForId'](_0x1f3119);_0x2238a2['model']['change'](_0x3983d5=>{for(const _0x17a75d of _0x15678a)_0x3983d5['removeMarker'](_0x17a75d);});}}}}),_0x4aeac2;}['_handleThreadMarker'](_0x3fb0bc,_0x37b8cc){const _0x548ae2=this['_attachMarkerToThread'](_0x3fb0bc,_0x37b8cc);_0x548ae2&&!_0x548ae2['context']&&_0x548ae2['setContext']({'type':'text','value':this['_getTextContext'](_0x37b8cc)});}['_initAriaMarkerChangeAnnouncements'](){const _0x4aaede=this['editor'];ot(_0x4aaede['model'],({left:_0x2c1a54,entered:_0x4e543a})=>{for(const _0x3523e6 of _0x2c1a54)if(dt(_0x3523e6)){_0x4aaede['ui']['ariaLiveAnnouncer']['announce'](S(_0x4aaede['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x19451f of _0x4e543a)if(dt(_0x19451f)){_0x4aaede['ui']['ariaLiveAnnouncer']['announce'](S(_0x4aaede['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x5db1f7)));break;}});}}function ut(_0x1c479a,_0x3294c5){return _0x3294c5?_0x1c479a+':'+_0x3294c5:_0x1c479a;}function he(_0x381851){const _0x2534eb=_0x381851['split'](':');return{'group':_0x2534eb[0x0],'id':_0x2534eb[0x1],'part':_0x2534eb[0x2]};}function ft(_0x2c2e5c,_0x533245){const _0x2fa055=_0x533245['schema'],_0x513643=_0x533245['createRange'](_0x2c2e5c['start']);for(const _0x3ae6f4 of _0x2c2e5c['getWalker']()){const {type:_0x34602b,item:_0x40f863,nextPosition:_0x285f91}=_0x3ae6f4;if('text'===_0x34602b||_0x2fa055['isObject'](_0x40f863)){const _0x37bdb5=_0x533245['createPositionBefore'](_0x40f863);_0x513643['isCollapsed']&&(_0x513643['start']=_0x37bdb5),_0x513643['end']=_0x285f91;}}return _0x513643;}function dt(_0x1bf83e){return'comment'===he(_0x1bf83e['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 _0x407575{['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 _0x39a143=this['editor'],_0x9d9bf5=_0x39a143['plugins']['get'](o),_0x3a48a3=_0x39a143['plugins']['get'](r),_0x3edfb3=_0x39a143['plugins']['get'](N),_0x4df97b=_0x39a143['plugins']['get'](P);_0x39a143['ui']['componentFactory']['add']('comment',()=>{const _0x422f08=this['_createUIButton'](_0x50e81f);return _0x422f08['tooltip']=!0x0,_0x422f08;}),_0x39a143['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x23f078)),_0x4df97b['addSourceCollector'](()=>{const _0x32d552=[];for(const [_0x3e9ff0,_0x291828]of _0x9d9bf5['_threadToController']){const _0x44bd47=_0x3a48a3['getAllMarkersForId'](_0x3e9ff0['id']),_0x225828=_0x44bd47['map'](_0x10296d=>_0x10296d['getRange']());_0x44bd47['length']>0x0&&_0x32d552['push']([_0x291828['view'],_0x225828]);}return _0x32d552;}),this['listenTo'](_0x3edfb3,'change:activeAnnotations',(_0x14917f,_0x3b2c6f,_0x476881)=>{const _0x5d943c=Array['from'](_0x476881)['map'](_0x6f7c0f=>_0x6f7c0f['innerView'])['find'](_0x2f4167=>_0x9d9bf5['_viewToController']['has'](_0x2f4167));if(!_0x5d943c)return void(_0x3a48a3['activeMarker']=null);const _0x50dfb4=_0x9d9bf5['_viewToController']['get'](_0x5d943c)['model']['id'],_0x96db2e='comment:'+_0x50dfb4;_0x50dfb4&&_0x3a48a3['hasMarkerForId'](_0x50dfb4)?_0x3a48a3['activeMarker']=_0x96db2e:_0x3a48a3['activeMarker']&&(_0x3a48a3['activeMarker']=null);}),this['listenTo'](_0x9d9bf5,'removeCommentThread',(_0x404a6c,{threadId:_0x5d4d11,isFromAdapter:_0x552ee2})=>{!_0x552ee2&&_0x39a143['ui']['focusTracker']['isFocused']&&_0x3a48a3['hasMarkerForId'](_0x5d4d11)&&_0x39a143['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x9d9bf5,'addComment',(_0x3b04c5,{threadId:_0x21f242,isFromAdapter:_0x39de0a})=>{if(_0x39de0a||!_0x3a48a3['hasMarkerForId'](_0x21f242)||!_0x9d9bf5['hasCommentThread'](_0x21f242))return;0x1===_0x9d9bf5['getCommentThread'](_0x21f242)['length']&&(_0x39a143['editing']['view']['focus'](),_0x3b04c5['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f0701=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3db0d5;for(const _0xcca4ca in _0x4f0701){const _0x24fc35=_0xcca4ca,_0x2d1bd0=_0x4f0701[_0x24fc35];if('commentsLicenseKeyValid'==_0x2d1bd0||'commentsLicenseKeyInvalid'==_0x2d1bd0||'commentsLicenseKeyExpired'==_0x2d1bd0||'commentsLicenseKeyDomainLimit'==_0x2d1bd0||'commentsLicenseKeyNotAllowed'==_0x2d1bd0||'commentsLicenseKeyEvaluationLimit'==_0x2d1bd0||'commentsLicenseKeyTrialLimit'==_0x2d1bd0||'commentsLicenseKeyDevelopmentLimit'==_0x2d1bd0||'commentsLicenseKeyUsageLimit'==_0x2d1bd0){delete _0x4f0701[_0x24fc35],_0x3db0d5=_0x2d1bd0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x3db0d5&&_0x4f0701['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x3db0d5&&_0x4f0701['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x3db0d5&&_0x4f0701['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x3db0d5&&_0x4f0701['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x3db0d5&&_0x4f0701['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x3db0d5&&_0x4f0701['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x3db0d5&&_0x4f0701['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x3db0d5&&_0x4f0701['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x2d15c5){const _0x2eef95=this['editor'],_0xb54776=new _0x2d15c5(_0x2eef95['locale']),_0x372084=_0x2eef95['commands']['get']('addCommentThread');return _0xb54776['set']({'label':S(_0x2eef95['locale'],'Comment'),'icon':xt}),_0xb54776['bind']('isEnabled')['to'](_0x372084),this['listenTo'](_0xb54776,'execute',()=>_0x372084['execute']()),_0xb54776;}}class s extends _0x407575{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x3bb804){super(_0x3bb804),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x3dc419,_0x4626e0,_0x5ab38c)=>{_0x5ab38c?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x272d75,_0x486818]of this['editor']['commands'])_0x486818['affectsData']&&'addCommentThread'!==_0x272d75&&_0x486818['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x5e424a=this['editor']['editing']['view']['document'];this['listenTo'](_0x5e424a,'cut',_0xc50827=>_0xc50827['stop'](),{'priority':'highest'}),this['listenTo'](_0x5e424a,'clipboardInput',_0x5c7d24=>_0x5c7d24['stop'](),{'priority':'highest'}),this['listenTo'](_0x5e424a,'delete',_0x26c3fd=>_0x26c3fd['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x24d637,_0x12caf5]of this['editor']['commands'])_0x12caf5['affectsData']&&'addCommentThread'!==_0x24d637&&_0x12caf5['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x13541d{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x478373){super(_0x478373),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x369563=this['context']['plugins']['get'](N);this['listenTo'](_0x369563,'_activateAnnotation',(_0x4a7b6a,_0x7e2409)=>{for(const _0x193bcd of this['activeUIs']){const _0x265a16=this['_uis']['get'](_0x193bcd);(0x0,this['_uisData']['get'](_0x193bcd)['filter'])(_0x7e2409)&&_0x265a16['setActiveAnnotation'](_0x7e2409);}}),this['listenTo'](_0x369563,'_deactivateAllAnnotations',()=>{for(const _0x292b99 of this['activeUIs']){this['_uis']['get'](_0x292b99)['setActiveAnnotation'](null);}}),this['listenTo'](_0x369563['_visibleAnnotations'],'add',(_0x54a47a,_0x38d905)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x38d905);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x3a5e23){return this['activeUIs']['has'](_0x3a5e23);}['activate'](_0x505bfa,_0x463401=()=>!0x0){const _0x5a5505=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x505bfa))throw new _0x59aed7('annotationsuis-missing-ui',this,{'uiName':_0x505bfa});this['isActive'](_0x505bfa)&&this['deactivate'](_0x505bfa),this['activeUIs']['add'](_0x505bfa);const _0x4336a5=new x();!function({source:_0x4412a6,target:_0x99ab6c,filter:_0x357719}){for(const _0x59e6c6 of _0x4412a6)_0x357719(_0x59e6c6)&&_0x99ab6c['add'](_0x59e6c6);_0x99ab6c['listenTo'](_0x4412a6,'add',(_0x26fa23,_0x50b4df)=>{_0x357719(_0x50b4df)&&_0x99ab6c['add'](_0x50b4df);}),_0x99ab6c['listenTo'](_0x4412a6,'remove',(_0x1fe413,_0x2f74f6)=>{_0x99ab6c['has'](_0x2f74f6)&&_0x99ab6c['remove'](_0x2f74f6);});}({'source':_0x5a5505['_visibleAnnotations'],'target':_0x4336a5,'filter':_0x463401}),this['_uisData']['set'](_0x505bfa,{'collection':_0x4336a5,'filter':_0x463401});const _0x55b733=this['_uis']['get'](_0x505bfa);_0x55b733['attach'](_0x4336a5),this['listenTo'](_0x55b733,'change:activeAnnotation',(_0x28ef7f,_0x88db25,_0x2397b0,_0x1868b0)=>{_0x1868b0&&_0x5a5505['_removeActiveAnnotation'](_0x1868b0),_0x2397b0&&_0x5a5505['_addActiveAnnotation'](_0x2397b0);});}['deactivate'](_0x57474d){if(this['activeUIs']['delete'](_0x57474d),!this['_uis']['has'](_0x57474d))throw new _0x59aed7('annotationsuis-missing-ui',this,{'uiName':_0x57474d});const _0x33fb03=this['_uis']['get'](_0x57474d);_0x33fb03['detach'](),this['stopListening'](_0x33fb03),this['_uisData']['get'](_0x57474d)['collection']['destroy'](),this['_uisData']['delete'](_0x57474d);}['switchTo'](_0x273436){if(!this['_uis']['has'](_0x273436))throw new _0x59aed7('annotationsuis-missing-ui',this,{'uiName':_0x273436});const _0x311a20=this['context']['plugins']['get'](N),_0x515f5b=Array['from'](_0x311a20['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x273436);const _0x47f234=this['_uis']['get'](_0x273436);_0x47f234['setActiveAnnotation'](_0x515f5b),_0x47f234['_setSelectedAnnotations']&&_0x515f5b&&_0x47f234['_setSelectedAnnotations']([_0x515f5b]);}['deactivateAll'](){for(const _0xff1d46 of this['activeUIs'])this['deactivate'](_0xff1d46);}['register'](_0x164e35,_0x33913c){if(this['_uis']['has'](_0x164e35))throw new _0x59aed7('annotationsuis-register-already-registered');if('function'!=typeof _0x33913c['attach']||'function'!=typeof _0x33913c['detach']||'function'!=typeof _0x33913c['setActiveAnnotation'])throw new _0x59aed7('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x164e35,_0x33913c);}['refilterAnnotations'](){const _0x3e13a5=this['context']['plugins']['get'](N)['collection'],_0xe984ff=new Map(),_0x4ab9d6=Array['from'](this['activeUIs']);for(const _0x398234 of this['activeUIs']){const _0x14a974=this['_uisData']['get'](_0x398234)['collection'];for(const _0x287814 of _0x14a974)_0xe984ff['set'](_0x287814,_0x398234);}for(const _0x5f28ee of _0x3e13a5){const _0x5cf288=_0xe984ff['get'](_0x5f28ee);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5f28ee);const _0x12456f=_0x4ab9d6['find'](_0x2d5b0d=>this['_uisData']['get'](_0x2d5b0d)['filter'](_0x5f28ee));_0x5cf288!==_0x12456f&&(_0x5cf288&&this['_uisData']['get'](_0x5cf288)['collection']['remove'](_0x5f28ee),_0x12456f&&this['_uisData']['get'](_0x12456f)['collection']['add'](_0x5f28ee));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4602f7){const _0x50e509=[];for(const _0x154a3b of this['activeUIs']){(0x0,this['_uisData']['get'](_0x154a3b)['filter'])(_0x4602f7)&&_0x50e509['push'](_0x154a3b);}if(_0x50e509['length']>0x1)throw new _0x59aed7('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x50e509,'annotationType':_0x4602f7['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x1d650f){super(_0x1d650f);const _0x524366=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 _0x3d5a2c(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x524366['to']('class')],'style':{'minHeight':_0x524366['to']('minHeight',_0x262e32=>'number'==typeof _0x262e32?ae(_0x262e32+0xa):null)},'dir':_0x1d650f['uiLanguageDirection'],'role':'application','aria-label':S(_0x1d650f,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x1d650f,'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',_0x37518a=>{this['_updateItemPositionInFocusables'](_0x37518a['source']);}),this['list']['forEach'](_0x3dae94=>{this['focusTracker']['add'](_0x3dae94['element']),this['_updateItemPositionInFocusables'](_0x3dae94);}),this['list']['on']('change',(_0x376de1,_0x19f4d8)=>{for(const _0x112531 of _0x19f4d8['removed'])this['focusTracker']['remove'](_0x112531['element']),this['focusables']['remove'](_0x112531);for(const _0x5322c6 of _0x19f4d8['added'])this['focusTracker']['add'](_0x5322c6['element']),this['_updateItemPositionInFocusables'](_0x5322c6);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x4a048d){const _0x3bd575=this['focusables']['getIndex'](_0x4a048d);let _0x5f1c9a,_0x3a4154;for(const _0x25a3ab of this['focusables'])if(_0x4a048d['top']<_0x25a3ab['top']){_0x5f1c9a=_0x25a3ab;break;}if(_0x3a4154=_0x5f1c9a?this['focusables']['getIndex'](_0x5f1c9a):this['focusables']['length'],-0x1!==_0x3bd575){if(_0x3bd575===_0x3a4154-0x1)return;this['focusables']['remove'](_0x4a048d),_0x3a4154=_0x5f1c9a?this['focusables']['getIndex'](_0x5f1c9a):this['focusables']['length'];}this['focusables']['add'](_0x4a048d,_0x3a4154);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x2d4901){super(_0x2d4901),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x475d41,_0x214b3a)=>_0x475d41+_0x214b3a),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x51a48b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x51a48b['to']('isAnimationDisabled',_0x466268=>_0x466268?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x51a48b['to']('top',_0x5ea6ca=>qt(_0x5ea6ca))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x2ea484=this['element']['clientHeight'];_0x2ea484&&(this['height']=_0x2ea484);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x13541d{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5da9eb){super(_0x5da9eb),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 _0x47f431=this['context']['config']['get']('sidebar.container');_0x47f431&&this['setContainer'](_0x47f431);}['setContainer'](_0x4a878e){if(!y(_0x4a878e))throw new _0x59aed7('sidebar-setcontainer-invalid-element');this['container']=_0x4a878e;}['_attachToContainer']({viewClass:_0x546445='',spaceBetweenItems:_0x48fce6=0x19}={}){if(!y(this['container']))throw new _0x59aed7('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x546445,this['_spaceBetweenItems']=_0x48fce6;}['rearrange']({removedAnnotation:_0x1bd9d0,previousAnnotation:_0x1096ba,nextAnnotation:_0x194c99}){const _0x9b9f24=this['getSidebarItemView'](_0x1bd9d0);this['view']['list']['remove'](_0x9b9f24),this['_destroySidebarItemView'](_0x1bd9d0),_0x1096ba&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1096ba)),_0x194c99&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x194c99)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x43fee3,activatedAnnotation:_0x41c555,disableAnimationOnActivatedAnnotation:_0x39516c}){if(this['_activeAnnotation']=_0x41c555,_0x43fee3){_0x43fee3['isActive']=!0x1;const _0xc5684f=this['getSidebarItemView'](_0x43fee3);_0xc5684f&&_0x39516c&&(_0xc5684f['isAnimationDisabled']=!0x1);}if(_0x41c555){const _0x360321=this['getSidebarItemView'](_0x41c555);_0x360321&&(_0x41c555['isActive']=!0x0,_0x39516c&&(_0x360321['isAnimationDisabled']=!0x0,_0x360321['top']+=0x1),this['_alignToTargetRect'](_0x360321));}}['_detachFromContainer'](_0x5ad807){if(this['view']['element']['remove'](),_0x5ad807){for(const _0x223865 of _0x5ad807)this['_destroySidebarItemView'](_0x223865);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x82c26b,_0x56307e){_0x56307e||(_0x56307e=_0x82c26b['view']);const _0x34d60a=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x34d60a,_0x82c26b),this['_annotationToSidebarItemView']['set'](_0x82c26b,_0x34d60a),_0x34d60a['content']['add'](_0x56307e),this['listenTo'](_0x82c26b['view'],'change:targetRect',(_0x4cc0a6,_0x1047ef,_0x427127)=>{const _0x2247c9=this['_getTargetTop'](_0x82c26b,_0x427127);_0x34d60a['_targetTop']!=_0x2247c9&&(_0x34d60a['_targetTop']=_0x2247c9,this['_setItemTop'](_0x34d60a,_0x2247c9));}),this['listenTo'](_0x34d60a,'change:top',()=>{this['_recalculate'](_0x34d60a,'top');}),this['listenTo'](_0x34d60a,'change:bottom',()=>{this['_recalculate'](_0x34d60a,'bottom');}),this['_alignToTargetRect'](_0x34d60a);const _0x2c4179=this['_getItemBefore'](_0x34d60a);if(_0x2c4179)this['_alignAfterItem'](_0x2c4179,_0x34d60a)||this['_alignToTargetRect'](_0x34d60a);else this['_alignToTargetRect'](_0x34d60a);return this['_updateLastItem'](),this['view']['list']['add'](_0x34d60a),_0x34d60a;}['_alignForTopChange'](_0x162741){if(!_0x162741['content']['length'])return;const _0x123fa4=this['_getItemBefore'](_0x162741);if(!_0x123fa4)return;const _0x5b4c65=this['_sidebarItemViewToAnnotation']['get'](_0x123fa4),_0x16c77e=this['_activeAnnotation'];_0x16c77e&&_0x16c77e===_0x5b4c65?this['_alignAfterItem'](_0x123fa4,_0x162741):this['_alignBeforeItem'](_0x162741,_0x123fa4);}['_alignForBottomChange'](_0x561343){if(!_0x561343['content']['length'])return;const _0x33413d=this['_getItemAfter'](_0x561343);if(!_0x33413d)return;const _0x4d9634=this['_sidebarItemViewToAnnotation']['get'](_0x33413d),_0xfa71bf=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x1e4e60=this['_activeAnnotation'];_0x1e4e60&&_0x1e4e60===_0x4d9634&&_0xfa71bf?(this['_alignBeforeItem'](_0x33413d,_0x561343),this['_alignAfterItem'](_0x561343,_0x33413d)):_0x1e4e60&&_0x1e4e60===_0x4d9634?this['_alignBeforeItem'](_0x33413d,_0x561343):this['_alignAfterItem'](_0x561343,_0x33413d);}['_recalculate'](_0x307d6f,_0x39709e){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x634ff7,changedProp:_0x1f6d3d}of this['_recalculateBuffer'])'top'===_0x1f6d3d?this['_alignForTopChange'](_0x634ff7):this['_alignForBottomChange'](_0x634ff7);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x307d6f,'changedProp':_0x39709e});}['getSidebarItemView'](_0x9c8157){return this['_annotationToSidebarItemView']['get'](_0x9c8157);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x5051f8){const _0x442a3f=this['getSidebarItemView'](_0x5051f8);this['stopListening'](_0x442a3f),this['stopListening'](_0x5051f8['view']),_0x442a3f['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x5051f8),this['_sidebarItemViewToAnnotation']['delete'](_0x442a3f);}['_createSidebarView'](){const _0x36a217=new V(this['context']['locale']);return _0x36a217['render'](),this['on']('change:_lastItem',(_0x26dda2,_0x20c004,_0x2de70f,_0x1927f8)=>{_0x1927f8&&_0x36a217['unbind']('minHeight'),_0x2de70f?_0x36a217['bind']('minHeight')['to'](_0x2de70f,'bottom'):_0x36a217['minHeight']=null;}),_0x36a217;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x2eb64d){const _0x2dba83=this['_sidebarItemViewToAnnotation']['get'](_0x2eb64d),_0x32b922=_0x2dba83&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2dba83)-0x1);return _0x32b922&&this['getSidebarItemView'](_0x32b922)||null;}['_getItemAfter'](_0x1beb4c){const _0x2529b5=this['_sidebarItemViewToAnnotation']['get'](_0x1beb4c),_0x360b85=_0x2529b5&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2529b5)+0x1);return _0x360b85&&this['getSidebarItemView'](_0x360b85)||null;}['_alignBeforeItem'](_0x7a778c,_0x18c068){_0x7a778c['updateHeight']();const _0x2066a1=R(_0x18c068['bottom']+this['_spaceBetweenItems'],_0x7a778c['top']);return!!_0x2066a1&&(this['_setItemTop'](_0x18c068,_0x18c068['top']-_0x2066a1),!0x0);}['_alignAfterItem'](_0x38e8e6,_0x4b0c1e){_0x38e8e6['updateHeight']();const _0x3ef605=R(_0x38e8e6['bottom']+this['_spaceBetweenItems'],_0x4b0c1e['top']);return!!_0x3ef605&&(this['_setItemTop'](_0x4b0c1e,_0x4b0c1e['top']+_0x3ef605,!0x1),!0x0);}['_alignToTargetRect'](_0x1c3e68){const _0x2030a0=this['_sidebarItemViewToAnnotation']['get'](_0x1c3e68);if(!_0x2030a0||!_0x2030a0['target']||!_0x2030a0['targetRect'])return;const _0x3ac824=this['_getTargetTop'](_0x2030a0,_0x2030a0['targetRect']);this['_setItemTop'](_0x1c3e68,_0x3ac824);}['_getTargetTop'](_0x47b2e6,_0x244405){if(null===_0x244405)return 0x0;if(_0x47b2e6['target']instanceof _0x2c8594)return _0x244405['top'];{const _0x14fb82=new _0x2c8594(this['view']['element'])['top'];return _0x244405['top']-_0x14fb82;}}['_setItemTop'](_0x47437b,_0x4f29c8,_0x4b9b92=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x4b9b92&&(_0x4f29c8=Math['max'](_0x4f29c8,this['_getMaxAvailableTop'](_0x47437b))),_0x47437b['top']=_0x4f29c8;}['_getMaxAvailableTop'](_0xd72853){let _0x3d9d73=this['_getItemBefore'](_0xd72853),_0x297fbc=0x0;for(;_0x3d9d73;)_0x3d9d73['updateHeight'](),_0x297fbc+=this['_spaceBetweenItems']+_0x3d9d73['height'],_0x3d9d73=this['_getItemBefore'](_0x3d9d73);return _0x297fbc;}}function R(_0x1552b8,_0x2a083d){return Math['max'](_0x1552b8-_0x2a083d,0x0);}function y(_0x3b94fc){return null!==_0x3b94fc&&'object'==typeof _0x3b94fc&&0x1===_0x3b94fc['nodeType'];}class e extends _0x13541d{['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(_0x44f44a){super(_0x44f44a),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x42f184(),this['_refreshPositioningDebounced']=_0x31e186(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x2b09a6=this['context']['plugins']['get'](M),_0x3fdefc=this['context']['plugins']['get'](z);_0x2b09a6['register']('wideSidebar',this),_0x3fdefc['container']&&_0x2b09a6['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x4cc959){if(_0x4cc959===this['activeAnnotation'])return;const _0x579412=this['context']['plugins']['get'](z);_0x579412['_activeAnnotation']=_0x4cc959;const _0x5082d7=this['activeAnnotation'];this['activeAnnotation']=_0x4cc959,_0x579412['refresh']({'blurredAnnotation':_0x5082d7,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x23116e){this['annotations']=_0x23116e;const _0x39f666=this['context']['plugins']['get'](z);if(_0x39f666['_annotations']=_0x23116e,this['isAttached'])throw new _0x59aed7('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x39f666,'set:container',()=>{this['detach'](),this['listenTo'](_0x39f666,'change:container',_0x4523bb=>{_0x4523bb['off'](),this['attach'](_0x23116e);});}),_0x39f666['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x2caa55=_0x1d2701=>{_0x1d2701['updateTargetRect'](),_0x39f666['addAnnotation'](_0x1d2701);};for(const _0x5346e8 of _0x23116e)_0x2caa55(_0x5346e8);this['listenTo'](_0x23116e,'add',(_0x4fefac,_0x349ac4)=>{_0x2caa55(_0x349ac4);}),this['listenTo'](_0x23116e,'remove',(_0x457096,_0x5b931e,_0x14e38f)=>{_0x39f666['rearrange']({'removedAnnotation':_0x5b931e,'previousAnnotation':_0x23116e['get'](_0x14e38f-0x1),'nextAnnotation':_0x23116e['get'](_0x14e38f+0x1)}),_0x5b931e===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x23116e,'focus',(_0x24f00c,_0x316a54)=>{this['setActiveAnnotation'](_0x316a54);}),this['listenTo'](_0x23116e,'blur',()=>{this['setActiveAnnotation'](null);});const _0x349bc4=this['context']instanceof _0x578923?this['context']['editors']:new _0x42f184([this['context']]);for(const _0x5d5e1d of _0x349bc4)this['_integrateWithEditorAnnotations'](_0x5d5e1d);this['listenTo'](_0x349bc4,'add',(_0x42aabd,_0xc4ac55)=>{this['listenTo'](_0xc4ac55,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xc4ac55);});}),this['listenTo'](_0x349bc4,'remove',(_0x199a23,_0x56629c)=>{_0x56629c['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x56629c['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x59aed7('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2cbb3d=this['context']['plugins']['get'](z);_0x2cbb3d['_detachFromContainer'](this['annotations']),this['stopListening'](_0x2cbb3d),this['stopListening'](this['annotations']),this['context']instanceof _0x578923&&this['stopListening'](this['context']['editors']);for(const _0x618d78 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x618d78);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x218f08){if(!_0x218f08['plugins']['has']('EditorAnnotations'))return;const _0x587f01=_0x218f08['plugins']['get']('EditorAnnotations'),_0x5a7c86=()=>{const _0x47433d=_0x587f01['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x47433d[0x0]||null);};this['listenTo'](_0x587f01,'refresh',_0x5a7c86),this['listenTo'](_0x587f01,'blur',(_0x49f02f,{isAnnotationTracked:_0x56ca0b})=>{this['activeAnnotation']&&_0x56ca0b(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x587f01,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x561344=>{_0x587f01['hasDomSelection']()&&(_0x5a7c86(),_0x561344['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x587f01);}['_destroyEditorAnnotationsIntegration'](_0xa5db9c){this['stopListening'](_0xa5db9c),this['_editorAnnotations']['remove'](_0xa5db9c);}}class D extends _0x50e81f{['counterView'];constructor(_0x32c093){super(_0x32c093);const _0x1668ae=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x389b97,_0x30f46a)=>_0x389b97?'...':_0x30f46a['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',_0x1668ae['to']('annotationType',_0x1ea28a=>'ck-annotation-counter__badge--'+_0x1ea28a),_0x1668ae['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1668ae['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x13541d{['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(_0x5c988f){super(_0x5c988f),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0xd7308b),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x42f184(),this['_refreshPositioningDebounced']=_0x31e186(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x89f2ad(this['context']['locale']),this['balloonPanelView']=new _0x4ead26(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x2676e7){this['annotations']=_0x2676e7;const _0x462b3d=this['context']['plugins']['get'](z),_0x577679=this['balloonPanelView'];if(_0x462b3d['_annotations']=_0x2676e7,this['isAttached'])throw new _0x59aed7('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x462b3d,'set:container',()=>{this['detach'](),this['listenTo'](_0x462b3d,'change:container',_0x624f71=>{_0x624f71['off'](),this['attach'](_0x2676e7);});}),_0x462b3d['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x273829=_0x3455ff=>{const _0x3d800a=new D(this['context']['locale']);_0x462b3d['addAnnotation'](_0x3455ff,_0x3d800a),this['_annotationToNarrowView']['set'](_0x3455ff,_0x3d800a),_0x3d800a['bind']('isDirty','annotationType','number')['to'](_0x3455ff['view'],'isDirty','type','length'),_0x3d800a['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x577679['content']['first']!==_0x3455ff['view']?(this['_showBalloon'](_0x3455ff),_0x3455ff['view']['element']['focus'](),this['setActiveAnnotation'](_0x3455ff)):this['setActiveAnnotation'](null);});};for(const _0x146f1d of _0x2676e7)_0x273829(_0x146f1d);this['listenTo'](_0x2676e7,'add',(_0x2fc2ba,_0x430156)=>{_0x273829(_0x430156);}),this['listenTo'](_0x2676e7,'remove',(_0x3cfa84,_0x72aea0,_0x5644b2)=>{this['_annotationToNarrowView']['get'](_0x72aea0)['destroy'](),this['_annotationToNarrowView']['delete'](_0x72aea0),_0x462b3d['rearrange']({'removedAnnotation':_0x72aea0,'previousAnnotation':_0x2676e7['get'](_0x5644b2-0x1),'nextAnnotation':_0x2676e7['get'](_0x5644b2+0x1)}),_0x72aea0===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x2676e7,'focus',(_0x2c5691,_0x16add9)=>{this['setActiveAnnotation'](_0x16add9);}),this['listenTo'](_0x2676e7,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x1d2b44,_0x41f6c8)=>{_0x41f6c8['keyCode']===_0x91a8de['esc']&&_0x577679['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x577679['content']['first']),this['_hideBalloon'](),_0x41f6c8['stopPropagation'](),_0x41f6c8['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x26f485,_0x427545)=>{const _0x2b4b27=_0x427545['target'];_0x577679['isVisible']&&_0x577679['element']['contains'](_0x2b4b27)||_0x462b3d['view']['element']['contains'](_0x2b4b27)||_0x26f485['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x3544d8=>_0x3544d8['contains'](_0x2b4b27))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1ac150=this['context']instanceof _0x578923?this['context']['editors']:new _0x42f184([this['context']]);for(const _0x50de3f of _0x1ac150)this['_integrateWithEditorAnnotations'](_0x50de3f);this['listenTo'](_0x1ac150,'add',(_0x4deb64,_0x164c22)=>{this['listenTo'](_0x164c22,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x164c22);});}),this['listenTo'](_0x1ac150,'remove',(_0x19b54e,_0x852810)=>{_0x852810['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x852810['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x557d10){if(_0x557d10===this['activeAnnotation'])return;const _0x48664a=this['context']['plugins']['get'](z);if(_0x48664a['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x557d10,'disableAnimationOnActivatedAnnotation':!0x0}),_0x557d10)_0x48664a['getSidebarItemView'](_0x557d10)?this['_showBalloon'](_0x557d10):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x557d10;}['detach'](){if(!this['isAttached'])throw new _0x59aed7('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x255bfd=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x456274=>_0x456274['destroy']()),this['_annotationToNarrowView']['clear'](),_0x255bfd['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x578923&&this['stopListening'](this['context']['editors']);for(const _0x5f3814 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5f3814);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'](_0x236fe1){if(!_0x236fe1['plugins']['has']('EditorAnnotations'))return;const _0xdd4a8a=_0x236fe1['plugins']['get']('EditorAnnotations'),_0xb768f3=this['context']['plugins']['get'](z),_0x4edb05=this['annotations'],_0x4a2322=this['balloonPanelView'],_0x56d11a=()=>{const _0x598d78=_0xdd4a8a['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x598d78),this['setActiveAnnotation'](_0x598d78[0x0]||null);};this['listenTo'](_0xdd4a8a,'refresh',_0x56d11a),this['listenTo'](_0xdd4a8a,'blur',(_0x1e72c6,{isAnnotationTracked:_0x2aa4b8})=>{this['activeAnnotation']&&_0x2aa4b8(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0xdd4a8a,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x4edb05,'blur',_0x19be88=>{_0xdd4a8a['hasDomSelection']()&&_0x19be88['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x576cb6,_0x145b4b)=>{const _0x198631=_0x145b4b['target'];_0x4a2322['isVisible']&&_0x4a2322['element']['contains'](_0x198631)||_0xb768f3['view']['element']['contains'](_0x198631)||this['activeAnnotation']&&_0xdd4a8a['hasDomSelection']()&&(_0x56d11a(),_0x576cb6['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0xdd4a8a);}['_destroyEditorAnnotationsIntegration'](_0x50f543){_0x50f543&&(this['stopListening'](_0x50f543),this['_editorAnnotations']['remove'](_0x50f543));}['_setSelectedAnnotations'](_0x557659){for(const _0x477ae0 of this['_selectedAnnotations'])_0x557659['includes'](_0x477ae0)||this['_manuallyClosedAnnotationViews']['delete'](_0x477ae0['view']);this['_selectedAnnotations']=_0x557659;}['_refreshPositioning'](){const _0x289ee3=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x289ee3['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x598475){if(this['_manuallyClosedAnnotationViews']['has'](_0x598475['view']))return;const _0x1dbeaa=this['balloonPanelView']['content']['first'];_0x1dbeaa!==_0x598475['view']?(_0x1dbeaa&&this['_detachListeners'](_0x1dbeaa),this['_attachListeners'](_0x598475['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x598475['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x473c44=this['balloonPanelView']['content']['first'],_0x23e08e=_0x473c44&&this['annotations']['getByView'](_0x473c44);if(!_0x23e08e||!this['_annotationToNarrowView']['has'](_0x23e08e))return;const _0x59e869=this['_annotationToNarrowView']['get'](_0x23e08e)['element'],_0x13b58c=(function(){const _0x24f605=_0x4ead26['defaultPositions'];return[_0x24f605['southArrowNorthEast'],_0x24f605['northArrowSouthEast'],_0x24f605['southArrowNorth'],_0x24f605['northArrowSouth'],_0x24f605['southArrowNorthWest'],_0x24f605['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x59e869,'positions':_0x13b58c});}['_hideBalloon'](){const _0x5f65ca=this['balloonPanelView'],_0x5bf5e2=_0x5f65ca['content']['first'];_0x5bf5e2&&(this['_detachListeners'](_0x5bf5e2),_0x5f65ca['unpin'](),_0x5f65ca['content']['clear']());}['_attachListeners'](_0x2a5ef0){this['listenTo'](_0x2a5ef0,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x2a5ef0,'Esc',(_0x467b1c,_0x15104a)=>{this['_manuallyClosedAnnotationViews']['add'](_0x2a5ef0),this['_hideBalloon'](),_0x15104a();});}['_detachListeners'](_0x59ba49){this['stopListening'](_0x59ba49);}}class c extends _0x407575{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x11b9fc,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a0689){super(_0x4a0689),_0x4a0689['editing']['view']['addObserver'](_0x35a9d6),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x4a0689['plugins']['get'](_0x11b9fc),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x59025e=this['editor']['plugins']['get'](M);_0x59025e['context']===this['editor']&&(_0x59025e['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x49b2f4,_0x409c71)=>{const _0x148923=this['_balloon'];if(this['isAttached']&&_0x148923['visibleView']){const _0x291160=this['annotations']['getByView'](_0x148923['visibleView']);_0x291160&&this['_closeAnnotation'](_0x291160),_0x409c71();}}));}['afterInit'](){const _0x586b96=this['editor']['plugins']['get'](M);_0x586b96['context']===this['editor']&&(_0x586b96['hasActive']()||_0x586b96['switchTo']('inline'));}['setActiveAnnotation'](_0x4c7cbe){_0x4c7cbe!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x4c7cbe&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x4c7cbe)&&this['_addAnnotationToBalloon'](_0x4c7cbe,!0x0),_0x4c7cbe['isActive']=!0x0),_0x4c7cbe||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x4c7cbe);}['attach'](_0x9a4477){this['annotations']=_0x9a4477;const _0x1d5d5c=this['editor']['plugins']['get'](M),_0x4c28af=this['_balloon'];if(this['isAttached'])throw new _0x59aed7('inlineannotations-attach-already-attached',this);if(_0x1d5d5c['context']!==this['editor'])throw new _0x59aed7('inlineannotations-not-allowed-with-context',this);const _0x2c7468=this['editor']['plugins']['get'](P);this['listenTo'](_0x2c7468,'refresh',()=>{const _0x28f640=_0x2c7468['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x54175f,_0x42a177;!this['_forceRefresh']&&(_0x54175f=_0x28f640,_0x42a177=this['_selectedAnnotations'],_0x54175f['length']===_0x42a177['length']&&_0x54175f['every'](_0x340d0d=>_0x42a177['includes'](_0x340d0d)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x28f640),this['setActiveAnnotation'](_0x28f640[0x0]||null));}),this['listenTo'](_0x2c7468,'blur',(_0x591f73,{isAnnotationTracked:_0x1189b5})=>{this['activeAnnotation']&&_0x1189b5(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x22955d,_0x2aaa5d,_0x515144)=>{_0x515144||this['setActiveAnnotation'](null);}),this['listenTo'](_0x9a4477,'remove',(_0x2496c9,_0x57f0b8)=>{this['_removeAnnotationFromBalloon'](_0x57f0b8),_0x57f0b8===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4c28af,'change:visibleView',(_0x4a2ac2,_0x57eecb,_0x2a9648,_0x5187e9)=>{_0x5187e9&&this['stopListening'](_0x5187e9);const _0x1c3380=_0x9a4477['getByView'](_0x2a9648);_0x2a9648&&_0x1c3380&&(this['listenTo'](_0x2a9648,'change:height',()=>{_0x4c28af['updatePosition']();}),this['listenTo'](_0x2a9648,'Esc',()=>{this['_closeAnnotation'](_0x1c3380),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x1c3380&&this['setActiveAnnotation'](_0x1c3380));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x4c28af['visibleView']&&(_0x9a4477['getByView'](_0x4c28af['visibleView'])&&_0x4c28af['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 _0x59aed7('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x392798 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x392798);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x32e67c){for(const _0x4655d6 of this['_selectedAnnotations'])_0x32e67c['includes'](_0x4655d6)||this['_manuallyClosed']['delete'](_0x4655d6);for(const _0xa1e834 of this['annotations'])_0x32e67c['includes'](_0xa1e834)||this['_removeAnnotationFromBalloon'](_0xa1e834);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x253287 of _0x32e67c)this['_addAnnotationToBalloon'](_0x253287);}this['_selectedAnnotations']=_0x32e67c;}['_addAnnotationToBalloon'](_0x27c468,_0x381e7a=!0x1){this['_manuallyClosed']['has'](_0x27c468)||(this['_addedAnnotations']['has'](_0x27c468)||this['_balloon']['hasView'](_0x27c468['view'])||(this['_addedAnnotations']['add'](_0x27c468),this['_balloon']['add']({'stackId':_0x27c468['view']['id'],'view':_0x27c468['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x27c468)}})),_0x381e7a&&this['_balloon']['showStack'](_0x27c468['view']['id']));}['_getBalloonTargetForAnnotation'](_0x5fe276){const _0x2ee4e3=_0x5fe276['target'],_0x6af60e=this['editor']['editing']['view'],_0x2bb6a5=_0x6af60e['document']['selection']['getFirstRange'](),_0x52e864=_0x6af60e['domConverter']['viewRangeToDom'](_0x2bb6a5);if(_0x52e864['collapse'](!0x0),_0x2ee4e3){if(_0x2ee4e3 instanceof _0x2c8594)return _0x2ee4e3;let _0x680a5=[];for(const _0x23de15 of _0x2ee4e3)_0x680a5['push'](...(_0x353a0f=_0x23de15['getClientRects'](),Array['from'](_0x353a0f)['map'](DOMRect['fromRect'])));_0x680a5=function(_0x4f0389){const _0x4bd095=[];let _0x27b5c5=_0x4f0389[0x0];for(let _0x1913d0=0x1;_0x1913d0<_0x4f0389['length'];_0x1913d0++)b(_0x27b5c5,_0x4f0389[_0x1913d0])?_0x27b5c5['width']+=_0x4f0389[_0x1913d0]['width']:(_0x4bd095['push'](_0x27b5c5),_0x27b5c5=_0x4f0389[_0x1913d0]);return _0x4bd095['push'](_0x27b5c5),_0x4bd095;}(_0x680a5);const _0x34e2c4=_0x52e864['getBoundingClientRect']();return _0x680a5['find'](_0x5edeac=>_0x5edeac['top']<=_0x34e2c4['top']&&_0x5edeac['bottom']>=_0x34e2c4['bottom']&&_0x5edeac['left']<=_0x34e2c4['left']&&_0x5edeac['right']>=_0x34e2c4['right'])||_0x680a5[0x0];}var _0x353a0f;return _0x5fe276['targetRect']||_0x52e864;}['_removeAnnotationFromBalloon'](_0x774d03){this['_addedAnnotations']['has'](_0x774d03)&&this['_balloon']['hasView'](_0x774d03['view'])&&(this['_addedAnnotations']['delete'](_0x774d03),this['_balloon']['remove'](_0x774d03['view']));}['_closeAnnotation'](_0x4ac76b){this['_manuallyClosed']['add'](_0x4ac76b),this['_removeAnnotationFromBalloon'](_0x4ac76b);}}function b(_0x4cee02,_0x2c9dcc){return _0x4cee02['top']===_0x2c9dcc['top']&&_0x4cee02['bottom']===_0x2c9dcc['bottom']&&_0x4cee02['right']===_0x2c9dcc['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(_0x3833f5,_0x25092d){super(_0x3833f5),this['set']('isEmpty',!_0x25092d['length']),this['focusTracker']=new _0x3d5a2c(),this['_annotationViews']=_0x25092d,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x25092d,'focusTracker':this['focusTracker']}),this['listenTo'](_0x25092d,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x25092d,'remove',(_0xd6f4e8,_0x4f9985)=>{_0x4f9985['isActive']&&this['focus'](),_0x25092d['length']||(this['isEmpty']=!0x0);});const _0x247a30=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x3833f5,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x25092d},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x247a30['if']('isEmpty','ck-hidden',_0x59e1f8=>!_0x59e1f8)]},'children':[{'text':S(_0x3833f5,'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 _0xcc1d47 of this['_annotationViews'])this['focusTracker']['add'](_0xcc1d47['element']);this['_annotationViews']['on']('change',(_0x4b5521,{added:_0x11d317,removed:_0x1ab351})=>{for(const _0x525db2 of _0x11d317)this['focusTracker']['add'](_0x525db2['element']);for(const _0x111063 of _0x1ab351)this['focusTracker']['remove'](_0x111063['element']);});}}class f extends _0x13541d{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x394314){super(_0x394314),this['archivedThreads']=new _0x42f184();}['init'](){const _0x3c5db0=this['context'],_0x46c15f=_0x3c5db0['plugins']['get'](o),_0x539fa6=_0x3c5db0['plugins']['get'](N);this['listenTo'](_0x46c15f,'addCommentThread',(_0x59354b,{threadId:_0x44321b})=>{const _0x122841=_0x46c15f['getCommentThread'](_0x44321b);_0x122841['archivedAt']&&this['archivedThreads']['add'](_0x122841,this['_calculatePosition'](_0x122841['archivedAt'])),this['listenTo'](_0x122841,'change:archivedAt',(_0x42b943,_0x3070ea,_0x414406)=>{_0x414406?this['archivedThreads']['has'](_0x122841)||this['archivedThreads']['add'](_0x122841,this['_calculatePosition'](_0x122841['archivedAt'])):this['archivedThreads']['has'](_0x122841)&&this['archivedThreads']['remove'](_0x122841);});}),this['listenTo'](_0x46c15f,'removeCommentThread',(_0x42edaf,{threadId:_0x46f1d1})=>{const _0xeb236b=_0x46c15f['getCommentThread'](_0x46f1d1);this['stopListening'](_0xeb236b),this['archivedThreads']['has'](_0xeb236b)&&this['archivedThreads']['remove'](_0xeb236b);},{'priority':'highest'}),this['listenTo'](_0x539fa6['collection'],'focus',(_0x293663,_0x46f21b)=>{_0x46f21b['isVisible']||(_0x46f21b['isActive']=!0x0,_0x539fa6['activate'](_0x46f21b));});}['_calculatePosition'](_0x57833a){const _0x79968c=[...this['archivedThreads']]['findIndex'](_0x478299=>_0x478299['archivedAt']<_0x57833a);return _0x79968c>-0x1?_0x79968c:this['archivedThreads']['length'];}}class a extends _0x407575{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x59526a];}constructor(_0x2e5a45){super(_0x2e5a45),this['annotationViews']=new _0x184ae2(),this['_pendingThreads']=[];}['init'](){const _0x192a85=this['editor'],_0x227f04=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x192a85['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x50e81f,!0x0)),_0x192a85['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x491da1=this['_createCommentsArchiveButton'](_0x23f078);return _0x491da1['set']({'role':'menuitemcheckbox'}),_0x491da1;});const _0x389ce2=_0x192a85['plugins']['get'](f),_0x2fcd47=_0x192a85['plugins']['get']('Annotations'),_0x5ed112=_0x192a85['plugins']['get']('CommentsRepository');this['listenTo'](_0x389ce2['archivedThreads'],'add',(_0x58145c,_0x367def)=>{const _0x325df7=_0x192a85['config']['get']('collaboration.channelId');if(!_0x325df7||_0x367def['channelId']===_0x325df7){const _0x243510=_0x5ed112['_threadToController']['get'](_0x367def);if(!_0x243510)return void this['_pendingThreads']['push'](_0x367def);const _0x67e811=this['_calculatePosition'](_0x367def['archivedAt']),_0x4f7f25=_0x2fcd47['getByInnerView'](_0x243510['view']);_0x4f7f25['isVisible']&&_0x2fcd47['_visibleAnnotations']['remove'](_0x4f7f25),this['annotationViews']['add'](_0x4f7f25['view'],_0x67e811);}}),this['listenTo'](_0x2fcd47['collection'],'add',(_0xb5017c,_0x1cdf58)=>{const _0x49b89e=this['_pendingThreads']['find'](_0x388e09=>{const _0xf084a4=_0x5ed112['_threadToController']['get'](_0x388e09);return _0xf084a4&&_0x1cdf58['innerView']===_0xf084a4['view'];});if(_0x49b89e){const _0x3dc036=this['_calculatePosition'](_0x49b89e['archivedAt']);this['annotationViews']['add'](_0x1cdf58['view'],_0x3dc036),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x49b89e),0x1);}}),this['listenTo'](_0x389ce2['archivedThreads'],'remove',(_0x3c8f01,_0x31083c)=>{const _0x1efe44=_0x192a85['config']['get']('collaboration.channelId');if(!_0x1efe44||_0x31083c['channelId']===_0x1efe44){const _0x1a7d10=_0x5ed112['_threadToController']['get'](_0x31083c),_0x421254=_0x2fcd47['getByInnerView'](_0x1a7d10['view']);this['annotationViews']['remove'](_0x421254['view']),this['stopListening'](_0x421254['focusableElements']);}}),this['listenTo'](_0x2fcd47['collection'],'add',(_0x41ab8d,_0x3ace02)=>{this['listenTo'](_0x3ace02,'escape',_0x227f04);}),this['listenTo'](_0x2fcd47['collection'],'remove',(_0x528f0a,_0x4be068)=>{this['stopListening'](_0x4be068,'escape',_0x227f04);});}['_calculatePosition'](_0x971b55){const _0x17eae3=this['editor']['config']['get']('collaboration.channelId'),_0x51c2b=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x39f5fb=>_0x39f5fb['channelId']===_0x17eae3)['findIndex'](_0x56a37e=>_0x56a37e['archivedAt']<_0x971b55);return _0x51c2b<0x0||_0x51c2b>this['annotationViews']['length']?this['annotationViews']['length']:_0x51c2b-0x1;}['_toggleDialog'](){const _0x137506=this['editor'],_0x4546c1=_0x137506['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x137506['locale'],this['annotationViews'])),'commentsArchive'===_0x4546c1['id']?_0x4546c1['hide']():_0x4546c1['show']({'id':'commentsArchive','title':S(_0x137506['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x30b3b0['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x518b15,_0x8f8aa2=!0x1){const _0x3bc5d8=this['editor']['locale'],_0x3575bc=this['editor']['plugins']['get']('Dialog'),_0x395416=new _0x518b15(_0x3bc5d8);return _0x395416['bind']('isEnabled')['to'](this,'isEnabled'),_0x395416['bind']('isOn')['to'](_0x3575bc,'id',_0x14bef7=>'commentsArchive'===_0x14bef7),_0x395416['set']({'label':S(_0x3bc5d8,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x8f8aa2&&(_0x395416['tooltip']=!0x0),this['listenTo'](_0x395416,'execute',()=>this['_toggleDialog']()),_0x395416;}['_hideDialogOnAnnotationEscape']=_0x47a93d=>{const _0x3e8762=_0x47a93d['source'];if(!this['annotationViews']['has'](_0x3e8762['view']))return;const _0xf27ed1=this['editor']['plugins']['get']('Dialog');_0xf27ed1['isOpen']&&'commentsArchive'===_0xf27ed1['id']&&(_0xf27ed1['hide'](),_0x47a93d['stop']());};}class p extends _0x407575{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};
|