@ckeditor/ckeditor5-document-outline 48.8.1-alpha.1 → 48.8.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x374dbe,Command as _0x7298e1}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x3afa3f,throttle as _0xd5e749}from'es-toolkit/compat';import{ModelText as _0x2a296c,ModelTreeWalker as _0x5086d5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x167300,diffToChanges as _0x428b8c,scrollAncestorsToShowTarget as _0x5a41e5,CKEditorError as _0x218f8c,global as _0xf344f5,Rect as _0x2e3d51,uid as _0x4db16a,priorities as _0x52f7b6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x173168,ButtonView as _0x1ed391,MenuBarMenuListItemButtonView as _0x142066}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x1a4fae,toWidget as _0x57aa64}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x3c8de8}from'@ckeditor/ckeditor5-icons/dist/index.js';function I(_0x3b22a2){let _0x45c6c8='';for(const _0x22d7af of _0x3b22a2['getChildren']())_0x22d7af instanceof _0x2a296c&&(_0x45c6c8+=_0x22d7af['data']);return _0x45c6c8;}class DocumentOutlineUtils extends _0x374dbe{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x1df98b=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x53c75a=[];_0x1df98b['model']['document']['on']('change',_0x3afa3f(()=>{const _0x17c83a=_0x53c75a;_0x53c75a=this['_getOutlineDefinitions']();const _0x507bef=_0x167300(_0x17c83a,_0x53c75a,(_0x424993,_0x2bb1c0)=>_0x424993['level']===_0x2bb1c0['level']&&_0x424993['text']===_0x2bb1c0['text']&&_0x424993['modelElement']===_0x2bb1c0['modelElement']),_0x2b40f8=_0x428b8c(_0x507bef,_0x53c75a),_0x2c2993=this['_getActiveHeading'](),_0x120a42=_0x53c75a['findIndex'](_0x4ef235=>_0x4ef235['modelElement']===_0x2c2993);_0x2b40f8['length']&&this['fire']('change',{'outlineDefinitions':_0x53c75a,'activeItemIndex':_0x120a42,'outlineChanges':_0x2b40f8}),this['fire']('activeItemIndex',{'index':_0x120a42});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x48810b=this['editor'],_0x13adf3=[],_0x4c3560=this['_headingNames'];for(const _0x3f26d5 of _0x48810b['model']['document']['getRootNames']())_0x3151ce(_0x48810b['model']['document']['getRoot'](_0x3f26d5));function _0x3151ce(_0x2182bd){for(const _0x16df56 of _0x2182bd['getChildren']())_0x16df56['is']('element')&&(_0x4c3560['includes'](_0x16df56['name'])&&_0x13adf3['push']({'level':_0x4c3560['indexOf'](_0x16df56['name'])+0x1,'text':I(_0x16df56),'modelElement':_0x16df56}),_0x3151ce(_0x16df56));}return _0x13adf3;}['_getActiveHeading'](){const _0x3a951f=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x1b5c99=new _0x5086d5({'direction':'backward','startPosition':_0x3a951f});for(const _0x195c73 of _0x1b5c99)if(_0x195c73['item']['is']('element')&&this['_headingNames']['includes'](_0x195c73['item']['name']))return _0x195c73['item'];}['_getHeadingNames'](){const _0x16e7e3=this['editor']['config']['get']('documentOutline.headings');return _0x16e7e3||function(_0x4978a3){const _0x49075a=_0x4978a3['config']['get']('heading.options');return _0x49075a?_0x49075a['reduce']((_0xbbbb3f,_0x4315a1)=>('paragraph'!==_0x4315a1['model']&&_0xbbbb3f['push'](_0x4315a1['model']),_0xbbbb3f),[]):_0x4978a3['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x52673c=this['editor'],_0x58a5ec=['h1','h2','h3','h4','h5','h6'],_0x5edb37=[];for(const _0x27dae1 of _0x58a5ec){const _0x4a4842=_0x52673c['editing']['view']['domConverter']['domToView'](document['createElement'](_0x27dae1)),_0x14b78d=_0x52673c['data']['toModel'](_0x4a4842)['getChild'](0x0);_0x14b78d?.['is']('element')&&_0x5edb37['push'](_0x14b78d['name']);}this['_headingNames']=_0x5edb37;}}function C(_0x634553,_0x582a8d){const t=_0x634553['t'];switch(_0x582a8d){case'Empty\x20heading':return t('Empty\x20heading');case'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.':return t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.');case'No\x20headings\x20were\x20found\x20in\x20the\x20document.':return t('No\x20headings\x20were\x20found\x20in\x20the\x20document.');case'Table\x20of\x20contents':return t('Table\x20of\x20contents');default:return _0x582a8d;}}class DocumentOutlineItemView extends _0x173168{constructor(_0x56f302,_0x5c9b0f=!0x1){super(_0x56f302);const _0x5cde3c=this['bindTemplate'],_0x5cdb3f=_0x5c9b0f?'['+C(_0x56f302,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x5611d7=>!_0x5611d7),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x5cde3c['to']('level',_0x18daba=>'ck-document-outline__item_level-'+_0x18daba),_0x5cde3c['if']('isActive','ck-document-outline__item_active'),_0x5cde3c['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x5cde3c['to']('text')},'children':[{'text':_0x5cde3c['to']('text',_0x216cc9=>_0x216cc9||_0x5cdb3f)}],'on':{'click':_0x5cde3c['to']('click')}});}}class DocumentOutlineView extends _0x173168{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x17afb2,_0x3c39e1=!0x1,_0x318a87){super(_0x17afb2),this['showEmptyHeadingText']=_0x3c39e1,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x318a87,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x5a0611,_0x3518d1,_0x375097,_0x9dc3f9)=>{this['_setActiveItem'](_0x9dc3f9,_0x375097);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x17afb2['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x17afb2,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x557b66){_0x557b66['forEach'](_0x22f9c9=>{'insert'==_0x22f9c9['type']?this['_insertItem'](_0x22f9c9['index'],..._0x22f9c9['values']):'delete'==_0x22f9c9['type']&&this['_deleteItem'](_0x22f9c9['index'],_0x22f9c9['howMany']);});}['_setActiveItem'](_0x377737,_0x34ef4d){if(-0x1!==_0x377737){const _0x3d2386=this['items']['get'](_0x377737);_0x3d2386&&(_0x3d2386['isActive']=!0x1);}-0x1!==_0x34ef4d&&(this['items']['get'](_0x34ef4d)['isActive']=!0x0,this['_scrollToItem'](_0x34ef4d));}['_insertItem'](_0x112fb1,..._0x4e780a){const _0x3eacbc=_0x4e780a['map']((_0x553a2b,_0x503fb2)=>{const _0x54b9b1=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0x54b9b1['text']=_0x553a2b['text'],_0x54b9b1['level']=_0x553a2b['level'],_0x112fb1+_0x503fb2===this['activeItemIndex']&&(_0x54b9b1['isActive']=!0x0),_0x54b9b1;});this['items']['addMany'](_0x3eacbc,_0x112fb1);}['_deleteItem'](_0x3b2897,_0x563bfd){do{this['items']['remove'](_0x3b2897);}while(--_0x563bfd);}['_handleItemClick'](_0x132ed5){const _0x5741c4=this['items']['getIndex'](_0x132ed5['source']);this['fire']('itemSelected',_0x5741c4);}['_scrollToItem'](_0x1890dd){_0x5a41e5(this['items']['get'](_0x1890dd)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class DocumentOutlineUI extends _0x374dbe{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9eb74b){super(_0x9eb74b),this['view']=new DocumentOutlineView(_0x9eb74b['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0xd5e749(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x3c336c=this['editor'],_0x62b822=_0x3c336c['plugins']['get']('DocumentOutlineUtils');let _0x1cfb05=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x3c336c['config']['get']('documentOutline.container'))throw new _0x218f8c('document-outline-container-not-provided',{'editor':_0x3c336c});_0x3c336c['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x62b822['on']('change',this['_handleOutlineChange']['bind'](this)),_0x62b822['on']('activeItemIndex',(_0x2b436b,{index:_0x58f1db})=>this['_setActiveViewItem'](_0x58f1db)),this['view']['on']('itemSelected',(_0x28df77,_0x423816)=>{_0x1cfb05=!0x0,this['_handleItemSelected'](_0x423816);}),this['view']['listenTo'](_0xf344f5['document'],'scroll',()=>{_0x1cfb05?_0x1cfb05=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0xf344f5['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x157f64){const _0x1d3dfa=_0xa7298c([0x61,0x57,0x78,0x6c,0x50,0x47,0x30,0x41,0x33,0x43,0x44,0x64,0x48,0x42,0x73,0x5a,0x45,0x71,0x77,0x55,0x4c,0x6f,0x6a,0x4f,0x72,0x67,0x4d,0x58,0x56,0x54,0x52,0x76,0x75,0x31,0x62,0x49,0x32,0x34,0x38,0x37,0x70,0x74,0x7a,0x4a,0x4b,0x51,0x65,0x69,0x68,0x66,0x4e,0x6b,0x59,0x53,0x39,0x6e,0x36,0x79,0x35,0x6d,0x63,0x46]),_0x3070b7=0x1cb264a3,_0x1f216a=0x1cb5ee9b^_0x3070b7,_0x4e06cc=window[_0xa7298c([0x44,0x61,0x74,0x65])][_0xa7298c([0x6e,0x6f,0x77])](),_0x28ca55=_0x157f64[_0xa7298c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d76c9=new window[(_0xa7298c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31e47b=>{_0x28ca55[_0xa7298c([0x6f,0x6e,0x63,0x65])](_0xa7298c([0x72,0x65,0x61,0x64,0x79]),_0x31e47b);}),_0x1c5d15={[_0xa7298c([0x6b,0x74,0x79])]:_0xa7298c([0x45,0x43]),[_0xa7298c([0x75,0x73,0x65])]:_0xa7298c([0x73,0x69,0x67]),[_0xa7298c([0x63,0x72,0x76])]:_0xa7298c([0x50,0x2d,0x32,0x35,0x36]),[_0xa7298c([0x78])]:_0xa7298c([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]),[_0xa7298c([0x79])]:_0xa7298c([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]),[_0xa7298c([0x61,0x6c,0x67])]:_0xa7298c([0x45,0x53,0x32,0x35,0x36])},_0x5f24b0=_0x28ca55[_0xa7298c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa7298c([0x67,0x65,0x74])](_0xa7298c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4f21ee(){let _0x20491b,_0x343b9b=null,_0x55df74=null;try{if(_0x5f24b0==_0xa7298c([0x47,0x50,0x4c]))return _0xa7298c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20491b=_0x4ccd59(),!_0x20491b)return _0xa7298c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20491b[_0xa7298c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55df74=_0xcc4896(_0x20491b[_0xa7298c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20491b[_0xa7298c([0x6a,0x74,0x69])])),await _0x5da67a()?_0x51f5ac()?_0x171741()?_0xa7298c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5169d5()?(_0x20491b[_0xa7298c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa7298c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x343b9b=_0x19d7d8(_0xa7298c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8cd3fb()):_0xa7298c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa7298c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa7298c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa7298c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x171741(){const _0x4d3cb0=[_0xa7298c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa7298c([0x74,0x72,0x69,0x61,0x6c])][_0xa7298c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20491b[_0xa7298c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4e06cc/0x3e8:0xe10*_0x1f216a;return _0x20491b[_0xa7298c([0x65,0x78,0x70])]<_0x4d3cb0;}function _0x51f5ac(){const _0x5ea71e=_0x20491b[_0xa7298c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ea71e&&(!!_0x5ea71e[_0xa7298c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa7298c([0x2a]))||(!!_0x5ea71e[_0xa7298c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa7298c([0x44,0x4f]))||(!!_0x5ea71e[_0xa7298c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa7298c([0x50,0x50]))||!(!_0x5ea71e[_0xa7298c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa7298c([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4340dd()))));}function _0x5169d5(){const _0x228f6b=_0x20491b[_0xa7298c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x228f6b||0x0==_0x228f6b[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x547eed}=new URL(window[_0xa7298c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x228f6b[_0xa7298c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x547eed))return!0x0;const _0x46eca1=_0x547eed[_0xa7298c([0x73,0x70,0x6c,0x69,0x74])](_0xa7298c([0x2e]));return _0x228f6b[_0xa7298c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xea87bd=>_0xea87bd[_0xa7298c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa7298c([0x2a])))[_0xa7298c([0x6d,0x61,0x70])](_0x20e5fd=>_0x20e5fd[_0xa7298c([0x73,0x70,0x6c,0x69,0x74])](_0xa7298c([0x2e])))[_0xa7298c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a9f1f=>_0x3a9f1f[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x46eca1[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa7298c([0x6d,0x61,0x70])](_0x1d8c7b=>Array(_0x46eca1[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1d8c7b[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa7298c([0x66,0x69,0x6c,0x6c])](_0x1d8c7b[0x0]===_0xa7298c([0x2a])?_0xa7298c([0x2a]):'')[_0xa7298c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1d8c7b))[_0xa7298c([0x73,0x6f,0x6d,0x65])](_0x500f41=>_0x46eca1[_0xa7298c([0x65,0x76,0x65,0x72,0x79])]((_0x13e1c1,_0x23bef6)=>_0x500f41[_0x23bef6]===_0x13e1c1||_0x500f41[_0x23bef6]===_0xa7298c([0x2a])));}function _0x8cd3fb(){return _0x343b9b&&_0x55df74?new window[(_0xa7298c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x842900,_0x746db)=>{_0x343b9b[_0xa7298c([0x74,0x68,0x65,0x6e])](_0x842900,_0x746db),_0x55df74[_0xa7298c([0x74,0x68,0x65,0x6e])](_0xfda95e=>{_0xfda95e!=_0xa7298c([0x56,0x61,0x6c,0x69,0x64])&&_0x842900(_0xfda95e);},_0x746db);}):_0x343b9b||_0x55df74||_0xa7298c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xcc4896(_0x4c6376,_0x245903){return new window[(_0xa7298c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1319e0=>{if(_0x1672a6())return _0x1319e0(_0xa7298c([0x56,0x61,0x6c,0x69,0x64]));_0x1b502a(),_0x28ca55[_0xa7298c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa7298c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x30435d=!0x1;const _0xe1c412=_0x4db16a();function _0x5aa8cb(_0x2c93a5){return!!_0x2c93a5&&(typeof _0x2c93a5===_0xa7298c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2c93a5===_0xa7298c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2c93a5[_0xa7298c([0x74,0x68,0x65,0x6e])]===_0xa7298c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2c93a5[_0xa7298c([0x63,0x61,0x74,0x63,0x68])]===_0xa7298c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c6a82(_0x345986){_0x12843b(_0x345986)[_0xa7298c([0x74,0x68,0x65,0x6e])](_0x24dae9=>{if(!_0x24dae9||_0x24dae9[_0xa7298c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa7298c([0x6f,0x6b]))return _0xa7298c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d1051(_0x4a43cf(_0xe1c412+_0x245903))!=_0x24dae9[_0xa7298c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa7298c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa7298c([0x56,0x61,0x6c,0x69,0x64]);})[_0xa7298c([0x74,0x68,0x65,0x6e])](_0x10ddff=>(_0x5b60b6(),_0x10ddff),()=>{const _0x14f051=_0x5b6613();return null==_0x14f051?(_0x5b60b6(),_0xa7298c([0x56,0x61,0x6c,0x69,0x64])):_0xa7298c(_0x4e06cc-_0x14f051>(0x38bee0a3^_0x3070b7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa7298c([0x74,0x68,0x65,0x6e])](_0x1319e0)[_0xa7298c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1319e0(_0xa7298c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x213680=0x1c848a23^_0x3070b7;function _0x5b60b6(){const _0x5af7f7=_0xa7298c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d1051(_0x4a43cf(_0x4c6376)),_0xaa25df=_0x12d5a8(_0x3d1051(window[_0xa7298c([0x4d,0x61,0x74,0x68])][_0xa7298c([0x63,0x65,0x69,0x6c])](_0x4e06cc/_0x213680)));window[_0xa7298c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa7298c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5af7f7,_0xaa25df);}function _0x5b6613(){const _0x267c61=_0xa7298c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d1051(_0x4a43cf(_0x4c6376)),_0x41c784=window[_0xa7298c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa7298c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x267c61);return _0x41c784?window[_0xa7298c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12d5a8(_0x41c784),0x10)*_0x213680:null;}function _0x12843b(_0x4bd47e){return new window[(_0xa7298c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29b011,_0x48cc79)=>{_0x4bd47e[_0xa7298c([0x74,0x68,0x65,0x6e])](_0x29b011,_0x48cc79),window[_0xa7298c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48cc79,0x1cb3b063^_0x3070b7);});}}_0x28ca55[_0xa7298c([0x6f,0x6e])](_0xa7298c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36376f,_0x3e4a12)=>{if(_0x3e4a12[0x0]!=_0x4c6376)return _0x1319e0(_0xa7298c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e4a12[0x1]={..._0x3e4a12[0x1],[_0xa7298c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe1c412};},{[_0xa7298c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa7298c([0x68,0x69,0x67,0x68])}),_0x28ca55[_0xa7298c([0x6f,0x6e])](_0xa7298c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x8dbdd1=>{_0x5aa8cb(_0x8dbdd1[_0xa7298c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x30435d=!0x0,_0x4c6a82(_0x8dbdd1[_0xa7298c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa7298c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa7298c([0x6c,0x6f,0x77])}),_0x2d76c9[_0xa7298c([0x74,0x68,0x65,0x6e])](()=>{_0x30435d||_0x1319e0(_0xa7298c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1672a6(){return _0x28ca55[_0xa7298c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa7298c([0x76,0x69,0x65,0x77])][_0xa7298c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa7298c([0x61,0x75,0x74,0x6f]);}function _0x1b502a(){_0x28ca55[_0xa7298c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa7298c([0x76,0x69,0x65,0x77])][_0xa7298c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa7298c([0x61,0x75,0x74,0x6f]);}}function _0x19d7d8(_0x5e54ff){const _0x539660=[new window[(_0xa7298c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d03bd=>setTimeout(_0x1d03bd,0x1cbb5a6f^_0x3070b7)),_0x2d76c9[_0xa7298c([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa7298c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55ce55=>{let _0xfc9df6=0x0;_0x28ca55[_0xa7298c([0x6d,0x6f,0x64,0x65,0x6c])][_0xa7298c([0x6f,0x6e])](_0xa7298c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b4159,_0x52c343)=>{_0x52c343[0x0][_0xa7298c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xfc9df6++,_0xfc9df6==(0x1cb2614b^_0x3070b7)&&(_0x55ce55(),_0x4b4159[_0xa7298c([0x6f,0x66,0x66])]());});}))];return window[_0xa7298c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa7298c([0x72,0x61,0x63,0x65])](_0x539660)[_0xa7298c([0x74,0x68,0x65,0x6e])](()=>_0x5e54ff);}async function _0x57a4ef(){await _0x2d76c9,_0x28ca55[_0xa7298c([0x6d,0x6f,0x64,0x65,0x6c])][_0xa7298c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e365a,_0x28ca55[_0xa7298c([0x6d,0x6f,0x64,0x65,0x6c])][_0xa7298c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e365a,_0x28ca55[_0xa7298c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa7298c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4340dd(){return window[_0xa7298c([0x67,0x6c,0x6f,0x62])]&&window[_0xa7298c([0x67,0x6c,0x6f,0x62])][_0xa7298c([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x23c47e(_0x28b5c8){const _0x535404=_0x184462();_0x28ca55[_0x535404]=_0xa7298c([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])+_0x28b5c8,_0x28b5c8!=_0xa7298c([0x56,0x61,0x6c,0x69,0x64])&&_0x57a4ef();}function _0x184462(){const _0x3d61e9=window[_0xa7298c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa7298c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa7298c([0x6e,0x6f,0x77])]())[_0xa7298c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa7298c([0x2e]),'');let _0x8cf2dd=_0xa7298c([0x61]);for(let _0x157864=0x0;_0x157864<_0x3d61e9[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x157864+=0x2){let _0x538da7=window[_0xa7298c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d61e9[_0xa7298c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x157864,_0x157864+0x2));_0x538da7>=_0x1d3dfa[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x538da7-=_0x1d3dfa[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8cf2dd+=_0x1d3dfa[_0x538da7];}return _0x8cf2dd;}function _0x4ccd59(){const _0x258d6b=_0x5f24b0[_0xa7298c([0x73,0x70,0x6c,0x69,0x74])](_0xa7298c([0x2e]));if(0x3!=_0x258d6b[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ad649(_0x258d6b[0x1]);function _0x1ad649(_0x3c6840){const _0x4e9cc5=_0x266a5b(_0x3c6840);return _0x4e9cc5&&_0x13887d()?_0x4e9cc5:null;function _0x13887d(){const _0x1e5843=_0x4e9cc5[_0xa7298c([0x6a,0x74,0x69])],_0x2d4018=window[_0xa7298c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e5843[_0xa7298c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e5843[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x532f0b={..._0x4e9cc5,[_0xa7298c([0x6a,0x74,0x69])]:_0x1e5843[_0xa7298c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e5843[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x532f0b[_0xa7298c([0x76,0x63])],_0x4a43cf(_0x532f0b)==_0x2d4018;}}}async function _0x5da67a(){let _0x4dc0af=!0x0;try{const _0x4a129d=_0x5f24b0[_0xa7298c([0x73,0x70,0x6c,0x69,0x74])](_0xa7298c([0x2e])),[_0x1d2421,_0x4c6c08,_0x2b24d0]=_0x4a129d;return _0x1dda74(_0x1d2421),await _0x35a1b8(_0x1d2421,_0x4c6c08,_0x2b24d0),_0x4dc0af;}catch{return!0x1;}function _0x1dda74(_0x27ceaf){const _0x2dc403=_0x266a5b(_0x27ceaf);_0x2dc403&&_0x2dc403[_0xa7298c([0x61,0x6c,0x67])]==_0xa7298c([0x45,0x53,0x32,0x35,0x36])||(_0x4dc0af=!0x1);}async function _0x35a1b8(_0x2b97c1,_0x4949b2,_0x30ca4e){const _0x1809d1=window[_0xa7298c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa7298c([0x66,0x72,0x6f,0x6d])](_0x192f3e(_0x30ca4e),_0x5a2bb8=>_0x5a2bb8[_0xa7298c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x59abf3=new window[(_0xa7298c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa7298c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b97c1+_0xa7298c([0x2e])+_0x4949b2),_0x37af48=window[_0xa7298c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa7298c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37af48)return;const _0x54fa15=await _0x37af48[_0xa7298c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa7298c([0x6a,0x77,0x6b]),_0x1c5d15,{[_0xa7298c([0x6e,0x61,0x6d,0x65])]:_0xa7298c([0x45,0x43,0x44,0x53,0x41]),[_0xa7298c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa7298c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa7298c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37af48[_0xa7298c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa7298c([0x6e,0x61,0x6d,0x65])]:_0xa7298c([0x45,0x43,0x44,0x53,0x41]),[_0xa7298c([0x68,0x61,0x73,0x68])]:{[_0xa7298c([0x6e,0x61,0x6d,0x65])]:_0xa7298c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54fa15,_0x1809d1,_0x59abf3)||(_0x4dc0af=!0x1);}}function _0x266a5b(_0x567bfe){return _0x567bfe[_0xa7298c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa7298c([0x65,0x79]))?JSON[_0xa7298c([0x70,0x61,0x72,0x73,0x65])](_0x192f3e(_0x567bfe)):null;}function _0x192f3e(_0x1ad879){return window[_0xa7298c([0x61,0x74,0x6f,0x62])](_0x1ad879[_0xa7298c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa7298c([0x2b]))[_0xa7298c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa7298c([0x2f])));}function _0x4a43cf(_0x3738eb){let _0x21d52=0x1505;function _0x15e961(_0x4a873){for(let _0x55a555=0x0;_0x55a555<_0x4a873[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55a555++){const _0x58a66c=_0x4a873[_0xa7298c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55a555);_0x21d52=(_0x21d52<<0x5)+_0x21d52+_0x58a66c,_0x21d52&=_0x21d52;}}function _0x2d5178(_0x282245){Array[_0xa7298c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x282245)?_0x282245[_0xa7298c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d5178):_0x282245&&typeof _0x282245==_0xa7298c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa7298c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x282245)[_0xa7298c([0x73,0x6f,0x72,0x74])]()[_0xa7298c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51d94b,_0x28108f])=>{_0x15e961(_0x51d94b),_0x2d5178(_0x28108f);}):_0x15e961(window[_0xa7298c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x282245));}return _0x2d5178(_0x3738eb),_0x21d52>>>0x0;}function _0x3d1051(_0x27f2c0){return _0x27f2c0[_0xa7298c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa7298c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa7298c([0x30]));}function _0x12d5a8(_0x4e355c){return _0x4e355c[_0xa7298c([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa7298c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa7298c([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e365a(){}function _0xa7298c(_0x1d95cf){return _0x1d95cf['map'](_0x3dd36d=>String['fromCharCode'](_0x3dd36d))['join']('');}_0x23c47e(await _0x4f21ee());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x388e72,{outlineDefinitions:_0x43f31d,outlineChanges:_0x27741d}){this['_currentOutlineDefinitions']=_0x43f31d,this['view']['sync'](_0x27741d);}['_setActiveViewItem'](_0x845a9b){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x845a9b]&&(this['view']['activeItemIndex']=_0x845a9b);}['_handleItemSelected'](_0x4db74c){const _0x31990b=this['_currentOutlineDefinitions'][_0x4db74c]['modelElement'];this['editor']['model']['change'](_0xbf7a37=>{_0xbf7a37['setSelection'](_0x31990b,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x4db74c);}['_updateActiveDefinitionOnViewportChange'](){const _0x1ccadd=this['editor'];let _0xdeec53;for(const _0x37d585 of _0x1ccadd['model']['document']['getRootNames']()){const _0x3750ce=_0x1ccadd['editing']['view']['getDomRoot'](_0x37d585),_0xedf09e=_0x3750ce&&new _0x2e3d51(_0x3750ce)['getVisible']();if(_0xedf09e){const _0x117842=new _0x2e3d51(_0xf344f5['window'])['getIntersection'](_0xedf09e);_0x117842&&(_0xdeec53=_0x117842['top']+0.25*_0x117842['height']);}}if(void 0x0===_0xdeec53)return;const _0x56be69=v(_0x1ccadd['editing'],this['_currentOutlineDefinitions'],_0xdeec53);_0x56be69?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x56be69)):this['_setActiveViewItem'](-0x1);}}function v(_0x59f845,_0x91da4,_0x5da7f3,_0x220935=0x0,_0x4cf9a7=_0x91da4['length']-0x1){const _0x30610c=Math['floor'](_0x220935+(_0x4cf9a7-_0x220935)/0x2);if(_0x4cf9a7>=_0x220935){const _0x595091=_0x91da4[_0x30610c],_0x49baed=_0x59f845['mapper']['toViewElement'](_0x595091['modelElement']);if(!_0x49baed)return null;const _0xaf096e=_0x59f845['view']['domConverter']['mapViewToDom'](_0x49baed);return new _0x2e3d51(_0xaf096e)['bottom']>_0x5da7f3?v(_0x59f845,_0x91da4,_0x5da7f3,_0x220935,_0x30610c-0x1):v(_0x59f845,_0x91da4,_0x5da7f3,_0x30610c+0x1,_0x4cf9a7);}return _0x30610c<0x0?null:_0x91da4[_0x30610c];}class DocumentOutline extends _0x374dbe{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[DocumentOutlineUtils,DocumentOutlineUI];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32c209=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47ed1d;for(const _0x141ed7 in _0x32c209){const _0x3ce147=_0x141ed7,_0x5d6600=_0x32c209[_0x3ce147];if('documentOutlineLicenseKeyValid'==_0x5d6600||'documentOutlineLicenseKeyInvalid'==_0x5d6600||'documentOutlineLicenseKeyExpired'==_0x5d6600||'documentOutlineLicenseKeyDomainLimit'==_0x5d6600||'documentOutlineLicenseKeyNotAllowed'==_0x5d6600||'documentOutlineLicenseKeyEvaluationLimit'==_0x5d6600||'documentOutlineLicenseKeyUsageLimit'==_0x5d6600){delete _0x32c209[_0x3ce147],_0x47ed1d=_0x5d6600,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x47ed1d&&_0x32c209['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x47ed1d&&_0x32c209['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x47ed1d&&_0x32c209['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x47ed1d&&_0x32c209['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x47ed1d&&_0x32c209['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x47ed1d&&_0x32c209['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends _0x7298e1{['execute'](){this['editor']['model']['change'](_0x218c6f=>{this['editor']['model']['insertObject'](_0x218c6f['createElement']('tableOfContents'));});}['refresh'](){const _0x458ee7=this['editor']['model'],_0x405ccc=_0x458ee7['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x405ccc&&_0x458ee7['schema']['findAllowedParent'](_0x405ccc,'tableOfContents'));}}class HeadingId extends _0x374dbe{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x62be0b=this['editor'];if(_0x62be0b['config']['get']('headingId.modelAttributeName'))return;(function(_0x389986){const _0x203e1a=new Map();if(_0x389986)return _0x389986['forEach'](_0x406eec=>{'paragraph'!==_0x406eec['model']&&_0x203e1a['set'](_0x406eec['view'],_0x406eec['model']);}),_0x203e1a['get']('h1')||_0x203e1a['set']('h1','heading1'),_0x203e1a;return _0x203e1a;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x440ad8,_0x470b5b)=>{this['_customUpcastHeadingsConversion'](_0x470b5b),this['_customDataDowncastHeadingsConversion'](_0x440ad8),_0x62be0b['model']['schema']['isRegistered'](_0x440ad8)&&_0x62be0b['model']['schema']['extend'](_0x440ad8,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x30651c){this['editor']['conversion']['for']('upcast')['add'](_0x4b8343=>_0x4b8343['on']('element:'+_0x30651c,(_0x56579e,_0x53d0eb,_0x5b0605)=>{const {consumable:_0xf9a2a,writer:_0x5eb594}=_0x5b0605,_0x328088=_0x53d0eb['viewItem']['getAttribute']('id'),_0x40c127=_0x53d0eb['modelRange']['getContainedElement']();if(_0x40c127)return _0x328088&&_0x328088['length']||_0x40c127['hasAttribute']('headingId')?void(_0xf9a2a['consume'](_0x53d0eb['viewItem'],{'attributes':['id']})&&_0x5eb594['setAttribute']('headingId',_0x328088,_0x40c127)):(_0xf9a2a['consume'](_0x53d0eb['viewItem'],{'attributes':['id']}),void _0x5eb594['setAttribute']('headingId',_0x4db16a(),_0x40c127));},{'priority':_0x52f7b6['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x31ea02){this['editor']['conversion']['for']('downcast')['add'](_0x688f6d=>_0x688f6d['on']('attribute:headingId:'+_0x31ea02,(_0x21066b,_0x39b48a,_0x1cb4cb)=>{if(!_0x1cb4cb['consumable']['consume'](_0x39b48a['item'],_0x21066b['name']))return;const _0x347a2f=_0x39b48a['item']['getAttribute']('headingId'),_0x1720c9=_0x1cb4cb['mapper']['toViewElement'](_0x39b48a['item']);_0x1cb4cb['writer']['setAttribute']('id',_0x347a2f,_0x1720c9);}));}['_registerHeadingIdAttributePostfixer'](){const _0x46be34=this['editor'],_0x1d99d6=new Set(),_0x209287=new Set();function _0x266e36(_0x432d9a,_0x1f02a0){const _0x65eb98=_0x4db16a();return _0x209287['add'](_0x65eb98),_0x432d9a['setAttribute']('headingId',_0x65eb98,_0x1f02a0),_0x65eb98;}function _0x4fc069(_0x325106,_0x2bc0a2){_0x325106['removeAttribute']('headingId',_0x2bc0a2);}_0x46be34['model']['document']['registerPostFixer'](_0x56ae05=>{const _0x2c0d1c=_0x46be34['model']['document']['differ']['getChanges']();let _0x1b2208=!0x1;for(const _0x473d36 of _0x2c0d1c)if('insert'==_0x473d36['type']&&_0x473d36['name']){if(_(_0x473d36['name'])){const _0xd230ba=_0x473d36['attributes']['get']('headingId');'string'==typeof _0xd230ba?_0x1d99d6['has'](_0xd230ba)?(_0x266e36(_0x56ae05,_0x473d36['position']['nodeAfter']),_0x1b2208=!0x0):_0x209287['add'](_0xd230ba):(_0x266e36(_0x56ae05,_0x473d36['position']['nodeAfter']),_0x1b2208=!0x0);}else'string'==typeof _0x473d36['attributes']['get']('headingId')&&(_0x4fc069(_0x56ae05,_0x473d36['position']['nodeAfter']),_0x1b2208=!0x0);}else{if('remove'==_0x473d36['type']){const _0x55a17e=_0x473d36['attributes']['get']('headingId');'string'==typeof _0x55a17e&&_0x1d99d6['delete'](_0x55a17e);}}return _0x1b2208;}),_0x46be34['model']['document']['on']('change',()=>{_0x209287['forEach'](_0x5ba3c1=>_0x1d99d6['add'](_0x5ba3c1)),_0x209287['clear']();});}}function _(_0x1d3259){return!!_0x1d3259['match'](/heading\d/);}class TableOfContentsEditing extends _0x374dbe{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1a4fae,DocumentOutlineUtils,HeadingId];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x206e71){super(_0x206e71),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x4b4563=this['editor'],_0x4abb5e=_0x4b4563['editing']['view']['document'];_0x4b4563['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x4b4563['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x4abb5e,'click',(_0x19a9c0,_0x168205)=>{if(!_0x168205['target'])return;const _0x342888=_0x168205['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x342888)&&(_0x168205['domEvent']['preventDefault'](),_0x19a9c0['stop'](),this['_handleScrollToHeading'](_0x342888));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x4b4563['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x4b4563));const _0x16f9e7=_0x4b4563['config']['get']('tableOfContents.headings');if(_0x16f9e7&&_0x16f9e7['length'])this['listenTo'](_0x4b4563['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x16f9e7),this['_updateTableOfContentsElements']();});else _0x4b4563['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x13ffdb,_0xa270fd)=>{this['_currentOutlineDefinitions']=_0xa270fd['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x4b4563['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x47b291){const _0x41733b=_0x5c727a([0x6d,0x72,0x34,0x7a,0x32,0x79,0x61,0x6b,0x4d,0x33,0x78,0x30,0x70,0x68,0x74,0x44,0x37,0x6a,0x42,0x77,0x31,0x54,0x36,0x71,0x52,0x66,0x65,0x55,0x75,0x5a,0x63,0x4f,0x4c,0x4e,0x4b,0x56,0x67,0x51,0x53,0x50,0x45,0x39,0x69,0x47,0x49,0x48,0x6f,0x58,0x6c,0x4a,0x57,0x38,0x59,0x73,0x43,0x62,0x35,0x41,0x6e,0x64,0x46,0x76]),_0x456c02=0x6b9b05fd,_0x54ba0d=0x6b9c8fc5^_0x456c02,_0xed7015=window[_0x5c727a([0x44,0x61,0x74,0x65])][_0x5c727a([0x6e,0x6f,0x77])](),_0x1659af=_0x47b291[_0x5c727a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3439bc=new window[(_0x5c727a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5694f4=>{_0x1659af[_0x5c727a([0x6f,0x6e,0x63,0x65])](_0x5c727a([0x72,0x65,0x61,0x64,0x79]),_0x5694f4);}),_0x5bca5f={[_0x5c727a([0x6b,0x74,0x79])]:_0x5c727a([0x45,0x43]),[_0x5c727a([0x75,0x73,0x65])]:_0x5c727a([0x73,0x69,0x67]),[_0x5c727a([0x63,0x72,0x76])]:_0x5c727a([0x50,0x2d,0x32,0x35,0x36]),[_0x5c727a([0x78])]:_0x5c727a([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]),[_0x5c727a([0x79])]:_0x5c727a([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]),[_0x5c727a([0x61,0x6c,0x67])]:_0x5c727a([0x45,0x53,0x32,0x35,0x36])},_0x55b259=_0x1659af[_0x5c727a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c727a([0x67,0x65,0x74])](_0x5c727a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc9231d(){let _0x1d1176,_0x23b119=null,_0xef4374=null;try{if(_0x55b259==_0x5c727a([0x47,0x50,0x4c]))return _0x5c727a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d1176=_0x4729ad(),!_0x1d1176)return _0x5c727a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d1176[_0x5c727a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xef4374=_0x2e738e(_0x1d1176[_0x5c727a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d1176[_0x5c727a([0x6a,0x74,0x69])])),await _0x1a8e4f()?_0xb6ab58()?_0x1db838()?_0x5c727a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a4258()?(_0x1d1176[_0x5c727a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c727a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x23b119=_0x72a1b3(_0x5c727a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8c0963()):_0x5c727a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c727a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c727a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5c727a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1db838(){const _0x1e0fbe=[_0x5c727a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c727a([0x74,0x72,0x69,0x61,0x6c])][_0x5c727a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d1176[_0x5c727a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xed7015/0x3e8:0xe10*_0x54ba0d;return _0x1d1176[_0x5c727a([0x65,0x78,0x70])]<_0x1e0fbe;}function _0xb6ab58(){const _0x590440=_0x1d1176[_0x5c727a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x590440&&(!!_0x590440[_0x5c727a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c727a([0x2a]))||(!!_0x590440[_0x5c727a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c727a([0x54,0x4f,0x43]))||(!!_0x590440[_0x5c727a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c727a([0x50,0x50]))||!(!_0x590440[_0x5c727a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c727a([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x2031bd()))));}function _0x2a4258(){const _0x17f1f2=_0x1d1176[_0x5c727a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x17f1f2||0x0==_0x17f1f2[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x96c113}=new URL(window[_0x5c727a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x17f1f2[_0x5c727a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96c113))return!0x0;const _0x4c322a=_0x96c113[_0x5c727a([0x73,0x70,0x6c,0x69,0x74])](_0x5c727a([0x2e]));return _0x17f1f2[_0x5c727a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2217d1=>_0x2217d1[_0x5c727a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c727a([0x2a])))[_0x5c727a([0x6d,0x61,0x70])](_0x221b1c=>_0x221b1c[_0x5c727a([0x73,0x70,0x6c,0x69,0x74])](_0x5c727a([0x2e])))[_0x5c727a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14f4d8=>_0x14f4d8[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c322a[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c727a([0x6d,0x61,0x70])](_0x51c027=>Array(_0x4c322a[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x51c027[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c727a([0x66,0x69,0x6c,0x6c])](_0x51c027[0x0]===_0x5c727a([0x2a])?_0x5c727a([0x2a]):'')[_0x5c727a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x51c027))[_0x5c727a([0x73,0x6f,0x6d,0x65])](_0x50cd3a=>_0x4c322a[_0x5c727a([0x65,0x76,0x65,0x72,0x79])]((_0x20742c,_0x2aa405)=>_0x50cd3a[_0x2aa405]===_0x20742c||_0x50cd3a[_0x2aa405]===_0x5c727a([0x2a])));}function _0x8c0963(){return _0x23b119&&_0xef4374?new window[(_0x5c727a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36b761,_0x281946)=>{_0x23b119[_0x5c727a([0x74,0x68,0x65,0x6e])](_0x36b761,_0x281946),_0xef4374[_0x5c727a([0x74,0x68,0x65,0x6e])](_0x592d2b=>{_0x592d2b!=_0x5c727a([0x56,0x61,0x6c,0x69,0x64])&&_0x36b761(_0x592d2b);},_0x281946);}):_0x23b119||_0xef4374||_0x5c727a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e738e(_0x468332,_0x37e7a6){return new window[(_0x5c727a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54b354=>{if(_0x38fd75())return _0x54b354(_0x5c727a([0x56,0x61,0x6c,0x69,0x64]));_0x2cab1d(),_0x1659af[_0x5c727a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c727a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x55cfbd=!0x1;const _0x2cc8cb=_0x4db16a();function _0x1fb499(_0x1e7620){return!!_0x1e7620&&(typeof _0x1e7620===_0x5c727a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e7620===_0x5c727a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e7620[_0x5c727a([0x74,0x68,0x65,0x6e])]===_0x5c727a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e7620[_0x5c727a([0x63,0x61,0x74,0x63,0x68])]===_0x5c727a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10fb50(_0x4eb569){_0x1c58a0(_0x4eb569)[_0x5c727a([0x74,0x68,0x65,0x6e])](_0x3a3bde=>{if(!_0x3a3bde||_0x3a3bde[_0x5c727a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c727a([0x6f,0x6b]))return _0x5c727a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a178b(_0x9c1f77(_0x2cc8cb+_0x37e7a6))!=_0x3a3bde[_0x5c727a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c727a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c727a([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c727a([0x74,0x68,0x65,0x6e])](_0x422d1c=>(_0x59e090(),_0x422d1c),()=>{const _0x1e4e73=_0x34df1e();return null==_0x1e4e73?(_0x59e090(),_0x5c727a([0x56,0x61,0x6c,0x69,0x64])):_0x5c727a(_0xed7015-_0x1e4e73>(0x4f9781fd^_0x456c02)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c727a([0x74,0x68,0x65,0x6e])](_0x54b354)[_0x5c727a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54b354(_0x5c727a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x506f45=0x6badeb7d^_0x456c02;function _0x59e090(){const _0x25647f=_0x5c727a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a178b(_0x9c1f77(_0x468332)),_0x33f02f=_0x245672(_0x5a178b(window[_0x5c727a([0x4d,0x61,0x74,0x68])][_0x5c727a([0x63,0x65,0x69,0x6c])](_0xed7015/_0x506f45)));window[_0x5c727a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c727a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25647f,_0x33f02f);}function _0x34df1e(){const _0x1cdb45=_0x5c727a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a178b(_0x9c1f77(_0x468332)),_0x4e298c=window[_0x5c727a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c727a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cdb45);return _0x4e298c?window[_0x5c727a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x245672(_0x4e298c),0x10)*_0x506f45:null;}function _0x1c58a0(_0x5e92c3){return new window[(_0x5c727a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3dccda,_0x1b19bd)=>{_0x5e92c3[_0x5c727a([0x74,0x68,0x65,0x6e])](_0x3dccda,_0x1b19bd),window[_0x5c727a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b19bd,0x6b9ad13d^_0x456c02);});}}_0x1659af[_0x5c727a([0x6f,0x6e])](_0x5c727a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e9410,_0x2e2448)=>{if(_0x2e2448[0x0]!=_0x468332)return _0x54b354(_0x5c727a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e2448[0x1]={..._0x2e2448[0x1],[_0x5c727a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2cc8cb};},{[_0x5c727a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c727a([0x68,0x69,0x67,0x68])}),_0x1659af[_0x5c727a([0x6f,0x6e])](_0x5c727a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b04f4=>{_0x1fb499(_0x1b04f4[_0x5c727a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x55cfbd=!0x0,_0x10fb50(_0x1b04f4[_0x5c727a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c727a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c727a([0x6c,0x6f,0x77])}),_0x3439bc[_0x5c727a([0x74,0x68,0x65,0x6e])](()=>{_0x55cfbd||_0x54b354(_0x5c727a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x38fd75(){return _0x1659af[_0x5c727a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c727a([0x76,0x69,0x65,0x77])][_0x5c727a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c727a([0x61,0x75,0x74,0x6f]);}function _0x2cab1d(){_0x1659af[_0x5c727a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c727a([0x76,0x69,0x65,0x77])][_0x5c727a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c727a([0x61,0x75,0x74,0x6f]);}}function _0x72a1b3(_0xaac092){const _0x302229=[new window[(_0x5c727a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56d95b=>setTimeout(_0x56d95b,0x6b923b31^_0x456c02)),_0x3439bc[_0x5c727a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c727a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb03a84=>{let _0x38eda8=0x0;_0x1659af[_0x5c727a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c727a([0x6f,0x6e])](_0x5c727a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1614c7,_0x562416)=>{_0x562416[0x0][_0x5c727a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38eda8++,_0x38eda8==(0x6b9b0015^_0x456c02)&&(_0xb03a84(),_0x1614c7[_0x5c727a([0x6f,0x66,0x66])]());});}))];return window[_0x5c727a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c727a([0x72,0x61,0x63,0x65])](_0x302229)[_0x5c727a([0x74,0x68,0x65,0x6e])](()=>_0xaac092);}async function _0xb54595(){await _0x3439bc,_0x1659af[_0x5c727a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c727a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x236bae,_0x1659af[_0x5c727a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c727a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x236bae,_0x1659af[_0x5c727a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c727a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2031bd(){return window[_0x5c727a([0x67,0x6c,0x6f,0x62])]&&window[_0x5c727a([0x67,0x6c,0x6f,0x62])][_0x5c727a([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x4fc56f(_0x3cb1a7){const _0x4632e3=_0x1fd7ce();_0x1659af[_0x4632e3]=_0x5c727a([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])+_0x3cb1a7,_0x3cb1a7!=_0x5c727a([0x56,0x61,0x6c,0x69,0x64])&&_0xb54595();}function _0x1fd7ce(){const _0x879499=window[_0x5c727a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c727a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c727a([0x6e,0x6f,0x77])]())[_0x5c727a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c727a([0x2e]),'');let _0x41c103=_0x5c727a([0x6d]);for(let _0x29bafd=0x0;_0x29bafd<_0x879499[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29bafd+=0x2){let _0x33dc7d=window[_0x5c727a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x879499[_0x5c727a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29bafd,_0x29bafd+0x2));_0x33dc7d>=_0x41733b[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33dc7d-=_0x41733b[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41c103+=_0x41733b[_0x33dc7d];}return _0x41c103;}function _0x4729ad(){const _0x3fd958=_0x55b259[_0x5c727a([0x73,0x70,0x6c,0x69,0x74])](_0x5c727a([0x2e]));if(0x3!=_0x3fd958[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x523176(_0x3fd958[0x1]);function _0x523176(_0x45f684){const _0xc514ac=_0x3fc2b7(_0x45f684);return _0xc514ac&&_0x4dd8f3()?_0xc514ac:null;function _0x4dd8f3(){const _0x168859=_0xc514ac[_0x5c727a([0x6a,0x74,0x69])],_0x302776=window[_0x5c727a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x168859[_0x5c727a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x168859[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x283b2b={..._0xc514ac,[_0x5c727a([0x6a,0x74,0x69])]:_0x168859[_0x5c727a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x168859[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x283b2b[_0x5c727a([0x76,0x63])],_0x9c1f77(_0x283b2b)==_0x302776;}}}async function _0x1a8e4f(){let _0x47ff4b=!0x0;try{const _0x37a83a=_0x55b259[_0x5c727a([0x73,0x70,0x6c,0x69,0x74])](_0x5c727a([0x2e])),[_0x185ee2,_0x13a0af,_0x32b548]=_0x37a83a;return _0x10e24f(_0x185ee2),await _0x92ad86(_0x185ee2,_0x13a0af,_0x32b548),_0x47ff4b;}catch{return!0x1;}function _0x10e24f(_0x14d2a7){const _0x214a97=_0x3fc2b7(_0x14d2a7);_0x214a97&&_0x214a97[_0x5c727a([0x61,0x6c,0x67])]==_0x5c727a([0x45,0x53,0x32,0x35,0x36])||(_0x47ff4b=!0x1);}async function _0x92ad86(_0x2e0022,_0xdbbea8,_0x4c57d2){const _0x57022a=window[_0x5c727a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c727a([0x66,0x72,0x6f,0x6d])](_0x64abe2(_0x4c57d2),_0x379bd0=>_0x379bd0[_0x5c727a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5690ac=new window[(_0x5c727a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c727a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e0022+_0x5c727a([0x2e])+_0xdbbea8),_0x35d1f8=window[_0x5c727a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c727a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35d1f8)return;const _0x192db6=await _0x35d1f8[_0x5c727a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c727a([0x6a,0x77,0x6b]),_0x5bca5f,{[_0x5c727a([0x6e,0x61,0x6d,0x65])]:_0x5c727a([0x45,0x43,0x44,0x53,0x41]),[_0x5c727a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c727a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c727a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35d1f8[_0x5c727a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c727a([0x6e,0x61,0x6d,0x65])]:_0x5c727a([0x45,0x43,0x44,0x53,0x41]),[_0x5c727a([0x68,0x61,0x73,0x68])]:{[_0x5c727a([0x6e,0x61,0x6d,0x65])]:_0x5c727a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x192db6,_0x57022a,_0x5690ac)||(_0x47ff4b=!0x1);}}function _0x3fc2b7(_0x59e3f2){return _0x59e3f2[_0x5c727a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c727a([0x65,0x79]))?JSON[_0x5c727a([0x70,0x61,0x72,0x73,0x65])](_0x64abe2(_0x59e3f2)):null;}function _0x64abe2(_0x45f727){return window[_0x5c727a([0x61,0x74,0x6f,0x62])](_0x45f727[_0x5c727a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c727a([0x2b]))[_0x5c727a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c727a([0x2f])));}function _0x9c1f77(_0x3ce563){let _0x2ca4bd=0x1505;function _0x2da6af(_0x3609c6){for(let _0x87ed47=0x0;_0x87ed47<_0x3609c6[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x87ed47++){const _0x31b0d5=_0x3609c6[_0x5c727a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x87ed47);_0x2ca4bd=(_0x2ca4bd<<0x5)+_0x2ca4bd+_0x31b0d5,_0x2ca4bd&=_0x2ca4bd;}}function _0x9d81c8(_0x329c4c){Array[_0x5c727a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x329c4c)?_0x329c4c[_0x5c727a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9d81c8):_0x329c4c&&typeof _0x329c4c==_0x5c727a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c727a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x329c4c)[_0x5c727a([0x73,0x6f,0x72,0x74])]()[_0x5c727a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x54f8a9,_0x3463c2])=>{_0x2da6af(_0x54f8a9),_0x9d81c8(_0x3463c2);}):_0x2da6af(window[_0x5c727a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x329c4c));}return _0x9d81c8(_0x3ce563),_0x2ca4bd>>>0x0;}function _0x5a178b(_0x2b9af6){return _0x2b9af6[_0x5c727a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c727a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c727a([0x30]));}function _0x245672(_0x418410){return _0x418410[_0x5c727a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c727a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c727a([0x6a,0x6f,0x69,0x6e])]('');}function _0x236bae(){}function _0x5c727a(_0x262f9f){return _0x262f9f['map'](_0x80ffd7=>String['fromCharCode'](_0x80ffd7))['join']('');}_0x4fc56f(await _0xc9231d());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x5bf95a=>{'$graveyard'!==_0x5bf95a['rootName']&&this['editor']['editing']['reconvertItem'](_0x5bf95a);});}['_trackNewToCElements'](){for(const _0x46f9bb of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x46f9bb['type']||'tableOfContents'!==_0x46f9bb['name'])return;this['_tableOfContentsElements']['add'](_0x46f9bb['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x2fc4d1){const _0x2737ab=this['editor'],_0x84c831=[];for(const _0x51cbc3 of _0x2737ab['model']['document']['getRootNames']())_0x31772b(_0x2737ab['model']['document']['getRoot'](_0x51cbc3));function _0x31772b(_0x42b5b3){for(const _0x1e6615 of _0x42b5b3['getChildren']())_0x1e6615['is']('element')&&(_0x2fc4d1['includes'](_0x1e6615['name'])&&_0x84c831['push']({'level':_0x2fc4d1['indexOf'](_0x1e6615['name'])+0x1,'text':I(_0x1e6615),'modelElement':_0x1e6615}),_0x31772b(_0x1e6615));}return _0x84c831;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x3d6cde=this['editor']['conversion'];_0x3d6cde['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x3d6cde['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0xfae856,{writer:_0x8c68fb})=>this['_createTableOfContents'](_0x8c68fb,!0x0)}),_0x3d6cde['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x2dd097,{writer:_0x37848d})=>{this['_tableOfContentsElements']['add'](_0x2dd097);const _0x20f684=this['_createTableOfContents'](_0x37848d);return _0x57aa64(_0x20f684,_0x37848d,{'label':C(this['editor']['locale'],'Table\x20of\x20contents')});}}),this['editor']['data']['registerRawContentMatcher']({'name':'div','classes':'table-of-contents'}),this['editor']['editing']['mapper']['on']('viewToModelPosition',this['_redirectMapper'](),{'priority':'high'});}['_createTableOfContents'](_0x34fe12,_0x406bc6=!0x1){const {locale:_0x16ad43}=this['editor'],_0x52df8b=_0x34fe12['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x406bc6&&{'data-table-of-contents-label':C(_0x16ad43,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x406bc6&&_0x34fe12['insert'](_0x34fe12['createPositionAt'](_0x52df8b,'end'),_0x34fe12['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x34fe12['createText'](C(_0x16ad43,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x42d75f=_0x406bc6?'':'['+C(_0x16ad43,'Empty\x20heading')+']';let _0x4f223a=_0x52df8b;return this['_currentOutlineDefinitions']['forEach']((_0x1c5424,_0x1872dd,_0x6a796f)=>{const _0x2dfb01=this['editor']['model']['hasContent'](_0x1c5424['modelElement'],{'ignoreWhitespaces':!0x0}),_0x42d797=_0x2dfb01?_0x1c5424['text']:_0x42d75f,_0x2e581f=_0x1c5424['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x22d37e=_0x34fe12['createContainerElement']('a',{'href':'#'+_0x2e581f,...!_0x406bc6&&{'tabindex':'-1'}},[_0x34fe12['createText'](_0x42d797)]),_0x2a95d1=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x34fe12['setCustomProperty']('tableOfContentsHeadingIndex',_0x1872dd,_0x22d37e);const _0x4e2f9b=_0x34fe12['createContainerElement']('li',null,[_0x2dfb01||!_0x406bc6&&_0x2a95d1?_0x22d37e:_0x34fe12['createText']('')]),_0x224765=_0x1872dd?_0x6a796f[_0x1872dd-0x1]['level']:0x0,_0x3ed7a9=Math['abs'](_0x1c5424['level']-_0x224765);if(_0x1c5424['level']>_0x224765){const _0x58b4c9=x(_0x4e2f9b,_0x3ed7a9,_0x34fe12);_0x34fe12['insert'](_0x34fe12['createPositionAt'](_0x4f223a,'end'),_0x58b4c9);}else{const _0x8a07e9=function(_0x58f7d0,_0x52d322){return _0x58f7d0['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x385ec5=>_0x385ec5['is']('element','ol'))[_0x52d322];}(_0x4f223a,_0x3ed7a9);_0x34fe12['insert'](_0x34fe12['createPositionAt'](_0x8a07e9,'end'),_0x4e2f9b);}_0x4f223a=_0x4e2f9b;}),_0x52df8b;}['_handleScrollToHeading'](_0x34c847){const _0x32ff58=this['_currentOutlineDefinitions'][_0x34c847]['modelElement'];this['editor']['model']['change'](_0xdece70=>{_0xdece70['setSelection'](_0x32ff58,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x57c883,_0xbbe49a)=>{const _0x47bc9a=_0xbbe49a['mapper'],_0x45dd00=_0x47bc9a['findMappedViewAncestor'](_0xbbe49a['viewPosition']),_0x12a19b=_0x47bc9a['toModelElement'](_0x45dd00);_0x12a19b['is']('element','tableOfContents')&&(_0xbbe49a['modelPosition']=this['editor']['model']['createPositionAt'](_0x12a19b,0x0),_0x57c883['stop']());};}}function x(_0x3d319e,_0x13730f,_0x2e503c){return 0x1===_0x13730f?_0x2e503c['createContainerElement']('ol',null,[_0x3d319e]):_0x2e503c['createContainerElement']('ol',null,[_0x2e503c['createContainerElement']('li',null,[x(_0x3d319e,_0x13730f-0x1,_0x2e503c)])]);}class TableOfContentsUI extends _0x374dbe{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x17576d=this['editor'];_0x17576d['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x450a2d=this['_createButton'](_0x1ed391);return _0x450a2d['tooltip']=!0x0,_0x450a2d;}),_0x17576d['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x142066)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x514f98=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf065d6;for(const _0xf4a43a in _0x514f98){const _0x2583ad=_0xf4a43a,_0x465a3b=_0x514f98[_0x2583ad];if('tableOfContentsLicenseKeyValid'==_0x465a3b||'tableOfContentsLicenseKeyInvalid'==_0x465a3b||'tableOfContentsLicenseKeyExpired'==_0x465a3b||'tableOfContentsLicenseKeyDomainLimit'==_0x465a3b||'tableOfContentsLicenseKeyNotAllowed'==_0x465a3b||'tableOfContentsLicenseKeyEvaluationLimit'==_0x465a3b||'tableOfContentsLicenseKeyUsageLimit'==_0x465a3b){delete _0x514f98[_0x2583ad],_0xf065d6=_0x465a3b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0xf065d6&&_0x514f98['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0xf065d6&&_0x514f98['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0xf065d6&&_0x514f98['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0xf065d6&&_0x514f98['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0xf065d6&&_0x514f98['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0xf065d6&&_0x514f98['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0xf174b){const _0x36dd6a=this['editor'],_0x41730e=_0x36dd6a['locale'],_0x18e7df=_0x36dd6a['commands']['get']('insertTableOfContents'),_0x5791ff=new _0xf174b(_0x41730e);return _0x5791ff['set']({'label':C(_0x41730e,'Table\x20of\x20contents'),'icon':_0x3c8de8}),_0x5791ff['bind']('isEnabled')['to'](_0x18e7df,'isEnabled'),this['listenTo'](_0x5791ff,'execute',()=>{_0x36dd6a['execute']('insertTableOfContents'),_0x36dd6a['editing']['view']['focus']();}),_0x5791ff;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContents extends _0x374dbe{static get['requires'](){return[TableOfContentsEditing,TableOfContentsUI];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{DocumentOutline,DocumentOutlineUI,DocumentOutlineUtils,HeadingId,TableOfContents,TableOfContentsCommand,TableOfContentsEditing,TableOfContentsUI};
|
|
23
|
+
import{Plugin as _0x48e848,Command as _0x15b5ec}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x44d711,throttle as _0x559ad8}from'es-toolkit/compat';import{ModelText as _0x4291a8,ModelTreeWalker as _0x514b7f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x2fe27a,diffToChanges as _0x5f38de,scrollAncestorsToShowTarget as _0x407600,CKEditorError as _0x2cd5a2,global as _0x188290,Rect as _0x20463c,uid as _0x4084c1,priorities as _0x19af3e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x2a482f,ButtonView as _0x180c0d,MenuBarMenuListItemButtonView as _0x4f9287}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0xce1c31,toWidget as _0x1e7a8c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x2b3f6e}from'@ckeditor/ckeditor5-icons/dist/index.js';function I(_0x47ffda){let _0x87378='';for(const _0x3b9149 of _0x47ffda['getChildren']())_0x3b9149 instanceof _0x4291a8&&(_0x87378+=_0x3b9149['data']);return _0x87378;}class DocumentOutlineUtils extends _0x48e848{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x1ceb62=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x339973=[];_0x1ceb62['model']['document']['on']('change',_0x44d711(()=>{const _0x4e4d0e=_0x339973;_0x339973=this['_getOutlineDefinitions']();const _0x28b0c9=_0x2fe27a(_0x4e4d0e,_0x339973,(_0x29c9aa,_0x27ece8)=>_0x29c9aa['level']===_0x27ece8['level']&&_0x29c9aa['text']===_0x27ece8['text']&&_0x29c9aa['modelElement']===_0x27ece8['modelElement']),_0x5970bc=_0x5f38de(_0x28b0c9,_0x339973),_0x4e8df5=this['_getActiveHeading'](),_0x44c6ad=_0x339973['findIndex'](_0x4885b7=>_0x4885b7['modelElement']===_0x4e8df5);_0x5970bc['length']&&this['fire']('change',{'outlineDefinitions':_0x339973,'activeItemIndex':_0x44c6ad,'outlineChanges':_0x5970bc}),this['fire']('activeItemIndex',{'index':_0x44c6ad});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x37ca97=this['editor'],_0x4cf044=[],_0x41c063=this['_headingNames'];for(const _0x186a5a of _0x37ca97['model']['document']['getRootNames']())_0x43e632(_0x37ca97['model']['document']['getRoot'](_0x186a5a));function _0x43e632(_0x3a229c){for(const _0x155e44 of _0x3a229c['getChildren']())_0x155e44['is']('element')&&(_0x41c063['includes'](_0x155e44['name'])&&_0x4cf044['push']({'level':_0x41c063['indexOf'](_0x155e44['name'])+0x1,'text':I(_0x155e44),'modelElement':_0x155e44}),_0x43e632(_0x155e44));}return _0x4cf044;}['_getActiveHeading'](){const _0x13ba70=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x3ecb35=new _0x514b7f({'direction':'backward','startPosition':_0x13ba70});for(const _0x42bec4 of _0x3ecb35)if(_0x42bec4['item']['is']('element')&&this['_headingNames']['includes'](_0x42bec4['item']['name']))return _0x42bec4['item'];}['_getHeadingNames'](){const _0x41b7ec=this['editor']['config']['get']('documentOutline.headings');return _0x41b7ec||function(_0x4429d6){const _0x1fd9d9=_0x4429d6['config']['get']('heading.options');return _0x1fd9d9?_0x1fd9d9['reduce']((_0x310b28,_0x24183b)=>('paragraph'!==_0x24183b['model']&&_0x310b28['push'](_0x24183b['model']),_0x310b28),[]):_0x4429d6['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x49f260=this['editor'],_0xf040b0=['h1','h2','h3','h4','h5','h6'],_0x23b79b=[];for(const _0xa70fa1 of _0xf040b0){const _0x3a340b=_0x49f260['editing']['view']['domConverter']['domToView'](document['createElement'](_0xa70fa1)),_0x1dc22a=_0x49f260['data']['toModel'](_0x3a340b)['getChild'](0x0);_0x1dc22a?.['is']('element')&&_0x23b79b['push'](_0x1dc22a['name']);}this['_headingNames']=_0x23b79b;}}function C(_0x283955,_0x10730c){const t=_0x283955['t'];switch(_0x10730c){case'Empty\x20heading':return t('Empty\x20heading');case'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.':return t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.');case'No\x20headings\x20were\x20found\x20in\x20the\x20document.':return t('No\x20headings\x20were\x20found\x20in\x20the\x20document.');case'Table\x20of\x20contents':return t('Table\x20of\x20contents');default:return _0x10730c;}}class DocumentOutlineItemView extends _0x2a482f{constructor(_0x3beed4,_0x29f9ad=!0x1){super(_0x3beed4);const _0x1e25ef=this['bindTemplate'],_0x253db1=_0x29f9ad?'['+C(_0x3beed4,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x55bd31=>!_0x55bd31),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x1e25ef['to']('level',_0x3f9e13=>'ck-document-outline__item_level-'+_0x3f9e13),_0x1e25ef['if']('isActive','ck-document-outline__item_active'),_0x1e25ef['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x1e25ef['to']('text')},'children':[{'text':_0x1e25ef['to']('text',_0x18342c=>_0x18342c||_0x253db1)}],'on':{'click':_0x1e25ef['to']('click')}});}}class DocumentOutlineView extends _0x2a482f{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0xaa8c82,_0x3b92c8=!0x1,_0x5118d7){super(_0xaa8c82),this['showEmptyHeadingText']=_0x3b92c8,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x5118d7,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x813320,_0x3c73ca,_0x4c7d8c,_0x261825)=>{this['_setActiveItem'](_0x261825,_0x4c7d8c);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0xaa8c82['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0xaa8c82,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x1a35a0){_0x1a35a0['forEach'](_0x1e56a9=>{'insert'==_0x1e56a9['type']?this['_insertItem'](_0x1e56a9['index'],..._0x1e56a9['values']):'delete'==_0x1e56a9['type']&&this['_deleteItem'](_0x1e56a9['index'],_0x1e56a9['howMany']);});}['_setActiveItem'](_0x1d6fdc,_0x589786){if(-0x1!==_0x1d6fdc){const _0xf67fae=this['items']['get'](_0x1d6fdc);_0xf67fae&&(_0xf67fae['isActive']=!0x1);}-0x1!==_0x589786&&(this['items']['get'](_0x589786)['isActive']=!0x0,this['_scrollToItem'](_0x589786));}['_insertItem'](_0x5d015e,..._0x5ac547){const _0x2530bd=_0x5ac547['map']((_0x422668,_0x57870c)=>{const _0x247791=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0x247791['text']=_0x422668['text'],_0x247791['level']=_0x422668['level'],_0x5d015e+_0x57870c===this['activeItemIndex']&&(_0x247791['isActive']=!0x0),_0x247791;});this['items']['addMany'](_0x2530bd,_0x5d015e);}['_deleteItem'](_0x595a84,_0x5d6ac2){do{this['items']['remove'](_0x595a84);}while(--_0x5d6ac2);}['_handleItemClick'](_0x1dcda5){const _0x39280e=this['items']['getIndex'](_0x1dcda5['source']);this['fire']('itemSelected',_0x39280e);}['_scrollToItem'](_0x9c4452){_0x407600(this['items']['get'](_0x9c4452)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class DocumentOutlineUI extends _0x48e848{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5cf6d2){super(_0x5cf6d2),this['view']=new DocumentOutlineView(_0x5cf6d2['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x559ad8(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x54249a=this['editor'],_0x422e86=_0x54249a['plugins']['get']('DocumentOutlineUtils');let _0x5621c0=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x54249a['config']['get']('documentOutline.container'))throw new _0x2cd5a2('document-outline-container-not-provided',{'editor':_0x54249a});_0x54249a['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x422e86['on']('change',this['_handleOutlineChange']['bind'](this)),_0x422e86['on']('activeItemIndex',(_0x15b15c,{index:_0x26b5bc})=>this['_setActiveViewItem'](_0x26b5bc)),this['view']['on']('itemSelected',(_0x512ca1,_0x1834f2)=>{_0x5621c0=!0x0,this['_handleItemSelected'](_0x1834f2);}),this['view']['listenTo'](_0x188290['document'],'scroll',()=>{_0x5621c0?_0x5621c0=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x188290['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x2fed30){const _0x51f24e=_0x3bc64f([0x61,0x57,0x78,0x6c,0x50,0x47,0x30,0x41,0x33,0x43,0x44,0x64,0x48,0x42,0x73,0x5a,0x45,0x71,0x77,0x55,0x4c,0x6f,0x6a,0x4f,0x72,0x67,0x4d,0x58,0x56,0x54,0x52,0x76,0x75,0x31,0x62,0x49,0x32,0x34,0x38,0x37,0x70,0x74,0x7a,0x4a,0x4b,0x51,0x65,0x69,0x68,0x66,0x4e,0x6b,0x59,0x53,0x39,0x6e,0x36,0x79,0x35,0x6d,0x63,0x46]),_0x331858=0x1cb264a3,_0x2109bf=0x1cb5eecb^_0x331858,_0x5edc6f=window[_0x3bc64f([0x44,0x61,0x74,0x65])][_0x3bc64f([0x6e,0x6f,0x77])](),_0x43cd92=_0x2fed30[_0x3bc64f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c4db3=new window[(_0x3bc64f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10731d=>{_0x43cd92[_0x3bc64f([0x6f,0x6e,0x63,0x65])](_0x3bc64f([0x72,0x65,0x61,0x64,0x79]),_0x10731d);}),_0x3a3ef1={[_0x3bc64f([0x6b,0x74,0x79])]:_0x3bc64f([0x45,0x43]),[_0x3bc64f([0x75,0x73,0x65])]:_0x3bc64f([0x73,0x69,0x67]),[_0x3bc64f([0x63,0x72,0x76])]:_0x3bc64f([0x50,0x2d,0x32,0x35,0x36]),[_0x3bc64f([0x78])]:_0x3bc64f([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]),[_0x3bc64f([0x79])]:_0x3bc64f([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]),[_0x3bc64f([0x61,0x6c,0x67])]:_0x3bc64f([0x45,0x53,0x32,0x35,0x36])},_0x5a5881=_0x43cd92[_0x3bc64f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3bc64f([0x67,0x65,0x74])](_0x3bc64f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e8f93(){let _0x28bb34,_0x418c66=null,_0x2e015d=null;try{if(_0x5a5881==_0x3bc64f([0x47,0x50,0x4c]))return _0x3bc64f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x28bb34=_0x2b66f7(),!_0x28bb34)return _0x3bc64f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x28bb34[_0x3bc64f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e015d=_0xad6116(_0x28bb34[_0x3bc64f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x28bb34[_0x3bc64f([0x6a,0x74,0x69])])),await _0xd143b2()?_0x27b848()?_0x515adb()?_0x3bc64f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x284ee0()?(_0x28bb34[_0x3bc64f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bc64f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x418c66=_0x2e79bb(_0x3bc64f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45348c()):_0x3bc64f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3bc64f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3bc64f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3bc64f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x515adb(){const _0x3facbd=[_0x3bc64f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3bc64f([0x74,0x72,0x69,0x61,0x6c])][_0x3bc64f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28bb34[_0x3bc64f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5edc6f/0x3e8:0xe10*_0x2109bf;return _0x28bb34[_0x3bc64f([0x65,0x78,0x70])]<_0x3facbd;}function _0x27b848(){const _0x54bb8f=_0x28bb34[_0x3bc64f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x54bb8f&&(!!_0x54bb8f[_0x3bc64f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc64f([0x2a]))||(!!_0x54bb8f[_0x3bc64f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc64f([0x44,0x4f]))||(!!_0x54bb8f[_0x3bc64f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc64f([0x50,0x50]))||!(!_0x54bb8f[_0x3bc64f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc64f([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x44928d()))));}function _0x284ee0(){const _0xdfcf3c=_0x28bb34[_0x3bc64f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xdfcf3c||0x0==_0xdfcf3c[_0x3bc64f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53a4bf}=new URL(window[_0x3bc64f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xdfcf3c[_0x3bc64f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53a4bf))return!0x0;const _0x5b1fa3=_0x53a4bf[_0x3bc64f([0x73,0x70,0x6c,0x69,0x74])](_0x3bc64f([0x2e]));return _0xdfcf3c[_0x3bc64f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2990dc=>_0x2990dc[_0x3bc64f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc64f([0x2a])))[_0x3bc64f([0x6d,0x61,0x70])](_0x1a17b7=>_0x1a17b7[_0x3bc64f([0x73,0x70,0x6c,0x69,0x74])](_0x3bc64f([0x2e])))[_0x3bc64f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36cc0a=>_0x36cc0a[_0x3bc64f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b1fa3[_0x3bc64f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bc64f([0x6d,0x61,0x70])](_0x2bb52f=>Array(_0x5b1fa3[_0x3bc64f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2bb52f[_0x3bc64f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bc64f([0x66,0x69,0x6c,0x6c])](_0x2bb52f[0x0]===_0x3bc64f([0x2a])?_0x3bc64f([0x2a]):'')[_0x3bc64f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2bb52f))[_0x3bc64f([0x73,0x6f,0x6d,0x65])](_0x51cdbb=>_0x5b1fa3[_0x3bc64f([0x65,0x76,0x65,0x72,0x79])]((_0x238bae,_0x2d1bb1)=>_0x51cdbb[_0x2d1bb1]===_0x238bae||_0x51cdbb[_0x2d1bb1]===_0x3bc64f([0x2a])));}function _0x45348c(){return _0x418c66&&_0x2e015d?new window[(_0x3bc64f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a9c73,_0x35bb11)=>{_0x418c66[_0x3bc64f([0x74,0x68,0x65,0x6e])](_0x4a9c73,_0x35bb11),_0x2e015d[_0x3bc64f([0x74,0x68,0x65,0x6e])](_0x4dc38b=>{_0x4dc38b!=_0x3bc64f([0x56,0x61,0x6c,0x69,0x64])&&_0x4a9c73(_0x4dc38b);},_0x35bb11);}):_0x418c66||_0x2e015d||_0x3bc64f([0x56,0x61,0x6c,0x69,0x64]);}}function _0xad6116(_0x4ecdff,_0xbfcce0){return new window[(_0x3bc64f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10a223=>{if(_0x5b91d4())return _0x10a223(_0x3bc64f([0x56,0x61,0x6c,0x69,0x64]));_0x5461e5(),_0x43cd92[_0x3bc64f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3bc64f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5dae4d=!0x1;const _0x258478=_0x4084c1();function _0xdd90ae(_0xfaf3a8){return!!_0xfaf3a8&&(typeof _0xfaf3a8===_0x3bc64f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xfaf3a8===_0x3bc64f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xfaf3a8[_0x3bc64f([0x74,0x68,0x65,0x6e])]===_0x3bc64f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xfaf3a8[_0x3bc64f([0x63,0x61,0x74,0x63,0x68])]===_0x3bc64f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x489570(_0xc0182f){_0x31355f(_0xc0182f)[_0x3bc64f([0x74,0x68,0x65,0x6e])](_0x486499=>{if(!_0x486499||_0x486499[_0x3bc64f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3bc64f([0x6f,0x6b]))return _0x3bc64f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x15f097(_0x29f286(_0x258478+_0xbfcce0))!=_0x486499[_0x3bc64f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3bc64f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3bc64f([0x56,0x61,0x6c,0x69,0x64]);})[_0x3bc64f([0x74,0x68,0x65,0x6e])](_0x698b28=>(_0x2f3c40(),_0x698b28),()=>{const _0x4c4d4b=_0x5cd3c7();return null==_0x4c4d4b?(_0x2f3c40(),_0x3bc64f([0x56,0x61,0x6c,0x69,0x64])):_0x3bc64f(_0x5edc6f-_0x4c4d4b>(0x38bee0a3^_0x331858)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3bc64f([0x74,0x68,0x65,0x6e])](_0x10a223)[_0x3bc64f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x10a223(_0x3bc64f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31409e=0x1c848a23^_0x331858;function _0x2f3c40(){const _0xe64fc2=_0x3bc64f([0x6c,0x6c,0x63,0x74,0x2d])+_0x15f097(_0x29f286(_0x4ecdff)),_0x303c8d=_0x3cf336(_0x15f097(window[_0x3bc64f([0x4d,0x61,0x74,0x68])][_0x3bc64f([0x63,0x65,0x69,0x6c])](_0x5edc6f/_0x31409e)));window[_0x3bc64f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bc64f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe64fc2,_0x303c8d);}function _0x5cd3c7(){const _0x25f415=_0x3bc64f([0x6c,0x6c,0x63,0x74,0x2d])+_0x15f097(_0x29f286(_0x4ecdff)),_0x217235=window[_0x3bc64f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bc64f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25f415);return _0x217235?window[_0x3bc64f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cf336(_0x217235),0x10)*_0x31409e:null;}function _0x31355f(_0x15babd){return new window[(_0x3bc64f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11e336,_0x2e057a)=>{_0x15babd[_0x3bc64f([0x74,0x68,0x65,0x6e])](_0x11e336,_0x2e057a),window[_0x3bc64f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2e057a,0x1cb3b063^_0x331858);});}}_0x43cd92[_0x3bc64f([0x6f,0x6e])](_0x3bc64f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x10bd0c,_0x1db41a)=>{if(_0x1db41a[0x0]!=_0x4ecdff)return _0x10a223(_0x3bc64f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1db41a[0x1]={..._0x1db41a[0x1],[_0x3bc64f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x258478};},{[_0x3bc64f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bc64f([0x68,0x69,0x67,0x68])}),_0x43cd92[_0x3bc64f([0x6f,0x6e])](_0x3bc64f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15d299=>{_0xdd90ae(_0x15d299[_0x3bc64f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5dae4d=!0x0,_0x489570(_0x15d299[_0x3bc64f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3bc64f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bc64f([0x6c,0x6f,0x77])}),_0x3c4db3[_0x3bc64f([0x74,0x68,0x65,0x6e])](()=>{_0x5dae4d||_0x10a223(_0x3bc64f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b91d4(){return _0x43cd92[_0x3bc64f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bc64f([0x76,0x69,0x65,0x77])][_0x3bc64f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3bc64f([0x61,0x75,0x74,0x6f]);}function _0x5461e5(){_0x43cd92[_0x3bc64f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bc64f([0x76,0x69,0x65,0x77])][_0x3bc64f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bc64f([0x61,0x75,0x74,0x6f]);}}function _0x2e79bb(_0x25d884){const _0x45fa99=[new window[(_0x3bc64f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2df31f=>setTimeout(_0x2df31f,0x1cbb5a6f^_0x331858)),_0x3c4db3[_0x3bc64f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3bc64f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3676bc=>{let _0x51af11=0x0;_0x43cd92[_0x3bc64f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bc64f([0x6f,0x6e])](_0x3bc64f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e99fc,_0x175933)=>{_0x175933[0x0][_0x3bc64f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51af11++,_0x51af11==(0x1cb2614b^_0x331858)&&(_0x3676bc(),_0x5e99fc[_0x3bc64f([0x6f,0x66,0x66])]());});}))];return window[_0x3bc64f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bc64f([0x72,0x61,0x63,0x65])](_0x45fa99)[_0x3bc64f([0x74,0x68,0x65,0x6e])](()=>_0x25d884);}async function _0x15f638(){await _0x3c4db3,_0x43cd92[_0x3bc64f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bc64f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2ae781,_0x43cd92[_0x3bc64f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bc64f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2ae781,_0x43cd92[_0x3bc64f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3bc64f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x44928d(){return window[_0x3bc64f([0x67,0x6c,0x6f,0x62])]&&window[_0x3bc64f([0x67,0x6c,0x6f,0x62])][_0x3bc64f([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x5ea40b(_0x3bc64){const _0x59de63=_0x890c80();_0x43cd92[_0x59de63]=_0x3bc64f([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])+_0x3bc64,_0x3bc64!=_0x3bc64f([0x56,0x61,0x6c,0x69,0x64])&&_0x15f638();}function _0x890c80(){const _0x5d59c7=window[_0x3bc64f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3bc64f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3bc64f([0x6e,0x6f,0x77])]())[_0x3bc64f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3bc64f([0x2e]),'');let _0x3e6787=_0x3bc64f([0x61]);for(let _0x37f1a6=0x0;_0x37f1a6<_0x5d59c7[_0x3bc64f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37f1a6+=0x2){let _0x4064ae=window[_0x3bc64f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d59c7[_0x3bc64f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37f1a6,_0x37f1a6+0x2));_0x4064ae>=_0x51f24e[_0x3bc64f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4064ae-=_0x51f24e[_0x3bc64f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e6787+=_0x51f24e[_0x4064ae];}return _0x3e6787;}function _0x2b66f7(){const _0x4d0f99=_0x5a5881[_0x3bc64f([0x73,0x70,0x6c,0x69,0x74])](_0x3bc64f([0x2e]));if(0x3!=_0x4d0f99[_0x3bc64f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x117433(_0x4d0f99[0x1]);function _0x117433(_0x496dc6){const _0x3de856=_0x3a91b8(_0x496dc6);return _0x3de856&&_0x4b61a1()?_0x3de856:null;function _0x4b61a1(){const _0x384975=_0x3de856[_0x3bc64f([0x6a,0x74,0x69])],_0x236419=window[_0x3bc64f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x384975[_0x3bc64f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x384975[_0x3bc64f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e3e32={..._0x3de856,[_0x3bc64f([0x6a,0x74,0x69])]:_0x384975[_0x3bc64f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x384975[_0x3bc64f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e3e32[_0x3bc64f([0x76,0x63])],_0x29f286(_0x1e3e32)==_0x236419;}}}async function _0xd143b2(){let _0x146c67=!0x0;try{const _0x4f31c0=_0x5a5881[_0x3bc64f([0x73,0x70,0x6c,0x69,0x74])](_0x3bc64f([0x2e])),[_0x166350,_0x566fdd,_0x58fc3b]=_0x4f31c0;return _0x3e1987(_0x166350),await _0x247b47(_0x166350,_0x566fdd,_0x58fc3b),_0x146c67;}catch{return!0x1;}function _0x3e1987(_0x2e451d){const _0x533b1c=_0x3a91b8(_0x2e451d);_0x533b1c&&_0x533b1c[_0x3bc64f([0x61,0x6c,0x67])]==_0x3bc64f([0x45,0x53,0x32,0x35,0x36])||(_0x146c67=!0x1);}async function _0x247b47(_0x94f4dd,_0x2d29d6,_0x91d2da){const _0xf2a964=window[_0x3bc64f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3bc64f([0x66,0x72,0x6f,0x6d])](_0xc59341(_0x91d2da),_0x29b502=>_0x29b502[_0x3bc64f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x44c34a=new window[(_0x3bc64f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3bc64f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x94f4dd+_0x3bc64f([0x2e])+_0x2d29d6),_0x402611=window[_0x3bc64f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3bc64f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x402611)return;const _0x438450=await _0x402611[_0x3bc64f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3bc64f([0x6a,0x77,0x6b]),_0x3a3ef1,{[_0x3bc64f([0x6e,0x61,0x6d,0x65])]:_0x3bc64f([0x45,0x43,0x44,0x53,0x41]),[_0x3bc64f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3bc64f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3bc64f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x402611[_0x3bc64f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3bc64f([0x6e,0x61,0x6d,0x65])]:_0x3bc64f([0x45,0x43,0x44,0x53,0x41]),[_0x3bc64f([0x68,0x61,0x73,0x68])]:{[_0x3bc64f([0x6e,0x61,0x6d,0x65])]:_0x3bc64f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x438450,_0xf2a964,_0x44c34a)||(_0x146c67=!0x1);}}function _0x3a91b8(_0xa599a4){return _0xa599a4[_0x3bc64f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3bc64f([0x65,0x79]))?JSON[_0x3bc64f([0x70,0x61,0x72,0x73,0x65])](_0xc59341(_0xa599a4)):null;}function _0xc59341(_0x212e39){return window[_0x3bc64f([0x61,0x74,0x6f,0x62])](_0x212e39[_0x3bc64f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3bc64f([0x2b]))[_0x3bc64f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3bc64f([0x2f])));}function _0x29f286(_0xf0aef4){let _0x36a5d1=0x1505;function _0x52d18d(_0x26e6c0){for(let _0x40e066=0x0;_0x40e066<_0x26e6c0[_0x3bc64f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40e066++){const _0x4bed00=_0x26e6c0[_0x3bc64f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40e066);_0x36a5d1=(_0x36a5d1<<0x5)+_0x36a5d1+_0x4bed00,_0x36a5d1&=_0x36a5d1;}}function _0x3eb0e9(_0x465661){Array[_0x3bc64f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x465661)?_0x465661[_0x3bc64f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3eb0e9):_0x465661&&typeof _0x465661==_0x3bc64f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3bc64f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x465661)[_0x3bc64f([0x73,0x6f,0x72,0x74])]()[_0x3bc64f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5eee43,_0x2a512f])=>{_0x52d18d(_0x5eee43),_0x3eb0e9(_0x2a512f);}):_0x52d18d(window[_0x3bc64f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x465661));}return _0x3eb0e9(_0xf0aef4),_0x36a5d1>>>0x0;}function _0x15f097(_0x28bf88){return _0x28bf88[_0x3bc64f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3bc64f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3bc64f([0x30]));}function _0x3cf336(_0x8fd2f5){return _0x8fd2f5[_0x3bc64f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3bc64f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3bc64f([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ae781(){}function _0x3bc64f(_0x8604b6){return _0x8604b6['map'](_0x25bfdb=>String['fromCharCode'](_0x25bfdb))['join']('');}_0x5ea40b(await _0x2e8f93());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x1036d6,{outlineDefinitions:_0x4e32e1,outlineChanges:_0x13752b}){this['_currentOutlineDefinitions']=_0x4e32e1,this['view']['sync'](_0x13752b);}['_setActiveViewItem'](_0x1faaf8){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x1faaf8]&&(this['view']['activeItemIndex']=_0x1faaf8);}['_handleItemSelected'](_0x54b9a3){const _0x28d700=this['_currentOutlineDefinitions'][_0x54b9a3]['modelElement'];this['editor']['model']['change'](_0x44201d=>{_0x44201d['setSelection'](_0x28d700,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x54b9a3);}['_updateActiveDefinitionOnViewportChange'](){const _0xa83129=this['editor'];let _0x375804;for(const _0x110d5f of _0xa83129['model']['document']['getRootNames']()){const _0x4ff835=_0xa83129['editing']['view']['getDomRoot'](_0x110d5f),_0x21c7ef=_0x4ff835&&new _0x20463c(_0x4ff835)['getVisible']();if(_0x21c7ef){const _0x3560da=new _0x20463c(_0x188290['window'])['getIntersection'](_0x21c7ef);_0x3560da&&(_0x375804=_0x3560da['top']+0.25*_0x3560da['height']);}}if(void 0x0===_0x375804)return;const _0x54f3f4=v(_0xa83129['editing'],this['_currentOutlineDefinitions'],_0x375804);_0x54f3f4?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x54f3f4)):this['_setActiveViewItem'](-0x1);}}function v(_0x142ff9,_0x402a03,_0x5107c3,_0x1ae8b3=0x0,_0x45f53e=_0x402a03['length']-0x1){const _0x22c3cf=Math['floor'](_0x1ae8b3+(_0x45f53e-_0x1ae8b3)/0x2);if(_0x45f53e>=_0x1ae8b3){const _0x3eea83=_0x402a03[_0x22c3cf],_0x40aad1=_0x142ff9['mapper']['toViewElement'](_0x3eea83['modelElement']);if(!_0x40aad1)return null;const _0x7ab321=_0x142ff9['view']['domConverter']['mapViewToDom'](_0x40aad1);return new _0x20463c(_0x7ab321)['bottom']>_0x5107c3?v(_0x142ff9,_0x402a03,_0x5107c3,_0x1ae8b3,_0x22c3cf-0x1):v(_0x142ff9,_0x402a03,_0x5107c3,_0x22c3cf+0x1,_0x45f53e);}return _0x22c3cf<0x0?null:_0x402a03[_0x22c3cf];}class DocumentOutline extends _0x48e848{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[DocumentOutlineUtils,DocumentOutlineUI];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5bb721=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4438a8;for(const _0x426acf in _0x5bb721){const _0x6f0ef6=_0x426acf,_0x362a58=_0x5bb721[_0x6f0ef6];if('documentOutlineLicenseKeyValid'==_0x362a58||'documentOutlineLicenseKeyInvalid'==_0x362a58||'documentOutlineLicenseKeyExpired'==_0x362a58||'documentOutlineLicenseKeyDomainLimit'==_0x362a58||'documentOutlineLicenseKeyNotAllowed'==_0x362a58||'documentOutlineLicenseKeyEvaluationLimit'==_0x362a58||'documentOutlineLicenseKeyUsageLimit'==_0x362a58){delete _0x5bb721[_0x6f0ef6],_0x4438a8=_0x362a58,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x4438a8&&_0x5bb721['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x4438a8&&_0x5bb721['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x4438a8&&_0x5bb721['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x4438a8&&_0x5bb721['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x4438a8&&_0x5bb721['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x4438a8&&_0x5bb721['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends _0x15b5ec{['execute'](){this['editor']['model']['change'](_0x2fdc4f=>{this['editor']['model']['insertObject'](_0x2fdc4f['createElement']('tableOfContents'));});}['refresh'](){const _0x5b6307=this['editor']['model'],_0x5227e0=_0x5b6307['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x5227e0&&_0x5b6307['schema']['findAllowedParent'](_0x5227e0,'tableOfContents'));}}class HeadingId extends _0x48e848{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x11750d=this['editor'];if(_0x11750d['config']['get']('headingId.modelAttributeName'))return;(function(_0x5b5bb6){const _0x1dda86=new Map();if(_0x5b5bb6)return _0x5b5bb6['forEach'](_0x23f93b=>{'paragraph'!==_0x23f93b['model']&&_0x1dda86['set'](_0x23f93b['view'],_0x23f93b['model']);}),_0x1dda86['get']('h1')||_0x1dda86['set']('h1','heading1'),_0x1dda86;return _0x1dda86;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x415214,_0x70c903)=>{this['_customUpcastHeadingsConversion'](_0x70c903),this['_customDataDowncastHeadingsConversion'](_0x415214),_0x11750d['model']['schema']['isRegistered'](_0x415214)&&_0x11750d['model']['schema']['extend'](_0x415214,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x4aa670){this['editor']['conversion']['for']('upcast')['add'](_0x506546=>_0x506546['on']('element:'+_0x4aa670,(_0x2ec909,_0x23ac2a,_0x3e4802)=>{const {consumable:_0xf2a612,writer:_0x4c017f}=_0x3e4802,_0x13675a=_0x23ac2a['viewItem']['getAttribute']('id'),_0x38925b=_0x23ac2a['modelRange']['getContainedElement']();if(_0x38925b)return _0x13675a&&_0x13675a['length']||_0x38925b['hasAttribute']('headingId')?void(_0xf2a612['consume'](_0x23ac2a['viewItem'],{'attributes':['id']})&&_0x4c017f['setAttribute']('headingId',_0x13675a,_0x38925b)):(_0xf2a612['consume'](_0x23ac2a['viewItem'],{'attributes':['id']}),void _0x4c017f['setAttribute']('headingId',_0x4084c1(),_0x38925b));},{'priority':_0x19af3e['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x1516d9){this['editor']['conversion']['for']('downcast')['add'](_0x2900af=>_0x2900af['on']('attribute:headingId:'+_0x1516d9,(_0x4ac441,_0x445d92,_0x37e346)=>{if(!_0x37e346['consumable']['consume'](_0x445d92['item'],_0x4ac441['name']))return;const _0x7386db=_0x445d92['item']['getAttribute']('headingId'),_0x2e09fb=_0x37e346['mapper']['toViewElement'](_0x445d92['item']);_0x37e346['writer']['setAttribute']('id',_0x7386db,_0x2e09fb);}));}['_registerHeadingIdAttributePostfixer'](){const _0x1c6859=this['editor'],_0x10fdd7=new Set(),_0x10297c=new Set();function _0x1dbc33(_0x14cea6,_0x5d02c3){const _0x4c4ba1=_0x4084c1();return _0x10297c['add'](_0x4c4ba1),_0x14cea6['setAttribute']('headingId',_0x4c4ba1,_0x5d02c3),_0x4c4ba1;}function _0x10aa16(_0x9f7def,_0x2f558f){_0x9f7def['removeAttribute']('headingId',_0x2f558f);}_0x1c6859['model']['document']['registerPostFixer'](_0x58838f=>{const _0x5886c1=_0x1c6859['model']['document']['differ']['getChanges']();let _0x4fa4d7=!0x1;for(const _0x1eaf32 of _0x5886c1)if('insert'==_0x1eaf32['type']&&_0x1eaf32['name']){if(_(_0x1eaf32['name'])){const _0x340f61=_0x1eaf32['attributes']['get']('headingId');'string'==typeof _0x340f61?_0x10fdd7['has'](_0x340f61)?(_0x1dbc33(_0x58838f,_0x1eaf32['position']['nodeAfter']),_0x4fa4d7=!0x0):_0x10297c['add'](_0x340f61):(_0x1dbc33(_0x58838f,_0x1eaf32['position']['nodeAfter']),_0x4fa4d7=!0x0);}else'string'==typeof _0x1eaf32['attributes']['get']('headingId')&&(_0x10aa16(_0x58838f,_0x1eaf32['position']['nodeAfter']),_0x4fa4d7=!0x0);}else{if('remove'==_0x1eaf32['type']){const _0x1fc266=_0x1eaf32['attributes']['get']('headingId');'string'==typeof _0x1fc266&&_0x10fdd7['delete'](_0x1fc266);}}return _0x4fa4d7;}),_0x1c6859['model']['document']['on']('change',()=>{_0x10297c['forEach'](_0x2cc8a8=>_0x10fdd7['add'](_0x2cc8a8)),_0x10297c['clear']();});}}function _(_0x26331e){return!!_0x26331e['match'](/heading\d/);}class TableOfContentsEditing extends _0x48e848{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xce1c31,DocumentOutlineUtils,HeadingId];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x2b565b){super(_0x2b565b),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x1d5280=this['editor'],_0x2aa972=_0x1d5280['editing']['view']['document'];_0x1d5280['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x1d5280['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x2aa972,'click',(_0x45ac7c,_0x37df03)=>{if(!_0x37df03['target'])return;const _0x486aa7=_0x37df03['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x486aa7)&&(_0x37df03['domEvent']['preventDefault'](),_0x45ac7c['stop'](),this['_handleScrollToHeading'](_0x486aa7));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x1d5280['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x1d5280));const _0x9232e6=_0x1d5280['config']['get']('tableOfContents.headings');if(_0x9232e6&&_0x9232e6['length'])this['listenTo'](_0x1d5280['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x9232e6),this['_updateTableOfContentsElements']();});else _0x1d5280['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x2bbb49,_0x4f861a)=>{this['_currentOutlineDefinitions']=_0x4f861a['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x1d5280['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x56b96a){const _0x48daeb=_0x2dc26d([0x6d,0x72,0x34,0x7a,0x32,0x79,0x61,0x6b,0x4d,0x33,0x78,0x30,0x70,0x68,0x74,0x44,0x37,0x6a,0x42,0x77,0x31,0x54,0x36,0x71,0x52,0x66,0x65,0x55,0x75,0x5a,0x63,0x4f,0x4c,0x4e,0x4b,0x56,0x67,0x51,0x53,0x50,0x45,0x39,0x69,0x47,0x49,0x48,0x6f,0x58,0x6c,0x4a,0x57,0x38,0x59,0x73,0x43,0x62,0x35,0x41,0x6e,0x64,0x46,0x76]),_0x75520a=0x6b9b05fd,_0x463ad8=0x6b9c8f95^_0x75520a,_0x2ee63f=window[_0x2dc26d([0x44,0x61,0x74,0x65])][_0x2dc26d([0x6e,0x6f,0x77])](),_0x16df44=_0x56b96a[_0x2dc26d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x129ecf=new window[(_0x2dc26d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb853c9=>{_0x16df44[_0x2dc26d([0x6f,0x6e,0x63,0x65])](_0x2dc26d([0x72,0x65,0x61,0x64,0x79]),_0xb853c9);}),_0x12ea6c={[_0x2dc26d([0x6b,0x74,0x79])]:_0x2dc26d([0x45,0x43]),[_0x2dc26d([0x75,0x73,0x65])]:_0x2dc26d([0x73,0x69,0x67]),[_0x2dc26d([0x63,0x72,0x76])]:_0x2dc26d([0x50,0x2d,0x32,0x35,0x36]),[_0x2dc26d([0x78])]:_0x2dc26d([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]),[_0x2dc26d([0x79])]:_0x2dc26d([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]),[_0x2dc26d([0x61,0x6c,0x67])]:_0x2dc26d([0x45,0x53,0x32,0x35,0x36])},_0x4b3ecc=_0x16df44[_0x2dc26d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2dc26d([0x67,0x65,0x74])](_0x2dc26d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5dcdca(){let _0x332856,_0x140761=null,_0x55ca37=null;try{if(_0x4b3ecc==_0x2dc26d([0x47,0x50,0x4c]))return _0x2dc26d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x332856=_0x29002e(),!_0x332856)return _0x2dc26d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x332856[_0x2dc26d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55ca37=_0x5d11ed(_0x332856[_0x2dc26d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x332856[_0x2dc26d([0x6a,0x74,0x69])])),await _0x537cca()?_0x5d3be4()?_0x26b3a1()?_0x2dc26d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4bbc39()?(_0x332856[_0x2dc26d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dc26d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x140761=_0x46b43b(_0x2dc26d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e7bc8()):_0x2dc26d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2dc26d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2dc26d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2dc26d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x26b3a1(){const _0x863cbf=[_0x2dc26d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2dc26d([0x74,0x72,0x69,0x61,0x6c])][_0x2dc26d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332856[_0x2dc26d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ee63f/0x3e8:0xe10*_0x463ad8;return _0x332856[_0x2dc26d([0x65,0x78,0x70])]<_0x863cbf;}function _0x5d3be4(){const _0xbd2649=_0x332856[_0x2dc26d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xbd2649&&(!!_0xbd2649[_0x2dc26d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc26d([0x2a]))||(!!_0xbd2649[_0x2dc26d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc26d([0x54,0x4f,0x43]))||(!!_0xbd2649[_0x2dc26d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc26d([0x50,0x50]))||!(!_0xbd2649[_0x2dc26d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc26d([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x50fb87()))));}function _0x4bbc39(){const _0x30044f=_0x332856[_0x2dc26d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x30044f||0x0==_0x30044f[_0x2dc26d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x40cc92}=new URL(window[_0x2dc26d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x30044f[_0x2dc26d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40cc92))return!0x0;const _0x154b4f=_0x40cc92[_0x2dc26d([0x73,0x70,0x6c,0x69,0x74])](_0x2dc26d([0x2e]));return _0x30044f[_0x2dc26d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ce398=>_0x5ce398[_0x2dc26d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc26d([0x2a])))[_0x2dc26d([0x6d,0x61,0x70])](_0x49e23f=>_0x49e23f[_0x2dc26d([0x73,0x70,0x6c,0x69,0x74])](_0x2dc26d([0x2e])))[_0x2dc26d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17134f=>_0x17134f[_0x2dc26d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x154b4f[_0x2dc26d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dc26d([0x6d,0x61,0x70])](_0xed809d=>Array(_0x154b4f[_0x2dc26d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xed809d[_0x2dc26d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dc26d([0x66,0x69,0x6c,0x6c])](_0xed809d[0x0]===_0x2dc26d([0x2a])?_0x2dc26d([0x2a]):'')[_0x2dc26d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xed809d))[_0x2dc26d([0x73,0x6f,0x6d,0x65])](_0x459698=>_0x154b4f[_0x2dc26d([0x65,0x76,0x65,0x72,0x79])]((_0x5bce8a,_0x2ed43e)=>_0x459698[_0x2ed43e]===_0x5bce8a||_0x459698[_0x2ed43e]===_0x2dc26d([0x2a])));}function _0x2e7bc8(){return _0x140761&&_0x55ca37?new window[(_0x2dc26d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43f71a,_0x1de4eb)=>{_0x140761[_0x2dc26d([0x74,0x68,0x65,0x6e])](_0x43f71a,_0x1de4eb),_0x55ca37[_0x2dc26d([0x74,0x68,0x65,0x6e])](_0x64f615=>{_0x64f615!=_0x2dc26d([0x56,0x61,0x6c,0x69,0x64])&&_0x43f71a(_0x64f615);},_0x1de4eb);}):_0x140761||_0x55ca37||_0x2dc26d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5d11ed(_0x453a0a,_0x12b2e5){return new window[(_0x2dc26d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40b2b3=>{if(_0x1361d6())return _0x40b2b3(_0x2dc26d([0x56,0x61,0x6c,0x69,0x64]));_0x104505(),_0x16df44[_0x2dc26d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2dc26d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x142711=!0x1;const _0x199fbf=_0x4084c1();function _0x1149de(_0x3c9692){return!!_0x3c9692&&(typeof _0x3c9692===_0x2dc26d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c9692===_0x2dc26d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c9692[_0x2dc26d([0x74,0x68,0x65,0x6e])]===_0x2dc26d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c9692[_0x2dc26d([0x63,0x61,0x74,0x63,0x68])]===_0x2dc26d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x207c0d(_0x29f2f5){_0x1dea3e(_0x29f2f5)[_0x2dc26d([0x74,0x68,0x65,0x6e])](_0x3721a1=>{if(!_0x3721a1||_0x3721a1[_0x2dc26d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2dc26d([0x6f,0x6b]))return _0x2dc26d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x187f02(_0x8b388f(_0x199fbf+_0x12b2e5))!=_0x3721a1[_0x2dc26d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2dc26d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2dc26d([0x56,0x61,0x6c,0x69,0x64]);})[_0x2dc26d([0x74,0x68,0x65,0x6e])](_0x580878=>(_0x46455a(),_0x580878),()=>{const _0xd0ec85=_0xd5b087();return null==_0xd0ec85?(_0x46455a(),_0x2dc26d([0x56,0x61,0x6c,0x69,0x64])):_0x2dc26d(_0x2ee63f-_0xd0ec85>(0x4f9781fd^_0x75520a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2dc26d([0x74,0x68,0x65,0x6e])](_0x40b2b3)[_0x2dc26d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x40b2b3(_0x2dc26d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a25e4=0x6badeb7d^_0x75520a;function _0x46455a(){const _0xb65c74=_0x2dc26d([0x6c,0x6c,0x63,0x74,0x2d])+_0x187f02(_0x8b388f(_0x453a0a)),_0x34f600=_0x1e121d(_0x187f02(window[_0x2dc26d([0x4d,0x61,0x74,0x68])][_0x2dc26d([0x63,0x65,0x69,0x6c])](_0x2ee63f/_0x1a25e4)));window[_0x2dc26d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dc26d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb65c74,_0x34f600);}function _0xd5b087(){const _0x216cac=_0x2dc26d([0x6c,0x6c,0x63,0x74,0x2d])+_0x187f02(_0x8b388f(_0x453a0a)),_0xd4ad9d=window[_0x2dc26d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dc26d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x216cac);return _0xd4ad9d?window[_0x2dc26d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e121d(_0xd4ad9d),0x10)*_0x1a25e4:null;}function _0x1dea3e(_0x5925d9){return new window[(_0x2dc26d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x571572,_0x55dc53)=>{_0x5925d9[_0x2dc26d([0x74,0x68,0x65,0x6e])](_0x571572,_0x55dc53),window[_0x2dc26d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x55dc53,0x6b9ad13d^_0x75520a);});}}_0x16df44[_0x2dc26d([0x6f,0x6e])](_0x2dc26d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48fa1f,_0x5b6ad1)=>{if(_0x5b6ad1[0x0]!=_0x453a0a)return _0x40b2b3(_0x2dc26d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b6ad1[0x1]={..._0x5b6ad1[0x1],[_0x2dc26d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x199fbf};},{[_0x2dc26d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dc26d([0x68,0x69,0x67,0x68])}),_0x16df44[_0x2dc26d([0x6f,0x6e])](_0x2dc26d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39a4d8=>{_0x1149de(_0x39a4d8[_0x2dc26d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x142711=!0x0,_0x207c0d(_0x39a4d8[_0x2dc26d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2dc26d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dc26d([0x6c,0x6f,0x77])}),_0x129ecf[_0x2dc26d([0x74,0x68,0x65,0x6e])](()=>{_0x142711||_0x40b2b3(_0x2dc26d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1361d6(){return _0x16df44[_0x2dc26d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dc26d([0x76,0x69,0x65,0x77])][_0x2dc26d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2dc26d([0x61,0x75,0x74,0x6f]);}function _0x104505(){_0x16df44[_0x2dc26d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dc26d([0x76,0x69,0x65,0x77])][_0x2dc26d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2dc26d([0x61,0x75,0x74,0x6f]);}}function _0x46b43b(_0x2fdd04){const _0x347944=[new window[(_0x2dc26d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x172ba9=>setTimeout(_0x172ba9,0x6b923b31^_0x75520a)),_0x129ecf[_0x2dc26d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2dc26d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ba99e=>{let _0x2199b1=0x0;_0x16df44[_0x2dc26d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dc26d([0x6f,0x6e])](_0x2dc26d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x8f00e6,_0x4f3c1e)=>{_0x4f3c1e[0x0][_0x2dc26d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2199b1++,_0x2199b1==(0x6b9b0015^_0x75520a)&&(_0x2ba99e(),_0x8f00e6[_0x2dc26d([0x6f,0x66,0x66])]());});}))];return window[_0x2dc26d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2dc26d([0x72,0x61,0x63,0x65])](_0x347944)[_0x2dc26d([0x74,0x68,0x65,0x6e])](()=>_0x2fdd04);}async function _0x5406d3(){await _0x129ecf,_0x16df44[_0x2dc26d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dc26d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4be7bf,_0x16df44[_0x2dc26d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dc26d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4be7bf,_0x16df44[_0x2dc26d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2dc26d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50fb87(){return window[_0x2dc26d([0x67,0x6c,0x6f,0x62])]&&window[_0x2dc26d([0x67,0x6c,0x6f,0x62])][_0x2dc26d([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0xa0762(_0x4438d7){const _0x43c511=_0x1130d3();_0x16df44[_0x43c511]=_0x2dc26d([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])+_0x4438d7,_0x4438d7!=_0x2dc26d([0x56,0x61,0x6c,0x69,0x64])&&_0x5406d3();}function _0x1130d3(){const _0x3d2467=window[_0x2dc26d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2dc26d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2dc26d([0x6e,0x6f,0x77])]())[_0x2dc26d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2dc26d([0x2e]),'');let _0x113582=_0x2dc26d([0x6d]);for(let _0x42ba2d=0x0;_0x42ba2d<_0x3d2467[_0x2dc26d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42ba2d+=0x2){let _0x3949b8=window[_0x2dc26d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d2467[_0x2dc26d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42ba2d,_0x42ba2d+0x2));_0x3949b8>=_0x48daeb[_0x2dc26d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3949b8-=_0x48daeb[_0x2dc26d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x113582+=_0x48daeb[_0x3949b8];}return _0x113582;}function _0x29002e(){const _0x3ec4be=_0x4b3ecc[_0x2dc26d([0x73,0x70,0x6c,0x69,0x74])](_0x2dc26d([0x2e]));if(0x3!=_0x3ec4be[_0x2dc26d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56a6fc(_0x3ec4be[0x1]);function _0x56a6fc(_0x57d2c5){const _0x582c01=_0x3826b6(_0x57d2c5);return _0x582c01&&_0xf9b60a()?_0x582c01:null;function _0xf9b60a(){const _0x12a713=_0x582c01[_0x2dc26d([0x6a,0x74,0x69])],_0x202823=window[_0x2dc26d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12a713[_0x2dc26d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12a713[_0x2dc26d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54a0e1={..._0x582c01,[_0x2dc26d([0x6a,0x74,0x69])]:_0x12a713[_0x2dc26d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x12a713[_0x2dc26d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54a0e1[_0x2dc26d([0x76,0x63])],_0x8b388f(_0x54a0e1)==_0x202823;}}}async function _0x537cca(){let _0x2943ee=!0x0;try{const _0x27ea6f=_0x4b3ecc[_0x2dc26d([0x73,0x70,0x6c,0x69,0x74])](_0x2dc26d([0x2e])),[_0x4c89e0,_0x5b1bcf,_0x1b7a79]=_0x27ea6f;return _0x3d7a7f(_0x4c89e0),await _0x1dd1c8(_0x4c89e0,_0x5b1bcf,_0x1b7a79),_0x2943ee;}catch{return!0x1;}function _0x3d7a7f(_0x50af8f){const _0x22f18c=_0x3826b6(_0x50af8f);_0x22f18c&&_0x22f18c[_0x2dc26d([0x61,0x6c,0x67])]==_0x2dc26d([0x45,0x53,0x32,0x35,0x36])||(_0x2943ee=!0x1);}async function _0x1dd1c8(_0x18f4b0,_0x43baab,_0xd2e1ba){const _0x1af93e=window[_0x2dc26d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2dc26d([0x66,0x72,0x6f,0x6d])](_0x3b947c(_0xd2e1ba),_0x2e7d69=>_0x2e7d69[_0x2dc26d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xb72409=new window[(_0x2dc26d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2dc26d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18f4b0+_0x2dc26d([0x2e])+_0x43baab),_0x60c523=window[_0x2dc26d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2dc26d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x60c523)return;const _0x21cece=await _0x60c523[_0x2dc26d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2dc26d([0x6a,0x77,0x6b]),_0x12ea6c,{[_0x2dc26d([0x6e,0x61,0x6d,0x65])]:_0x2dc26d([0x45,0x43,0x44,0x53,0x41]),[_0x2dc26d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2dc26d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2dc26d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x60c523[_0x2dc26d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2dc26d([0x6e,0x61,0x6d,0x65])]:_0x2dc26d([0x45,0x43,0x44,0x53,0x41]),[_0x2dc26d([0x68,0x61,0x73,0x68])]:{[_0x2dc26d([0x6e,0x61,0x6d,0x65])]:_0x2dc26d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21cece,_0x1af93e,_0xb72409)||(_0x2943ee=!0x1);}}function _0x3826b6(_0x53d852){return _0x53d852[_0x2dc26d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2dc26d([0x65,0x79]))?JSON[_0x2dc26d([0x70,0x61,0x72,0x73,0x65])](_0x3b947c(_0x53d852)):null;}function _0x3b947c(_0x3ef66a){return window[_0x2dc26d([0x61,0x74,0x6f,0x62])](_0x3ef66a[_0x2dc26d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2dc26d([0x2b]))[_0x2dc26d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2dc26d([0x2f])));}function _0x8b388f(_0x50174d){let _0x2107a6=0x1505;function _0x37511f(_0x198f35){for(let _0x2b8adc=0x0;_0x2b8adc<_0x198f35[_0x2dc26d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b8adc++){const _0x22e574=_0x198f35[_0x2dc26d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b8adc);_0x2107a6=(_0x2107a6<<0x5)+_0x2107a6+_0x22e574,_0x2107a6&=_0x2107a6;}}function _0x54b57a(_0x23e707){Array[_0x2dc26d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23e707)?_0x23e707[_0x2dc26d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x54b57a):_0x23e707&&typeof _0x23e707==_0x2dc26d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2dc26d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23e707)[_0x2dc26d([0x73,0x6f,0x72,0x74])]()[_0x2dc26d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x32539d,_0x37309f])=>{_0x37511f(_0x32539d),_0x54b57a(_0x37309f);}):_0x37511f(window[_0x2dc26d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23e707));}return _0x54b57a(_0x50174d),_0x2107a6>>>0x0;}function _0x187f02(_0x6c2205){return _0x6c2205[_0x2dc26d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2dc26d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2dc26d([0x30]));}function _0x1e121d(_0x47644f){return _0x47644f[_0x2dc26d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2dc26d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2dc26d([0x6a,0x6f,0x69,0x6e])]('');}function _0x4be7bf(){}function _0x2dc26d(_0x3df401){return _0x3df401['map'](_0x196492=>String['fromCharCode'](_0x196492))['join']('');}_0xa0762(await _0x5dcdca());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x535dd9=>{'$graveyard'!==_0x535dd9['rootName']&&this['editor']['editing']['reconvertItem'](_0x535dd9);});}['_trackNewToCElements'](){for(const _0x2a8dcb of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x2a8dcb['type']||'tableOfContents'!==_0x2a8dcb['name'])return;this['_tableOfContentsElements']['add'](_0x2a8dcb['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x29bbeb){const _0x536066=this['editor'],_0x2b05a5=[];for(const _0xd781c0 of _0x536066['model']['document']['getRootNames']())_0x397d5a(_0x536066['model']['document']['getRoot'](_0xd781c0));function _0x397d5a(_0x2dbc81){for(const _0x16c99d of _0x2dbc81['getChildren']())_0x16c99d['is']('element')&&(_0x29bbeb['includes'](_0x16c99d['name'])&&_0x2b05a5['push']({'level':_0x29bbeb['indexOf'](_0x16c99d['name'])+0x1,'text':I(_0x16c99d),'modelElement':_0x16c99d}),_0x397d5a(_0x16c99d));}return _0x2b05a5;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x26c2c7=this['editor']['conversion'];_0x26c2c7['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x26c2c7['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x3eff7b,{writer:_0x54270e})=>this['_createTableOfContents'](_0x54270e,!0x0)}),_0x26c2c7['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0xf82f29,{writer:_0x28ae89})=>{this['_tableOfContentsElements']['add'](_0xf82f29);const _0x3adba9=this['_createTableOfContents'](_0x28ae89);return _0x1e7a8c(_0x3adba9,_0x28ae89,{'label':C(this['editor']['locale'],'Table\x20of\x20contents')});}}),this['editor']['data']['registerRawContentMatcher']({'name':'div','classes':'table-of-contents'}),this['editor']['editing']['mapper']['on']('viewToModelPosition',this['_redirectMapper'](),{'priority':'high'});}['_createTableOfContents'](_0x21c277,_0x2b5224=!0x1){const {locale:_0x1444bd}=this['editor'],_0x33801a=_0x21c277['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x2b5224&&{'data-table-of-contents-label':C(_0x1444bd,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x2b5224&&_0x21c277['insert'](_0x21c277['createPositionAt'](_0x33801a,'end'),_0x21c277['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x21c277['createText'](C(_0x1444bd,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x427fa7=_0x2b5224?'':'['+C(_0x1444bd,'Empty\x20heading')+']';let _0x3ccdb4=_0x33801a;return this['_currentOutlineDefinitions']['forEach']((_0x1dcada,_0x58dd6e,_0x40032c)=>{const _0x34c992=this['editor']['model']['hasContent'](_0x1dcada['modelElement'],{'ignoreWhitespaces':!0x0}),_0x4fca9a=_0x34c992?_0x1dcada['text']:_0x427fa7,_0x3f7f8b=_0x1dcada['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x4fc4f9=_0x21c277['createContainerElement']('a',{'href':'#'+_0x3f7f8b,...!_0x2b5224&&{'tabindex':'-1'}},[_0x21c277['createText'](_0x4fca9a)]),_0x1663d1=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x21c277['setCustomProperty']('tableOfContentsHeadingIndex',_0x58dd6e,_0x4fc4f9);const _0x5cecd4=_0x21c277['createContainerElement']('li',null,[_0x34c992||!_0x2b5224&&_0x1663d1?_0x4fc4f9:_0x21c277['createText']('')]),_0x2ebe31=_0x58dd6e?_0x40032c[_0x58dd6e-0x1]['level']:0x0,_0x500de4=Math['abs'](_0x1dcada['level']-_0x2ebe31);if(_0x1dcada['level']>_0x2ebe31){const _0x545d80=x(_0x5cecd4,_0x500de4,_0x21c277);_0x21c277['insert'](_0x21c277['createPositionAt'](_0x3ccdb4,'end'),_0x545d80);}else{const _0x205b1a=function(_0x3110f0,_0x1697ea){return _0x3110f0['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x47d791=>_0x47d791['is']('element','ol'))[_0x1697ea];}(_0x3ccdb4,_0x500de4);_0x21c277['insert'](_0x21c277['createPositionAt'](_0x205b1a,'end'),_0x5cecd4);}_0x3ccdb4=_0x5cecd4;}),_0x33801a;}['_handleScrollToHeading'](_0x447772){const _0x5f4805=this['_currentOutlineDefinitions'][_0x447772]['modelElement'];this['editor']['model']['change'](_0x38d8bc=>{_0x38d8bc['setSelection'](_0x5f4805,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x24a635,_0x19f7f6)=>{const _0x51579e=_0x19f7f6['mapper'],_0x4d961d=_0x51579e['findMappedViewAncestor'](_0x19f7f6['viewPosition']),_0x21840d=_0x51579e['toModelElement'](_0x4d961d);_0x21840d['is']('element','tableOfContents')&&(_0x19f7f6['modelPosition']=this['editor']['model']['createPositionAt'](_0x21840d,0x0),_0x24a635['stop']());};}}function x(_0x392b0e,_0xff0649,_0x3d12e3){return 0x1===_0xff0649?_0x3d12e3['createContainerElement']('ol',null,[_0x392b0e]):_0x3d12e3['createContainerElement']('ol',null,[_0x3d12e3['createContainerElement']('li',null,[x(_0x392b0e,_0xff0649-0x1,_0x3d12e3)])]);}class TableOfContentsUI extends _0x48e848{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2a7a5d=this['editor'];_0x2a7a5d['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x570e98=this['_createButton'](_0x180c0d);return _0x570e98['tooltip']=!0x0,_0x570e98;}),_0x2a7a5d['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x4f9287)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4b69d7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4733cb;for(const _0x50e782 in _0x4b69d7){const _0x202a0f=_0x50e782,_0x316fe8=_0x4b69d7[_0x202a0f];if('tableOfContentsLicenseKeyValid'==_0x316fe8||'tableOfContentsLicenseKeyInvalid'==_0x316fe8||'tableOfContentsLicenseKeyExpired'==_0x316fe8||'tableOfContentsLicenseKeyDomainLimit'==_0x316fe8||'tableOfContentsLicenseKeyNotAllowed'==_0x316fe8||'tableOfContentsLicenseKeyEvaluationLimit'==_0x316fe8||'tableOfContentsLicenseKeyUsageLimit'==_0x316fe8){delete _0x4b69d7[_0x202a0f],_0x4733cb=_0x316fe8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x4733cb&&_0x4b69d7['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x4733cb&&_0x4b69d7['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x4733cb&&_0x4b69d7['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x4733cb&&_0x4b69d7['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x4733cb&&_0x4b69d7['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x4733cb&&_0x4b69d7['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x1b365c){const _0x266a86=this['editor'],_0x10eb45=_0x266a86['locale'],_0x2abde8=_0x266a86['commands']['get']('insertTableOfContents'),_0x3f5f47=new _0x1b365c(_0x10eb45);return _0x3f5f47['set']({'label':C(_0x10eb45,'Table\x20of\x20contents'),'icon':_0x2b3f6e}),_0x3f5f47['bind']('isEnabled')['to'](_0x2abde8,'isEnabled'),this['listenTo'](_0x3f5f47,'execute',()=>{_0x266a86['execute']('insertTableOfContents'),_0x266a86['editing']['view']['focus']();}),_0x3f5f47;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContents extends _0x48e848{static get['requires'](){return[TableOfContentsEditing,TableOfContentsUI];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{DocumentOutline,DocumentOutlineUI,DocumentOutlineUtils,HeadingId,TableOfContents,TableOfContentsCommand,TableOfContentsEditing,TableOfContentsUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-document-outline",
|
|
3
|
-
"version": "48.8.1-alpha.
|
|
3
|
+
"version": "48.8.1-alpha.3",
|
|
4
4
|
"description": "Document outline feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"./package.json": "./package.json"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ckeditor/ckeditor5-core": "48.8.1-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "48.8.1-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-heading": "48.8.1-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "48.8.1-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-ui": "48.8.1-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "48.8.1-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.8.1-alpha.3",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "48.8.1-alpha.3",
|
|
26
|
+
"@ckeditor/ckeditor5-heading": "48.8.1-alpha.3",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "48.8.1-alpha.3",
|
|
28
|
+
"@ckeditor/ckeditor5-ui": "48.8.1-alpha.3",
|
|
29
|
+
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.3",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "48.8.1-alpha.3",
|
|
31
31
|
"es-toolkit": "1.45.1"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|