@ckeditor/ckeditor5-document-outline 48.0.0-alpha.0 → 48.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 _0x1ef299,Command as _0x3f670e}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x504021,throttle as _0x3c07a5}from'es-toolkit/compat';import{ModelText as _0x2fa2c5,ModelTreeWalker as _0x67ecc3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x551a91,diffToChanges as _0x177a26,scrollAncestorsToShowTarget as _0x526abf,CKEditorError as _0x2692cf,global as _0x675eb2,Rect as _0x3852c5,uid as _0x3d4613,priorities as _0x3748c3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x3488eb,ButtonView as _0x39dbef,MenuBarMenuListItemButtonView as _0x2d9673}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x2d3cad,toWidget as _0x43b5b8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x193fbd}from'@ckeditor/ckeditor5-icons/dist/index.js';function v(_0x254748){let _0x673583='';for(const _0x5e7e28 of _0x254748['getChildren']())_0x5e7e28 instanceof _0x2fa2c5&&(_0x673583+=_0x5e7e28['data']);return _0x673583;}class I extends _0x1ef299{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x55a60d=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x3885e7=[];_0x55a60d['model']['document']['on']('change',_0x504021(()=>{const _0x1c9930=_0x3885e7;_0x3885e7=this['_getOutlineDefinitions']();const _0xe172f8=_0x551a91(_0x1c9930,_0x3885e7,(_0x742490,_0x3ca11c)=>_0x742490['level']===_0x3ca11c['level']&&_0x742490['text']===_0x3ca11c['text']&&_0x742490['modelElement']===_0x3ca11c['modelElement']),_0x26907b=_0x177a26(_0xe172f8,_0x3885e7),_0x1697ee=this['_getActiveHeading'](),_0x266d4d=_0x3885e7['findIndex'](_0x4fea9d=>_0x4fea9d['modelElement']===_0x1697ee);_0x26907b['length']&&this['fire']('change',{'outlineDefinitions':_0x3885e7,'activeItemIndex':_0x266d4d,'outlineChanges':_0x26907b}),this['fire']('activeItemIndex',{'index':_0x266d4d});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x51531f=this['editor'],_0x1c9e4b=[],_0x156bfe=this['_headingNames'];for(const _0x4b38cb of _0x51531f['model']['document']['getRootNames']())_0x2d4cf7(_0x51531f['model']['document']['getRoot'](_0x4b38cb));function _0x2d4cf7(_0x1dc02b){for(const _0x430bf0 of _0x1dc02b['getChildren']())_0x430bf0['is']('element')&&(_0x156bfe['includes'](_0x430bf0['name'])&&_0x1c9e4b['push']({'level':_0x156bfe['indexOf'](_0x430bf0['name'])+0x1,'text':v(_0x430bf0),'modelElement':_0x430bf0}),_0x2d4cf7(_0x430bf0));}return _0x1c9e4b;}['_getActiveHeading'](){const _0xea0e19=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x1d61aa=new _0x67ecc3({'direction':'backward','startPosition':_0xea0e19});for(const _0x54ea40 of _0x1d61aa)if(_0x54ea40['item']['is']('element')&&this['_headingNames']['includes'](_0x54ea40['item']['name']))return _0x54ea40['item'];}['_getHeadingNames'](){const _0x1eec24=this['editor']['config']['get']('documentOutline.headings');return _0x1eec24||function(_0x1f05e7){const _0x493f66=_0x1f05e7['config']['get']('heading.options');return _0x493f66?_0x493f66['reduce']((_0x1b7d10,_0x3d2faa)=>('paragraph'!==_0x3d2faa['model']&&_0x1b7d10['push'](_0x3d2faa['model']),_0x1b7d10),[]):_0x1f05e7['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x25fa6e=this['editor'],_0x5f5c90=['h1','h2','h3','h4','h5','h6'],_0x3fd604=[];for(const _0x1fba64 of _0x5f5c90){const _0x5adca9=_0x25fa6e['editing']['view']['domConverter']['domToView'](document['createElement'](_0x1fba64)),_0x3f0f76=_0x25fa6e['data']['toModel'](_0x5adca9)['getChild'](0x0);_0x3f0f76?.['is']('element')&&_0x3fd604['push'](_0x3f0f76['name']);}this['_headingNames']=_0x3fd604;}}function C(_0x47a437,_0x42aad1){const t=_0x47a437['t'];switch(_0x42aad1){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 _0x42aad1;}}class _ extends _0x3488eb{constructor(_0x3ca112,_0x39a8f2=!0x1){super(_0x3ca112);const _0x2db86e=this['bindTemplate'],_0x5adcab=_0x39a8f2?'['+C(_0x3ca112,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x12910c=>!_0x12910c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x2db86e['to']('level',_0x4ff8ad=>'ck-document-outline__item_level-'+_0x4ff8ad),_0x2db86e['if']('isActive','ck-document-outline__item_active'),_0x2db86e['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x2db86e['to']('text')},'children':[{'text':_0x2db86e['to']('text',_0x2054df=>_0x2054df||_0x5adcab)}],'on':{'click':_0x2db86e['to']('click')}});}}class L extends _0x3488eb{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x20b759,_0x4faa9f=!0x1,_0x1034d5){super(_0x20b759),this['showEmptyHeadingText']=_0x4faa9f,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x1034d5,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x422ba2,_0x4054fd,_0x17be7a,_0x370915)=>{this['_setActiveItem'](_0x370915,_0x17be7a);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x20b759['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x20b759,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x427047){_0x427047['forEach'](_0xf267c9=>{'insert'==_0xf267c9['type']?this['_insertItem'](_0xf267c9['index'],..._0xf267c9['values']):'delete'==_0xf267c9['type']&&this['_deleteItem'](_0xf267c9['index'],_0xf267c9['howMany']);});}['_setActiveItem'](_0x4dc113,_0x1d0937){if(-0x1!==_0x4dc113){const _0x1541ba=this['items']['get'](_0x4dc113);_0x1541ba&&(_0x1541ba['isActive']=!0x1);}-0x1!==_0x1d0937&&(this['items']['get'](_0x1d0937)['isActive']=!0x0,this['_scrollToItem'](_0x1d0937));}['_insertItem'](_0x3363d7,..._0x1c5aa6){const _0x236fe3=_0x1c5aa6['map']((_0x40b773,_0x43681d)=>{const _0x3abd46=new _(this['locale'],this['showEmptyHeadingText']);return _0x3abd46['text']=_0x40b773['text'],_0x3abd46['level']=_0x40b773['level'],_0x3363d7+_0x43681d===this['activeItemIndex']&&(_0x3abd46['isActive']=!0x0),_0x3abd46;});this['items']['addMany'](_0x236fe3,_0x3363d7);}['_deleteItem'](_0x5c9653,_0x51119b){do{this['items']['remove'](_0x5c9653);}while(--_0x51119b);}['_handleItemClick'](_0x5b1e69){const _0x3aea43=this['items']['getIndex'](_0x5b1e69['source']);this['fire']('itemSelected',_0x3aea43);}['_scrollToItem'](_0x15f5ac){_0x526abf(this['items']['get'](_0x15f5ac)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class x extends _0x1ef299{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38dc2b){super(_0x38dc2b),this['view']=new L(_0x38dc2b['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x3c07a5(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x571ee6=this['editor'],_0x49cde9=_0x571ee6['plugins']['get']('DocumentOutlineUtils');let _0x3c71c0=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x571ee6['config']['get']('documentOutline.container'))throw new _0x2692cf('document-outline-container-not-provided',{'editor':_0x571ee6});_0x571ee6['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x49cde9['on']('change',this['_handleOutlineChange']['bind'](this)),_0x49cde9['on']('activeItemIndex',(_0x310f81,{index:_0x1b24f5})=>this['_setActiveViewItem'](_0x1b24f5)),this['view']['on']('itemSelected',(_0xe0ac54,_0xf2a276)=>{_0x3c71c0=!0x0,this['_handleItemSelected'](_0xf2a276);}),this['view']['listenTo'](_0x675eb2['document'],'scroll',()=>{_0x3c71c0?_0x3c71c0=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x675eb2['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x3f89b2){const _0x59b7e3=_0xa8bbfd([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]),_0x250ef5=0x1cb264a3,_0x3d41a9=0x1cb5e06b^_0x250ef5,_0x18f61a=window[_0xa8bbfd([0x44,0x61,0x74,0x65])][_0xa8bbfd([0x6e,0x6f,0x77])](),_0x5246b0=_0x3f89b2[_0xa8bbfd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4db03c=new window[(_0xa8bbfd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x365008=>{_0x5246b0[_0xa8bbfd([0x6f,0x6e,0x63,0x65])](_0xa8bbfd([0x72,0x65,0x61,0x64,0x79]),_0x365008);}),_0x155d5c={[_0xa8bbfd([0x6b,0x74,0x79])]:_0xa8bbfd([0x45,0x43]),[_0xa8bbfd([0x75,0x73,0x65])]:_0xa8bbfd([0x73,0x69,0x67]),[_0xa8bbfd([0x63,0x72,0x76])]:_0xa8bbfd([0x50,0x2d,0x32,0x35,0x36]),[_0xa8bbfd([0x78])]:_0xa8bbfd([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]),[_0xa8bbfd([0x79])]:_0xa8bbfd([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]),[_0xa8bbfd([0x61,0x6c,0x67])]:_0xa8bbfd([0x45,0x53,0x32,0x35,0x36])},_0x511870=_0x5246b0[_0xa8bbfd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa8bbfd([0x67,0x65,0x74])](_0xa8bbfd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2d685f(){let _0x2d0b08,_0x1079aa=null,_0x540bb5=null;try{if(_0x511870==_0xa8bbfd([0x47,0x50,0x4c]))return _0xa8bbfd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2d0b08=_0x55cc28(),!_0x2d0b08)return _0xa8bbfd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2d0b08[_0xa8bbfd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x540bb5=_0x44b82e(_0x2d0b08[_0xa8bbfd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2d0b08[_0xa8bbfd([0x6a,0x74,0x69])])),await _0x552719()?_0xa38d0f()?_0x457a1c()?_0xa8bbfd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ef184()?(_0x2d0b08[_0xa8bbfd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa8bbfd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1079aa=_0x2472bc(_0xa8bbfd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5d7152()):_0xa8bbfd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa8bbfd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa8bbfd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa8bbfd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x457a1c(){const _0x4d5374=[_0xa8bbfd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa8bbfd([0x74,0x72,0x69,0x61,0x6c])][_0xa8bbfd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d0b08[_0xa8bbfd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18f61a/0x3e8:0xe10*_0x3d41a9;return _0x2d0b08[_0xa8bbfd([0x65,0x78,0x70])]<_0x4d5374;}function _0xa38d0f(){const _0x198296=_0x2d0b08[_0xa8bbfd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x198296&&(!!_0x198296[_0xa8bbfd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8bbfd([0x2a]))||(!!_0x198296[_0xa8bbfd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8bbfd([0x44,0x4f]))||(!!_0x198296[_0xa8bbfd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8bbfd([0x50,0x50]))||!(!_0x198296[_0xa8bbfd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8bbfd([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x5b6ccb()))));}function _0x4ef184(){const _0x31a52d=_0x2d0b08[_0xa8bbfd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31a52d||0x0==_0x31a52d[_0xa8bbfd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f4269}=new URL(window[_0xa8bbfd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x31a52d[_0xa8bbfd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f4269))return!0x0;const _0x3fccc7=_0x3f4269[_0xa8bbfd([0x73,0x70,0x6c,0x69,0x74])](_0xa8bbfd([0x2e]));return _0x31a52d[_0xa8bbfd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cb1aa=>_0x5cb1aa[_0xa8bbfd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8bbfd([0x2a])))[_0xa8bbfd([0x6d,0x61,0x70])](_0x4cce81=>_0x4cce81[_0xa8bbfd([0x73,0x70,0x6c,0x69,0x74])](_0xa8bbfd([0x2e])))[_0xa8bbfd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29357c=>_0x29357c[_0xa8bbfd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3fccc7[_0xa8bbfd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa8bbfd([0x6d,0x61,0x70])](_0x49f9fc=>Array(_0x3fccc7[_0xa8bbfd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x49f9fc[_0xa8bbfd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa8bbfd([0x66,0x69,0x6c,0x6c])](_0x49f9fc[0x0]===_0xa8bbfd([0x2a])?_0xa8bbfd([0x2a]):'')[_0xa8bbfd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x49f9fc))[_0xa8bbfd([0x73,0x6f,0x6d,0x65])](_0x3e0993=>_0x3fccc7[_0xa8bbfd([0x65,0x76,0x65,0x72,0x79])]((_0x117224,_0x37d24b)=>_0x3e0993[_0x37d24b]===_0x117224||_0x3e0993[_0x37d24b]===_0xa8bbfd([0x2a])));}function _0x5d7152(){return _0x1079aa&&_0x540bb5?new window[(_0xa8bbfd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59d74c,_0x34d47c)=>{_0x1079aa[_0xa8bbfd([0x74,0x68,0x65,0x6e])](_0x59d74c,_0x34d47c),_0x540bb5[_0xa8bbfd([0x74,0x68,0x65,0x6e])](_0x2f33c3=>{_0x2f33c3!=_0xa8bbfd([0x56,0x61,0x6c,0x69,0x64])&&_0x59d74c(_0x2f33c3);},_0x34d47c);}):_0x1079aa||_0x540bb5||_0xa8bbfd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x44b82e(_0x59f80c,_0x1a1d3b){return new window[(_0xa8bbfd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c836a=>{if(_0x5da7e1())return _0x5c836a(_0xa8bbfd([0x56,0x61,0x6c,0x69,0x64]));_0x473139(),_0x5246b0[_0xa8bbfd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa8bbfd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ecad3=!0x1;const _0x250cba=_0x3d4613();function _0x47617c(_0x5b86c5){return!!_0x5b86c5&&(typeof _0x5b86c5===_0xa8bbfd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b86c5===_0xa8bbfd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b86c5[_0xa8bbfd([0x74,0x68,0x65,0x6e])]===_0xa8bbfd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b86c5[_0xa8bbfd([0x63,0x61,0x74,0x63,0x68])]===_0xa8bbfd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x54f895(_0x2a41e2){_0x58e206(_0x2a41e2)[_0xa8bbfd([0x74,0x68,0x65,0x6e])](_0x2e436d=>{if(!_0x2e436d||_0x2e436d[_0xa8bbfd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa8bbfd([0x6f,0x6b]))return _0xa8bbfd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x305bb1(_0x396e86(_0x250cba+_0x1a1d3b))!=_0x2e436d[_0xa8bbfd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa8bbfd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa8bbfd([0x56,0x61,0x6c,0x69,0x64]);})[_0xa8bbfd([0x74,0x68,0x65,0x6e])](_0x310fae=>(_0x4fa3e4(),_0x310fae),()=>{const _0x2c87df=_0x145d9d();return null==_0x2c87df?(_0x4fa3e4(),_0xa8bbfd([0x56,0x61,0x6c,0x69,0x64])):_0xa8bbfd(_0x18f61a-_0x2c87df>(0x38bee0a3^_0x250ef5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa8bbfd([0x74,0x68,0x65,0x6e])](_0x5c836a)[_0xa8bbfd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c836a(_0xa8bbfd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x509bd8=0x1c848a23^_0x250ef5;function _0x4fa3e4(){const _0x452904=_0xa8bbfd([0x6c,0x6c,0x63,0x74,0x2d])+_0x305bb1(_0x396e86(_0x59f80c)),_0x566532=_0x9add24(_0x305bb1(window[_0xa8bbfd([0x4d,0x61,0x74,0x68])][_0xa8bbfd([0x63,0x65,0x69,0x6c])](_0x18f61a/_0x509bd8)));window[_0xa8bbfd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa8bbfd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x452904,_0x566532);}function _0x145d9d(){const _0xa80050=_0xa8bbfd([0x6c,0x6c,0x63,0x74,0x2d])+_0x305bb1(_0x396e86(_0x59f80c)),_0xb23c06=window[_0xa8bbfd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa8bbfd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa80050);return _0xb23c06?window[_0xa8bbfd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9add24(_0xb23c06),0x10)*_0x509bd8:null;}function _0x58e206(_0x33525b){return new window[(_0xa8bbfd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c7af8,_0x143bf4)=>{_0x33525b[_0xa8bbfd([0x74,0x68,0x65,0x6e])](_0x1c7af8,_0x143bf4),window[_0xa8bbfd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x143bf4,0x1cb3b063^_0x250ef5);});}}_0x5246b0[_0xa8bbfd([0x6f,0x6e])](_0xa8bbfd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51ad55,_0x13966b)=>{if(_0x13966b[0x0]!=_0x59f80c)return _0x5c836a(_0xa8bbfd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13966b[0x1]={..._0x13966b[0x1],[_0xa8bbfd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x250cba};},{[_0xa8bbfd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa8bbfd([0x68,0x69,0x67,0x68])}),_0x5246b0[_0xa8bbfd([0x6f,0x6e])](_0xa8bbfd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ef610=>{_0x47617c(_0x1ef610[_0xa8bbfd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ecad3=!0x0,_0x54f895(_0x1ef610[_0xa8bbfd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa8bbfd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa8bbfd([0x6c,0x6f,0x77])}),_0x4db03c[_0xa8bbfd([0x74,0x68,0x65,0x6e])](()=>{_0x1ecad3||_0x5c836a(_0xa8bbfd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5da7e1(){return _0x5246b0[_0xa8bbfd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa8bbfd([0x76,0x69,0x65,0x77])][_0xa8bbfd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa8bbfd([0x61,0x75,0x74,0x6f]);}function _0x473139(){_0x5246b0[_0xa8bbfd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa8bbfd([0x76,0x69,0x65,0x77])][_0xa8bbfd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa8bbfd([0x61,0x75,0x74,0x6f]);}}function _0x2472bc(_0x476151){const _0x3816c6=[new window[(_0xa8bbfd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x101c14=>setTimeout(_0x101c14,0x1cbb5a6f^_0x250ef5)),_0x4db03c[_0xa8bbfd([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa8bbfd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x433eeb=>{let _0x388bfc=0x0;_0x5246b0[_0xa8bbfd([0x6d,0x6f,0x64,0x65,0x6c])][_0xa8bbfd([0x6f,0x6e])](_0xa8bbfd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x220e02,_0x33c29e)=>{_0x33c29e[0x0][_0xa8bbfd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x388bfc++,_0x388bfc==(0x1cb2614b^_0x250ef5)&&(_0x433eeb(),_0x220e02[_0xa8bbfd([0x6f,0x66,0x66])]());});}))];return window[_0xa8bbfd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa8bbfd([0x72,0x61,0x63,0x65])](_0x3816c6)[_0xa8bbfd([0x74,0x68,0x65,0x6e])](()=>_0x476151);}async function _0x52894d(){await _0x4db03c,_0x5246b0[_0xa8bbfd([0x6d,0x6f,0x64,0x65,0x6c])][_0xa8bbfd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x790e72,_0x5246b0[_0xa8bbfd([0x6d,0x6f,0x64,0x65,0x6c])][_0xa8bbfd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x790e72,_0x5246b0[_0xa8bbfd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa8bbfd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b6ccb(){return window[_0xa8bbfd([0x67,0x6c,0x6f,0x62])]&&window[_0xa8bbfd([0x67,0x6c,0x6f,0x62])][_0xa8bbfd([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x2bfc9b(_0x42e97b){const _0x5999a4=_0x2b8a86();_0x5246b0[_0x5999a4]=_0xa8bbfd([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])+_0x42e97b,_0x42e97b!=_0xa8bbfd([0x56,0x61,0x6c,0x69,0x64])&&_0x52894d();}function _0x2b8a86(){const _0x26e977=window[_0xa8bbfd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa8bbfd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa8bbfd([0x6e,0x6f,0x77])]())[_0xa8bbfd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa8bbfd([0x2e]),'');let _0x4bd0e5=_0xa8bbfd([0x61]);for(let _0x342604=0x0;_0x342604<_0x26e977[_0xa8bbfd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x342604+=0x2){let _0x50f0ca=window[_0xa8bbfd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26e977[_0xa8bbfd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x342604,_0x342604+0x2));_0x50f0ca>=_0x59b7e3[_0xa8bbfd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x50f0ca-=_0x59b7e3[_0xa8bbfd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4bd0e5+=_0x59b7e3[_0x50f0ca];}return _0x4bd0e5;}function _0x55cc28(){const _0x5d0a5b=_0x511870[_0xa8bbfd([0x73,0x70,0x6c,0x69,0x74])](_0xa8bbfd([0x2e]));if(0x3!=_0x5d0a5b[_0xa8bbfd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x501472(_0x5d0a5b[0x1]);function _0x501472(_0x34875f){const _0x146ba6=_0x45167d(_0x34875f);return _0x146ba6&&_0x5913d0()?_0x146ba6:null;function _0x5913d0(){const _0x1d12d7=_0x146ba6[_0xa8bbfd([0x6a,0x74,0x69])],_0x530a75=window[_0xa8bbfd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d12d7[_0xa8bbfd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d12d7[_0xa8bbfd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x30c542={..._0x146ba6,[_0xa8bbfd([0x6a,0x74,0x69])]:_0x1d12d7[_0xa8bbfd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d12d7[_0xa8bbfd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x30c542[_0xa8bbfd([0x76,0x63])],_0x396e86(_0x30c542)==_0x530a75;}}}async function _0x552719(){let _0x16dde2=!0x0;try{const _0x58ca13=_0x511870[_0xa8bbfd([0x73,0x70,0x6c,0x69,0x74])](_0xa8bbfd([0x2e])),[_0x3a89c3,_0x17d1fa,_0x176d01]=_0x58ca13;return _0x107ce5(_0x3a89c3),await _0x6511a0(_0x3a89c3,_0x17d1fa,_0x176d01),_0x16dde2;}catch{return!0x1;}function _0x107ce5(_0x16af2b){const _0x114d33=_0x45167d(_0x16af2b);_0x114d33&&_0x114d33[_0xa8bbfd([0x61,0x6c,0x67])]==_0xa8bbfd([0x45,0x53,0x32,0x35,0x36])||(_0x16dde2=!0x1);}async function _0x6511a0(_0x5e219a,_0x46fbed,_0x690b9a){const _0x5b98d8=window[_0xa8bbfd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa8bbfd([0x66,0x72,0x6f,0x6d])](_0x12b912(_0x690b9a),_0x181da2=>_0x181da2[_0xa8bbfd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x56d5d7=new window[(_0xa8bbfd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa8bbfd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5e219a+_0xa8bbfd([0x2e])+_0x46fbed),_0x4ff056=window[_0xa8bbfd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa8bbfd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ff056)return;const _0x1d1763=await _0x4ff056[_0xa8bbfd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa8bbfd([0x6a,0x77,0x6b]),_0x155d5c,{[_0xa8bbfd([0x6e,0x61,0x6d,0x65])]:_0xa8bbfd([0x45,0x43,0x44,0x53,0x41]),[_0xa8bbfd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa8bbfd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa8bbfd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ff056[_0xa8bbfd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa8bbfd([0x6e,0x61,0x6d,0x65])]:_0xa8bbfd([0x45,0x43,0x44,0x53,0x41]),[_0xa8bbfd([0x68,0x61,0x73,0x68])]:{[_0xa8bbfd([0x6e,0x61,0x6d,0x65])]:_0xa8bbfd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d1763,_0x5b98d8,_0x56d5d7)||(_0x16dde2=!0x1);}}function _0x45167d(_0x5ab327){return _0x5ab327[_0xa8bbfd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa8bbfd([0x65,0x79]))?JSON[_0xa8bbfd([0x70,0x61,0x72,0x73,0x65])](_0x12b912(_0x5ab327)):null;}function _0x12b912(_0x16d9ff){return window[_0xa8bbfd([0x61,0x74,0x6f,0x62])](_0x16d9ff[_0xa8bbfd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa8bbfd([0x2b]))[_0xa8bbfd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa8bbfd([0x2f])));}function _0x396e86(_0x50e3a0){let _0xfa13a1=0x1505;function _0x385d1b(_0xdfb272){for(let _0x151b7d=0x0;_0x151b7d<_0xdfb272[_0xa8bbfd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x151b7d++){const _0x47cf7a=_0xdfb272[_0xa8bbfd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x151b7d);_0xfa13a1=(_0xfa13a1<<0x5)+_0xfa13a1+_0x47cf7a,_0xfa13a1&=_0xfa13a1;}}function _0x50867b(_0x431fdc){Array[_0xa8bbfd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x431fdc)?_0x431fdc[_0xa8bbfd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50867b):_0x431fdc&&typeof _0x431fdc==_0xa8bbfd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa8bbfd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x431fdc)[_0xa8bbfd([0x73,0x6f,0x72,0x74])]()[_0xa8bbfd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b1e04,_0x1ddeb9])=>{_0x385d1b(_0x3b1e04),_0x50867b(_0x1ddeb9);}):_0x385d1b(window[_0xa8bbfd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x431fdc));}return _0x50867b(_0x50e3a0),_0xfa13a1>>>0x0;}function _0x305bb1(_0x14bd91){return _0x14bd91[_0xa8bbfd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa8bbfd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa8bbfd([0x30]));}function _0x9add24(_0x150283){return _0x150283[_0xa8bbfd([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa8bbfd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa8bbfd([0x6a,0x6f,0x69,0x6e])]('');}function _0x790e72(){}function _0xa8bbfd(_0x1cca05){return _0x1cca05['map'](_0x1bb92b=>String['fromCharCode'](_0x1bb92b))['join']('');}_0x2bfc9b(await _0x2d685f());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x2bcef9,{outlineDefinitions:_0xde63ca,outlineChanges:_0x2d67ea}){this['_currentOutlineDefinitions']=_0xde63ca,this['view']['sync'](_0x2d67ea);}['_setActiveViewItem'](_0x45e9d6){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x45e9d6]&&(this['view']['activeItemIndex']=_0x45e9d6);}['_handleItemSelected'](_0x63c7f2){const _0x406a92=this['_currentOutlineDefinitions'][_0x63c7f2]['modelElement'];this['editor']['model']['change'](_0x2f21e9=>{_0x2f21e9['setSelection'](_0x406a92,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x63c7f2);}['_updateActiveDefinitionOnViewportChange'](){const _0x75a7d5=this['editor'];let _0x2520a5;for(const _0x34cb5e of _0x75a7d5['model']['document']['getRootNames']()){const _0x24f5e1=_0x75a7d5['editing']['view']['getDomRoot'](_0x34cb5e),_0x2a7d21=_0x24f5e1&&new _0x3852c5(_0x24f5e1)['getVisible']();if(_0x2a7d21){const _0x1ef4f9=new _0x3852c5(_0x675eb2['window'])['getIntersection'](_0x2a7d21);_0x1ef4f9&&(_0x2520a5=_0x1ef4f9['top']+0.25*_0x1ef4f9['height']);}}if(void 0x0===_0x2520a5)return;const _0x44f702=k(_0x75a7d5['editing'],this['_currentOutlineDefinitions'],_0x2520a5);_0x44f702?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x44f702)):this['_setActiveViewItem'](-0x1);}}function k(_0xe36f97,_0x118d79,_0x389cf8,_0x514909=0x0,_0x3415ab=_0x118d79['length']-0x1){const _0x19c63c=Math['floor'](_0x514909+(_0x3415ab-_0x514909)/0x2);if(_0x3415ab>=_0x514909){const _0x462572=_0x118d79[_0x19c63c],_0x3ccdd1=_0xe36f97['mapper']['toViewElement'](_0x462572['modelElement']);if(!_0x3ccdd1)return null;const _0x4185a2=_0xe36f97['view']['domConverter']['mapViewToDom'](_0x3ccdd1);return new _0x3852c5(_0x4185a2)['bottom']>_0x389cf8?k(_0xe36f97,_0x118d79,_0x389cf8,_0x514909,_0x19c63c-0x1):k(_0xe36f97,_0x118d79,_0x389cf8,_0x19c63c+0x1,_0x3415ab);}return _0x19c63c<0x0?null:_0x118d79[_0x19c63c];}class K extends _0x1ef299{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[I,x];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xaed5fd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xac999b;for(const _0x3499de in _0xaed5fd){const _0x4d64d3=_0x3499de,_0x16c422=_0xaed5fd[_0x4d64d3];if('documentOutlineLicenseKeyValid'==_0x16c422||'documentOutlineLicenseKeyInvalid'==_0x16c422||'documentOutlineLicenseKeyExpired'==_0x16c422||'documentOutlineLicenseKeyDomainLimit'==_0x16c422||'documentOutlineLicenseKeyNotAllowed'==_0x16c422||'documentOutlineLicenseKeyEvaluationLimit'==_0x16c422||'documentOutlineLicenseKeyUsageLimit'==_0x16c422){delete _0xaed5fd[_0x4d64d3],_0xac999b=_0x16c422,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0xac999b&&_0xaed5fd['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0xac999b&&_0xaed5fd['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0xac999b&&_0xaed5fd['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0xac999b&&_0xaed5fd['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0xac999b&&_0xaed5fd['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0xac999b&&_0xaed5fd['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class E extends _0x3f670e{['execute'](){this['editor']['model']['change'](_0x4ff227=>{this['editor']['model']['insertObject'](_0x4ff227['createElement']('tableOfContents'));});}['refresh'](){const _0x161ac1=this['editor']['model'],_0x3d6d37=_0x161ac1['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x3d6d37&&_0x161ac1['schema']['findAllowedParent'](_0x3d6d37,'tableOfContents'));}}class N extends _0x1ef299{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4eb65a=this['editor'];if(_0x4eb65a['config']['get']('headingId.modelAttributeName'))return;(function(_0x16e346){const _0x1d653d=new Map();if(_0x16e346)return _0x16e346['forEach'](_0x211888=>{'paragraph'!==_0x211888['model']&&_0x1d653d['set'](_0x211888['view'],_0x211888['model']);}),_0x1d653d['get']('h1')||_0x1d653d['set']('h1','heading1'),_0x1d653d;return _0x1d653d;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x5acd11,_0x4255d6)=>{this['_customUpcastHeadingsConversion'](_0x4255d6),this['_customDataDowncastHeadingsConversion'](_0x5acd11),_0x4eb65a['model']['schema']['isRegistered'](_0x5acd11)&&_0x4eb65a['model']['schema']['extend'](_0x5acd11,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x3925f3){this['editor']['conversion']['for']('upcast')['add'](_0x1c591f=>_0x1c591f['on']('element:'+_0x3925f3,(_0x357ced,_0x9d8126,_0x138fd3)=>{const {consumable:_0x198553,writer:_0x25a3f6}=_0x138fd3,_0x561543=_0x9d8126['viewItem']['getAttribute']('id'),_0x50e62a=_0x9d8126['modelRange']['getContainedElement']();if(_0x50e62a)return _0x561543&&_0x561543['length']||_0x50e62a['hasAttribute']('headingId')?void(_0x198553['consume'](_0x9d8126['viewItem'],{'attributes':['id']})&&_0x25a3f6['setAttribute']('headingId',_0x561543,_0x50e62a)):(_0x198553['consume'](_0x9d8126['viewItem'],{'attributes':['id']}),void _0x25a3f6['setAttribute']('headingId',_0x3d4613(),_0x50e62a));},{'priority':_0x3748c3['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x29385c){this['editor']['conversion']['for']('downcast')['add'](_0x8e17a=>_0x8e17a['on']('attribute:headingId:'+_0x29385c,(_0x2478b3,_0x417c21,_0x34daf1)=>{if(!_0x34daf1['consumable']['consume'](_0x417c21['item'],_0x2478b3['name']))return;const _0x24897b=_0x417c21['item']['getAttribute']('headingId'),_0x5cee88=_0x34daf1['mapper']['toViewElement'](_0x417c21['item']);_0x34daf1['writer']['setAttribute']('id',_0x24897b,_0x5cee88);}));}['_registerHeadingIdAttributePostfixer'](){const _0x1e9424=this['editor'],_0x18f0cd=new Set(),_0x1563c6=new Set();function _0x389bd9(_0x212240,_0x1331ca){const _0x47316b=_0x3d4613();return _0x1563c6['add'](_0x47316b),_0x212240['setAttribute']('headingId',_0x47316b,_0x1331ca),_0x47316b;}function _0x589016(_0x452057,_0x556259){_0x452057['removeAttribute']('headingId',_0x556259);}_0x1e9424['model']['document']['registerPostFixer'](_0xb80b67=>{const _0x4cd975=_0x1e9424['model']['document']['differ']['getChanges']();let _0x50e80a=!0x1;for(const _0x4ae20c of _0x4cd975)if('insert'==_0x4ae20c['type']&&_0x4ae20c['name']){if(T(_0x4ae20c['name'])){const _0x37a887=_0x4ae20c['attributes']['get']('headingId');'string'==typeof _0x37a887?_0x18f0cd['has'](_0x37a887)?(_0x389bd9(_0xb80b67,_0x4ae20c['position']['nodeAfter']),_0x50e80a=!0x0):_0x1563c6['add'](_0x37a887):(_0x389bd9(_0xb80b67,_0x4ae20c['position']['nodeAfter']),_0x50e80a=!0x0);}else'string'==typeof _0x4ae20c['attributes']['get']('headingId')&&(_0x589016(_0xb80b67,_0x4ae20c['position']['nodeAfter']),_0x50e80a=!0x0);}else{if('remove'==_0x4ae20c['type']){const _0x1ad82b=_0x4ae20c['attributes']['get']('headingId');'string'==typeof _0x1ad82b&&_0x18f0cd['delete'](_0x1ad82b);}}return _0x50e80a;}),_0x1e9424['model']['document']['on']('change',()=>{_0x1563c6['forEach'](_0x394390=>_0x18f0cd['add'](_0x394390)),_0x1563c6['clear']();});}}function T(_0x4c1b5b){return!!_0x4c1b5b['match'](/heading\d/);}class A extends _0x1ef299{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2d3cad,I,N];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x10e8bf){super(_0x10e8bf),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x31747f=this['editor'],_0x219575=_0x31747f['editing']['view']['document'];_0x31747f['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x31747f['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x219575,'click',(_0x109c06,_0x1920ae)=>{if(!_0x1920ae['target'])return;const _0x2abb9c=_0x1920ae['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x2abb9c)&&(_0x1920ae['domEvent']['preventDefault'](),_0x109c06['stop'](),this['_handleScrollToHeading'](_0x2abb9c));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x31747f['commands']['add']('insertTableOfContents',new E(_0x31747f)),(_0x31747f['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x5720e3,_0xcb0a6b)=>{this['_currentOutlineDefinitions']=_0xcb0a6b['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x31747f['model']['document'],'change',()=>{this['_trackNewToCElements']();}));}['afterInit'](){!async function(_0x95031d){const _0x35be42=_0x55b63a([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]),_0x269143=0x6b9b05fd,_0x41f1c3=0x6b9c8135^_0x269143,_0xff5908=window[_0x55b63a([0x44,0x61,0x74,0x65])][_0x55b63a([0x6e,0x6f,0x77])](),_0x5e3526=_0x95031d[_0x55b63a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17307a=new window[(_0x55b63a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51f625=>{_0x5e3526[_0x55b63a([0x6f,0x6e,0x63,0x65])](_0x55b63a([0x72,0x65,0x61,0x64,0x79]),_0x51f625);}),_0x5daa28={[_0x55b63a([0x6b,0x74,0x79])]:_0x55b63a([0x45,0x43]),[_0x55b63a([0x75,0x73,0x65])]:_0x55b63a([0x73,0x69,0x67]),[_0x55b63a([0x63,0x72,0x76])]:_0x55b63a([0x50,0x2d,0x32,0x35,0x36]),[_0x55b63a([0x78])]:_0x55b63a([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]),[_0x55b63a([0x79])]:_0x55b63a([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]),[_0x55b63a([0x61,0x6c,0x67])]:_0x55b63a([0x45,0x53,0x32,0x35,0x36])},_0x369cae=_0x5e3526[_0x55b63a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x55b63a([0x67,0x65,0x74])](_0x55b63a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb2fdd6(){let _0x316bdd,_0xaabf3b=null,_0x5edbb2=null;try{if(_0x369cae==_0x55b63a([0x47,0x50,0x4c]))return _0x55b63a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x316bdd=_0x351b6b(),!_0x316bdd)return _0x55b63a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x316bdd[_0x55b63a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5edbb2=_0x29cd76(_0x316bdd[_0x55b63a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x316bdd[_0x55b63a([0x6a,0x74,0x69])])),await _0x242549()?_0x2c7a75()?_0x285168()?_0x55b63a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2cb7cb()?(_0x316bdd[_0x55b63a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55b63a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xaabf3b=_0xffc18c(_0x55b63a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e32a7()):_0x55b63a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x55b63a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x55b63a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x55b63a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x285168(){const _0x57453b=[_0x55b63a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x55b63a([0x74,0x72,0x69,0x61,0x6c])][_0x55b63a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x316bdd[_0x55b63a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xff5908/0x3e8:0xe10*_0x41f1c3;return _0x316bdd[_0x55b63a([0x65,0x78,0x70])]<_0x57453b;}function _0x2c7a75(){const _0x283ec4=_0x316bdd[_0x55b63a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x283ec4&&(!!_0x283ec4[_0x55b63a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55b63a([0x2a]))||(!!_0x283ec4[_0x55b63a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55b63a([0x54,0x4f,0x43]))||(!!_0x283ec4[_0x55b63a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55b63a([0x50,0x50]))||!(!_0x283ec4[_0x55b63a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55b63a([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x195080()))));}function _0x2cb7cb(){const _0x46d2bd=_0x316bdd[_0x55b63a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46d2bd||0x0==_0x46d2bd[_0x55b63a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x39e5a6}=new URL(window[_0x55b63a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x46d2bd[_0x55b63a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39e5a6))return!0x0;const _0x4beeb1=_0x39e5a6[_0x55b63a([0x73,0x70,0x6c,0x69,0x74])](_0x55b63a([0x2e]));return _0x46d2bd[_0x55b63a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45be22=>_0x45be22[_0x55b63a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55b63a([0x2a])))[_0x55b63a([0x6d,0x61,0x70])](_0x2f175b=>_0x2f175b[_0x55b63a([0x73,0x70,0x6c,0x69,0x74])](_0x55b63a([0x2e])))[_0x55b63a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44f57c=>_0x44f57c[_0x55b63a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4beeb1[_0x55b63a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x55b63a([0x6d,0x61,0x70])](_0x1bdca2=>Array(_0x4beeb1[_0x55b63a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1bdca2[_0x55b63a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x55b63a([0x66,0x69,0x6c,0x6c])](_0x1bdca2[0x0]===_0x55b63a([0x2a])?_0x55b63a([0x2a]):'')[_0x55b63a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1bdca2))[_0x55b63a([0x73,0x6f,0x6d,0x65])](_0x55ec27=>_0x4beeb1[_0x55b63a([0x65,0x76,0x65,0x72,0x79])]((_0x349d07,_0x4662f9)=>_0x55ec27[_0x4662f9]===_0x349d07||_0x55ec27[_0x4662f9]===_0x55b63a([0x2a])));}function _0x1e32a7(){return _0xaabf3b&&_0x5edbb2?new window[(_0x55b63a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ca631,_0x3ef469)=>{_0xaabf3b[_0x55b63a([0x74,0x68,0x65,0x6e])](_0x2ca631,_0x3ef469),_0x5edbb2[_0x55b63a([0x74,0x68,0x65,0x6e])](_0x1bdbe5=>{_0x1bdbe5!=_0x55b63a([0x56,0x61,0x6c,0x69,0x64])&&_0x2ca631(_0x1bdbe5);},_0x3ef469);}):_0xaabf3b||_0x5edbb2||_0x55b63a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x29cd76(_0x14eb21,_0x54a9a0){return new window[(_0x55b63a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a444c=>{if(_0x5cf4a8())return _0x5a444c(_0x55b63a([0x56,0x61,0x6c,0x69,0x64]));_0x1d1338(),_0x5e3526[_0x55b63a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x55b63a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3cf4a5=!0x1;const _0x243e71=_0x3d4613();function _0xa620b8(_0x295181){return!!_0x295181&&(typeof _0x295181===_0x55b63a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x295181===_0x55b63a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x295181[_0x55b63a([0x74,0x68,0x65,0x6e])]===_0x55b63a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x295181[_0x55b63a([0x63,0x61,0x74,0x63,0x68])]===_0x55b63a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32814c(_0x596b9c){_0x3d6cf0(_0x596b9c)[_0x55b63a([0x74,0x68,0x65,0x6e])](_0x5514d4=>{if(!_0x5514d4||_0x5514d4[_0x55b63a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x55b63a([0x6f,0x6b]))return _0x55b63a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x139a5d(_0xf142bd(_0x243e71+_0x54a9a0))!=_0x5514d4[_0x55b63a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x55b63a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x55b63a([0x56,0x61,0x6c,0x69,0x64]);})[_0x55b63a([0x74,0x68,0x65,0x6e])](_0x562bbc=>(_0x4abfd6(),_0x562bbc),()=>{const _0x48603f=_0xf05363();return null==_0x48603f?(_0x4abfd6(),_0x55b63a([0x56,0x61,0x6c,0x69,0x64])):_0x55b63a(_0xff5908-_0x48603f>(0x4f9781fd^_0x269143)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x55b63a([0x74,0x68,0x65,0x6e])](_0x5a444c)[_0x55b63a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a444c(_0x55b63a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x150fad=0x6badeb7d^_0x269143;function _0x4abfd6(){const _0x57aaff=_0x55b63a([0x6c,0x6c,0x63,0x74,0x2d])+_0x139a5d(_0xf142bd(_0x14eb21)),_0x4d2b16=_0x38dffd(_0x139a5d(window[_0x55b63a([0x4d,0x61,0x74,0x68])][_0x55b63a([0x63,0x65,0x69,0x6c])](_0xff5908/_0x150fad)));window[_0x55b63a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55b63a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57aaff,_0x4d2b16);}function _0xf05363(){const _0xcd6b9=_0x55b63a([0x6c,0x6c,0x63,0x74,0x2d])+_0x139a5d(_0xf142bd(_0x14eb21)),_0x3eb3f0=window[_0x55b63a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55b63a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcd6b9);return _0x3eb3f0?window[_0x55b63a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38dffd(_0x3eb3f0),0x10)*_0x150fad:null;}function _0x3d6cf0(_0x460692){return new window[(_0x55b63a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bb331,_0x564c3f)=>{_0x460692[_0x55b63a([0x74,0x68,0x65,0x6e])](_0x2bb331,_0x564c3f),window[_0x55b63a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x564c3f,0x6b9ad13d^_0x269143);});}}_0x5e3526[_0x55b63a([0x6f,0x6e])](_0x55b63a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x8055eb,_0x2a0247)=>{if(_0x2a0247[0x0]!=_0x14eb21)return _0x5a444c(_0x55b63a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a0247[0x1]={..._0x2a0247[0x1],[_0x55b63a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x243e71};},{[_0x55b63a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55b63a([0x68,0x69,0x67,0x68])}),_0x5e3526[_0x55b63a([0x6f,0x6e])](_0x55b63a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2018b9=>{_0xa620b8(_0x2018b9[_0x55b63a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3cf4a5=!0x0,_0x32814c(_0x2018b9[_0x55b63a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x55b63a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55b63a([0x6c,0x6f,0x77])}),_0x17307a[_0x55b63a([0x74,0x68,0x65,0x6e])](()=>{_0x3cf4a5||_0x5a444c(_0x55b63a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5cf4a8(){return _0x5e3526[_0x55b63a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55b63a([0x76,0x69,0x65,0x77])][_0x55b63a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x55b63a([0x61,0x75,0x74,0x6f]);}function _0x1d1338(){_0x5e3526[_0x55b63a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55b63a([0x76,0x69,0x65,0x77])][_0x55b63a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x55b63a([0x61,0x75,0x74,0x6f]);}}function _0xffc18c(_0xf2276c){const _0x4a2ff0=[new window[(_0x55b63a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a4cc8=>setTimeout(_0x4a4cc8,0x6b923b31^_0x269143)),_0x17307a[_0x55b63a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x55b63a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x534cef=>{let _0x10f654=0x0;_0x5e3526[_0x55b63a([0x6d,0x6f,0x64,0x65,0x6c])][_0x55b63a([0x6f,0x6e])](_0x55b63a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x41f491,_0x512a93)=>{_0x512a93[0x0][_0x55b63a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x10f654++,_0x10f654==(0x6b9b0015^_0x269143)&&(_0x534cef(),_0x41f491[_0x55b63a([0x6f,0x66,0x66])]());});}))];return window[_0x55b63a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x55b63a([0x72,0x61,0x63,0x65])](_0x4a2ff0)[_0x55b63a([0x74,0x68,0x65,0x6e])](()=>_0xf2276c);}async function _0x3e317d(){await _0x17307a,_0x5e3526[_0x55b63a([0x6d,0x6f,0x64,0x65,0x6c])][_0x55b63a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x175754,_0x5e3526[_0x55b63a([0x6d,0x6f,0x64,0x65,0x6c])][_0x55b63a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x175754,_0x5e3526[_0x55b63a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x55b63a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x195080(){return window[_0x55b63a([0x67,0x6c,0x6f,0x62])]&&window[_0x55b63a([0x67,0x6c,0x6f,0x62])][_0x55b63a([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x42c0ac(_0xbba316){const _0x1d4f0a=_0x252284();_0x5e3526[_0x1d4f0a]=_0x55b63a([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])+_0xbba316,_0xbba316!=_0x55b63a([0x56,0x61,0x6c,0x69,0x64])&&_0x3e317d();}function _0x252284(){const _0x1ee09c=window[_0x55b63a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x55b63a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x55b63a([0x6e,0x6f,0x77])]())[_0x55b63a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x55b63a([0x2e]),'');let _0x2806d7=_0x55b63a([0x6d]);for(let _0x32cf02=0x0;_0x32cf02<_0x1ee09c[_0x55b63a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32cf02+=0x2){let _0x42b6bf=window[_0x55b63a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ee09c[_0x55b63a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32cf02,_0x32cf02+0x2));_0x42b6bf>=_0x35be42[_0x55b63a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42b6bf-=_0x35be42[_0x55b63a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2806d7+=_0x35be42[_0x42b6bf];}return _0x2806d7;}function _0x351b6b(){const _0x583356=_0x369cae[_0x55b63a([0x73,0x70,0x6c,0x69,0x74])](_0x55b63a([0x2e]));if(0x3!=_0x583356[_0x55b63a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d73fe(_0x583356[0x1]);function _0x3d73fe(_0x37f33a){const _0x325688=_0x17efa2(_0x37f33a);return _0x325688&&_0x2d53f9()?_0x325688:null;function _0x2d53f9(){const _0x5c81aa=_0x325688[_0x55b63a([0x6a,0x74,0x69])],_0x26ce36=window[_0x55b63a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c81aa[_0x55b63a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c81aa[_0x55b63a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3dc1f6={..._0x325688,[_0x55b63a([0x6a,0x74,0x69])]:_0x5c81aa[_0x55b63a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c81aa[_0x55b63a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3dc1f6[_0x55b63a([0x76,0x63])],_0xf142bd(_0x3dc1f6)==_0x26ce36;}}}async function _0x242549(){let _0x5037ef=!0x0;try{const _0x3cab3f=_0x369cae[_0x55b63a([0x73,0x70,0x6c,0x69,0x74])](_0x55b63a([0x2e])),[_0x5c55f7,_0xeebae0,_0x550775]=_0x3cab3f;return _0x4eb969(_0x5c55f7),await _0x45a8b7(_0x5c55f7,_0xeebae0,_0x550775),_0x5037ef;}catch{return!0x1;}function _0x4eb969(_0x57e61e){const _0x4e2703=_0x17efa2(_0x57e61e);_0x4e2703&&_0x4e2703[_0x55b63a([0x61,0x6c,0x67])]==_0x55b63a([0x45,0x53,0x32,0x35,0x36])||(_0x5037ef=!0x1);}async function _0x45a8b7(_0x53f40d,_0x1b9869,_0x561f0a){const _0x4e561b=window[_0x55b63a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x55b63a([0x66,0x72,0x6f,0x6d])](_0x143de0(_0x561f0a),_0x2b6ece=>_0x2b6ece[_0x55b63a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d1e44=new window[(_0x55b63a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x55b63a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53f40d+_0x55b63a([0x2e])+_0x1b9869),_0x45bcc6=window[_0x55b63a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x55b63a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x45bcc6)return;const _0x6cfefa=await _0x45bcc6[_0x55b63a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x55b63a([0x6a,0x77,0x6b]),_0x5daa28,{[_0x55b63a([0x6e,0x61,0x6d,0x65])]:_0x55b63a([0x45,0x43,0x44,0x53,0x41]),[_0x55b63a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x55b63a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x55b63a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x45bcc6[_0x55b63a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x55b63a([0x6e,0x61,0x6d,0x65])]:_0x55b63a([0x45,0x43,0x44,0x53,0x41]),[_0x55b63a([0x68,0x61,0x73,0x68])]:{[_0x55b63a([0x6e,0x61,0x6d,0x65])]:_0x55b63a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6cfefa,_0x4e561b,_0x2d1e44)||(_0x5037ef=!0x1);}}function _0x17efa2(_0x2d946b){return _0x2d946b[_0x55b63a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x55b63a([0x65,0x79]))?JSON[_0x55b63a([0x70,0x61,0x72,0x73,0x65])](_0x143de0(_0x2d946b)):null;}function _0x143de0(_0x516066){return window[_0x55b63a([0x61,0x74,0x6f,0x62])](_0x516066[_0x55b63a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x55b63a([0x2b]))[_0x55b63a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x55b63a([0x2f])));}function _0xf142bd(_0x57bcfb){let _0x362cce=0x1505;function _0x1a3023(_0x5584ca){for(let _0x26940b=0x0;_0x26940b<_0x5584ca[_0x55b63a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26940b++){const _0x5d1e47=_0x5584ca[_0x55b63a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26940b);_0x362cce=(_0x362cce<<0x5)+_0x362cce+_0x5d1e47,_0x362cce&=_0x362cce;}}function _0xa45c5e(_0x531edb){Array[_0x55b63a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x531edb)?_0x531edb[_0x55b63a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa45c5e):_0x531edb&&typeof _0x531edb==_0x55b63a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x55b63a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x531edb)[_0x55b63a([0x73,0x6f,0x72,0x74])]()[_0x55b63a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c0584,_0x582577])=>{_0x1a3023(_0x1c0584),_0xa45c5e(_0x582577);}):_0x1a3023(window[_0x55b63a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x531edb));}return _0xa45c5e(_0x57bcfb),_0x362cce>>>0x0;}function _0x139a5d(_0x3f5f5f){return _0x3f5f5f[_0x55b63a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x55b63a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x55b63a([0x30]));}function _0x38dffd(_0x419c1e){return _0x419c1e[_0x55b63a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x55b63a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x55b63a([0x6a,0x6f,0x69,0x6e])]('');}function _0x175754(){}function _0x55b63a(_0x154884){return _0x154884['map'](_0x452149=>String['fromCharCode'](_0x452149))['join']('');}_0x42c0ac(await _0xb2fdd6());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x1fdcdc=>{'$graveyard'!==_0x1fdcdc['rootName']&&this['editor']['editing']['reconvertItem'](_0x1fdcdc);});}['_trackNewToCElements'](){for(const _0x25832b of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x25832b['type']||'tableOfContents'!==_0x25832b['name'])return;this['_tableOfContentsElements']['add'](_0x25832b['position']['nodeAfter']);}}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x1ab131=this['editor']['conversion'];_0x1ab131['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x1ab131['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0xe24d53,{writer:_0x4f91be})=>this['_createTableOfContents'](_0x4f91be,!0x0)}),_0x1ab131['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x1c0a28,{writer:_0x393662})=>{this['_tableOfContentsElements']['add'](_0x1c0a28);const _0x2ebbb9=this['_createTableOfContents'](_0x393662);return _0x43b5b8(_0x2ebbb9,_0x393662,{'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'](_0x11b1b3,_0x2481c4=!0x1){const {locale:_0x4acda0}=this['editor'],_0x37bf9b=_0x11b1b3['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x2481c4&&{'data-table-of-contents-label':C(_0x4acda0,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x2481c4&&_0x11b1b3['insert'](_0x11b1b3['createPositionAt'](_0x37bf9b,'end'),_0x11b1b3['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x11b1b3['createText'](C(_0x4acda0,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x50c04a=_0x2481c4?'':'['+C(_0x4acda0,'Empty\x20heading')+']';let _0x1d5b0c=_0x37bf9b;return this['_currentOutlineDefinitions']['forEach']((_0x30b9d3,_0x53cc24,_0x248c85)=>{const _0x4c05d5=this['editor']['model']['hasContent'](_0x30b9d3['modelElement'],{'ignoreWhitespaces':!0x0}),_0xf0f5db=_0x4c05d5?_0x30b9d3['text']:_0x50c04a,_0x456705=_0x30b9d3['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x5da141=_0x11b1b3['createContainerElement']('a',{'href':'#'+_0x456705,...!_0x2481c4&&{'tabindex':'-1'}},[_0x11b1b3['createText'](_0xf0f5db)]),_0x190db0=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x11b1b3['setCustomProperty']('tableOfContentsHeadingIndex',_0x53cc24,_0x5da141);const _0x4051e8=_0x11b1b3['createContainerElement']('li',null,[_0x4c05d5||!_0x2481c4&&_0x190db0?_0x5da141:_0x11b1b3['createText']('')]),_0xc468c2=_0x53cc24?_0x248c85[_0x53cc24-0x1]['level']:0x0,_0x5c259f=Math['abs'](_0x30b9d3['level']-_0xc468c2);if(_0x30b9d3['level']>_0xc468c2){const _0x3034f0=P(_0x4051e8,_0x5c259f,_0x11b1b3);_0x11b1b3['insert'](_0x11b1b3['createPositionAt'](_0x1d5b0c,'end'),_0x3034f0);}else{const _0xc7a779=function(_0x420f3a,_0x245280){return _0x420f3a['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x423c7f=>_0x423c7f['is']('element','ol'))[_0x245280];}(_0x1d5b0c,_0x5c259f);_0x11b1b3['insert'](_0x11b1b3['createPositionAt'](_0xc7a779,'end'),_0x4051e8);}_0x1d5b0c=_0x4051e8;}),_0x37bf9b;}['_handleScrollToHeading'](_0x593970){const _0x13984e=this['_currentOutlineDefinitions'][_0x593970]['modelElement'];this['editor']['model']['change'](_0x41ad63=>{_0x41ad63['setSelection'](_0x13984e,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x4dd5f5,_0x35b8bd)=>{const _0x1daf24=_0x35b8bd['mapper'],_0x2ce5b9=_0x1daf24['findMappedViewAncestor'](_0x35b8bd['viewPosition']),_0x48beb5=_0x1daf24['toModelElement'](_0x2ce5b9);_0x48beb5['is']('element','tableOfContents')&&(_0x35b8bd['modelPosition']=this['editor']['model']['createPositionAt'](_0x48beb5,0x0),_0x4dd5f5['stop']());};}}function P(_0x18fa42,_0x4e987d,_0x46775d){return 0x1===_0x4e987d?_0x46775d['createContainerElement']('ol',null,[_0x18fa42]):_0x46775d['createContainerElement']('ol',null,[_0x46775d['createContainerElement']('li',null,[P(_0x18fa42,_0x4e987d-0x1,_0x46775d)])]);}class D extends _0x1ef299{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3329af=this['editor'];_0x3329af['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x2064c0=this['_createButton'](_0x39dbef);return _0x2064c0['tooltip']=!0x0,_0x2064c0;}),_0x3329af['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x2d9673)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3f2b42=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2adeb0;for(const _0x5ba64d in _0x3f2b42){const _0x1e5b82=_0x5ba64d,_0x5d0241=_0x3f2b42[_0x1e5b82];if('tableOfContentsLicenseKeyValid'==_0x5d0241||'tableOfContentsLicenseKeyInvalid'==_0x5d0241||'tableOfContentsLicenseKeyExpired'==_0x5d0241||'tableOfContentsLicenseKeyDomainLimit'==_0x5d0241||'tableOfContentsLicenseKeyNotAllowed'==_0x5d0241||'tableOfContentsLicenseKeyEvaluationLimit'==_0x5d0241||'tableOfContentsLicenseKeyUsageLimit'==_0x5d0241){delete _0x3f2b42[_0x1e5b82],_0x2adeb0=_0x5d0241,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x2adeb0&&_0x3f2b42['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x2adeb0&&_0x3f2b42['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x2adeb0&&_0x3f2b42['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x2adeb0&&_0x3f2b42['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x2adeb0&&_0x3f2b42['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x2adeb0&&_0x3f2b42['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x58cc12){const _0x56f971=this['editor'],_0x5bab59=_0x56f971['locale'],_0xd9c1fa=_0x56f971['commands']['get']('insertTableOfContents'),_0x19e8b9=new _0x58cc12(_0x5bab59);return _0x19e8b9['set']({'label':C(_0x5bab59,'Table\x20of\x20contents'),'icon':_0x193fbd}),_0x19e8b9['bind']('isEnabled')['to'](_0xd9c1fa,'isEnabled'),this['listenTo'](_0x19e8b9,'execute',()=>{_0x56f971['execute']('insertTableOfContents'),_0x56f971['editing']['view']['focus']();}),_0x19e8b9;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class H extends _0x1ef299{static get['requires'](){return[A,D];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{K as DocumentOutline,x as DocumentOutlineUI,I as DocumentOutlineUtils,N as HeadingId,H as TableOfContents,E as TableOfContentsCommand,A as TableOfContentsEditing,D as TableOfContentsUI};
|
|
23
|
+
import{Plugin as _0x2e9f80,Command as _0x2453ef}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x493bad,throttle as _0x381549}from'es-toolkit/compat';import{ModelText as _0x418b90,ModelTreeWalker as _0x4e0b3c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x37325b,diffToChanges as _0xcbadd0,scrollAncestorsToShowTarget as _0x112e23,CKEditorError as _0x579eee,global as _0x4be749,Rect as _0x3092cb,uid as _0x2078f1,priorities as _0x558fb1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x5d37c5,ButtonView as _0x15a18a,MenuBarMenuListItemButtonView as _0x3807c0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x4ba96c,toWidget as _0x26c075}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x237f6e}from'@ckeditor/ckeditor5-icons/dist/index.js';function v(_0x20c347){let _0x3e05af='';for(const _0x390642 of _0x20c347['getChildren']())_0x390642 instanceof _0x418b90&&(_0x3e05af+=_0x390642['data']);return _0x3e05af;}class I extends _0x2e9f80{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x1640a7=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x316e02=[];_0x1640a7['model']['document']['on']('change',_0x493bad(()=>{const _0x49f487=_0x316e02;_0x316e02=this['_getOutlineDefinitions']();const _0x2c3d86=_0x37325b(_0x49f487,_0x316e02,(_0x11ccbd,_0x412d33)=>_0x11ccbd['level']===_0x412d33['level']&&_0x11ccbd['text']===_0x412d33['text']&&_0x11ccbd['modelElement']===_0x412d33['modelElement']),_0xdcf5dd=_0xcbadd0(_0x2c3d86,_0x316e02),_0x2f700b=this['_getActiveHeading'](),_0x4f9c60=_0x316e02['findIndex'](_0x1549d8=>_0x1549d8['modelElement']===_0x2f700b);_0xdcf5dd['length']&&this['fire']('change',{'outlineDefinitions':_0x316e02,'activeItemIndex':_0x4f9c60,'outlineChanges':_0xdcf5dd}),this['fire']('activeItemIndex',{'index':_0x4f9c60});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x4f07a7=this['editor'],_0x33128e=[],_0x36f4d7=this['_headingNames'];for(const _0x5554ae of _0x4f07a7['model']['document']['getRootNames']())_0x2ee5a3(_0x4f07a7['model']['document']['getRoot'](_0x5554ae));function _0x2ee5a3(_0x278c4a){for(const _0x14ade0 of _0x278c4a['getChildren']())_0x14ade0['is']('element')&&(_0x36f4d7['includes'](_0x14ade0['name'])&&_0x33128e['push']({'level':_0x36f4d7['indexOf'](_0x14ade0['name'])+0x1,'text':v(_0x14ade0),'modelElement':_0x14ade0}),_0x2ee5a3(_0x14ade0));}return _0x33128e;}['_getActiveHeading'](){const _0x5e0c93=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x16d5af=new _0x4e0b3c({'direction':'backward','startPosition':_0x5e0c93});for(const _0x557631 of _0x16d5af)if(_0x557631['item']['is']('element')&&this['_headingNames']['includes'](_0x557631['item']['name']))return _0x557631['item'];}['_getHeadingNames'](){const _0x3ceb8e=this['editor']['config']['get']('documentOutline.headings');return _0x3ceb8e||function(_0x3f33e1){const _0x4ee66d=_0x3f33e1['config']['get']('heading.options');return _0x4ee66d?_0x4ee66d['reduce']((_0x5aadcd,_0x2eee53)=>('paragraph'!==_0x2eee53['model']&&_0x5aadcd['push'](_0x2eee53['model']),_0x5aadcd),[]):_0x3f33e1['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x3e2843=this['editor'],_0x2bdf2b=['h1','h2','h3','h4','h5','h6'],_0x43a0b5=[];for(const _0x1d33ed of _0x2bdf2b){const _0x76f555=_0x3e2843['editing']['view']['domConverter']['domToView'](document['createElement'](_0x1d33ed)),_0x3b6633=_0x3e2843['data']['toModel'](_0x76f555)['getChild'](0x0);_0x3b6633?.['is']('element')&&_0x43a0b5['push'](_0x3b6633['name']);}this['_headingNames']=_0x43a0b5;}}function C(_0x46a9e2,_0x30278e){const t=_0x46a9e2['t'];switch(_0x30278e){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 _0x30278e;}}class _ extends _0x5d37c5{constructor(_0x19e569,_0x1b2511=!0x1){super(_0x19e569);const _0x5ab9fb=this['bindTemplate'],_0x3429fe=_0x1b2511?'['+C(_0x19e569,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x2925e4=>!_0x2925e4),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x5ab9fb['to']('level',_0x5b97fd=>'ck-document-outline__item_level-'+_0x5b97fd),_0x5ab9fb['if']('isActive','ck-document-outline__item_active'),_0x5ab9fb['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x5ab9fb['to']('text')},'children':[{'text':_0x5ab9fb['to']('text',_0x4a5502=>_0x4a5502||_0x3429fe)}],'on':{'click':_0x5ab9fb['to']('click')}});}}class L extends _0x5d37c5{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x699110,_0x382312=!0x1,_0x4d845d){super(_0x699110),this['showEmptyHeadingText']=_0x382312,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x4d845d,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x45a91a,_0x3a2ce6,_0x5ee4b5,_0x558004)=>{this['_setActiveItem'](_0x558004,_0x5ee4b5);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x699110['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x699110,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x5bf55b){_0x5bf55b['forEach'](_0x331ffc=>{'insert'==_0x331ffc['type']?this['_insertItem'](_0x331ffc['index'],..._0x331ffc['values']):'delete'==_0x331ffc['type']&&this['_deleteItem'](_0x331ffc['index'],_0x331ffc['howMany']);});}['_setActiveItem'](_0x20fe95,_0x50e861){if(-0x1!==_0x20fe95){const _0x4fe816=this['items']['get'](_0x20fe95);_0x4fe816&&(_0x4fe816['isActive']=!0x1);}-0x1!==_0x50e861&&(this['items']['get'](_0x50e861)['isActive']=!0x0,this['_scrollToItem'](_0x50e861));}['_insertItem'](_0x172e70,..._0x4c98e8){const _0x73c6e1=_0x4c98e8['map']((_0x156248,_0xe72a67)=>{const _0x3a0a74=new _(this['locale'],this['showEmptyHeadingText']);return _0x3a0a74['text']=_0x156248['text'],_0x3a0a74['level']=_0x156248['level'],_0x172e70+_0xe72a67===this['activeItemIndex']&&(_0x3a0a74['isActive']=!0x0),_0x3a0a74;});this['items']['addMany'](_0x73c6e1,_0x172e70);}['_deleteItem'](_0x490235,_0x444349){do{this['items']['remove'](_0x490235);}while(--_0x444349);}['_handleItemClick'](_0x50d1ae){const _0x5150a8=this['items']['getIndex'](_0x50d1ae['source']);this['fire']('itemSelected',_0x5150a8);}['_scrollToItem'](_0x1de160){_0x112e23(this['items']['get'](_0x1de160)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class x extends _0x2e9f80{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x580ba0){super(_0x580ba0),this['view']=new L(_0x580ba0['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x381549(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x37857a=this['editor'],_0x112c0b=_0x37857a['plugins']['get']('DocumentOutlineUtils');let _0x1cce96=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x37857a['config']['get']('documentOutline.container'))throw new _0x579eee('document-outline-container-not-provided',{'editor':_0x37857a});_0x37857a['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x112c0b['on']('change',this['_handleOutlineChange']['bind'](this)),_0x112c0b['on']('activeItemIndex',(_0x448fc5,{index:_0x402f12})=>this['_setActiveViewItem'](_0x402f12)),this['view']['on']('itemSelected',(_0xd89524,_0x240a09)=>{_0x1cce96=!0x0,this['_handleItemSelected'](_0x240a09);}),this['view']['listenTo'](_0x4be749['document'],'scroll',()=>{_0x1cce96?_0x1cce96=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x4be749['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x3d684b){const _0x3ca5aa=_0x10226a([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]),_0x45c114=0x1cb264a3,_0x456921=0x1cb5e043^_0x45c114,_0x123aba=window[_0x10226a([0x44,0x61,0x74,0x65])][_0x10226a([0x6e,0x6f,0x77])](),_0x727216=_0x3d684b[_0x10226a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b0bbf=new window[(_0x10226a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e499d=>{_0x727216[_0x10226a([0x6f,0x6e,0x63,0x65])](_0x10226a([0x72,0x65,0x61,0x64,0x79]),_0x2e499d);}),_0x5867c0={[_0x10226a([0x6b,0x74,0x79])]:_0x10226a([0x45,0x43]),[_0x10226a([0x75,0x73,0x65])]:_0x10226a([0x73,0x69,0x67]),[_0x10226a([0x63,0x72,0x76])]:_0x10226a([0x50,0x2d,0x32,0x35,0x36]),[_0x10226a([0x78])]:_0x10226a([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]),[_0x10226a([0x79])]:_0x10226a([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]),[_0x10226a([0x61,0x6c,0x67])]:_0x10226a([0x45,0x53,0x32,0x35,0x36])},_0x2a2cf3=_0x727216[_0x10226a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x10226a([0x67,0x65,0x74])](_0x10226a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24adad(){let _0x3b270c,_0x1fbfac=null,_0x3ed9a9=null;try{if(_0x2a2cf3==_0x10226a([0x47,0x50,0x4c]))return _0x10226a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b270c=_0x5aeafb(),!_0x3b270c)return _0x10226a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b270c[_0x10226a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3ed9a9=_0x30b402(_0x3b270c[_0x10226a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b270c[_0x10226a([0x6a,0x74,0x69])])),await _0x18cab7()?_0x16db97()?_0x41523d()?_0x10226a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x8bba8d()?(_0x3b270c[_0x10226a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10226a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1fbfac=_0x42a2f1(_0x10226a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x32ddd4()):_0x10226a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x10226a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x10226a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x10226a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41523d(){const _0x16bd8b=[_0x10226a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x10226a([0x74,0x72,0x69,0x61,0x6c])][_0x10226a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b270c[_0x10226a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x123aba/0x3e8:0xe10*_0x456921;return _0x3b270c[_0x10226a([0x65,0x78,0x70])]<_0x16bd8b;}function _0x16db97(){const _0x780b3e=_0x3b270c[_0x10226a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x780b3e&&(!!_0x780b3e[_0x10226a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10226a([0x2a]))||(!!_0x780b3e[_0x10226a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10226a([0x44,0x4f]))||(!!_0x780b3e[_0x10226a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10226a([0x50,0x50]))||!(!_0x780b3e[_0x10226a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10226a([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4a3f32()))));}function _0x8bba8d(){const _0x311e0a=_0x3b270c[_0x10226a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x311e0a||0x0==_0x311e0a[_0x10226a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59af34}=new URL(window[_0x10226a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x311e0a[_0x10226a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59af34))return!0x0;const _0x1179ec=_0x59af34[_0x10226a([0x73,0x70,0x6c,0x69,0x74])](_0x10226a([0x2e]));return _0x311e0a[_0x10226a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x277a26=>_0x277a26[_0x10226a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10226a([0x2a])))[_0x10226a([0x6d,0x61,0x70])](_0x1cd8ef=>_0x1cd8ef[_0x10226a([0x73,0x70,0x6c,0x69,0x74])](_0x10226a([0x2e])))[_0x10226a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37f343=>_0x37f343[_0x10226a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1179ec[_0x10226a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10226a([0x6d,0x61,0x70])](_0xe6954e=>Array(_0x1179ec[_0x10226a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe6954e[_0x10226a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10226a([0x66,0x69,0x6c,0x6c])](_0xe6954e[0x0]===_0x10226a([0x2a])?_0x10226a([0x2a]):'')[_0x10226a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe6954e))[_0x10226a([0x73,0x6f,0x6d,0x65])](_0x442bf0=>_0x1179ec[_0x10226a([0x65,0x76,0x65,0x72,0x79])]((_0xbf786f,_0x16dbf9)=>_0x442bf0[_0x16dbf9]===_0xbf786f||_0x442bf0[_0x16dbf9]===_0x10226a([0x2a])));}function _0x32ddd4(){return _0x1fbfac&&_0x3ed9a9?new window[(_0x10226a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cbb8b,_0x3617a3)=>{_0x1fbfac[_0x10226a([0x74,0x68,0x65,0x6e])](_0x2cbb8b,_0x3617a3),_0x3ed9a9[_0x10226a([0x74,0x68,0x65,0x6e])](_0x4024f1=>{_0x4024f1!=_0x10226a([0x56,0x61,0x6c,0x69,0x64])&&_0x2cbb8b(_0x4024f1);},_0x3617a3);}):_0x1fbfac||_0x3ed9a9||_0x10226a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30b402(_0x4c508a,_0x256e0d){return new window[(_0x10226a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x100420=>{if(_0x13cf4c())return _0x100420(_0x10226a([0x56,0x61,0x6c,0x69,0x64]));_0xad8c4f(),_0x727216[_0x10226a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x10226a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2bad23=!0x1;const _0x5709d2=_0x2078f1();function _0x24f873(_0x3c79ca){return!!_0x3c79ca&&(typeof _0x3c79ca===_0x10226a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c79ca===_0x10226a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c79ca[_0x10226a([0x74,0x68,0x65,0x6e])]===_0x10226a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c79ca[_0x10226a([0x63,0x61,0x74,0x63,0x68])]===_0x10226a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29afbd(_0x2090a3){_0x1923ae(_0x2090a3)[_0x10226a([0x74,0x68,0x65,0x6e])](_0x349496=>{if(!_0x349496||_0x349496[_0x10226a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x10226a([0x6f,0x6b]))return _0x10226a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14f8a0(_0x36437f(_0x5709d2+_0x256e0d))!=_0x349496[_0x10226a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x10226a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x10226a([0x56,0x61,0x6c,0x69,0x64]);})[_0x10226a([0x74,0x68,0x65,0x6e])](_0x23cdc9=>(_0x195ae8(),_0x23cdc9),()=>{const _0x67bb01=_0x1c9db6();return null==_0x67bb01?(_0x195ae8(),_0x10226a([0x56,0x61,0x6c,0x69,0x64])):_0x10226a(_0x123aba-_0x67bb01>(0x38bee0a3^_0x45c114)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x10226a([0x74,0x68,0x65,0x6e])](_0x100420)[_0x10226a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x100420(_0x10226a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3af0bc=0x1c848a23^_0x45c114;function _0x195ae8(){const _0xec9ce4=_0x10226a([0x6c,0x6c,0x63,0x74,0x2d])+_0x14f8a0(_0x36437f(_0x4c508a)),_0x433616=_0xbef2ce(_0x14f8a0(window[_0x10226a([0x4d,0x61,0x74,0x68])][_0x10226a([0x63,0x65,0x69,0x6c])](_0x123aba/_0x3af0bc)));window[_0x10226a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10226a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xec9ce4,_0x433616);}function _0x1c9db6(){const _0x5c90e3=_0x10226a([0x6c,0x6c,0x63,0x74,0x2d])+_0x14f8a0(_0x36437f(_0x4c508a)),_0x100fe5=window[_0x10226a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10226a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c90e3);return _0x100fe5?window[_0x10226a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbef2ce(_0x100fe5),0x10)*_0x3af0bc:null;}function _0x1923ae(_0x3bc7ee){return new window[(_0x10226a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fecfb,_0x2bebb0)=>{_0x3bc7ee[_0x10226a([0x74,0x68,0x65,0x6e])](_0x1fecfb,_0x2bebb0),window[_0x10226a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2bebb0,0x1cb3b063^_0x45c114);});}}_0x727216[_0x10226a([0x6f,0x6e])](_0x10226a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44bdac,_0x4dd882)=>{if(_0x4dd882[0x0]!=_0x4c508a)return _0x100420(_0x10226a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4dd882[0x1]={..._0x4dd882[0x1],[_0x10226a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5709d2};},{[_0x10226a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10226a([0x68,0x69,0x67,0x68])}),_0x727216[_0x10226a([0x6f,0x6e])](_0x10226a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa333a1=>{_0x24f873(_0xa333a1[_0x10226a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2bad23=!0x0,_0x29afbd(_0xa333a1[_0x10226a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x10226a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10226a([0x6c,0x6f,0x77])}),_0x4b0bbf[_0x10226a([0x74,0x68,0x65,0x6e])](()=>{_0x2bad23||_0x100420(_0x10226a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x13cf4c(){return _0x727216[_0x10226a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10226a([0x76,0x69,0x65,0x77])][_0x10226a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x10226a([0x61,0x75,0x74,0x6f]);}function _0xad8c4f(){_0x727216[_0x10226a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10226a([0x76,0x69,0x65,0x77])][_0x10226a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10226a([0x61,0x75,0x74,0x6f]);}}function _0x42a2f1(_0xdef2aa){const _0x1f0a67=[new window[(_0x10226a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bde86=>setTimeout(_0x1bde86,0x1cbb5a6f^_0x45c114)),_0x4b0bbf[_0x10226a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x10226a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46f2c8=>{let _0x16c65d=0x0;_0x727216[_0x10226a([0x6d,0x6f,0x64,0x65,0x6c])][_0x10226a([0x6f,0x6e])](_0x10226a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1dacf4,_0x462c55)=>{_0x462c55[0x0][_0x10226a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16c65d++,_0x16c65d==(0x1cb2614b^_0x45c114)&&(_0x46f2c8(),_0x1dacf4[_0x10226a([0x6f,0x66,0x66])]());});}))];return window[_0x10226a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10226a([0x72,0x61,0x63,0x65])](_0x1f0a67)[_0x10226a([0x74,0x68,0x65,0x6e])](()=>_0xdef2aa);}async function _0x22c6d7(){await _0x4b0bbf,_0x727216[_0x10226a([0x6d,0x6f,0x64,0x65,0x6c])][_0x10226a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18ff07,_0x727216[_0x10226a([0x6d,0x6f,0x64,0x65,0x6c])][_0x10226a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18ff07,_0x727216[_0x10226a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x10226a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a3f32(){return window[_0x10226a([0x67,0x6c,0x6f,0x62])]&&window[_0x10226a([0x67,0x6c,0x6f,0x62])][_0x10226a([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1e3aff(_0x398f81){const _0x241e68=_0xefe7ef();_0x727216[_0x241e68]=_0x10226a([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])+_0x398f81,_0x398f81!=_0x10226a([0x56,0x61,0x6c,0x69,0x64])&&_0x22c6d7();}function _0xefe7ef(){const _0x1ebbac=window[_0x10226a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x10226a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x10226a([0x6e,0x6f,0x77])]())[_0x10226a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x10226a([0x2e]),'');let _0x381f06=_0x10226a([0x61]);for(let _0x57947f=0x0;_0x57947f<_0x1ebbac[_0x10226a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57947f+=0x2){let _0x4008fc=window[_0x10226a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ebbac[_0x10226a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57947f,_0x57947f+0x2));_0x4008fc>=_0x3ca5aa[_0x10226a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4008fc-=_0x3ca5aa[_0x10226a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x381f06+=_0x3ca5aa[_0x4008fc];}return _0x381f06;}function _0x5aeafb(){const _0x353706=_0x2a2cf3[_0x10226a([0x73,0x70,0x6c,0x69,0x74])](_0x10226a([0x2e]));if(0x3!=_0x353706[_0x10226a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48f278(_0x353706[0x1]);function _0x48f278(_0x3262df){const _0x36181b=_0x5c0ee7(_0x3262df);return _0x36181b&&_0x1e4cbd()?_0x36181b:null;function _0x1e4cbd(){const _0x421495=_0x36181b[_0x10226a([0x6a,0x74,0x69])],_0x5f4198=window[_0x10226a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x421495[_0x10226a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x421495[_0x10226a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39c97a={..._0x36181b,[_0x10226a([0x6a,0x74,0x69])]:_0x421495[_0x10226a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x421495[_0x10226a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39c97a[_0x10226a([0x76,0x63])],_0x36437f(_0x39c97a)==_0x5f4198;}}}async function _0x18cab7(){let _0x4bc73a=!0x0;try{const _0x1b1c58=_0x2a2cf3[_0x10226a([0x73,0x70,0x6c,0x69,0x74])](_0x10226a([0x2e])),[_0x30e5cb,_0x303242,_0xd389f7]=_0x1b1c58;return _0x2fe25e(_0x30e5cb),await _0x1b326d(_0x30e5cb,_0x303242,_0xd389f7),_0x4bc73a;}catch{return!0x1;}function _0x2fe25e(_0x1591f6){const _0x37d565=_0x5c0ee7(_0x1591f6);_0x37d565&&_0x37d565[_0x10226a([0x61,0x6c,0x67])]==_0x10226a([0x45,0x53,0x32,0x35,0x36])||(_0x4bc73a=!0x1);}async function _0x1b326d(_0x4fcebf,_0x2b93c9,_0x25ec48){const _0x3ee849=window[_0x10226a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x10226a([0x66,0x72,0x6f,0x6d])](_0x302d72(_0x25ec48),_0xb84237=>_0xb84237[_0x10226a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x453203=new window[(_0x10226a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x10226a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4fcebf+_0x10226a([0x2e])+_0x2b93c9),_0x5dece5=window[_0x10226a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x10226a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5dece5)return;const _0x299f3d=await _0x5dece5[_0x10226a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x10226a([0x6a,0x77,0x6b]),_0x5867c0,{[_0x10226a([0x6e,0x61,0x6d,0x65])]:_0x10226a([0x45,0x43,0x44,0x53,0x41]),[_0x10226a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x10226a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x10226a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5dece5[_0x10226a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x10226a([0x6e,0x61,0x6d,0x65])]:_0x10226a([0x45,0x43,0x44,0x53,0x41]),[_0x10226a([0x68,0x61,0x73,0x68])]:{[_0x10226a([0x6e,0x61,0x6d,0x65])]:_0x10226a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x299f3d,_0x3ee849,_0x453203)||(_0x4bc73a=!0x1);}}function _0x5c0ee7(_0x3bfb9a){return _0x3bfb9a[_0x10226a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x10226a([0x65,0x79]))?JSON[_0x10226a([0x70,0x61,0x72,0x73,0x65])](_0x302d72(_0x3bfb9a)):null;}function _0x302d72(_0x1ae0e7){return window[_0x10226a([0x61,0x74,0x6f,0x62])](_0x1ae0e7[_0x10226a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x10226a([0x2b]))[_0x10226a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x10226a([0x2f])));}function _0x36437f(_0x2da920){let _0x1f1c9d=0x1505;function _0x57face(_0x3a654a){for(let _0x257b2e=0x0;_0x257b2e<_0x3a654a[_0x10226a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x257b2e++){const _0x16e197=_0x3a654a[_0x10226a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x257b2e);_0x1f1c9d=(_0x1f1c9d<<0x5)+_0x1f1c9d+_0x16e197,_0x1f1c9d&=_0x1f1c9d;}}function _0x862bc5(_0x4c19ad){Array[_0x10226a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4c19ad)?_0x4c19ad[_0x10226a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x862bc5):_0x4c19ad&&typeof _0x4c19ad==_0x10226a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x10226a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4c19ad)[_0x10226a([0x73,0x6f,0x72,0x74])]()[_0x10226a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x586701,_0x1df3d2])=>{_0x57face(_0x586701),_0x862bc5(_0x1df3d2);}):_0x57face(window[_0x10226a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4c19ad));}return _0x862bc5(_0x2da920),_0x1f1c9d>>>0x0;}function _0x14f8a0(_0x20ea4f){return _0x20ea4f[_0x10226a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x10226a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x10226a([0x30]));}function _0xbef2ce(_0x3626a8){return _0x3626a8[_0x10226a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x10226a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x10226a([0x6a,0x6f,0x69,0x6e])]('');}function _0x18ff07(){}function _0x10226a(_0x77af0b){return _0x77af0b['map'](_0x3271ed=>String['fromCharCode'](_0x3271ed))['join']('');}_0x1e3aff(await _0x24adad());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x40da19,{outlineDefinitions:_0x1ccccb,outlineChanges:_0x50ce6a}){this['_currentOutlineDefinitions']=_0x1ccccb,this['view']['sync'](_0x50ce6a);}['_setActiveViewItem'](_0x179d5c){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x179d5c]&&(this['view']['activeItemIndex']=_0x179d5c);}['_handleItemSelected'](_0x58d36e){const _0x44d76=this['_currentOutlineDefinitions'][_0x58d36e]['modelElement'];this['editor']['model']['change'](_0x14d389=>{_0x14d389['setSelection'](_0x44d76,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x58d36e);}['_updateActiveDefinitionOnViewportChange'](){const _0x1f18d5=this['editor'];let _0x5d466e;for(const _0x177c30 of _0x1f18d5['model']['document']['getRootNames']()){const _0x3d4c0b=_0x1f18d5['editing']['view']['getDomRoot'](_0x177c30),_0x5bad89=_0x3d4c0b&&new _0x3092cb(_0x3d4c0b)['getVisible']();if(_0x5bad89){const _0xdc0fef=new _0x3092cb(_0x4be749['window'])['getIntersection'](_0x5bad89);_0xdc0fef&&(_0x5d466e=_0xdc0fef['top']+0.25*_0xdc0fef['height']);}}if(void 0x0===_0x5d466e)return;const _0x28416a=k(_0x1f18d5['editing'],this['_currentOutlineDefinitions'],_0x5d466e);_0x28416a?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x28416a)):this['_setActiveViewItem'](-0x1);}}function k(_0x3a3704,_0x1a7f56,_0x336106,_0x3b50ca=0x0,_0x4dc317=_0x1a7f56['length']-0x1){const _0x116e34=Math['floor'](_0x3b50ca+(_0x4dc317-_0x3b50ca)/0x2);if(_0x4dc317>=_0x3b50ca){const _0x5b8526=_0x1a7f56[_0x116e34],_0x2b8161=_0x3a3704['mapper']['toViewElement'](_0x5b8526['modelElement']);if(!_0x2b8161)return null;const _0x39be82=_0x3a3704['view']['domConverter']['mapViewToDom'](_0x2b8161);return new _0x3092cb(_0x39be82)['bottom']>_0x336106?k(_0x3a3704,_0x1a7f56,_0x336106,_0x3b50ca,_0x116e34-0x1):k(_0x3a3704,_0x1a7f56,_0x336106,_0x116e34+0x1,_0x4dc317);}return _0x116e34<0x0?null:_0x1a7f56[_0x116e34];}class K extends _0x2e9f80{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[I,x];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xafe3e9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x363be3;for(const _0x248992 in _0xafe3e9){const _0xe5b0b7=_0x248992,_0x11b24b=_0xafe3e9[_0xe5b0b7];if('documentOutlineLicenseKeyValid'==_0x11b24b||'documentOutlineLicenseKeyInvalid'==_0x11b24b||'documentOutlineLicenseKeyExpired'==_0x11b24b||'documentOutlineLicenseKeyDomainLimit'==_0x11b24b||'documentOutlineLicenseKeyNotAllowed'==_0x11b24b||'documentOutlineLicenseKeyEvaluationLimit'==_0x11b24b||'documentOutlineLicenseKeyUsageLimit'==_0x11b24b){delete _0xafe3e9[_0xe5b0b7],_0x363be3=_0x11b24b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x363be3&&_0xafe3e9['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x363be3&&_0xafe3e9['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x363be3&&_0xafe3e9['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x363be3&&_0xafe3e9['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x363be3&&_0xafe3e9['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x363be3&&_0xafe3e9['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class E extends _0x2453ef{['execute'](){this['editor']['model']['change'](_0xef8483=>{this['editor']['model']['insertObject'](_0xef8483['createElement']('tableOfContents'));});}['refresh'](){const _0x4523d4=this['editor']['model'],_0x2b763b=_0x4523d4['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x2b763b&&_0x4523d4['schema']['findAllowedParent'](_0x2b763b,'tableOfContents'));}}class N extends _0x2e9f80{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x289208=this['editor'];if(_0x289208['config']['get']('headingId.modelAttributeName'))return;(function(_0x44a46a){const _0x368d7c=new Map();if(_0x44a46a)return _0x44a46a['forEach'](_0x2bc06a=>{'paragraph'!==_0x2bc06a['model']&&_0x368d7c['set'](_0x2bc06a['view'],_0x2bc06a['model']);}),_0x368d7c['get']('h1')||_0x368d7c['set']('h1','heading1'),_0x368d7c;return _0x368d7c;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x40b2e6,_0x20270e)=>{this['_customUpcastHeadingsConversion'](_0x20270e),this['_customDataDowncastHeadingsConversion'](_0x40b2e6),_0x289208['model']['schema']['isRegistered'](_0x40b2e6)&&_0x289208['model']['schema']['extend'](_0x40b2e6,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x4de87e){this['editor']['conversion']['for']('upcast')['add'](_0x48c950=>_0x48c950['on']('element:'+_0x4de87e,(_0xfb2ad5,_0x425913,_0x5f2545)=>{const {consumable:_0x3b6fa8,writer:_0x1fd554}=_0x5f2545,_0x3dff94=_0x425913['viewItem']['getAttribute']('id'),_0x5d221a=_0x425913['modelRange']['getContainedElement']();if(_0x5d221a)return _0x3dff94&&_0x3dff94['length']||_0x5d221a['hasAttribute']('headingId')?void(_0x3b6fa8['consume'](_0x425913['viewItem'],{'attributes':['id']})&&_0x1fd554['setAttribute']('headingId',_0x3dff94,_0x5d221a)):(_0x3b6fa8['consume'](_0x425913['viewItem'],{'attributes':['id']}),void _0x1fd554['setAttribute']('headingId',_0x2078f1(),_0x5d221a));},{'priority':_0x558fb1['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x27e2e7){this['editor']['conversion']['for']('downcast')['add'](_0x592da8=>_0x592da8['on']('attribute:headingId:'+_0x27e2e7,(_0x4c09d8,_0x2df901,_0x12ceb9)=>{if(!_0x12ceb9['consumable']['consume'](_0x2df901['item'],_0x4c09d8['name']))return;const _0x11ee2f=_0x2df901['item']['getAttribute']('headingId'),_0x1dbf7c=_0x12ceb9['mapper']['toViewElement'](_0x2df901['item']);_0x12ceb9['writer']['setAttribute']('id',_0x11ee2f,_0x1dbf7c);}));}['_registerHeadingIdAttributePostfixer'](){const _0x4da77d=this['editor'],_0x36cf26=new Set(),_0x4f8a23=new Set();function _0x1c1886(_0x1249e8,_0x5035e5){const _0xb68dd1=_0x2078f1();return _0x4f8a23['add'](_0xb68dd1),_0x1249e8['setAttribute']('headingId',_0xb68dd1,_0x5035e5),_0xb68dd1;}function _0x5cc981(_0x5b84f5,_0x205d7b){_0x5b84f5['removeAttribute']('headingId',_0x205d7b);}_0x4da77d['model']['document']['registerPostFixer'](_0x3c1599=>{const _0x31fcf0=_0x4da77d['model']['document']['differ']['getChanges']();let _0x1c8cd6=!0x1;for(const _0x66ccbf of _0x31fcf0)if('insert'==_0x66ccbf['type']&&_0x66ccbf['name']){if(T(_0x66ccbf['name'])){const _0x246031=_0x66ccbf['attributes']['get']('headingId');'string'==typeof _0x246031?_0x36cf26['has'](_0x246031)?(_0x1c1886(_0x3c1599,_0x66ccbf['position']['nodeAfter']),_0x1c8cd6=!0x0):_0x4f8a23['add'](_0x246031):(_0x1c1886(_0x3c1599,_0x66ccbf['position']['nodeAfter']),_0x1c8cd6=!0x0);}else'string'==typeof _0x66ccbf['attributes']['get']('headingId')&&(_0x5cc981(_0x3c1599,_0x66ccbf['position']['nodeAfter']),_0x1c8cd6=!0x0);}else{if('remove'==_0x66ccbf['type']){const _0x5af0d7=_0x66ccbf['attributes']['get']('headingId');'string'==typeof _0x5af0d7&&_0x36cf26['delete'](_0x5af0d7);}}return _0x1c8cd6;}),_0x4da77d['model']['document']['on']('change',()=>{_0x4f8a23['forEach'](_0x57d57a=>_0x36cf26['add'](_0x57d57a)),_0x4f8a23['clear']();});}}function T(_0x56f6ad){return!!_0x56f6ad['match'](/heading\d/);}class A extends _0x2e9f80{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4ba96c,I,N];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x1e494a){super(_0x1e494a),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x31ce38=this['editor'],_0x47c82d=_0x31ce38['editing']['view']['document'];_0x31ce38['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x31ce38['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x47c82d,'click',(_0x207b83,_0x9c2ebc)=>{if(!_0x9c2ebc['target'])return;const _0xb12d10=_0x9c2ebc['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0xb12d10)&&(_0x9c2ebc['domEvent']['preventDefault'](),_0x207b83['stop'](),this['_handleScrollToHeading'](_0xb12d10));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x31ce38['commands']['add']('insertTableOfContents',new E(_0x31ce38)),(_0x31ce38['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x14797e,_0xf4e9f1)=>{this['_currentOutlineDefinitions']=_0xf4e9f1['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x31ce38['model']['document'],'change',()=>{this['_trackNewToCElements']();}));}['afterInit'](){!async function(_0x826a56){const _0x3e4c85=_0x27b035([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]),_0x112675=0x6b9b05fd,_0x43e74f=0x6b9c811d^_0x112675,_0x5ca1fa=window[_0x27b035([0x44,0x61,0x74,0x65])][_0x27b035([0x6e,0x6f,0x77])](),_0x26141f=_0x826a56[_0x27b035([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2316dd=new window[(_0x27b035([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42f03c=>{_0x26141f[_0x27b035([0x6f,0x6e,0x63,0x65])](_0x27b035([0x72,0x65,0x61,0x64,0x79]),_0x42f03c);}),_0x352ea3={[_0x27b035([0x6b,0x74,0x79])]:_0x27b035([0x45,0x43]),[_0x27b035([0x75,0x73,0x65])]:_0x27b035([0x73,0x69,0x67]),[_0x27b035([0x63,0x72,0x76])]:_0x27b035([0x50,0x2d,0x32,0x35,0x36]),[_0x27b035([0x78])]:_0x27b035([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]),[_0x27b035([0x79])]:_0x27b035([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]),[_0x27b035([0x61,0x6c,0x67])]:_0x27b035([0x45,0x53,0x32,0x35,0x36])},_0x4afb99=_0x26141f[_0x27b035([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27b035([0x67,0x65,0x74])](_0x27b035([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4f649b(){let _0x4b7b68,_0x4aa54c=null,_0x1640eb=null;try{if(_0x4afb99==_0x27b035([0x47,0x50,0x4c]))return _0x27b035([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b7b68=_0xbd0d0(),!_0x4b7b68)return _0x27b035([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b7b68[_0x27b035([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1640eb=_0x2fccfa(_0x4b7b68[_0x27b035([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b7b68[_0x27b035([0x6a,0x74,0x69])])),await _0x3509e2()?_0x3e7004()?_0x295fb0()?_0x27b035([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5572ee()?(_0x4b7b68[_0x27b035([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27b035([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4aa54c=_0x42dd8a(_0x27b035([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d6c48()):_0x27b035([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27b035([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27b035([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x27b035([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x295fb0(){const _0x455c2b=[_0x27b035([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27b035([0x74,0x72,0x69,0x61,0x6c])][_0x27b035([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b7b68[_0x27b035([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ca1fa/0x3e8:0xe10*_0x43e74f;return _0x4b7b68[_0x27b035([0x65,0x78,0x70])]<_0x455c2b;}function _0x3e7004(){const _0x40f3af=_0x4b7b68[_0x27b035([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x40f3af&&(!!_0x40f3af[_0x27b035([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27b035([0x2a]))||(!!_0x40f3af[_0x27b035([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27b035([0x54,0x4f,0x43]))||(!!_0x40f3af[_0x27b035([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27b035([0x50,0x50]))||!(!_0x40f3af[_0x27b035([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27b035([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x2510fb()))));}function _0x5572ee(){const _0x3db49a=_0x4b7b68[_0x27b035([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3db49a||0x0==_0x3db49a[_0x27b035([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5edd40}=new URL(window[_0x27b035([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3db49a[_0x27b035([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5edd40))return!0x0;const _0x6051af=_0x5edd40[_0x27b035([0x73,0x70,0x6c,0x69,0x74])](_0x27b035([0x2e]));return _0x3db49a[_0x27b035([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5690b8=>_0x5690b8[_0x27b035([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27b035([0x2a])))[_0x27b035([0x6d,0x61,0x70])](_0x715941=>_0x715941[_0x27b035([0x73,0x70,0x6c,0x69,0x74])](_0x27b035([0x2e])))[_0x27b035([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fb7fb=>_0x2fb7fb[_0x27b035([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6051af[_0x27b035([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27b035([0x6d,0x61,0x70])](_0x5d6df6=>Array(_0x6051af[_0x27b035([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d6df6[_0x27b035([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27b035([0x66,0x69,0x6c,0x6c])](_0x5d6df6[0x0]===_0x27b035([0x2a])?_0x27b035([0x2a]):'')[_0x27b035([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d6df6))[_0x27b035([0x73,0x6f,0x6d,0x65])](_0x2ca971=>_0x6051af[_0x27b035([0x65,0x76,0x65,0x72,0x79])]((_0x2e407b,_0x1f5525)=>_0x2ca971[_0x1f5525]===_0x2e407b||_0x2ca971[_0x1f5525]===_0x27b035([0x2a])));}function _0x3d6c48(){return _0x4aa54c&&_0x1640eb?new window[(_0x27b035([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cb1d3,_0x514a17)=>{_0x4aa54c[_0x27b035([0x74,0x68,0x65,0x6e])](_0x3cb1d3,_0x514a17),_0x1640eb[_0x27b035([0x74,0x68,0x65,0x6e])](_0x387cc5=>{_0x387cc5!=_0x27b035([0x56,0x61,0x6c,0x69,0x64])&&_0x3cb1d3(_0x387cc5);},_0x514a17);}):_0x4aa54c||_0x1640eb||_0x27b035([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2fccfa(_0xd98621,_0x3ad008){return new window[(_0x27b035([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x403575=>{if(_0x47707e())return _0x403575(_0x27b035([0x56,0x61,0x6c,0x69,0x64]));_0x59c97a(),_0x26141f[_0x27b035([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27b035([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x48d345=!0x1;const _0x4ca455=_0x2078f1();function _0x269c19(_0x1b69ec){return!!_0x1b69ec&&(typeof _0x1b69ec===_0x27b035([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b69ec===_0x27b035([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b69ec[_0x27b035([0x74,0x68,0x65,0x6e])]===_0x27b035([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b69ec[_0x27b035([0x63,0x61,0x74,0x63,0x68])]===_0x27b035([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e9723(_0xf2bc2e){_0x52d6c0(_0xf2bc2e)[_0x27b035([0x74,0x68,0x65,0x6e])](_0x329cfe=>{if(!_0x329cfe||_0x329cfe[_0x27b035([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27b035([0x6f,0x6b]))return _0x27b035([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x512bff(_0x59f6a7(_0x4ca455+_0x3ad008))!=_0x329cfe[_0x27b035([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27b035([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27b035([0x56,0x61,0x6c,0x69,0x64]);})[_0x27b035([0x74,0x68,0x65,0x6e])](_0x1bab98=>(_0x1ba90d(),_0x1bab98),()=>{const _0x3ab00e=_0x1a576c();return null==_0x3ab00e?(_0x1ba90d(),_0x27b035([0x56,0x61,0x6c,0x69,0x64])):_0x27b035(_0x5ca1fa-_0x3ab00e>(0x4f9781fd^_0x112675)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27b035([0x74,0x68,0x65,0x6e])](_0x403575)[_0x27b035([0x63,0x61,0x74,0x63,0x68])](()=>{_0x403575(_0x27b035([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x554e15=0x6badeb7d^_0x112675;function _0x1ba90d(){const _0x4abaa9=_0x27b035([0x6c,0x6c,0x63,0x74,0x2d])+_0x512bff(_0x59f6a7(_0xd98621)),_0x2f2c6f=_0x3f6276(_0x512bff(window[_0x27b035([0x4d,0x61,0x74,0x68])][_0x27b035([0x63,0x65,0x69,0x6c])](_0x5ca1fa/_0x554e15)));window[_0x27b035([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27b035([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4abaa9,_0x2f2c6f);}function _0x1a576c(){const _0x6b4cc0=_0x27b035([0x6c,0x6c,0x63,0x74,0x2d])+_0x512bff(_0x59f6a7(_0xd98621)),_0x170463=window[_0x27b035([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27b035([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6b4cc0);return _0x170463?window[_0x27b035([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f6276(_0x170463),0x10)*_0x554e15:null;}function _0x52d6c0(_0x2ab126){return new window[(_0x27b035([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c9cb3,_0x5f3bb7)=>{_0x2ab126[_0x27b035([0x74,0x68,0x65,0x6e])](_0x3c9cb3,_0x5f3bb7),window[_0x27b035([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f3bb7,0x6b9ad13d^_0x112675);});}}_0x26141f[_0x27b035([0x6f,0x6e])](_0x27b035([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2cc2b5,_0x3008f9)=>{if(_0x3008f9[0x0]!=_0xd98621)return _0x403575(_0x27b035([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3008f9[0x1]={..._0x3008f9[0x1],[_0x27b035([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ca455};},{[_0x27b035([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27b035([0x68,0x69,0x67,0x68])}),_0x26141f[_0x27b035([0x6f,0x6e])](_0x27b035([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e19e4=>{_0x269c19(_0x4e19e4[_0x27b035([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x48d345=!0x0,_0x1e9723(_0x4e19e4[_0x27b035([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27b035([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27b035([0x6c,0x6f,0x77])}),_0x2316dd[_0x27b035([0x74,0x68,0x65,0x6e])](()=>{_0x48d345||_0x403575(_0x27b035([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47707e(){return _0x26141f[_0x27b035([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27b035([0x76,0x69,0x65,0x77])][_0x27b035([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27b035([0x61,0x75,0x74,0x6f]);}function _0x59c97a(){_0x26141f[_0x27b035([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27b035([0x76,0x69,0x65,0x77])][_0x27b035([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27b035([0x61,0x75,0x74,0x6f]);}}function _0x42dd8a(_0x2b37c6){const _0x2de676=[new window[(_0x27b035([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x218146=>setTimeout(_0x218146,0x6b923b31^_0x112675)),_0x2316dd[_0x27b035([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27b035([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a3229=>{let _0x27baba=0x0;_0x26141f[_0x27b035([0x6d,0x6f,0x64,0x65,0x6c])][_0x27b035([0x6f,0x6e])](_0x27b035([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd0c023,_0x22e96d)=>{_0x22e96d[0x0][_0x27b035([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x27baba++,_0x27baba==(0x6b9b0015^_0x112675)&&(_0x3a3229(),_0xd0c023[_0x27b035([0x6f,0x66,0x66])]());});}))];return window[_0x27b035([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27b035([0x72,0x61,0x63,0x65])](_0x2de676)[_0x27b035([0x74,0x68,0x65,0x6e])](()=>_0x2b37c6);}async function _0x83b288(){await _0x2316dd,_0x26141f[_0x27b035([0x6d,0x6f,0x64,0x65,0x6c])][_0x27b035([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xac878f,_0x26141f[_0x27b035([0x6d,0x6f,0x64,0x65,0x6c])][_0x27b035([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xac878f,_0x26141f[_0x27b035([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27b035([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2510fb(){return window[_0x27b035([0x67,0x6c,0x6f,0x62])]&&window[_0x27b035([0x67,0x6c,0x6f,0x62])][_0x27b035([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1c76fe(_0x530b78){const _0x332149=_0x5c8ada();_0x26141f[_0x332149]=_0x27b035([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])+_0x530b78,_0x530b78!=_0x27b035([0x56,0x61,0x6c,0x69,0x64])&&_0x83b288();}function _0x5c8ada(){const _0x379431=window[_0x27b035([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27b035([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27b035([0x6e,0x6f,0x77])]())[_0x27b035([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27b035([0x2e]),'');let _0x5f47db=_0x27b035([0x6d]);for(let _0x56afb2=0x0;_0x56afb2<_0x379431[_0x27b035([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56afb2+=0x2){let _0x162f70=window[_0x27b035([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x379431[_0x27b035([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56afb2,_0x56afb2+0x2));_0x162f70>=_0x3e4c85[_0x27b035([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x162f70-=_0x3e4c85[_0x27b035([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5f47db+=_0x3e4c85[_0x162f70];}return _0x5f47db;}function _0xbd0d0(){const _0x428a0e=_0x4afb99[_0x27b035([0x73,0x70,0x6c,0x69,0x74])](_0x27b035([0x2e]));if(0x3!=_0x428a0e[_0x27b035([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x33a0ae(_0x428a0e[0x1]);function _0x33a0ae(_0x8e2a37){const _0x50999b=_0x546422(_0x8e2a37);return _0x50999b&&_0x2acd2e()?_0x50999b:null;function _0x2acd2e(){const _0x1c29b1=_0x50999b[_0x27b035([0x6a,0x74,0x69])],_0x3b8fe3=window[_0x27b035([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c29b1[_0x27b035([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c29b1[_0x27b035([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x35de26={..._0x50999b,[_0x27b035([0x6a,0x74,0x69])]:_0x1c29b1[_0x27b035([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1c29b1[_0x27b035([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x35de26[_0x27b035([0x76,0x63])],_0x59f6a7(_0x35de26)==_0x3b8fe3;}}}async function _0x3509e2(){let _0x16b0b7=!0x0;try{const _0x54a073=_0x4afb99[_0x27b035([0x73,0x70,0x6c,0x69,0x74])](_0x27b035([0x2e])),[_0x2c77cd,_0x2bd8df,_0x374c73]=_0x54a073;return _0xbab35d(_0x2c77cd),await _0x4646eb(_0x2c77cd,_0x2bd8df,_0x374c73),_0x16b0b7;}catch{return!0x1;}function _0xbab35d(_0x56e4cd){const _0x2ad8dd=_0x546422(_0x56e4cd);_0x2ad8dd&&_0x2ad8dd[_0x27b035([0x61,0x6c,0x67])]==_0x27b035([0x45,0x53,0x32,0x35,0x36])||(_0x16b0b7=!0x1);}async function _0x4646eb(_0x10ceab,_0x5f55ae,_0x11bdd9){const _0x117197=window[_0x27b035([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27b035([0x66,0x72,0x6f,0x6d])](_0x2e38bc(_0x11bdd9),_0x38dfdc=>_0x38dfdc[_0x27b035([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x44481f=new window[(_0x27b035([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27b035([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10ceab+_0x27b035([0x2e])+_0x5f55ae),_0x44f25d=window[_0x27b035([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27b035([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x44f25d)return;const _0x57eba8=await _0x44f25d[_0x27b035([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27b035([0x6a,0x77,0x6b]),_0x352ea3,{[_0x27b035([0x6e,0x61,0x6d,0x65])]:_0x27b035([0x45,0x43,0x44,0x53,0x41]),[_0x27b035([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27b035([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27b035([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x44f25d[_0x27b035([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27b035([0x6e,0x61,0x6d,0x65])]:_0x27b035([0x45,0x43,0x44,0x53,0x41]),[_0x27b035([0x68,0x61,0x73,0x68])]:{[_0x27b035([0x6e,0x61,0x6d,0x65])]:_0x27b035([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x57eba8,_0x117197,_0x44481f)||(_0x16b0b7=!0x1);}}function _0x546422(_0x882adf){return _0x882adf[_0x27b035([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27b035([0x65,0x79]))?JSON[_0x27b035([0x70,0x61,0x72,0x73,0x65])](_0x2e38bc(_0x882adf)):null;}function _0x2e38bc(_0x3a4fe6){return window[_0x27b035([0x61,0x74,0x6f,0x62])](_0x3a4fe6[_0x27b035([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27b035([0x2b]))[_0x27b035([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27b035([0x2f])));}function _0x59f6a7(_0x48e492){let _0x1dafac=0x1505;function _0x49b010(_0x17ac30){for(let _0x24c20b=0x0;_0x24c20b<_0x17ac30[_0x27b035([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24c20b++){const _0x12c4da=_0x17ac30[_0x27b035([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24c20b);_0x1dafac=(_0x1dafac<<0x5)+_0x1dafac+_0x12c4da,_0x1dafac&=_0x1dafac;}}function _0x288022(_0x409a74){Array[_0x27b035([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x409a74)?_0x409a74[_0x27b035([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x288022):_0x409a74&&typeof _0x409a74==_0x27b035([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27b035([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x409a74)[_0x27b035([0x73,0x6f,0x72,0x74])]()[_0x27b035([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1275e5,_0xdf0933])=>{_0x49b010(_0x1275e5),_0x288022(_0xdf0933);}):_0x49b010(window[_0x27b035([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x409a74));}return _0x288022(_0x48e492),_0x1dafac>>>0x0;}function _0x512bff(_0x352391){return _0x352391[_0x27b035([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27b035([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27b035([0x30]));}function _0x3f6276(_0x128f64){return _0x128f64[_0x27b035([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27b035([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27b035([0x6a,0x6f,0x69,0x6e])]('');}function _0xac878f(){}function _0x27b035(_0x48d8a2){return _0x48d8a2['map'](_0x2a28eb=>String['fromCharCode'](_0x2a28eb))['join']('');}_0x1c76fe(await _0x4f649b());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x42f8e4=>{'$graveyard'!==_0x42f8e4['rootName']&&this['editor']['editing']['reconvertItem'](_0x42f8e4);});}['_trackNewToCElements'](){for(const _0x323c21 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x323c21['type']||'tableOfContents'!==_0x323c21['name'])return;this['_tableOfContentsElements']['add'](_0x323c21['position']['nodeAfter']);}}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x2629c2=this['editor']['conversion'];_0x2629c2['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x2629c2['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x1a4611,{writer:_0x492bfd})=>this['_createTableOfContents'](_0x492bfd,!0x0)}),_0x2629c2['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x265da4,{writer:_0x2bfa4a})=>{this['_tableOfContentsElements']['add'](_0x265da4);const _0x38f1e5=this['_createTableOfContents'](_0x2bfa4a);return _0x26c075(_0x38f1e5,_0x2bfa4a,{'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'](_0x4d9929,_0x28b025=!0x1){const {locale:_0x1ebd63}=this['editor'],_0x2203b7=_0x4d9929['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x28b025&&{'data-table-of-contents-label':C(_0x1ebd63,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x28b025&&_0x4d9929['insert'](_0x4d9929['createPositionAt'](_0x2203b7,'end'),_0x4d9929['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x4d9929['createText'](C(_0x1ebd63,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0xc7bd0=_0x28b025?'':'['+C(_0x1ebd63,'Empty\x20heading')+']';let _0x213aa0=_0x2203b7;return this['_currentOutlineDefinitions']['forEach']((_0x453c1d,_0x2fe040,_0x564369)=>{const _0x14e72b=this['editor']['model']['hasContent'](_0x453c1d['modelElement'],{'ignoreWhitespaces':!0x0}),_0x47b456=_0x14e72b?_0x453c1d['text']:_0xc7bd0,_0x2b484e=_0x453c1d['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x3f1ade=_0x4d9929['createContainerElement']('a',{'href':'#'+_0x2b484e,...!_0x28b025&&{'tabindex':'-1'}},[_0x4d9929['createText'](_0x47b456)]),_0x82b841=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x4d9929['setCustomProperty']('tableOfContentsHeadingIndex',_0x2fe040,_0x3f1ade);const _0x35877a=_0x4d9929['createContainerElement']('li',null,[_0x14e72b||!_0x28b025&&_0x82b841?_0x3f1ade:_0x4d9929['createText']('')]),_0x323631=_0x2fe040?_0x564369[_0x2fe040-0x1]['level']:0x0,_0x3fcd7d=Math['abs'](_0x453c1d['level']-_0x323631);if(_0x453c1d['level']>_0x323631){const _0x5ddb84=P(_0x35877a,_0x3fcd7d,_0x4d9929);_0x4d9929['insert'](_0x4d9929['createPositionAt'](_0x213aa0,'end'),_0x5ddb84);}else{const _0x91ce8a=function(_0x433914,_0x1880d5){return _0x433914['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x736ca0=>_0x736ca0['is']('element','ol'))[_0x1880d5];}(_0x213aa0,_0x3fcd7d);_0x4d9929['insert'](_0x4d9929['createPositionAt'](_0x91ce8a,'end'),_0x35877a);}_0x213aa0=_0x35877a;}),_0x2203b7;}['_handleScrollToHeading'](_0x53c546){const _0x22462b=this['_currentOutlineDefinitions'][_0x53c546]['modelElement'];this['editor']['model']['change'](_0x52d38b=>{_0x52d38b['setSelection'](_0x22462b,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x4a7c9a,_0x1ff6e8)=>{const _0x348bbd=_0x1ff6e8['mapper'],_0x124893=_0x348bbd['findMappedViewAncestor'](_0x1ff6e8['viewPosition']),_0x387fd4=_0x348bbd['toModelElement'](_0x124893);_0x387fd4['is']('element','tableOfContents')&&(_0x1ff6e8['modelPosition']=this['editor']['model']['createPositionAt'](_0x387fd4,0x0),_0x4a7c9a['stop']());};}}function P(_0x9365e1,_0x1d1f98,_0x1663ae){return 0x1===_0x1d1f98?_0x1663ae['createContainerElement']('ol',null,[_0x9365e1]):_0x1663ae['createContainerElement']('ol',null,[_0x1663ae['createContainerElement']('li',null,[P(_0x9365e1,_0x1d1f98-0x1,_0x1663ae)])]);}class D extends _0x2e9f80{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1b556a=this['editor'];_0x1b556a['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x3167b9=this['_createButton'](_0x15a18a);return _0x3167b9['tooltip']=!0x0,_0x3167b9;}),_0x1b556a['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x3807c0)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x19ac2a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x164816;for(const _0x15af1c in _0x19ac2a){const _0x419b27=_0x15af1c,_0x18d34d=_0x19ac2a[_0x419b27];if('tableOfContentsLicenseKeyValid'==_0x18d34d||'tableOfContentsLicenseKeyInvalid'==_0x18d34d||'tableOfContentsLicenseKeyExpired'==_0x18d34d||'tableOfContentsLicenseKeyDomainLimit'==_0x18d34d||'tableOfContentsLicenseKeyNotAllowed'==_0x18d34d||'tableOfContentsLicenseKeyEvaluationLimit'==_0x18d34d||'tableOfContentsLicenseKeyUsageLimit'==_0x18d34d){delete _0x19ac2a[_0x419b27],_0x164816=_0x18d34d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x164816&&_0x19ac2a['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x164816&&_0x19ac2a['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x164816&&_0x19ac2a['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x164816&&_0x19ac2a['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x164816&&_0x19ac2a['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x164816&&_0x19ac2a['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x53d111){const _0x543e83=this['editor'],_0x4c4d99=_0x543e83['locale'],_0x3608d9=_0x543e83['commands']['get']('insertTableOfContents'),_0x2497f9=new _0x53d111(_0x4c4d99);return _0x2497f9['set']({'label':C(_0x4c4d99,'Table\x20of\x20contents'),'icon':_0x237f6e}),_0x2497f9['bind']('isEnabled')['to'](_0x3608d9,'isEnabled'),this['listenTo'](_0x2497f9,'execute',()=>{_0x543e83['execute']('insertTableOfContents'),_0x543e83['editing']['view']['focus']();}),_0x2497f9;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class H extends _0x2e9f80{static get['requires'](){return[A,D];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{K as DocumentOutline,x as DocumentOutlineUI,I as DocumentOutlineUtils,N as HeadingId,H as TableOfContents,E as TableOfContentsCommand,A as TableOfContentsEditing,D as TableOfContentsUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-document-outline",
|
|
3
|
-
"version": "48.0.0-alpha.
|
|
3
|
+
"version": "48.0.0-alpha.1",
|
|
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.0.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-heading": "48.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "48.0.0-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.0.0-alpha.1",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.1",
|
|
26
|
+
"@ckeditor/ckeditor5-heading": "48.0.0-alpha.1",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.1",
|
|
28
|
+
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.1",
|
|
29
|
+
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.1",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "48.0.0-alpha.1",
|
|
31
31
|
"es-toolkit": "1.45.1"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|