@ckeditor/ckeditor5-document-outline 48.2.0-alpha.3 → 48.2.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x5a394e,Command as _0x3bab4a}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x54e343,throttle as _0x4fad3d}from'es-toolkit/compat';import{ModelText as _0x3823da,ModelTreeWalker as _0x103d85}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x311add,diffToChanges as _0x3becb2,scrollAncestorsToShowTarget as _0x31861d,CKEditorError as _0x3041e8,global as _0x5af891,Rect as _0x23a9f0,uid as _0x4b8053,priorities as _0x5b1d5a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x4f0fa5,ButtonView as _0x4b3af8,MenuBarMenuListItemButtonView as _0x25bcc9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x4535bc,toWidget as _0xf54338}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x5e17fa}from'@ckeditor/ckeditor5-icons/dist/index.js';function I(_0x5d1ef2){let _0xd7aab4='';for(const _0xfe165a of _0x5d1ef2['getChildren']())_0xfe165a instanceof _0x3823da&&(_0xd7aab4+=_0xfe165a['data']);return _0xd7aab4;}class DocumentOutlineUtils extends _0x5a394e{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x4b5168=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x3e7acf=[];_0x4b5168['model']['document']['on']('change',_0x54e343(()=>{const _0x1af938=_0x3e7acf;_0x3e7acf=this['_getOutlineDefinitions']();const _0x321dfe=_0x311add(_0x1af938,_0x3e7acf,(_0x539da3,_0x35c66c)=>_0x539da3['level']===_0x35c66c['level']&&_0x539da3['text']===_0x35c66c['text']&&_0x539da3['modelElement']===_0x35c66c['modelElement']),_0x53d829=_0x3becb2(_0x321dfe,_0x3e7acf),_0x394bca=this['_getActiveHeading'](),_0x48347e=_0x3e7acf['findIndex'](_0xc2ed7f=>_0xc2ed7f['modelElement']===_0x394bca);_0x53d829['length']&&this['fire']('change',{'outlineDefinitions':_0x3e7acf,'activeItemIndex':_0x48347e,'outlineChanges':_0x53d829}),this['fire']('activeItemIndex',{'index':_0x48347e});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x2bc85a=this['editor'],_0x4ab657=[],_0x3ca7f9=this['_headingNames'];for(const _0x1feefb of _0x2bc85a['model']['document']['getRootNames']())_0x330a8e(_0x2bc85a['model']['document']['getRoot'](_0x1feefb));function _0x330a8e(_0x6d4e32){for(const _0x23f6e9 of _0x6d4e32['getChildren']())_0x23f6e9['is']('element')&&(_0x3ca7f9['includes'](_0x23f6e9['name'])&&_0x4ab657['push']({'level':_0x3ca7f9['indexOf'](_0x23f6e9['name'])+0x1,'text':I(_0x23f6e9),'modelElement':_0x23f6e9}),_0x330a8e(_0x23f6e9));}return _0x4ab657;}['_getActiveHeading'](){const _0x58a93f=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x8fe613=new _0x103d85({'direction':'backward','startPosition':_0x58a93f});for(const _0x321d00 of _0x8fe613)if(_0x321d00['item']['is']('element')&&this['_headingNames']['includes'](_0x321d00['item']['name']))return _0x321d00['item'];}['_getHeadingNames'](){const _0x451544=this['editor']['config']['get']('documentOutline.headings');return _0x451544||function(_0x276080){const _0x38cd63=_0x276080['config']['get']('heading.options');return _0x38cd63?_0x38cd63['reduce']((_0x556824,_0x83f0c2)=>('paragraph'!==_0x83f0c2['model']&&_0x556824['push'](_0x83f0c2['model']),_0x556824),[]):_0x276080['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x3a9fb9=this['editor'],_0x2351e5=['h1','h2','h3','h4','h5','h6'],_0x2737d5=[];for(const _0x416d1c of _0x2351e5){const _0x4fe962=_0x3a9fb9['editing']['view']['domConverter']['domToView'](document['createElement'](_0x416d1c)),_0x22224c=_0x3a9fb9['data']['toModel'](_0x4fe962)['getChild'](0x0);_0x22224c?.['is']('element')&&_0x2737d5['push'](_0x22224c['name']);}this['_headingNames']=_0x2737d5;}}function C(_0xffb0f9,_0xd1a0e2){const t=_0xffb0f9['t'];switch(_0xd1a0e2){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 _0xd1a0e2;}}class DocumentOutlineItemView extends _0x4f0fa5{constructor(_0x1fe86c,_0xfe5b9d=!0x1){super(_0x1fe86c);const _0x12cad7=this['bindTemplate'],_0xe754e0=_0xfe5b9d?'['+C(_0x1fe86c,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x43b093=>!_0x43b093),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x12cad7['to']('level',_0x17869b=>'ck-document-outline__item_level-'+_0x17869b),_0x12cad7['if']('isActive','ck-document-outline__item_active'),_0x12cad7['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x12cad7['to']('text')},'children':[{'text':_0x12cad7['to']('text',_0x385648=>_0x385648||_0xe754e0)}],'on':{'click':_0x12cad7['to']('click')}});}}class DocumentOutlineView extends _0x4f0fa5{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x291f2d,_0x25040d=!0x1,_0x43367d){super(_0x291f2d),this['showEmptyHeadingText']=_0x25040d,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x43367d,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x33d720,_0x56ac18,_0x5e206c,_0x5241ac)=>{this['_setActiveItem'](_0x5241ac,_0x5e206c);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x291f2d['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x291f2d,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x2816fd){_0x2816fd['forEach'](_0x458b62=>{'insert'==_0x458b62['type']?this['_insertItem'](_0x458b62['index'],..._0x458b62['values']):'delete'==_0x458b62['type']&&this['_deleteItem'](_0x458b62['index'],_0x458b62['howMany']);});}['_setActiveItem'](_0x4c581d,_0x4d8ad4){if(-0x1!==_0x4c581d){const _0x3615f2=this['items']['get'](_0x4c581d);_0x3615f2&&(_0x3615f2['isActive']=!0x1);}-0x1!==_0x4d8ad4&&(this['items']['get'](_0x4d8ad4)['isActive']=!0x0,this['_scrollToItem'](_0x4d8ad4));}['_insertItem'](_0x19f8d0,..._0x55b67e){const _0x16c9b2=_0x55b67e['map']((_0x2cd217,_0x2f36a5)=>{const _0x56a1d6=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0x56a1d6['text']=_0x2cd217['text'],_0x56a1d6['level']=_0x2cd217['level'],_0x19f8d0+_0x2f36a5===this['activeItemIndex']&&(_0x56a1d6['isActive']=!0x0),_0x56a1d6;});this['items']['addMany'](_0x16c9b2,_0x19f8d0);}['_deleteItem'](_0x2801d0,_0x1288a8){do{this['items']['remove'](_0x2801d0);}while(--_0x1288a8);}['_handleItemClick'](_0x10f807){const _0x177078=this['items']['getIndex'](_0x10f807['source']);this['fire']('itemSelected',_0x177078);}['_scrollToItem'](_0x163657){_0x31861d(this['items']['get'](_0x163657)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class DocumentOutlineUI extends _0x5a394e{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29b2ef){super(_0x29b2ef),this['view']=new DocumentOutlineView(_0x29b2ef['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x4fad3d(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x5a96ed=this['editor'],_0x523cf5=_0x5a96ed['plugins']['get']('DocumentOutlineUtils');let _0x5d5c7b=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x5a96ed['config']['get']('documentOutline.container'))throw new _0x3041e8('document-outline-container-not-provided',{'editor':_0x5a96ed});_0x5a96ed['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x523cf5['on']('change',this['_handleOutlineChange']['bind'](this)),_0x523cf5['on']('activeItemIndex',(_0x214397,{index:_0x466ad1})=>this['_setActiveViewItem'](_0x466ad1)),this['view']['on']('itemSelected',(_0xec6c39,_0x33f7dc)=>{_0x5d5c7b=!0x0,this['_handleItemSelected'](_0x33f7dc);}),this['view']['listenTo'](_0x5af891['document'],'scroll',()=>{_0x5d5c7b?_0x5d5c7b=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x5af891['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x20d2ee){const _0x46bc31=_0xc2d39d([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]),_0x265524=0x1cb264a3,_0x1c032a=0x1cb5ef2b^_0x265524,_0x1bc9c9=window[_0xc2d39d([0x44,0x61,0x74,0x65])][_0xc2d39d([0x6e,0x6f,0x77])](),_0x4d3f57=_0x20d2ee[_0xc2d39d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b8386=new window[(_0xc2d39d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x589842=>{_0x4d3f57[_0xc2d39d([0x6f,0x6e,0x63,0x65])](_0xc2d39d([0x72,0x65,0x61,0x64,0x79]),_0x589842);}),_0x341c75={[_0xc2d39d([0x6b,0x74,0x79])]:_0xc2d39d([0x45,0x43]),[_0xc2d39d([0x75,0x73,0x65])]:_0xc2d39d([0x73,0x69,0x67]),[_0xc2d39d([0x63,0x72,0x76])]:_0xc2d39d([0x50,0x2d,0x32,0x35,0x36]),[_0xc2d39d([0x78])]:_0xc2d39d([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]),[_0xc2d39d([0x79])]:_0xc2d39d([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]),[_0xc2d39d([0x61,0x6c,0x67])]:_0xc2d39d([0x45,0x53,0x32,0x35,0x36])},_0x4ecc28=_0x4d3f57[_0xc2d39d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc2d39d([0x67,0x65,0x74])](_0xc2d39d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ab81f(){let _0x60463e,_0x559ba4=null,_0x5dfe90=null;try{if(_0x4ecc28==_0xc2d39d([0x47,0x50,0x4c]))return _0xc2d39d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x60463e=_0x3600dd(),!_0x60463e)return _0xc2d39d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x60463e[_0xc2d39d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5dfe90=_0x10c8c3(_0x60463e[_0xc2d39d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x60463e[_0xc2d39d([0x6a,0x74,0x69])])),await _0x20ee0f()?_0x40e475()?_0x5f530b()?_0xc2d39d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x682b82()?(_0x60463e[_0xc2d39d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc2d39d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x559ba4=_0x46a3f6(_0xc2d39d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3efb67()):_0xc2d39d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc2d39d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc2d39d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xc2d39d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f530b(){const _0x12c202=[_0xc2d39d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc2d39d([0x74,0x72,0x69,0x61,0x6c])][_0xc2d39d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60463e[_0xc2d39d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1bc9c9/0x3e8:0xe10*_0x1c032a;return _0x60463e[_0xc2d39d([0x65,0x78,0x70])]<_0x12c202;}function _0x40e475(){const _0xbf3b6f=_0x60463e[_0xc2d39d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xbf3b6f&&(!!_0xbf3b6f[_0xc2d39d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc2d39d([0x2a]))||(!!_0xbf3b6f[_0xc2d39d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc2d39d([0x44,0x4f]))||(!!_0xbf3b6f[_0xc2d39d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc2d39d([0x50,0x50]))||!(!_0xbf3b6f[_0xc2d39d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc2d39d([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x3bdf76()))));}function _0x682b82(){const _0x423716=_0x60463e[_0xc2d39d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x423716||0x0==_0x423716[_0xc2d39d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58b9a1}=new URL(window[_0xc2d39d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x423716[_0xc2d39d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b9a1))return!0x0;const _0x5daee1=_0x58b9a1[_0xc2d39d([0x73,0x70,0x6c,0x69,0x74])](_0xc2d39d([0x2e]));return _0x423716[_0xc2d39d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b659c=>_0x4b659c[_0xc2d39d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc2d39d([0x2a])))[_0xc2d39d([0x6d,0x61,0x70])](_0x4149d9=>_0x4149d9[_0xc2d39d([0x73,0x70,0x6c,0x69,0x74])](_0xc2d39d([0x2e])))[_0xc2d39d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13466e=>_0x13466e[_0xc2d39d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5daee1[_0xc2d39d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc2d39d([0x6d,0x61,0x70])](_0x4efca3=>Array(_0x5daee1[_0xc2d39d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4efca3[_0xc2d39d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc2d39d([0x66,0x69,0x6c,0x6c])](_0x4efca3[0x0]===_0xc2d39d([0x2a])?_0xc2d39d([0x2a]):'')[_0xc2d39d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4efca3))[_0xc2d39d([0x73,0x6f,0x6d,0x65])](_0x1883c1=>_0x5daee1[_0xc2d39d([0x65,0x76,0x65,0x72,0x79])]((_0x50e97d,_0x1da1c7)=>_0x1883c1[_0x1da1c7]===_0x50e97d||_0x1883c1[_0x1da1c7]===_0xc2d39d([0x2a])));}function _0x3efb67(){return _0x559ba4&&_0x5dfe90?new window[(_0xc2d39d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13222e,_0x273f56)=>{_0x559ba4[_0xc2d39d([0x74,0x68,0x65,0x6e])](_0x13222e,_0x273f56),_0x5dfe90[_0xc2d39d([0x74,0x68,0x65,0x6e])](_0x1dcf95=>{_0x1dcf95!=_0xc2d39d([0x56,0x61,0x6c,0x69,0x64])&&_0x13222e(_0x1dcf95);},_0x273f56);}):_0x559ba4||_0x5dfe90||_0xc2d39d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x10c8c3(_0x4a0dbc,_0x385553){return new window[(_0xc2d39d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ccd78=>{if(_0x1dd010())return _0x5ccd78(_0xc2d39d([0x56,0x61,0x6c,0x69,0x64]));_0x1e8a40(),_0x4d3f57[_0xc2d39d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc2d39d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x218c75=!0x1;const _0x405cd6=_0x4b8053();function _0x1c4b87(_0x4a2986){return!!_0x4a2986&&(typeof _0x4a2986===_0xc2d39d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a2986===_0xc2d39d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a2986[_0xc2d39d([0x74,0x68,0x65,0x6e])]===_0xc2d39d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a2986[_0xc2d39d([0x63,0x61,0x74,0x63,0x68])]===_0xc2d39d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x562f62(_0x3bd16d){_0x3eb0f2(_0x3bd16d)[_0xc2d39d([0x74,0x68,0x65,0x6e])](_0x2e524c=>{if(!_0x2e524c||_0x2e524c[_0xc2d39d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc2d39d([0x6f,0x6b]))return _0xc2d39d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x38eba7(_0xb3b41f(_0x405cd6+_0x385553))!=_0x2e524c[_0xc2d39d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc2d39d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc2d39d([0x56,0x61,0x6c,0x69,0x64]);})[_0xc2d39d([0x74,0x68,0x65,0x6e])](_0x5dcb99=>(_0xe9d282(),_0x5dcb99),()=>{const _0x325fb5=_0x5f2453();return null==_0x325fb5?(_0xe9d282(),_0xc2d39d([0x56,0x61,0x6c,0x69,0x64])):_0xc2d39d(_0x1bc9c9-_0x325fb5>(0x38bee0a3^_0x265524)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc2d39d([0x74,0x68,0x65,0x6e])](_0x5ccd78)[_0xc2d39d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ccd78(_0xc2d39d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4351fd=0x1c848a23^_0x265524;function _0xe9d282(){const _0x9ca7a9=_0xc2d39d([0x6c,0x6c,0x63,0x74,0x2d])+_0x38eba7(_0xb3b41f(_0x4a0dbc)),_0x521e7e=_0x2255b5(_0x38eba7(window[_0xc2d39d([0x4d,0x61,0x74,0x68])][_0xc2d39d([0x63,0x65,0x69,0x6c])](_0x1bc9c9/_0x4351fd)));window[_0xc2d39d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc2d39d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9ca7a9,_0x521e7e);}function _0x5f2453(){const _0x5b97dc=_0xc2d39d([0x6c,0x6c,0x63,0x74,0x2d])+_0x38eba7(_0xb3b41f(_0x4a0dbc)),_0x3318aa=window[_0xc2d39d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc2d39d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b97dc);return _0x3318aa?window[_0xc2d39d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2255b5(_0x3318aa),0x10)*_0x4351fd:null;}function _0x3eb0f2(_0x2f4d67){return new window[(_0xc2d39d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3411d0,_0x42352c)=>{_0x2f4d67[_0xc2d39d([0x74,0x68,0x65,0x6e])](_0x3411d0,_0x42352c),window[_0xc2d39d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42352c,0x1cb3b063^_0x265524);});}}_0x4d3f57[_0xc2d39d([0x6f,0x6e])](_0xc2d39d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1547e6,_0x128253)=>{if(_0x128253[0x0]!=_0x4a0dbc)return _0x5ccd78(_0xc2d39d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x128253[0x1]={..._0x128253[0x1],[_0xc2d39d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x405cd6};},{[_0xc2d39d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc2d39d([0x68,0x69,0x67,0x68])}),_0x4d3f57[_0xc2d39d([0x6f,0x6e])](_0xc2d39d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49c52f=>{_0x1c4b87(_0x49c52f[_0xc2d39d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x218c75=!0x0,_0x562f62(_0x49c52f[_0xc2d39d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc2d39d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc2d39d([0x6c,0x6f,0x77])}),_0x2b8386[_0xc2d39d([0x74,0x68,0x65,0x6e])](()=>{_0x218c75||_0x5ccd78(_0xc2d39d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1dd010(){return _0x4d3f57[_0xc2d39d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc2d39d([0x76,0x69,0x65,0x77])][_0xc2d39d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc2d39d([0x61,0x75,0x74,0x6f]);}function _0x1e8a40(){_0x4d3f57[_0xc2d39d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc2d39d([0x76,0x69,0x65,0x77])][_0xc2d39d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc2d39d([0x61,0x75,0x74,0x6f]);}}function _0x46a3f6(_0x374056){const _0x4f733b=[new window[(_0xc2d39d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d9158=>setTimeout(_0x3d9158,0x1cbb5a6f^_0x265524)),_0x2b8386[_0xc2d39d([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc2d39d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c3426=>{let _0x21ec30=0x0;_0x4d3f57[_0xc2d39d([0x6d,0x6f,0x64,0x65,0x6c])][_0xc2d39d([0x6f,0x6e])](_0xc2d39d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x582106,_0x6b0062)=>{_0x6b0062[0x0][_0xc2d39d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x21ec30++,_0x21ec30==(0x1cb2614b^_0x265524)&&(_0x3c3426(),_0x582106[_0xc2d39d([0x6f,0x66,0x66])]());});}))];return window[_0xc2d39d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc2d39d([0x72,0x61,0x63,0x65])](_0x4f733b)[_0xc2d39d([0x74,0x68,0x65,0x6e])](()=>_0x374056);}async function _0x4e5b87(){await _0x2b8386,_0x4d3f57[_0xc2d39d([0x6d,0x6f,0x64,0x65,0x6c])][_0xc2d39d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2bba5c,_0x4d3f57[_0xc2d39d([0x6d,0x6f,0x64,0x65,0x6c])][_0xc2d39d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2bba5c,_0x4d3f57[_0xc2d39d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc2d39d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3bdf76(){return window[_0xc2d39d([0x67,0x6c,0x6f,0x62])]&&window[_0xc2d39d([0x67,0x6c,0x6f,0x62])][_0xc2d39d([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x2364d5(_0x3c332b){const _0x7201b7=_0x42f839();_0x4d3f57[_0x7201b7]=_0xc2d39d([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])+_0x3c332b,_0x3c332b!=_0xc2d39d([0x56,0x61,0x6c,0x69,0x64])&&_0x4e5b87();}function _0x42f839(){const _0xd6deeb=window[_0xc2d39d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc2d39d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc2d39d([0x6e,0x6f,0x77])]())[_0xc2d39d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc2d39d([0x2e]),'');let _0x5d584=_0xc2d39d([0x61]);for(let _0x8e1b44=0x0;_0x8e1b44<_0xd6deeb[_0xc2d39d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8e1b44+=0x2){let _0x97a7a6=window[_0xc2d39d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd6deeb[_0xc2d39d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8e1b44,_0x8e1b44+0x2));_0x97a7a6>=_0x46bc31[_0xc2d39d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x97a7a6-=_0x46bc31[_0xc2d39d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d584+=_0x46bc31[_0x97a7a6];}return _0x5d584;}function _0x3600dd(){const _0x475f0f=_0x4ecc28[_0xc2d39d([0x73,0x70,0x6c,0x69,0x74])](_0xc2d39d([0x2e]));if(0x3!=_0x475f0f[_0xc2d39d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c8792(_0x475f0f[0x1]);function _0x3c8792(_0x50ba23){const _0x2cf70e=_0x2c2a99(_0x50ba23);return _0x2cf70e&&_0x2502be()?_0x2cf70e:null;function _0x2502be(){const _0x2e27dd=_0x2cf70e[_0xc2d39d([0x6a,0x74,0x69])],_0x18ae4e=window[_0xc2d39d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e27dd[_0xc2d39d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e27dd[_0xc2d39d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x58f620={..._0x2cf70e,[_0xc2d39d([0x6a,0x74,0x69])]:_0x2e27dd[_0xc2d39d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e27dd[_0xc2d39d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x58f620[_0xc2d39d([0x76,0x63])],_0xb3b41f(_0x58f620)==_0x18ae4e;}}}async function _0x20ee0f(){let _0x31d9e5=!0x0;try{const _0x3c9af0=_0x4ecc28[_0xc2d39d([0x73,0x70,0x6c,0x69,0x74])](_0xc2d39d([0x2e])),[_0x434958,_0x9d6dfe,_0x385477]=_0x3c9af0;return _0x16406e(_0x434958),await _0x40f7f5(_0x434958,_0x9d6dfe,_0x385477),_0x31d9e5;}catch{return!0x1;}function _0x16406e(_0x227b69){const _0x44b470=_0x2c2a99(_0x227b69);_0x44b470&&_0x44b470[_0xc2d39d([0x61,0x6c,0x67])]==_0xc2d39d([0x45,0x53,0x32,0x35,0x36])||(_0x31d9e5=!0x1);}async function _0x40f7f5(_0x1d5678,_0x2e57c8,_0x2df102){const _0x224b56=window[_0xc2d39d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc2d39d([0x66,0x72,0x6f,0x6d])](_0x58d1a8(_0x2df102),_0x3061ee=>_0x3061ee[_0xc2d39d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3a886a=new window[(_0xc2d39d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc2d39d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d5678+_0xc2d39d([0x2e])+_0x2e57c8),_0x52b126=window[_0xc2d39d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc2d39d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x52b126)return;const _0x33d8a9=await _0x52b126[_0xc2d39d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc2d39d([0x6a,0x77,0x6b]),_0x341c75,{[_0xc2d39d([0x6e,0x61,0x6d,0x65])]:_0xc2d39d([0x45,0x43,0x44,0x53,0x41]),[_0xc2d39d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc2d39d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc2d39d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x52b126[_0xc2d39d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc2d39d([0x6e,0x61,0x6d,0x65])]:_0xc2d39d([0x45,0x43,0x44,0x53,0x41]),[_0xc2d39d([0x68,0x61,0x73,0x68])]:{[_0xc2d39d([0x6e,0x61,0x6d,0x65])]:_0xc2d39d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x33d8a9,_0x224b56,_0x3a886a)||(_0x31d9e5=!0x1);}}function _0x2c2a99(_0x1b4066){return _0x1b4066[_0xc2d39d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc2d39d([0x65,0x79]))?JSON[_0xc2d39d([0x70,0x61,0x72,0x73,0x65])](_0x58d1a8(_0x1b4066)):null;}function _0x58d1a8(_0x5ee756){return window[_0xc2d39d([0x61,0x74,0x6f,0x62])](_0x5ee756[_0xc2d39d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc2d39d([0x2b]))[_0xc2d39d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc2d39d([0x2f])));}function _0xb3b41f(_0x3580a6){let _0x148842=0x1505;function _0xa687c3(_0x57c88b){for(let _0x2502c7=0x0;_0x2502c7<_0x57c88b[_0xc2d39d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2502c7++){const _0x5ab1ee=_0x57c88b[_0xc2d39d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2502c7);_0x148842=(_0x148842<<0x5)+_0x148842+_0x5ab1ee,_0x148842&=_0x148842;}}function _0x3664bf(_0x4e544d){Array[_0xc2d39d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e544d)?_0x4e544d[_0xc2d39d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3664bf):_0x4e544d&&typeof _0x4e544d==_0xc2d39d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc2d39d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e544d)[_0xc2d39d([0x73,0x6f,0x72,0x74])]()[_0xc2d39d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x180e22,_0x51daa1])=>{_0xa687c3(_0x180e22),_0x3664bf(_0x51daa1);}):_0xa687c3(window[_0xc2d39d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e544d));}return _0x3664bf(_0x3580a6),_0x148842>>>0x0;}function _0x38eba7(_0x41f390){return _0x41f390[_0xc2d39d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc2d39d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc2d39d([0x30]));}function _0x2255b5(_0xa2cc3e){return _0xa2cc3e[_0xc2d39d([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc2d39d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc2d39d([0x6a,0x6f,0x69,0x6e])]('');}function _0x2bba5c(){}function _0xc2d39d(_0x32994e){return _0x32994e['map'](_0x4cea60=>String['fromCharCode'](_0x4cea60))['join']('');}_0x2364d5(await _0x1ab81f());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x38d862,{outlineDefinitions:_0x5eaf30,outlineChanges:_0x2ef43a}){this['_currentOutlineDefinitions']=_0x5eaf30,this['view']['sync'](_0x2ef43a);}['_setActiveViewItem'](_0x3b850b){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x3b850b]&&(this['view']['activeItemIndex']=_0x3b850b);}['_handleItemSelected'](_0x804789){const _0x21f8df=this['_currentOutlineDefinitions'][_0x804789]['modelElement'];this['editor']['model']['change'](_0x4484e2=>{_0x4484e2['setSelection'](_0x21f8df,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x804789);}['_updateActiveDefinitionOnViewportChange'](){const _0x48f136=this['editor'];let _0x5e9a0f;for(const _0x49f6d0 of _0x48f136['model']['document']['getRootNames']()){const _0x1e395a=_0x48f136['editing']['view']['getDomRoot'](_0x49f6d0),_0x4ed9f5=_0x1e395a&&new _0x23a9f0(_0x1e395a)['getVisible']();if(_0x4ed9f5){const _0x32cee6=new _0x23a9f0(_0x5af891['window'])['getIntersection'](_0x4ed9f5);_0x32cee6&&(_0x5e9a0f=_0x32cee6['top']+0.25*_0x32cee6['height']);}}if(void 0x0===_0x5e9a0f)return;const _0x2cd10a=v(_0x48f136['editing'],this['_currentOutlineDefinitions'],_0x5e9a0f);_0x2cd10a?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x2cd10a)):this['_setActiveViewItem'](-0x1);}}function v(_0x566671,_0x2c1c22,_0x59db16,_0x1f0a0e=0x0,_0x2c3efc=_0x2c1c22['length']-0x1){const _0x32f32d=Math['floor'](_0x1f0a0e+(_0x2c3efc-_0x1f0a0e)/0x2);if(_0x2c3efc>=_0x1f0a0e){const _0x3cffd0=_0x2c1c22[_0x32f32d],_0x41d005=_0x566671['mapper']['toViewElement'](_0x3cffd0['modelElement']);if(!_0x41d005)return null;const _0x536199=_0x566671['view']['domConverter']['mapViewToDom'](_0x41d005);return new _0x23a9f0(_0x536199)['bottom']>_0x59db16?v(_0x566671,_0x2c1c22,_0x59db16,_0x1f0a0e,_0x32f32d-0x1):v(_0x566671,_0x2c1c22,_0x59db16,_0x32f32d+0x1,_0x2c3efc);}return _0x32f32d<0x0?null:_0x2c1c22[_0x32f32d];}class DocumentOutline extends _0x5a394e{['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 _0x2ae565=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2aa1ae;for(const _0x23aff2 in _0x2ae565){const _0x13a4c0=_0x23aff2,_0x3f614f=_0x2ae565[_0x13a4c0];if('documentOutlineLicenseKeyValid'==_0x3f614f||'documentOutlineLicenseKeyInvalid'==_0x3f614f||'documentOutlineLicenseKeyExpired'==_0x3f614f||'documentOutlineLicenseKeyDomainLimit'==_0x3f614f||'documentOutlineLicenseKeyNotAllowed'==_0x3f614f||'documentOutlineLicenseKeyEvaluationLimit'==_0x3f614f||'documentOutlineLicenseKeyUsageLimit'==_0x3f614f){delete _0x2ae565[_0x13a4c0],_0x2aa1ae=_0x3f614f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x2aa1ae&&_0x2ae565['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x2aa1ae&&_0x2ae565['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x2aa1ae&&_0x2ae565['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x2aa1ae&&_0x2ae565['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x2aa1ae&&_0x2ae565['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x2aa1ae&&_0x2ae565['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends _0x3bab4a{['execute'](){this['editor']['model']['change'](_0x47dd72=>{this['editor']['model']['insertObject'](_0x47dd72['createElement']('tableOfContents'));});}['refresh'](){const _0x497934=this['editor']['model'],_0x14bf9d=_0x497934['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x14bf9d&&_0x497934['schema']['findAllowedParent'](_0x14bf9d,'tableOfContents'));}}class HeadingId extends _0x5a394e{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x6d9053=this['editor'];if(_0x6d9053['config']['get']('headingId.modelAttributeName'))return;const {viewNames:_0x5d20e1,modelNames:_0x1ee168}=function(_0x469e16){const _0x1675ff=new Set(),_0x5ddb4d=new Set();if(!_0x469e16)return{'viewNames':_0x1675ff,'modelNames':_0x5ddb4d};for(const _0x58888b of _0x469e16){if('paragraph'===_0x58888b['model'])continue;const _0x313551='string'==typeof _0x58888b['view']?_0x58888b['view']:_0x58888b['view']['name'];_0x1675ff['add'](_0x313551),_0x5ddb4d['add'](_0x58888b['model']);}return _0x1675ff['has']('h1')||(_0x1675ff['add']('h1'),_0x5ddb4d['add']('heading1')),{'viewNames':_0x1675ff,'modelNames':_0x5ddb4d};}(this['editor']['config']['get']('heading.options'));for(const _0x41b61e of _0x5d20e1)this['_customUpcastHeadingsConversion'](_0x41b61e);for(const _0x4ecc29 of _0x1ee168)this['_customDataDowncastHeadingsConversion'](_0x4ecc29),_0x6d9053['model']['schema']['isRegistered'](_0x4ecc29)&&_0x6d9053['model']['schema']['extend'](_0x4ecc29,{'allowAttributes':'headingId'});this['_registerHeadingIdAttributePostfixer'](_0x1ee168);}['_customUpcastHeadingsConversion'](_0x5503a7){this['editor']['conversion']['for']('upcast')['add'](_0x102e9d=>_0x102e9d['on']('element:'+_0x5503a7,(_0x438c0d,_0x2164fa,_0x4f20d4)=>{const {consumable:_0x77944e,writer:_0x270573}=_0x4f20d4,_0x385864=_0x2164fa['viewItem']['getAttribute']('id'),_0x492ce6=_0x2164fa['modelRange']['getContainedElement']();if(_0x492ce6)return _0x385864&&_0x385864['length']||_0x492ce6['hasAttribute']('headingId')?void(_0x77944e['consume'](_0x2164fa['viewItem'],{'attributes':['id']})&&_0x270573['setAttribute']('headingId',_0x385864,_0x492ce6)):(_0x77944e['consume'](_0x2164fa['viewItem'],{'attributes':['id']}),void _0x270573['setAttribute']('headingId',_0x4b8053(),_0x492ce6));},{'priority':_0x5b1d5a['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x46da5f){this['editor']['conversion']['for']('downcast')['add'](_0x19b1a4=>_0x19b1a4['on']('attribute:headingId:'+_0x46da5f,(_0x4ce64b,_0x4d6f37,_0x48deea)=>{if(!_0x48deea['consumable']['consume'](_0x4d6f37['item'],_0x4ce64b['name']))return;const _0x5287b6=_0x4d6f37['item']['getAttribute']('headingId'),_0x56cc89=_0x48deea['mapper']['toViewElement'](_0x4d6f37['item']);_0x48deea['writer']['setAttribute']('id',_0x5287b6,_0x56cc89);}));}['_registerHeadingIdAttributePostfixer'](_0x236464){const _0x3ae663=this['editor'],_0x256145=new Set(),_0x148761=new Set();function _0x22a263(_0x3bee6e,_0x3e19f4){const _0xd7874b=_0x4b8053();return _0x148761['add'](_0xd7874b),_0x3bee6e['setAttribute']('headingId',_0xd7874b,_0x3e19f4),_0xd7874b;}function _0x4266ed(_0x6258e7,_0x3b3b0b){_0x6258e7['removeAttribute']('headingId',_0x3b3b0b);}_0x3ae663['model']['document']['registerPostFixer'](_0x1e5db3=>{const _0x10f3e4=_0x3ae663['model']['document']['differ']['getChanges']();let _0x1e5a4f=!0x1;for(const _0x54fa8c of _0x10f3e4)if('insert'==_0x54fa8c['type']&&_0x54fa8c['name']){if(_0x236464['has'](_0x54fa8c['name'])){const _0x26c1d7=_0x54fa8c['attributes']['get']('headingId');'string'==typeof _0x26c1d7?_0x256145['has'](_0x26c1d7)?(_0x22a263(_0x1e5db3,_0x54fa8c['position']['nodeAfter']),_0x1e5a4f=!0x0):_0x148761['add'](_0x26c1d7):(_0x22a263(_0x1e5db3,_0x54fa8c['position']['nodeAfter']),_0x1e5a4f=!0x0);}else'string'==typeof _0x54fa8c['attributes']['get']('headingId')&&(_0x4266ed(_0x1e5db3,_0x54fa8c['position']['nodeAfter']),_0x1e5a4f=!0x0);}else{if('remove'==_0x54fa8c['type']){const _0x508386=_0x54fa8c['attributes']['get']('headingId');'string'==typeof _0x508386&&_0x256145['delete'](_0x508386);}}return _0x1e5a4f;}),_0x3ae663['model']['document']['on']('change',()=>{_0x148761['forEach'](_0x1d38eb=>_0x256145['add'](_0x1d38eb)),_0x148761['clear']();});}}class TableOfContentsEditing extends _0x5a394e{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4535bc,DocumentOutlineUtils,HeadingId];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x5c2a71){super(_0x5c2a71),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x1f1809=this['editor'],_0x7cb8fb=_0x1f1809['editing']['view']['document'];_0x1f1809['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x1f1809['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x7cb8fb,'click',(_0x5bc91e,_0x182fb5)=>{if(!_0x182fb5['target'])return;const _0x51692c=_0x182fb5['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x51692c)&&(_0x182fb5['domEvent']['preventDefault'](),_0x5bc91e['stop'](),this['_handleScrollToHeading'](_0x51692c));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x1f1809['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x1f1809));const _0x376ca0=_0x1f1809['config']['get']('tableOfContents.headings');if(_0x376ca0&&_0x376ca0['length'])this['listenTo'](_0x1f1809['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x376ca0),this['_updateTableOfContentsElements']();});else _0x1f1809['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x2674bf,_0x4f157f)=>{this['_currentOutlineDefinitions']=_0x4f157f['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x1f1809['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x1d6fb8){const _0x42e000=_0x593e38([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]),_0x392cfd=0x6b9b05fd,_0x4306cb=0x6b9c8e75^_0x392cfd,_0x399d58=window[_0x593e38([0x44,0x61,0x74,0x65])][_0x593e38([0x6e,0x6f,0x77])](),_0xf6efd7=_0x1d6fb8[_0x593e38([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e8923=new window[(_0x593e38([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x523b13=>{_0xf6efd7[_0x593e38([0x6f,0x6e,0x63,0x65])](_0x593e38([0x72,0x65,0x61,0x64,0x79]),_0x523b13);}),_0x5361d1={[_0x593e38([0x6b,0x74,0x79])]:_0x593e38([0x45,0x43]),[_0x593e38([0x75,0x73,0x65])]:_0x593e38([0x73,0x69,0x67]),[_0x593e38([0x63,0x72,0x76])]:_0x593e38([0x50,0x2d,0x32,0x35,0x36]),[_0x593e38([0x78])]:_0x593e38([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]),[_0x593e38([0x79])]:_0x593e38([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]),[_0x593e38([0x61,0x6c,0x67])]:_0x593e38([0x45,0x53,0x32,0x35,0x36])},_0x1c5716=_0xf6efd7[_0x593e38([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x593e38([0x67,0x65,0x74])](_0x593e38([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2fbe4e(){let _0xbff74e,_0x4827fe=null,_0x478e82=null;try{if(_0x1c5716==_0x593e38([0x47,0x50,0x4c]))return _0x593e38([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xbff74e=_0x54dae0(),!_0xbff74e)return _0x593e38([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xbff74e[_0x593e38([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x478e82=_0x32de37(_0xbff74e[_0x593e38([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xbff74e[_0x593e38([0x6a,0x74,0x69])])),await _0x4daf52()?_0xf567e2()?_0x39af7d()?_0x593e38([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d787f()?(_0xbff74e[_0x593e38([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x593e38([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4827fe=_0x4da606(_0x593e38([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x398d62()):_0x593e38([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x593e38([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x593e38([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x593e38([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x39af7d(){const _0x1ff0e2=[_0x593e38([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x593e38([0x74,0x72,0x69,0x61,0x6c])][_0x593e38([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbff74e[_0x593e38([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x399d58/0x3e8:0xe10*_0x4306cb;return _0xbff74e[_0x593e38([0x65,0x78,0x70])]<_0x1ff0e2;}function _0xf567e2(){const _0x4686ba=_0xbff74e[_0x593e38([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4686ba&&(!!_0x4686ba[_0x593e38([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593e38([0x2a]))||(!!_0x4686ba[_0x593e38([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593e38([0x54,0x4f,0x43]))||(!!_0x4686ba[_0x593e38([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593e38([0x50,0x50]))||!(!_0x4686ba[_0x593e38([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593e38([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x57cef6()))));}function _0x4d787f(){const _0x5387eb=_0xbff74e[_0x593e38([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5387eb||0x0==_0x5387eb[_0x593e38([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b84cd}=new URL(window[_0x593e38([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5387eb[_0x593e38([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b84cd))return!0x0;const _0x272bd6=_0x2b84cd[_0x593e38([0x73,0x70,0x6c,0x69,0x74])](_0x593e38([0x2e]));return _0x5387eb[_0x593e38([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b666f=>_0x1b666f[_0x593e38([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593e38([0x2a])))[_0x593e38([0x6d,0x61,0x70])](_0x1f1587=>_0x1f1587[_0x593e38([0x73,0x70,0x6c,0x69,0x74])](_0x593e38([0x2e])))[_0x593e38([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53a2df=>_0x53a2df[_0x593e38([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x272bd6[_0x593e38([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x593e38([0x6d,0x61,0x70])](_0x3a0751=>Array(_0x272bd6[_0x593e38([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a0751[_0x593e38([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x593e38([0x66,0x69,0x6c,0x6c])](_0x3a0751[0x0]===_0x593e38([0x2a])?_0x593e38([0x2a]):'')[_0x593e38([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a0751))[_0x593e38([0x73,0x6f,0x6d,0x65])](_0x243fa3=>_0x272bd6[_0x593e38([0x65,0x76,0x65,0x72,0x79])]((_0x521173,_0x458bf3)=>_0x243fa3[_0x458bf3]===_0x521173||_0x243fa3[_0x458bf3]===_0x593e38([0x2a])));}function _0x398d62(){return _0x4827fe&&_0x478e82?new window[(_0x593e38([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x161482,_0x247d50)=>{_0x4827fe[_0x593e38([0x74,0x68,0x65,0x6e])](_0x161482,_0x247d50),_0x478e82[_0x593e38([0x74,0x68,0x65,0x6e])](_0x354da4=>{_0x354da4!=_0x593e38([0x56,0x61,0x6c,0x69,0x64])&&_0x161482(_0x354da4);},_0x247d50);}):_0x4827fe||_0x478e82||_0x593e38([0x56,0x61,0x6c,0x69,0x64]);}}function _0x32de37(_0x16c195,_0x90068c){return new window[(_0x593e38([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x165c90=>{if(_0x23d947())return _0x165c90(_0x593e38([0x56,0x61,0x6c,0x69,0x64]));_0x14fd9d(),_0xf6efd7[_0x593e38([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x593e38([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d5fb0=!0x1;const _0x42a360=_0x4b8053();function _0x2ceb0d(_0x29f0c1){return!!_0x29f0c1&&(typeof _0x29f0c1===_0x593e38([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x29f0c1===_0x593e38([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x29f0c1[_0x593e38([0x74,0x68,0x65,0x6e])]===_0x593e38([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x29f0c1[_0x593e38([0x63,0x61,0x74,0x63,0x68])]===_0x593e38([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ceb31(_0x2596e5){_0x5e28fe(_0x2596e5)[_0x593e38([0x74,0x68,0x65,0x6e])](_0x135e0f=>{if(!_0x135e0f||_0x135e0f[_0x593e38([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x593e38([0x6f,0x6b]))return _0x593e38([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x55443b(_0x4d0d45(_0x42a360+_0x90068c))!=_0x135e0f[_0x593e38([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x593e38([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x593e38([0x56,0x61,0x6c,0x69,0x64]);})[_0x593e38([0x74,0x68,0x65,0x6e])](_0x413a04=>(_0x23845c(),_0x413a04),()=>{const _0x4014dc=_0x434ce2();return null==_0x4014dc?(_0x23845c(),_0x593e38([0x56,0x61,0x6c,0x69,0x64])):_0x593e38(_0x399d58-_0x4014dc>(0x4f9781fd^_0x392cfd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x593e38([0x74,0x68,0x65,0x6e])](_0x165c90)[_0x593e38([0x63,0x61,0x74,0x63,0x68])](()=>{_0x165c90(_0x593e38([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e1855=0x6badeb7d^_0x392cfd;function _0x23845c(){const _0x2fa704=_0x593e38([0x6c,0x6c,0x63,0x74,0x2d])+_0x55443b(_0x4d0d45(_0x16c195)),_0x51a210=_0x52ab59(_0x55443b(window[_0x593e38([0x4d,0x61,0x74,0x68])][_0x593e38([0x63,0x65,0x69,0x6c])](_0x399d58/_0x5e1855)));window[_0x593e38([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x593e38([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fa704,_0x51a210);}function _0x434ce2(){const _0x53a23a=_0x593e38([0x6c,0x6c,0x63,0x74,0x2d])+_0x55443b(_0x4d0d45(_0x16c195)),_0x5d3eee=window[_0x593e38([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x593e38([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53a23a);return _0x5d3eee?window[_0x593e38([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52ab59(_0x5d3eee),0x10)*_0x5e1855:null;}function _0x5e28fe(_0x24850b){return new window[(_0x593e38([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ae164,_0x2fbb6a)=>{_0x24850b[_0x593e38([0x74,0x68,0x65,0x6e])](_0x1ae164,_0x2fbb6a),window[_0x593e38([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fbb6a,0x6b9ad13d^_0x392cfd);});}}_0xf6efd7[_0x593e38([0x6f,0x6e])](_0x593e38([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x407710,_0x2bc2b5)=>{if(_0x2bc2b5[0x0]!=_0x16c195)return _0x165c90(_0x593e38([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2bc2b5[0x1]={..._0x2bc2b5[0x1],[_0x593e38([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x42a360};},{[_0x593e38([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x593e38([0x68,0x69,0x67,0x68])}),_0xf6efd7[_0x593e38([0x6f,0x6e])](_0x593e38([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c2e90=>{_0x2ceb0d(_0x4c2e90[_0x593e38([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d5fb0=!0x0,_0x4ceb31(_0x4c2e90[_0x593e38([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x593e38([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x593e38([0x6c,0x6f,0x77])}),_0x3e8923[_0x593e38([0x74,0x68,0x65,0x6e])](()=>{_0x1d5fb0||_0x165c90(_0x593e38([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23d947(){return _0xf6efd7[_0x593e38([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x593e38([0x76,0x69,0x65,0x77])][_0x593e38([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x593e38([0x61,0x75,0x74,0x6f]);}function _0x14fd9d(){_0xf6efd7[_0x593e38([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x593e38([0x76,0x69,0x65,0x77])][_0x593e38([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x593e38([0x61,0x75,0x74,0x6f]);}}function _0x4da606(_0x4c0f0e){const _0x45da3f=[new window[(_0x593e38([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a98fa=>setTimeout(_0x5a98fa,0x6b923b31^_0x392cfd)),_0x3e8923[_0x593e38([0x74,0x68,0x65,0x6e])](()=>new window[(_0x593e38([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x446ab8=>{let _0x43f0f0=0x0;_0xf6efd7[_0x593e38([0x6d,0x6f,0x64,0x65,0x6c])][_0x593e38([0x6f,0x6e])](_0x593e38([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x433c9b,_0x5ce7ff)=>{_0x5ce7ff[0x0][_0x593e38([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43f0f0++,_0x43f0f0==(0x6b9b0015^_0x392cfd)&&(_0x446ab8(),_0x433c9b[_0x593e38([0x6f,0x66,0x66])]());});}))];return window[_0x593e38([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x593e38([0x72,0x61,0x63,0x65])](_0x45da3f)[_0x593e38([0x74,0x68,0x65,0x6e])](()=>_0x4c0f0e);}async function _0x4c60bc(){await _0x3e8923,_0xf6efd7[_0x593e38([0x6d,0x6f,0x64,0x65,0x6c])][_0x593e38([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5f550f,_0xf6efd7[_0x593e38([0x6d,0x6f,0x64,0x65,0x6c])][_0x593e38([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5f550f,_0xf6efd7[_0x593e38([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x593e38([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x57cef6(){return window[_0x593e38([0x67,0x6c,0x6f,0x62])]&&window[_0x593e38([0x67,0x6c,0x6f,0x62])][_0x593e38([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x5f2315(_0x2708e8){const _0x2dad55=_0x5ae081();_0xf6efd7[_0x2dad55]=_0x593e38([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])+_0x2708e8,_0x2708e8!=_0x593e38([0x56,0x61,0x6c,0x69,0x64])&&_0x4c60bc();}function _0x5ae081(){const _0x473a17=window[_0x593e38([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x593e38([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x593e38([0x6e,0x6f,0x77])]())[_0x593e38([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x593e38([0x2e]),'');let _0x2f0746=_0x593e38([0x6d]);for(let _0x47ddcf=0x0;_0x47ddcf<_0x473a17[_0x593e38([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47ddcf+=0x2){let _0x55dd5b=window[_0x593e38([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x473a17[_0x593e38([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47ddcf,_0x47ddcf+0x2));_0x55dd5b>=_0x42e000[_0x593e38([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55dd5b-=_0x42e000[_0x593e38([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f0746+=_0x42e000[_0x55dd5b];}return _0x2f0746;}function _0x54dae0(){const _0x3815af=_0x1c5716[_0x593e38([0x73,0x70,0x6c,0x69,0x74])](_0x593e38([0x2e]));if(0x3!=_0x3815af[_0x593e38([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc13bae(_0x3815af[0x1]);function _0xc13bae(_0x3aec7d){const _0x2284e8=_0x333304(_0x3aec7d);return _0x2284e8&&_0x254cad()?_0x2284e8:null;function _0x254cad(){const _0x4b9675=_0x2284e8[_0x593e38([0x6a,0x74,0x69])],_0x33b5c6=window[_0x593e38([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b9675[_0x593e38([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b9675[_0x593e38([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x32ac78={..._0x2284e8,[_0x593e38([0x6a,0x74,0x69])]:_0x4b9675[_0x593e38([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b9675[_0x593e38([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x32ac78[_0x593e38([0x76,0x63])],_0x4d0d45(_0x32ac78)==_0x33b5c6;}}}async function _0x4daf52(){let _0x13f347=!0x0;try{const _0x2289bd=_0x1c5716[_0x593e38([0x73,0x70,0x6c,0x69,0x74])](_0x593e38([0x2e])),[_0x495405,_0x427740,_0x1253e6]=_0x2289bd;return _0x294724(_0x495405),await _0x5aaf79(_0x495405,_0x427740,_0x1253e6),_0x13f347;}catch{return!0x1;}function _0x294724(_0x3ac7e7){const _0x53a17b=_0x333304(_0x3ac7e7);_0x53a17b&&_0x53a17b[_0x593e38([0x61,0x6c,0x67])]==_0x593e38([0x45,0x53,0x32,0x35,0x36])||(_0x13f347=!0x1);}async function _0x5aaf79(_0x5c5180,_0x355bc2,_0x47097d){const _0x18d88e=window[_0x593e38([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x593e38([0x66,0x72,0x6f,0x6d])](_0x233fde(_0x47097d),_0x1c8a09=>_0x1c8a09[_0x593e38([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x398031=new window[(_0x593e38([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x593e38([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c5180+_0x593e38([0x2e])+_0x355bc2),_0x47fddc=window[_0x593e38([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x593e38([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47fddc)return;const _0x30ada1=await _0x47fddc[_0x593e38([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x593e38([0x6a,0x77,0x6b]),_0x5361d1,{[_0x593e38([0x6e,0x61,0x6d,0x65])]:_0x593e38([0x45,0x43,0x44,0x53,0x41]),[_0x593e38([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x593e38([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x593e38([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47fddc[_0x593e38([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x593e38([0x6e,0x61,0x6d,0x65])]:_0x593e38([0x45,0x43,0x44,0x53,0x41]),[_0x593e38([0x68,0x61,0x73,0x68])]:{[_0x593e38([0x6e,0x61,0x6d,0x65])]:_0x593e38([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30ada1,_0x18d88e,_0x398031)||(_0x13f347=!0x1);}}function _0x333304(_0x33be64){return _0x33be64[_0x593e38([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x593e38([0x65,0x79]))?JSON[_0x593e38([0x70,0x61,0x72,0x73,0x65])](_0x233fde(_0x33be64)):null;}function _0x233fde(_0x131cb5){return window[_0x593e38([0x61,0x74,0x6f,0x62])](_0x131cb5[_0x593e38([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x593e38([0x2b]))[_0x593e38([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x593e38([0x2f])));}function _0x4d0d45(_0x2f0ae6){let _0x1a5286=0x1505;function _0x5e340d(_0x596ce3){for(let _0xcc6055=0x0;_0xcc6055<_0x596ce3[_0x593e38([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcc6055++){const _0x476392=_0x596ce3[_0x593e38([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xcc6055);_0x1a5286=(_0x1a5286<<0x5)+_0x1a5286+_0x476392,_0x1a5286&=_0x1a5286;}}function _0x5356d3(_0x36e605){Array[_0x593e38([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36e605)?_0x36e605[_0x593e38([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5356d3):_0x36e605&&typeof _0x36e605==_0x593e38([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x593e38([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36e605)[_0x593e38([0x73,0x6f,0x72,0x74])]()[_0x593e38([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c8f8c,_0x5757be])=>{_0x5e340d(_0x1c8f8c),_0x5356d3(_0x5757be);}):_0x5e340d(window[_0x593e38([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36e605));}return _0x5356d3(_0x2f0ae6),_0x1a5286>>>0x0;}function _0x55443b(_0x1eefb1){return _0x1eefb1[_0x593e38([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x593e38([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x593e38([0x30]));}function _0x52ab59(_0xa952d7){return _0xa952d7[_0x593e38([0x73,0x70,0x6c,0x69,0x74])]('')[_0x593e38([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x593e38([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f550f(){}function _0x593e38(_0x3b02f8){return _0x3b02f8['map'](_0x5449ec=>String['fromCharCode'](_0x5449ec))['join']('');}_0x5f2315(await _0x2fbe4e());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x2fcd4b=>{'$graveyard'!==_0x2fcd4b['rootName']&&this['editor']['editing']['reconvertItem'](_0x2fcd4b);});}['_trackNewToCElements'](){for(const _0x2950c2 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x2950c2['type']||'tableOfContents'!==_0x2950c2['name'])return;this['_tableOfContentsElements']['add'](_0x2950c2['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x19882){const _0x24ded7=this['editor'],_0x28794e=[];for(const _0x22b3f3 of _0x24ded7['model']['document']['getRootNames']())_0x56f31e(_0x24ded7['model']['document']['getRoot'](_0x22b3f3));function _0x56f31e(_0x3f376b){for(const _0x8a7754 of _0x3f376b['getChildren']())_0x8a7754['is']('element')&&(_0x19882['includes'](_0x8a7754['name'])&&_0x28794e['push']({'level':_0x19882['indexOf'](_0x8a7754['name'])+0x1,'text':I(_0x8a7754),'modelElement':_0x8a7754}),_0x56f31e(_0x8a7754));}return _0x28794e;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x55f648=this['editor']['conversion'];_0x55f648['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x55f648['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x436c9f,{writer:_0x523a3e})=>this['_createTableOfContents'](_0x523a3e,!0x0)}),_0x55f648['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x119691,{writer:_0x4b4562})=>{this['_tableOfContentsElements']['add'](_0x119691);const _0x228447=this['_createTableOfContents'](_0x4b4562);return _0xf54338(_0x228447,_0x4b4562,{'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'](_0x2c53a8,_0x56291b=!0x1){const {locale:_0x5bc3a0}=this['editor'],_0x215752=_0x2c53a8['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x56291b&&{'data-table-of-contents-label':C(_0x5bc3a0,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x56291b&&_0x2c53a8['insert'](_0x2c53a8['createPositionAt'](_0x215752,'end'),_0x2c53a8['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x2c53a8['createText'](C(_0x5bc3a0,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x420722=_0x56291b?'':'['+C(_0x5bc3a0,'Empty\x20heading')+']';let _0x53f42b=_0x215752;return this['_currentOutlineDefinitions']['forEach']((_0x114b3e,_0x4b5338,_0xff4e7)=>{const _0x119e01=this['editor']['model']['hasContent'](_0x114b3e['modelElement'],{'ignoreWhitespaces':!0x0}),_0x34e513=_0x119e01?_0x114b3e['text']:_0x420722,_0xe68073=_0x114b3e['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x1949e7=_0x2c53a8['createContainerElement']('a',{'href':'#'+_0xe68073,...!_0x56291b&&{'tabindex':'-1'}},[_0x2c53a8['createText'](_0x34e513)]),_0x4e8b5c=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x2c53a8['setCustomProperty']('tableOfContentsHeadingIndex',_0x4b5338,_0x1949e7);const _0x1826f1=_0x2c53a8['createContainerElement']('li',null,[_0x119e01||!_0x56291b&&_0x4e8b5c?_0x1949e7:_0x2c53a8['createText']('')]),_0x123664=_0x4b5338?_0xff4e7[_0x4b5338-0x1]['level']:0x0,_0x4aca23=Math['abs'](_0x114b3e['level']-_0x123664);if(_0x114b3e['level']>_0x123664){const _0x429d9b=_(_0x1826f1,_0x4aca23,_0x2c53a8);_0x2c53a8['insert'](_0x2c53a8['createPositionAt'](_0x53f42b,'end'),_0x429d9b);}else{const _0x18c417=function(_0x34877b,_0x2c7dfe){return _0x34877b['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x4e4f88=>_0x4e4f88['is']('element','ol'))[_0x2c7dfe];}(_0x53f42b,_0x4aca23);_0x2c53a8['insert'](_0x2c53a8['createPositionAt'](_0x18c417,'end'),_0x1826f1);}_0x53f42b=_0x1826f1;}),_0x215752;}['_handleScrollToHeading'](_0x5d13df){const _0x421e06=this['_currentOutlineDefinitions'][_0x5d13df]['modelElement'];this['editor']['model']['change'](_0x2a1a71=>{_0x2a1a71['setSelection'](_0x421e06,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x1c0f9e,_0x4da4f5)=>{const _0x1b2a93=_0x4da4f5['mapper'],_0x51ba83=_0x1b2a93['findMappedViewAncestor'](_0x4da4f5['viewPosition']),_0x262e41=_0x1b2a93['toModelElement'](_0x51ba83);_0x262e41['is']('element','tableOfContents')&&(_0x4da4f5['modelPosition']=this['editor']['model']['createPositionAt'](_0x262e41,0x0),_0x1c0f9e['stop']());};}}function _(_0x137768,_0x16661f,_0x3e13c3){return 0x1===_0x16661f?_0x3e13c3['createContainerElement']('ol',null,[_0x137768]):_0x3e13c3['createContainerElement']('ol',null,[_0x3e13c3['createContainerElement']('li',null,[_(_0x137768,_0x16661f-0x1,_0x3e13c3)])]);}class TableOfContentsUI extends _0x5a394e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4cf789=this['editor'];_0x4cf789['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x1e9a7c=this['_createButton'](_0x4b3af8);return _0x1e9a7c['tooltip']=!0x0,_0x1e9a7c;}),_0x4cf789['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x25bcc9)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x20dbc2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3053a4;for(const _0x730ef2 in _0x20dbc2){const _0x5b6921=_0x730ef2,_0x4eb81f=_0x20dbc2[_0x5b6921];if('tableOfContentsLicenseKeyValid'==_0x4eb81f||'tableOfContentsLicenseKeyInvalid'==_0x4eb81f||'tableOfContentsLicenseKeyExpired'==_0x4eb81f||'tableOfContentsLicenseKeyDomainLimit'==_0x4eb81f||'tableOfContentsLicenseKeyNotAllowed'==_0x4eb81f||'tableOfContentsLicenseKeyEvaluationLimit'==_0x4eb81f||'tableOfContentsLicenseKeyUsageLimit'==_0x4eb81f){delete _0x20dbc2[_0x5b6921],_0x3053a4=_0x4eb81f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x3053a4&&_0x20dbc2['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x3053a4&&_0x20dbc2['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x3053a4&&_0x20dbc2['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x3053a4&&_0x20dbc2['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x3053a4&&_0x20dbc2['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x3053a4&&_0x20dbc2['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x50293a){const _0x1afcb1=this['editor'],_0x36e1bd=_0x1afcb1['locale'],_0x2b5999=_0x1afcb1['commands']['get']('insertTableOfContents'),_0x226057=new _0x50293a(_0x36e1bd);return _0x226057['set']({'label':C(_0x36e1bd,'Table\x20of\x20contents'),'icon':_0x5e17fa}),_0x226057['bind']('isEnabled')['to'](_0x2b5999,'isEnabled'),this['listenTo'](_0x226057,'execute',()=>{_0x1afcb1['execute']('insertTableOfContents'),_0x1afcb1['editing']['view']['focus']();}),_0x226057;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContents extends _0x5a394e{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 _0x350d08,Command as _0x840ac0}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x59b044,throttle as _0x18f7d1}from'es-toolkit/compat';import{ModelText as _0x202226,ModelTreeWalker as _0x4fec7a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0xa980fd,diffToChanges as _0x4a72aa,scrollAncestorsToShowTarget as _0x399d31,CKEditorError as _0x32cee4,global as _0x1e1964,Rect as _0x520063,uid as _0x3978bb,priorities as _0x44134d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x2fe9a5,ButtonView as _0xd7cece,MenuBarMenuListItemButtonView as _0x1342a8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x2499fe,toWidget as _0x520f5b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x2d4f2b}from'@ckeditor/ckeditor5-icons/dist/index.js';function I(_0x32e4cd){let _0x887f5='';for(const _0x5f1265 of _0x32e4cd['getChildren']())_0x5f1265 instanceof _0x202226&&(_0x887f5+=_0x5f1265['data']);return _0x887f5;}class DocumentOutlineUtils extends _0x350d08{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x3c3a23=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x2d330a=[];_0x3c3a23['model']['document']['on']('change',_0x59b044(()=>{const _0x451955=_0x2d330a;_0x2d330a=this['_getOutlineDefinitions']();const _0x198b4d=_0xa980fd(_0x451955,_0x2d330a,(_0x38d714,_0x3aeb6b)=>_0x38d714['level']===_0x3aeb6b['level']&&_0x38d714['text']===_0x3aeb6b['text']&&_0x38d714['modelElement']===_0x3aeb6b['modelElement']),_0x3d9157=_0x4a72aa(_0x198b4d,_0x2d330a),_0x1f9aed=this['_getActiveHeading'](),_0x2e72dc=_0x2d330a['findIndex'](_0x672703=>_0x672703['modelElement']===_0x1f9aed);_0x3d9157['length']&&this['fire']('change',{'outlineDefinitions':_0x2d330a,'activeItemIndex':_0x2e72dc,'outlineChanges':_0x3d9157}),this['fire']('activeItemIndex',{'index':_0x2e72dc});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x4ba75d=this['editor'],_0x94b445=[],_0x4c014f=this['_headingNames'];for(const _0x34b0cc of _0x4ba75d['model']['document']['getRootNames']())_0x46ad18(_0x4ba75d['model']['document']['getRoot'](_0x34b0cc));function _0x46ad18(_0x2bbd29){for(const _0x51cb91 of _0x2bbd29['getChildren']())_0x51cb91['is']('element')&&(_0x4c014f['includes'](_0x51cb91['name'])&&_0x94b445['push']({'level':_0x4c014f['indexOf'](_0x51cb91['name'])+0x1,'text':I(_0x51cb91),'modelElement':_0x51cb91}),_0x46ad18(_0x51cb91));}return _0x94b445;}['_getActiveHeading'](){const _0x381480=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x1419e4=new _0x4fec7a({'direction':'backward','startPosition':_0x381480});for(const _0x8e4f8a of _0x1419e4)if(_0x8e4f8a['item']['is']('element')&&this['_headingNames']['includes'](_0x8e4f8a['item']['name']))return _0x8e4f8a['item'];}['_getHeadingNames'](){const _0x41337c=this['editor']['config']['get']('documentOutline.headings');return _0x41337c||function(_0x5642ec){const _0x28d3af=_0x5642ec['config']['get']('heading.options');return _0x28d3af?_0x28d3af['reduce']((_0x31d340,_0x30df62)=>('paragraph'!==_0x30df62['model']&&_0x31d340['push'](_0x30df62['model']),_0x31d340),[]):_0x5642ec['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x362b68=this['editor'],_0x3dfb0d=['h1','h2','h3','h4','h5','h6'],_0x4eec14=[];for(const _0x180fb2 of _0x3dfb0d){const _0x55bb41=_0x362b68['editing']['view']['domConverter']['domToView'](document['createElement'](_0x180fb2)),_0x223cfb=_0x362b68['data']['toModel'](_0x55bb41)['getChild'](0x0);_0x223cfb?.['is']('element')&&_0x4eec14['push'](_0x223cfb['name']);}this['_headingNames']=_0x4eec14;}}function C(_0x15f455,_0x2f891d){const t=_0x15f455['t'];switch(_0x2f891d){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 _0x2f891d;}}class DocumentOutlineItemView extends _0x2fe9a5{constructor(_0x1aa8c3,_0x2a8a7e=!0x1){super(_0x1aa8c3);const _0x13691f=this['bindTemplate'],_0x2a874a=_0x2a8a7e?'['+C(_0x1aa8c3,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x526943=>!_0x526943),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x13691f['to']('level',_0x1550c2=>'ck-document-outline__item_level-'+_0x1550c2),_0x13691f['if']('isActive','ck-document-outline__item_active'),_0x13691f['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x13691f['to']('text')},'children':[{'text':_0x13691f['to']('text',_0xcfd550=>_0xcfd550||_0x2a874a)}],'on':{'click':_0x13691f['to']('click')}});}}class DocumentOutlineView extends _0x2fe9a5{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x506e49,_0x33cede=!0x1,_0x53264a){super(_0x506e49),this['showEmptyHeadingText']=_0x33cede,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x53264a,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x5a0ace,_0x1dfff2,_0x4e1a3a,_0x4d86c9)=>{this['_setActiveItem'](_0x4d86c9,_0x4e1a3a);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x506e49['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x506e49,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x59cd03){_0x59cd03['forEach'](_0x5f2107=>{'insert'==_0x5f2107['type']?this['_insertItem'](_0x5f2107['index'],..._0x5f2107['values']):'delete'==_0x5f2107['type']&&this['_deleteItem'](_0x5f2107['index'],_0x5f2107['howMany']);});}['_setActiveItem'](_0x4fce4a,_0x38600a){if(-0x1!==_0x4fce4a){const _0x433829=this['items']['get'](_0x4fce4a);_0x433829&&(_0x433829['isActive']=!0x1);}-0x1!==_0x38600a&&(this['items']['get'](_0x38600a)['isActive']=!0x0,this['_scrollToItem'](_0x38600a));}['_insertItem'](_0x3e8003,..._0x3f7beb){const _0x10c6e7=_0x3f7beb['map']((_0x1b3819,_0x1e1fe1)=>{const _0x36a728=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0x36a728['text']=_0x1b3819['text'],_0x36a728['level']=_0x1b3819['level'],_0x3e8003+_0x1e1fe1===this['activeItemIndex']&&(_0x36a728['isActive']=!0x0),_0x36a728;});this['items']['addMany'](_0x10c6e7,_0x3e8003);}['_deleteItem'](_0x23178d,_0x3ef36b){do{this['items']['remove'](_0x23178d);}while(--_0x3ef36b);}['_handleItemClick'](_0xfd3723){const _0x52ace6=this['items']['getIndex'](_0xfd3723['source']);this['fire']('itemSelected',_0x52ace6);}['_scrollToItem'](_0x532645){_0x399d31(this['items']['get'](_0x532645)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class DocumentOutlineUI extends _0x350d08{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17a093){super(_0x17a093),this['view']=new DocumentOutlineView(_0x17a093['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x18f7d1(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x4879fb=this['editor'],_0x43b438=_0x4879fb['plugins']['get']('DocumentOutlineUtils');let _0x3601a1=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x4879fb['config']['get']('documentOutline.container'))throw new _0x32cee4('document-outline-container-not-provided',{'editor':_0x4879fb});_0x4879fb['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x43b438['on']('change',this['_handleOutlineChange']['bind'](this)),_0x43b438['on']('activeItemIndex',(_0x5109c9,{index:_0x632f0b})=>this['_setActiveViewItem'](_0x632f0b)),this['view']['on']('itemSelected',(_0xd78ad9,_0x37d9ba)=>{_0x3601a1=!0x0,this['_handleItemSelected'](_0x37d9ba);}),this['view']['listenTo'](_0x1e1964['document'],'scroll',()=>{_0x3601a1?_0x3601a1=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x1e1964['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x291612){const _0x17a2ad=_0x554bb5([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]),_0x2bb7e4=0x1cb264a3,_0xa4f4c9=0x1cb5ef1b^_0x2bb7e4,_0x46f6a5=window[_0x554bb5([0x44,0x61,0x74,0x65])][_0x554bb5([0x6e,0x6f,0x77])](),_0x3358ce=_0x291612[_0x554bb5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4e01cf=new window[(_0x554bb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52f352=>{_0x3358ce[_0x554bb5([0x6f,0x6e,0x63,0x65])](_0x554bb5([0x72,0x65,0x61,0x64,0x79]),_0x52f352);}),_0x52006e={[_0x554bb5([0x6b,0x74,0x79])]:_0x554bb5([0x45,0x43]),[_0x554bb5([0x75,0x73,0x65])]:_0x554bb5([0x73,0x69,0x67]),[_0x554bb5([0x63,0x72,0x76])]:_0x554bb5([0x50,0x2d,0x32,0x35,0x36]),[_0x554bb5([0x78])]:_0x554bb5([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]),[_0x554bb5([0x79])]:_0x554bb5([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]),[_0x554bb5([0x61,0x6c,0x67])]:_0x554bb5([0x45,0x53,0x32,0x35,0x36])},_0x204453=_0x3358ce[_0x554bb5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x554bb5([0x67,0x65,0x74])](_0x554bb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40edc6(){let _0x3b8df5,_0x104647=null,_0x13fbd0=null;try{if(_0x204453==_0x554bb5([0x47,0x50,0x4c]))return _0x554bb5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b8df5=_0x4e44e5(),!_0x3b8df5)return _0x554bb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b8df5[_0x554bb5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13fbd0=_0x8722a0(_0x3b8df5[_0x554bb5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b8df5[_0x554bb5([0x6a,0x74,0x69])])),await _0x544e18()?_0x1bd4fc()?_0x4e74ab()?_0x554bb5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd1ec97()?(_0x3b8df5[_0x554bb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x554bb5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x104647=_0x312178(_0x554bb5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x382989()):_0x554bb5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x554bb5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x554bb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x554bb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e74ab(){const _0xf6daea=[_0x554bb5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x554bb5([0x74,0x72,0x69,0x61,0x6c])][_0x554bb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8df5[_0x554bb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x46f6a5/0x3e8:0xe10*_0xa4f4c9;return _0x3b8df5[_0x554bb5([0x65,0x78,0x70])]<_0xf6daea;}function _0x1bd4fc(){const _0x42241d=_0x3b8df5[_0x554bb5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42241d&&(!!_0x42241d[_0x554bb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x554bb5([0x2a]))||(!!_0x42241d[_0x554bb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x554bb5([0x44,0x4f]))||(!!_0x42241d[_0x554bb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x554bb5([0x50,0x50]))||!(!_0x42241d[_0x554bb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x554bb5([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x5c5f0f()))));}function _0xd1ec97(){const _0x23c327=_0x3b8df5[_0x554bb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23c327||0x0==_0x23c327[_0x554bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35bb1b}=new URL(window[_0x554bb5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x23c327[_0x554bb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35bb1b))return!0x0;const _0x4a894b=_0x35bb1b[_0x554bb5([0x73,0x70,0x6c,0x69,0x74])](_0x554bb5([0x2e]));return _0x23c327[_0x554bb5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xca8caa=>_0xca8caa[_0x554bb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x554bb5([0x2a])))[_0x554bb5([0x6d,0x61,0x70])](_0x348af3=>_0x348af3[_0x554bb5([0x73,0x70,0x6c,0x69,0x74])](_0x554bb5([0x2e])))[_0x554bb5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c8ea5=>_0x2c8ea5[_0x554bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4a894b[_0x554bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x554bb5([0x6d,0x61,0x70])](_0x1043ca=>Array(_0x4a894b[_0x554bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1043ca[_0x554bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x554bb5([0x66,0x69,0x6c,0x6c])](_0x1043ca[0x0]===_0x554bb5([0x2a])?_0x554bb5([0x2a]):'')[_0x554bb5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1043ca))[_0x554bb5([0x73,0x6f,0x6d,0x65])](_0x230b5d=>_0x4a894b[_0x554bb5([0x65,0x76,0x65,0x72,0x79])]((_0x16f3a3,_0x444989)=>_0x230b5d[_0x444989]===_0x16f3a3||_0x230b5d[_0x444989]===_0x554bb5([0x2a])));}function _0x382989(){return _0x104647&&_0x13fbd0?new window[(_0x554bb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x116332,_0x2e0f79)=>{_0x104647[_0x554bb5([0x74,0x68,0x65,0x6e])](_0x116332,_0x2e0f79),_0x13fbd0[_0x554bb5([0x74,0x68,0x65,0x6e])](_0x1b4d80=>{_0x1b4d80!=_0x554bb5([0x56,0x61,0x6c,0x69,0x64])&&_0x116332(_0x1b4d80);},_0x2e0f79);}):_0x104647||_0x13fbd0||_0x554bb5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x8722a0(_0x365782,_0x1ed3ab){return new window[(_0x554bb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5020f5=>{if(_0x4b636b())return _0x5020f5(_0x554bb5([0x56,0x61,0x6c,0x69,0x64]));_0x449f0d(),_0x3358ce[_0x554bb5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x554bb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b08ac=!0x1;const _0x3bd48f=_0x3978bb();function _0x5d688e(_0x13c649){return!!_0x13c649&&(typeof _0x13c649===_0x554bb5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x13c649===_0x554bb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x13c649[_0x554bb5([0x74,0x68,0x65,0x6e])]===_0x554bb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x13c649[_0x554bb5([0x63,0x61,0x74,0x63,0x68])]===_0x554bb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18c7ba(_0xe5b55e){_0x1ad788(_0xe5b55e)[_0x554bb5([0x74,0x68,0x65,0x6e])](_0x47888e=>{if(!_0x47888e||_0x47888e[_0x554bb5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x554bb5([0x6f,0x6b]))return _0x554bb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x55e2f4(_0x13f8e1(_0x3bd48f+_0x1ed3ab))!=_0x47888e[_0x554bb5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x554bb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x554bb5([0x56,0x61,0x6c,0x69,0x64]);})[_0x554bb5([0x74,0x68,0x65,0x6e])](_0x1feb1e=>(_0x4bfd4a(),_0x1feb1e),()=>{const _0x41667e=_0x5c98af();return null==_0x41667e?(_0x4bfd4a(),_0x554bb5([0x56,0x61,0x6c,0x69,0x64])):_0x554bb5(_0x46f6a5-_0x41667e>(0x38bee0a3^_0x2bb7e4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x554bb5([0x74,0x68,0x65,0x6e])](_0x5020f5)[_0x554bb5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5020f5(_0x554bb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb1630d=0x1c848a23^_0x2bb7e4;function _0x4bfd4a(){const _0x564960=_0x554bb5([0x6c,0x6c,0x63,0x74,0x2d])+_0x55e2f4(_0x13f8e1(_0x365782)),_0x18041a=_0x3cd429(_0x55e2f4(window[_0x554bb5([0x4d,0x61,0x74,0x68])][_0x554bb5([0x63,0x65,0x69,0x6c])](_0x46f6a5/_0xb1630d)));window[_0x554bb5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x554bb5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x564960,_0x18041a);}function _0x5c98af(){const _0x3d3b96=_0x554bb5([0x6c,0x6c,0x63,0x74,0x2d])+_0x55e2f4(_0x13f8e1(_0x365782)),_0x350a6b=window[_0x554bb5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x554bb5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d3b96);return _0x350a6b?window[_0x554bb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cd429(_0x350a6b),0x10)*_0xb1630d:null;}function _0x1ad788(_0x2f4d5f){return new window[(_0x554bb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x369149,_0x34bb3f)=>{_0x2f4d5f[_0x554bb5([0x74,0x68,0x65,0x6e])](_0x369149,_0x34bb3f),window[_0x554bb5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34bb3f,0x1cb3b063^_0x2bb7e4);});}}_0x3358ce[_0x554bb5([0x6f,0x6e])](_0x554bb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x116046,_0xeab5af)=>{if(_0xeab5af[0x0]!=_0x365782)return _0x5020f5(_0x554bb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xeab5af[0x1]={..._0xeab5af[0x1],[_0x554bb5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3bd48f};},{[_0x554bb5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x554bb5([0x68,0x69,0x67,0x68])}),_0x3358ce[_0x554bb5([0x6f,0x6e])](_0x554bb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42a254=>{_0x5d688e(_0x42a254[_0x554bb5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b08ac=!0x0,_0x18c7ba(_0x42a254[_0x554bb5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x554bb5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x554bb5([0x6c,0x6f,0x77])}),_0x4e01cf[_0x554bb5([0x74,0x68,0x65,0x6e])](()=>{_0x1b08ac||_0x5020f5(_0x554bb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b636b(){return _0x3358ce[_0x554bb5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x554bb5([0x76,0x69,0x65,0x77])][_0x554bb5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x554bb5([0x61,0x75,0x74,0x6f]);}function _0x449f0d(){_0x3358ce[_0x554bb5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x554bb5([0x76,0x69,0x65,0x77])][_0x554bb5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x554bb5([0x61,0x75,0x74,0x6f]);}}function _0x312178(_0x140825){const _0x1baf40=[new window[(_0x554bb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c6d09=>setTimeout(_0x3c6d09,0x1cbb5a6f^_0x2bb7e4)),_0x4e01cf[_0x554bb5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x554bb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x447cb2=>{let _0x53f5d7=0x0;_0x3358ce[_0x554bb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x554bb5([0x6f,0x6e])](_0x554bb5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d21bb,_0x518769)=>{_0x518769[0x0][_0x554bb5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x53f5d7++,_0x53f5d7==(0x1cb2614b^_0x2bb7e4)&&(_0x447cb2(),_0x5d21bb[_0x554bb5([0x6f,0x66,0x66])]());});}))];return window[_0x554bb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x554bb5([0x72,0x61,0x63,0x65])](_0x1baf40)[_0x554bb5([0x74,0x68,0x65,0x6e])](()=>_0x140825);}async function _0x2fa149(){await _0x4e01cf,_0x3358ce[_0x554bb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x554bb5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c2f02,_0x3358ce[_0x554bb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x554bb5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c2f02,_0x3358ce[_0x554bb5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x554bb5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c5f0f(){return window[_0x554bb5([0x67,0x6c,0x6f,0x62])]&&window[_0x554bb5([0x67,0x6c,0x6f,0x62])][_0x554bb5([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x5b932b(_0x24ae04){const _0x1cb534=_0x9198ef();_0x3358ce[_0x1cb534]=_0x554bb5([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])+_0x24ae04,_0x24ae04!=_0x554bb5([0x56,0x61,0x6c,0x69,0x64])&&_0x2fa149();}function _0x9198ef(){const _0x2b5c3d=window[_0x554bb5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x554bb5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x554bb5([0x6e,0x6f,0x77])]())[_0x554bb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x554bb5([0x2e]),'');let _0x1dc72d=_0x554bb5([0x61]);for(let _0x312d1f=0x0;_0x312d1f<_0x2b5c3d[_0x554bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x312d1f+=0x2){let _0x3fbcd1=window[_0x554bb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b5c3d[_0x554bb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x312d1f,_0x312d1f+0x2));_0x3fbcd1>=_0x17a2ad[_0x554bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3fbcd1-=_0x17a2ad[_0x554bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1dc72d+=_0x17a2ad[_0x3fbcd1];}return _0x1dc72d;}function _0x4e44e5(){const _0x1e6850=_0x204453[_0x554bb5([0x73,0x70,0x6c,0x69,0x74])](_0x554bb5([0x2e]));if(0x3!=_0x1e6850[_0x554bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31cf81(_0x1e6850[0x1]);function _0x31cf81(_0x19fc52){const _0x14c283=_0x1e1cba(_0x19fc52);return _0x14c283&&_0x7e0a9e()?_0x14c283:null;function _0x7e0a9e(){const _0x24d966=_0x14c283[_0x554bb5([0x6a,0x74,0x69])],_0x58ed65=window[_0x554bb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24d966[_0x554bb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24d966[_0x554bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e1553={..._0x14c283,[_0x554bb5([0x6a,0x74,0x69])]:_0x24d966[_0x554bb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24d966[_0x554bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e1553[_0x554bb5([0x76,0x63])],_0x13f8e1(_0x2e1553)==_0x58ed65;}}}async function _0x544e18(){let _0x4cd9f7=!0x0;try{const _0x21fd68=_0x204453[_0x554bb5([0x73,0x70,0x6c,0x69,0x74])](_0x554bb5([0x2e])),[_0x16b57c,_0x242285,_0x5cd4e4]=_0x21fd68;return _0x68a316(_0x16b57c),await _0x346443(_0x16b57c,_0x242285,_0x5cd4e4),_0x4cd9f7;}catch{return!0x1;}function _0x68a316(_0x553dea){const _0x5cb101=_0x1e1cba(_0x553dea);_0x5cb101&&_0x5cb101[_0x554bb5([0x61,0x6c,0x67])]==_0x554bb5([0x45,0x53,0x32,0x35,0x36])||(_0x4cd9f7=!0x1);}async function _0x346443(_0x24f372,_0x2bdb5a,_0x4d0e4c){const _0x532a7c=window[_0x554bb5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x554bb5([0x66,0x72,0x6f,0x6d])](_0x468d94(_0x4d0e4c),_0x17d6ed=>_0x17d6ed[_0x554bb5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4942e3=new window[(_0x554bb5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x554bb5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24f372+_0x554bb5([0x2e])+_0x2bdb5a),_0x4e2a73=window[_0x554bb5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x554bb5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e2a73)return;const _0x272e68=await _0x4e2a73[_0x554bb5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x554bb5([0x6a,0x77,0x6b]),_0x52006e,{[_0x554bb5([0x6e,0x61,0x6d,0x65])]:_0x554bb5([0x45,0x43,0x44,0x53,0x41]),[_0x554bb5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x554bb5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x554bb5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e2a73[_0x554bb5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x554bb5([0x6e,0x61,0x6d,0x65])]:_0x554bb5([0x45,0x43,0x44,0x53,0x41]),[_0x554bb5([0x68,0x61,0x73,0x68])]:{[_0x554bb5([0x6e,0x61,0x6d,0x65])]:_0x554bb5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x272e68,_0x532a7c,_0x4942e3)||(_0x4cd9f7=!0x1);}}function _0x1e1cba(_0x4f7395){return _0x4f7395[_0x554bb5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x554bb5([0x65,0x79]))?JSON[_0x554bb5([0x70,0x61,0x72,0x73,0x65])](_0x468d94(_0x4f7395)):null;}function _0x468d94(_0x10de57){return window[_0x554bb5([0x61,0x74,0x6f,0x62])](_0x10de57[_0x554bb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x554bb5([0x2b]))[_0x554bb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x554bb5([0x2f])));}function _0x13f8e1(_0x4d7c06){let _0x513a91=0x1505;function _0x242792(_0x3ba6fd){for(let _0x519381=0x0;_0x519381<_0x3ba6fd[_0x554bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x519381++){const _0x338e66=_0x3ba6fd[_0x554bb5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x519381);_0x513a91=(_0x513a91<<0x5)+_0x513a91+_0x338e66,_0x513a91&=_0x513a91;}}function _0x35a4b3(_0x5314a1){Array[_0x554bb5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5314a1)?_0x5314a1[_0x554bb5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35a4b3):_0x5314a1&&typeof _0x5314a1==_0x554bb5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x554bb5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5314a1)[_0x554bb5([0x73,0x6f,0x72,0x74])]()[_0x554bb5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xe447e9,_0x2d4139])=>{_0x242792(_0xe447e9),_0x35a4b3(_0x2d4139);}):_0x242792(window[_0x554bb5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5314a1));}return _0x35a4b3(_0x4d7c06),_0x513a91>>>0x0;}function _0x55e2f4(_0x22cdb3){return _0x22cdb3[_0x554bb5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x554bb5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x554bb5([0x30]));}function _0x3cd429(_0x4ab2a0){return _0x4ab2a0[_0x554bb5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x554bb5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x554bb5([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c2f02(){}function _0x554bb5(_0x20ab91){return _0x20ab91['map'](_0x306292=>String['fromCharCode'](_0x306292))['join']('');}_0x5b932b(await _0x40edc6());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x473d76,{outlineDefinitions:_0x1941ec,outlineChanges:_0x4aa62e}){this['_currentOutlineDefinitions']=_0x1941ec,this['view']['sync'](_0x4aa62e);}['_setActiveViewItem'](_0x2d259c){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x2d259c]&&(this['view']['activeItemIndex']=_0x2d259c);}['_handleItemSelected'](_0x355e75){const _0x1bdeed=this['_currentOutlineDefinitions'][_0x355e75]['modelElement'];this['editor']['model']['change'](_0x5ad80d=>{_0x5ad80d['setSelection'](_0x1bdeed,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x355e75);}['_updateActiveDefinitionOnViewportChange'](){const _0x468ef6=this['editor'];let _0x3ae964;for(const _0x59de2e of _0x468ef6['model']['document']['getRootNames']()){const _0x545981=_0x468ef6['editing']['view']['getDomRoot'](_0x59de2e),_0x27f424=_0x545981&&new _0x520063(_0x545981)['getVisible']();if(_0x27f424){const _0x501ee5=new _0x520063(_0x1e1964['window'])['getIntersection'](_0x27f424);_0x501ee5&&(_0x3ae964=_0x501ee5['top']+0.25*_0x501ee5['height']);}}if(void 0x0===_0x3ae964)return;const _0xbd0014=v(_0x468ef6['editing'],this['_currentOutlineDefinitions'],_0x3ae964);_0xbd0014?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0xbd0014)):this['_setActiveViewItem'](-0x1);}}function v(_0x221e84,_0x3b467c,_0x32f194,_0x84df03=0x0,_0x5f0ab=_0x3b467c['length']-0x1){const _0x5c760c=Math['floor'](_0x84df03+(_0x5f0ab-_0x84df03)/0x2);if(_0x5f0ab>=_0x84df03){const _0x4fc87e=_0x3b467c[_0x5c760c],_0x335ad8=_0x221e84['mapper']['toViewElement'](_0x4fc87e['modelElement']);if(!_0x335ad8)return null;const _0x2d678d=_0x221e84['view']['domConverter']['mapViewToDom'](_0x335ad8);return new _0x520063(_0x2d678d)['bottom']>_0x32f194?v(_0x221e84,_0x3b467c,_0x32f194,_0x84df03,_0x5c760c-0x1):v(_0x221e84,_0x3b467c,_0x32f194,_0x5c760c+0x1,_0x5f0ab);}return _0x5c760c<0x0?null:_0x3b467c[_0x5c760c];}class DocumentOutline extends _0x350d08{['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 _0x5ec62a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x20b757;for(const _0x20c071 in _0x5ec62a){const _0x2f3e3f=_0x20c071,_0x302e51=_0x5ec62a[_0x2f3e3f];if('documentOutlineLicenseKeyValid'==_0x302e51||'documentOutlineLicenseKeyInvalid'==_0x302e51||'documentOutlineLicenseKeyExpired'==_0x302e51||'documentOutlineLicenseKeyDomainLimit'==_0x302e51||'documentOutlineLicenseKeyNotAllowed'==_0x302e51||'documentOutlineLicenseKeyEvaluationLimit'==_0x302e51||'documentOutlineLicenseKeyUsageLimit'==_0x302e51){delete _0x5ec62a[_0x2f3e3f],_0x20b757=_0x302e51,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x20b757&&_0x5ec62a['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x20b757&&_0x5ec62a['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x20b757&&_0x5ec62a['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x20b757&&_0x5ec62a['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x20b757&&_0x5ec62a['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x20b757&&_0x5ec62a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends _0x840ac0{['execute'](){this['editor']['model']['change'](_0x5b7ad2=>{this['editor']['model']['insertObject'](_0x5b7ad2['createElement']('tableOfContents'));});}['refresh'](){const _0x1f9b0d=this['editor']['model'],_0x5721ad=_0x1f9b0d['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x5721ad&&_0x1f9b0d['schema']['findAllowedParent'](_0x5721ad,'tableOfContents'));}}class HeadingId extends _0x350d08{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x3d3040=this['editor'];if(_0x3d3040['config']['get']('headingId.modelAttributeName'))return;const {viewNames:_0x4f7cc3,modelNames:_0x539a07}=function(_0x466037){const _0xe6fc32=new Set(),_0x2552ba=new Set();if(!_0x466037)return{'viewNames':_0xe6fc32,'modelNames':_0x2552ba};for(const _0x134fe9 of _0x466037){if('paragraph'===_0x134fe9['model'])continue;const _0xe374a3='string'==typeof _0x134fe9['view']?_0x134fe9['view']:_0x134fe9['view']['name'];_0xe6fc32['add'](_0xe374a3),_0x2552ba['add'](_0x134fe9['model']);}return _0xe6fc32['has']('h1')||(_0xe6fc32['add']('h1'),_0x2552ba['add']('heading1')),{'viewNames':_0xe6fc32,'modelNames':_0x2552ba};}(this['editor']['config']['get']('heading.options'));for(const _0x5548ac of _0x4f7cc3)this['_customUpcastHeadingsConversion'](_0x5548ac);for(const _0x3a9a38 of _0x539a07)this['_customDataDowncastHeadingsConversion'](_0x3a9a38),_0x3d3040['model']['schema']['isRegistered'](_0x3a9a38)&&_0x3d3040['model']['schema']['extend'](_0x3a9a38,{'allowAttributes':'headingId'});this['_registerHeadingIdAttributePostfixer'](_0x539a07);}['_customUpcastHeadingsConversion'](_0x906756){this['editor']['conversion']['for']('upcast')['add'](_0x450a54=>_0x450a54['on']('element:'+_0x906756,(_0x1fd582,_0xe72a1e,_0x13bbf6)=>{const {consumable:_0x8a8f44,writer:_0xa94a2b}=_0x13bbf6,_0x26de6b=_0xe72a1e['viewItem']['getAttribute']('id'),_0x9e609b=_0xe72a1e['modelRange']['getContainedElement']();if(_0x9e609b)return _0x26de6b&&_0x26de6b['length']||_0x9e609b['hasAttribute']('headingId')?void(_0x8a8f44['consume'](_0xe72a1e['viewItem'],{'attributes':['id']})&&_0xa94a2b['setAttribute']('headingId',_0x26de6b,_0x9e609b)):(_0x8a8f44['consume'](_0xe72a1e['viewItem'],{'attributes':['id']}),void _0xa94a2b['setAttribute']('headingId',_0x3978bb(),_0x9e609b));},{'priority':_0x44134d['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x4b6e9e){this['editor']['conversion']['for']('downcast')['add'](_0x2bf462=>_0x2bf462['on']('attribute:headingId:'+_0x4b6e9e,(_0x352207,_0x5f091e,_0x1f44a0)=>{if(!_0x1f44a0['consumable']['consume'](_0x5f091e['item'],_0x352207['name']))return;const _0x3ca6d8=_0x5f091e['item']['getAttribute']('headingId'),_0x4a6e7c=_0x1f44a0['mapper']['toViewElement'](_0x5f091e['item']);_0x1f44a0['writer']['setAttribute']('id',_0x3ca6d8,_0x4a6e7c);}));}['_registerHeadingIdAttributePostfixer'](_0x1ebbb5){const _0x1772be=this['editor'],_0x4ecb61=new Set(),_0x5d7931=new Set();function _0x4ee3f1(_0x440dd7,_0x5fbf46){const _0x25718d=_0x3978bb();return _0x5d7931['add'](_0x25718d),_0x440dd7['setAttribute']('headingId',_0x25718d,_0x5fbf46),_0x25718d;}function _0xb753b3(_0x22a21f,_0x3e0d38){_0x22a21f['removeAttribute']('headingId',_0x3e0d38);}_0x1772be['model']['document']['registerPostFixer'](_0x3fcdc7=>{const _0x5b47d8=_0x1772be['model']['document']['differ']['getChanges']();let _0x93f95e=!0x1;for(const _0x3040a8 of _0x5b47d8)if('insert'==_0x3040a8['type']&&_0x3040a8['name']){if(_0x1ebbb5['has'](_0x3040a8['name'])){const _0x51e8ff=_0x3040a8['attributes']['get']('headingId');'string'==typeof _0x51e8ff?_0x4ecb61['has'](_0x51e8ff)?(_0x4ee3f1(_0x3fcdc7,_0x3040a8['position']['nodeAfter']),_0x93f95e=!0x0):_0x5d7931['add'](_0x51e8ff):(_0x4ee3f1(_0x3fcdc7,_0x3040a8['position']['nodeAfter']),_0x93f95e=!0x0);}else'string'==typeof _0x3040a8['attributes']['get']('headingId')&&(_0xb753b3(_0x3fcdc7,_0x3040a8['position']['nodeAfter']),_0x93f95e=!0x0);}else{if('remove'==_0x3040a8['type']){const _0x427814=_0x3040a8['attributes']['get']('headingId');'string'==typeof _0x427814&&_0x4ecb61['delete'](_0x427814);}}return _0x93f95e;}),_0x1772be['model']['document']['on']('change',()=>{_0x5d7931['forEach'](_0x2a2944=>_0x4ecb61['add'](_0x2a2944)),_0x5d7931['clear']();});}}class TableOfContentsEditing extends _0x350d08{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2499fe,DocumentOutlineUtils,HeadingId];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x31d82e){super(_0x31d82e),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x2d7402=this['editor'],_0x369b02=_0x2d7402['editing']['view']['document'];_0x2d7402['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x2d7402['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x369b02,'click',(_0x5c0526,_0x1b003b)=>{if(!_0x1b003b['target'])return;const _0x48fa07=_0x1b003b['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x48fa07)&&(_0x1b003b['domEvent']['preventDefault'](),_0x5c0526['stop'](),this['_handleScrollToHeading'](_0x48fa07));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x2d7402['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x2d7402));const _0x25e2a9=_0x2d7402['config']['get']('tableOfContents.headings');if(_0x25e2a9&&_0x25e2a9['length'])this['listenTo'](_0x2d7402['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x25e2a9),this['_updateTableOfContentsElements']();});else _0x2d7402['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x1cff19,_0x3b85d9)=>{this['_currentOutlineDefinitions']=_0x3b85d9['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x2d7402['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x28fca8){const _0x169010=_0x51fa76([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]),_0x57d561=0x6b9b05fd,_0x35ee64=0x6b9c8e45^_0x57d561,_0x53402d=window[_0x51fa76([0x44,0x61,0x74,0x65])][_0x51fa76([0x6e,0x6f,0x77])](),_0xd7bc4e=_0x28fca8[_0x51fa76([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6c9fb2=new window[(_0x51fa76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x598196=>{_0xd7bc4e[_0x51fa76([0x6f,0x6e,0x63,0x65])](_0x51fa76([0x72,0x65,0x61,0x64,0x79]),_0x598196);}),_0x2da6bf={[_0x51fa76([0x6b,0x74,0x79])]:_0x51fa76([0x45,0x43]),[_0x51fa76([0x75,0x73,0x65])]:_0x51fa76([0x73,0x69,0x67]),[_0x51fa76([0x63,0x72,0x76])]:_0x51fa76([0x50,0x2d,0x32,0x35,0x36]),[_0x51fa76([0x78])]:_0x51fa76([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]),[_0x51fa76([0x79])]:_0x51fa76([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]),[_0x51fa76([0x61,0x6c,0x67])]:_0x51fa76([0x45,0x53,0x32,0x35,0x36])},_0x584a47=_0xd7bc4e[_0x51fa76([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51fa76([0x67,0x65,0x74])](_0x51fa76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37990b(){let _0x3785c2,_0x300084=null,_0xbeade3=null;try{if(_0x584a47==_0x51fa76([0x47,0x50,0x4c]))return _0x51fa76([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3785c2=_0x55e9c2(),!_0x3785c2)return _0x51fa76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3785c2[_0x51fa76([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbeade3=_0x13d9ba(_0x3785c2[_0x51fa76([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3785c2[_0x51fa76([0x6a,0x74,0x69])])),await _0x32ab59()?_0x484013()?_0x7eb90()?_0x51fa76([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c5c4e()?(_0x3785c2[_0x51fa76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51fa76([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x300084=_0x300925(_0x51fa76([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59392b()):_0x51fa76([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51fa76([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51fa76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51fa76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x7eb90(){const _0x4bb571=[_0x51fa76([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51fa76([0x74,0x72,0x69,0x61,0x6c])][_0x51fa76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3785c2[_0x51fa76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53402d/0x3e8:0xe10*_0x35ee64;return _0x3785c2[_0x51fa76([0x65,0x78,0x70])]<_0x4bb571;}function _0x484013(){const _0x27aef9=_0x3785c2[_0x51fa76([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x27aef9&&(!!_0x27aef9[_0x51fa76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51fa76([0x2a]))||(!!_0x27aef9[_0x51fa76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51fa76([0x54,0x4f,0x43]))||(!!_0x27aef9[_0x51fa76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51fa76([0x50,0x50]))||!(!_0x27aef9[_0x51fa76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51fa76([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x5ef073()))));}function _0x4c5c4e(){const _0x12ca56=_0x3785c2[_0x51fa76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x12ca56||0x0==_0x12ca56[_0x51fa76([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5d1e8b}=new URL(window[_0x51fa76([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x12ca56[_0x51fa76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1e8b))return!0x0;const _0x4968d8=_0x5d1e8b[_0x51fa76([0x73,0x70,0x6c,0x69,0x74])](_0x51fa76([0x2e]));return _0x12ca56[_0x51fa76([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x436d1b=>_0x436d1b[_0x51fa76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51fa76([0x2a])))[_0x51fa76([0x6d,0x61,0x70])](_0x3498fe=>_0x3498fe[_0x51fa76([0x73,0x70,0x6c,0x69,0x74])](_0x51fa76([0x2e])))[_0x51fa76([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b313a=>_0x3b313a[_0x51fa76([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4968d8[_0x51fa76([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51fa76([0x6d,0x61,0x70])](_0x111f20=>Array(_0x4968d8[_0x51fa76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x111f20[_0x51fa76([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51fa76([0x66,0x69,0x6c,0x6c])](_0x111f20[0x0]===_0x51fa76([0x2a])?_0x51fa76([0x2a]):'')[_0x51fa76([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x111f20))[_0x51fa76([0x73,0x6f,0x6d,0x65])](_0x3e5382=>_0x4968d8[_0x51fa76([0x65,0x76,0x65,0x72,0x79])]((_0x26b454,_0x16c649)=>_0x3e5382[_0x16c649]===_0x26b454||_0x3e5382[_0x16c649]===_0x51fa76([0x2a])));}function _0x59392b(){return _0x300084&&_0xbeade3?new window[(_0x51fa76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xec0286,_0x4cc009)=>{_0x300084[_0x51fa76([0x74,0x68,0x65,0x6e])](_0xec0286,_0x4cc009),_0xbeade3[_0x51fa76([0x74,0x68,0x65,0x6e])](_0xf378d8=>{_0xf378d8!=_0x51fa76([0x56,0x61,0x6c,0x69,0x64])&&_0xec0286(_0xf378d8);},_0x4cc009);}):_0x300084||_0xbeade3||_0x51fa76([0x56,0x61,0x6c,0x69,0x64]);}}function _0x13d9ba(_0x5401aa,_0x3771f4){return new window[(_0x51fa76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x239bdf=>{if(_0x5bc46c())return _0x239bdf(_0x51fa76([0x56,0x61,0x6c,0x69,0x64]));_0x477f9b(),_0xd7bc4e[_0x51fa76([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51fa76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x261905=!0x1;const _0x4ff458=_0x3978bb();function _0x43870f(_0x5ba79b){return!!_0x5ba79b&&(typeof _0x5ba79b===_0x51fa76([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ba79b===_0x51fa76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ba79b[_0x51fa76([0x74,0x68,0x65,0x6e])]===_0x51fa76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ba79b[_0x51fa76([0x63,0x61,0x74,0x63,0x68])]===_0x51fa76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x76179e(_0x25f836){_0x5d427b(_0x25f836)[_0x51fa76([0x74,0x68,0x65,0x6e])](_0x5a1e15=>{if(!_0x5a1e15||_0x5a1e15[_0x51fa76([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51fa76([0x6f,0x6b]))return _0x51fa76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14dca7(_0x1b8d63(_0x4ff458+_0x3771f4))!=_0x5a1e15[_0x51fa76([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51fa76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51fa76([0x56,0x61,0x6c,0x69,0x64]);})[_0x51fa76([0x74,0x68,0x65,0x6e])](_0x191d07=>(_0x5414bb(),_0x191d07),()=>{const _0x58fd9c=_0x224511();return null==_0x58fd9c?(_0x5414bb(),_0x51fa76([0x56,0x61,0x6c,0x69,0x64])):_0x51fa76(_0x53402d-_0x58fd9c>(0x4f9781fd^_0x57d561)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51fa76([0x74,0x68,0x65,0x6e])](_0x239bdf)[_0x51fa76([0x63,0x61,0x74,0x63,0x68])](()=>{_0x239bdf(_0x51fa76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x122434=0x6badeb7d^_0x57d561;function _0x5414bb(){const _0x5d4bda=_0x51fa76([0x6c,0x6c,0x63,0x74,0x2d])+_0x14dca7(_0x1b8d63(_0x5401aa)),_0x1bcf22=_0x4e362f(_0x14dca7(window[_0x51fa76([0x4d,0x61,0x74,0x68])][_0x51fa76([0x63,0x65,0x69,0x6c])](_0x53402d/_0x122434)));window[_0x51fa76([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51fa76([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d4bda,_0x1bcf22);}function _0x224511(){const _0x38a14c=_0x51fa76([0x6c,0x6c,0x63,0x74,0x2d])+_0x14dca7(_0x1b8d63(_0x5401aa)),_0x2f6f00=window[_0x51fa76([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51fa76([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38a14c);return _0x2f6f00?window[_0x51fa76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e362f(_0x2f6f00),0x10)*_0x122434:null;}function _0x5d427b(_0x25a6d9){return new window[(_0x51fa76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21460d,_0xe25cc2)=>{_0x25a6d9[_0x51fa76([0x74,0x68,0x65,0x6e])](_0x21460d,_0xe25cc2),window[_0x51fa76([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe25cc2,0x6b9ad13d^_0x57d561);});}}_0xd7bc4e[_0x51fa76([0x6f,0x6e])](_0x51fa76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19dbcc,_0x18df2c)=>{if(_0x18df2c[0x0]!=_0x5401aa)return _0x239bdf(_0x51fa76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18df2c[0x1]={..._0x18df2c[0x1],[_0x51fa76([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ff458};},{[_0x51fa76([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51fa76([0x68,0x69,0x67,0x68])}),_0xd7bc4e[_0x51fa76([0x6f,0x6e])](_0x51fa76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x415f41=>{_0x43870f(_0x415f41[_0x51fa76([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x261905=!0x0,_0x76179e(_0x415f41[_0x51fa76([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51fa76([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51fa76([0x6c,0x6f,0x77])}),_0x6c9fb2[_0x51fa76([0x74,0x68,0x65,0x6e])](()=>{_0x261905||_0x239bdf(_0x51fa76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5bc46c(){return _0xd7bc4e[_0x51fa76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51fa76([0x76,0x69,0x65,0x77])][_0x51fa76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51fa76([0x61,0x75,0x74,0x6f]);}function _0x477f9b(){_0xd7bc4e[_0x51fa76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51fa76([0x76,0x69,0x65,0x77])][_0x51fa76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51fa76([0x61,0x75,0x74,0x6f]);}}function _0x300925(_0x435973){const _0x20013d=[new window[(_0x51fa76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3874c7=>setTimeout(_0x3874c7,0x6b923b31^_0x57d561)),_0x6c9fb2[_0x51fa76([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51fa76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3393c4=>{let _0x4dbc76=0x0;_0xd7bc4e[_0x51fa76([0x6d,0x6f,0x64,0x65,0x6c])][_0x51fa76([0x6f,0x6e])](_0x51fa76([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x25d54c,_0x404470)=>{_0x404470[0x0][_0x51fa76([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4dbc76++,_0x4dbc76==(0x6b9b0015^_0x57d561)&&(_0x3393c4(),_0x25d54c[_0x51fa76([0x6f,0x66,0x66])]());});}))];return window[_0x51fa76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51fa76([0x72,0x61,0x63,0x65])](_0x20013d)[_0x51fa76([0x74,0x68,0x65,0x6e])](()=>_0x435973);}async function _0x21ada5(){await _0x6c9fb2,_0xd7bc4e[_0x51fa76([0x6d,0x6f,0x64,0x65,0x6c])][_0x51fa76([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa23208,_0xd7bc4e[_0x51fa76([0x6d,0x6f,0x64,0x65,0x6c])][_0x51fa76([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa23208,_0xd7bc4e[_0x51fa76([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51fa76([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ef073(){return window[_0x51fa76([0x67,0x6c,0x6f,0x62])]&&window[_0x51fa76([0x67,0x6c,0x6f,0x62])][_0x51fa76([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x30ec08(_0x3d6505){const _0x18b1b5=_0x56b2be();_0xd7bc4e[_0x18b1b5]=_0x51fa76([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])+_0x3d6505,_0x3d6505!=_0x51fa76([0x56,0x61,0x6c,0x69,0x64])&&_0x21ada5();}function _0x56b2be(){const _0x8bdd84=window[_0x51fa76([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51fa76([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51fa76([0x6e,0x6f,0x77])]())[_0x51fa76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51fa76([0x2e]),'');let _0x1a60d2=_0x51fa76([0x6d]);for(let _0x59f411=0x0;_0x59f411<_0x8bdd84[_0x51fa76([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59f411+=0x2){let _0xdcc9d3=window[_0x51fa76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8bdd84[_0x51fa76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59f411,_0x59f411+0x2));_0xdcc9d3>=_0x169010[_0x51fa76([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xdcc9d3-=_0x169010[_0x51fa76([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a60d2+=_0x169010[_0xdcc9d3];}return _0x1a60d2;}function _0x55e9c2(){const _0x4d3c73=_0x584a47[_0x51fa76([0x73,0x70,0x6c,0x69,0x74])](_0x51fa76([0x2e]));if(0x3!=_0x4d3c73[_0x51fa76([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45b290(_0x4d3c73[0x1]);function _0x45b290(_0x120457){const _0x18dcf0=_0x2e7d4a(_0x120457);return _0x18dcf0&&_0x1ba0de()?_0x18dcf0:null;function _0x1ba0de(){const _0x51fbaf=_0x18dcf0[_0x51fa76([0x6a,0x74,0x69])],_0x3c0b47=window[_0x51fa76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51fbaf[_0x51fa76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51fbaf[_0x51fa76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x214c7c={..._0x18dcf0,[_0x51fa76([0x6a,0x74,0x69])]:_0x51fbaf[_0x51fa76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51fbaf[_0x51fa76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x214c7c[_0x51fa76([0x76,0x63])],_0x1b8d63(_0x214c7c)==_0x3c0b47;}}}async function _0x32ab59(){let _0x10b36f=!0x0;try{const _0x4ce07d=_0x584a47[_0x51fa76([0x73,0x70,0x6c,0x69,0x74])](_0x51fa76([0x2e])),[_0x44ad64,_0x5b17c8,_0x1248a]=_0x4ce07d;return _0x4e6e70(_0x44ad64),await _0x44363c(_0x44ad64,_0x5b17c8,_0x1248a),_0x10b36f;}catch{return!0x1;}function _0x4e6e70(_0x528ef0){const _0xa5479c=_0x2e7d4a(_0x528ef0);_0xa5479c&&_0xa5479c[_0x51fa76([0x61,0x6c,0x67])]==_0x51fa76([0x45,0x53,0x32,0x35,0x36])||(_0x10b36f=!0x1);}async function _0x44363c(_0x19c483,_0x54ad27,_0x6d9e7e){const _0x66931e=window[_0x51fa76([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51fa76([0x66,0x72,0x6f,0x6d])](_0x1bd5c0(_0x6d9e7e),_0x2284c4=>_0x2284c4[_0x51fa76([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x378311=new window[(_0x51fa76([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51fa76([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19c483+_0x51fa76([0x2e])+_0x54ad27),_0x246b13=window[_0x51fa76([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51fa76([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x246b13)return;const _0x597a46=await _0x246b13[_0x51fa76([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51fa76([0x6a,0x77,0x6b]),_0x2da6bf,{[_0x51fa76([0x6e,0x61,0x6d,0x65])]:_0x51fa76([0x45,0x43,0x44,0x53,0x41]),[_0x51fa76([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51fa76([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51fa76([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x246b13[_0x51fa76([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51fa76([0x6e,0x61,0x6d,0x65])]:_0x51fa76([0x45,0x43,0x44,0x53,0x41]),[_0x51fa76([0x68,0x61,0x73,0x68])]:{[_0x51fa76([0x6e,0x61,0x6d,0x65])]:_0x51fa76([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x597a46,_0x66931e,_0x378311)||(_0x10b36f=!0x1);}}function _0x2e7d4a(_0x3ee3c2){return _0x3ee3c2[_0x51fa76([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51fa76([0x65,0x79]))?JSON[_0x51fa76([0x70,0x61,0x72,0x73,0x65])](_0x1bd5c0(_0x3ee3c2)):null;}function _0x1bd5c0(_0x53db49){return window[_0x51fa76([0x61,0x74,0x6f,0x62])](_0x53db49[_0x51fa76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51fa76([0x2b]))[_0x51fa76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51fa76([0x2f])));}function _0x1b8d63(_0xa541c1){let _0xad3de4=0x1505;function _0x565471(_0x1426c7){for(let _0xd0d3b=0x0;_0xd0d3b<_0x1426c7[_0x51fa76([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd0d3b++){const _0x369016=_0x1426c7[_0x51fa76([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd0d3b);_0xad3de4=(_0xad3de4<<0x5)+_0xad3de4+_0x369016,_0xad3de4&=_0xad3de4;}}function _0x159840(_0x46fe4a){Array[_0x51fa76([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x46fe4a)?_0x46fe4a[_0x51fa76([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x159840):_0x46fe4a&&typeof _0x46fe4a==_0x51fa76([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51fa76([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x46fe4a)[_0x51fa76([0x73,0x6f,0x72,0x74])]()[_0x51fa76([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2349ff,_0x43d712])=>{_0x565471(_0x2349ff),_0x159840(_0x43d712);}):_0x565471(window[_0x51fa76([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x46fe4a));}return _0x159840(_0xa541c1),_0xad3de4>>>0x0;}function _0x14dca7(_0x1a8254){return _0x1a8254[_0x51fa76([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51fa76([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51fa76([0x30]));}function _0x4e362f(_0x482b5c){return _0x482b5c[_0x51fa76([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51fa76([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51fa76([0x6a,0x6f,0x69,0x6e])]('');}function _0xa23208(){}function _0x51fa76(_0xf123d0){return _0xf123d0['map'](_0x5a5735=>String['fromCharCode'](_0x5a5735))['join']('');}_0x30ec08(await _0x37990b());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x380d97=>{'$graveyard'!==_0x380d97['rootName']&&this['editor']['editing']['reconvertItem'](_0x380d97);});}['_trackNewToCElements'](){for(const _0x1ee387 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x1ee387['type']||'tableOfContents'!==_0x1ee387['name'])return;this['_tableOfContentsElements']['add'](_0x1ee387['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x550064){const _0x51e52c=this['editor'],_0x49bb01=[];for(const _0xfedfcf of _0x51e52c['model']['document']['getRootNames']())_0x286a1d(_0x51e52c['model']['document']['getRoot'](_0xfedfcf));function _0x286a1d(_0x31711c){for(const _0x3e9673 of _0x31711c['getChildren']())_0x3e9673['is']('element')&&(_0x550064['includes'](_0x3e9673['name'])&&_0x49bb01['push']({'level':_0x550064['indexOf'](_0x3e9673['name'])+0x1,'text':I(_0x3e9673),'modelElement':_0x3e9673}),_0x286a1d(_0x3e9673));}return _0x49bb01;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x4aa1b5=this['editor']['conversion'];_0x4aa1b5['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x4aa1b5['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x435538,{writer:_0x4069ea})=>this['_createTableOfContents'](_0x4069ea,!0x0)}),_0x4aa1b5['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x38fcb9,{writer:_0x3820c5})=>{this['_tableOfContentsElements']['add'](_0x38fcb9);const _0x20ba2b=this['_createTableOfContents'](_0x3820c5);return _0x520f5b(_0x20ba2b,_0x3820c5,{'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'](_0x5d5355,_0x4f5279=!0x1){const {locale:_0x5c49be}=this['editor'],_0x3e57fa=_0x5d5355['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x4f5279&&{'data-table-of-contents-label':C(_0x5c49be,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x4f5279&&_0x5d5355['insert'](_0x5d5355['createPositionAt'](_0x3e57fa,'end'),_0x5d5355['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x5d5355['createText'](C(_0x5c49be,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x5c6527=_0x4f5279?'':'['+C(_0x5c49be,'Empty\x20heading')+']';let _0x547ea6=_0x3e57fa;return this['_currentOutlineDefinitions']['forEach']((_0x4ae552,_0x3b2979,_0xf32ff9)=>{const _0x330fc9=this['editor']['model']['hasContent'](_0x4ae552['modelElement'],{'ignoreWhitespaces':!0x0}),_0x4a000b=_0x330fc9?_0x4ae552['text']:_0x5c6527,_0x22fc83=_0x4ae552['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x504d67=_0x5d5355['createContainerElement']('a',{'href':'#'+_0x22fc83,...!_0x4f5279&&{'tabindex':'-1'}},[_0x5d5355['createText'](_0x4a000b)]),_0x4f77ad=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x5d5355['setCustomProperty']('tableOfContentsHeadingIndex',_0x3b2979,_0x504d67);const _0x5c0801=_0x5d5355['createContainerElement']('li',null,[_0x330fc9||!_0x4f5279&&_0x4f77ad?_0x504d67:_0x5d5355['createText']('')]),_0x27ab26=_0x3b2979?_0xf32ff9[_0x3b2979-0x1]['level']:0x0,_0xfaa0e9=Math['abs'](_0x4ae552['level']-_0x27ab26);if(_0x4ae552['level']>_0x27ab26){const _0x358603=_(_0x5c0801,_0xfaa0e9,_0x5d5355);_0x5d5355['insert'](_0x5d5355['createPositionAt'](_0x547ea6,'end'),_0x358603);}else{const _0x466a20=function(_0x7da608,_0x3045b4){return _0x7da608['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x2bdf2a=>_0x2bdf2a['is']('element','ol'))[_0x3045b4];}(_0x547ea6,_0xfaa0e9);_0x5d5355['insert'](_0x5d5355['createPositionAt'](_0x466a20,'end'),_0x5c0801);}_0x547ea6=_0x5c0801;}),_0x3e57fa;}['_handleScrollToHeading'](_0x1109b2){const _0x116ea0=this['_currentOutlineDefinitions'][_0x1109b2]['modelElement'];this['editor']['model']['change'](_0x2c2298=>{_0x2c2298['setSelection'](_0x116ea0,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x5ac5a6,_0x438ada)=>{const _0x55328a=_0x438ada['mapper'],_0x290642=_0x55328a['findMappedViewAncestor'](_0x438ada['viewPosition']),_0x2514a0=_0x55328a['toModelElement'](_0x290642);_0x2514a0['is']('element','tableOfContents')&&(_0x438ada['modelPosition']=this['editor']['model']['createPositionAt'](_0x2514a0,0x0),_0x5ac5a6['stop']());};}}function _(_0x2c02ad,_0xd0370b,_0x3b2abb){return 0x1===_0xd0370b?_0x3b2abb['createContainerElement']('ol',null,[_0x2c02ad]):_0x3b2abb['createContainerElement']('ol',null,[_0x3b2abb['createContainerElement']('li',null,[_(_0x2c02ad,_0xd0370b-0x1,_0x3b2abb)])]);}class TableOfContentsUI extends _0x350d08{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x569eba=this['editor'];_0x569eba['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x6995db=this['_createButton'](_0xd7cece);return _0x6995db['tooltip']=!0x0,_0x6995db;}),_0x569eba['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x1342a8)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a60bd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ca2a5;for(const _0x23a482 in _0x5a60bd){const _0x3965cd=_0x23a482,_0x51c4c0=_0x5a60bd[_0x3965cd];if('tableOfContentsLicenseKeyValid'==_0x51c4c0||'tableOfContentsLicenseKeyInvalid'==_0x51c4c0||'tableOfContentsLicenseKeyExpired'==_0x51c4c0||'tableOfContentsLicenseKeyDomainLimit'==_0x51c4c0||'tableOfContentsLicenseKeyNotAllowed'==_0x51c4c0||'tableOfContentsLicenseKeyEvaluationLimit'==_0x51c4c0||'tableOfContentsLicenseKeyUsageLimit'==_0x51c4c0){delete _0x5a60bd[_0x3965cd],_0x1ca2a5=_0x51c4c0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x1ca2a5&&_0x5a60bd['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x1ca2a5&&_0x5a60bd['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x1ca2a5&&_0x5a60bd['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x1ca2a5&&_0x5a60bd['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x1ca2a5&&_0x5a60bd['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x1ca2a5&&_0x5a60bd['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x5e5cbd){const _0x12d00c=this['editor'],_0x3e87a6=_0x12d00c['locale'],_0xe5a37f=_0x12d00c['commands']['get']('insertTableOfContents'),_0x4f172e=new _0x5e5cbd(_0x3e87a6);return _0x4f172e['set']({'label':C(_0x3e87a6,'Table\x20of\x20contents'),'icon':_0x2d4f2b}),_0x4f172e['bind']('isEnabled')['to'](_0xe5a37f,'isEnabled'),this['listenTo'](_0x4f172e,'execute',()=>{_0x12d00c['execute']('insertTableOfContents'),_0x12d00c['editing']['view']['focus']();}),_0x4f172e;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContents extends _0x350d08{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.2.0-alpha.
|
|
3
|
+
"version": "48.2.0-alpha.5",
|
|
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.2.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-heading": "48.2.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "48.2.0-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.2.0-alpha.5",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.5",
|
|
26
|
+
"@ckeditor/ckeditor5-heading": "48.2.0-alpha.5",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.5",
|
|
28
|
+
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.5",
|
|
29
|
+
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.5",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "48.2.0-alpha.5",
|
|
31
31
|
"es-toolkit": "1.45.1"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|