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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 _0x374dbe,Command as _0x7298e1}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x3afa3f,throttle as _0xd5e749}from'es-toolkit/compat';import{ModelText as _0x2a296c,ModelTreeWalker as _0x5086d5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x167300,diffToChanges as _0x428b8c,scrollAncestorsToShowTarget as _0x5a41e5,CKEditorError as _0x218f8c,global as _0xf344f5,Rect as _0x2e3d51,uid as _0x4db16a,priorities as _0x52f7b6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x173168,ButtonView as _0x1ed391,MenuBarMenuListItemButtonView as _0x142066}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x1a4fae,toWidget as _0x57aa64}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x3c8de8}from'@ckeditor/ckeditor5-icons/dist/index.js';function I(_0x3b22a2){let _0x45c6c8='';for(const _0x22d7af of _0x3b22a2['getChildren']())_0x22d7af instanceof _0x2a296c&&(_0x45c6c8+=_0x22d7af['data']);return _0x45c6c8;}class DocumentOutlineUtils extends _0x374dbe{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x1df98b=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x53c75a=[];_0x1df98b['model']['document']['on']('change',_0x3afa3f(()=>{const _0x17c83a=_0x53c75a;_0x53c75a=this['_getOutlineDefinitions']();const _0x507bef=_0x167300(_0x17c83a,_0x53c75a,(_0x424993,_0x2bb1c0)=>_0x424993['level']===_0x2bb1c0['level']&&_0x424993['text']===_0x2bb1c0['text']&&_0x424993['modelElement']===_0x2bb1c0['modelElement']),_0x2b40f8=_0x428b8c(_0x507bef,_0x53c75a),_0x2c2993=this['_getActiveHeading'](),_0x120a42=_0x53c75a['findIndex'](_0x4ef235=>_0x4ef235['modelElement']===_0x2c2993);_0x2b40f8['length']&&this['fire']('change',{'outlineDefinitions':_0x53c75a,'activeItemIndex':_0x120a42,'outlineChanges':_0x2b40f8}),this['fire']('activeItemIndex',{'index':_0x120a42});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x48810b=this['editor'],_0x13adf3=[],_0x4c3560=this['_headingNames'];for(const _0x3f26d5 of _0x48810b['model']['document']['getRootNames']())_0x3151ce(_0x48810b['model']['document']['getRoot'](_0x3f26d5));function _0x3151ce(_0x2182bd){for(const _0x16df56 of _0x2182bd['getChildren']())_0x16df56['is']('element')&&(_0x4c3560['includes'](_0x16df56['name'])&&_0x13adf3['push']({'level':_0x4c3560['indexOf'](_0x16df56['name'])+0x1,'text':I(_0x16df56),'modelElement':_0x16df56}),_0x3151ce(_0x16df56));}return _0x13adf3;}['_getActiveHeading'](){const _0x3a951f=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x1b5c99=new _0x5086d5({'direction':'backward','startPosition':_0x3a951f});for(const _0x195c73 of _0x1b5c99)if(_0x195c73['item']['is']('element')&&this['_headingNames']['includes'](_0x195c73['item']['name']))return _0x195c73['item'];}['_getHeadingNames'](){const _0x16e7e3=this['editor']['config']['get']('documentOutline.headings');return _0x16e7e3||function(_0x4978a3){const _0x49075a=_0x4978a3['config']['get']('heading.options');return _0x49075a?_0x49075a['reduce']((_0xbbbb3f,_0x4315a1)=>('paragraph'!==_0x4315a1['model']&&_0xbbbb3f['push'](_0x4315a1['model']),_0xbbbb3f),[]):_0x4978a3['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x52673c=this['editor'],_0x58a5ec=['h1','h2','h3','h4','h5','h6'],_0x5edb37=[];for(const _0x27dae1 of _0x58a5ec){const _0x4a4842=_0x52673c['editing']['view']['domConverter']['domToView'](document['createElement'](_0x27dae1)),_0x14b78d=_0x52673c['data']['toModel'](_0x4a4842)['getChild'](0x0);_0x14b78d?.['is']('element')&&_0x5edb37['push'](_0x14b78d['name']);}this['_headingNames']=_0x5edb37;}}function C(_0x634553,_0x582a8d){const t=_0x634553['t'];switch(_0x582a8d){case'Empty\x20heading':return t('Empty\x20heading');case'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.':return t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.');case'No\x20headings\x20were\x20found\x20in\x20the\x20document.':return t('No\x20headings\x20were\x20found\x20in\x20the\x20document.');case'Table\x20of\x20contents':return t('Table\x20of\x20contents');default:return _0x582a8d;}}class DocumentOutlineItemView extends _0x173168{constructor(_0x56f302,_0x5c9b0f=!0x1){super(_0x56f302);const _0x5cde3c=this['bindTemplate'],_0x5cdb3f=_0x5c9b0f?'['+C(_0x56f302,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x5611d7=>!_0x5611d7),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x5cde3c['to']('level',_0x18daba=>'ck-document-outline__item_level-'+_0x18daba),_0x5cde3c['if']('isActive','ck-document-outline__item_active'),_0x5cde3c['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x5cde3c['to']('text')},'children':[{'text':_0x5cde3c['to']('text',_0x216cc9=>_0x216cc9||_0x5cdb3f)}],'on':{'click':_0x5cde3c['to']('click')}});}}class DocumentOutlineView extends _0x173168{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x17afb2,_0x3c39e1=!0x1,_0x318a87){super(_0x17afb2),this['showEmptyHeadingText']=_0x3c39e1,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x318a87,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x5a0611,_0x3518d1,_0x375097,_0x9dc3f9)=>{this['_setActiveItem'](_0x9dc3f9,_0x375097);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x17afb2['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x17afb2,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x557b66){_0x557b66['forEach'](_0x22f9c9=>{'insert'==_0x22f9c9['type']?this['_insertItem'](_0x22f9c9['index'],..._0x22f9c9['values']):'delete'==_0x22f9c9['type']&&this['_deleteItem'](_0x22f9c9['index'],_0x22f9c9['howMany']);});}['_setActiveItem'](_0x377737,_0x34ef4d){if(-0x1!==_0x377737){const _0x3d2386=this['items']['get'](_0x377737);_0x3d2386&&(_0x3d2386['isActive']=!0x1);}-0x1!==_0x34ef4d&&(this['items']['get'](_0x34ef4d)['isActive']=!0x0,this['_scrollToItem'](_0x34ef4d));}['_insertItem'](_0x112fb1,..._0x4e780a){const _0x3eacbc=_0x4e780a['map']((_0x553a2b,_0x503fb2)=>{const _0x54b9b1=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0x54b9b1['text']=_0x553a2b['text'],_0x54b9b1['level']=_0x553a2b['level'],_0x112fb1+_0x503fb2===this['activeItemIndex']&&(_0x54b9b1['isActive']=!0x0),_0x54b9b1;});this['items']['addMany'](_0x3eacbc,_0x112fb1);}['_deleteItem'](_0x3b2897,_0x563bfd){do{this['items']['remove'](_0x3b2897);}while(--_0x563bfd);}['_handleItemClick'](_0x132ed5){const _0x5741c4=this['items']['getIndex'](_0x132ed5['source']);this['fire']('itemSelected',_0x5741c4);}['_scrollToItem'](_0x1890dd){_0x5a41e5(this['items']['get'](_0x1890dd)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class DocumentOutlineUI extends _0x374dbe{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9eb74b){super(_0x9eb74b),this['view']=new DocumentOutlineView(_0x9eb74b['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0xd5e749(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x3c336c=this['editor'],_0x62b822=_0x3c336c['plugins']['get']('DocumentOutlineUtils');let _0x1cfb05=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x3c336c['config']['get']('documentOutline.container'))throw new _0x218f8c('document-outline-container-not-provided',{'editor':_0x3c336c});_0x3c336c['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x62b822['on']('change',this['_handleOutlineChange']['bind'](this)),_0x62b822['on']('activeItemIndex',(_0x2b436b,{index:_0x58f1db})=>this['_setActiveViewItem'](_0x58f1db)),this['view']['on']('itemSelected',(_0x28df77,_0x423816)=>{_0x1cfb05=!0x0,this['_handleItemSelected'](_0x423816);}),this['view']['listenTo'](_0xf344f5['document'],'scroll',()=>{_0x1cfb05?_0x1cfb05=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0xf344f5['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x157f64){const _0x1d3dfa=_0xa7298c([0x61,0x57,0x78,0x6c,0x50,0x47,0x30,0x41,0x33,0x43,0x44,0x64,0x48,0x42,0x73,0x5a,0x45,0x71,0x77,0x55,0x4c,0x6f,0x6a,0x4f,0x72,0x67,0x4d,0x58,0x56,0x54,0x52,0x76,0x75,0x31,0x62,0x49,0x32,0x34,0x38,0x37,0x70,0x74,0x7a,0x4a,0x4b,0x51,0x65,0x69,0x68,0x66,0x4e,0x6b,0x59,0x53,0x39,0x6e,0x36,0x79,0x35,0x6d,0x63,0x46]),_0x3070b7=0x1cb264a3,_0x1f216a=0x1cb5ee9b^_0x3070b7,_0x4e06cc=window[_0xa7298c([0x44,0x61,0x74,0x65])][_0xa7298c([0x6e,0x6f,0x77])](),_0x28ca55=_0x157f64[_0xa7298c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d76c9=new window[(_0xa7298c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31e47b=>{_0x28ca55[_0xa7298c([0x6f,0x6e,0x63,0x65])](_0xa7298c([0x72,0x65,0x61,0x64,0x79]),_0x31e47b);}),_0x1c5d15={[_0xa7298c([0x6b,0x74,0x79])]:_0xa7298c([0x45,0x43]),[_0xa7298c([0x75,0x73,0x65])]:_0xa7298c([0x73,0x69,0x67]),[_0xa7298c([0x63,0x72,0x76])]:_0xa7298c([0x50,0x2d,0x32,0x35,0x36]),[_0xa7298c([0x78])]:_0xa7298c([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0xa7298c([0x79])]:_0xa7298c([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0xa7298c([0x61,0x6c,0x67])]:_0xa7298c([0x45,0x53,0x32,0x35,0x36])},_0x5f24b0=_0x28ca55[_0xa7298c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa7298c([0x67,0x65,0x74])](_0xa7298c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4f21ee(){let _0x20491b,_0x343b9b=null,_0x55df74=null;try{if(_0x5f24b0==_0xa7298c([0x47,0x50,0x4c]))return _0xa7298c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20491b=_0x4ccd59(),!_0x20491b)return _0xa7298c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20491b[_0xa7298c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55df74=_0xcc4896(_0x20491b[_0xa7298c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20491b[_0xa7298c([0x6a,0x74,0x69])])),await _0x5da67a()?_0x51f5ac()?_0x171741()?_0xa7298c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5169d5()?(_0x20491b[_0xa7298c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa7298c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x343b9b=_0x19d7d8(_0xa7298c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8cd3fb()):_0xa7298c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa7298c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa7298c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa7298c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x171741(){const _0x4d3cb0=[_0xa7298c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa7298c([0x74,0x72,0x69,0x61,0x6c])][_0xa7298c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20491b[_0xa7298c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4e06cc/0x3e8:0xe10*_0x1f216a;return _0x20491b[_0xa7298c([0x65,0x78,0x70])]<_0x4d3cb0;}function _0x51f5ac(){const _0x5ea71e=_0x20491b[_0xa7298c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ea71e&&(!!_0x5ea71e[_0xa7298c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa7298c([0x2a]))||(!!_0x5ea71e[_0xa7298c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa7298c([0x44,0x4f]))||(!!_0x5ea71e[_0xa7298c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa7298c([0x50,0x50]))||!(!_0x5ea71e[_0xa7298c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa7298c([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4340dd()))));}function _0x5169d5(){const _0x228f6b=_0x20491b[_0xa7298c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x228f6b||0x0==_0x228f6b[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x547eed}=new URL(window[_0xa7298c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x228f6b[_0xa7298c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x547eed))return!0x0;const _0x46eca1=_0x547eed[_0xa7298c([0x73,0x70,0x6c,0x69,0x74])](_0xa7298c([0x2e]));return _0x228f6b[_0xa7298c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xea87bd=>_0xea87bd[_0xa7298c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa7298c([0x2a])))[_0xa7298c([0x6d,0x61,0x70])](_0x20e5fd=>_0x20e5fd[_0xa7298c([0x73,0x70,0x6c,0x69,0x74])](_0xa7298c([0x2e])))[_0xa7298c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a9f1f=>_0x3a9f1f[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x46eca1[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa7298c([0x6d,0x61,0x70])](_0x1d8c7b=>Array(_0x46eca1[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1d8c7b[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa7298c([0x66,0x69,0x6c,0x6c])](_0x1d8c7b[0x0]===_0xa7298c([0x2a])?_0xa7298c([0x2a]):'')[_0xa7298c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1d8c7b))[_0xa7298c([0x73,0x6f,0x6d,0x65])](_0x500f41=>_0x46eca1[_0xa7298c([0x65,0x76,0x65,0x72,0x79])]((_0x13e1c1,_0x23bef6)=>_0x500f41[_0x23bef6]===_0x13e1c1||_0x500f41[_0x23bef6]===_0xa7298c([0x2a])));}function _0x8cd3fb(){return _0x343b9b&&_0x55df74?new window[(_0xa7298c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x842900,_0x746db)=>{_0x343b9b[_0xa7298c([0x74,0x68,0x65,0x6e])](_0x842900,_0x746db),_0x55df74[_0xa7298c([0x74,0x68,0x65,0x6e])](_0xfda95e=>{_0xfda95e!=_0xa7298c([0x56,0x61,0x6c,0x69,0x64])&&_0x842900(_0xfda95e);},_0x746db);}):_0x343b9b||_0x55df74||_0xa7298c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xcc4896(_0x4c6376,_0x245903){return new window[(_0xa7298c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1319e0=>{if(_0x1672a6())return _0x1319e0(_0xa7298c([0x56,0x61,0x6c,0x69,0x64]));_0x1b502a(),_0x28ca55[_0xa7298c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa7298c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x30435d=!0x1;const _0xe1c412=_0x4db16a();function _0x5aa8cb(_0x2c93a5){return!!_0x2c93a5&&(typeof _0x2c93a5===_0xa7298c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2c93a5===_0xa7298c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2c93a5[_0xa7298c([0x74,0x68,0x65,0x6e])]===_0xa7298c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2c93a5[_0xa7298c([0x63,0x61,0x74,0x63,0x68])]===_0xa7298c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c6a82(_0x345986){_0x12843b(_0x345986)[_0xa7298c([0x74,0x68,0x65,0x6e])](_0x24dae9=>{if(!_0x24dae9||_0x24dae9[_0xa7298c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa7298c([0x6f,0x6b]))return _0xa7298c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d1051(_0x4a43cf(_0xe1c412+_0x245903))!=_0x24dae9[_0xa7298c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa7298c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa7298c([0x56,0x61,0x6c,0x69,0x64]);})[_0xa7298c([0x74,0x68,0x65,0x6e])](_0x10ddff=>(_0x5b60b6(),_0x10ddff),()=>{const _0x14f051=_0x5b6613();return null==_0x14f051?(_0x5b60b6(),_0xa7298c([0x56,0x61,0x6c,0x69,0x64])):_0xa7298c(_0x4e06cc-_0x14f051>(0x38bee0a3^_0x3070b7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa7298c([0x74,0x68,0x65,0x6e])](_0x1319e0)[_0xa7298c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1319e0(_0xa7298c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x213680=0x1c848a23^_0x3070b7;function _0x5b60b6(){const _0x5af7f7=_0xa7298c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d1051(_0x4a43cf(_0x4c6376)),_0xaa25df=_0x12d5a8(_0x3d1051(window[_0xa7298c([0x4d,0x61,0x74,0x68])][_0xa7298c([0x63,0x65,0x69,0x6c])](_0x4e06cc/_0x213680)));window[_0xa7298c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa7298c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5af7f7,_0xaa25df);}function _0x5b6613(){const _0x267c61=_0xa7298c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d1051(_0x4a43cf(_0x4c6376)),_0x41c784=window[_0xa7298c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa7298c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x267c61);return _0x41c784?window[_0xa7298c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12d5a8(_0x41c784),0x10)*_0x213680:null;}function _0x12843b(_0x4bd47e){return new window[(_0xa7298c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29b011,_0x48cc79)=>{_0x4bd47e[_0xa7298c([0x74,0x68,0x65,0x6e])](_0x29b011,_0x48cc79),window[_0xa7298c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48cc79,0x1cb3b063^_0x3070b7);});}}_0x28ca55[_0xa7298c([0x6f,0x6e])](_0xa7298c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36376f,_0x3e4a12)=>{if(_0x3e4a12[0x0]!=_0x4c6376)return _0x1319e0(_0xa7298c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e4a12[0x1]={..._0x3e4a12[0x1],[_0xa7298c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe1c412};},{[_0xa7298c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa7298c([0x68,0x69,0x67,0x68])}),_0x28ca55[_0xa7298c([0x6f,0x6e])](_0xa7298c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x8dbdd1=>{_0x5aa8cb(_0x8dbdd1[_0xa7298c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x30435d=!0x0,_0x4c6a82(_0x8dbdd1[_0xa7298c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa7298c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa7298c([0x6c,0x6f,0x77])}),_0x2d76c9[_0xa7298c([0x74,0x68,0x65,0x6e])](()=>{_0x30435d||_0x1319e0(_0xa7298c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1672a6(){return _0x28ca55[_0xa7298c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa7298c([0x76,0x69,0x65,0x77])][_0xa7298c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa7298c([0x61,0x75,0x74,0x6f]);}function _0x1b502a(){_0x28ca55[_0xa7298c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa7298c([0x76,0x69,0x65,0x77])][_0xa7298c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa7298c([0x61,0x75,0x74,0x6f]);}}function _0x19d7d8(_0x5e54ff){const _0x539660=[new window[(_0xa7298c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d03bd=>setTimeout(_0x1d03bd,0x1cbb5a6f^_0x3070b7)),_0x2d76c9[_0xa7298c([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa7298c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55ce55=>{let _0xfc9df6=0x0;_0x28ca55[_0xa7298c([0x6d,0x6f,0x64,0x65,0x6c])][_0xa7298c([0x6f,0x6e])](_0xa7298c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b4159,_0x52c343)=>{_0x52c343[0x0][_0xa7298c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xfc9df6++,_0xfc9df6==(0x1cb2614b^_0x3070b7)&&(_0x55ce55(),_0x4b4159[_0xa7298c([0x6f,0x66,0x66])]());});}))];return window[_0xa7298c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa7298c([0x72,0x61,0x63,0x65])](_0x539660)[_0xa7298c([0x74,0x68,0x65,0x6e])](()=>_0x5e54ff);}async function _0x57a4ef(){await _0x2d76c9,_0x28ca55[_0xa7298c([0x6d,0x6f,0x64,0x65,0x6c])][_0xa7298c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e365a,_0x28ca55[_0xa7298c([0x6d,0x6f,0x64,0x65,0x6c])][_0xa7298c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e365a,_0x28ca55[_0xa7298c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa7298c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4340dd(){return window[_0xa7298c([0x67,0x6c,0x6f,0x62])]&&window[_0xa7298c([0x67,0x6c,0x6f,0x62])][_0xa7298c([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x23c47e(_0x28b5c8){const _0x535404=_0x184462();_0x28ca55[_0x535404]=_0xa7298c([0x64,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x28b5c8,_0x28b5c8!=_0xa7298c([0x56,0x61,0x6c,0x69,0x64])&&_0x57a4ef();}function _0x184462(){const _0x3d61e9=window[_0xa7298c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa7298c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa7298c([0x6e,0x6f,0x77])]())[_0xa7298c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa7298c([0x2e]),'');let _0x8cf2dd=_0xa7298c([0x61]);for(let _0x157864=0x0;_0x157864<_0x3d61e9[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x157864+=0x2){let _0x538da7=window[_0xa7298c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d61e9[_0xa7298c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x157864,_0x157864+0x2));_0x538da7>=_0x1d3dfa[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x538da7-=_0x1d3dfa[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8cf2dd+=_0x1d3dfa[_0x538da7];}return _0x8cf2dd;}function _0x4ccd59(){const _0x258d6b=_0x5f24b0[_0xa7298c([0x73,0x70,0x6c,0x69,0x74])](_0xa7298c([0x2e]));if(0x3!=_0x258d6b[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ad649(_0x258d6b[0x1]);function _0x1ad649(_0x3c6840){const _0x4e9cc5=_0x266a5b(_0x3c6840);return _0x4e9cc5&&_0x13887d()?_0x4e9cc5:null;function _0x13887d(){const _0x1e5843=_0x4e9cc5[_0xa7298c([0x6a,0x74,0x69])],_0x2d4018=window[_0xa7298c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e5843[_0xa7298c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e5843[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x532f0b={..._0x4e9cc5,[_0xa7298c([0x6a,0x74,0x69])]:_0x1e5843[_0xa7298c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e5843[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x532f0b[_0xa7298c([0x76,0x63])],_0x4a43cf(_0x532f0b)==_0x2d4018;}}}async function _0x5da67a(){let _0x4dc0af=!0x0;try{const _0x4a129d=_0x5f24b0[_0xa7298c([0x73,0x70,0x6c,0x69,0x74])](_0xa7298c([0x2e])),[_0x1d2421,_0x4c6c08,_0x2b24d0]=_0x4a129d;return _0x1dda74(_0x1d2421),await _0x35a1b8(_0x1d2421,_0x4c6c08,_0x2b24d0),_0x4dc0af;}catch{return!0x1;}function _0x1dda74(_0x27ceaf){const _0x2dc403=_0x266a5b(_0x27ceaf);_0x2dc403&&_0x2dc403[_0xa7298c([0x61,0x6c,0x67])]==_0xa7298c([0x45,0x53,0x32,0x35,0x36])||(_0x4dc0af=!0x1);}async function _0x35a1b8(_0x2b97c1,_0x4949b2,_0x30ca4e){const _0x1809d1=window[_0xa7298c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa7298c([0x66,0x72,0x6f,0x6d])](_0x192f3e(_0x30ca4e),_0x5a2bb8=>_0x5a2bb8[_0xa7298c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x59abf3=new window[(_0xa7298c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa7298c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b97c1+_0xa7298c([0x2e])+_0x4949b2),_0x37af48=window[_0xa7298c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa7298c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37af48)return;const _0x54fa15=await _0x37af48[_0xa7298c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa7298c([0x6a,0x77,0x6b]),_0x1c5d15,{[_0xa7298c([0x6e,0x61,0x6d,0x65])]:_0xa7298c([0x45,0x43,0x44,0x53,0x41]),[_0xa7298c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa7298c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa7298c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37af48[_0xa7298c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa7298c([0x6e,0x61,0x6d,0x65])]:_0xa7298c([0x45,0x43,0x44,0x53,0x41]),[_0xa7298c([0x68,0x61,0x73,0x68])]:{[_0xa7298c([0x6e,0x61,0x6d,0x65])]:_0xa7298c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54fa15,_0x1809d1,_0x59abf3)||(_0x4dc0af=!0x1);}}function _0x266a5b(_0x567bfe){return _0x567bfe[_0xa7298c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa7298c([0x65,0x79]))?JSON[_0xa7298c([0x70,0x61,0x72,0x73,0x65])](_0x192f3e(_0x567bfe)):null;}function _0x192f3e(_0x1ad879){return window[_0xa7298c([0x61,0x74,0x6f,0x62])](_0x1ad879[_0xa7298c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa7298c([0x2b]))[_0xa7298c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa7298c([0x2f])));}function _0x4a43cf(_0x3738eb){let _0x21d52=0x1505;function _0x15e961(_0x4a873){for(let _0x55a555=0x0;_0x55a555<_0x4a873[_0xa7298c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55a555++){const _0x58a66c=_0x4a873[_0xa7298c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55a555);_0x21d52=(_0x21d52<<0x5)+_0x21d52+_0x58a66c,_0x21d52&=_0x21d52;}}function _0x2d5178(_0x282245){Array[_0xa7298c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x282245)?_0x282245[_0xa7298c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d5178):_0x282245&&typeof _0x282245==_0xa7298c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa7298c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x282245)[_0xa7298c([0x73,0x6f,0x72,0x74])]()[_0xa7298c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51d94b,_0x28108f])=>{_0x15e961(_0x51d94b),_0x2d5178(_0x28108f);}):_0x15e961(window[_0xa7298c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x282245));}return _0x2d5178(_0x3738eb),_0x21d52>>>0x0;}function _0x3d1051(_0x27f2c0){return _0x27f2c0[_0xa7298c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa7298c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa7298c([0x30]));}function _0x12d5a8(_0x4e355c){return _0x4e355c[_0xa7298c([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa7298c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa7298c([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e365a(){}function _0xa7298c(_0x1d95cf){return _0x1d95cf['map'](_0x3dd36d=>String['fromCharCode'](_0x3dd36d))['join']('');}_0x23c47e(await _0x4f21ee());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x388e72,{outlineDefinitions:_0x43f31d,outlineChanges:_0x27741d}){this['_currentOutlineDefinitions']=_0x43f31d,this['view']['sync'](_0x27741d);}['_setActiveViewItem'](_0x845a9b){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x845a9b]&&(this['view']['activeItemIndex']=_0x845a9b);}['_handleItemSelected'](_0x4db74c){const _0x31990b=this['_currentOutlineDefinitions'][_0x4db74c]['modelElement'];this['editor']['model']['change'](_0xbf7a37=>{_0xbf7a37['setSelection'](_0x31990b,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x4db74c);}['_updateActiveDefinitionOnViewportChange'](){const _0x1ccadd=this['editor'];let _0xdeec53;for(const _0x37d585 of _0x1ccadd['model']['document']['getRootNames']()){const _0x3750ce=_0x1ccadd['editing']['view']['getDomRoot'](_0x37d585),_0xedf09e=_0x3750ce&&new _0x2e3d51(_0x3750ce)['getVisible']();if(_0xedf09e){const _0x117842=new _0x2e3d51(_0xf344f5['window'])['getIntersection'](_0xedf09e);_0x117842&&(_0xdeec53=_0x117842['top']+0.25*_0x117842['height']);}}if(void 0x0===_0xdeec53)return;const _0x56be69=v(_0x1ccadd['editing'],this['_currentOutlineDefinitions'],_0xdeec53);_0x56be69?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x56be69)):this['_setActiveViewItem'](-0x1);}}function v(_0x59f845,_0x91da4,_0x5da7f3,_0x220935=0x0,_0x4cf9a7=_0x91da4['length']-0x1){const _0x30610c=Math['floor'](_0x220935+(_0x4cf9a7-_0x220935)/0x2);if(_0x4cf9a7>=_0x220935){const _0x595091=_0x91da4[_0x30610c],_0x49baed=_0x59f845['mapper']['toViewElement'](_0x595091['modelElement']);if(!_0x49baed)return null;const _0xaf096e=_0x59f845['view']['domConverter']['mapViewToDom'](_0x49baed);return new _0x2e3d51(_0xaf096e)['bottom']>_0x5da7f3?v(_0x59f845,_0x91da4,_0x5da7f3,_0x220935,_0x30610c-0x1):v(_0x59f845,_0x91da4,_0x5da7f3,_0x30610c+0x1,_0x4cf9a7);}return _0x30610c<0x0?null:_0x91da4[_0x30610c];}class DocumentOutline extends _0x374dbe{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[DocumentOutlineUtils,DocumentOutlineUI];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32c209=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47ed1d;for(const _0x141ed7 in _0x32c209){const _0x3ce147=_0x141ed7,_0x5d6600=_0x32c209[_0x3ce147];if('documentOutlineLicenseKeyValid'==_0x5d6600||'documentOutlineLicenseKeyInvalid'==_0x5d6600||'documentOutlineLicenseKeyExpired'==_0x5d6600||'documentOutlineLicenseKeyDomainLimit'==_0x5d6600||'documentOutlineLicenseKeyNotAllowed'==_0x5d6600||'documentOutlineLicenseKeyEvaluationLimit'==_0x5d6600||'documentOutlineLicenseKeyUsageLimit'==_0x5d6600){delete _0x32c209[_0x3ce147],_0x47ed1d=_0x5d6600,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x47ed1d&&_0x32c209['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x47ed1d&&_0x32c209['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x47ed1d&&_0x32c209['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x47ed1d&&_0x32c209['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x47ed1d&&_0x32c209['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x47ed1d&&_0x32c209['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends _0x7298e1{['execute'](){this['editor']['model']['change'](_0x218c6f=>{this['editor']['model']['insertObject'](_0x218c6f['createElement']('tableOfContents'));});}['refresh'](){const _0x458ee7=this['editor']['model'],_0x405ccc=_0x458ee7['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x405ccc&&_0x458ee7['schema']['findAllowedParent'](_0x405ccc,'tableOfContents'));}}class HeadingId extends _0x374dbe{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x62be0b=this['editor'];if(_0x62be0b['config']['get']('headingId.modelAttributeName'))return;(function(_0x389986){const _0x203e1a=new Map();if(_0x389986)return _0x389986['forEach'](_0x406eec=>{'paragraph'!==_0x406eec['model']&&_0x203e1a['set'](_0x406eec['view'],_0x406eec['model']);}),_0x203e1a['get']('h1')||_0x203e1a['set']('h1','heading1'),_0x203e1a;return _0x203e1a;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x440ad8,_0x470b5b)=>{this['_customUpcastHeadingsConversion'](_0x470b5b),this['_customDataDowncastHeadingsConversion'](_0x440ad8),_0x62be0b['model']['schema']['isRegistered'](_0x440ad8)&&_0x62be0b['model']['schema']['extend'](_0x440ad8,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x30651c){this['editor']['conversion']['for']('upcast')['add'](_0x4b8343=>_0x4b8343['on']('element:'+_0x30651c,(_0x56579e,_0x53d0eb,_0x5b0605)=>{const {consumable:_0xf9a2a,writer:_0x5eb594}=_0x5b0605,_0x328088=_0x53d0eb['viewItem']['getAttribute']('id'),_0x40c127=_0x53d0eb['modelRange']['getContainedElement']();if(_0x40c127)return _0x328088&&_0x328088['length']||_0x40c127['hasAttribute']('headingId')?void(_0xf9a2a['consume'](_0x53d0eb['viewItem'],{'attributes':['id']})&&_0x5eb594['setAttribute']('headingId',_0x328088,_0x40c127)):(_0xf9a2a['consume'](_0x53d0eb['viewItem'],{'attributes':['id']}),void _0x5eb594['setAttribute']('headingId',_0x4db16a(),_0x40c127));},{'priority':_0x52f7b6['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x31ea02){this['editor']['conversion']['for']('downcast')['add'](_0x688f6d=>_0x688f6d['on']('attribute:headingId:'+_0x31ea02,(_0x21066b,_0x39b48a,_0x1cb4cb)=>{if(!_0x1cb4cb['consumable']['consume'](_0x39b48a['item'],_0x21066b['name']))return;const _0x347a2f=_0x39b48a['item']['getAttribute']('headingId'),_0x1720c9=_0x1cb4cb['mapper']['toViewElement'](_0x39b48a['item']);_0x1cb4cb['writer']['setAttribute']('id',_0x347a2f,_0x1720c9);}));}['_registerHeadingIdAttributePostfixer'](){const _0x46be34=this['editor'],_0x1d99d6=new Set(),_0x209287=new Set();function _0x266e36(_0x432d9a,_0x1f02a0){const _0x65eb98=_0x4db16a();return _0x209287['add'](_0x65eb98),_0x432d9a['setAttribute']('headingId',_0x65eb98,_0x1f02a0),_0x65eb98;}function _0x4fc069(_0x325106,_0x2bc0a2){_0x325106['removeAttribute']('headingId',_0x2bc0a2);}_0x46be34['model']['document']['registerPostFixer'](_0x56ae05=>{const _0x2c0d1c=_0x46be34['model']['document']['differ']['getChanges']();let _0x1b2208=!0x1;for(const _0x473d36 of _0x2c0d1c)if('insert'==_0x473d36['type']&&_0x473d36['name']){if(_(_0x473d36['name'])){const _0xd230ba=_0x473d36['attributes']['get']('headingId');'string'==typeof _0xd230ba?_0x1d99d6['has'](_0xd230ba)?(_0x266e36(_0x56ae05,_0x473d36['position']['nodeAfter']),_0x1b2208=!0x0):_0x209287['add'](_0xd230ba):(_0x266e36(_0x56ae05,_0x473d36['position']['nodeAfter']),_0x1b2208=!0x0);}else'string'==typeof _0x473d36['attributes']['get']('headingId')&&(_0x4fc069(_0x56ae05,_0x473d36['position']['nodeAfter']),_0x1b2208=!0x0);}else{if('remove'==_0x473d36['type']){const _0x55a17e=_0x473d36['attributes']['get']('headingId');'string'==typeof _0x55a17e&&_0x1d99d6['delete'](_0x55a17e);}}return _0x1b2208;}),_0x46be34['model']['document']['on']('change',()=>{_0x209287['forEach'](_0x5ba3c1=>_0x1d99d6['add'](_0x5ba3c1)),_0x209287['clear']();});}}function _(_0x1d3259){return!!_0x1d3259['match'](/heading\d/);}class TableOfContentsEditing extends _0x374dbe{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1a4fae,DocumentOutlineUtils,HeadingId];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x206e71){super(_0x206e71),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x4b4563=this['editor'],_0x4abb5e=_0x4b4563['editing']['view']['document'];_0x4b4563['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x4b4563['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x4abb5e,'click',(_0x19a9c0,_0x168205)=>{if(!_0x168205['target'])return;const _0x342888=_0x168205['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x342888)&&(_0x168205['domEvent']['preventDefault'](),_0x19a9c0['stop'](),this['_handleScrollToHeading'](_0x342888));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x4b4563['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x4b4563));const _0x16f9e7=_0x4b4563['config']['get']('tableOfContents.headings');if(_0x16f9e7&&_0x16f9e7['length'])this['listenTo'](_0x4b4563['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x16f9e7),this['_updateTableOfContentsElements']();});else _0x4b4563['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x13ffdb,_0xa270fd)=>{this['_currentOutlineDefinitions']=_0xa270fd['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x4b4563['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x47b291){const _0x41733b=_0x5c727a([0x6d,0x72,0x34,0x7a,0x32,0x79,0x61,0x6b,0x4d,0x33,0x78,0x30,0x70,0x68,0x74,0x44,0x37,0x6a,0x42,0x77,0x31,0x54,0x36,0x71,0x52,0x66,0x65,0x55,0x75,0x5a,0x63,0x4f,0x4c,0x4e,0x4b,0x56,0x67,0x51,0x53,0x50,0x45,0x39,0x69,0x47,0x49,0x48,0x6f,0x58,0x6c,0x4a,0x57,0x38,0x59,0x73,0x43,0x62,0x35,0x41,0x6e,0x64,0x46,0x76]),_0x456c02=0x6b9b05fd,_0x54ba0d=0x6b9c8fc5^_0x456c02,_0xed7015=window[_0x5c727a([0x44,0x61,0x74,0x65])][_0x5c727a([0x6e,0x6f,0x77])](),_0x1659af=_0x47b291[_0x5c727a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3439bc=new window[(_0x5c727a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5694f4=>{_0x1659af[_0x5c727a([0x6f,0x6e,0x63,0x65])](_0x5c727a([0x72,0x65,0x61,0x64,0x79]),_0x5694f4);}),_0x5bca5f={[_0x5c727a([0x6b,0x74,0x79])]:_0x5c727a([0x45,0x43]),[_0x5c727a([0x75,0x73,0x65])]:_0x5c727a([0x73,0x69,0x67]),[_0x5c727a([0x63,0x72,0x76])]:_0x5c727a([0x50,0x2d,0x32,0x35,0x36]),[_0x5c727a([0x78])]:_0x5c727a([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5c727a([0x79])]:_0x5c727a([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5c727a([0x61,0x6c,0x67])]:_0x5c727a([0x45,0x53,0x32,0x35,0x36])},_0x55b259=_0x1659af[_0x5c727a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c727a([0x67,0x65,0x74])](_0x5c727a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc9231d(){let _0x1d1176,_0x23b119=null,_0xef4374=null;try{if(_0x55b259==_0x5c727a([0x47,0x50,0x4c]))return _0x5c727a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d1176=_0x4729ad(),!_0x1d1176)return _0x5c727a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d1176[_0x5c727a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xef4374=_0x2e738e(_0x1d1176[_0x5c727a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d1176[_0x5c727a([0x6a,0x74,0x69])])),await _0x1a8e4f()?_0xb6ab58()?_0x1db838()?_0x5c727a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a4258()?(_0x1d1176[_0x5c727a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c727a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x23b119=_0x72a1b3(_0x5c727a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8c0963()):_0x5c727a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c727a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c727a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5c727a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1db838(){const _0x1e0fbe=[_0x5c727a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c727a([0x74,0x72,0x69,0x61,0x6c])][_0x5c727a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d1176[_0x5c727a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xed7015/0x3e8:0xe10*_0x54ba0d;return _0x1d1176[_0x5c727a([0x65,0x78,0x70])]<_0x1e0fbe;}function _0xb6ab58(){const _0x590440=_0x1d1176[_0x5c727a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x590440&&(!!_0x590440[_0x5c727a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c727a([0x2a]))||(!!_0x590440[_0x5c727a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c727a([0x54,0x4f,0x43]))||(!!_0x590440[_0x5c727a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c727a([0x50,0x50]))||!(!_0x590440[_0x5c727a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c727a([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x2031bd()))));}function _0x2a4258(){const _0x17f1f2=_0x1d1176[_0x5c727a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x17f1f2||0x0==_0x17f1f2[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x96c113}=new URL(window[_0x5c727a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x17f1f2[_0x5c727a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96c113))return!0x0;const _0x4c322a=_0x96c113[_0x5c727a([0x73,0x70,0x6c,0x69,0x74])](_0x5c727a([0x2e]));return _0x17f1f2[_0x5c727a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2217d1=>_0x2217d1[_0x5c727a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c727a([0x2a])))[_0x5c727a([0x6d,0x61,0x70])](_0x221b1c=>_0x221b1c[_0x5c727a([0x73,0x70,0x6c,0x69,0x74])](_0x5c727a([0x2e])))[_0x5c727a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14f4d8=>_0x14f4d8[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c322a[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c727a([0x6d,0x61,0x70])](_0x51c027=>Array(_0x4c322a[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x51c027[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c727a([0x66,0x69,0x6c,0x6c])](_0x51c027[0x0]===_0x5c727a([0x2a])?_0x5c727a([0x2a]):'')[_0x5c727a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x51c027))[_0x5c727a([0x73,0x6f,0x6d,0x65])](_0x50cd3a=>_0x4c322a[_0x5c727a([0x65,0x76,0x65,0x72,0x79])]((_0x20742c,_0x2aa405)=>_0x50cd3a[_0x2aa405]===_0x20742c||_0x50cd3a[_0x2aa405]===_0x5c727a([0x2a])));}function _0x8c0963(){return _0x23b119&&_0xef4374?new window[(_0x5c727a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36b761,_0x281946)=>{_0x23b119[_0x5c727a([0x74,0x68,0x65,0x6e])](_0x36b761,_0x281946),_0xef4374[_0x5c727a([0x74,0x68,0x65,0x6e])](_0x592d2b=>{_0x592d2b!=_0x5c727a([0x56,0x61,0x6c,0x69,0x64])&&_0x36b761(_0x592d2b);},_0x281946);}):_0x23b119||_0xef4374||_0x5c727a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e738e(_0x468332,_0x37e7a6){return new window[(_0x5c727a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54b354=>{if(_0x38fd75())return _0x54b354(_0x5c727a([0x56,0x61,0x6c,0x69,0x64]));_0x2cab1d(),_0x1659af[_0x5c727a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c727a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x55cfbd=!0x1;const _0x2cc8cb=_0x4db16a();function _0x1fb499(_0x1e7620){return!!_0x1e7620&&(typeof _0x1e7620===_0x5c727a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e7620===_0x5c727a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e7620[_0x5c727a([0x74,0x68,0x65,0x6e])]===_0x5c727a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e7620[_0x5c727a([0x63,0x61,0x74,0x63,0x68])]===_0x5c727a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10fb50(_0x4eb569){_0x1c58a0(_0x4eb569)[_0x5c727a([0x74,0x68,0x65,0x6e])](_0x3a3bde=>{if(!_0x3a3bde||_0x3a3bde[_0x5c727a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c727a([0x6f,0x6b]))return _0x5c727a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a178b(_0x9c1f77(_0x2cc8cb+_0x37e7a6))!=_0x3a3bde[_0x5c727a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c727a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c727a([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c727a([0x74,0x68,0x65,0x6e])](_0x422d1c=>(_0x59e090(),_0x422d1c),()=>{const _0x1e4e73=_0x34df1e();return null==_0x1e4e73?(_0x59e090(),_0x5c727a([0x56,0x61,0x6c,0x69,0x64])):_0x5c727a(_0xed7015-_0x1e4e73>(0x4f9781fd^_0x456c02)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c727a([0x74,0x68,0x65,0x6e])](_0x54b354)[_0x5c727a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54b354(_0x5c727a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x506f45=0x6badeb7d^_0x456c02;function _0x59e090(){const _0x25647f=_0x5c727a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a178b(_0x9c1f77(_0x468332)),_0x33f02f=_0x245672(_0x5a178b(window[_0x5c727a([0x4d,0x61,0x74,0x68])][_0x5c727a([0x63,0x65,0x69,0x6c])](_0xed7015/_0x506f45)));window[_0x5c727a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c727a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25647f,_0x33f02f);}function _0x34df1e(){const _0x1cdb45=_0x5c727a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a178b(_0x9c1f77(_0x468332)),_0x4e298c=window[_0x5c727a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c727a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cdb45);return _0x4e298c?window[_0x5c727a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x245672(_0x4e298c),0x10)*_0x506f45:null;}function _0x1c58a0(_0x5e92c3){return new window[(_0x5c727a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3dccda,_0x1b19bd)=>{_0x5e92c3[_0x5c727a([0x74,0x68,0x65,0x6e])](_0x3dccda,_0x1b19bd),window[_0x5c727a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b19bd,0x6b9ad13d^_0x456c02);});}}_0x1659af[_0x5c727a([0x6f,0x6e])](_0x5c727a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e9410,_0x2e2448)=>{if(_0x2e2448[0x0]!=_0x468332)return _0x54b354(_0x5c727a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e2448[0x1]={..._0x2e2448[0x1],[_0x5c727a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2cc8cb};},{[_0x5c727a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c727a([0x68,0x69,0x67,0x68])}),_0x1659af[_0x5c727a([0x6f,0x6e])](_0x5c727a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b04f4=>{_0x1fb499(_0x1b04f4[_0x5c727a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x55cfbd=!0x0,_0x10fb50(_0x1b04f4[_0x5c727a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c727a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c727a([0x6c,0x6f,0x77])}),_0x3439bc[_0x5c727a([0x74,0x68,0x65,0x6e])](()=>{_0x55cfbd||_0x54b354(_0x5c727a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x38fd75(){return _0x1659af[_0x5c727a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c727a([0x76,0x69,0x65,0x77])][_0x5c727a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c727a([0x61,0x75,0x74,0x6f]);}function _0x2cab1d(){_0x1659af[_0x5c727a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c727a([0x76,0x69,0x65,0x77])][_0x5c727a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c727a([0x61,0x75,0x74,0x6f]);}}function _0x72a1b3(_0xaac092){const _0x302229=[new window[(_0x5c727a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56d95b=>setTimeout(_0x56d95b,0x6b923b31^_0x456c02)),_0x3439bc[_0x5c727a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c727a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb03a84=>{let _0x38eda8=0x0;_0x1659af[_0x5c727a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c727a([0x6f,0x6e])](_0x5c727a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1614c7,_0x562416)=>{_0x562416[0x0][_0x5c727a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38eda8++,_0x38eda8==(0x6b9b0015^_0x456c02)&&(_0xb03a84(),_0x1614c7[_0x5c727a([0x6f,0x66,0x66])]());});}))];return window[_0x5c727a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c727a([0x72,0x61,0x63,0x65])](_0x302229)[_0x5c727a([0x74,0x68,0x65,0x6e])](()=>_0xaac092);}async function _0xb54595(){await _0x3439bc,_0x1659af[_0x5c727a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c727a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x236bae,_0x1659af[_0x5c727a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c727a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x236bae,_0x1659af[_0x5c727a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c727a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2031bd(){return window[_0x5c727a([0x67,0x6c,0x6f,0x62])]&&window[_0x5c727a([0x67,0x6c,0x6f,0x62])][_0x5c727a([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x4fc56f(_0x3cb1a7){const _0x4632e3=_0x1fd7ce();_0x1659af[_0x4632e3]=_0x5c727a([0x74,0x61,0x62,0x6c,0x65,0x4f,0x66,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3cb1a7,_0x3cb1a7!=_0x5c727a([0x56,0x61,0x6c,0x69,0x64])&&_0xb54595();}function _0x1fd7ce(){const _0x879499=window[_0x5c727a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c727a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c727a([0x6e,0x6f,0x77])]())[_0x5c727a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c727a([0x2e]),'');let _0x41c103=_0x5c727a([0x6d]);for(let _0x29bafd=0x0;_0x29bafd<_0x879499[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29bafd+=0x2){let _0x33dc7d=window[_0x5c727a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x879499[_0x5c727a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29bafd,_0x29bafd+0x2));_0x33dc7d>=_0x41733b[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33dc7d-=_0x41733b[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41c103+=_0x41733b[_0x33dc7d];}return _0x41c103;}function _0x4729ad(){const _0x3fd958=_0x55b259[_0x5c727a([0x73,0x70,0x6c,0x69,0x74])](_0x5c727a([0x2e]));if(0x3!=_0x3fd958[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x523176(_0x3fd958[0x1]);function _0x523176(_0x45f684){const _0xc514ac=_0x3fc2b7(_0x45f684);return _0xc514ac&&_0x4dd8f3()?_0xc514ac:null;function _0x4dd8f3(){const _0x168859=_0xc514ac[_0x5c727a([0x6a,0x74,0x69])],_0x302776=window[_0x5c727a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x168859[_0x5c727a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x168859[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x283b2b={..._0xc514ac,[_0x5c727a([0x6a,0x74,0x69])]:_0x168859[_0x5c727a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x168859[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x283b2b[_0x5c727a([0x76,0x63])],_0x9c1f77(_0x283b2b)==_0x302776;}}}async function _0x1a8e4f(){let _0x47ff4b=!0x0;try{const _0x37a83a=_0x55b259[_0x5c727a([0x73,0x70,0x6c,0x69,0x74])](_0x5c727a([0x2e])),[_0x185ee2,_0x13a0af,_0x32b548]=_0x37a83a;return _0x10e24f(_0x185ee2),await _0x92ad86(_0x185ee2,_0x13a0af,_0x32b548),_0x47ff4b;}catch{return!0x1;}function _0x10e24f(_0x14d2a7){const _0x214a97=_0x3fc2b7(_0x14d2a7);_0x214a97&&_0x214a97[_0x5c727a([0x61,0x6c,0x67])]==_0x5c727a([0x45,0x53,0x32,0x35,0x36])||(_0x47ff4b=!0x1);}async function _0x92ad86(_0x2e0022,_0xdbbea8,_0x4c57d2){const _0x57022a=window[_0x5c727a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c727a([0x66,0x72,0x6f,0x6d])](_0x64abe2(_0x4c57d2),_0x379bd0=>_0x379bd0[_0x5c727a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5690ac=new window[(_0x5c727a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c727a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e0022+_0x5c727a([0x2e])+_0xdbbea8),_0x35d1f8=window[_0x5c727a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c727a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35d1f8)return;const _0x192db6=await _0x35d1f8[_0x5c727a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c727a([0x6a,0x77,0x6b]),_0x5bca5f,{[_0x5c727a([0x6e,0x61,0x6d,0x65])]:_0x5c727a([0x45,0x43,0x44,0x53,0x41]),[_0x5c727a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c727a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c727a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35d1f8[_0x5c727a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c727a([0x6e,0x61,0x6d,0x65])]:_0x5c727a([0x45,0x43,0x44,0x53,0x41]),[_0x5c727a([0x68,0x61,0x73,0x68])]:{[_0x5c727a([0x6e,0x61,0x6d,0x65])]:_0x5c727a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x192db6,_0x57022a,_0x5690ac)||(_0x47ff4b=!0x1);}}function _0x3fc2b7(_0x59e3f2){return _0x59e3f2[_0x5c727a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c727a([0x65,0x79]))?JSON[_0x5c727a([0x70,0x61,0x72,0x73,0x65])](_0x64abe2(_0x59e3f2)):null;}function _0x64abe2(_0x45f727){return window[_0x5c727a([0x61,0x74,0x6f,0x62])](_0x45f727[_0x5c727a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c727a([0x2b]))[_0x5c727a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c727a([0x2f])));}function _0x9c1f77(_0x3ce563){let _0x2ca4bd=0x1505;function _0x2da6af(_0x3609c6){for(let _0x87ed47=0x0;_0x87ed47<_0x3609c6[_0x5c727a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x87ed47++){const _0x31b0d5=_0x3609c6[_0x5c727a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x87ed47);_0x2ca4bd=(_0x2ca4bd<<0x5)+_0x2ca4bd+_0x31b0d5,_0x2ca4bd&=_0x2ca4bd;}}function _0x9d81c8(_0x329c4c){Array[_0x5c727a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x329c4c)?_0x329c4c[_0x5c727a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9d81c8):_0x329c4c&&typeof _0x329c4c==_0x5c727a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c727a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x329c4c)[_0x5c727a([0x73,0x6f,0x72,0x74])]()[_0x5c727a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x54f8a9,_0x3463c2])=>{_0x2da6af(_0x54f8a9),_0x9d81c8(_0x3463c2);}):_0x2da6af(window[_0x5c727a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x329c4c));}return _0x9d81c8(_0x3ce563),_0x2ca4bd>>>0x0;}function _0x5a178b(_0x2b9af6){return _0x2b9af6[_0x5c727a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c727a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c727a([0x30]));}function _0x245672(_0x418410){return _0x418410[_0x5c727a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c727a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c727a([0x6a,0x6f,0x69,0x6e])]('');}function _0x236bae(){}function _0x5c727a(_0x262f9f){return _0x262f9f['map'](_0x80ffd7=>String['fromCharCode'](_0x80ffd7))['join']('');}_0x4fc56f(await _0xc9231d());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x5bf95a=>{'$graveyard'!==_0x5bf95a['rootName']&&this['editor']['editing']['reconvertItem'](_0x5bf95a);});}['_trackNewToCElements'](){for(const _0x46f9bb of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x46f9bb['type']||'tableOfContents'!==_0x46f9bb['name'])return;this['_tableOfContentsElements']['add'](_0x46f9bb['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x2fc4d1){const _0x2737ab=this['editor'],_0x84c831=[];for(const _0x51cbc3 of _0x2737ab['model']['document']['getRootNames']())_0x31772b(_0x2737ab['model']['document']['getRoot'](_0x51cbc3));function _0x31772b(_0x42b5b3){for(const _0x1e6615 of _0x42b5b3['getChildren']())_0x1e6615['is']('element')&&(_0x2fc4d1['includes'](_0x1e6615['name'])&&_0x84c831['push']({'level':_0x2fc4d1['indexOf'](_0x1e6615['name'])+0x1,'text':I(_0x1e6615),'modelElement':_0x1e6615}),_0x31772b(_0x1e6615));}return _0x84c831;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x3d6cde=this['editor']['conversion'];_0x3d6cde['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x3d6cde['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0xfae856,{writer:_0x8c68fb})=>this['_createTableOfContents'](_0x8c68fb,!0x0)}),_0x3d6cde['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x2dd097,{writer:_0x37848d})=>{this['_tableOfContentsElements']['add'](_0x2dd097);const _0x20f684=this['_createTableOfContents'](_0x37848d);return _0x57aa64(_0x20f684,_0x37848d,{'label':C(this['editor']['locale'],'Table\x20of\x20contents')});}}),this['editor']['data']['registerRawContentMatcher']({'name':'div','classes':'table-of-contents'}),this['editor']['editing']['mapper']['on']('viewToModelPosition',this['_redirectMapper'](),{'priority':'high'});}['_createTableOfContents'](_0x34fe12,_0x406bc6=!0x1){const {locale:_0x16ad43}=this['editor'],_0x52df8b=_0x34fe12['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x406bc6&&{'data-table-of-contents-label':C(_0x16ad43,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x406bc6&&_0x34fe12['insert'](_0x34fe12['createPositionAt'](_0x52df8b,'end'),_0x34fe12['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x34fe12['createText'](C(_0x16ad43,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x42d75f=_0x406bc6?'':'['+C(_0x16ad43,'Empty\x20heading')+']';let _0x4f223a=_0x52df8b;return this['_currentOutlineDefinitions']['forEach']((_0x1c5424,_0x1872dd,_0x6a796f)=>{const _0x2dfb01=this['editor']['model']['hasContent'](_0x1c5424['modelElement'],{'ignoreWhitespaces':!0x0}),_0x42d797=_0x2dfb01?_0x1c5424['text']:_0x42d75f,_0x2e581f=_0x1c5424['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x22d37e=_0x34fe12['createContainerElement']('a',{'href':'#'+_0x2e581f,...!_0x406bc6&&{'tabindex':'-1'}},[_0x34fe12['createText'](_0x42d797)]),_0x2a95d1=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x34fe12['setCustomProperty']('tableOfContentsHeadingIndex',_0x1872dd,_0x22d37e);const _0x4e2f9b=_0x34fe12['createContainerElement']('li',null,[_0x2dfb01||!_0x406bc6&&_0x2a95d1?_0x22d37e:_0x34fe12['createText']('')]),_0x224765=_0x1872dd?_0x6a796f[_0x1872dd-0x1]['level']:0x0,_0x3ed7a9=Math['abs'](_0x1c5424['level']-_0x224765);if(_0x1c5424['level']>_0x224765){const _0x58b4c9=x(_0x4e2f9b,_0x3ed7a9,_0x34fe12);_0x34fe12['insert'](_0x34fe12['createPositionAt'](_0x4f223a,'end'),_0x58b4c9);}else{const _0x8a07e9=function(_0x58f7d0,_0x52d322){return _0x58f7d0['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x385ec5=>_0x385ec5['is']('element','ol'))[_0x52d322];}(_0x4f223a,_0x3ed7a9);_0x34fe12['insert'](_0x34fe12['createPositionAt'](_0x8a07e9,'end'),_0x4e2f9b);}_0x4f223a=_0x4e2f9b;}),_0x52df8b;}['_handleScrollToHeading'](_0x34c847){const _0x32ff58=this['_currentOutlineDefinitions'][_0x34c847]['modelElement'];this['editor']['model']['change'](_0xdece70=>{_0xdece70['setSelection'](_0x32ff58,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x57c883,_0xbbe49a)=>{const _0x47bc9a=_0xbbe49a['mapper'],_0x45dd00=_0x47bc9a['findMappedViewAncestor'](_0xbbe49a['viewPosition']),_0x12a19b=_0x47bc9a['toModelElement'](_0x45dd00);_0x12a19b['is']('element','tableOfContents')&&(_0xbbe49a['modelPosition']=this['editor']['model']['createPositionAt'](_0x12a19b,0x0),_0x57c883['stop']());};}}function x(_0x3d319e,_0x13730f,_0x2e503c){return 0x1===_0x13730f?_0x2e503c['createContainerElement']('ol',null,[_0x3d319e]):_0x2e503c['createContainerElement']('ol',null,[_0x2e503c['createContainerElement']('li',null,[x(_0x3d319e,_0x13730f-0x1,_0x2e503c)])]);}class TableOfContentsUI extends _0x374dbe{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x17576d=this['editor'];_0x17576d['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x450a2d=this['_createButton'](_0x1ed391);return _0x450a2d['tooltip']=!0x0,_0x450a2d;}),_0x17576d['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x142066)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x514f98=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf065d6;for(const _0xf4a43a in _0x514f98){const _0x2583ad=_0xf4a43a,_0x465a3b=_0x514f98[_0x2583ad];if('tableOfContentsLicenseKeyValid'==_0x465a3b||'tableOfContentsLicenseKeyInvalid'==_0x465a3b||'tableOfContentsLicenseKeyExpired'==_0x465a3b||'tableOfContentsLicenseKeyDomainLimit'==_0x465a3b||'tableOfContentsLicenseKeyNotAllowed'==_0x465a3b||'tableOfContentsLicenseKeyEvaluationLimit'==_0x465a3b||'tableOfContentsLicenseKeyUsageLimit'==_0x465a3b){delete _0x514f98[_0x2583ad],_0xf065d6=_0x465a3b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0xf065d6&&_0x514f98['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0xf065d6&&_0x514f98['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0xf065d6&&_0x514f98['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0xf065d6&&_0x514f98['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0xf065d6&&_0x514f98['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0xf065d6&&_0x514f98['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0xf174b){const _0x36dd6a=this['editor'],_0x41730e=_0x36dd6a['locale'],_0x18e7df=_0x36dd6a['commands']['get']('insertTableOfContents'),_0x5791ff=new _0xf174b(_0x41730e);return _0x5791ff['set']({'label':C(_0x41730e,'Table\x20of\x20contents'),'icon':_0x3c8de8}),_0x5791ff['bind']('isEnabled')['to'](_0x18e7df,'isEnabled'),this['listenTo'](_0x5791ff,'execute',()=>{_0x36dd6a['execute']('insertTableOfContents'),_0x36dd6a['editing']['view']['focus']();}),_0x5791ff;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContents extends _0x374dbe{static get['requires'](){return[TableOfContentsEditing,TableOfContentsUI];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{DocumentOutline,DocumentOutlineUI,DocumentOutlineUtils,HeadingId,TableOfContents,TableOfContentsCommand,TableOfContentsEditing,TableOfContentsUI};
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.1",
4
4
  "description": "Document outline feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,13 +21,13 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.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.1",
25
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.1",
26
+ "@ckeditor/ckeditor5-heading": "48.8.1-alpha.1",
27
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.1",
28
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.1",
29
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.1",
30
+ "@ckeditor/ckeditor5-widget": "48.8.1-alpha.1",
31
31
  "es-toolkit": "1.45.1"
32
32
  },
33
33
  "files": [