@ckeditor/ckeditor5-document-outline 48.8.1-alpha.0 → 48.8.1-alpha.2

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0xd2cea7,Command as _0x1d5ff1}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x302a54,throttle as _0x248fb8}from'es-toolkit/compat';import{ModelText as _0xfe5caf,ModelTreeWalker as _0x26c595}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x521a0a,diffToChanges as _0x9247e6,scrollAncestorsToShowTarget as _0xc939d8,CKEditorError as _0x195501,global as _0x3a8916,Rect as _0x237a73,uid as _0x430e0f,priorities as _0x5515cd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x189223,ButtonView as _0x37b19d,MenuBarMenuListItemButtonView as _0x2138f5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x312a7a,toWidget as _0xa662b0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x2de896}from'@ckeditor/ckeditor5-icons/dist/index.js';function I(_0xf4e3bd){let _0x13d564='';for(const _0x27f696 of _0xf4e3bd['getChildren']())_0x27f696 instanceof _0xfe5caf&&(_0x13d564+=_0x27f696['data']);return _0x13d564;}class DocumentOutlineUtils extends _0xd2cea7{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x40740b=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x2aaf60=[];_0x40740b['model']['document']['on']('change',_0x302a54(()=>{const _0x15beaf=_0x2aaf60;_0x2aaf60=this['_getOutlineDefinitions']();const _0x4648eb=_0x521a0a(_0x15beaf,_0x2aaf60,(_0x4c67a7,_0x25ea35)=>_0x4c67a7['level']===_0x25ea35['level']&&_0x4c67a7['text']===_0x25ea35['text']&&_0x4c67a7['modelElement']===_0x25ea35['modelElement']),_0x508228=_0x9247e6(_0x4648eb,_0x2aaf60),_0x2e8d8c=this['_getActiveHeading'](),_0x35eca1=_0x2aaf60['findIndex'](_0x1682e9=>_0x1682e9['modelElement']===_0x2e8d8c);_0x508228['length']&&this['fire']('change',{'outlineDefinitions':_0x2aaf60,'activeItemIndex':_0x35eca1,'outlineChanges':_0x508228}),this['fire']('activeItemIndex',{'index':_0x35eca1});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x5c3fb5=this['editor'],_0x2cfa0a=[],_0x38a27e=this['_headingNames'];for(const _0x20ddcc of _0x5c3fb5['model']['document']['getRootNames']())_0x2b1085(_0x5c3fb5['model']['document']['getRoot'](_0x20ddcc));function _0x2b1085(_0x7a7165){for(const _0x516dee of _0x7a7165['getChildren']())_0x516dee['is']('element')&&(_0x38a27e['includes'](_0x516dee['name'])&&_0x2cfa0a['push']({'level':_0x38a27e['indexOf'](_0x516dee['name'])+0x1,'text':I(_0x516dee),'modelElement':_0x516dee}),_0x2b1085(_0x516dee));}return _0x2cfa0a;}['_getActiveHeading'](){const _0x5aaacc=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x39e0c8=new _0x26c595({'direction':'backward','startPosition':_0x5aaacc});for(const _0x2f488b of _0x39e0c8)if(_0x2f488b['item']['is']('element')&&this['_headingNames']['includes'](_0x2f488b['item']['name']))return _0x2f488b['item'];}['_getHeadingNames'](){const _0x3c50a3=this['editor']['config']['get']('documentOutline.headings');return _0x3c50a3||function(_0xa1fcee){const _0x24bb56=_0xa1fcee['config']['get']('heading.options');return _0x24bb56?_0x24bb56['reduce']((_0x15250b,_0x205804)=>('paragraph'!==_0x205804['model']&&_0x15250b['push'](_0x205804['model']),_0x15250b),[]):_0xa1fcee['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0xd4e8f7=this['editor'],_0x5e8171=['h1','h2','h3','h4','h5','h6'],_0x222d46=[];for(const _0x1b1599 of _0x5e8171){const _0x8c976e=_0xd4e8f7['editing']['view']['domConverter']['domToView'](document['createElement'](_0x1b1599)),_0x48854e=_0xd4e8f7['data']['toModel'](_0x8c976e)['getChild'](0x0);_0x48854e?.['is']('element')&&_0x222d46['push'](_0x48854e['name']);}this['_headingNames']=_0x222d46;}}function C(_0x4b6f6b,_0x50caae){const t=_0x4b6f6b['t'];switch(_0x50caae){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 _0x50caae;}}class DocumentOutlineItemView extends _0x189223{constructor(_0x40d7e3,_0x42607f=!0x1){super(_0x40d7e3);const _0x1509a2=this['bindTemplate'],_0x2b3bcc=_0x42607f?'['+C(_0x40d7e3,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x4383ed=>!_0x4383ed),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x1509a2['to']('level',_0x2fcfb0=>'ck-document-outline__item_level-'+_0x2fcfb0),_0x1509a2['if']('isActive','ck-document-outline__item_active'),_0x1509a2['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x1509a2['to']('text')},'children':[{'text':_0x1509a2['to']('text',_0xf3ab49=>_0xf3ab49||_0x2b3bcc)}],'on':{'click':_0x1509a2['to']('click')}});}}class DocumentOutlineView extends _0x189223{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x2463ac,_0x1c53b0=!0x1,_0x50145b){super(_0x2463ac),this['showEmptyHeadingText']=_0x1c53b0,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x50145b,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x2f172b,_0x3e3f96,_0x45d6b7,_0x2d3d23)=>{this['_setActiveItem'](_0x2d3d23,_0x45d6b7);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x2463ac['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x2463ac,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0xbcf355){_0xbcf355['forEach'](_0x17f9be=>{'insert'==_0x17f9be['type']?this['_insertItem'](_0x17f9be['index'],..._0x17f9be['values']):'delete'==_0x17f9be['type']&&this['_deleteItem'](_0x17f9be['index'],_0x17f9be['howMany']);});}['_setActiveItem'](_0x4882ad,_0x45fd5f){if(-0x1!==_0x4882ad){const _0x221de0=this['items']['get'](_0x4882ad);_0x221de0&&(_0x221de0['isActive']=!0x1);}-0x1!==_0x45fd5f&&(this['items']['get'](_0x45fd5f)['isActive']=!0x0,this['_scrollToItem'](_0x45fd5f));}['_insertItem'](_0xb528ff,..._0x18d135){const _0x20cbe6=_0x18d135['map']((_0x14b10f,_0x472e77)=>{const _0x24989b=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0x24989b['text']=_0x14b10f['text'],_0x24989b['level']=_0x14b10f['level'],_0xb528ff+_0x472e77===this['activeItemIndex']&&(_0x24989b['isActive']=!0x0),_0x24989b;});this['items']['addMany'](_0x20cbe6,_0xb528ff);}['_deleteItem'](_0x577865,_0x1979ca){do{this['items']['remove'](_0x577865);}while(--_0x1979ca);}['_handleItemClick'](_0x2a2eff){const _0x42a001=this['items']['getIndex'](_0x2a2eff['source']);this['fire']('itemSelected',_0x42a001);}['_scrollToItem'](_0x914765){_0xc939d8(this['items']['get'](_0x914765)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class DocumentOutlineUI extends _0xd2cea7{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f0bca){super(_0x4f0bca),this['view']=new DocumentOutlineView(_0x4f0bca['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x248fb8(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x606d5b=this['editor'],_0x3f1733=_0x606d5b['plugins']['get']('DocumentOutlineUtils');let _0x17605a=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x606d5b['config']['get']('documentOutline.container'))throw new _0x195501('document-outline-container-not-provided',{'editor':_0x606d5b});_0x606d5b['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x3f1733['on']('change',this['_handleOutlineChange']['bind'](this)),_0x3f1733['on']('activeItemIndex',(_0x3a706b,{index:_0x4a933a})=>this['_setActiveViewItem'](_0x4a933a)),this['view']['on']('itemSelected',(_0xcf37cb,_0x34730f)=>{_0x17605a=!0x0,this['_handleItemSelected'](_0x34730f);}),this['view']['listenTo'](_0x3a8916['document'],'scroll',()=>{_0x17605a?_0x17605a=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x3a8916['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x2eff16){const _0x59803e=_0x3e4792([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]),_0x469f9c=0x1cb264a3,_0x1611dd=0x1cb5ee83^_0x469f9c,_0xd24a0=window[_0x3e4792([0x44,0x61,0x74,0x65])][_0x3e4792([0x6e,0x6f,0x77])](),_0x39d101=_0x2eff16[_0x3e4792([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1dc69b=new window[(_0x3e4792([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x482043=>{_0x39d101[_0x3e4792([0x6f,0x6e,0x63,0x65])](_0x3e4792([0x72,0x65,0x61,0x64,0x79]),_0x482043);}),_0x44fafd={[_0x3e4792([0x6b,0x74,0x79])]:_0x3e4792([0x45,0x43]),[_0x3e4792([0x75,0x73,0x65])]:_0x3e4792([0x73,0x69,0x67]),[_0x3e4792([0x63,0x72,0x76])]:_0x3e4792([0x50,0x2d,0x32,0x35,0x36]),[_0x3e4792([0x78])]:_0x3e4792([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]),[_0x3e4792([0x79])]:_0x3e4792([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]),[_0x3e4792([0x61,0x6c,0x67])]:_0x3e4792([0x45,0x53,0x32,0x35,0x36])},_0x1f3d05=_0x39d101[_0x3e4792([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e4792([0x67,0x65,0x74])](_0x3e4792([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15618a(){let _0x148854,_0x5c227e=null,_0x7ca318=null;try{if(_0x1f3d05==_0x3e4792([0x47,0x50,0x4c]))return _0x3e4792([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x148854=_0x1464f4(),!_0x148854)return _0x3e4792([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x148854[_0x3e4792([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7ca318=_0x203f93(_0x148854[_0x3e4792([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x148854[_0x3e4792([0x6a,0x74,0x69])])),await _0x15ebae()?_0x4394e7()?_0x4afad4()?_0x3e4792([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x872340()?(_0x148854[_0x3e4792([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e4792([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c227e=_0x5759f9(_0x3e4792([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x38cbc0()):_0x3e4792([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e4792([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e4792([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3e4792([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4afad4(){const _0xdc28cd=[_0x3e4792([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e4792([0x74,0x72,0x69,0x61,0x6c])][_0x3e4792([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x148854[_0x3e4792([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd24a0/0x3e8:0xe10*_0x1611dd;return _0x148854[_0x3e4792([0x65,0x78,0x70])]<_0xdc28cd;}function _0x4394e7(){const _0x212136=_0x148854[_0x3e4792([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x212136&&(!!_0x212136[_0x3e4792([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e4792([0x2a]))||(!!_0x212136[_0x3e4792([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e4792([0x44,0x4f]))||(!!_0x212136[_0x3e4792([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e4792([0x50,0x50]))||!(!_0x212136[_0x3e4792([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e4792([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4b076c()))));}function _0x872340(){const _0x94fe9=_0x148854[_0x3e4792([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x94fe9||0x0==_0x94fe9[_0x3e4792([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3fac84}=new URL(window[_0x3e4792([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x94fe9[_0x3e4792([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fac84))return!0x0;const _0x2cfde0=_0x3fac84[_0x3e4792([0x73,0x70,0x6c,0x69,0x74])](_0x3e4792([0x2e]));return _0x94fe9[_0x3e4792([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2179af=>_0x2179af[_0x3e4792([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e4792([0x2a])))[_0x3e4792([0x6d,0x61,0x70])](_0x38c64d=>_0x38c64d[_0x3e4792([0x73,0x70,0x6c,0x69,0x74])](_0x3e4792([0x2e])))[_0x3e4792([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3121e2=>_0x3121e2[_0x3e4792([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2cfde0[_0x3e4792([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e4792([0x6d,0x61,0x70])](_0x11d3b9=>Array(_0x2cfde0[_0x3e4792([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11d3b9[_0x3e4792([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e4792([0x66,0x69,0x6c,0x6c])](_0x11d3b9[0x0]===_0x3e4792([0x2a])?_0x3e4792([0x2a]):'')[_0x3e4792([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11d3b9))[_0x3e4792([0x73,0x6f,0x6d,0x65])](_0xe3262d=>_0x2cfde0[_0x3e4792([0x65,0x76,0x65,0x72,0x79])]((_0xceeef8,_0x1c6dfc)=>_0xe3262d[_0x1c6dfc]===_0xceeef8||_0xe3262d[_0x1c6dfc]===_0x3e4792([0x2a])));}function _0x38cbc0(){return _0x5c227e&&_0x7ca318?new window[(_0x3e4792([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x88ca69,_0x31e0e3)=>{_0x5c227e[_0x3e4792([0x74,0x68,0x65,0x6e])](_0x88ca69,_0x31e0e3),_0x7ca318[_0x3e4792([0x74,0x68,0x65,0x6e])](_0x1dc38b=>{_0x1dc38b!=_0x3e4792([0x56,0x61,0x6c,0x69,0x64])&&_0x88ca69(_0x1dc38b);},_0x31e0e3);}):_0x5c227e||_0x7ca318||_0x3e4792([0x56,0x61,0x6c,0x69,0x64]);}}function _0x203f93(_0x1ba2f,_0x45050b){return new window[(_0x3e4792([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e2847=>{if(_0x453fd5())return _0x1e2847(_0x3e4792([0x56,0x61,0x6c,0x69,0x64]));_0x467f9e(),_0x39d101[_0x3e4792([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e4792([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x119b2b=!0x1;const _0x15efbf=_0x430e0f();function _0x579f1d(_0x2f7b99){return!!_0x2f7b99&&(typeof _0x2f7b99===_0x3e4792([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f7b99===_0x3e4792([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f7b99[_0x3e4792([0x74,0x68,0x65,0x6e])]===_0x3e4792([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f7b99[_0x3e4792([0x63,0x61,0x74,0x63,0x68])]===_0x3e4792([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4270b2(_0x4a54c9){_0x1306d6(_0x4a54c9)[_0x3e4792([0x74,0x68,0x65,0x6e])](_0x4e9f28=>{if(!_0x4e9f28||_0x4e9f28[_0x3e4792([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e4792([0x6f,0x6b]))return _0x3e4792([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c41a1(_0x153edd(_0x15efbf+_0x45050b))!=_0x4e9f28[_0x3e4792([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e4792([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e4792([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e4792([0x74,0x68,0x65,0x6e])](_0x207dfb=>(_0x333a57(),_0x207dfb),()=>{const _0x3103b1=_0x4f8f5b();return null==_0x3103b1?(_0x333a57(),_0x3e4792([0x56,0x61,0x6c,0x69,0x64])):_0x3e4792(_0xd24a0-_0x3103b1>(0x38bee0a3^_0x469f9c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e4792([0x74,0x68,0x65,0x6e])](_0x1e2847)[_0x3e4792([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e2847(_0x3e4792([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24bbda=0x1c848a23^_0x469f9c;function _0x333a57(){const _0x5e59d1=_0x3e4792([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c41a1(_0x153edd(_0x1ba2f)),_0xa42a79=_0x5cf075(_0x4c41a1(window[_0x3e4792([0x4d,0x61,0x74,0x68])][_0x3e4792([0x63,0x65,0x69,0x6c])](_0xd24a0/_0x24bbda)));window[_0x3e4792([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e4792([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e59d1,_0xa42a79);}function _0x4f8f5b(){const _0x1a56d4=_0x3e4792([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c41a1(_0x153edd(_0x1ba2f)),_0x90a77=window[_0x3e4792([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e4792([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a56d4);return _0x90a77?window[_0x3e4792([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cf075(_0x90a77),0x10)*_0x24bbda:null;}function _0x1306d6(_0x3ec867){return new window[(_0x3e4792([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a73ef,_0x554b08)=>{_0x3ec867[_0x3e4792([0x74,0x68,0x65,0x6e])](_0x3a73ef,_0x554b08),window[_0x3e4792([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x554b08,0x1cb3b063^_0x469f9c);});}}_0x39d101[_0x3e4792([0x6f,0x6e])](_0x3e4792([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2bd6be,_0x221f5f)=>{if(_0x221f5f[0x0]!=_0x1ba2f)return _0x1e2847(_0x3e4792([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x221f5f[0x1]={..._0x221f5f[0x1],[_0x3e4792([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15efbf};},{[_0x3e4792([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e4792([0x68,0x69,0x67,0x68])}),_0x39d101[_0x3e4792([0x6f,0x6e])](_0x3e4792([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38851b=>{_0x579f1d(_0x38851b[_0x3e4792([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x119b2b=!0x0,_0x4270b2(_0x38851b[_0x3e4792([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e4792([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e4792([0x6c,0x6f,0x77])}),_0x1dc69b[_0x3e4792([0x74,0x68,0x65,0x6e])](()=>{_0x119b2b||_0x1e2847(_0x3e4792([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x453fd5(){return _0x39d101[_0x3e4792([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e4792([0x76,0x69,0x65,0x77])][_0x3e4792([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e4792([0x61,0x75,0x74,0x6f]);}function _0x467f9e(){_0x39d101[_0x3e4792([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e4792([0x76,0x69,0x65,0x77])][_0x3e4792([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e4792([0x61,0x75,0x74,0x6f]);}}function _0x5759f9(_0x1af0b1){const _0xddbc8=[new window[(_0x3e4792([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x90672a=>setTimeout(_0x90672a,0x1cbb5a6f^_0x469f9c)),_0x1dc69b[_0x3e4792([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e4792([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42d6f3=>{let _0x1de98f=0x0;_0x39d101[_0x3e4792([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e4792([0x6f,0x6e])](_0x3e4792([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3557fa,_0x6f8d2)=>{_0x6f8d2[0x0][_0x3e4792([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1de98f++,_0x1de98f==(0x1cb2614b^_0x469f9c)&&(_0x42d6f3(),_0x3557fa[_0x3e4792([0x6f,0x66,0x66])]());});}))];return window[_0x3e4792([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e4792([0x72,0x61,0x63,0x65])](_0xddbc8)[_0x3e4792([0x74,0x68,0x65,0x6e])](()=>_0x1af0b1);}async function _0x4dfe63(){await _0x1dc69b,_0x39d101[_0x3e4792([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e4792([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7894df,_0x39d101[_0x3e4792([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e4792([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7894df,_0x39d101[_0x3e4792([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e4792([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b076c(){return window[_0x3e4792([0x67,0x6c,0x6f,0x62])]&&window[_0x3e4792([0x67,0x6c,0x6f,0x62])][_0x3e4792([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x351a5a(_0x12cbfc){const _0x4f7bd9=_0x2c40ad();_0x39d101[_0x4f7bd9]=_0x3e4792([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])+_0x12cbfc,_0x12cbfc!=_0x3e4792([0x56,0x61,0x6c,0x69,0x64])&&_0x4dfe63();}function _0x2c40ad(){const _0x2ece4d=window[_0x3e4792([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e4792([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e4792([0x6e,0x6f,0x77])]())[_0x3e4792([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e4792([0x2e]),'');let _0x242dae=_0x3e4792([0x61]);for(let _0x4787f6=0x0;_0x4787f6<_0x2ece4d[_0x3e4792([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4787f6+=0x2){let _0xc806fb=window[_0x3e4792([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ece4d[_0x3e4792([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4787f6,_0x4787f6+0x2));_0xc806fb>=_0x59803e[_0x3e4792([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc806fb-=_0x59803e[_0x3e4792([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x242dae+=_0x59803e[_0xc806fb];}return _0x242dae;}function _0x1464f4(){const _0x3fa6f5=_0x1f3d05[_0x3e4792([0x73,0x70,0x6c,0x69,0x74])](_0x3e4792([0x2e]));if(0x3!=_0x3fa6f5[_0x3e4792([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1deb11(_0x3fa6f5[0x1]);function _0x1deb11(_0x11c61b){const _0x7eed0b=_0x32bda2(_0x11c61b);return _0x7eed0b&&_0x1fcb17()?_0x7eed0b:null;function _0x1fcb17(){const _0x16e00c=_0x7eed0b[_0x3e4792([0x6a,0x74,0x69])],_0x56848d=window[_0x3e4792([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16e00c[_0x3e4792([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16e00c[_0x3e4792([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x8f08c9={..._0x7eed0b,[_0x3e4792([0x6a,0x74,0x69])]:_0x16e00c[_0x3e4792([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x16e00c[_0x3e4792([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x8f08c9[_0x3e4792([0x76,0x63])],_0x153edd(_0x8f08c9)==_0x56848d;}}}async function _0x15ebae(){let _0x377b88=!0x0;try{const _0x42745b=_0x1f3d05[_0x3e4792([0x73,0x70,0x6c,0x69,0x74])](_0x3e4792([0x2e])),[_0x45a2c1,_0x38d988,_0x45c80c]=_0x42745b;return _0x5a93b8(_0x45a2c1),await _0x4d6b99(_0x45a2c1,_0x38d988,_0x45c80c),_0x377b88;}catch{return!0x1;}function _0x5a93b8(_0x3008d1){const _0x198023=_0x32bda2(_0x3008d1);_0x198023&&_0x198023[_0x3e4792([0x61,0x6c,0x67])]==_0x3e4792([0x45,0x53,0x32,0x35,0x36])||(_0x377b88=!0x1);}async function _0x4d6b99(_0x13bb4f,_0x1d7bb1,_0x42a5c6){const _0x38fa40=window[_0x3e4792([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e4792([0x66,0x72,0x6f,0x6d])](_0x44856f(_0x42a5c6),_0x1aeb8d=>_0x1aeb8d[_0x3e4792([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c6faf=new window[(_0x3e4792([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e4792([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13bb4f+_0x3e4792([0x2e])+_0x1d7bb1),_0x4a689f=window[_0x3e4792([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e4792([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a689f)return;const _0x46d76d=await _0x4a689f[_0x3e4792([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e4792([0x6a,0x77,0x6b]),_0x44fafd,{[_0x3e4792([0x6e,0x61,0x6d,0x65])]:_0x3e4792([0x45,0x43,0x44,0x53,0x41]),[_0x3e4792([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e4792([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e4792([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a689f[_0x3e4792([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e4792([0x6e,0x61,0x6d,0x65])]:_0x3e4792([0x45,0x43,0x44,0x53,0x41]),[_0x3e4792([0x68,0x61,0x73,0x68])]:{[_0x3e4792([0x6e,0x61,0x6d,0x65])]:_0x3e4792([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46d76d,_0x38fa40,_0x5c6faf)||(_0x377b88=!0x1);}}function _0x32bda2(_0x3dd65a){return _0x3dd65a[_0x3e4792([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e4792([0x65,0x79]))?JSON[_0x3e4792([0x70,0x61,0x72,0x73,0x65])](_0x44856f(_0x3dd65a)):null;}function _0x44856f(_0x1838c2){return window[_0x3e4792([0x61,0x74,0x6f,0x62])](_0x1838c2[_0x3e4792([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e4792([0x2b]))[_0x3e4792([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e4792([0x2f])));}function _0x153edd(_0x2d0061){let _0x3234df=0x1505;function _0x1663a0(_0x367c86){for(let _0x400583=0x0;_0x400583<_0x367c86[_0x3e4792([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x400583++){const _0x10dcf7=_0x367c86[_0x3e4792([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x400583);_0x3234df=(_0x3234df<<0x5)+_0x3234df+_0x10dcf7,_0x3234df&=_0x3234df;}}function _0x4c1661(_0x130320){Array[_0x3e4792([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x130320)?_0x130320[_0x3e4792([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c1661):_0x130320&&typeof _0x130320==_0x3e4792([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e4792([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x130320)[_0x3e4792([0x73,0x6f,0x72,0x74])]()[_0x3e4792([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d90f7,_0x5091f6])=>{_0x1663a0(_0x4d90f7),_0x4c1661(_0x5091f6);}):_0x1663a0(window[_0x3e4792([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x130320));}return _0x4c1661(_0x2d0061),_0x3234df>>>0x0;}function _0x4c41a1(_0x1d7dad){return _0x1d7dad[_0x3e4792([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e4792([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e4792([0x30]));}function _0x5cf075(_0x284e47){return _0x284e47[_0x3e4792([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e4792([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e4792([0x6a,0x6f,0x69,0x6e])]('');}function _0x7894df(){}function _0x3e4792(_0xe9af3e){return _0xe9af3e['map'](_0x5912ab=>String['fromCharCode'](_0x5912ab))['join']('');}_0x351a5a(await _0x15618a());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x13ae79,{outlineDefinitions:_0x48041d,outlineChanges:_0x49a7f6}){this['_currentOutlineDefinitions']=_0x48041d,this['view']['sync'](_0x49a7f6);}['_setActiveViewItem'](_0x2f5013){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x2f5013]&&(this['view']['activeItemIndex']=_0x2f5013);}['_handleItemSelected'](_0x2cd7da){const _0x464df7=this['_currentOutlineDefinitions'][_0x2cd7da]['modelElement'];this['editor']['model']['change'](_0xb49e60=>{_0xb49e60['setSelection'](_0x464df7,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x2cd7da);}['_updateActiveDefinitionOnViewportChange'](){const _0x39ac4f=this['editor'];let _0x937b13;for(const _0x270ceb of _0x39ac4f['model']['document']['getRootNames']()){const _0x3c264c=_0x39ac4f['editing']['view']['getDomRoot'](_0x270ceb),_0x453eaf=_0x3c264c&&new _0x237a73(_0x3c264c)['getVisible']();if(_0x453eaf){const _0x50d07a=new _0x237a73(_0x3a8916['window'])['getIntersection'](_0x453eaf);_0x50d07a&&(_0x937b13=_0x50d07a['top']+0.25*_0x50d07a['height']);}}if(void 0x0===_0x937b13)return;const _0x242195=v(_0x39ac4f['editing'],this['_currentOutlineDefinitions'],_0x937b13);_0x242195?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x242195)):this['_setActiveViewItem'](-0x1);}}function v(_0x46e92d,_0x12adb0,_0x39fdce,_0x169649=0x0,_0x1f5e8b=_0x12adb0['length']-0x1){const _0x538393=Math['floor'](_0x169649+(_0x1f5e8b-_0x169649)/0x2);if(_0x1f5e8b>=_0x169649){const _0x40fb80=_0x12adb0[_0x538393],_0xa44333=_0x46e92d['mapper']['toViewElement'](_0x40fb80['modelElement']);if(!_0xa44333)return null;const _0x4dc680=_0x46e92d['view']['domConverter']['mapViewToDom'](_0xa44333);return new _0x237a73(_0x4dc680)['bottom']>_0x39fdce?v(_0x46e92d,_0x12adb0,_0x39fdce,_0x169649,_0x538393-0x1):v(_0x46e92d,_0x12adb0,_0x39fdce,_0x538393+0x1,_0x1f5e8b);}return _0x538393<0x0?null:_0x12adb0[_0x538393];}class DocumentOutline extends _0xd2cea7{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[DocumentOutlineUtils,DocumentOutlineUI];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28d745=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x166b65;for(const _0x243e94 in _0x28d745){const _0x4666ce=_0x243e94,_0x21d5a5=_0x28d745[_0x4666ce];if('documentOutlineLicenseKeyValid'==_0x21d5a5||'documentOutlineLicenseKeyInvalid'==_0x21d5a5||'documentOutlineLicenseKeyExpired'==_0x21d5a5||'documentOutlineLicenseKeyDomainLimit'==_0x21d5a5||'documentOutlineLicenseKeyNotAllowed'==_0x21d5a5||'documentOutlineLicenseKeyEvaluationLimit'==_0x21d5a5||'documentOutlineLicenseKeyUsageLimit'==_0x21d5a5){delete _0x28d745[_0x4666ce],_0x166b65=_0x21d5a5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x166b65&&_0x28d745['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x166b65&&_0x28d745['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x166b65&&_0x28d745['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x166b65&&_0x28d745['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x166b65&&_0x28d745['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x166b65&&_0x28d745['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends _0x1d5ff1{['execute'](){this['editor']['model']['change'](_0x56e83b=>{this['editor']['model']['insertObject'](_0x56e83b['createElement']('tableOfContents'));});}['refresh'](){const _0x4aaeba=this['editor']['model'],_0x1d5a35=_0x4aaeba['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x1d5a35&&_0x4aaeba['schema']['findAllowedParent'](_0x1d5a35,'tableOfContents'));}}class HeadingId extends _0xd2cea7{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5ae5cb=this['editor'];if(_0x5ae5cb['config']['get']('headingId.modelAttributeName'))return;(function(_0x1aa1b1){const _0x139f29=new Map();if(_0x1aa1b1)return _0x1aa1b1['forEach'](_0x1bafa7=>{'paragraph'!==_0x1bafa7['model']&&_0x139f29['set'](_0x1bafa7['view'],_0x1bafa7['model']);}),_0x139f29['get']('h1')||_0x139f29['set']('h1','heading1'),_0x139f29;return _0x139f29;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x186640,_0x5e7916)=>{this['_customUpcastHeadingsConversion'](_0x5e7916),this['_customDataDowncastHeadingsConversion'](_0x186640),_0x5ae5cb['model']['schema']['isRegistered'](_0x186640)&&_0x5ae5cb['model']['schema']['extend'](_0x186640,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x448b23){this['editor']['conversion']['for']('upcast')['add'](_0x4a05c6=>_0x4a05c6['on']('element:'+_0x448b23,(_0x41da02,_0x46f824,_0x1f3708)=>{const {consumable:_0x5f454a,writer:_0x37ac49}=_0x1f3708,_0x2c6502=_0x46f824['viewItem']['getAttribute']('id'),_0x5e4581=_0x46f824['modelRange']['getContainedElement']();if(_0x5e4581)return _0x2c6502&&_0x2c6502['length']||_0x5e4581['hasAttribute']('headingId')?void(_0x5f454a['consume'](_0x46f824['viewItem'],{'attributes':['id']})&&_0x37ac49['setAttribute']('headingId',_0x2c6502,_0x5e4581)):(_0x5f454a['consume'](_0x46f824['viewItem'],{'attributes':['id']}),void _0x37ac49['setAttribute']('headingId',_0x430e0f(),_0x5e4581));},{'priority':_0x5515cd['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x5eb28d){this['editor']['conversion']['for']('downcast')['add'](_0x21150c=>_0x21150c['on']('attribute:headingId:'+_0x5eb28d,(_0x305b17,_0xcebaeb,_0x1e8634)=>{if(!_0x1e8634['consumable']['consume'](_0xcebaeb['item'],_0x305b17['name']))return;const _0x5030a5=_0xcebaeb['item']['getAttribute']('headingId'),_0x3de5a4=_0x1e8634['mapper']['toViewElement'](_0xcebaeb['item']);_0x1e8634['writer']['setAttribute']('id',_0x5030a5,_0x3de5a4);}));}['_registerHeadingIdAttributePostfixer'](){const _0x58b5e7=this['editor'],_0x4cf742=new Set(),_0x9360f7=new Set();function _0x7186f3(_0x5eab0c,_0x2e3bf3){const _0x2e6330=_0x430e0f();return _0x9360f7['add'](_0x2e6330),_0x5eab0c['setAttribute']('headingId',_0x2e6330,_0x2e3bf3),_0x2e6330;}function _0x111acf(_0x8e03c7,_0x22b0d1){_0x8e03c7['removeAttribute']('headingId',_0x22b0d1);}_0x58b5e7['model']['document']['registerPostFixer'](_0x38188d=>{const _0x3b2cde=_0x58b5e7['model']['document']['differ']['getChanges']();let _0x585f6e=!0x1;for(const _0x757bf2 of _0x3b2cde)if('insert'==_0x757bf2['type']&&_0x757bf2['name']){if(_(_0x757bf2['name'])){const _0x194848=_0x757bf2['attributes']['get']('headingId');'string'==typeof _0x194848?_0x4cf742['has'](_0x194848)?(_0x7186f3(_0x38188d,_0x757bf2['position']['nodeAfter']),_0x585f6e=!0x0):_0x9360f7['add'](_0x194848):(_0x7186f3(_0x38188d,_0x757bf2['position']['nodeAfter']),_0x585f6e=!0x0);}else'string'==typeof _0x757bf2['attributes']['get']('headingId')&&(_0x111acf(_0x38188d,_0x757bf2['position']['nodeAfter']),_0x585f6e=!0x0);}else{if('remove'==_0x757bf2['type']){const _0x385242=_0x757bf2['attributes']['get']('headingId');'string'==typeof _0x385242&&_0x4cf742['delete'](_0x385242);}}return _0x585f6e;}),_0x58b5e7['model']['document']['on']('change',()=>{_0x9360f7['forEach'](_0x46243f=>_0x4cf742['add'](_0x46243f)),_0x9360f7['clear']();});}}function _(_0x28212c){return!!_0x28212c['match'](/heading\d/);}class TableOfContentsEditing extends _0xd2cea7{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x312a7a,DocumentOutlineUtils,HeadingId];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x185bca){super(_0x185bca),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x7664ca=this['editor'],_0x464513=_0x7664ca['editing']['view']['document'];_0x7664ca['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x7664ca['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x464513,'click',(_0x3b3008,_0x4bceef)=>{if(!_0x4bceef['target'])return;const _0x57675b=_0x4bceef['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x57675b)&&(_0x4bceef['domEvent']['preventDefault'](),_0x3b3008['stop'](),this['_handleScrollToHeading'](_0x57675b));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x7664ca['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x7664ca));const _0x463bba=_0x7664ca['config']['get']('tableOfContents.headings');if(_0x463bba&&_0x463bba['length'])this['listenTo'](_0x7664ca['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x463bba),this['_updateTableOfContentsElements']();});else _0x7664ca['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x412824,_0x2e0831)=>{this['_currentOutlineDefinitions']=_0x2e0831['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x7664ca['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x5f4a52){const _0x3d2198=_0x4d56f3([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]),_0x29d229=0x6b9b05fd,_0x4a3843=0x6b9c8fdd^_0x29d229,_0x2003f4=window[_0x4d56f3([0x44,0x61,0x74,0x65])][_0x4d56f3([0x6e,0x6f,0x77])](),_0xa14c0b=_0x5f4a52[_0x4d56f3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a4315=new window[(_0x4d56f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9d35d5=>{_0xa14c0b[_0x4d56f3([0x6f,0x6e,0x63,0x65])](_0x4d56f3([0x72,0x65,0x61,0x64,0x79]),_0x9d35d5);}),_0x4fdeaf={[_0x4d56f3([0x6b,0x74,0x79])]:_0x4d56f3([0x45,0x43]),[_0x4d56f3([0x75,0x73,0x65])]:_0x4d56f3([0x73,0x69,0x67]),[_0x4d56f3([0x63,0x72,0x76])]:_0x4d56f3([0x50,0x2d,0x32,0x35,0x36]),[_0x4d56f3([0x78])]:_0x4d56f3([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]),[_0x4d56f3([0x79])]:_0x4d56f3([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]),[_0x4d56f3([0x61,0x6c,0x67])]:_0x4d56f3([0x45,0x53,0x32,0x35,0x36])},_0x5e6e10=_0xa14c0b[_0x4d56f3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d56f3([0x67,0x65,0x74])](_0x4d56f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x579082(){let _0x512387,_0x417711=null,_0x3b1e51=null;try{if(_0x5e6e10==_0x4d56f3([0x47,0x50,0x4c]))return _0x4d56f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x512387=_0xa5edf6(),!_0x512387)return _0x4d56f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x512387[_0x4d56f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b1e51=_0x7a7598(_0x512387[_0x4d56f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x512387[_0x4d56f3([0x6a,0x74,0x69])])),await _0xf8dc74()?_0x3fced3()?_0x13e6e0()?_0x4d56f3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5262c2()?(_0x512387[_0x4d56f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d56f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x417711=_0x52d7fe(_0x4d56f3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e0c38()):_0x4d56f3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d56f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d56f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4d56f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x13e6e0(){const _0x24e935=[_0x4d56f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d56f3([0x74,0x72,0x69,0x61,0x6c])][_0x4d56f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x512387[_0x4d56f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2003f4/0x3e8:0xe10*_0x4a3843;return _0x512387[_0x4d56f3([0x65,0x78,0x70])]<_0x24e935;}function _0x3fced3(){const _0x292ce9=_0x512387[_0x4d56f3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x292ce9&&(!!_0x292ce9[_0x4d56f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d56f3([0x2a]))||(!!_0x292ce9[_0x4d56f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d56f3([0x54,0x4f,0x43]))||(!!_0x292ce9[_0x4d56f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d56f3([0x50,0x50]))||!(!_0x292ce9[_0x4d56f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d56f3([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x43d052()))));}function _0x5262c2(){const _0x48e96a=_0x512387[_0x4d56f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48e96a||0x0==_0x48e96a[_0x4d56f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a59a5}=new URL(window[_0x4d56f3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x48e96a[_0x4d56f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a59a5))return!0x0;const _0x18cdb3=_0x3a59a5[_0x4d56f3([0x73,0x70,0x6c,0x69,0x74])](_0x4d56f3([0x2e]));return _0x48e96a[_0x4d56f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f0cbe=>_0x2f0cbe[_0x4d56f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d56f3([0x2a])))[_0x4d56f3([0x6d,0x61,0x70])](_0x4ce76d=>_0x4ce76d[_0x4d56f3([0x73,0x70,0x6c,0x69,0x74])](_0x4d56f3([0x2e])))[_0x4d56f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ca0b0=>_0x1ca0b0[_0x4d56f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x18cdb3[_0x4d56f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d56f3([0x6d,0x61,0x70])](_0x414819=>Array(_0x18cdb3[_0x4d56f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x414819[_0x4d56f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d56f3([0x66,0x69,0x6c,0x6c])](_0x414819[0x0]===_0x4d56f3([0x2a])?_0x4d56f3([0x2a]):'')[_0x4d56f3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x414819))[_0x4d56f3([0x73,0x6f,0x6d,0x65])](_0x12aac9=>_0x18cdb3[_0x4d56f3([0x65,0x76,0x65,0x72,0x79])]((_0x41c29f,_0x40b92d)=>_0x12aac9[_0x40b92d]===_0x41c29f||_0x12aac9[_0x40b92d]===_0x4d56f3([0x2a])));}function _0x5e0c38(){return _0x417711&&_0x3b1e51?new window[(_0x4d56f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c70ae,_0x4ba1ff)=>{_0x417711[_0x4d56f3([0x74,0x68,0x65,0x6e])](_0x4c70ae,_0x4ba1ff),_0x3b1e51[_0x4d56f3([0x74,0x68,0x65,0x6e])](_0x5b1f11=>{_0x5b1f11!=_0x4d56f3([0x56,0x61,0x6c,0x69,0x64])&&_0x4c70ae(_0x5b1f11);},_0x4ba1ff);}):_0x417711||_0x3b1e51||_0x4d56f3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x7a7598(_0x484e1c,_0x3df514){return new window[(_0x4d56f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46d44c=>{if(_0x336acb())return _0x46d44c(_0x4d56f3([0x56,0x61,0x6c,0x69,0x64]));_0x2a326e(),_0xa14c0b[_0x4d56f3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d56f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x605084=!0x1;const _0x433555=_0x430e0f();function _0x595ade(_0x4fb7bd){return!!_0x4fb7bd&&(typeof _0x4fb7bd===_0x4d56f3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4fb7bd===_0x4d56f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4fb7bd[_0x4d56f3([0x74,0x68,0x65,0x6e])]===_0x4d56f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4fb7bd[_0x4d56f3([0x63,0x61,0x74,0x63,0x68])]===_0x4d56f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29f7d4(_0x2054a8){_0x33658d(_0x2054a8)[_0x4d56f3([0x74,0x68,0x65,0x6e])](_0x13fd1b=>{if(!_0x13fd1b||_0x13fd1b[_0x4d56f3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d56f3([0x6f,0x6b]))return _0x4d56f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x219a6e(_0x30c1a0(_0x433555+_0x3df514))!=_0x13fd1b[_0x4d56f3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d56f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d56f3([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d56f3([0x74,0x68,0x65,0x6e])](_0x3fda8b=>(_0x3d37c0(),_0x3fda8b),()=>{const _0x35e6e2=_0x200750();return null==_0x35e6e2?(_0x3d37c0(),_0x4d56f3([0x56,0x61,0x6c,0x69,0x64])):_0x4d56f3(_0x2003f4-_0x35e6e2>(0x4f9781fd^_0x29d229)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d56f3([0x74,0x68,0x65,0x6e])](_0x46d44c)[_0x4d56f3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46d44c(_0x4d56f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1b0d14=0x6badeb7d^_0x29d229;function _0x3d37c0(){const _0x3dacad=_0x4d56f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x219a6e(_0x30c1a0(_0x484e1c)),_0x55d10f=_0x272109(_0x219a6e(window[_0x4d56f3([0x4d,0x61,0x74,0x68])][_0x4d56f3([0x63,0x65,0x69,0x6c])](_0x2003f4/_0x1b0d14)));window[_0x4d56f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d56f3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3dacad,_0x55d10f);}function _0x200750(){const _0x4ab050=_0x4d56f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x219a6e(_0x30c1a0(_0x484e1c)),_0x63578f=window[_0x4d56f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d56f3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ab050);return _0x63578f?window[_0x4d56f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x272109(_0x63578f),0x10)*_0x1b0d14:null;}function _0x33658d(_0x37ab64){return new window[(_0x4d56f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46375a,_0x29e11b)=>{_0x37ab64[_0x4d56f3([0x74,0x68,0x65,0x6e])](_0x46375a,_0x29e11b),window[_0x4d56f3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29e11b,0x6b9ad13d^_0x29d229);});}}_0xa14c0b[_0x4d56f3([0x6f,0x6e])](_0x4d56f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a1eda,_0x209532)=>{if(_0x209532[0x0]!=_0x484e1c)return _0x46d44c(_0x4d56f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x209532[0x1]={..._0x209532[0x1],[_0x4d56f3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x433555};},{[_0x4d56f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d56f3([0x68,0x69,0x67,0x68])}),_0xa14c0b[_0x4d56f3([0x6f,0x6e])](_0x4d56f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3371bc=>{_0x595ade(_0x3371bc[_0x4d56f3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x605084=!0x0,_0x29f7d4(_0x3371bc[_0x4d56f3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d56f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d56f3([0x6c,0x6f,0x77])}),_0x5a4315[_0x4d56f3([0x74,0x68,0x65,0x6e])](()=>{_0x605084||_0x46d44c(_0x4d56f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x336acb(){return _0xa14c0b[_0x4d56f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d56f3([0x76,0x69,0x65,0x77])][_0x4d56f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d56f3([0x61,0x75,0x74,0x6f]);}function _0x2a326e(){_0xa14c0b[_0x4d56f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d56f3([0x76,0x69,0x65,0x77])][_0x4d56f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d56f3([0x61,0x75,0x74,0x6f]);}}function _0x52d7fe(_0x5c8b74){const _0x5fe91b=[new window[(_0x4d56f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bdd8a=>setTimeout(_0x4bdd8a,0x6b923b31^_0x29d229)),_0x5a4315[_0x4d56f3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d56f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x496482=>{let _0x44301d=0x0;_0xa14c0b[_0x4d56f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d56f3([0x6f,0x6e])](_0x4d56f3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b37cf,_0x3c6187)=>{_0x3c6187[0x0][_0x4d56f3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44301d++,_0x44301d==(0x6b9b0015^_0x29d229)&&(_0x496482(),_0x4b37cf[_0x4d56f3([0x6f,0x66,0x66])]());});}))];return window[_0x4d56f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d56f3([0x72,0x61,0x63,0x65])](_0x5fe91b)[_0x4d56f3([0x74,0x68,0x65,0x6e])](()=>_0x5c8b74);}async function _0x330003(){await _0x5a4315,_0xa14c0b[_0x4d56f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d56f3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59f71f,_0xa14c0b[_0x4d56f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d56f3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59f71f,_0xa14c0b[_0x4d56f3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d56f3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43d052(){return window[_0x4d56f3([0x67,0x6c,0x6f,0x62])]&&window[_0x4d56f3([0x67,0x6c,0x6f,0x62])][_0x4d56f3([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x5690e8(_0x15b0f5){const _0x49cdf4=_0x1fd55b();_0xa14c0b[_0x49cdf4]=_0x4d56f3([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])+_0x15b0f5,_0x15b0f5!=_0x4d56f3([0x56,0x61,0x6c,0x69,0x64])&&_0x330003();}function _0x1fd55b(){const _0x38fbfa=window[_0x4d56f3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d56f3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d56f3([0x6e,0x6f,0x77])]())[_0x4d56f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d56f3([0x2e]),'');let _0x22af59=_0x4d56f3([0x6d]);for(let _0x2c69b3=0x0;_0x2c69b3<_0x38fbfa[_0x4d56f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c69b3+=0x2){let _0x46f7c5=window[_0x4d56f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38fbfa[_0x4d56f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c69b3,_0x2c69b3+0x2));_0x46f7c5>=_0x3d2198[_0x4d56f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46f7c5-=_0x3d2198[_0x4d56f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22af59+=_0x3d2198[_0x46f7c5];}return _0x22af59;}function _0xa5edf6(){const _0x5a801d=_0x5e6e10[_0x4d56f3([0x73,0x70,0x6c,0x69,0x74])](_0x4d56f3([0x2e]));if(0x3!=_0x5a801d[_0x4d56f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49da98(_0x5a801d[0x1]);function _0x49da98(_0x7f42f9){const _0x3aecbb=_0x2ede5a(_0x7f42f9);return _0x3aecbb&&_0x200191()?_0x3aecbb:null;function _0x200191(){const _0x540a15=_0x3aecbb[_0x4d56f3([0x6a,0x74,0x69])],_0x33ee07=window[_0x4d56f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x540a15[_0x4d56f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x540a15[_0x4d56f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c973b={..._0x3aecbb,[_0x4d56f3([0x6a,0x74,0x69])]:_0x540a15[_0x4d56f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x540a15[_0x4d56f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c973b[_0x4d56f3([0x76,0x63])],_0x30c1a0(_0x2c973b)==_0x33ee07;}}}async function _0xf8dc74(){let _0x50fc5c=!0x0;try{const _0x415a2d=_0x5e6e10[_0x4d56f3([0x73,0x70,0x6c,0x69,0x74])](_0x4d56f3([0x2e])),[_0x25f507,_0x3964f6,_0x1105cd]=_0x415a2d;return _0x520d93(_0x25f507),await _0x4928a7(_0x25f507,_0x3964f6,_0x1105cd),_0x50fc5c;}catch{return!0x1;}function _0x520d93(_0x56b085){const _0x211863=_0x2ede5a(_0x56b085);_0x211863&&_0x211863[_0x4d56f3([0x61,0x6c,0x67])]==_0x4d56f3([0x45,0x53,0x32,0x35,0x36])||(_0x50fc5c=!0x1);}async function _0x4928a7(_0x15b32d,_0x16cddc,_0x6e75b0){const _0x21e3a5=window[_0x4d56f3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d56f3([0x66,0x72,0x6f,0x6d])](_0x35929e(_0x6e75b0),_0x34e1f6=>_0x34e1f6[_0x4d56f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x49b3af=new window[(_0x4d56f3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d56f3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15b32d+_0x4d56f3([0x2e])+_0x16cddc),_0x3329e4=window[_0x4d56f3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d56f3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3329e4)return;const _0x2f3293=await _0x3329e4[_0x4d56f3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d56f3([0x6a,0x77,0x6b]),_0x4fdeaf,{[_0x4d56f3([0x6e,0x61,0x6d,0x65])]:_0x4d56f3([0x45,0x43,0x44,0x53,0x41]),[_0x4d56f3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d56f3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d56f3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3329e4[_0x4d56f3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d56f3([0x6e,0x61,0x6d,0x65])]:_0x4d56f3([0x45,0x43,0x44,0x53,0x41]),[_0x4d56f3([0x68,0x61,0x73,0x68])]:{[_0x4d56f3([0x6e,0x61,0x6d,0x65])]:_0x4d56f3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2f3293,_0x21e3a5,_0x49b3af)||(_0x50fc5c=!0x1);}}function _0x2ede5a(_0x69c76f){return _0x69c76f[_0x4d56f3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d56f3([0x65,0x79]))?JSON[_0x4d56f3([0x70,0x61,0x72,0x73,0x65])](_0x35929e(_0x69c76f)):null;}function _0x35929e(_0x2256a4){return window[_0x4d56f3([0x61,0x74,0x6f,0x62])](_0x2256a4[_0x4d56f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d56f3([0x2b]))[_0x4d56f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d56f3([0x2f])));}function _0x30c1a0(_0x449b5b){let _0x5274f8=0x1505;function _0x47ceed(_0x12f8c4){for(let _0x2dad07=0x0;_0x2dad07<_0x12f8c4[_0x4d56f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2dad07++){const _0x50b5a6=_0x12f8c4[_0x4d56f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2dad07);_0x5274f8=(_0x5274f8<<0x5)+_0x5274f8+_0x50b5a6,_0x5274f8&=_0x5274f8;}}function _0x337c61(_0x503cd7){Array[_0x4d56f3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x503cd7)?_0x503cd7[_0x4d56f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x337c61):_0x503cd7&&typeof _0x503cd7==_0x4d56f3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d56f3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x503cd7)[_0x4d56f3([0x73,0x6f,0x72,0x74])]()[_0x4d56f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3031c8,_0x2fadec])=>{_0x47ceed(_0x3031c8),_0x337c61(_0x2fadec);}):_0x47ceed(window[_0x4d56f3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x503cd7));}return _0x337c61(_0x449b5b),_0x5274f8>>>0x0;}function _0x219a6e(_0x5a90d3){return _0x5a90d3[_0x4d56f3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d56f3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d56f3([0x30]));}function _0x272109(_0x31c90d){return _0x31c90d[_0x4d56f3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d56f3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d56f3([0x6a,0x6f,0x69,0x6e])]('');}function _0x59f71f(){}function _0x4d56f3(_0x1ce230){return _0x1ce230['map'](_0x44fe13=>String['fromCharCode'](_0x44fe13))['join']('');}_0x5690e8(await _0x579082());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x373a05=>{'$graveyard'!==_0x373a05['rootName']&&this['editor']['editing']['reconvertItem'](_0x373a05);});}['_trackNewToCElements'](){for(const _0x53acee of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x53acee['type']||'tableOfContents'!==_0x53acee['name'])return;this['_tableOfContentsElements']['add'](_0x53acee['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0xbe6f95){const _0xc76afa=this['editor'],_0x261a3e=[];for(const _0x51d221 of _0xc76afa['model']['document']['getRootNames']())_0x32dd98(_0xc76afa['model']['document']['getRoot'](_0x51d221));function _0x32dd98(_0x3a89f6){for(const _0x353de of _0x3a89f6['getChildren']())_0x353de['is']('element')&&(_0xbe6f95['includes'](_0x353de['name'])&&_0x261a3e['push']({'level':_0xbe6f95['indexOf'](_0x353de['name'])+0x1,'text':I(_0x353de),'modelElement':_0x353de}),_0x32dd98(_0x353de));}return _0x261a3e;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x4b1a63=this['editor']['conversion'];_0x4b1a63['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x4b1a63['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x3639aa,{writer:_0x25ae29})=>this['_createTableOfContents'](_0x25ae29,!0x0)}),_0x4b1a63['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x568361,{writer:_0x440f6f})=>{this['_tableOfContentsElements']['add'](_0x568361);const _0x5483db=this['_createTableOfContents'](_0x440f6f);return _0xa662b0(_0x5483db,_0x440f6f,{'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'](_0x88d5f7,_0x42a83a=!0x1){const {locale:_0x1078bc}=this['editor'],_0x473eee=_0x88d5f7['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x42a83a&&{'data-table-of-contents-label':C(_0x1078bc,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x42a83a&&_0x88d5f7['insert'](_0x88d5f7['createPositionAt'](_0x473eee,'end'),_0x88d5f7['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x88d5f7['createText'](C(_0x1078bc,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x5db566=_0x42a83a?'':'['+C(_0x1078bc,'Empty\x20heading')+']';let _0x557333=_0x473eee;return this['_currentOutlineDefinitions']['forEach']((_0x3bbd4d,_0x45749b,_0x58d030)=>{const _0x30a120=this['editor']['model']['hasContent'](_0x3bbd4d['modelElement'],{'ignoreWhitespaces':!0x0}),_0x1dd518=_0x30a120?_0x3bbd4d['text']:_0x5db566,_0x4dc227=_0x3bbd4d['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x586176=_0x88d5f7['createContainerElement']('a',{'href':'#'+_0x4dc227,...!_0x42a83a&&{'tabindex':'-1'}},[_0x88d5f7['createText'](_0x1dd518)]),_0x5e4cb9=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x88d5f7['setCustomProperty']('tableOfContentsHeadingIndex',_0x45749b,_0x586176);const _0x9f6e9=_0x88d5f7['createContainerElement']('li',null,[_0x30a120||!_0x42a83a&&_0x5e4cb9?_0x586176:_0x88d5f7['createText']('')]),_0x4896ef=_0x45749b?_0x58d030[_0x45749b-0x1]['level']:0x0,_0x3735db=Math['abs'](_0x3bbd4d['level']-_0x4896ef);if(_0x3bbd4d['level']>_0x4896ef){const _0x5af779=x(_0x9f6e9,_0x3735db,_0x88d5f7);_0x88d5f7['insert'](_0x88d5f7['createPositionAt'](_0x557333,'end'),_0x5af779);}else{const _0x32e0ba=function(_0x587541,_0xe35391){return _0x587541['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x1730e8=>_0x1730e8['is']('element','ol'))[_0xe35391];}(_0x557333,_0x3735db);_0x88d5f7['insert'](_0x88d5f7['createPositionAt'](_0x32e0ba,'end'),_0x9f6e9);}_0x557333=_0x9f6e9;}),_0x473eee;}['_handleScrollToHeading'](_0x5a2ce5){const _0x4b4db2=this['_currentOutlineDefinitions'][_0x5a2ce5]['modelElement'];this['editor']['model']['change'](_0x182890=>{_0x182890['setSelection'](_0x4b4db2,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x2768f4,_0x15b1d0)=>{const _0x116809=_0x15b1d0['mapper'],_0x109fd5=_0x116809['findMappedViewAncestor'](_0x15b1d0['viewPosition']),_0x5a31d9=_0x116809['toModelElement'](_0x109fd5);_0x5a31d9['is']('element','tableOfContents')&&(_0x15b1d0['modelPosition']=this['editor']['model']['createPositionAt'](_0x5a31d9,0x0),_0x2768f4['stop']());};}}function x(_0x520fe4,_0x1c193d,_0x4ee16f){return 0x1===_0x1c193d?_0x4ee16f['createContainerElement']('ol',null,[_0x520fe4]):_0x4ee16f['createContainerElement']('ol',null,[_0x4ee16f['createContainerElement']('li',null,[x(_0x520fe4,_0x1c193d-0x1,_0x4ee16f)])]);}class TableOfContentsUI extends _0xd2cea7{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x21378b=this['editor'];_0x21378b['ui']['componentFactory']['add']('tableOfContents',()=>{const _0xc2886f=this['_createButton'](_0x37b19d);return _0xc2886f['tooltip']=!0x0,_0xc2886f;}),_0x21378b['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x2138f5)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x44cb78=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4e96c7;for(const _0x2431a9 in _0x44cb78){const _0x325eff=_0x2431a9,_0x371848=_0x44cb78[_0x325eff];if('tableOfContentsLicenseKeyValid'==_0x371848||'tableOfContentsLicenseKeyInvalid'==_0x371848||'tableOfContentsLicenseKeyExpired'==_0x371848||'tableOfContentsLicenseKeyDomainLimit'==_0x371848||'tableOfContentsLicenseKeyNotAllowed'==_0x371848||'tableOfContentsLicenseKeyEvaluationLimit'==_0x371848||'tableOfContentsLicenseKeyUsageLimit'==_0x371848){delete _0x44cb78[_0x325eff],_0x4e96c7=_0x371848,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x4e96c7&&_0x44cb78['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x4e96c7&&_0x44cb78['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x4e96c7&&_0x44cb78['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x4e96c7&&_0x44cb78['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x4e96c7&&_0x44cb78['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x4e96c7&&_0x44cb78['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x471403){const _0x373414=this['editor'],_0x4851d3=_0x373414['locale'],_0x2b96b3=_0x373414['commands']['get']('insertTableOfContents'),_0x473b83=new _0x471403(_0x4851d3);return _0x473b83['set']({'label':C(_0x4851d3,'Table\x20of\x20contents'),'icon':_0x2de896}),_0x473b83['bind']('isEnabled')['to'](_0x2b96b3,'isEnabled'),this['listenTo'](_0x473b83,'execute',()=>{_0x373414['execute']('insertTableOfContents'),_0x373414['editing']['view']['focus']();}),_0x473b83;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContents extends _0xd2cea7{static get['requires'](){return[TableOfContentsEditing,TableOfContentsUI];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{DocumentOutline,DocumentOutlineUI,DocumentOutlineUtils,HeadingId,TableOfContents,TableOfContentsCommand,TableOfContentsEditing,TableOfContentsUI};
23
+ import{Plugin as _0x1dc72b,Command as _0x35fc4b}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x27dcdf,throttle as _0x17263d}from'es-toolkit/compat';import{ModelText as _0x4e996d,ModelTreeWalker as _0x3d1944}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x591e8f,diffToChanges as _0x4d19d1,scrollAncestorsToShowTarget as _0xee30ec,CKEditorError as _0x24f8ca,global as _0x240eaa,Rect as _0x1c64e4,uid as _0x4d68cf,priorities as _0x224a6b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x57f725,ButtonView as _0x41f114,MenuBarMenuListItemButtonView as _0x6e7c7f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x1c0578,toWidget as _0x1758c8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x44fd98}from'@ckeditor/ckeditor5-icons/dist/index.js';function I(_0x190bfc){let _0x1e49ba='';for(const _0x23ee8a of _0x190bfc['getChildren']())_0x23ee8a instanceof _0x4e996d&&(_0x1e49ba+=_0x23ee8a['data']);return _0x1e49ba;}class DocumentOutlineUtils extends _0x1dc72b{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x3966d6=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x38fe4f=[];_0x3966d6['model']['document']['on']('change',_0x27dcdf(()=>{const _0x19c622=_0x38fe4f;_0x38fe4f=this['_getOutlineDefinitions']();const _0x3695f9=_0x591e8f(_0x19c622,_0x38fe4f,(_0x1d0097,_0x4f579d)=>_0x1d0097['level']===_0x4f579d['level']&&_0x1d0097['text']===_0x4f579d['text']&&_0x1d0097['modelElement']===_0x4f579d['modelElement']),_0x4f89b8=_0x4d19d1(_0x3695f9,_0x38fe4f),_0x1df5f1=this['_getActiveHeading'](),_0x3fd7da=_0x38fe4f['findIndex'](_0x50cde0=>_0x50cde0['modelElement']===_0x1df5f1);_0x4f89b8['length']&&this['fire']('change',{'outlineDefinitions':_0x38fe4f,'activeItemIndex':_0x3fd7da,'outlineChanges':_0x4f89b8}),this['fire']('activeItemIndex',{'index':_0x3fd7da});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x42ef84=this['editor'],_0x1d4013=[],_0x3d33a6=this['_headingNames'];for(const _0x2bd954 of _0x42ef84['model']['document']['getRootNames']())_0x341711(_0x42ef84['model']['document']['getRoot'](_0x2bd954));function _0x341711(_0x4dc67b){for(const _0x864750 of _0x4dc67b['getChildren']())_0x864750['is']('element')&&(_0x3d33a6['includes'](_0x864750['name'])&&_0x1d4013['push']({'level':_0x3d33a6['indexOf'](_0x864750['name'])+0x1,'text':I(_0x864750),'modelElement':_0x864750}),_0x341711(_0x864750));}return _0x1d4013;}['_getActiveHeading'](){const _0x3f6355=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x5d8d0d=new _0x3d1944({'direction':'backward','startPosition':_0x3f6355});for(const _0x357220 of _0x5d8d0d)if(_0x357220['item']['is']('element')&&this['_headingNames']['includes'](_0x357220['item']['name']))return _0x357220['item'];}['_getHeadingNames'](){const _0x51befb=this['editor']['config']['get']('documentOutline.headings');return _0x51befb||function(_0x2a0319){const _0x49c47f=_0x2a0319['config']['get']('heading.options');return _0x49c47f?_0x49c47f['reduce']((_0x49af03,_0xc7dc70)=>('paragraph'!==_0xc7dc70['model']&&_0x49af03['push'](_0xc7dc70['model']),_0x49af03),[]):_0x2a0319['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x472beb=this['editor'],_0x5154a4=['h1','h2','h3','h4','h5','h6'],_0x23034d=[];for(const _0x450cdb of _0x5154a4){const _0x371188=_0x472beb['editing']['view']['domConverter']['domToView'](document['createElement'](_0x450cdb)),_0x5f1dcc=_0x472beb['data']['toModel'](_0x371188)['getChild'](0x0);_0x5f1dcc?.['is']('element')&&_0x23034d['push'](_0x5f1dcc['name']);}this['_headingNames']=_0x23034d;}}function C(_0x5088bc,_0x36d789){const t=_0x5088bc['t'];switch(_0x36d789){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 _0x36d789;}}class DocumentOutlineItemView extends _0x57f725{constructor(_0x4125a8,_0x5d4a2f=!0x1){super(_0x4125a8);const _0x31b889=this['bindTemplate'],_0x3df43a=_0x5d4a2f?'['+C(_0x4125a8,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x12fcfa=>!_0x12fcfa),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x31b889['to']('level',_0x2a32b0=>'ck-document-outline__item_level-'+_0x2a32b0),_0x31b889['if']('isActive','ck-document-outline__item_active'),_0x31b889['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x31b889['to']('text')},'children':[{'text':_0x31b889['to']('text',_0x190700=>_0x190700||_0x3df43a)}],'on':{'click':_0x31b889['to']('click')}});}}class DocumentOutlineView extends _0x57f725{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x5b05e4,_0x18ad0d=!0x1,_0x3dfa4c){super(_0x5b05e4),this['showEmptyHeadingText']=_0x18ad0d,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x3dfa4c,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x1217eb,_0x1ee8f5,_0x521a8e,_0x143b1f)=>{this['_setActiveItem'](_0x143b1f,_0x521a8e);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x5b05e4['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x5b05e4,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x480878){_0x480878['forEach'](_0x11844b=>{'insert'==_0x11844b['type']?this['_insertItem'](_0x11844b['index'],..._0x11844b['values']):'delete'==_0x11844b['type']&&this['_deleteItem'](_0x11844b['index'],_0x11844b['howMany']);});}['_setActiveItem'](_0x5e8b7a,_0xed7303){if(-0x1!==_0x5e8b7a){const _0x1cbeaf=this['items']['get'](_0x5e8b7a);_0x1cbeaf&&(_0x1cbeaf['isActive']=!0x1);}-0x1!==_0xed7303&&(this['items']['get'](_0xed7303)['isActive']=!0x0,this['_scrollToItem'](_0xed7303));}['_insertItem'](_0x16906,..._0x1db7c2){const _0x336139=_0x1db7c2['map']((_0x26c063,_0x9a7a8)=>{const _0x4e5be4=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0x4e5be4['text']=_0x26c063['text'],_0x4e5be4['level']=_0x26c063['level'],_0x16906+_0x9a7a8===this['activeItemIndex']&&(_0x4e5be4['isActive']=!0x0),_0x4e5be4;});this['items']['addMany'](_0x336139,_0x16906);}['_deleteItem'](_0xca06f0,_0x4eb42f){do{this['items']['remove'](_0xca06f0);}while(--_0x4eb42f);}['_handleItemClick'](_0x2dd57d){const _0xb5f391=this['items']['getIndex'](_0x2dd57d['source']);this['fire']('itemSelected',_0xb5f391);}['_scrollToItem'](_0x3d4729){_0xee30ec(this['items']['get'](_0x3d4729)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class DocumentOutlineUI extends _0x1dc72b{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf46f97){super(_0xf46f97),this['view']=new DocumentOutlineView(_0xf46f97['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x17263d(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x587a85=this['editor'],_0x140555=_0x587a85['plugins']['get']('DocumentOutlineUtils');let _0x5f1030=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x587a85['config']['get']('documentOutline.container'))throw new _0x24f8ca('document-outline-container-not-provided',{'editor':_0x587a85});_0x587a85['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x140555['on']('change',this['_handleOutlineChange']['bind'](this)),_0x140555['on']('activeItemIndex',(_0x317142,{index:_0xfc1297})=>this['_setActiveViewItem'](_0xfc1297)),this['view']['on']('itemSelected',(_0x481c36,_0x6bc730)=>{_0x5f1030=!0x0,this['_handleItemSelected'](_0x6bc730);}),this['view']['listenTo'](_0x240eaa['document'],'scroll',()=>{_0x5f1030?_0x5f1030=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x240eaa['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x3b585c){const _0xd0d768=_0x4761fa([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]),_0xfea5a1=0x1cb264a3,_0x47b295=0x1cb5eef3^_0xfea5a1,_0x1d8852=window[_0x4761fa([0x44,0x61,0x74,0x65])][_0x4761fa([0x6e,0x6f,0x77])](),_0x39fe14=_0x3b585c[_0x4761fa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x190f9f=new window[(_0x4761fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x466a2f=>{_0x39fe14[_0x4761fa([0x6f,0x6e,0x63,0x65])](_0x4761fa([0x72,0x65,0x61,0x64,0x79]),_0x466a2f);}),_0x4160e2={[_0x4761fa([0x6b,0x74,0x79])]:_0x4761fa([0x45,0x43]),[_0x4761fa([0x75,0x73,0x65])]:_0x4761fa([0x73,0x69,0x67]),[_0x4761fa([0x63,0x72,0x76])]:_0x4761fa([0x50,0x2d,0x32,0x35,0x36]),[_0x4761fa([0x78])]:_0x4761fa([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]),[_0x4761fa([0x79])]:_0x4761fa([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]),[_0x4761fa([0x61,0x6c,0x67])]:_0x4761fa([0x45,0x53,0x32,0x35,0x36])},_0x499791=_0x39fe14[_0x4761fa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4761fa([0x67,0x65,0x74])](_0x4761fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x581781(){let _0x192996,_0x4073c5=null,_0x3dc693=null;try{if(_0x499791==_0x4761fa([0x47,0x50,0x4c]))return _0x4761fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x192996=_0x522f5c(),!_0x192996)return _0x4761fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x192996[_0x4761fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3dc693=_0xd686cb(_0x192996[_0x4761fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x192996[_0x4761fa([0x6a,0x74,0x69])])),await _0x1d4e5a()?_0x5b26a8()?_0x2e8b3a()?_0x4761fa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b1d6e()?(_0x192996[_0x4761fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4761fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4073c5=_0x139472(_0x4761fa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x508db7()):_0x4761fa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4761fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4761fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4761fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e8b3a(){const _0xb0ece7=[_0x4761fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4761fa([0x74,0x72,0x69,0x61,0x6c])][_0x4761fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x192996[_0x4761fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d8852/0x3e8:0xe10*_0x47b295;return _0x192996[_0x4761fa([0x65,0x78,0x70])]<_0xb0ece7;}function _0x5b26a8(){const _0x1e29e2=_0x192996[_0x4761fa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1e29e2&&(!!_0x1e29e2[_0x4761fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4761fa([0x2a]))||(!!_0x1e29e2[_0x4761fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4761fa([0x44,0x4f]))||(!!_0x1e29e2[_0x4761fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4761fa([0x50,0x50]))||!(!_0x1e29e2[_0x4761fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4761fa([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x8c3b8f()))));}function _0x1b1d6e(){const _0x3db947=_0x192996[_0x4761fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3db947||0x0==_0x3db947[_0x4761fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5efeb7}=new URL(window[_0x4761fa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3db947[_0x4761fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5efeb7))return!0x0;const _0x202268=_0x5efeb7[_0x4761fa([0x73,0x70,0x6c,0x69,0x74])](_0x4761fa([0x2e]));return _0x3db947[_0x4761fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1329a9=>_0x1329a9[_0x4761fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4761fa([0x2a])))[_0x4761fa([0x6d,0x61,0x70])](_0x2dc368=>_0x2dc368[_0x4761fa([0x73,0x70,0x6c,0x69,0x74])](_0x4761fa([0x2e])))[_0x4761fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ba337=>_0x4ba337[_0x4761fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x202268[_0x4761fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4761fa([0x6d,0x61,0x70])](_0x168716=>Array(_0x202268[_0x4761fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x168716[_0x4761fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4761fa([0x66,0x69,0x6c,0x6c])](_0x168716[0x0]===_0x4761fa([0x2a])?_0x4761fa([0x2a]):'')[_0x4761fa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x168716))[_0x4761fa([0x73,0x6f,0x6d,0x65])](_0x5e5666=>_0x202268[_0x4761fa([0x65,0x76,0x65,0x72,0x79])]((_0x4cc63d,_0x5e07a3)=>_0x5e5666[_0x5e07a3]===_0x4cc63d||_0x5e5666[_0x5e07a3]===_0x4761fa([0x2a])));}function _0x508db7(){return _0x4073c5&&_0x3dc693?new window[(_0x4761fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37abd3,_0x211124)=>{_0x4073c5[_0x4761fa([0x74,0x68,0x65,0x6e])](_0x37abd3,_0x211124),_0x3dc693[_0x4761fa([0x74,0x68,0x65,0x6e])](_0x438417=>{_0x438417!=_0x4761fa([0x56,0x61,0x6c,0x69,0x64])&&_0x37abd3(_0x438417);},_0x211124);}):_0x4073c5||_0x3dc693||_0x4761fa([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd686cb(_0xb43138,_0x2ad15b){return new window[(_0x4761fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31d000=>{if(_0x5ebc20())return _0x31d000(_0x4761fa([0x56,0x61,0x6c,0x69,0x64]));_0x2db271(),_0x39fe14[_0x4761fa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4761fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c82d1=!0x1;const _0x28a2ba=_0x4d68cf();function _0x46e17e(_0x5b8352){return!!_0x5b8352&&(typeof _0x5b8352===_0x4761fa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b8352===_0x4761fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b8352[_0x4761fa([0x74,0x68,0x65,0x6e])]===_0x4761fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b8352[_0x4761fa([0x63,0x61,0x74,0x63,0x68])]===_0x4761fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41fee4(_0x141344){_0xd5d901(_0x141344)[_0x4761fa([0x74,0x68,0x65,0x6e])](_0x4d8336=>{if(!_0x4d8336||_0x4d8336[_0x4761fa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4761fa([0x6f,0x6b]))return _0x4761fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f024e(_0x5a4ecd(_0x28a2ba+_0x2ad15b))!=_0x4d8336[_0x4761fa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4761fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4761fa([0x56,0x61,0x6c,0x69,0x64]);})[_0x4761fa([0x74,0x68,0x65,0x6e])](_0x19dc32=>(_0x4c1c13(),_0x19dc32),()=>{const _0x5601a0=_0x45ae0b();return null==_0x5601a0?(_0x4c1c13(),_0x4761fa([0x56,0x61,0x6c,0x69,0x64])):_0x4761fa(_0x1d8852-_0x5601a0>(0x38bee0a3^_0xfea5a1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4761fa([0x74,0x68,0x65,0x6e])](_0x31d000)[_0x4761fa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x31d000(_0x4761fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36b68f=0x1c848a23^_0xfea5a1;function _0x4c1c13(){const _0x1c7fb5=_0x4761fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f024e(_0x5a4ecd(_0xb43138)),_0x5aaf0a=_0x2a1a69(_0x1f024e(window[_0x4761fa([0x4d,0x61,0x74,0x68])][_0x4761fa([0x63,0x65,0x69,0x6c])](_0x1d8852/_0x36b68f)));window[_0x4761fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4761fa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c7fb5,_0x5aaf0a);}function _0x45ae0b(){const _0x2f29f6=_0x4761fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f024e(_0x5a4ecd(_0xb43138)),_0x3b5781=window[_0x4761fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4761fa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f29f6);return _0x3b5781?window[_0x4761fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a1a69(_0x3b5781),0x10)*_0x36b68f:null;}function _0xd5d901(_0x3dcc72){return new window[(_0x4761fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43bd2b,_0x399a56)=>{_0x3dcc72[_0x4761fa([0x74,0x68,0x65,0x6e])](_0x43bd2b,_0x399a56),window[_0x4761fa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x399a56,0x1cb3b063^_0xfea5a1);});}}_0x39fe14[_0x4761fa([0x6f,0x6e])](_0x4761fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x67dd21,_0x43c9d6)=>{if(_0x43c9d6[0x0]!=_0xb43138)return _0x31d000(_0x4761fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43c9d6[0x1]={..._0x43c9d6[0x1],[_0x4761fa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28a2ba};},{[_0x4761fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4761fa([0x68,0x69,0x67,0x68])}),_0x39fe14[_0x4761fa([0x6f,0x6e])](_0x4761fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b03c8=>{_0x46e17e(_0x2b03c8[_0x4761fa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c82d1=!0x0,_0x41fee4(_0x2b03c8[_0x4761fa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4761fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4761fa([0x6c,0x6f,0x77])}),_0x190f9f[_0x4761fa([0x74,0x68,0x65,0x6e])](()=>{_0x5c82d1||_0x31d000(_0x4761fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ebc20(){return _0x39fe14[_0x4761fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4761fa([0x76,0x69,0x65,0x77])][_0x4761fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4761fa([0x61,0x75,0x74,0x6f]);}function _0x2db271(){_0x39fe14[_0x4761fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4761fa([0x76,0x69,0x65,0x77])][_0x4761fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4761fa([0x61,0x75,0x74,0x6f]);}}function _0x139472(_0x4d04fd){const _0x55c5c9=[new window[(_0x4761fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x437f34=>setTimeout(_0x437f34,0x1cbb5a6f^_0xfea5a1)),_0x190f9f[_0x4761fa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4761fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2783f3=>{let _0x36601a=0x0;_0x39fe14[_0x4761fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x4761fa([0x6f,0x6e])](_0x4761fa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x33aff4,_0x9d5ed9)=>{_0x9d5ed9[0x0][_0x4761fa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x36601a++,_0x36601a==(0x1cb2614b^_0xfea5a1)&&(_0x2783f3(),_0x33aff4[_0x4761fa([0x6f,0x66,0x66])]());});}))];return window[_0x4761fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4761fa([0x72,0x61,0x63,0x65])](_0x55c5c9)[_0x4761fa([0x74,0x68,0x65,0x6e])](()=>_0x4d04fd);}async function _0x44f64e(){await _0x190f9f,_0x39fe14[_0x4761fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x4761fa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x57db75,_0x39fe14[_0x4761fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x4761fa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x57db75,_0x39fe14[_0x4761fa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4761fa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8c3b8f(){return window[_0x4761fa([0x67,0x6c,0x6f,0x62])]&&window[_0x4761fa([0x67,0x6c,0x6f,0x62])][_0x4761fa([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x10a210(_0x18989e){const _0x576b0f=_0x1cfbbe();_0x39fe14[_0x576b0f]=_0x4761fa([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])+_0x18989e,_0x18989e!=_0x4761fa([0x56,0x61,0x6c,0x69,0x64])&&_0x44f64e();}function _0x1cfbbe(){const _0x3da2f0=window[_0x4761fa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4761fa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4761fa([0x6e,0x6f,0x77])]())[_0x4761fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4761fa([0x2e]),'');let _0x21c5d8=_0x4761fa([0x61]);for(let _0x4c10a2=0x0;_0x4c10a2<_0x3da2f0[_0x4761fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c10a2+=0x2){let _0x29989c=window[_0x4761fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3da2f0[_0x4761fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c10a2,_0x4c10a2+0x2));_0x29989c>=_0xd0d768[_0x4761fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29989c-=_0xd0d768[_0x4761fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x21c5d8+=_0xd0d768[_0x29989c];}return _0x21c5d8;}function _0x522f5c(){const _0x5e6f1f=_0x499791[_0x4761fa([0x73,0x70,0x6c,0x69,0x74])](_0x4761fa([0x2e]));if(0x3!=_0x5e6f1f[_0x4761fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3befb9(_0x5e6f1f[0x1]);function _0x3befb9(_0x416e40){const _0x41b240=_0x3f2216(_0x416e40);return _0x41b240&&_0x2bb675()?_0x41b240:null;function _0x2bb675(){const _0x51db8a=_0x41b240[_0x4761fa([0x6a,0x74,0x69])],_0x3dbc62=window[_0x4761fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51db8a[_0x4761fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51db8a[_0x4761fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x549ff3={..._0x41b240,[_0x4761fa([0x6a,0x74,0x69])]:_0x51db8a[_0x4761fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51db8a[_0x4761fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x549ff3[_0x4761fa([0x76,0x63])],_0x5a4ecd(_0x549ff3)==_0x3dbc62;}}}async function _0x1d4e5a(){let _0x1b7f97=!0x0;try{const _0x276ad7=_0x499791[_0x4761fa([0x73,0x70,0x6c,0x69,0x74])](_0x4761fa([0x2e])),[_0x17d5f1,_0x82e562,_0x34f8a8]=_0x276ad7;return _0x1e21b6(_0x17d5f1),await _0x20e85e(_0x17d5f1,_0x82e562,_0x34f8a8),_0x1b7f97;}catch{return!0x1;}function _0x1e21b6(_0x44f31a){const _0x149801=_0x3f2216(_0x44f31a);_0x149801&&_0x149801[_0x4761fa([0x61,0x6c,0x67])]==_0x4761fa([0x45,0x53,0x32,0x35,0x36])||(_0x1b7f97=!0x1);}async function _0x20e85e(_0x2d628d,_0x5550e7,_0x30adb6){const _0x589bf2=window[_0x4761fa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4761fa([0x66,0x72,0x6f,0x6d])](_0x240ff4(_0x30adb6),_0x473b68=>_0x473b68[_0x4761fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f9395=new window[(_0x4761fa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4761fa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d628d+_0x4761fa([0x2e])+_0x5550e7),_0x1944b9=window[_0x4761fa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4761fa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1944b9)return;const _0x34d8bb=await _0x1944b9[_0x4761fa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4761fa([0x6a,0x77,0x6b]),_0x4160e2,{[_0x4761fa([0x6e,0x61,0x6d,0x65])]:_0x4761fa([0x45,0x43,0x44,0x53,0x41]),[_0x4761fa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4761fa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4761fa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1944b9[_0x4761fa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4761fa([0x6e,0x61,0x6d,0x65])]:_0x4761fa([0x45,0x43,0x44,0x53,0x41]),[_0x4761fa([0x68,0x61,0x73,0x68])]:{[_0x4761fa([0x6e,0x61,0x6d,0x65])]:_0x4761fa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34d8bb,_0x589bf2,_0x1f9395)||(_0x1b7f97=!0x1);}}function _0x3f2216(_0x3e8c65){return _0x3e8c65[_0x4761fa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4761fa([0x65,0x79]))?JSON[_0x4761fa([0x70,0x61,0x72,0x73,0x65])](_0x240ff4(_0x3e8c65)):null;}function _0x240ff4(_0x1de01f){return window[_0x4761fa([0x61,0x74,0x6f,0x62])](_0x1de01f[_0x4761fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4761fa([0x2b]))[_0x4761fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4761fa([0x2f])));}function _0x5a4ecd(_0x180aaa){let _0xcbca97=0x1505;function _0x1ba41(_0x29f8a9){for(let _0x56d008=0x0;_0x56d008<_0x29f8a9[_0x4761fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56d008++){const _0x3b9542=_0x29f8a9[_0x4761fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56d008);_0xcbca97=(_0xcbca97<<0x5)+_0xcbca97+_0x3b9542,_0xcbca97&=_0xcbca97;}}function _0x39486b(_0x1da3cd){Array[_0x4761fa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1da3cd)?_0x1da3cd[_0x4761fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39486b):_0x1da3cd&&typeof _0x1da3cd==_0x4761fa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4761fa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1da3cd)[_0x4761fa([0x73,0x6f,0x72,0x74])]()[_0x4761fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf221b2,_0x15f778])=>{_0x1ba41(_0xf221b2),_0x39486b(_0x15f778);}):_0x1ba41(window[_0x4761fa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1da3cd));}return _0x39486b(_0x180aaa),_0xcbca97>>>0x0;}function _0x1f024e(_0x3b689d){return _0x3b689d[_0x4761fa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4761fa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4761fa([0x30]));}function _0x2a1a69(_0x4033b5){return _0x4033b5[_0x4761fa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4761fa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4761fa([0x6a,0x6f,0x69,0x6e])]('');}function _0x57db75(){}function _0x4761fa(_0x3bea74){return _0x3bea74['map'](_0x5e4aef=>String['fromCharCode'](_0x5e4aef))['join']('');}_0x10a210(await _0x581781());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x2a4242,{outlineDefinitions:_0x1eaa83,outlineChanges:_0x59720c}){this['_currentOutlineDefinitions']=_0x1eaa83,this['view']['sync'](_0x59720c);}['_setActiveViewItem'](_0x577877){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x577877]&&(this['view']['activeItemIndex']=_0x577877);}['_handleItemSelected'](_0x40dddf){const _0x6480fc=this['_currentOutlineDefinitions'][_0x40dddf]['modelElement'];this['editor']['model']['change'](_0x20d448=>{_0x20d448['setSelection'](_0x6480fc,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x40dddf);}['_updateActiveDefinitionOnViewportChange'](){const _0x3587bd=this['editor'];let _0x4c6396;for(const _0x456b8c of _0x3587bd['model']['document']['getRootNames']()){const _0x3fb0f3=_0x3587bd['editing']['view']['getDomRoot'](_0x456b8c),_0x58f724=_0x3fb0f3&&new _0x1c64e4(_0x3fb0f3)['getVisible']();if(_0x58f724){const _0x39cdd6=new _0x1c64e4(_0x240eaa['window'])['getIntersection'](_0x58f724);_0x39cdd6&&(_0x4c6396=_0x39cdd6['top']+0.25*_0x39cdd6['height']);}}if(void 0x0===_0x4c6396)return;const _0x1fc205=v(_0x3587bd['editing'],this['_currentOutlineDefinitions'],_0x4c6396);_0x1fc205?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x1fc205)):this['_setActiveViewItem'](-0x1);}}function v(_0xaa0089,_0x1ec583,_0x57bc1b,_0x2d4b73=0x0,_0x1e1d77=_0x1ec583['length']-0x1){const _0x5df6de=Math['floor'](_0x2d4b73+(_0x1e1d77-_0x2d4b73)/0x2);if(_0x1e1d77>=_0x2d4b73){const _0x57d006=_0x1ec583[_0x5df6de],_0x563fa1=_0xaa0089['mapper']['toViewElement'](_0x57d006['modelElement']);if(!_0x563fa1)return null;const _0x3e5705=_0xaa0089['view']['domConverter']['mapViewToDom'](_0x563fa1);return new _0x1c64e4(_0x3e5705)['bottom']>_0x57bc1b?v(_0xaa0089,_0x1ec583,_0x57bc1b,_0x2d4b73,_0x5df6de-0x1):v(_0xaa0089,_0x1ec583,_0x57bc1b,_0x5df6de+0x1,_0x1e1d77);}return _0x5df6de<0x0?null:_0x1ec583[_0x5df6de];}class DocumentOutline extends _0x1dc72b{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[DocumentOutlineUtils,DocumentOutlineUI];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x34b916=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb603ab;for(const _0x4121b6 in _0x34b916){const _0x972e32=_0x4121b6,_0x41418c=_0x34b916[_0x972e32];if('documentOutlineLicenseKeyValid'==_0x41418c||'documentOutlineLicenseKeyInvalid'==_0x41418c||'documentOutlineLicenseKeyExpired'==_0x41418c||'documentOutlineLicenseKeyDomainLimit'==_0x41418c||'documentOutlineLicenseKeyNotAllowed'==_0x41418c||'documentOutlineLicenseKeyEvaluationLimit'==_0x41418c||'documentOutlineLicenseKeyUsageLimit'==_0x41418c){delete _0x34b916[_0x972e32],_0xb603ab=_0x41418c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0xb603ab&&_0x34b916['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0xb603ab&&_0x34b916['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0xb603ab&&_0x34b916['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0xb603ab&&_0x34b916['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0xb603ab&&_0x34b916['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0xb603ab&&_0x34b916['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends _0x35fc4b{['execute'](){this['editor']['model']['change'](_0x37669f=>{this['editor']['model']['insertObject'](_0x37669f['createElement']('tableOfContents'));});}['refresh'](){const _0x421121=this['editor']['model'],_0x35aad2=_0x421121['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x35aad2&&_0x421121['schema']['findAllowedParent'](_0x35aad2,'tableOfContents'));}}class HeadingId extends _0x1dc72b{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x30fe55=this['editor'];if(_0x30fe55['config']['get']('headingId.modelAttributeName'))return;(function(_0x19ea7d){const _0x14a593=new Map();if(_0x19ea7d)return _0x19ea7d['forEach'](_0x533420=>{'paragraph'!==_0x533420['model']&&_0x14a593['set'](_0x533420['view'],_0x533420['model']);}),_0x14a593['get']('h1')||_0x14a593['set']('h1','heading1'),_0x14a593;return _0x14a593;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x73b72b,_0x4c1261)=>{this['_customUpcastHeadingsConversion'](_0x4c1261),this['_customDataDowncastHeadingsConversion'](_0x73b72b),_0x30fe55['model']['schema']['isRegistered'](_0x73b72b)&&_0x30fe55['model']['schema']['extend'](_0x73b72b,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x2c34eb){this['editor']['conversion']['for']('upcast')['add'](_0x5876f6=>_0x5876f6['on']('element:'+_0x2c34eb,(_0x494213,_0x1fa536,_0xe1c9c5)=>{const {consumable:_0x243742,writer:_0x5750d4}=_0xe1c9c5,_0x122c41=_0x1fa536['viewItem']['getAttribute']('id'),_0x3ed943=_0x1fa536['modelRange']['getContainedElement']();if(_0x3ed943)return _0x122c41&&_0x122c41['length']||_0x3ed943['hasAttribute']('headingId')?void(_0x243742['consume'](_0x1fa536['viewItem'],{'attributes':['id']})&&_0x5750d4['setAttribute']('headingId',_0x122c41,_0x3ed943)):(_0x243742['consume'](_0x1fa536['viewItem'],{'attributes':['id']}),void _0x5750d4['setAttribute']('headingId',_0x4d68cf(),_0x3ed943));},{'priority':_0x224a6b['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x2c8cb6){this['editor']['conversion']['for']('downcast')['add'](_0x365ed6=>_0x365ed6['on']('attribute:headingId:'+_0x2c8cb6,(_0x5e879c,_0x4d9aa7,_0x9bc553)=>{if(!_0x9bc553['consumable']['consume'](_0x4d9aa7['item'],_0x5e879c['name']))return;const _0x562e7d=_0x4d9aa7['item']['getAttribute']('headingId'),_0x1d3a33=_0x9bc553['mapper']['toViewElement'](_0x4d9aa7['item']);_0x9bc553['writer']['setAttribute']('id',_0x562e7d,_0x1d3a33);}));}['_registerHeadingIdAttributePostfixer'](){const _0x4e3746=this['editor'],_0xc37f3=new Set(),_0x5a1780=new Set();function _0x14c77c(_0x4564a8,_0x5b1a79){const _0x794b05=_0x4d68cf();return _0x5a1780['add'](_0x794b05),_0x4564a8['setAttribute']('headingId',_0x794b05,_0x5b1a79),_0x794b05;}function _0x37fe1d(_0x8cf832,_0xebce4){_0x8cf832['removeAttribute']('headingId',_0xebce4);}_0x4e3746['model']['document']['registerPostFixer'](_0x342cfa=>{const _0x656776=_0x4e3746['model']['document']['differ']['getChanges']();let _0xa5b21c=!0x1;for(const _0x3937ee of _0x656776)if('insert'==_0x3937ee['type']&&_0x3937ee['name']){if(_(_0x3937ee['name'])){const _0x2c421b=_0x3937ee['attributes']['get']('headingId');'string'==typeof _0x2c421b?_0xc37f3['has'](_0x2c421b)?(_0x14c77c(_0x342cfa,_0x3937ee['position']['nodeAfter']),_0xa5b21c=!0x0):_0x5a1780['add'](_0x2c421b):(_0x14c77c(_0x342cfa,_0x3937ee['position']['nodeAfter']),_0xa5b21c=!0x0);}else'string'==typeof _0x3937ee['attributes']['get']('headingId')&&(_0x37fe1d(_0x342cfa,_0x3937ee['position']['nodeAfter']),_0xa5b21c=!0x0);}else{if('remove'==_0x3937ee['type']){const _0x25c564=_0x3937ee['attributes']['get']('headingId');'string'==typeof _0x25c564&&_0xc37f3['delete'](_0x25c564);}}return _0xa5b21c;}),_0x4e3746['model']['document']['on']('change',()=>{_0x5a1780['forEach'](_0x33d27f=>_0xc37f3['add'](_0x33d27f)),_0x5a1780['clear']();});}}function _(_0x42f1fc){return!!_0x42f1fc['match'](/heading\d/);}class TableOfContentsEditing extends _0x1dc72b{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1c0578,DocumentOutlineUtils,HeadingId];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x4786c1){super(_0x4786c1),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x59fe9a=this['editor'],_0x34555f=_0x59fe9a['editing']['view']['document'];_0x59fe9a['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x59fe9a['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x34555f,'click',(_0x102919,_0x3fc19f)=>{if(!_0x3fc19f['target'])return;const _0x5f26e6=_0x3fc19f['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x5f26e6)&&(_0x3fc19f['domEvent']['preventDefault'](),_0x102919['stop'](),this['_handleScrollToHeading'](_0x5f26e6));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x59fe9a['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x59fe9a));const _0xe79f4a=_0x59fe9a['config']['get']('tableOfContents.headings');if(_0xe79f4a&&_0xe79f4a['length'])this['listenTo'](_0x59fe9a['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0xe79f4a),this['_updateTableOfContentsElements']();});else _0x59fe9a['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x3aa909,_0x2f7af0)=>{this['_currentOutlineDefinitions']=_0x2f7af0['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x59fe9a['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x969083){const _0x57d449=_0x3ba17b([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]),_0x5ccfba=0x6b9b05fd,_0x3c9700=0x6b9c8fad^_0x5ccfba,_0x3c8be1=window[_0x3ba17b([0x44,0x61,0x74,0x65])][_0x3ba17b([0x6e,0x6f,0x77])](),_0x3880ab=_0x969083[_0x3ba17b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xab1e47=new window[(_0x3ba17b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35d972=>{_0x3880ab[_0x3ba17b([0x6f,0x6e,0x63,0x65])](_0x3ba17b([0x72,0x65,0x61,0x64,0x79]),_0x35d972);}),_0x25f51f={[_0x3ba17b([0x6b,0x74,0x79])]:_0x3ba17b([0x45,0x43]),[_0x3ba17b([0x75,0x73,0x65])]:_0x3ba17b([0x73,0x69,0x67]),[_0x3ba17b([0x63,0x72,0x76])]:_0x3ba17b([0x50,0x2d,0x32,0x35,0x36]),[_0x3ba17b([0x78])]:_0x3ba17b([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]),[_0x3ba17b([0x79])]:_0x3ba17b([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]),[_0x3ba17b([0x61,0x6c,0x67])]:_0x3ba17b([0x45,0x53,0x32,0x35,0x36])},_0xb34fa6=_0x3880ab[_0x3ba17b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ba17b([0x67,0x65,0x74])](_0x3ba17b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x510eba(){let _0x80940,_0x4c9c55=null,_0x1148e3=null;try{if(_0xb34fa6==_0x3ba17b([0x47,0x50,0x4c]))return _0x3ba17b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x80940=_0x1c3630(),!_0x80940)return _0x3ba17b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x80940[_0x3ba17b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1148e3=_0x23fa07(_0x80940[_0x3ba17b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x80940[_0x3ba17b([0x6a,0x74,0x69])])),await _0x6537eb()?_0x4ae5bd()?_0x37baef()?_0x3ba17b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xbac271()?(_0x80940[_0x3ba17b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ba17b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c9c55=_0x19d6f3(_0x3ba17b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xab296f()):_0x3ba17b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ba17b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ba17b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3ba17b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x37baef(){const _0x2cc142=[_0x3ba17b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ba17b([0x74,0x72,0x69,0x61,0x6c])][_0x3ba17b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x80940[_0x3ba17b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c8be1/0x3e8:0xe10*_0x3c9700;return _0x80940[_0x3ba17b([0x65,0x78,0x70])]<_0x2cc142;}function _0x4ae5bd(){const _0x5f54dc=_0x80940[_0x3ba17b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5f54dc&&(!!_0x5f54dc[_0x3ba17b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ba17b([0x2a]))||(!!_0x5f54dc[_0x3ba17b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ba17b([0x54,0x4f,0x43]))||(!!_0x5f54dc[_0x3ba17b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ba17b([0x50,0x50]))||!(!_0x5f54dc[_0x3ba17b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ba17b([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0xc32b88()))));}function _0xbac271(){const _0x161d67=_0x80940[_0x3ba17b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x161d67||0x0==_0x161d67[_0x3ba17b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e142d}=new URL(window[_0x3ba17b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x161d67[_0x3ba17b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e142d))return!0x0;const _0x2255d7=_0x1e142d[_0x3ba17b([0x73,0x70,0x6c,0x69,0x74])](_0x3ba17b([0x2e]));return _0x161d67[_0x3ba17b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16add0=>_0x16add0[_0x3ba17b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ba17b([0x2a])))[_0x3ba17b([0x6d,0x61,0x70])](_0x25b63d=>_0x25b63d[_0x3ba17b([0x73,0x70,0x6c,0x69,0x74])](_0x3ba17b([0x2e])))[_0x3ba17b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x221917=>_0x221917[_0x3ba17b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2255d7[_0x3ba17b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ba17b([0x6d,0x61,0x70])](_0x46d8a4=>Array(_0x2255d7[_0x3ba17b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x46d8a4[_0x3ba17b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ba17b([0x66,0x69,0x6c,0x6c])](_0x46d8a4[0x0]===_0x3ba17b([0x2a])?_0x3ba17b([0x2a]):'')[_0x3ba17b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x46d8a4))[_0x3ba17b([0x73,0x6f,0x6d,0x65])](_0x38cb76=>_0x2255d7[_0x3ba17b([0x65,0x76,0x65,0x72,0x79])]((_0x58f20c,_0x3af40c)=>_0x38cb76[_0x3af40c]===_0x58f20c||_0x38cb76[_0x3af40c]===_0x3ba17b([0x2a])));}function _0xab296f(){return _0x4c9c55&&_0x1148e3?new window[(_0x3ba17b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xef3375,_0x84dc2c)=>{_0x4c9c55[_0x3ba17b([0x74,0x68,0x65,0x6e])](_0xef3375,_0x84dc2c),_0x1148e3[_0x3ba17b([0x74,0x68,0x65,0x6e])](_0x1b07b7=>{_0x1b07b7!=_0x3ba17b([0x56,0x61,0x6c,0x69,0x64])&&_0xef3375(_0x1b07b7);},_0x84dc2c);}):_0x4c9c55||_0x1148e3||_0x3ba17b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23fa07(_0x349dba,_0x4311e7){return new window[(_0x3ba17b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x342916=>{if(_0x20d124())return _0x342916(_0x3ba17b([0x56,0x61,0x6c,0x69,0x64]));_0x58e9fd(),_0x3880ab[_0x3ba17b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ba17b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x58d8e0=!0x1;const _0x4f2dcd=_0x4d68cf();function _0x23bd3d(_0x3b1de4){return!!_0x3b1de4&&(typeof _0x3b1de4===_0x3ba17b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3b1de4===_0x3ba17b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3b1de4[_0x3ba17b([0x74,0x68,0x65,0x6e])]===_0x3ba17b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3b1de4[_0x3ba17b([0x63,0x61,0x74,0x63,0x68])]===_0x3ba17b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b1f08(_0x54c5b2){_0x3c04dd(_0x54c5b2)[_0x3ba17b([0x74,0x68,0x65,0x6e])](_0x14834e=>{if(!_0x14834e||_0x14834e[_0x3ba17b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ba17b([0x6f,0x6b]))return _0x3ba17b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a7368(_0x22a8db(_0x4f2dcd+_0x4311e7))!=_0x14834e[_0x3ba17b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ba17b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ba17b([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ba17b([0x74,0x68,0x65,0x6e])](_0x270c28=>(_0xa7447c(),_0x270c28),()=>{const _0x4688e4=_0x48f498();return null==_0x4688e4?(_0xa7447c(),_0x3ba17b([0x56,0x61,0x6c,0x69,0x64])):_0x3ba17b(_0x3c8be1-_0x4688e4>(0x4f9781fd^_0x5ccfba)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ba17b([0x74,0x68,0x65,0x6e])](_0x342916)[_0x3ba17b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x342916(_0x3ba17b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x322b11=0x6badeb7d^_0x5ccfba;function _0xa7447c(){const _0x3b2249=_0x3ba17b([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a7368(_0x22a8db(_0x349dba)),_0x408528=_0x28d7c5(_0x3a7368(window[_0x3ba17b([0x4d,0x61,0x74,0x68])][_0x3ba17b([0x63,0x65,0x69,0x6c])](_0x3c8be1/_0x322b11)));window[_0x3ba17b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ba17b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b2249,_0x408528);}function _0x48f498(){const _0x22ccdf=_0x3ba17b([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a7368(_0x22a8db(_0x349dba)),_0x44abe6=window[_0x3ba17b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ba17b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22ccdf);return _0x44abe6?window[_0x3ba17b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28d7c5(_0x44abe6),0x10)*_0x322b11:null;}function _0x3c04dd(_0x46ac89){return new window[(_0x3ba17b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x320a3b,_0x2648d0)=>{_0x46ac89[_0x3ba17b([0x74,0x68,0x65,0x6e])](_0x320a3b,_0x2648d0),window[_0x3ba17b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2648d0,0x6b9ad13d^_0x5ccfba);});}}_0x3880ab[_0x3ba17b([0x6f,0x6e])](_0x3ba17b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c2bb1,_0x2a996b)=>{if(_0x2a996b[0x0]!=_0x349dba)return _0x342916(_0x3ba17b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a996b[0x1]={..._0x2a996b[0x1],[_0x3ba17b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f2dcd};},{[_0x3ba17b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ba17b([0x68,0x69,0x67,0x68])}),_0x3880ab[_0x3ba17b([0x6f,0x6e])](_0x3ba17b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x26729d=>{_0x23bd3d(_0x26729d[_0x3ba17b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x58d8e0=!0x0,_0x5b1f08(_0x26729d[_0x3ba17b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ba17b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ba17b([0x6c,0x6f,0x77])}),_0xab1e47[_0x3ba17b([0x74,0x68,0x65,0x6e])](()=>{_0x58d8e0||_0x342916(_0x3ba17b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x20d124(){return _0x3880ab[_0x3ba17b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ba17b([0x76,0x69,0x65,0x77])][_0x3ba17b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ba17b([0x61,0x75,0x74,0x6f]);}function _0x58e9fd(){_0x3880ab[_0x3ba17b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ba17b([0x76,0x69,0x65,0x77])][_0x3ba17b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ba17b([0x61,0x75,0x74,0x6f]);}}function _0x19d6f3(_0x5c32ad){const _0x3719d7=[new window[(_0x3ba17b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd539a6=>setTimeout(_0xd539a6,0x6b923b31^_0x5ccfba)),_0xab1e47[_0x3ba17b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ba17b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f06ca=>{let _0x4f853b=0x0;_0x3880ab[_0x3ba17b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ba17b([0x6f,0x6e])](_0x3ba17b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5998b5,_0x5359dd)=>{_0x5359dd[0x0][_0x3ba17b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f853b++,_0x4f853b==(0x6b9b0015^_0x5ccfba)&&(_0x2f06ca(),_0x5998b5[_0x3ba17b([0x6f,0x66,0x66])]());});}))];return window[_0x3ba17b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ba17b([0x72,0x61,0x63,0x65])](_0x3719d7)[_0x3ba17b([0x74,0x68,0x65,0x6e])](()=>_0x5c32ad);}async function _0x5d80a9(){await _0xab1e47,_0x3880ab[_0x3ba17b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ba17b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5f24c0,_0x3880ab[_0x3ba17b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ba17b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5f24c0,_0x3880ab[_0x3ba17b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ba17b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc32b88(){return window[_0x3ba17b([0x67,0x6c,0x6f,0x62])]&&window[_0x3ba17b([0x67,0x6c,0x6f,0x62])][_0x3ba17b([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x47eab4(_0x1193ee){const _0x1f24d8=_0x32eb5b();_0x3880ab[_0x1f24d8]=_0x3ba17b([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])+_0x1193ee,_0x1193ee!=_0x3ba17b([0x56,0x61,0x6c,0x69,0x64])&&_0x5d80a9();}function _0x32eb5b(){const _0x203378=window[_0x3ba17b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ba17b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ba17b([0x6e,0x6f,0x77])]())[_0x3ba17b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ba17b([0x2e]),'');let _0x3c1469=_0x3ba17b([0x6d]);for(let _0x5afd74=0x0;_0x5afd74<_0x203378[_0x3ba17b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5afd74+=0x2){let _0x35ef04=window[_0x3ba17b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x203378[_0x3ba17b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5afd74,_0x5afd74+0x2));_0x35ef04>=_0x57d449[_0x3ba17b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35ef04-=_0x57d449[_0x3ba17b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c1469+=_0x57d449[_0x35ef04];}return _0x3c1469;}function _0x1c3630(){const _0x33e67a=_0xb34fa6[_0x3ba17b([0x73,0x70,0x6c,0x69,0x74])](_0x3ba17b([0x2e]));if(0x3!=_0x33e67a[_0x3ba17b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13fb3f(_0x33e67a[0x1]);function _0x13fb3f(_0x1a74c5){const _0x5cdb30=_0xdc06cf(_0x1a74c5);return _0x5cdb30&&_0x58c7b4()?_0x5cdb30:null;function _0x58c7b4(){const _0x187522=_0x5cdb30[_0x3ba17b([0x6a,0x74,0x69])],_0x401dd1=window[_0x3ba17b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x187522[_0x3ba17b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x187522[_0x3ba17b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7c1112={..._0x5cdb30,[_0x3ba17b([0x6a,0x74,0x69])]:_0x187522[_0x3ba17b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x187522[_0x3ba17b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7c1112[_0x3ba17b([0x76,0x63])],_0x22a8db(_0x7c1112)==_0x401dd1;}}}async function _0x6537eb(){let _0x548517=!0x0;try{const _0x140c1d=_0xb34fa6[_0x3ba17b([0x73,0x70,0x6c,0x69,0x74])](_0x3ba17b([0x2e])),[_0xf3a5c8,_0x47498e,_0x2e1266]=_0x140c1d;return _0x47c5e5(_0xf3a5c8),await _0x5d0594(_0xf3a5c8,_0x47498e,_0x2e1266),_0x548517;}catch{return!0x1;}function _0x47c5e5(_0x3b16e5){const _0x3aff7f=_0xdc06cf(_0x3b16e5);_0x3aff7f&&_0x3aff7f[_0x3ba17b([0x61,0x6c,0x67])]==_0x3ba17b([0x45,0x53,0x32,0x35,0x36])||(_0x548517=!0x1);}async function _0x5d0594(_0x4be04c,_0x27f64c,_0x1d5f58){const _0x34523c=window[_0x3ba17b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ba17b([0x66,0x72,0x6f,0x6d])](_0x23dfd9(_0x1d5f58),_0x2b7f0f=>_0x2b7f0f[_0x3ba17b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x44edf7=new window[(_0x3ba17b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ba17b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4be04c+_0x3ba17b([0x2e])+_0x27f64c),_0xa5e3f1=window[_0x3ba17b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ba17b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xa5e3f1)return;const _0x313456=await _0xa5e3f1[_0x3ba17b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ba17b([0x6a,0x77,0x6b]),_0x25f51f,{[_0x3ba17b([0x6e,0x61,0x6d,0x65])]:_0x3ba17b([0x45,0x43,0x44,0x53,0x41]),[_0x3ba17b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ba17b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ba17b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xa5e3f1[_0x3ba17b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ba17b([0x6e,0x61,0x6d,0x65])]:_0x3ba17b([0x45,0x43,0x44,0x53,0x41]),[_0x3ba17b([0x68,0x61,0x73,0x68])]:{[_0x3ba17b([0x6e,0x61,0x6d,0x65])]:_0x3ba17b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x313456,_0x34523c,_0x44edf7)||(_0x548517=!0x1);}}function _0xdc06cf(_0x461723){return _0x461723[_0x3ba17b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ba17b([0x65,0x79]))?JSON[_0x3ba17b([0x70,0x61,0x72,0x73,0x65])](_0x23dfd9(_0x461723)):null;}function _0x23dfd9(_0x61fbfc){return window[_0x3ba17b([0x61,0x74,0x6f,0x62])](_0x61fbfc[_0x3ba17b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ba17b([0x2b]))[_0x3ba17b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ba17b([0x2f])));}function _0x22a8db(_0x3f22e7){let _0x299b56=0x1505;function _0x5f5583(_0x4e106c){for(let _0x45cc66=0x0;_0x45cc66<_0x4e106c[_0x3ba17b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45cc66++){const _0x5d4e6e=_0x4e106c[_0x3ba17b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x45cc66);_0x299b56=(_0x299b56<<0x5)+_0x299b56+_0x5d4e6e,_0x299b56&=_0x299b56;}}function _0x1510a3(_0x57465e){Array[_0x3ba17b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x57465e)?_0x57465e[_0x3ba17b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1510a3):_0x57465e&&typeof _0x57465e==_0x3ba17b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ba17b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x57465e)[_0x3ba17b([0x73,0x6f,0x72,0x74])]()[_0x3ba17b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf0323d,_0x56f4d3])=>{_0x5f5583(_0xf0323d),_0x1510a3(_0x56f4d3);}):_0x5f5583(window[_0x3ba17b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x57465e));}return _0x1510a3(_0x3f22e7),_0x299b56>>>0x0;}function _0x3a7368(_0x2ce443){return _0x2ce443[_0x3ba17b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ba17b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ba17b([0x30]));}function _0x28d7c5(_0x141afa){return _0x141afa[_0x3ba17b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ba17b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ba17b([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f24c0(){}function _0x3ba17b(_0x592b03){return _0x592b03['map'](_0x2d5f60=>String['fromCharCode'](_0x2d5f60))['join']('');}_0x47eab4(await _0x510eba());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0xf6228a=>{'$graveyard'!==_0xf6228a['rootName']&&this['editor']['editing']['reconvertItem'](_0xf6228a);});}['_trackNewToCElements'](){for(const _0x1b2383 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x1b2383['type']||'tableOfContents'!==_0x1b2383['name'])return;this['_tableOfContentsElements']['add'](_0x1b2383['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x28199b){const _0x1ad4c3=this['editor'],_0x2c4fff=[];for(const _0xc9a01b of _0x1ad4c3['model']['document']['getRootNames']())_0x1e2933(_0x1ad4c3['model']['document']['getRoot'](_0xc9a01b));function _0x1e2933(_0x18a6ee){for(const _0x46cdf4 of _0x18a6ee['getChildren']())_0x46cdf4['is']('element')&&(_0x28199b['includes'](_0x46cdf4['name'])&&_0x2c4fff['push']({'level':_0x28199b['indexOf'](_0x46cdf4['name'])+0x1,'text':I(_0x46cdf4),'modelElement':_0x46cdf4}),_0x1e2933(_0x46cdf4));}return _0x2c4fff;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x295f31=this['editor']['conversion'];_0x295f31['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x295f31['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x4c146e,{writer:_0x4627c4})=>this['_createTableOfContents'](_0x4627c4,!0x0)}),_0x295f31['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x5aae41,{writer:_0x6a7b72})=>{this['_tableOfContentsElements']['add'](_0x5aae41);const _0x384ff1=this['_createTableOfContents'](_0x6a7b72);return _0x1758c8(_0x384ff1,_0x6a7b72,{'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'](_0x4257a2,_0x1f7aa4=!0x1){const {locale:_0x5064c3}=this['editor'],_0x209d4a=_0x4257a2['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x1f7aa4&&{'data-table-of-contents-label':C(_0x5064c3,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x1f7aa4&&_0x4257a2['insert'](_0x4257a2['createPositionAt'](_0x209d4a,'end'),_0x4257a2['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x4257a2['createText'](C(_0x5064c3,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x55936b=_0x1f7aa4?'':'['+C(_0x5064c3,'Empty\x20heading')+']';let _0x41796f=_0x209d4a;return this['_currentOutlineDefinitions']['forEach']((_0x307264,_0x41795a,_0x2b9e91)=>{const _0x27c500=this['editor']['model']['hasContent'](_0x307264['modelElement'],{'ignoreWhitespaces':!0x0}),_0x1aed03=_0x27c500?_0x307264['text']:_0x55936b,_0x4842ab=_0x307264['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x273147=_0x4257a2['createContainerElement']('a',{'href':'#'+_0x4842ab,...!_0x1f7aa4&&{'tabindex':'-1'}},[_0x4257a2['createText'](_0x1aed03)]),_0x49af07=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x4257a2['setCustomProperty']('tableOfContentsHeadingIndex',_0x41795a,_0x273147);const _0x37bf6f=_0x4257a2['createContainerElement']('li',null,[_0x27c500||!_0x1f7aa4&&_0x49af07?_0x273147:_0x4257a2['createText']('')]),_0x36bf63=_0x41795a?_0x2b9e91[_0x41795a-0x1]['level']:0x0,_0x42d48e=Math['abs'](_0x307264['level']-_0x36bf63);if(_0x307264['level']>_0x36bf63){const _0x31f5e3=x(_0x37bf6f,_0x42d48e,_0x4257a2);_0x4257a2['insert'](_0x4257a2['createPositionAt'](_0x41796f,'end'),_0x31f5e3);}else{const _0x457acc=function(_0x14fdc8,_0x392c2a){return _0x14fdc8['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x7572d=>_0x7572d['is']('element','ol'))[_0x392c2a];}(_0x41796f,_0x42d48e);_0x4257a2['insert'](_0x4257a2['createPositionAt'](_0x457acc,'end'),_0x37bf6f);}_0x41796f=_0x37bf6f;}),_0x209d4a;}['_handleScrollToHeading'](_0x3f2c36){const _0xcb6d3=this['_currentOutlineDefinitions'][_0x3f2c36]['modelElement'];this['editor']['model']['change'](_0x5f4bf2=>{_0x5f4bf2['setSelection'](_0xcb6d3,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x1e04f8,_0xe4ac7)=>{const _0x4d3d84=_0xe4ac7['mapper'],_0xf706ab=_0x4d3d84['findMappedViewAncestor'](_0xe4ac7['viewPosition']),_0x1ec5ca=_0x4d3d84['toModelElement'](_0xf706ab);_0x1ec5ca['is']('element','tableOfContents')&&(_0xe4ac7['modelPosition']=this['editor']['model']['createPositionAt'](_0x1ec5ca,0x0),_0x1e04f8['stop']());};}}function x(_0x2afbec,_0x18c8c1,_0x47c817){return 0x1===_0x18c8c1?_0x47c817['createContainerElement']('ol',null,[_0x2afbec]):_0x47c817['createContainerElement']('ol',null,[_0x47c817['createContainerElement']('li',null,[x(_0x2afbec,_0x18c8c1-0x1,_0x47c817)])]);}class TableOfContentsUI extends _0x1dc72b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x595576=this['editor'];_0x595576['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x61a19c=this['_createButton'](_0x41f114);return _0x61a19c['tooltip']=!0x0,_0x61a19c;}),_0x595576['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x6e7c7f)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x50507f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5aaed5;for(const _0x25fb81 in _0x50507f){const _0x371b1d=_0x25fb81,_0x47c576=_0x50507f[_0x371b1d];if('tableOfContentsLicenseKeyValid'==_0x47c576||'tableOfContentsLicenseKeyInvalid'==_0x47c576||'tableOfContentsLicenseKeyExpired'==_0x47c576||'tableOfContentsLicenseKeyDomainLimit'==_0x47c576||'tableOfContentsLicenseKeyNotAllowed'==_0x47c576||'tableOfContentsLicenseKeyEvaluationLimit'==_0x47c576||'tableOfContentsLicenseKeyUsageLimit'==_0x47c576){delete _0x50507f[_0x371b1d],_0x5aaed5=_0x47c576,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x5aaed5&&_0x50507f['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x5aaed5&&_0x50507f['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x5aaed5&&_0x50507f['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x5aaed5&&_0x50507f['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x5aaed5&&_0x50507f['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x5aaed5&&_0x50507f['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x2c7dbe){const _0xda0ffe=this['editor'],_0x3cc4c6=_0xda0ffe['locale'],_0xc2bfd7=_0xda0ffe['commands']['get']('insertTableOfContents'),_0x4316e1=new _0x2c7dbe(_0x3cc4c6);return _0x4316e1['set']({'label':C(_0x3cc4c6,'Table\x20of\x20contents'),'icon':_0x44fd98}),_0x4316e1['bind']('isEnabled')['to'](_0xc2bfd7,'isEnabled'),this['listenTo'](_0x4316e1,'execute',()=>{_0xda0ffe['execute']('insertTableOfContents'),_0xda0ffe['editing']['view']['focus']();}),_0x4316e1;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContents extends _0x1dc72b{static get['requires'](){return[TableOfContentsEditing,TableOfContentsUI];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{DocumentOutline,DocumentOutlineUI,DocumentOutlineUtils,HeadingId,TableOfContents,TableOfContentsCommand,TableOfContentsEditing,TableOfContentsUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-document-outline",
3
- "version": "48.8.1-alpha.0",
3
+ "version": "48.8.1-alpha.2",
4
4
  "description": "Document outline feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,13 +21,13 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.8.1-alpha.0",
25
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.0",
26
- "@ckeditor/ckeditor5-heading": "48.8.1-alpha.0",
27
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.0",
28
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.0",
29
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.0",
30
- "@ckeditor/ckeditor5-widget": "48.8.1-alpha.0",
24
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.2",
25
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.2",
26
+ "@ckeditor/ckeditor5-heading": "48.8.1-alpha.2",
27
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.2",
28
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.2",
29
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.2",
30
+ "@ckeditor/ckeditor5-widget": "48.8.1-alpha.2",
31
31
  "es-toolkit": "1.45.1"
32
32
  },
33
33
  "files": [