@ckeditor/ckeditor5-document-outline 48.0.1-alpha.0 → 48.0.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 _0x5155c9,Command as _0x36c942}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x44f4cb,throttle as _0x761376}from'es-toolkit/compat';import{ModelText as _0x52f67d,ModelTreeWalker as _0xfeb384}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x1422a2,diffToChanges as _0x48afc0,scrollAncestorsToShowTarget as _0x4dd088,CKEditorError as _0x2dac7c,global as _0x525f4c,Rect as _0x31163f,uid as _0x3f190c,priorities as _0x2398d6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x4baf77,ButtonView as _0x3bc7a7,MenuBarMenuListItemButtonView as _0x346864}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x2ce70f,toWidget as _0x53b307}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x50c26a}from'@ckeditor/ckeditor5-icons/dist/index.js';function v(_0x18ecce){let _0x573a6e='';for(const _0x1ede73 of _0x18ecce['getChildren']())_0x1ede73 instanceof _0x52f67d&&(_0x573a6e+=_0x1ede73['data']);return _0x573a6e;}class I extends _0x5155c9{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x1d6d4d=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x47361d=[];_0x1d6d4d['model']['document']['on']('change',_0x44f4cb(()=>{const _0x271060=_0x47361d;_0x47361d=this['_getOutlineDefinitions']();const _0x20460d=_0x1422a2(_0x271060,_0x47361d,(_0x42a8f2,_0xa7ab84)=>_0x42a8f2['level']===_0xa7ab84['level']&&_0x42a8f2['text']===_0xa7ab84['text']&&_0x42a8f2['modelElement']===_0xa7ab84['modelElement']),_0x37233e=_0x48afc0(_0x20460d,_0x47361d),_0x3f1e86=this['_getActiveHeading'](),_0x471ec8=_0x47361d['findIndex'](_0x2fc707=>_0x2fc707['modelElement']===_0x3f1e86);_0x37233e['length']&&this['fire']('change',{'outlineDefinitions':_0x47361d,'activeItemIndex':_0x471ec8,'outlineChanges':_0x37233e}),this['fire']('activeItemIndex',{'index':_0x471ec8});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x58639a=this['editor'],_0x2f0023=[],_0x46e04d=this['_headingNames'];for(const _0x1e9be7 of _0x58639a['model']['document']['getRootNames']())_0x3013e2(_0x58639a['model']['document']['getRoot'](_0x1e9be7));function _0x3013e2(_0x486bbe){for(const _0x12a132 of _0x486bbe['getChildren']())_0x12a132['is']('element')&&(_0x46e04d['includes'](_0x12a132['name'])&&_0x2f0023['push']({'level':_0x46e04d['indexOf'](_0x12a132['name'])+0x1,'text':v(_0x12a132),'modelElement':_0x12a132}),_0x3013e2(_0x12a132));}return _0x2f0023;}['_getActiveHeading'](){const _0xe6c106=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x3b2eae=new _0xfeb384({'direction':'backward','startPosition':_0xe6c106});for(const _0x338d5f of _0x3b2eae)if(_0x338d5f['item']['is']('element')&&this['_headingNames']['includes'](_0x338d5f['item']['name']))return _0x338d5f['item'];}['_getHeadingNames'](){const _0x5d11ad=this['editor']['config']['get']('documentOutline.headings');return _0x5d11ad||function(_0x524afb){const _0x4b0d36=_0x524afb['config']['get']('heading.options');return _0x4b0d36?_0x4b0d36['reduce']((_0x55a817,_0x5b4e72)=>('paragraph'!==_0x5b4e72['model']&&_0x55a817['push'](_0x5b4e72['model']),_0x55a817),[]):_0x524afb['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x7d9479=this['editor'],_0x30598e=['h1','h2','h3','h4','h5','h6'],_0x1159ff=[];for(const _0x9fb0e0 of _0x30598e){const _0x281ad8=_0x7d9479['editing']['view']['domConverter']['domToView'](document['createElement'](_0x9fb0e0)),_0x24242b=_0x7d9479['data']['toModel'](_0x281ad8)['getChild'](0x0);_0x24242b?.['is']('element')&&_0x1159ff['push'](_0x24242b['name']);}this['_headingNames']=_0x1159ff;}}function C(_0x5c7879,_0x13574e){const t=_0x5c7879['t'];switch(_0x13574e){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 _0x13574e;}}class _ extends _0x4baf77{constructor(_0x145f08,_0x41e6f3=!0x1){super(_0x145f08);const _0x28293c=this['bindTemplate'],_0x2d8b2d=_0x41e6f3?'['+C(_0x145f08,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x557258=>!_0x557258),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x28293c['to']('level',_0x134695=>'ck-document-outline__item_level-'+_0x134695),_0x28293c['if']('isActive','ck-document-outline__item_active'),_0x28293c['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x28293c['to']('text')},'children':[{'text':_0x28293c['to']('text',_0x8106dd=>_0x8106dd||_0x2d8b2d)}],'on':{'click':_0x28293c['to']('click')}});}}class L extends _0x4baf77{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x607d3b,_0x1278ee=!0x1,_0x8bbe0b){super(_0x607d3b),this['showEmptyHeadingText']=_0x1278ee,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x8bbe0b,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x3ed3bc,_0x1ff984,_0x25c086,_0x2da5f6)=>{this['_setActiveItem'](_0x2da5f6,_0x25c086);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x607d3b['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x607d3b,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x3db607){_0x3db607['forEach'](_0x577a3c=>{'insert'==_0x577a3c['type']?this['_insertItem'](_0x577a3c['index'],..._0x577a3c['values']):'delete'==_0x577a3c['type']&&this['_deleteItem'](_0x577a3c['index'],_0x577a3c['howMany']);});}['_setActiveItem'](_0x272970,_0x43e037){if(-0x1!==_0x272970){const _0x4308c4=this['items']['get'](_0x272970);_0x4308c4&&(_0x4308c4['isActive']=!0x1);}-0x1!==_0x43e037&&(this['items']['get'](_0x43e037)['isActive']=!0x0,this['_scrollToItem'](_0x43e037));}['_insertItem'](_0x485975,..._0x45526e){const _0x497352=_0x45526e['map']((_0x2945f8,_0x1bd6aa)=>{const _0x553d46=new _(this['locale'],this['showEmptyHeadingText']);return _0x553d46['text']=_0x2945f8['text'],_0x553d46['level']=_0x2945f8['level'],_0x485975+_0x1bd6aa===this['activeItemIndex']&&(_0x553d46['isActive']=!0x0),_0x553d46;});this['items']['addMany'](_0x497352,_0x485975);}['_deleteItem'](_0x924b83,_0x15540f){do{this['items']['remove'](_0x924b83);}while(--_0x15540f);}['_handleItemClick'](_0x359d8a){const _0x5f0110=this['items']['getIndex'](_0x359d8a['source']);this['fire']('itemSelected',_0x5f0110);}['_scrollToItem'](_0x1e4f2d){_0x4dd088(this['items']['get'](_0x1e4f2d)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class x extends _0x5155c9{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x541dd4){super(_0x541dd4),this['view']=new L(_0x541dd4['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x761376(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x305082=this['editor'],_0x467f20=_0x305082['plugins']['get']('DocumentOutlineUtils');let _0x19552c=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x305082['config']['get']('documentOutline.container'))throw new _0x2dac7c('document-outline-container-not-provided',{'editor':_0x305082});_0x305082['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x467f20['on']('change',this['_handleOutlineChange']['bind'](this)),_0x467f20['on']('activeItemIndex',(_0x284f67,{index:_0x289b94})=>this['_setActiveViewItem'](_0x289b94)),this['view']['on']('itemSelected',(_0x175ac6,_0x116eb8)=>{_0x19552c=!0x0,this['_handleItemSelected'](_0x116eb8);}),this['view']['listenTo'](_0x525f4c['document'],'scroll',()=>{_0x19552c?_0x19552c=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x525f4c['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0xaaea6f){const _0x5714d8=_0x5660b9([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]),_0x46f452=0x1cb264a3,_0x3e7056=0x1cb5e343^_0x46f452,_0x2a9a1e=window[_0x5660b9([0x44,0x61,0x74,0x65])][_0x5660b9([0x6e,0x6f,0x77])](),_0x52b225=_0xaaea6f[_0x5660b9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x118417=new window[(_0x5660b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38855b=>{_0x52b225[_0x5660b9([0x6f,0x6e,0x63,0x65])](_0x5660b9([0x72,0x65,0x61,0x64,0x79]),_0x38855b);}),_0xa097a1={[_0x5660b9([0x6b,0x74,0x79])]:_0x5660b9([0x45,0x43]),[_0x5660b9([0x75,0x73,0x65])]:_0x5660b9([0x73,0x69,0x67]),[_0x5660b9([0x63,0x72,0x76])]:_0x5660b9([0x50,0x2d,0x32,0x35,0x36]),[_0x5660b9([0x78])]:_0x5660b9([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]),[_0x5660b9([0x79])]:_0x5660b9([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]),[_0x5660b9([0x61,0x6c,0x67])]:_0x5660b9([0x45,0x53,0x32,0x35,0x36])},_0x1e80bb=_0x52b225[_0x5660b9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5660b9([0x67,0x65,0x74])](_0x5660b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x212112(){let _0x14bc5e,_0x47ea3f=null,_0x1f9801=null;try{if(_0x1e80bb==_0x5660b9([0x47,0x50,0x4c]))return _0x5660b9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14bc5e=_0x523300(),!_0x14bc5e)return _0x5660b9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14bc5e[_0x5660b9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f9801=_0x537adf(_0x14bc5e[_0x5660b9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14bc5e[_0x5660b9([0x6a,0x74,0x69])])),await _0x5b91da()?_0x1476f4()?_0x28ed96()?_0x5660b9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x10ac70()?(_0x14bc5e[_0x5660b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5660b9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x47ea3f=_0x260a57(_0x5660b9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x43a9a0()):_0x5660b9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5660b9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5660b9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5660b9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28ed96(){const _0xc3428=[_0x5660b9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5660b9([0x74,0x72,0x69,0x61,0x6c])][_0x5660b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14bc5e[_0x5660b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2a9a1e/0x3e8:0xe10*_0x3e7056;return _0x14bc5e[_0x5660b9([0x65,0x78,0x70])]<_0xc3428;}function _0x1476f4(){const _0x481e78=_0x14bc5e[_0x5660b9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x481e78&&(!!_0x481e78[_0x5660b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5660b9([0x2a]))||(!!_0x481e78[_0x5660b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5660b9([0x44,0x4f]))||(!!_0x481e78[_0x5660b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5660b9([0x50,0x50]))||!(!_0x481e78[_0x5660b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5660b9([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x52df11()))));}function _0x10ac70(){const _0x5d15c9=_0x14bc5e[_0x5660b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d15c9||0x0==_0x5d15c9[_0x5660b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e91d9}=new URL(window[_0x5660b9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d15c9[_0x5660b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e91d9))return!0x0;const _0x200f9f=_0x4e91d9[_0x5660b9([0x73,0x70,0x6c,0x69,0x74])](_0x5660b9([0x2e]));return _0x5d15c9[_0x5660b9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3be69d=>_0x3be69d[_0x5660b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5660b9([0x2a])))[_0x5660b9([0x6d,0x61,0x70])](_0x3f5e07=>_0x3f5e07[_0x5660b9([0x73,0x70,0x6c,0x69,0x74])](_0x5660b9([0x2e])))[_0x5660b9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56c2c9=>_0x56c2c9[_0x5660b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x200f9f[_0x5660b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5660b9([0x6d,0x61,0x70])](_0x5caecc=>Array(_0x200f9f[_0x5660b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5caecc[_0x5660b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5660b9([0x66,0x69,0x6c,0x6c])](_0x5caecc[0x0]===_0x5660b9([0x2a])?_0x5660b9([0x2a]):'')[_0x5660b9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5caecc))[_0x5660b9([0x73,0x6f,0x6d,0x65])](_0x91285a=>_0x200f9f[_0x5660b9([0x65,0x76,0x65,0x72,0x79])]((_0x2ba889,_0x2633b8)=>_0x91285a[_0x2633b8]===_0x2ba889||_0x91285a[_0x2633b8]===_0x5660b9([0x2a])));}function _0x43a9a0(){return _0x47ea3f&&_0x1f9801?new window[(_0x5660b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21999e,_0x4aed25)=>{_0x47ea3f[_0x5660b9([0x74,0x68,0x65,0x6e])](_0x21999e,_0x4aed25),_0x1f9801[_0x5660b9([0x74,0x68,0x65,0x6e])](_0x3610d6=>{_0x3610d6!=_0x5660b9([0x56,0x61,0x6c,0x69,0x64])&&_0x21999e(_0x3610d6);},_0x4aed25);}):_0x47ea3f||_0x1f9801||_0x5660b9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x537adf(_0x3ba466,_0x39afca){return new window[(_0x5660b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaeeb92=>{if(_0xa44184())return _0xaeeb92(_0x5660b9([0x56,0x61,0x6c,0x69,0x64]));_0x45e9ed(),_0x52b225[_0x5660b9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5660b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x448540=!0x1;const _0x40e6e6=_0x3f190c();function _0x2f3311(_0x1b263c){return!!_0x1b263c&&(typeof _0x1b263c===_0x5660b9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b263c===_0x5660b9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b263c[_0x5660b9([0x74,0x68,0x65,0x6e])]===_0x5660b9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b263c[_0x5660b9([0x63,0x61,0x74,0x63,0x68])]===_0x5660b9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x530f25(_0x25fc35){_0x2729b7(_0x25fc35)[_0x5660b9([0x74,0x68,0x65,0x6e])](_0x493b8c=>{if(!_0x493b8c||_0x493b8c[_0x5660b9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5660b9([0x6f,0x6b]))return _0x5660b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1af23c(_0x4336e9(_0x40e6e6+_0x39afca))!=_0x493b8c[_0x5660b9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5660b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5660b9([0x56,0x61,0x6c,0x69,0x64]);})[_0x5660b9([0x74,0x68,0x65,0x6e])](_0x4e8622=>(_0x54d3b1(),_0x4e8622),()=>{const _0x5290fe=_0x26c131();return null==_0x5290fe?(_0x54d3b1(),_0x5660b9([0x56,0x61,0x6c,0x69,0x64])):_0x5660b9(_0x2a9a1e-_0x5290fe>(0x38bee0a3^_0x46f452)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5660b9([0x74,0x68,0x65,0x6e])](_0xaeeb92)[_0x5660b9([0x63,0x61,0x74,0x63,0x68])](()=>{_0xaeeb92(_0x5660b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a78cb=0x1c848a23^_0x46f452;function _0x54d3b1(){const _0x4f72d8=_0x5660b9([0x6c,0x6c,0x63,0x74,0x2d])+_0x1af23c(_0x4336e9(_0x3ba466)),_0x267577=_0x14e71c(_0x1af23c(window[_0x5660b9([0x4d,0x61,0x74,0x68])][_0x5660b9([0x63,0x65,0x69,0x6c])](_0x2a9a1e/_0x4a78cb)));window[_0x5660b9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5660b9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f72d8,_0x267577);}function _0x26c131(){const _0x154988=_0x5660b9([0x6c,0x6c,0x63,0x74,0x2d])+_0x1af23c(_0x4336e9(_0x3ba466)),_0x1a8ef5=window[_0x5660b9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5660b9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x154988);return _0x1a8ef5?window[_0x5660b9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14e71c(_0x1a8ef5),0x10)*_0x4a78cb:null;}function _0x2729b7(_0x370df6){return new window[(_0x5660b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2988ab,_0x11b288)=>{_0x370df6[_0x5660b9([0x74,0x68,0x65,0x6e])](_0x2988ab,_0x11b288),window[_0x5660b9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11b288,0x1cb3b063^_0x46f452);});}}_0x52b225[_0x5660b9([0x6f,0x6e])](_0x5660b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x76cae5,_0x2b0676)=>{if(_0x2b0676[0x0]!=_0x3ba466)return _0xaeeb92(_0x5660b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b0676[0x1]={..._0x2b0676[0x1],[_0x5660b9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40e6e6};},{[_0x5660b9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5660b9([0x68,0x69,0x67,0x68])}),_0x52b225[_0x5660b9([0x6f,0x6e])](_0x5660b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x372726=>{_0x2f3311(_0x372726[_0x5660b9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x448540=!0x0,_0x530f25(_0x372726[_0x5660b9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5660b9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5660b9([0x6c,0x6f,0x77])}),_0x118417[_0x5660b9([0x74,0x68,0x65,0x6e])](()=>{_0x448540||_0xaeeb92(_0x5660b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa44184(){return _0x52b225[_0x5660b9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5660b9([0x76,0x69,0x65,0x77])][_0x5660b9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5660b9([0x61,0x75,0x74,0x6f]);}function _0x45e9ed(){_0x52b225[_0x5660b9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5660b9([0x76,0x69,0x65,0x77])][_0x5660b9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5660b9([0x61,0x75,0x74,0x6f]);}}function _0x260a57(_0x22aa5e){const _0xeba88a=[new window[(_0x5660b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc5083e=>setTimeout(_0xc5083e,0x1cbb5a6f^_0x46f452)),_0x118417[_0x5660b9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5660b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a026f=>{let _0x39dd35=0x0;_0x52b225[_0x5660b9([0x6d,0x6f,0x64,0x65,0x6c])][_0x5660b9([0x6f,0x6e])](_0x5660b9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x293eb5,_0x46f977)=>{_0x46f977[0x0][_0x5660b9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39dd35++,_0x39dd35==(0x1cb2614b^_0x46f452)&&(_0x2a026f(),_0x293eb5[_0x5660b9([0x6f,0x66,0x66])]());});}))];return window[_0x5660b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5660b9([0x72,0x61,0x63,0x65])](_0xeba88a)[_0x5660b9([0x74,0x68,0x65,0x6e])](()=>_0x22aa5e);}async function _0xedec43(){await _0x118417,_0x52b225[_0x5660b9([0x6d,0x6f,0x64,0x65,0x6c])][_0x5660b9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x170627,_0x52b225[_0x5660b9([0x6d,0x6f,0x64,0x65,0x6c])][_0x5660b9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x170627,_0x52b225[_0x5660b9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5660b9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x52df11(){return window[_0x5660b9([0x67,0x6c,0x6f,0x62])]&&window[_0x5660b9([0x67,0x6c,0x6f,0x62])][_0x5660b9([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x45ba2d(_0x239d78){const _0x56c170=_0x1e3da3();_0x52b225[_0x56c170]=_0x5660b9([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])+_0x239d78,_0x239d78!=_0x5660b9([0x56,0x61,0x6c,0x69,0x64])&&_0xedec43();}function _0x1e3da3(){const _0x57574d=window[_0x5660b9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5660b9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5660b9([0x6e,0x6f,0x77])]())[_0x5660b9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5660b9([0x2e]),'');let _0x414a8d=_0x5660b9([0x61]);for(let _0x538845=0x0;_0x538845<_0x57574d[_0x5660b9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x538845+=0x2){let _0xa5d051=window[_0x5660b9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57574d[_0x5660b9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x538845,_0x538845+0x2));_0xa5d051>=_0x5714d8[_0x5660b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xa5d051-=_0x5714d8[_0x5660b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x414a8d+=_0x5714d8[_0xa5d051];}return _0x414a8d;}function _0x523300(){const _0x3fa646=_0x1e80bb[_0x5660b9([0x73,0x70,0x6c,0x69,0x74])](_0x5660b9([0x2e]));if(0x3!=_0x3fa646[_0x5660b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x254b68(_0x3fa646[0x1]);function _0x254b68(_0x22f94b){const _0x45f5f6=_0x10b870(_0x22f94b);return _0x45f5f6&&_0x4c7437()?_0x45f5f6:null;function _0x4c7437(){const _0x230b6e=_0x45f5f6[_0x5660b9([0x6a,0x74,0x69])],_0x18b402=window[_0x5660b9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x230b6e[_0x5660b9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x230b6e[_0x5660b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a38b9={..._0x45f5f6,[_0x5660b9([0x6a,0x74,0x69])]:_0x230b6e[_0x5660b9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x230b6e[_0x5660b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a38b9[_0x5660b9([0x76,0x63])],_0x4336e9(_0x4a38b9)==_0x18b402;}}}async function _0x5b91da(){let _0x204450=!0x0;try{const _0xfc98f8=_0x1e80bb[_0x5660b9([0x73,0x70,0x6c,0x69,0x74])](_0x5660b9([0x2e])),[_0x24ae6a,_0x52cff7,_0x51a426]=_0xfc98f8;return _0x3ec1ad(_0x24ae6a),await _0x32c9f2(_0x24ae6a,_0x52cff7,_0x51a426),_0x204450;}catch{return!0x1;}function _0x3ec1ad(_0x276a17){const _0x3b7f64=_0x10b870(_0x276a17);_0x3b7f64&&_0x3b7f64[_0x5660b9([0x61,0x6c,0x67])]==_0x5660b9([0x45,0x53,0x32,0x35,0x36])||(_0x204450=!0x1);}async function _0x32c9f2(_0x2c0821,_0x33570b,_0x4efdbb){const _0x5de001=window[_0x5660b9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5660b9([0x66,0x72,0x6f,0x6d])](_0x2e0371(_0x4efdbb),_0x25f008=>_0x25f008[_0x5660b9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x36bc99=new window[(_0x5660b9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5660b9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c0821+_0x5660b9([0x2e])+_0x33570b),_0x5d9eee=window[_0x5660b9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5660b9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d9eee)return;const _0x2adcee=await _0x5d9eee[_0x5660b9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5660b9([0x6a,0x77,0x6b]),_0xa097a1,{[_0x5660b9([0x6e,0x61,0x6d,0x65])]:_0x5660b9([0x45,0x43,0x44,0x53,0x41]),[_0x5660b9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5660b9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5660b9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d9eee[_0x5660b9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5660b9([0x6e,0x61,0x6d,0x65])]:_0x5660b9([0x45,0x43,0x44,0x53,0x41]),[_0x5660b9([0x68,0x61,0x73,0x68])]:{[_0x5660b9([0x6e,0x61,0x6d,0x65])]:_0x5660b9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2adcee,_0x5de001,_0x36bc99)||(_0x204450=!0x1);}}function _0x10b870(_0x58e451){return _0x58e451[_0x5660b9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5660b9([0x65,0x79]))?JSON[_0x5660b9([0x70,0x61,0x72,0x73,0x65])](_0x2e0371(_0x58e451)):null;}function _0x2e0371(_0x1e8864){return window[_0x5660b9([0x61,0x74,0x6f,0x62])](_0x1e8864[_0x5660b9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5660b9([0x2b]))[_0x5660b9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5660b9([0x2f])));}function _0x4336e9(_0x137fa0){let _0x5d724c=0x1505;function _0x91f39a(_0x54af6d){for(let _0x218035=0x0;_0x218035<_0x54af6d[_0x5660b9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x218035++){const _0x6e12de=_0x54af6d[_0x5660b9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x218035);_0x5d724c=(_0x5d724c<<0x5)+_0x5d724c+_0x6e12de,_0x5d724c&=_0x5d724c;}}function _0x1b7b3d(_0x4b095a){Array[_0x5660b9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b095a)?_0x4b095a[_0x5660b9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b7b3d):_0x4b095a&&typeof _0x4b095a==_0x5660b9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5660b9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b095a)[_0x5660b9([0x73,0x6f,0x72,0x74])]()[_0x5660b9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35df86,_0x5383e9])=>{_0x91f39a(_0x35df86),_0x1b7b3d(_0x5383e9);}):_0x91f39a(window[_0x5660b9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b095a));}return _0x1b7b3d(_0x137fa0),_0x5d724c>>>0x0;}function _0x1af23c(_0xe910b0){return _0xe910b0[_0x5660b9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5660b9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5660b9([0x30]));}function _0x14e71c(_0x29c7fe){return _0x29c7fe[_0x5660b9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5660b9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5660b9([0x6a,0x6f,0x69,0x6e])]('');}function _0x170627(){}function _0x5660b9(_0x4678b9){return _0x4678b9['map'](_0x1628f2=>String['fromCharCode'](_0x1628f2))['join']('');}_0x45ba2d(await _0x212112());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0xe5fb92,{outlineDefinitions:_0x2ada08,outlineChanges:_0x406a0e}){this['_currentOutlineDefinitions']=_0x2ada08,this['view']['sync'](_0x406a0e);}['_setActiveViewItem'](_0x35696c){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x35696c]&&(this['view']['activeItemIndex']=_0x35696c);}['_handleItemSelected'](_0x2059fd){const _0x674fca=this['_currentOutlineDefinitions'][_0x2059fd]['modelElement'];this['editor']['model']['change'](_0x58f4e9=>{_0x58f4e9['setSelection'](_0x674fca,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x2059fd);}['_updateActiveDefinitionOnViewportChange'](){const _0x24b56f=this['editor'];let _0xb63b31;for(const _0x192501 of _0x24b56f['model']['document']['getRootNames']()){const _0x24df5e=_0x24b56f['editing']['view']['getDomRoot'](_0x192501),_0x5202e5=_0x24df5e&&new _0x31163f(_0x24df5e)['getVisible']();if(_0x5202e5){const _0x4a4473=new _0x31163f(_0x525f4c['window'])['getIntersection'](_0x5202e5);_0x4a4473&&(_0xb63b31=_0x4a4473['top']+0.25*_0x4a4473['height']);}}if(void 0x0===_0xb63b31)return;const _0x4d5466=k(_0x24b56f['editing'],this['_currentOutlineDefinitions'],_0xb63b31);_0x4d5466?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x4d5466)):this['_setActiveViewItem'](-0x1);}}function k(_0x498178,_0x1f36b5,_0x1109e8,_0x1863ec=0x0,_0x14bee6=_0x1f36b5['length']-0x1){const _0x4d609e=Math['floor'](_0x1863ec+(_0x14bee6-_0x1863ec)/0x2);if(_0x14bee6>=_0x1863ec){const _0x3d988f=_0x1f36b5[_0x4d609e],_0x53033a=_0x498178['mapper']['toViewElement'](_0x3d988f['modelElement']);if(!_0x53033a)return null;const _0x2bd708=_0x498178['view']['domConverter']['mapViewToDom'](_0x53033a);return new _0x31163f(_0x2bd708)['bottom']>_0x1109e8?k(_0x498178,_0x1f36b5,_0x1109e8,_0x1863ec,_0x4d609e-0x1):k(_0x498178,_0x1f36b5,_0x1109e8,_0x4d609e+0x1,_0x14bee6);}return _0x4d609e<0x0?null:_0x1f36b5[_0x4d609e];}class K extends _0x5155c9{['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 _0x3e26d9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1dcbdc;for(const _0x13cf87 in _0x3e26d9){const _0x1690cd=_0x13cf87,_0x5d5a9e=_0x3e26d9[_0x1690cd];if('documentOutlineLicenseKeyValid'==_0x5d5a9e||'documentOutlineLicenseKeyInvalid'==_0x5d5a9e||'documentOutlineLicenseKeyExpired'==_0x5d5a9e||'documentOutlineLicenseKeyDomainLimit'==_0x5d5a9e||'documentOutlineLicenseKeyNotAllowed'==_0x5d5a9e||'documentOutlineLicenseKeyEvaluationLimit'==_0x5d5a9e||'documentOutlineLicenseKeyUsageLimit'==_0x5d5a9e){delete _0x3e26d9[_0x1690cd],_0x1dcbdc=_0x5d5a9e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x1dcbdc&&_0x3e26d9['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x1dcbdc&&_0x3e26d9['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x1dcbdc&&_0x3e26d9['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x1dcbdc&&_0x3e26d9['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x1dcbdc&&_0x3e26d9['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x1dcbdc&&_0x3e26d9['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class E extends _0x36c942{['execute'](){this['editor']['model']['change'](_0x2b0c96=>{this['editor']['model']['insertObject'](_0x2b0c96['createElement']('tableOfContents'));});}['refresh'](){const _0x593acc=this['editor']['model'],_0x36afdc=_0x593acc['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x36afdc&&_0x593acc['schema']['findAllowedParent'](_0x36afdc,'tableOfContents'));}}class N extends _0x5155c9{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1a34c0=this['editor'];if(_0x1a34c0['config']['get']('headingId.modelAttributeName'))return;(function(_0x508bf1){const _0x2709ed=new Map();if(_0x508bf1)return _0x508bf1['forEach'](_0xfbd0b4=>{'paragraph'!==_0xfbd0b4['model']&&_0x2709ed['set'](_0xfbd0b4['view'],_0xfbd0b4['model']);}),_0x2709ed['get']('h1')||_0x2709ed['set']('h1','heading1'),_0x2709ed;return _0x2709ed;}(this['editor']['config']['get']('heading.options'))['forEach']((_0xaa59f9,_0x486669)=>{this['_customUpcastHeadingsConversion'](_0x486669),this['_customDataDowncastHeadingsConversion'](_0xaa59f9),_0x1a34c0['model']['schema']['isRegistered'](_0xaa59f9)&&_0x1a34c0['model']['schema']['extend'](_0xaa59f9,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x361f0b){this['editor']['conversion']['for']('upcast')['add'](_0x371df7=>_0x371df7['on']('element:'+_0x361f0b,(_0xc3d777,_0x231239,_0x7a6392)=>{const {consumable:_0x9d6ca6,writer:_0x9a7a97}=_0x7a6392,_0x1526f7=_0x231239['viewItem']['getAttribute']('id'),_0x14d20f=_0x231239['modelRange']['getContainedElement']();if(_0x14d20f)return _0x1526f7&&_0x1526f7['length']||_0x14d20f['hasAttribute']('headingId')?void(_0x9d6ca6['consume'](_0x231239['viewItem'],{'attributes':['id']})&&_0x9a7a97['setAttribute']('headingId',_0x1526f7,_0x14d20f)):(_0x9d6ca6['consume'](_0x231239['viewItem'],{'attributes':['id']}),void _0x9a7a97['setAttribute']('headingId',_0x3f190c(),_0x14d20f));},{'priority':_0x2398d6['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x2894df){this['editor']['conversion']['for']('downcast')['add'](_0x17558f=>_0x17558f['on']('attribute:headingId:'+_0x2894df,(_0x555684,_0x425676,_0x2ff2a0)=>{if(!_0x2ff2a0['consumable']['consume'](_0x425676['item'],_0x555684['name']))return;const _0x84fb1a=_0x425676['item']['getAttribute']('headingId'),_0x4f67b9=_0x2ff2a0['mapper']['toViewElement'](_0x425676['item']);_0x2ff2a0['writer']['setAttribute']('id',_0x84fb1a,_0x4f67b9);}));}['_registerHeadingIdAttributePostfixer'](){const _0x4f2daa=this['editor'],_0x50573c=new Set(),_0x3433dc=new Set();function _0x484983(_0x3c39f0,_0x4cf66f){const _0x390877=_0x3f190c();return _0x3433dc['add'](_0x390877),_0x3c39f0['setAttribute']('headingId',_0x390877,_0x4cf66f),_0x390877;}function _0x544880(_0x5badea,_0x2c045c){_0x5badea['removeAttribute']('headingId',_0x2c045c);}_0x4f2daa['model']['document']['registerPostFixer'](_0x12c195=>{const _0x2f74af=_0x4f2daa['model']['document']['differ']['getChanges']();let _0x2100f9=!0x1;for(const _0x461042 of _0x2f74af)if('insert'==_0x461042['type']&&_0x461042['name']){if(T(_0x461042['name'])){const _0x5bba16=_0x461042['attributes']['get']('headingId');'string'==typeof _0x5bba16?_0x50573c['has'](_0x5bba16)?(_0x484983(_0x12c195,_0x461042['position']['nodeAfter']),_0x2100f9=!0x0):_0x3433dc['add'](_0x5bba16):(_0x484983(_0x12c195,_0x461042['position']['nodeAfter']),_0x2100f9=!0x0);}else'string'==typeof _0x461042['attributes']['get']('headingId')&&(_0x544880(_0x12c195,_0x461042['position']['nodeAfter']),_0x2100f9=!0x0);}else{if('remove'==_0x461042['type']){const _0x3e9fb0=_0x461042['attributes']['get']('headingId');'string'==typeof _0x3e9fb0&&_0x50573c['delete'](_0x3e9fb0);}}return _0x2100f9;}),_0x4f2daa['model']['document']['on']('change',()=>{_0x3433dc['forEach'](_0x25e497=>_0x50573c['add'](_0x25e497)),_0x3433dc['clear']();});}}function T(_0x4860af){return!!_0x4860af['match'](/heading\d/);}class A extends _0x5155c9{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2ce70f,I,N];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x56cb54){super(_0x56cb54),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x4e4ec4=this['editor'],_0x4c0d7d=_0x4e4ec4['editing']['view']['document'];_0x4e4ec4['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x4e4ec4['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x4c0d7d,'click',(_0x37cdee,_0x5f1fa7)=>{if(!_0x5f1fa7['target'])return;const _0x579cbf=_0x5f1fa7['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x579cbf)&&(_0x5f1fa7['domEvent']['preventDefault'](),_0x37cdee['stop'](),this['_handleScrollToHeading'](_0x579cbf));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x4e4ec4['commands']['add']('insertTableOfContents',new E(_0x4e4ec4)),(_0x4e4ec4['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x2b5218,_0x500dcf)=>{this['_currentOutlineDefinitions']=_0x500dcf['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x4e4ec4['model']['document'],'change',()=>{this['_trackNewToCElements']();}));}['afterInit'](){!async function(_0x160736){const _0x1836c7=_0x2aa2fe([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]),_0x1b3778=0x6b9b05fd,_0x4145f7=0x6b9c821d^_0x1b3778,_0x9db52a=window[_0x2aa2fe([0x44,0x61,0x74,0x65])][_0x2aa2fe([0x6e,0x6f,0x77])](),_0x323535=_0x160736[_0x2aa2fe([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b43a4=new window[(_0x2aa2fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe0c5e7=>{_0x323535[_0x2aa2fe([0x6f,0x6e,0x63,0x65])](_0x2aa2fe([0x72,0x65,0x61,0x64,0x79]),_0xe0c5e7);}),_0x5ebb18={[_0x2aa2fe([0x6b,0x74,0x79])]:_0x2aa2fe([0x45,0x43]),[_0x2aa2fe([0x75,0x73,0x65])]:_0x2aa2fe([0x73,0x69,0x67]),[_0x2aa2fe([0x63,0x72,0x76])]:_0x2aa2fe([0x50,0x2d,0x32,0x35,0x36]),[_0x2aa2fe([0x78])]:_0x2aa2fe([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]),[_0x2aa2fe([0x79])]:_0x2aa2fe([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]),[_0x2aa2fe([0x61,0x6c,0x67])]:_0x2aa2fe([0x45,0x53,0x32,0x35,0x36])},_0x12a5e8=_0x323535[_0x2aa2fe([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2aa2fe([0x67,0x65,0x74])](_0x2aa2fe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46e9ea(){let _0x1590bb,_0x161ef=null,_0x496f32=null;try{if(_0x12a5e8==_0x2aa2fe([0x47,0x50,0x4c]))return _0x2aa2fe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1590bb=_0x5d6398(),!_0x1590bb)return _0x2aa2fe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1590bb[_0x2aa2fe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x496f32=_0x4de149(_0x1590bb[_0x2aa2fe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1590bb[_0x2aa2fe([0x6a,0x74,0x69])])),await _0x9c382f()?_0x44f413()?_0x1256f7()?_0x2aa2fe([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xee6730()?(_0x1590bb[_0x2aa2fe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2aa2fe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x161ef=_0x6c747f(_0x2aa2fe([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x38ee8c()):_0x2aa2fe([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2aa2fe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2aa2fe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2aa2fe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1256f7(){const _0x7739d9=[_0x2aa2fe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2aa2fe([0x74,0x72,0x69,0x61,0x6c])][_0x2aa2fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1590bb[_0x2aa2fe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9db52a/0x3e8:0xe10*_0x4145f7;return _0x1590bb[_0x2aa2fe([0x65,0x78,0x70])]<_0x7739d9;}function _0x44f413(){const _0x1e2108=_0x1590bb[_0x2aa2fe([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1e2108&&(!!_0x1e2108[_0x2aa2fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aa2fe([0x2a]))||(!!_0x1e2108[_0x2aa2fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aa2fe([0x54,0x4f,0x43]))||(!!_0x1e2108[_0x2aa2fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aa2fe([0x50,0x50]))||!(!_0x1e2108[_0x2aa2fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aa2fe([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x3efd62()))));}function _0xee6730(){const _0x1fbf00=_0x1590bb[_0x2aa2fe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1fbf00||0x0==_0x1fbf00[_0x2aa2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21738e}=new URL(window[_0x2aa2fe([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1fbf00[_0x2aa2fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21738e))return!0x0;const _0x14c111=_0x21738e[_0x2aa2fe([0x73,0x70,0x6c,0x69,0x74])](_0x2aa2fe([0x2e]));return _0x1fbf00[_0x2aa2fe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5748f9=>_0x5748f9[_0x2aa2fe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aa2fe([0x2a])))[_0x2aa2fe([0x6d,0x61,0x70])](_0x466306=>_0x466306[_0x2aa2fe([0x73,0x70,0x6c,0x69,0x74])](_0x2aa2fe([0x2e])))[_0x2aa2fe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x526ce8=>_0x526ce8[_0x2aa2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x14c111[_0x2aa2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2aa2fe([0x6d,0x61,0x70])](_0x50e1c5=>Array(_0x14c111[_0x2aa2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x50e1c5[_0x2aa2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2aa2fe([0x66,0x69,0x6c,0x6c])](_0x50e1c5[0x0]===_0x2aa2fe([0x2a])?_0x2aa2fe([0x2a]):'')[_0x2aa2fe([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x50e1c5))[_0x2aa2fe([0x73,0x6f,0x6d,0x65])](_0x5dc50f=>_0x14c111[_0x2aa2fe([0x65,0x76,0x65,0x72,0x79])]((_0x136ae6,_0x5aa0d6)=>_0x5dc50f[_0x5aa0d6]===_0x136ae6||_0x5dc50f[_0x5aa0d6]===_0x2aa2fe([0x2a])));}function _0x38ee8c(){return _0x161ef&&_0x496f32?new window[(_0x2aa2fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x391af4,_0x2d4c8b)=>{_0x161ef[_0x2aa2fe([0x74,0x68,0x65,0x6e])](_0x391af4,_0x2d4c8b),_0x496f32[_0x2aa2fe([0x74,0x68,0x65,0x6e])](_0x8da9b5=>{_0x8da9b5!=_0x2aa2fe([0x56,0x61,0x6c,0x69,0x64])&&_0x391af4(_0x8da9b5);},_0x2d4c8b);}):_0x161ef||_0x496f32||_0x2aa2fe([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4de149(_0x331c91,_0x1be0ab){return new window[(_0x2aa2fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x134fd2=>{if(_0xc33886())return _0x134fd2(_0x2aa2fe([0x56,0x61,0x6c,0x69,0x64]));_0x5d7bca(),_0x323535[_0x2aa2fe([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2aa2fe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x313d9e=!0x1;const _0x792fff=_0x3f190c();function _0x2cfb15(_0x139cef){return!!_0x139cef&&(typeof _0x139cef===_0x2aa2fe([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x139cef===_0x2aa2fe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x139cef[_0x2aa2fe([0x74,0x68,0x65,0x6e])]===_0x2aa2fe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x139cef[_0x2aa2fe([0x63,0x61,0x74,0x63,0x68])]===_0x2aa2fe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x500d47(_0xd958e2){_0x44c058(_0xd958e2)[_0x2aa2fe([0x74,0x68,0x65,0x6e])](_0x2b4ca9=>{if(!_0x2b4ca9||_0x2b4ca9[_0x2aa2fe([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2aa2fe([0x6f,0x6b]))return _0x2aa2fe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5596c6(_0x207826(_0x792fff+_0x1be0ab))!=_0x2b4ca9[_0x2aa2fe([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2aa2fe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2aa2fe([0x56,0x61,0x6c,0x69,0x64]);})[_0x2aa2fe([0x74,0x68,0x65,0x6e])](_0x9bca6b=>(_0x3eeda7(),_0x9bca6b),()=>{const _0x17a01c=_0x3f0c83();return null==_0x17a01c?(_0x3eeda7(),_0x2aa2fe([0x56,0x61,0x6c,0x69,0x64])):_0x2aa2fe(_0x9db52a-_0x17a01c>(0x4f9781fd^_0x1b3778)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2aa2fe([0x74,0x68,0x65,0x6e])](_0x134fd2)[_0x2aa2fe([0x63,0x61,0x74,0x63,0x68])](()=>{_0x134fd2(_0x2aa2fe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1972d2=0x6badeb7d^_0x1b3778;function _0x3eeda7(){const _0x722fc2=_0x2aa2fe([0x6c,0x6c,0x63,0x74,0x2d])+_0x5596c6(_0x207826(_0x331c91)),_0x5b543a=_0x498ffe(_0x5596c6(window[_0x2aa2fe([0x4d,0x61,0x74,0x68])][_0x2aa2fe([0x63,0x65,0x69,0x6c])](_0x9db52a/_0x1972d2)));window[_0x2aa2fe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2aa2fe([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x722fc2,_0x5b543a);}function _0x3f0c83(){const _0x14137f=_0x2aa2fe([0x6c,0x6c,0x63,0x74,0x2d])+_0x5596c6(_0x207826(_0x331c91)),_0x4b779a=window[_0x2aa2fe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2aa2fe([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14137f);return _0x4b779a?window[_0x2aa2fe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x498ffe(_0x4b779a),0x10)*_0x1972d2:null;}function _0x44c058(_0x1d07d3){return new window[(_0x2aa2fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x473ff8,_0x2a27a6)=>{_0x1d07d3[_0x2aa2fe([0x74,0x68,0x65,0x6e])](_0x473ff8,_0x2a27a6),window[_0x2aa2fe([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a27a6,0x6b9ad13d^_0x1b3778);});}}_0x323535[_0x2aa2fe([0x6f,0x6e])](_0x2aa2fe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5ce820,_0x41233c)=>{if(_0x41233c[0x0]!=_0x331c91)return _0x134fd2(_0x2aa2fe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x41233c[0x1]={..._0x41233c[0x1],[_0x2aa2fe([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x792fff};},{[_0x2aa2fe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2aa2fe([0x68,0x69,0x67,0x68])}),_0x323535[_0x2aa2fe([0x6f,0x6e])](_0x2aa2fe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2223d1=>{_0x2cfb15(_0x2223d1[_0x2aa2fe([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x313d9e=!0x0,_0x500d47(_0x2223d1[_0x2aa2fe([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2aa2fe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2aa2fe([0x6c,0x6f,0x77])}),_0x2b43a4[_0x2aa2fe([0x74,0x68,0x65,0x6e])](()=>{_0x313d9e||_0x134fd2(_0x2aa2fe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc33886(){return _0x323535[_0x2aa2fe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2aa2fe([0x76,0x69,0x65,0x77])][_0x2aa2fe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2aa2fe([0x61,0x75,0x74,0x6f]);}function _0x5d7bca(){_0x323535[_0x2aa2fe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2aa2fe([0x76,0x69,0x65,0x77])][_0x2aa2fe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2aa2fe([0x61,0x75,0x74,0x6f]);}}function _0x6c747f(_0x566cfd){const _0x76f400=[new window[(_0x2aa2fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1879d0=>setTimeout(_0x1879d0,0x6b923b31^_0x1b3778)),_0x2b43a4[_0x2aa2fe([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2aa2fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bf14d=>{let _0x20a895=0x0;_0x323535[_0x2aa2fe([0x6d,0x6f,0x64,0x65,0x6c])][_0x2aa2fe([0x6f,0x6e])](_0x2aa2fe([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x237bc9,_0x843193)=>{_0x843193[0x0][_0x2aa2fe([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x20a895++,_0x20a895==(0x6b9b0015^_0x1b3778)&&(_0x1bf14d(),_0x237bc9[_0x2aa2fe([0x6f,0x66,0x66])]());});}))];return window[_0x2aa2fe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2aa2fe([0x72,0x61,0x63,0x65])](_0x76f400)[_0x2aa2fe([0x74,0x68,0x65,0x6e])](()=>_0x566cfd);}async function _0x1cae3a(){await _0x2b43a4,_0x323535[_0x2aa2fe([0x6d,0x6f,0x64,0x65,0x6c])][_0x2aa2fe([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x517c0f,_0x323535[_0x2aa2fe([0x6d,0x6f,0x64,0x65,0x6c])][_0x2aa2fe([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x517c0f,_0x323535[_0x2aa2fe([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2aa2fe([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3efd62(){return window[_0x2aa2fe([0x67,0x6c,0x6f,0x62])]&&window[_0x2aa2fe([0x67,0x6c,0x6f,0x62])][_0x2aa2fe([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x47f88f(_0x1b7452){const _0x2bb1f9=_0x4ab028();_0x323535[_0x2bb1f9]=_0x2aa2fe([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])+_0x1b7452,_0x1b7452!=_0x2aa2fe([0x56,0x61,0x6c,0x69,0x64])&&_0x1cae3a();}function _0x4ab028(){const _0x497b29=window[_0x2aa2fe([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2aa2fe([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2aa2fe([0x6e,0x6f,0x77])]())[_0x2aa2fe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2aa2fe([0x2e]),'');let _0x2913bb=_0x2aa2fe([0x6d]);for(let _0x525a72=0x0;_0x525a72<_0x497b29[_0x2aa2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x525a72+=0x2){let _0x27362e=window[_0x2aa2fe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x497b29[_0x2aa2fe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x525a72,_0x525a72+0x2));_0x27362e>=_0x1836c7[_0x2aa2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27362e-=_0x1836c7[_0x2aa2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2913bb+=_0x1836c7[_0x27362e];}return _0x2913bb;}function _0x5d6398(){const _0x6f2741=_0x12a5e8[_0x2aa2fe([0x73,0x70,0x6c,0x69,0x74])](_0x2aa2fe([0x2e]));if(0x3!=_0x6f2741[_0x2aa2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x351484(_0x6f2741[0x1]);function _0x351484(_0x2b0652){const _0x7f2b99=_0x4f0293(_0x2b0652);return _0x7f2b99&&_0x3be4d4()?_0x7f2b99:null;function _0x3be4d4(){const _0x43e441=_0x7f2b99[_0x2aa2fe([0x6a,0x74,0x69])],_0x2e60a6=window[_0x2aa2fe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43e441[_0x2aa2fe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43e441[_0x2aa2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x268164={..._0x7f2b99,[_0x2aa2fe([0x6a,0x74,0x69])]:_0x43e441[_0x2aa2fe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x43e441[_0x2aa2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x268164[_0x2aa2fe([0x76,0x63])],_0x207826(_0x268164)==_0x2e60a6;}}}async function _0x9c382f(){let _0x1c24ff=!0x0;try{const _0x24a94a=_0x12a5e8[_0x2aa2fe([0x73,0x70,0x6c,0x69,0x74])](_0x2aa2fe([0x2e])),[_0x4c711c,_0x35c897,_0x4a8b27]=_0x24a94a;return _0x589e35(_0x4c711c),await _0xf2b20c(_0x4c711c,_0x35c897,_0x4a8b27),_0x1c24ff;}catch{return!0x1;}function _0x589e35(_0x13891f){const _0x33763a=_0x4f0293(_0x13891f);_0x33763a&&_0x33763a[_0x2aa2fe([0x61,0x6c,0x67])]==_0x2aa2fe([0x45,0x53,0x32,0x35,0x36])||(_0x1c24ff=!0x1);}async function _0xf2b20c(_0x3e7ef1,_0x2d11ce,_0x35c4f7){const _0x420bf3=window[_0x2aa2fe([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2aa2fe([0x66,0x72,0x6f,0x6d])](_0x487b80(_0x35c4f7),_0x1f40ec=>_0x1f40ec[_0x2aa2fe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2e383a=new window[(_0x2aa2fe([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2aa2fe([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e7ef1+_0x2aa2fe([0x2e])+_0x2d11ce),_0x318a9f=window[_0x2aa2fe([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2aa2fe([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x318a9f)return;const _0x83eaf4=await _0x318a9f[_0x2aa2fe([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2aa2fe([0x6a,0x77,0x6b]),_0x5ebb18,{[_0x2aa2fe([0x6e,0x61,0x6d,0x65])]:_0x2aa2fe([0x45,0x43,0x44,0x53,0x41]),[_0x2aa2fe([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2aa2fe([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2aa2fe([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x318a9f[_0x2aa2fe([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2aa2fe([0x6e,0x61,0x6d,0x65])]:_0x2aa2fe([0x45,0x43,0x44,0x53,0x41]),[_0x2aa2fe([0x68,0x61,0x73,0x68])]:{[_0x2aa2fe([0x6e,0x61,0x6d,0x65])]:_0x2aa2fe([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x83eaf4,_0x420bf3,_0x2e383a)||(_0x1c24ff=!0x1);}}function _0x4f0293(_0x2c7fc7){return _0x2c7fc7[_0x2aa2fe([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2aa2fe([0x65,0x79]))?JSON[_0x2aa2fe([0x70,0x61,0x72,0x73,0x65])](_0x487b80(_0x2c7fc7)):null;}function _0x487b80(_0x3868d8){return window[_0x2aa2fe([0x61,0x74,0x6f,0x62])](_0x3868d8[_0x2aa2fe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2aa2fe([0x2b]))[_0x2aa2fe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2aa2fe([0x2f])));}function _0x207826(_0x3640ce){let _0x4d653f=0x1505;function _0x4189e0(_0x3344e7){for(let _0x21e5c5=0x0;_0x21e5c5<_0x3344e7[_0x2aa2fe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21e5c5++){const _0x5a68a8=_0x3344e7[_0x2aa2fe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x21e5c5);_0x4d653f=(_0x4d653f<<0x5)+_0x4d653f+_0x5a68a8,_0x4d653f&=_0x4d653f;}}function _0x1e73ac(_0x2a2996){Array[_0x2aa2fe([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a2996)?_0x2a2996[_0x2aa2fe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e73ac):_0x2a2996&&typeof _0x2a2996==_0x2aa2fe([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2aa2fe([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a2996)[_0x2aa2fe([0x73,0x6f,0x72,0x74])]()[_0x2aa2fe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ed611,_0x5dfbad])=>{_0x4189e0(_0x2ed611),_0x1e73ac(_0x5dfbad);}):_0x4189e0(window[_0x2aa2fe([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a2996));}return _0x1e73ac(_0x3640ce),_0x4d653f>>>0x0;}function _0x5596c6(_0x466bd2){return _0x466bd2[_0x2aa2fe([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2aa2fe([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2aa2fe([0x30]));}function _0x498ffe(_0x120c30){return _0x120c30[_0x2aa2fe([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2aa2fe([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2aa2fe([0x6a,0x6f,0x69,0x6e])]('');}function _0x517c0f(){}function _0x2aa2fe(_0x3bfab4){return _0x3bfab4['map'](_0x27cf47=>String['fromCharCode'](_0x27cf47))['join']('');}_0x47f88f(await _0x46e9ea());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x24320b=>{'$graveyard'!==_0x24320b['rootName']&&this['editor']['editing']['reconvertItem'](_0x24320b);});}['_trackNewToCElements'](){for(const _0x1a4e89 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x1a4e89['type']||'tableOfContents'!==_0x1a4e89['name'])return;this['_tableOfContentsElements']['add'](_0x1a4e89['position']['nodeAfter']);}}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x144369=this['editor']['conversion'];_0x144369['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x144369['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x4579e1,{writer:_0x4ce5fd})=>this['_createTableOfContents'](_0x4ce5fd,!0x0)}),_0x144369['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x5096da,{writer:_0x1244a3})=>{this['_tableOfContentsElements']['add'](_0x5096da);const _0x1db07f=this['_createTableOfContents'](_0x1244a3);return _0x53b307(_0x1db07f,_0x1244a3,{'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'](_0x303f88,_0xc8e78a=!0x1){const {locale:_0x4cf866}=this['editor'],_0x3de185=_0x303f88['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0xc8e78a&&{'data-table-of-contents-label':C(_0x4cf866,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0xc8e78a&&_0x303f88['insert'](_0x303f88['createPositionAt'](_0x3de185,'end'),_0x303f88['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x303f88['createText'](C(_0x4cf866,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x3912e4=_0xc8e78a?'':'['+C(_0x4cf866,'Empty\x20heading')+']';let _0x2421af=_0x3de185;return this['_currentOutlineDefinitions']['forEach']((_0x7f8a2b,_0x5bfc40,_0x548924)=>{const _0x42868f=this['editor']['model']['hasContent'](_0x7f8a2b['modelElement'],{'ignoreWhitespaces':!0x0}),_0x4fafc8=_0x42868f?_0x7f8a2b['text']:_0x3912e4,_0x1c8aa8=_0x7f8a2b['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x3c70fc=_0x303f88['createContainerElement']('a',{'href':'#'+_0x1c8aa8,...!_0xc8e78a&&{'tabindex':'-1'}},[_0x303f88['createText'](_0x4fafc8)]),_0x425820=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x303f88['setCustomProperty']('tableOfContentsHeadingIndex',_0x5bfc40,_0x3c70fc);const _0x489726=_0x303f88['createContainerElement']('li',null,[_0x42868f||!_0xc8e78a&&_0x425820?_0x3c70fc:_0x303f88['createText']('')]),_0x1b98a6=_0x5bfc40?_0x548924[_0x5bfc40-0x1]['level']:0x0,_0xb2b970=Math['abs'](_0x7f8a2b['level']-_0x1b98a6);if(_0x7f8a2b['level']>_0x1b98a6){const _0xecdd78=P(_0x489726,_0xb2b970,_0x303f88);_0x303f88['insert'](_0x303f88['createPositionAt'](_0x2421af,'end'),_0xecdd78);}else{const _0x55f900=function(_0x270243,_0x4ff5e8){return _0x270243['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x1d056c=>_0x1d056c['is']('element','ol'))[_0x4ff5e8];}(_0x2421af,_0xb2b970);_0x303f88['insert'](_0x303f88['createPositionAt'](_0x55f900,'end'),_0x489726);}_0x2421af=_0x489726;}),_0x3de185;}['_handleScrollToHeading'](_0x5ca341){const _0x14b95d=this['_currentOutlineDefinitions'][_0x5ca341]['modelElement'];this['editor']['model']['change'](_0x508c00=>{_0x508c00['setSelection'](_0x14b95d,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x587d13,_0x34b47d)=>{const _0x1df425=_0x34b47d['mapper'],_0x3dc861=_0x1df425['findMappedViewAncestor'](_0x34b47d['viewPosition']),_0x1640d5=_0x1df425['toModelElement'](_0x3dc861);_0x1640d5['is']('element','tableOfContents')&&(_0x34b47d['modelPosition']=this['editor']['model']['createPositionAt'](_0x1640d5,0x0),_0x587d13['stop']());};}}function P(_0x528ba8,_0x2a6f84,_0x1e57b6){return 0x1===_0x2a6f84?_0x1e57b6['createContainerElement']('ol',null,[_0x528ba8]):_0x1e57b6['createContainerElement']('ol',null,[_0x1e57b6['createContainerElement']('li',null,[P(_0x528ba8,_0x2a6f84-0x1,_0x1e57b6)])]);}class D extends _0x5155c9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x120f86=this['editor'];_0x120f86['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x590c33=this['_createButton'](_0x3bc7a7);return _0x590c33['tooltip']=!0x0,_0x590c33;}),_0x120f86['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x346864)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x568798=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x316266;for(const _0x27a162 in _0x568798){const _0x5700b2=_0x27a162,_0x2519a6=_0x568798[_0x5700b2];if('tableOfContentsLicenseKeyValid'==_0x2519a6||'tableOfContentsLicenseKeyInvalid'==_0x2519a6||'tableOfContentsLicenseKeyExpired'==_0x2519a6||'tableOfContentsLicenseKeyDomainLimit'==_0x2519a6||'tableOfContentsLicenseKeyNotAllowed'==_0x2519a6||'tableOfContentsLicenseKeyEvaluationLimit'==_0x2519a6||'tableOfContentsLicenseKeyUsageLimit'==_0x2519a6){delete _0x568798[_0x5700b2],_0x316266=_0x2519a6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x316266&&_0x568798['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x316266&&_0x568798['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x316266&&_0x568798['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x316266&&_0x568798['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x316266&&_0x568798['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x316266&&_0x568798['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0xc8bf2b){const _0x40352e=this['editor'],_0x570c4e=_0x40352e['locale'],_0xbd067b=_0x40352e['commands']['get']('insertTableOfContents'),_0x3b418f=new _0xc8bf2b(_0x570c4e);return _0x3b418f['set']({'label':C(_0x570c4e,'Table\x20of\x20contents'),'icon':_0x50c26a}),_0x3b418f['bind']('isEnabled')['to'](_0xbd067b,'isEnabled'),this['listenTo'](_0x3b418f,'execute',()=>{_0x40352e['execute']('insertTableOfContents'),_0x40352e['editing']['view']['focus']();}),_0x3b418f;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class H extends _0x5155c9{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 _0x33b2f9,Command as _0x32b6bb}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x107c74,throttle as _0x3ffef6}from'es-toolkit/compat';import{ModelText as _0x207b3e,ModelTreeWalker as _0x4f1fa7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x4d3826,diffToChanges as _0x46202a,scrollAncestorsToShowTarget as _0x236bb1,CKEditorError as _0x19620b,global as _0x1c4e44,Rect as _0x52bf1c,uid as _0x4e66af,priorities as _0x5e735f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x3cde06,ButtonView as _0x35523e,MenuBarMenuListItemButtonView as _0x1218f2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x5661f1,toWidget as _0x330c3e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x55688e}from'@ckeditor/ckeditor5-icons/dist/index.js';function v(_0x968a33){let _0x5ef60='';for(const _0x5cadcf of _0x968a33['getChildren']())_0x5cadcf instanceof _0x207b3e&&(_0x5ef60+=_0x5cadcf['data']);return _0x5ef60;}class I extends _0x33b2f9{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x81283a=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x3bf85a=[];_0x81283a['model']['document']['on']('change',_0x107c74(()=>{const _0x24f434=_0x3bf85a;_0x3bf85a=this['_getOutlineDefinitions']();const _0x270316=_0x4d3826(_0x24f434,_0x3bf85a,(_0x29e487,_0xe75f35)=>_0x29e487['level']===_0xe75f35['level']&&_0x29e487['text']===_0xe75f35['text']&&_0x29e487['modelElement']===_0xe75f35['modelElement']),_0x53a32c=_0x46202a(_0x270316,_0x3bf85a),_0x39acb3=this['_getActiveHeading'](),_0x67b569=_0x3bf85a['findIndex'](_0x401fae=>_0x401fae['modelElement']===_0x39acb3);_0x53a32c['length']&&this['fire']('change',{'outlineDefinitions':_0x3bf85a,'activeItemIndex':_0x67b569,'outlineChanges':_0x53a32c}),this['fire']('activeItemIndex',{'index':_0x67b569});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x384af2=this['editor'],_0x14c473=[],_0x2b2a1c=this['_headingNames'];for(const _0x4943cb of _0x384af2['model']['document']['getRootNames']())_0x4bbc2b(_0x384af2['model']['document']['getRoot'](_0x4943cb));function _0x4bbc2b(_0xcabe8a){for(const _0x59895f of _0xcabe8a['getChildren']())_0x59895f['is']('element')&&(_0x2b2a1c['includes'](_0x59895f['name'])&&_0x14c473['push']({'level':_0x2b2a1c['indexOf'](_0x59895f['name'])+0x1,'text':v(_0x59895f),'modelElement':_0x59895f}),_0x4bbc2b(_0x59895f));}return _0x14c473;}['_getActiveHeading'](){const _0x38d5fb=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x558775=new _0x4f1fa7({'direction':'backward','startPosition':_0x38d5fb});for(const _0x19ea58 of _0x558775)if(_0x19ea58['item']['is']('element')&&this['_headingNames']['includes'](_0x19ea58['item']['name']))return _0x19ea58['item'];}['_getHeadingNames'](){const _0x1bcc16=this['editor']['config']['get']('documentOutline.headings');return _0x1bcc16||function(_0x3a32e7){const _0x34e127=_0x3a32e7['config']['get']('heading.options');return _0x34e127?_0x34e127['reduce']((_0x11e15d,_0x351d7d)=>('paragraph'!==_0x351d7d['model']&&_0x11e15d['push'](_0x351d7d['model']),_0x11e15d),[]):_0x3a32e7['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x3307d1=this['editor'],_0x33a353=['h1','h2','h3','h4','h5','h6'],_0x2495bc=[];for(const _0x26a8ad of _0x33a353){const _0x12d033=_0x3307d1['editing']['view']['domConverter']['domToView'](document['createElement'](_0x26a8ad)),_0x1378a9=_0x3307d1['data']['toModel'](_0x12d033)['getChild'](0x0);_0x1378a9?.['is']('element')&&_0x2495bc['push'](_0x1378a9['name']);}this['_headingNames']=_0x2495bc;}}function C(_0x10fce6,_0x1bcb02){const t=_0x10fce6['t'];switch(_0x1bcb02){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 _0x1bcb02;}}class _ extends _0x3cde06{constructor(_0x12ee42,_0x1a7ecb=!0x1){super(_0x12ee42);const _0x27e217=this['bindTemplate'],_0x3c2358=_0x1a7ecb?'['+C(_0x12ee42,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x1521d9=>!_0x1521d9),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x27e217['to']('level',_0x1892c7=>'ck-document-outline__item_level-'+_0x1892c7),_0x27e217['if']('isActive','ck-document-outline__item_active'),_0x27e217['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x27e217['to']('text')},'children':[{'text':_0x27e217['to']('text',_0x495af0=>_0x495af0||_0x3c2358)}],'on':{'click':_0x27e217['to']('click')}});}}class L extends _0x3cde06{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x3a1689,_0x5ec689=!0x1,_0xa2ab0e){super(_0x3a1689),this['showEmptyHeadingText']=_0x5ec689,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0xa2ab0e,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x3d780c,_0xfb1325,_0x53d6ed,_0x32c1f7)=>{this['_setActiveItem'](_0x32c1f7,_0x53d6ed);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x3a1689['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x3a1689,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x437e16){_0x437e16['forEach'](_0x9c909d=>{'insert'==_0x9c909d['type']?this['_insertItem'](_0x9c909d['index'],..._0x9c909d['values']):'delete'==_0x9c909d['type']&&this['_deleteItem'](_0x9c909d['index'],_0x9c909d['howMany']);});}['_setActiveItem'](_0xb80f3,_0x159523){if(-0x1!==_0xb80f3){const _0x396753=this['items']['get'](_0xb80f3);_0x396753&&(_0x396753['isActive']=!0x1);}-0x1!==_0x159523&&(this['items']['get'](_0x159523)['isActive']=!0x0,this['_scrollToItem'](_0x159523));}['_insertItem'](_0x5d4c3d,..._0x542f69){const _0x23dd07=_0x542f69['map']((_0x45e836,_0x4f6839)=>{const _0x41277b=new _(this['locale'],this['showEmptyHeadingText']);return _0x41277b['text']=_0x45e836['text'],_0x41277b['level']=_0x45e836['level'],_0x5d4c3d+_0x4f6839===this['activeItemIndex']&&(_0x41277b['isActive']=!0x0),_0x41277b;});this['items']['addMany'](_0x23dd07,_0x5d4c3d);}['_deleteItem'](_0x224d2b,_0xe84a08){do{this['items']['remove'](_0x224d2b);}while(--_0xe84a08);}['_handleItemClick'](_0x43a36f){const _0x56f297=this['items']['getIndex'](_0x43a36f['source']);this['fire']('itemSelected',_0x56f297);}['_scrollToItem'](_0xeef34e){_0x236bb1(this['items']['get'](_0xeef34e)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class x extends _0x33b2f9{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1deec9){super(_0x1deec9),this['view']=new L(_0x1deec9['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x3ffef6(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x512c36=this['editor'],_0x3769db=_0x512c36['plugins']['get']('DocumentOutlineUtils');let _0x445bac=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x512c36['config']['get']('documentOutline.container'))throw new _0x19620b('document-outline-container-not-provided',{'editor':_0x512c36});_0x512c36['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x3769db['on']('change',this['_handleOutlineChange']['bind'](this)),_0x3769db['on']('activeItemIndex',(_0x5e06f5,{index:_0x575a5a})=>this['_setActiveViewItem'](_0x575a5a)),this['view']['on']('itemSelected',(_0x44994a,_0x58e719)=>{_0x445bac=!0x0,this['_handleItemSelected'](_0x58e719);}),this['view']['listenTo'](_0x1c4e44['document'],'scroll',()=>{_0x445bac?_0x445bac=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x1c4e44['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x4ccfaf){const _0x331494=_0x1b68f8([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]),_0x2dc751=0x1cb264a3,_0x1ff26c=0x1cb5e35b^_0x2dc751,_0x539986=window[_0x1b68f8([0x44,0x61,0x74,0x65])][_0x1b68f8([0x6e,0x6f,0x77])](),_0x548829=_0x4ccfaf[_0x1b68f8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47f97e=new window[(_0x1b68f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x182a3c=>{_0x548829[_0x1b68f8([0x6f,0x6e,0x63,0x65])](_0x1b68f8([0x72,0x65,0x61,0x64,0x79]),_0x182a3c);}),_0xd5867b={[_0x1b68f8([0x6b,0x74,0x79])]:_0x1b68f8([0x45,0x43]),[_0x1b68f8([0x75,0x73,0x65])]:_0x1b68f8([0x73,0x69,0x67]),[_0x1b68f8([0x63,0x72,0x76])]:_0x1b68f8([0x50,0x2d,0x32,0x35,0x36]),[_0x1b68f8([0x78])]:_0x1b68f8([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]),[_0x1b68f8([0x79])]:_0x1b68f8([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]),[_0x1b68f8([0x61,0x6c,0x67])]:_0x1b68f8([0x45,0x53,0x32,0x35,0x36])},_0x214e16=_0x548829[_0x1b68f8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1b68f8([0x67,0x65,0x74])](_0x1b68f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x29f671(){let _0x18d479,_0x433f51=null,_0x1b9637=null;try{if(_0x214e16==_0x1b68f8([0x47,0x50,0x4c]))return _0x1b68f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x18d479=_0x325e03(),!_0x18d479)return _0x1b68f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x18d479[_0x1b68f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b9637=_0x10c464(_0x18d479[_0x1b68f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x18d479[_0x1b68f8([0x6a,0x74,0x69])])),await _0x571557()?_0x2cc6a4()?_0x347289()?_0x1b68f8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4054d3()?(_0x18d479[_0x1b68f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b68f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x433f51=_0x5e2bbd(_0x1b68f8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a09ac()):_0x1b68f8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1b68f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1b68f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1b68f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x347289(){const _0x50930b=[_0x1b68f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1b68f8([0x74,0x72,0x69,0x61,0x6c])][_0x1b68f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18d479[_0x1b68f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x539986/0x3e8:0xe10*_0x1ff26c;return _0x18d479[_0x1b68f8([0x65,0x78,0x70])]<_0x50930b;}function _0x2cc6a4(){const _0x40bab4=_0x18d479[_0x1b68f8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x40bab4&&(!!_0x40bab4[_0x1b68f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b68f8([0x2a]))||(!!_0x40bab4[_0x1b68f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b68f8([0x44,0x4f]))||(!!_0x40bab4[_0x1b68f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b68f8([0x50,0x50]))||!(!_0x40bab4[_0x1b68f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b68f8([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x14eea5()))));}function _0x4054d3(){const _0x110cdf=_0x18d479[_0x1b68f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x110cdf||0x0==_0x110cdf[_0x1b68f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x366d09}=new URL(window[_0x1b68f8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x110cdf[_0x1b68f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x366d09))return!0x0;const _0x21ed95=_0x366d09[_0x1b68f8([0x73,0x70,0x6c,0x69,0x74])](_0x1b68f8([0x2e]));return _0x110cdf[_0x1b68f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e3251=>_0x3e3251[_0x1b68f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b68f8([0x2a])))[_0x1b68f8([0x6d,0x61,0x70])](_0x49f3f1=>_0x49f3f1[_0x1b68f8([0x73,0x70,0x6c,0x69,0x74])](_0x1b68f8([0x2e])))[_0x1b68f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c4232=>_0x5c4232[_0x1b68f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x21ed95[_0x1b68f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b68f8([0x6d,0x61,0x70])](_0x1ae0bb=>Array(_0x21ed95[_0x1b68f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1ae0bb[_0x1b68f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b68f8([0x66,0x69,0x6c,0x6c])](_0x1ae0bb[0x0]===_0x1b68f8([0x2a])?_0x1b68f8([0x2a]):'')[_0x1b68f8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1ae0bb))[_0x1b68f8([0x73,0x6f,0x6d,0x65])](_0x30bdb1=>_0x21ed95[_0x1b68f8([0x65,0x76,0x65,0x72,0x79])]((_0xc7836e,_0x11e5ab)=>_0x30bdb1[_0x11e5ab]===_0xc7836e||_0x30bdb1[_0x11e5ab]===_0x1b68f8([0x2a])));}function _0x1a09ac(){return _0x433f51&&_0x1b9637?new window[(_0x1b68f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44a574,_0x515ebe)=>{_0x433f51[_0x1b68f8([0x74,0x68,0x65,0x6e])](_0x44a574,_0x515ebe),_0x1b9637[_0x1b68f8([0x74,0x68,0x65,0x6e])](_0x301d30=>{_0x301d30!=_0x1b68f8([0x56,0x61,0x6c,0x69,0x64])&&_0x44a574(_0x301d30);},_0x515ebe);}):_0x433f51||_0x1b9637||_0x1b68f8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x10c464(_0x1d79a6,_0x54796f){return new window[(_0x1b68f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bd5f9=>{if(_0x418747())return _0x2bd5f9(_0x1b68f8([0x56,0x61,0x6c,0x69,0x64]));_0x4d171f(),_0x548829[_0x1b68f8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1b68f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b4aaf=!0x1;const _0x17c9ca=_0x4e66af();function _0x1927af(_0x32c040){return!!_0x32c040&&(typeof _0x32c040===_0x1b68f8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x32c040===_0x1b68f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x32c040[_0x1b68f8([0x74,0x68,0x65,0x6e])]===_0x1b68f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x32c040[_0x1b68f8([0x63,0x61,0x74,0x63,0x68])]===_0x1b68f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c39fe(_0x2601bc){_0x4659fe(_0x2601bc)[_0x1b68f8([0x74,0x68,0x65,0x6e])](_0xc19ec1=>{if(!_0xc19ec1||_0xc19ec1[_0x1b68f8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1b68f8([0x6f,0x6b]))return _0x1b68f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10e546(_0x29d29f(_0x17c9ca+_0x54796f))!=_0xc19ec1[_0x1b68f8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1b68f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1b68f8([0x56,0x61,0x6c,0x69,0x64]);})[_0x1b68f8([0x74,0x68,0x65,0x6e])](_0x31b3c3=>(_0x36a12d(),_0x31b3c3),()=>{const _0x3582cf=_0x4a9cf4();return null==_0x3582cf?(_0x36a12d(),_0x1b68f8([0x56,0x61,0x6c,0x69,0x64])):_0x1b68f8(_0x539986-_0x3582cf>(0x38bee0a3^_0x2dc751)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1b68f8([0x74,0x68,0x65,0x6e])](_0x2bd5f9)[_0x1b68f8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bd5f9(_0x1b68f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xee280b=0x1c848a23^_0x2dc751;function _0x36a12d(){const _0x1d042c=_0x1b68f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x10e546(_0x29d29f(_0x1d79a6)),_0x51a9b2=_0x5edb18(_0x10e546(window[_0x1b68f8([0x4d,0x61,0x74,0x68])][_0x1b68f8([0x63,0x65,0x69,0x6c])](_0x539986/_0xee280b)));window[_0x1b68f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b68f8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d042c,_0x51a9b2);}function _0x4a9cf4(){const _0x24794f=_0x1b68f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x10e546(_0x29d29f(_0x1d79a6)),_0x2523af=window[_0x1b68f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b68f8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24794f);return _0x2523af?window[_0x1b68f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5edb18(_0x2523af),0x10)*_0xee280b:null;}function _0x4659fe(_0x5493d3){return new window[(_0x1b68f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25111,_0x25514d)=>{_0x5493d3[_0x1b68f8([0x74,0x68,0x65,0x6e])](_0x25111,_0x25514d),window[_0x1b68f8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x25514d,0x1cb3b063^_0x2dc751);});}}_0x548829[_0x1b68f8([0x6f,0x6e])](_0x1b68f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59abd9,_0x2a83c1)=>{if(_0x2a83c1[0x0]!=_0x1d79a6)return _0x2bd5f9(_0x1b68f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a83c1[0x1]={..._0x2a83c1[0x1],[_0x1b68f8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17c9ca};},{[_0x1b68f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b68f8([0x68,0x69,0x67,0x68])}),_0x548829[_0x1b68f8([0x6f,0x6e])](_0x1b68f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x23b741=>{_0x1927af(_0x23b741[_0x1b68f8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b4aaf=!0x0,_0x3c39fe(_0x23b741[_0x1b68f8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1b68f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b68f8([0x6c,0x6f,0x77])}),_0x47f97e[_0x1b68f8([0x74,0x68,0x65,0x6e])](()=>{_0x3b4aaf||_0x2bd5f9(_0x1b68f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x418747(){return _0x548829[_0x1b68f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b68f8([0x76,0x69,0x65,0x77])][_0x1b68f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1b68f8([0x61,0x75,0x74,0x6f]);}function _0x4d171f(){_0x548829[_0x1b68f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b68f8([0x76,0x69,0x65,0x77])][_0x1b68f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b68f8([0x61,0x75,0x74,0x6f]);}}function _0x5e2bbd(_0x345f4d){const _0x55850c=[new window[(_0x1b68f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18e18b=>setTimeout(_0x18e18b,0x1cbb5a6f^_0x2dc751)),_0x47f97e[_0x1b68f8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1b68f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b1b38=>{let _0x621890=0x0;_0x548829[_0x1b68f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b68f8([0x6f,0x6e])](_0x1b68f8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x123c1c,_0x55218c)=>{_0x55218c[0x0][_0x1b68f8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x621890++,_0x621890==(0x1cb2614b^_0x2dc751)&&(_0x1b1b38(),_0x123c1c[_0x1b68f8([0x6f,0x66,0x66])]());});}))];return window[_0x1b68f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b68f8([0x72,0x61,0x63,0x65])](_0x55850c)[_0x1b68f8([0x74,0x68,0x65,0x6e])](()=>_0x345f4d);}async function _0x29e155(){await _0x47f97e,_0x548829[_0x1b68f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b68f8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ac624,_0x548829[_0x1b68f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b68f8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ac624,_0x548829[_0x1b68f8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b68f8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x14eea5(){return window[_0x1b68f8([0x67,0x6c,0x6f,0x62])]&&window[_0x1b68f8([0x67,0x6c,0x6f,0x62])][_0x1b68f8([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x220c17(_0x13e9b4){const _0x29a7a1=_0x2d5fb2();_0x548829[_0x29a7a1]=_0x1b68f8([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])+_0x13e9b4,_0x13e9b4!=_0x1b68f8([0x56,0x61,0x6c,0x69,0x64])&&_0x29e155();}function _0x2d5fb2(){const _0x3160aa=window[_0x1b68f8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1b68f8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b68f8([0x6e,0x6f,0x77])]())[_0x1b68f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b68f8([0x2e]),'');let _0x357c4e=_0x1b68f8([0x61]);for(let _0x107ab8=0x0;_0x107ab8<_0x3160aa[_0x1b68f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x107ab8+=0x2){let _0x2cdf77=window[_0x1b68f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3160aa[_0x1b68f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x107ab8,_0x107ab8+0x2));_0x2cdf77>=_0x331494[_0x1b68f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2cdf77-=_0x331494[_0x1b68f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x357c4e+=_0x331494[_0x2cdf77];}return _0x357c4e;}function _0x325e03(){const _0x323ab6=_0x214e16[_0x1b68f8([0x73,0x70,0x6c,0x69,0x74])](_0x1b68f8([0x2e]));if(0x3!=_0x323ab6[_0x1b68f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34feea(_0x323ab6[0x1]);function _0x34feea(_0xe12c96){const _0x56ebcc=_0x2c35cc(_0xe12c96);return _0x56ebcc&&_0x2542d4()?_0x56ebcc:null;function _0x2542d4(){const _0x461101=_0x56ebcc[_0x1b68f8([0x6a,0x74,0x69])],_0x5d8b51=window[_0x1b68f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x461101[_0x1b68f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x461101[_0x1b68f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6bda7d={..._0x56ebcc,[_0x1b68f8([0x6a,0x74,0x69])]:_0x461101[_0x1b68f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x461101[_0x1b68f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6bda7d[_0x1b68f8([0x76,0x63])],_0x29d29f(_0x6bda7d)==_0x5d8b51;}}}async function _0x571557(){let _0x44e5f2=!0x0;try{const _0xf8bb60=_0x214e16[_0x1b68f8([0x73,0x70,0x6c,0x69,0x74])](_0x1b68f8([0x2e])),[_0x5a5c44,_0x200157,_0x1e29e1]=_0xf8bb60;return _0x2a65d4(_0x5a5c44),await _0x1c345d(_0x5a5c44,_0x200157,_0x1e29e1),_0x44e5f2;}catch{return!0x1;}function _0x2a65d4(_0x5e0151){const _0x4a3070=_0x2c35cc(_0x5e0151);_0x4a3070&&_0x4a3070[_0x1b68f8([0x61,0x6c,0x67])]==_0x1b68f8([0x45,0x53,0x32,0x35,0x36])||(_0x44e5f2=!0x1);}async function _0x1c345d(_0xdbafc,_0x1f0c29,_0x5edc53){const _0x1d2c77=window[_0x1b68f8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1b68f8([0x66,0x72,0x6f,0x6d])](_0x8e3711(_0x5edc53),_0x32b83e=>_0x32b83e[_0x1b68f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbf490b=new window[(_0x1b68f8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1b68f8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xdbafc+_0x1b68f8([0x2e])+_0x1f0c29),_0x1b37af=window[_0x1b68f8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1b68f8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b37af)return;const _0x1662de=await _0x1b37af[_0x1b68f8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1b68f8([0x6a,0x77,0x6b]),_0xd5867b,{[_0x1b68f8([0x6e,0x61,0x6d,0x65])]:_0x1b68f8([0x45,0x43,0x44,0x53,0x41]),[_0x1b68f8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1b68f8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1b68f8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b37af[_0x1b68f8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1b68f8([0x6e,0x61,0x6d,0x65])]:_0x1b68f8([0x45,0x43,0x44,0x53,0x41]),[_0x1b68f8([0x68,0x61,0x73,0x68])]:{[_0x1b68f8([0x6e,0x61,0x6d,0x65])]:_0x1b68f8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1662de,_0x1d2c77,_0xbf490b)||(_0x44e5f2=!0x1);}}function _0x2c35cc(_0x254c5d){return _0x254c5d[_0x1b68f8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1b68f8([0x65,0x79]))?JSON[_0x1b68f8([0x70,0x61,0x72,0x73,0x65])](_0x8e3711(_0x254c5d)):null;}function _0x8e3711(_0x242ad5){return window[_0x1b68f8([0x61,0x74,0x6f,0x62])](_0x242ad5[_0x1b68f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1b68f8([0x2b]))[_0x1b68f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1b68f8([0x2f])));}function _0x29d29f(_0x1db95a){let _0x42a5ff=0x1505;function _0x64d014(_0x4aae78){for(let _0x2d98bc=0x0;_0x2d98bc<_0x4aae78[_0x1b68f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d98bc++){const _0x4f68f9=_0x4aae78[_0x1b68f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d98bc);_0x42a5ff=(_0x42a5ff<<0x5)+_0x42a5ff+_0x4f68f9,_0x42a5ff&=_0x42a5ff;}}function _0x4ca6fe(_0x142171){Array[_0x1b68f8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x142171)?_0x142171[_0x1b68f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4ca6fe):_0x142171&&typeof _0x142171==_0x1b68f8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1b68f8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x142171)[_0x1b68f8([0x73,0x6f,0x72,0x74])]()[_0x1b68f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3806f4,_0x58b291])=>{_0x64d014(_0x3806f4),_0x4ca6fe(_0x58b291);}):_0x64d014(window[_0x1b68f8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x142171));}return _0x4ca6fe(_0x1db95a),_0x42a5ff>>>0x0;}function _0x10e546(_0x30dd58){return _0x30dd58[_0x1b68f8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1b68f8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1b68f8([0x30]));}function _0x5edb18(_0x645ee9){return _0x645ee9[_0x1b68f8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1b68f8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1b68f8([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ac624(){}function _0x1b68f8(_0x1b3493){return _0x1b3493['map'](_0x5eee07=>String['fromCharCode'](_0x5eee07))['join']('');}_0x220c17(await _0x29f671());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x4a318e,{outlineDefinitions:_0x504bf9,outlineChanges:_0x40ee6a}){this['_currentOutlineDefinitions']=_0x504bf9,this['view']['sync'](_0x40ee6a);}['_setActiveViewItem'](_0x57943e){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x57943e]&&(this['view']['activeItemIndex']=_0x57943e);}['_handleItemSelected'](_0x514446){const _0x6c8dbd=this['_currentOutlineDefinitions'][_0x514446]['modelElement'];this['editor']['model']['change'](_0x4f1018=>{_0x4f1018['setSelection'](_0x6c8dbd,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x514446);}['_updateActiveDefinitionOnViewportChange'](){const _0x115d2c=this['editor'];let _0xcdda9b;for(const _0x4a8e22 of _0x115d2c['model']['document']['getRootNames']()){const _0x5795a4=_0x115d2c['editing']['view']['getDomRoot'](_0x4a8e22),_0x362dd6=_0x5795a4&&new _0x52bf1c(_0x5795a4)['getVisible']();if(_0x362dd6){const _0x22921d=new _0x52bf1c(_0x1c4e44['window'])['getIntersection'](_0x362dd6);_0x22921d&&(_0xcdda9b=_0x22921d['top']+0.25*_0x22921d['height']);}}if(void 0x0===_0xcdda9b)return;const _0x4f83c5=k(_0x115d2c['editing'],this['_currentOutlineDefinitions'],_0xcdda9b);_0x4f83c5?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x4f83c5)):this['_setActiveViewItem'](-0x1);}}function k(_0x2fe84f,_0x5d5fb6,_0x27fc59,_0x5c0531=0x0,_0x5247bb=_0x5d5fb6['length']-0x1){const _0x14ff7d=Math['floor'](_0x5c0531+(_0x5247bb-_0x5c0531)/0x2);if(_0x5247bb>=_0x5c0531){const _0x47e307=_0x5d5fb6[_0x14ff7d],_0x1f03d3=_0x2fe84f['mapper']['toViewElement'](_0x47e307['modelElement']);if(!_0x1f03d3)return null;const _0x2adc65=_0x2fe84f['view']['domConverter']['mapViewToDom'](_0x1f03d3);return new _0x52bf1c(_0x2adc65)['bottom']>_0x27fc59?k(_0x2fe84f,_0x5d5fb6,_0x27fc59,_0x5c0531,_0x14ff7d-0x1):k(_0x2fe84f,_0x5d5fb6,_0x27fc59,_0x14ff7d+0x1,_0x5247bb);}return _0x14ff7d<0x0?null:_0x5d5fb6[_0x14ff7d];}class K extends _0x33b2f9{['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 _0x530bfd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe9b387;for(const _0x4e718d in _0x530bfd){const _0x346db9=_0x4e718d,_0x18ec49=_0x530bfd[_0x346db9];if('documentOutlineLicenseKeyValid'==_0x18ec49||'documentOutlineLicenseKeyInvalid'==_0x18ec49||'documentOutlineLicenseKeyExpired'==_0x18ec49||'documentOutlineLicenseKeyDomainLimit'==_0x18ec49||'documentOutlineLicenseKeyNotAllowed'==_0x18ec49||'documentOutlineLicenseKeyEvaluationLimit'==_0x18ec49||'documentOutlineLicenseKeyUsageLimit'==_0x18ec49){delete _0x530bfd[_0x346db9],_0xe9b387=_0x18ec49,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0xe9b387&&_0x530bfd['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0xe9b387&&_0x530bfd['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0xe9b387&&_0x530bfd['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0xe9b387&&_0x530bfd['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0xe9b387&&_0x530bfd['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0xe9b387&&_0x530bfd['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class E extends _0x32b6bb{['execute'](){this['editor']['model']['change'](_0x49b442=>{this['editor']['model']['insertObject'](_0x49b442['createElement']('tableOfContents'));});}['refresh'](){const _0x4a3eab=this['editor']['model'],_0x35dc89=_0x4a3eab['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x35dc89&&_0x4a3eab['schema']['findAllowedParent'](_0x35dc89,'tableOfContents'));}}class N extends _0x33b2f9{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x330b6d=this['editor'];if(_0x330b6d['config']['get']('headingId.modelAttributeName'))return;(function(_0x3a6c14){const _0x32ff59=new Map();if(_0x3a6c14)return _0x3a6c14['forEach'](_0x37c35c=>{'paragraph'!==_0x37c35c['model']&&_0x32ff59['set'](_0x37c35c['view'],_0x37c35c['model']);}),_0x32ff59['get']('h1')||_0x32ff59['set']('h1','heading1'),_0x32ff59;return _0x32ff59;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x28e1e2,_0xfecc25)=>{this['_customUpcastHeadingsConversion'](_0xfecc25),this['_customDataDowncastHeadingsConversion'](_0x28e1e2),_0x330b6d['model']['schema']['isRegistered'](_0x28e1e2)&&_0x330b6d['model']['schema']['extend'](_0x28e1e2,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x1f5d60){this['editor']['conversion']['for']('upcast')['add'](_0x2dae8e=>_0x2dae8e['on']('element:'+_0x1f5d60,(_0x228726,_0x3a80a0,_0x2c815e)=>{const {consumable:_0x33d375,writer:_0xb99f4c}=_0x2c815e,_0x30b276=_0x3a80a0['viewItem']['getAttribute']('id'),_0x1589ce=_0x3a80a0['modelRange']['getContainedElement']();if(_0x1589ce)return _0x30b276&&_0x30b276['length']||_0x1589ce['hasAttribute']('headingId')?void(_0x33d375['consume'](_0x3a80a0['viewItem'],{'attributes':['id']})&&_0xb99f4c['setAttribute']('headingId',_0x30b276,_0x1589ce)):(_0x33d375['consume'](_0x3a80a0['viewItem'],{'attributes':['id']}),void _0xb99f4c['setAttribute']('headingId',_0x4e66af(),_0x1589ce));},{'priority':_0x5e735f['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x18a3f9){this['editor']['conversion']['for']('downcast')['add'](_0x541f0c=>_0x541f0c['on']('attribute:headingId:'+_0x18a3f9,(_0x2a2661,_0x48baa1,_0x29987f)=>{if(!_0x29987f['consumable']['consume'](_0x48baa1['item'],_0x2a2661['name']))return;const _0x113336=_0x48baa1['item']['getAttribute']('headingId'),_0x4c07ef=_0x29987f['mapper']['toViewElement'](_0x48baa1['item']);_0x29987f['writer']['setAttribute']('id',_0x113336,_0x4c07ef);}));}['_registerHeadingIdAttributePostfixer'](){const _0x3b62c2=this['editor'],_0x28095e=new Set(),_0x1f5183=new Set();function _0x5c387d(_0x36418d,_0x261c73){const _0x419cd6=_0x4e66af();return _0x1f5183['add'](_0x419cd6),_0x36418d['setAttribute']('headingId',_0x419cd6,_0x261c73),_0x419cd6;}function _0x3e20fd(_0x5d1c0c,_0x510b9c){_0x5d1c0c['removeAttribute']('headingId',_0x510b9c);}_0x3b62c2['model']['document']['registerPostFixer'](_0x4d6fe4=>{const _0x416548=_0x3b62c2['model']['document']['differ']['getChanges']();let _0xc0758d=!0x1;for(const _0x3afdab of _0x416548)if('insert'==_0x3afdab['type']&&_0x3afdab['name']){if(T(_0x3afdab['name'])){const _0x56cba3=_0x3afdab['attributes']['get']('headingId');'string'==typeof _0x56cba3?_0x28095e['has'](_0x56cba3)?(_0x5c387d(_0x4d6fe4,_0x3afdab['position']['nodeAfter']),_0xc0758d=!0x0):_0x1f5183['add'](_0x56cba3):(_0x5c387d(_0x4d6fe4,_0x3afdab['position']['nodeAfter']),_0xc0758d=!0x0);}else'string'==typeof _0x3afdab['attributes']['get']('headingId')&&(_0x3e20fd(_0x4d6fe4,_0x3afdab['position']['nodeAfter']),_0xc0758d=!0x0);}else{if('remove'==_0x3afdab['type']){const _0x471fcf=_0x3afdab['attributes']['get']('headingId');'string'==typeof _0x471fcf&&_0x28095e['delete'](_0x471fcf);}}return _0xc0758d;}),_0x3b62c2['model']['document']['on']('change',()=>{_0x1f5183['forEach'](_0x5ddaf0=>_0x28095e['add'](_0x5ddaf0)),_0x1f5183['clear']();});}}function T(_0x1f513a){return!!_0x1f513a['match'](/heading\d/);}class A extends _0x33b2f9{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5661f1,I,N];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x5a32fc){super(_0x5a32fc),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x153e8e=this['editor'],_0x28b403=_0x153e8e['editing']['view']['document'];_0x153e8e['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x153e8e['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x28b403,'click',(_0x2e3672,_0x8f776e)=>{if(!_0x8f776e['target'])return;const _0x3355ac=_0x8f776e['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x3355ac)&&(_0x8f776e['domEvent']['preventDefault'](),_0x2e3672['stop'](),this['_handleScrollToHeading'](_0x3355ac));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x153e8e['commands']['add']('insertTableOfContents',new E(_0x153e8e)),(_0x153e8e['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x330119,_0x5ec847)=>{this['_currentOutlineDefinitions']=_0x5ec847['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x153e8e['model']['document'],'change',()=>{this['_trackNewToCElements']();}));}['afterInit'](){!async function(_0x196df2){const _0x17d7b1=_0x2724f3([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]),_0x11d00a=0x6b9b05fd,_0x5565c7=0x6b9c8205^_0x11d00a,_0x1516ed=window[_0x2724f3([0x44,0x61,0x74,0x65])][_0x2724f3([0x6e,0x6f,0x77])](),_0x327b92=_0x196df2[_0x2724f3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x388c06=new window[(_0x2724f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d1958=>{_0x327b92[_0x2724f3([0x6f,0x6e,0x63,0x65])](_0x2724f3([0x72,0x65,0x61,0x64,0x79]),_0x1d1958);}),_0x2b9202={[_0x2724f3([0x6b,0x74,0x79])]:_0x2724f3([0x45,0x43]),[_0x2724f3([0x75,0x73,0x65])]:_0x2724f3([0x73,0x69,0x67]),[_0x2724f3([0x63,0x72,0x76])]:_0x2724f3([0x50,0x2d,0x32,0x35,0x36]),[_0x2724f3([0x78])]:_0x2724f3([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]),[_0x2724f3([0x79])]:_0x2724f3([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]),[_0x2724f3([0x61,0x6c,0x67])]:_0x2724f3([0x45,0x53,0x32,0x35,0x36])},_0x4d2f4e=_0x327b92[_0x2724f3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2724f3([0x67,0x65,0x74])](_0x2724f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x162243(){let _0x58de4b,_0x6108f5=null,_0x8244e2=null;try{if(_0x4d2f4e==_0x2724f3([0x47,0x50,0x4c]))return _0x2724f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58de4b=_0x366616(),!_0x58de4b)return _0x2724f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58de4b[_0x2724f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8244e2=_0x21d3a1(_0x58de4b[_0x2724f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58de4b[_0x2724f3([0x6a,0x74,0x69])])),await _0x11355f()?_0x31d761()?_0x27b00f()?_0x2724f3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb93bc6()?(_0x58de4b[_0x2724f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2724f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6108f5=_0xa2f51(_0x2724f3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x106bbe()):_0x2724f3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2724f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2724f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2724f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x27b00f(){const _0x385b3c=[_0x2724f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2724f3([0x74,0x72,0x69,0x61,0x6c])][_0x2724f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58de4b[_0x2724f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1516ed/0x3e8:0xe10*_0x5565c7;return _0x58de4b[_0x2724f3([0x65,0x78,0x70])]<_0x385b3c;}function _0x31d761(){const _0x44fa2f=_0x58de4b[_0x2724f3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x44fa2f&&(!!_0x44fa2f[_0x2724f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2724f3([0x2a]))||(!!_0x44fa2f[_0x2724f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2724f3([0x54,0x4f,0x43]))||(!!_0x44fa2f[_0x2724f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2724f3([0x50,0x50]))||!(!_0x44fa2f[_0x2724f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2724f3([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x5932f0()))));}function _0xb93bc6(){const _0x5a10c6=_0x58de4b[_0x2724f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a10c6||0x0==_0x5a10c6[_0x2724f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd8051e}=new URL(window[_0x2724f3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a10c6[_0x2724f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd8051e))return!0x0;const _0x3c0ee6=_0xd8051e[_0x2724f3([0x73,0x70,0x6c,0x69,0x74])](_0x2724f3([0x2e]));return _0x5a10c6[_0x2724f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d8889=>_0x1d8889[_0x2724f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2724f3([0x2a])))[_0x2724f3([0x6d,0x61,0x70])](_0x40cb1f=>_0x40cb1f[_0x2724f3([0x73,0x70,0x6c,0x69,0x74])](_0x2724f3([0x2e])))[_0x2724f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ab7cd=>_0x2ab7cd[_0x2724f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c0ee6[_0x2724f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2724f3([0x6d,0x61,0x70])](_0xc5be5c=>Array(_0x3c0ee6[_0x2724f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc5be5c[_0x2724f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2724f3([0x66,0x69,0x6c,0x6c])](_0xc5be5c[0x0]===_0x2724f3([0x2a])?_0x2724f3([0x2a]):'')[_0x2724f3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc5be5c))[_0x2724f3([0x73,0x6f,0x6d,0x65])](_0x30cb92=>_0x3c0ee6[_0x2724f3([0x65,0x76,0x65,0x72,0x79])]((_0x45052d,_0x74e127)=>_0x30cb92[_0x74e127]===_0x45052d||_0x30cb92[_0x74e127]===_0x2724f3([0x2a])));}function _0x106bbe(){return _0x6108f5&&_0x8244e2?new window[(_0x2724f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c6e26,_0x5ac385)=>{_0x6108f5[_0x2724f3([0x74,0x68,0x65,0x6e])](_0x2c6e26,_0x5ac385),_0x8244e2[_0x2724f3([0x74,0x68,0x65,0x6e])](_0x4bf5ad=>{_0x4bf5ad!=_0x2724f3([0x56,0x61,0x6c,0x69,0x64])&&_0x2c6e26(_0x4bf5ad);},_0x5ac385);}):_0x6108f5||_0x8244e2||_0x2724f3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x21d3a1(_0x415d75,_0x8e11ae){return new window[(_0x2724f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fe7c5=>{if(_0x24e77f())return _0x4fe7c5(_0x2724f3([0x56,0x61,0x6c,0x69,0x64]));_0xfe3898(),_0x327b92[_0x2724f3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2724f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2893e3=!0x1;const _0x1f3f74=_0x4e66af();function _0x414eb9(_0x41d2a4){return!!_0x41d2a4&&(typeof _0x41d2a4===_0x2724f3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41d2a4===_0x2724f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41d2a4[_0x2724f3([0x74,0x68,0x65,0x6e])]===_0x2724f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41d2a4[_0x2724f3([0x63,0x61,0x74,0x63,0x68])]===_0x2724f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3a0da1(_0x3ca1e7){_0x28c08c(_0x3ca1e7)[_0x2724f3([0x74,0x68,0x65,0x6e])](_0x79ae96=>{if(!_0x79ae96||_0x79ae96[_0x2724f3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2724f3([0x6f,0x6b]))return _0x2724f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x44bc51(_0x45ded8(_0x1f3f74+_0x8e11ae))!=_0x79ae96[_0x2724f3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2724f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2724f3([0x56,0x61,0x6c,0x69,0x64]);})[_0x2724f3([0x74,0x68,0x65,0x6e])](_0x3964c6=>(_0x5420f1(),_0x3964c6),()=>{const _0x2e47e8=_0x180c2b();return null==_0x2e47e8?(_0x5420f1(),_0x2724f3([0x56,0x61,0x6c,0x69,0x64])):_0x2724f3(_0x1516ed-_0x2e47e8>(0x4f9781fd^_0x11d00a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2724f3([0x74,0x68,0x65,0x6e])](_0x4fe7c5)[_0x2724f3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4fe7c5(_0x2724f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47869a=0x6badeb7d^_0x11d00a;function _0x5420f1(){const _0x4ceb74=_0x2724f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x44bc51(_0x45ded8(_0x415d75)),_0x297e2e=_0x20c5ec(_0x44bc51(window[_0x2724f3([0x4d,0x61,0x74,0x68])][_0x2724f3([0x63,0x65,0x69,0x6c])](_0x1516ed/_0x47869a)));window[_0x2724f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2724f3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ceb74,_0x297e2e);}function _0x180c2b(){const _0x2acbf2=_0x2724f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x44bc51(_0x45ded8(_0x415d75)),_0x19fb14=window[_0x2724f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2724f3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2acbf2);return _0x19fb14?window[_0x2724f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20c5ec(_0x19fb14),0x10)*_0x47869a:null;}function _0x28c08c(_0x33769f){return new window[(_0x2724f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf52b08,_0x390b95)=>{_0x33769f[_0x2724f3([0x74,0x68,0x65,0x6e])](_0xf52b08,_0x390b95),window[_0x2724f3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x390b95,0x6b9ad13d^_0x11d00a);});}}_0x327b92[_0x2724f3([0x6f,0x6e])](_0x2724f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34d196,_0x3d6a4c)=>{if(_0x3d6a4c[0x0]!=_0x415d75)return _0x4fe7c5(_0x2724f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d6a4c[0x1]={..._0x3d6a4c[0x1],[_0x2724f3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f3f74};},{[_0x2724f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2724f3([0x68,0x69,0x67,0x68])}),_0x327b92[_0x2724f3([0x6f,0x6e])](_0x2724f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ff7ca=>{_0x414eb9(_0x3ff7ca[_0x2724f3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2893e3=!0x0,_0x3a0da1(_0x3ff7ca[_0x2724f3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2724f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2724f3([0x6c,0x6f,0x77])}),_0x388c06[_0x2724f3([0x74,0x68,0x65,0x6e])](()=>{_0x2893e3||_0x4fe7c5(_0x2724f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x24e77f(){return _0x327b92[_0x2724f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2724f3([0x76,0x69,0x65,0x77])][_0x2724f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2724f3([0x61,0x75,0x74,0x6f]);}function _0xfe3898(){_0x327b92[_0x2724f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2724f3([0x76,0x69,0x65,0x77])][_0x2724f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2724f3([0x61,0x75,0x74,0x6f]);}}function _0xa2f51(_0x48303e){const _0x984778=[new window[(_0x2724f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a221b=>setTimeout(_0x4a221b,0x6b923b31^_0x11d00a)),_0x388c06[_0x2724f3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2724f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45e148=>{let _0x58bcb3=0x0;_0x327b92[_0x2724f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2724f3([0x6f,0x6e])](_0x2724f3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b8500,_0x5076da)=>{_0x5076da[0x0][_0x2724f3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x58bcb3++,_0x58bcb3==(0x6b9b0015^_0x11d00a)&&(_0x45e148(),_0x3b8500[_0x2724f3([0x6f,0x66,0x66])]());});}))];return window[_0x2724f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2724f3([0x72,0x61,0x63,0x65])](_0x984778)[_0x2724f3([0x74,0x68,0x65,0x6e])](()=>_0x48303e);}async function _0x59edd4(){await _0x388c06,_0x327b92[_0x2724f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2724f3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c68fe,_0x327b92[_0x2724f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2724f3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c68fe,_0x327b92[_0x2724f3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2724f3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5932f0(){return window[_0x2724f3([0x67,0x6c,0x6f,0x62])]&&window[_0x2724f3([0x67,0x6c,0x6f,0x62])][_0x2724f3([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x295885(_0x451dc2){const _0x355283=_0x55cc5d();_0x327b92[_0x355283]=_0x2724f3([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])+_0x451dc2,_0x451dc2!=_0x2724f3([0x56,0x61,0x6c,0x69,0x64])&&_0x59edd4();}function _0x55cc5d(){const _0x10c68f=window[_0x2724f3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2724f3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2724f3([0x6e,0x6f,0x77])]())[_0x2724f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2724f3([0x2e]),'');let _0x1a39f4=_0x2724f3([0x6d]);for(let _0x2ff1d1=0x0;_0x2ff1d1<_0x10c68f[_0x2724f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ff1d1+=0x2){let _0x5e3023=window[_0x2724f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10c68f[_0x2724f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ff1d1,_0x2ff1d1+0x2));_0x5e3023>=_0x17d7b1[_0x2724f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e3023-=_0x17d7b1[_0x2724f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a39f4+=_0x17d7b1[_0x5e3023];}return _0x1a39f4;}function _0x366616(){const _0x7beb6b=_0x4d2f4e[_0x2724f3([0x73,0x70,0x6c,0x69,0x74])](_0x2724f3([0x2e]));if(0x3!=_0x7beb6b[_0x2724f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48d4c7(_0x7beb6b[0x1]);function _0x48d4c7(_0x1a3fcf){const _0x8fc800=_0x1cf1c1(_0x1a3fcf);return _0x8fc800&&_0x3ee029()?_0x8fc800:null;function _0x3ee029(){const _0x2a53a4=_0x8fc800[_0x2724f3([0x6a,0x74,0x69])],_0x13feb2=window[_0x2724f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a53a4[_0x2724f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a53a4[_0x2724f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3428a6={..._0x8fc800,[_0x2724f3([0x6a,0x74,0x69])]:_0x2a53a4[_0x2724f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2a53a4[_0x2724f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3428a6[_0x2724f3([0x76,0x63])],_0x45ded8(_0x3428a6)==_0x13feb2;}}}async function _0x11355f(){let _0x245987=!0x0;try{const _0x45dfe4=_0x4d2f4e[_0x2724f3([0x73,0x70,0x6c,0x69,0x74])](_0x2724f3([0x2e])),[_0x41e32e,_0x3415ea,_0x266982]=_0x45dfe4;return _0x453615(_0x41e32e),await _0x3cef8a(_0x41e32e,_0x3415ea,_0x266982),_0x245987;}catch{return!0x1;}function _0x453615(_0x5be1e6){const _0x38e4c1=_0x1cf1c1(_0x5be1e6);_0x38e4c1&&_0x38e4c1[_0x2724f3([0x61,0x6c,0x67])]==_0x2724f3([0x45,0x53,0x32,0x35,0x36])||(_0x245987=!0x1);}async function _0x3cef8a(_0x4ad56e,_0x5ea694,_0x81582){const _0x5ec271=window[_0x2724f3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2724f3([0x66,0x72,0x6f,0x6d])](_0x47620c(_0x81582),_0x44cfc0=>_0x44cfc0[_0x2724f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5631c2=new window[(_0x2724f3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2724f3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ad56e+_0x2724f3([0x2e])+_0x5ea694),_0x34e610=window[_0x2724f3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2724f3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34e610)return;const _0x41c90a=await _0x34e610[_0x2724f3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2724f3([0x6a,0x77,0x6b]),_0x2b9202,{[_0x2724f3([0x6e,0x61,0x6d,0x65])]:_0x2724f3([0x45,0x43,0x44,0x53,0x41]),[_0x2724f3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2724f3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2724f3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34e610[_0x2724f3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2724f3([0x6e,0x61,0x6d,0x65])]:_0x2724f3([0x45,0x43,0x44,0x53,0x41]),[_0x2724f3([0x68,0x61,0x73,0x68])]:{[_0x2724f3([0x6e,0x61,0x6d,0x65])]:_0x2724f3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x41c90a,_0x5ec271,_0x5631c2)||(_0x245987=!0x1);}}function _0x1cf1c1(_0x1bc7db){return _0x1bc7db[_0x2724f3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2724f3([0x65,0x79]))?JSON[_0x2724f3([0x70,0x61,0x72,0x73,0x65])](_0x47620c(_0x1bc7db)):null;}function _0x47620c(_0x361bec){return window[_0x2724f3([0x61,0x74,0x6f,0x62])](_0x361bec[_0x2724f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2724f3([0x2b]))[_0x2724f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2724f3([0x2f])));}function _0x45ded8(_0x18329b){let _0x21d0ca=0x1505;function _0x207e67(_0x5d5948){for(let _0x2ccb15=0x0;_0x2ccb15<_0x5d5948[_0x2724f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ccb15++){const _0x5b5274=_0x5d5948[_0x2724f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2ccb15);_0x21d0ca=(_0x21d0ca<<0x5)+_0x21d0ca+_0x5b5274,_0x21d0ca&=_0x21d0ca;}}function _0x3bfe65(_0x135e54){Array[_0x2724f3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x135e54)?_0x135e54[_0x2724f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3bfe65):_0x135e54&&typeof _0x135e54==_0x2724f3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2724f3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x135e54)[_0x2724f3([0x73,0x6f,0x72,0x74])]()[_0x2724f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x9b0ff1,_0x37473c])=>{_0x207e67(_0x9b0ff1),_0x3bfe65(_0x37473c);}):_0x207e67(window[_0x2724f3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x135e54));}return _0x3bfe65(_0x18329b),_0x21d0ca>>>0x0;}function _0x44bc51(_0x112521){return _0x112521[_0x2724f3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2724f3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2724f3([0x30]));}function _0x20c5ec(_0x4dad6e){return _0x4dad6e[_0x2724f3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2724f3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2724f3([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c68fe(){}function _0x2724f3(_0x5f00f3){return _0x5f00f3['map'](_0x3a9a12=>String['fromCharCode'](_0x3a9a12))['join']('');}_0x295885(await _0x162243());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x40ff7e=>{'$graveyard'!==_0x40ff7e['rootName']&&this['editor']['editing']['reconvertItem'](_0x40ff7e);});}['_trackNewToCElements'](){for(const _0x382dc1 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x382dc1['type']||'tableOfContents'!==_0x382dc1['name'])return;this['_tableOfContentsElements']['add'](_0x382dc1['position']['nodeAfter']);}}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x37b4a3=this['editor']['conversion'];_0x37b4a3['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x37b4a3['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x3b0917,{writer:_0x466c83})=>this['_createTableOfContents'](_0x466c83,!0x0)}),_0x37b4a3['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x47b5f1,{writer:_0x188579})=>{this['_tableOfContentsElements']['add'](_0x47b5f1);const _0x388b63=this['_createTableOfContents'](_0x188579);return _0x330c3e(_0x388b63,_0x188579,{'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'](_0x3abd65,_0x2b6c6d=!0x1){const {locale:_0x2aa73f}=this['editor'],_0x1a1a10=_0x3abd65['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x2b6c6d&&{'data-table-of-contents-label':C(_0x2aa73f,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x2b6c6d&&_0x3abd65['insert'](_0x3abd65['createPositionAt'](_0x1a1a10,'end'),_0x3abd65['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x3abd65['createText'](C(_0x2aa73f,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x4eac2f=_0x2b6c6d?'':'['+C(_0x2aa73f,'Empty\x20heading')+']';let _0x3c9eb7=_0x1a1a10;return this['_currentOutlineDefinitions']['forEach']((_0x1badc9,_0x475ad7,_0x18d976)=>{const _0x511e44=this['editor']['model']['hasContent'](_0x1badc9['modelElement'],{'ignoreWhitespaces':!0x0}),_0x1a24bc=_0x511e44?_0x1badc9['text']:_0x4eac2f,_0x523b0e=_0x1badc9['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x38d4a7=_0x3abd65['createContainerElement']('a',{'href':'#'+_0x523b0e,...!_0x2b6c6d&&{'tabindex':'-1'}},[_0x3abd65['createText'](_0x1a24bc)]),_0xdb0d74=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x3abd65['setCustomProperty']('tableOfContentsHeadingIndex',_0x475ad7,_0x38d4a7);const _0x4074a1=_0x3abd65['createContainerElement']('li',null,[_0x511e44||!_0x2b6c6d&&_0xdb0d74?_0x38d4a7:_0x3abd65['createText']('')]),_0x5b9782=_0x475ad7?_0x18d976[_0x475ad7-0x1]['level']:0x0,_0x1b9e6e=Math['abs'](_0x1badc9['level']-_0x5b9782);if(_0x1badc9['level']>_0x5b9782){const _0x2b6e08=P(_0x4074a1,_0x1b9e6e,_0x3abd65);_0x3abd65['insert'](_0x3abd65['createPositionAt'](_0x3c9eb7,'end'),_0x2b6e08);}else{const _0x71c3ed=function(_0x187ce8,_0x31ffd6){return _0x187ce8['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x442105=>_0x442105['is']('element','ol'))[_0x31ffd6];}(_0x3c9eb7,_0x1b9e6e);_0x3abd65['insert'](_0x3abd65['createPositionAt'](_0x71c3ed,'end'),_0x4074a1);}_0x3c9eb7=_0x4074a1;}),_0x1a1a10;}['_handleScrollToHeading'](_0x131995){const _0xaf1f72=this['_currentOutlineDefinitions'][_0x131995]['modelElement'];this['editor']['model']['change'](_0x2df2d5=>{_0x2df2d5['setSelection'](_0xaf1f72,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0xa64a5c,_0x571d26)=>{const _0x476d3e=_0x571d26['mapper'],_0x56af3d=_0x476d3e['findMappedViewAncestor'](_0x571d26['viewPosition']),_0x192651=_0x476d3e['toModelElement'](_0x56af3d);_0x192651['is']('element','tableOfContents')&&(_0x571d26['modelPosition']=this['editor']['model']['createPositionAt'](_0x192651,0x0),_0xa64a5c['stop']());};}}function P(_0x393efc,_0x151d6c,_0x527e88){return 0x1===_0x151d6c?_0x527e88['createContainerElement']('ol',null,[_0x393efc]):_0x527e88['createContainerElement']('ol',null,[_0x527e88['createContainerElement']('li',null,[P(_0x393efc,_0x151d6c-0x1,_0x527e88)])]);}class D extends _0x33b2f9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x228000=this['editor'];_0x228000['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x5c7f68=this['_createButton'](_0x35523e);return _0x5c7f68['tooltip']=!0x0,_0x5c7f68;}),_0x228000['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x1218f2)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5d4eff=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e966f;for(const _0x49448e in _0x5d4eff){const _0x46a35c=_0x49448e,_0x529852=_0x5d4eff[_0x46a35c];if('tableOfContentsLicenseKeyValid'==_0x529852||'tableOfContentsLicenseKeyInvalid'==_0x529852||'tableOfContentsLicenseKeyExpired'==_0x529852||'tableOfContentsLicenseKeyDomainLimit'==_0x529852||'tableOfContentsLicenseKeyNotAllowed'==_0x529852||'tableOfContentsLicenseKeyEvaluationLimit'==_0x529852||'tableOfContentsLicenseKeyUsageLimit'==_0x529852){delete _0x5d4eff[_0x46a35c],_0x2e966f=_0x529852,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x2e966f&&_0x5d4eff['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x2e966f&&_0x5d4eff['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x2e966f&&_0x5d4eff['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x2e966f&&_0x5d4eff['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x2e966f&&_0x5d4eff['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x2e966f&&_0x5d4eff['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x42a095){const _0x44f6e0=this['editor'],_0x5006f1=_0x44f6e0['locale'],_0x49fa0a=_0x44f6e0['commands']['get']('insertTableOfContents'),_0x743762=new _0x42a095(_0x5006f1);return _0x743762['set']({'label':C(_0x5006f1,'Table\x20of\x20contents'),'icon':_0x55688e}),_0x743762['bind']('isEnabled')['to'](_0x49fa0a,'isEnabled'),this['listenTo'](_0x743762,'execute',()=>{_0x44f6e0['execute']('insertTableOfContents'),_0x44f6e0['editing']['view']['focus']();}),_0x743762;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class H extends _0x33b2f9{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.1
|
|
3
|
+
"version": "48.0.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.1
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "48.0.1
|
|
26
|
-
"@ckeditor/ckeditor5-heading": "48.0.1
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "48.0.1
|
|
28
|
-
"@ckeditor/ckeditor5-ui": "48.0.1
|
|
29
|
-
"@ckeditor/ckeditor5-utils": "48.0.1
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "48.0.1
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.0.1",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "48.0.1",
|
|
26
|
+
"@ckeditor/ckeditor5-heading": "48.0.1",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "48.0.1",
|
|
28
|
+
"@ckeditor/ckeditor5-ui": "48.0.1",
|
|
29
|
+
"@ckeditor/ckeditor5-utils": "48.0.1",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "48.0.1",
|
|
31
31
|
"es-toolkit": "1.45.1"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|