@ckeditor/ckeditor5-document-outline 48.1.0-alpha.4 → 48.1.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x138ed0,Command as _0x4efd3d}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x1c6816,throttle as _0x2eeddd}from'es-toolkit/compat';import{ModelText as _0x4e4c07,ModelTreeWalker as _0x338cea}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x5999fe,diffToChanges as _0x514d18,scrollAncestorsToShowTarget as _0x4572c1,CKEditorError as _0x9083d3,global as _0x291953,Rect as _0x438df7,uid as _0x42b37c,priorities as _0x51285b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x148307,ButtonView as _0x52f647,MenuBarMenuListItemButtonView as _0xcf0d6e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x59302b,toWidget as _0x1b9690}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x538b3c}from'@ckeditor/ckeditor5-icons/dist/index.js';function v(_0x3b8e6b){let _0x18f9a1='';for(const _0x2cfe6f of _0x3b8e6b['getChildren']())_0x2cfe6f instanceof _0x4e4c07&&(_0x18f9a1+=_0x2cfe6f['data']);return _0x18f9a1;}class I extends _0x138ed0{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x1b1005=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x118044=[];_0x1b1005['model']['document']['on']('change',_0x1c6816(()=>{const _0xa8347a=_0x118044;_0x118044=this['_getOutlineDefinitions']();const _0x2f1dc8=_0x5999fe(_0xa8347a,_0x118044,(_0x4eacfb,_0x1e99ee)=>_0x4eacfb['level']===_0x1e99ee['level']&&_0x4eacfb['text']===_0x1e99ee['text']&&_0x4eacfb['modelElement']===_0x1e99ee['modelElement']),_0x764a2e=_0x514d18(_0x2f1dc8,_0x118044),_0xafa8f8=this['_getActiveHeading'](),_0x38143c=_0x118044['findIndex'](_0x158789=>_0x158789['modelElement']===_0xafa8f8);_0x764a2e['length']&&this['fire']('change',{'outlineDefinitions':_0x118044,'activeItemIndex':_0x38143c,'outlineChanges':_0x764a2e}),this['fire']('activeItemIndex',{'index':_0x38143c});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x382566=this['editor'],_0x2f6012=[],_0x2e6ae4=this['_headingNames'];for(const _0x3dc1ec of _0x382566['model']['document']['getRootNames']())_0x4543cb(_0x382566['model']['document']['getRoot'](_0x3dc1ec));function _0x4543cb(_0x13d8e9){for(const _0xa41b7e of _0x13d8e9['getChildren']())_0xa41b7e['is']('element')&&(_0x2e6ae4['includes'](_0xa41b7e['name'])&&_0x2f6012['push']({'level':_0x2e6ae4['indexOf'](_0xa41b7e['name'])+0x1,'text':v(_0xa41b7e),'modelElement':_0xa41b7e}),_0x4543cb(_0xa41b7e));}return _0x2f6012;}['_getActiveHeading'](){const _0x147100=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x68a8a8=new _0x338cea({'direction':'backward','startPosition':_0x147100});for(const _0x442bf5 of _0x68a8a8)if(_0x442bf5['item']['is']('element')&&this['_headingNames']['includes'](_0x442bf5['item']['name']))return _0x442bf5['item'];}['_getHeadingNames'](){const _0x1267bb=this['editor']['config']['get']('documentOutline.headings');return _0x1267bb||function(_0xb8e581){const _0x7f0e00=_0xb8e581['config']['get']('heading.options');return _0x7f0e00?_0x7f0e00['reduce']((_0x3efe6d,_0x1c6656)=>('paragraph'!==_0x1c6656['model']&&_0x3efe6d['push'](_0x1c6656['model']),_0x3efe6d),[]):_0xb8e581['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x160a8f=this['editor'],_0x5e3ebf=['h1','h2','h3','h4','h5','h6'],_0x66f6f=[];for(const _0x51ccc4 of _0x5e3ebf){const _0x4d86c2=_0x160a8f['editing']['view']['domConverter']['domToView'](document['createElement'](_0x51ccc4)),_0x4236ce=_0x160a8f['data']['toModel'](_0x4d86c2)['getChild'](0x0);_0x4236ce?.['is']('element')&&_0x66f6f['push'](_0x4236ce['name']);}this['_headingNames']=_0x66f6f;}}function C(_0x8a6e86,_0xabd7f8){const t=_0x8a6e86['t'];switch(_0xabd7f8){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 _0xabd7f8;}}class _ extends _0x148307{constructor(_0x415f77,_0x52dba2=!0x1){super(_0x415f77);const _0x476078=this['bindTemplate'],_0x761b3f=_0x52dba2?'['+C(_0x415f77,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x49ffd0=>!_0x49ffd0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x476078['to']('level',_0x3442b8=>'ck-document-outline__item_level-'+_0x3442b8),_0x476078['if']('isActive','ck-document-outline__item_active'),_0x476078['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x476078['to']('text')},'children':[{'text':_0x476078['to']('text',_0x470358=>_0x470358||_0x761b3f)}],'on':{'click':_0x476078['to']('click')}});}}class x extends _0x148307{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x511137,_0x16adbd=!0x1,_0x71189){super(_0x511137),this['showEmptyHeadingText']=_0x16adbd,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x71189,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x556fee,_0x539154,_0x5b6051,_0x19664b)=>{this['_setActiveItem'](_0x19664b,_0x5b6051);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x511137['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x511137,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x3fa462){_0x3fa462['forEach'](_0x22524c=>{'insert'==_0x22524c['type']?this['_insertItem'](_0x22524c['index'],..._0x22524c['values']):'delete'==_0x22524c['type']&&this['_deleteItem'](_0x22524c['index'],_0x22524c['howMany']);});}['_setActiveItem'](_0x521258,_0x41bd1b){if(-0x1!==_0x521258){const _0x81bd18=this['items']['get'](_0x521258);_0x81bd18&&(_0x81bd18['isActive']=!0x1);}-0x1!==_0x41bd1b&&(this['items']['get'](_0x41bd1b)['isActive']=!0x0,this['_scrollToItem'](_0x41bd1b));}['_insertItem'](_0x26fb89,..._0x27d2fb){const _0x4bda3c=_0x27d2fb['map']((_0x234e27,_0x13ce1e)=>{const _0x247035=new _(this['locale'],this['showEmptyHeadingText']);return _0x247035['text']=_0x234e27['text'],_0x247035['level']=_0x234e27['level'],_0x26fb89+_0x13ce1e===this['activeItemIndex']&&(_0x247035['isActive']=!0x0),_0x247035;});this['items']['addMany'](_0x4bda3c,_0x26fb89);}['_deleteItem'](_0x2f5101,_0x45b51e){do{this['items']['remove'](_0x2f5101);}while(--_0x45b51e);}['_handleItemClick'](_0x4331ed){const _0x13a7b6=this['items']['getIndex'](_0x4331ed['source']);this['fire']('itemSelected',_0x13a7b6);}['_scrollToItem'](_0x5548b6){_0x4572c1(this['items']['get'](_0x5548b6)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class L extends _0x138ed0{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b014b){super(_0x1b014b),this['view']=new x(_0x1b014b['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x2eeddd(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x497ffd=this['editor'],_0x4610c7=_0x497ffd['plugins']['get']('DocumentOutlineUtils');let _0x13617a=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x497ffd['config']['get']('documentOutline.container'))throw new _0x9083d3('document-outline-container-not-provided',{'editor':_0x497ffd});_0x497ffd['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x4610c7['on']('change',this['_handleOutlineChange']['bind'](this)),_0x4610c7['on']('activeItemIndex',(_0x96533a,{index:_0x5bedff})=>this['_setActiveViewItem'](_0x5bedff)),this['view']['on']('itemSelected',(_0x3b492d,_0x4967ee)=>{_0x13617a=!0x0,this['_handleItemSelected'](_0x4967ee);}),this['view']['listenTo'](_0x291953['document'],'scroll',()=>{_0x13617a?_0x13617a=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x291953['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x12d659){const _0x2af32b=_0x44bcc4([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]),_0x32d231=0x1cb264a3,_0x7140c7=0x1cb5ed0b^_0x32d231,_0x1ec554=window[_0x44bcc4([0x44,0x61,0x74,0x65])][_0x44bcc4([0x6e,0x6f,0x77])](),_0x60285a=_0x12d659[_0x44bcc4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x577d79=new window[(_0x44bcc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bb368=>{_0x60285a[_0x44bcc4([0x6f,0x6e,0x63,0x65])](_0x44bcc4([0x72,0x65,0x61,0x64,0x79]),_0x5bb368);}),_0x1bdb42={[_0x44bcc4([0x6b,0x74,0x79])]:_0x44bcc4([0x45,0x43]),[_0x44bcc4([0x75,0x73,0x65])]:_0x44bcc4([0x73,0x69,0x67]),[_0x44bcc4([0x63,0x72,0x76])]:_0x44bcc4([0x50,0x2d,0x32,0x35,0x36]),[_0x44bcc4([0x78])]:_0x44bcc4([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]),[_0x44bcc4([0x79])]:_0x44bcc4([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]),[_0x44bcc4([0x61,0x6c,0x67])]:_0x44bcc4([0x45,0x53,0x32,0x35,0x36])},_0x4741e7=_0x60285a[_0x44bcc4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x44bcc4([0x67,0x65,0x74])](_0x44bcc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a230a(){let _0x5a06db,_0x2d4ebb=null,_0x16f532=null;try{if(_0x4741e7==_0x44bcc4([0x47,0x50,0x4c]))return _0x44bcc4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a06db=_0x6b99da(),!_0x5a06db)return _0x44bcc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a06db[_0x44bcc4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x16f532=_0x26dc6d(_0x5a06db[_0x44bcc4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a06db[_0x44bcc4([0x6a,0x74,0x69])])),await _0x5241cd()?_0x176d52()?_0x5bb58a()?_0x44bcc4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12236b()?(_0x5a06db[_0x44bcc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44bcc4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d4ebb=_0x33b361(_0x44bcc4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x35b63f()):_0x44bcc4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x44bcc4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x44bcc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x44bcc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5bb58a(){const _0x91e0ce=[_0x44bcc4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x44bcc4([0x74,0x72,0x69,0x61,0x6c])][_0x44bcc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a06db[_0x44bcc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ec554/0x3e8:0xe10*_0x7140c7;return _0x5a06db[_0x44bcc4([0x65,0x78,0x70])]<_0x91e0ce;}function _0x176d52(){const _0x25da78=_0x5a06db[_0x44bcc4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x25da78&&(!!_0x25da78[_0x44bcc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bcc4([0x2a]))||(!!_0x25da78[_0x44bcc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bcc4([0x44,0x4f]))||(!!_0x25da78[_0x44bcc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bcc4([0x50,0x50]))||!(!_0x25da78[_0x44bcc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bcc4([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x11826c()))));}function _0x12236b(){const _0x5d6fc0=_0x5a06db[_0x44bcc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d6fc0||0x0==_0x5d6fc0[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42a94b}=new URL(window[_0x44bcc4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d6fc0[_0x44bcc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42a94b))return!0x0;const _0x48f87f=_0x42a94b[_0x44bcc4([0x73,0x70,0x6c,0x69,0x74])](_0x44bcc4([0x2e]));return _0x5d6fc0[_0x44bcc4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e6a84=>_0x4e6a84[_0x44bcc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bcc4([0x2a])))[_0x44bcc4([0x6d,0x61,0x70])](_0x2c1084=>_0x2c1084[_0x44bcc4([0x73,0x70,0x6c,0x69,0x74])](_0x44bcc4([0x2e])))[_0x44bcc4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11e441=>_0x11e441[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x48f87f[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44bcc4([0x6d,0x61,0x70])](_0x2059d9=>Array(_0x48f87f[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2059d9[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44bcc4([0x66,0x69,0x6c,0x6c])](_0x2059d9[0x0]===_0x44bcc4([0x2a])?_0x44bcc4([0x2a]):'')[_0x44bcc4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2059d9))[_0x44bcc4([0x73,0x6f,0x6d,0x65])](_0x5cf3e9=>_0x48f87f[_0x44bcc4([0x65,0x76,0x65,0x72,0x79])]((_0x21342a,_0x40842b)=>_0x5cf3e9[_0x40842b]===_0x21342a||_0x5cf3e9[_0x40842b]===_0x44bcc4([0x2a])));}function _0x35b63f(){return _0x2d4ebb&&_0x16f532?new window[(_0x44bcc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x257c62,_0xfaed52)=>{_0x2d4ebb[_0x44bcc4([0x74,0x68,0x65,0x6e])](_0x257c62,_0xfaed52),_0x16f532[_0x44bcc4([0x74,0x68,0x65,0x6e])](_0x52d1fc=>{_0x52d1fc!=_0x44bcc4([0x56,0x61,0x6c,0x69,0x64])&&_0x257c62(_0x52d1fc);},_0xfaed52);}):_0x2d4ebb||_0x16f532||_0x44bcc4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26dc6d(_0x4b6080,_0x64ffab){return new window[(_0x44bcc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43178c=>{if(_0x441fb5())return _0x43178c(_0x44bcc4([0x56,0x61,0x6c,0x69,0x64]));_0x353e43(),_0x60285a[_0x44bcc4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x44bcc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a7418=!0x1;const _0x4341a7=_0x42b37c();function _0x425071(_0x1814c0){return!!_0x1814c0&&(typeof _0x1814c0===_0x44bcc4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1814c0===_0x44bcc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1814c0[_0x44bcc4([0x74,0x68,0x65,0x6e])]===_0x44bcc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1814c0[_0x44bcc4([0x63,0x61,0x74,0x63,0x68])]===_0x44bcc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ca3d7(_0x1b4e24){_0x7688f5(_0x1b4e24)[_0x44bcc4([0x74,0x68,0x65,0x6e])](_0x15d567=>{if(!_0x15d567||_0x15d567[_0x44bcc4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x44bcc4([0x6f,0x6b]))return _0x44bcc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a43fb(_0x190e8f(_0x4341a7+_0x64ffab))!=_0x15d567[_0x44bcc4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x44bcc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x44bcc4([0x56,0x61,0x6c,0x69,0x64]);})[_0x44bcc4([0x74,0x68,0x65,0x6e])](_0x311f55=>(_0x42406f(),_0x311f55),()=>{const _0x476a61=_0x4f62c1();return null==_0x476a61?(_0x42406f(),_0x44bcc4([0x56,0x61,0x6c,0x69,0x64])):_0x44bcc4(_0x1ec554-_0x476a61>(0x38bee0a3^_0x32d231)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x44bcc4([0x74,0x68,0x65,0x6e])](_0x43178c)[_0x44bcc4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x43178c(_0x44bcc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b4684=0x1c848a23^_0x32d231;function _0x42406f(){const _0x4260af=_0x44bcc4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a43fb(_0x190e8f(_0x4b6080)),_0x4e1bf1=_0x1dad63(_0x3a43fb(window[_0x44bcc4([0x4d,0x61,0x74,0x68])][_0x44bcc4([0x63,0x65,0x69,0x6c])](_0x1ec554/_0x3b4684)));window[_0x44bcc4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44bcc4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4260af,_0x4e1bf1);}function _0x4f62c1(){const _0x3b86fe=_0x44bcc4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a43fb(_0x190e8f(_0x4b6080)),_0x245553=window[_0x44bcc4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44bcc4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b86fe);return _0x245553?window[_0x44bcc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1dad63(_0x245553),0x10)*_0x3b4684:null;}function _0x7688f5(_0x5b0b57){return new window[(_0x44bcc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4783ca,_0x4e8cd6)=>{_0x5b0b57[_0x44bcc4([0x74,0x68,0x65,0x6e])](_0x4783ca,_0x4e8cd6),window[_0x44bcc4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e8cd6,0x1cb3b063^_0x32d231);});}}_0x60285a[_0x44bcc4([0x6f,0x6e])](_0x44bcc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb8fdf7,_0x203f2d)=>{if(_0x203f2d[0x0]!=_0x4b6080)return _0x43178c(_0x44bcc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x203f2d[0x1]={..._0x203f2d[0x1],[_0x44bcc4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4341a7};},{[_0x44bcc4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44bcc4([0x68,0x69,0x67,0x68])}),_0x60285a[_0x44bcc4([0x6f,0x6e])](_0x44bcc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55cc80=>{_0x425071(_0x55cc80[_0x44bcc4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a7418=!0x0,_0x4ca3d7(_0x55cc80[_0x44bcc4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x44bcc4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44bcc4([0x6c,0x6f,0x77])}),_0x577d79[_0x44bcc4([0x74,0x68,0x65,0x6e])](()=>{_0x1a7418||_0x43178c(_0x44bcc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x441fb5(){return _0x60285a[_0x44bcc4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44bcc4([0x76,0x69,0x65,0x77])][_0x44bcc4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x44bcc4([0x61,0x75,0x74,0x6f]);}function _0x353e43(){_0x60285a[_0x44bcc4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44bcc4([0x76,0x69,0x65,0x77])][_0x44bcc4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44bcc4([0x61,0x75,0x74,0x6f]);}}function _0x33b361(_0x4fe1ea){const _0x111085=[new window[(_0x44bcc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fc610=>setTimeout(_0x3fc610,0x1cbb5a6f^_0x32d231)),_0x577d79[_0x44bcc4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x44bcc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24dba9=>{let _0x30b394=0x0;_0x60285a[_0x44bcc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x44bcc4([0x6f,0x6e])](_0x44bcc4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e78bf,_0x3d0a3d)=>{_0x3d0a3d[0x0][_0x44bcc4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x30b394++,_0x30b394==(0x1cb2614b^_0x32d231)&&(_0x24dba9(),_0x4e78bf[_0x44bcc4([0x6f,0x66,0x66])]());});}))];return window[_0x44bcc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44bcc4([0x72,0x61,0x63,0x65])](_0x111085)[_0x44bcc4([0x74,0x68,0x65,0x6e])](()=>_0x4fe1ea);}async function _0x1d8657(){await _0x577d79,_0x60285a[_0x44bcc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x44bcc4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x63954d,_0x60285a[_0x44bcc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x44bcc4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x63954d,_0x60285a[_0x44bcc4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x44bcc4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x11826c(){return window[_0x44bcc4([0x67,0x6c,0x6f,0x62])]&&window[_0x44bcc4([0x67,0x6c,0x6f,0x62])][_0x44bcc4([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x53e8b3(_0x12e28c){const _0x5d6907=_0x15a5e8();_0x60285a[_0x5d6907]=_0x44bcc4([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])+_0x12e28c,_0x12e28c!=_0x44bcc4([0x56,0x61,0x6c,0x69,0x64])&&_0x1d8657();}function _0x15a5e8(){const _0x524fd6=window[_0x44bcc4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x44bcc4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x44bcc4([0x6e,0x6f,0x77])]())[_0x44bcc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x44bcc4([0x2e]),'');let _0x2b4b7f=_0x44bcc4([0x61]);for(let _0x3ffed2=0x0;_0x3ffed2<_0x524fd6[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ffed2+=0x2){let _0xb4350b=window[_0x44bcc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x524fd6[_0x44bcc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ffed2,_0x3ffed2+0x2));_0xb4350b>=_0x2af32b[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb4350b-=_0x2af32b[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b4b7f+=_0x2af32b[_0xb4350b];}return _0x2b4b7f;}function _0x6b99da(){const _0x37e372=_0x4741e7[_0x44bcc4([0x73,0x70,0x6c,0x69,0x74])](_0x44bcc4([0x2e]));if(0x3!=_0x37e372[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34675b(_0x37e372[0x1]);function _0x34675b(_0x263602){const _0x5458ca=_0x2bab08(_0x263602);return _0x5458ca&&_0x4e96db()?_0x5458ca:null;function _0x4e96db(){const _0x587b9a=_0x5458ca[_0x44bcc4([0x6a,0x74,0x69])],_0x57e5cc=window[_0x44bcc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x587b9a[_0x44bcc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x587b9a[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2818f4={..._0x5458ca,[_0x44bcc4([0x6a,0x74,0x69])]:_0x587b9a[_0x44bcc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x587b9a[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2818f4[_0x44bcc4([0x76,0x63])],_0x190e8f(_0x2818f4)==_0x57e5cc;}}}async function _0x5241cd(){let _0x583483=!0x0;try{const _0x57cddd=_0x4741e7[_0x44bcc4([0x73,0x70,0x6c,0x69,0x74])](_0x44bcc4([0x2e])),[_0x5dd411,_0x1fa221,_0x12acef]=_0x57cddd;return _0x139a77(_0x5dd411),await _0x14f4de(_0x5dd411,_0x1fa221,_0x12acef),_0x583483;}catch{return!0x1;}function _0x139a77(_0x5a27f0){const _0x130a7a=_0x2bab08(_0x5a27f0);_0x130a7a&&_0x130a7a[_0x44bcc4([0x61,0x6c,0x67])]==_0x44bcc4([0x45,0x53,0x32,0x35,0x36])||(_0x583483=!0x1);}async function _0x14f4de(_0x3d3718,_0x33d8d2,_0x293a9f){const _0x167f79=window[_0x44bcc4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x44bcc4([0x66,0x72,0x6f,0x6d])](_0x132d7a(_0x293a9f),_0x3b53b2=>_0x3b53b2[_0x44bcc4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4a59cd=new window[(_0x44bcc4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x44bcc4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d3718+_0x44bcc4([0x2e])+_0x33d8d2),_0x5603b0=window[_0x44bcc4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x44bcc4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5603b0)return;const _0x17346d=await _0x5603b0[_0x44bcc4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x44bcc4([0x6a,0x77,0x6b]),_0x1bdb42,{[_0x44bcc4([0x6e,0x61,0x6d,0x65])]:_0x44bcc4([0x45,0x43,0x44,0x53,0x41]),[_0x44bcc4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x44bcc4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x44bcc4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5603b0[_0x44bcc4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x44bcc4([0x6e,0x61,0x6d,0x65])]:_0x44bcc4([0x45,0x43,0x44,0x53,0x41]),[_0x44bcc4([0x68,0x61,0x73,0x68])]:{[_0x44bcc4([0x6e,0x61,0x6d,0x65])]:_0x44bcc4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x17346d,_0x167f79,_0x4a59cd)||(_0x583483=!0x1);}}function _0x2bab08(_0x18ad60){return _0x18ad60[_0x44bcc4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x44bcc4([0x65,0x79]))?JSON[_0x44bcc4([0x70,0x61,0x72,0x73,0x65])](_0x132d7a(_0x18ad60)):null;}function _0x132d7a(_0x2a2c10){return window[_0x44bcc4([0x61,0x74,0x6f,0x62])](_0x2a2c10[_0x44bcc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x44bcc4([0x2b]))[_0x44bcc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x44bcc4([0x2f])));}function _0x190e8f(_0x49ea4b){let _0x3d7665=0x1505;function _0x19383d(_0x33cb9b){for(let _0x541f44=0x0;_0x541f44<_0x33cb9b[_0x44bcc4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x541f44++){const _0x42a57e=_0x33cb9b[_0x44bcc4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x541f44);_0x3d7665=(_0x3d7665<<0x5)+_0x3d7665+_0x42a57e,_0x3d7665&=_0x3d7665;}}function _0x2b9306(_0x178b42){Array[_0x44bcc4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x178b42)?_0x178b42[_0x44bcc4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b9306):_0x178b42&&typeof _0x178b42==_0x44bcc4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x44bcc4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x178b42)[_0x44bcc4([0x73,0x6f,0x72,0x74])]()[_0x44bcc4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2fbea6,_0x49960b])=>{_0x19383d(_0x2fbea6),_0x2b9306(_0x49960b);}):_0x19383d(window[_0x44bcc4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x178b42));}return _0x2b9306(_0x49ea4b),_0x3d7665>>>0x0;}function _0x3a43fb(_0x4b688b){return _0x4b688b[_0x44bcc4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x44bcc4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x44bcc4([0x30]));}function _0x1dad63(_0x2f702f){return _0x2f702f[_0x44bcc4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x44bcc4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x44bcc4([0x6a,0x6f,0x69,0x6e])]('');}function _0x63954d(){}function _0x44bcc4(_0x3e5e34){return _0x3e5e34['map'](_0x3d31d4=>String['fromCharCode'](_0x3d31d4))['join']('');}_0x53e8b3(await _0x2a230a());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x55005d,{outlineDefinitions:_0x1667d1,outlineChanges:_0x2d93a7}){this['_currentOutlineDefinitions']=_0x1667d1,this['view']['sync'](_0x2d93a7);}['_setActiveViewItem'](_0x4203bb){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x4203bb]&&(this['view']['activeItemIndex']=_0x4203bb);}['_handleItemSelected'](_0x42c71d){const _0x18c0b4=this['_currentOutlineDefinitions'][_0x42c71d]['modelElement'];this['editor']['model']['change'](_0x52c4e4=>{_0x52c4e4['setSelection'](_0x18c0b4,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x42c71d);}['_updateActiveDefinitionOnViewportChange'](){const _0x89ecd=this['editor'];let _0x58de31;for(const _0x3cb784 of _0x89ecd['model']['document']['getRootNames']()){const _0x4d7333=_0x89ecd['editing']['view']['getDomRoot'](_0x3cb784),_0xddadf0=_0x4d7333&&new _0x438df7(_0x4d7333)['getVisible']();if(_0xddadf0){const _0x5a3cca=new _0x438df7(_0x291953['window'])['getIntersection'](_0xddadf0);_0x5a3cca&&(_0x58de31=_0x5a3cca['top']+0.25*_0x5a3cca['height']);}}if(void 0x0===_0x58de31)return;const _0x32cb94=k(_0x89ecd['editing'],this['_currentOutlineDefinitions'],_0x58de31);_0x32cb94?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x32cb94)):this['_setActiveViewItem'](-0x1);}}function k(_0x19ecf3,_0x3f0f70,_0x2d53f7,_0x1dd387=0x0,_0xc924ef=_0x3f0f70['length']-0x1){const _0x256cef=Math['floor'](_0x1dd387+(_0xc924ef-_0x1dd387)/0x2);if(_0xc924ef>=_0x1dd387){const _0xbee773=_0x3f0f70[_0x256cef],_0x1edda1=_0x19ecf3['mapper']['toViewElement'](_0xbee773['modelElement']);if(!_0x1edda1)return null;const _0x4b15a5=_0x19ecf3['view']['domConverter']['mapViewToDom'](_0x1edda1);return new _0x438df7(_0x4b15a5)['bottom']>_0x2d53f7?k(_0x19ecf3,_0x3f0f70,_0x2d53f7,_0x1dd387,_0x256cef-0x1):k(_0x19ecf3,_0x3f0f70,_0x2d53f7,_0x256cef+0x1,_0xc924ef);}return _0x256cef<0x0?null:_0x3f0f70[_0x256cef];}class K extends _0x138ed0{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[I,L];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1db985=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b0d1a;for(const _0x1eb603 in _0x1db985){const _0x44289b=_0x1eb603,_0x2fffbb=_0x1db985[_0x44289b];if('documentOutlineLicenseKeyValid'==_0x2fffbb||'documentOutlineLicenseKeyInvalid'==_0x2fffbb||'documentOutlineLicenseKeyExpired'==_0x2fffbb||'documentOutlineLicenseKeyDomainLimit'==_0x2fffbb||'documentOutlineLicenseKeyNotAllowed'==_0x2fffbb||'documentOutlineLicenseKeyEvaluationLimit'==_0x2fffbb||'documentOutlineLicenseKeyUsageLimit'==_0x2fffbb){delete _0x1db985[_0x44289b],_0x2b0d1a=_0x2fffbb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x2b0d1a&&_0x1db985['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x2b0d1a&&_0x1db985['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x2b0d1a&&_0x1db985['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x2b0d1a&&_0x1db985['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x2b0d1a&&_0x1db985['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x2b0d1a&&_0x1db985['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class E extends _0x4efd3d{['execute'](){this['editor']['model']['change'](_0x9e17b8=>{this['editor']['model']['insertObject'](_0x9e17b8['createElement']('tableOfContents'));});}['refresh'](){const _0x505f6f=this['editor']['model'],_0x52ef83=_0x505f6f['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x52ef83&&_0x505f6f['schema']['findAllowedParent'](_0x52ef83,'tableOfContents'));}}class N extends _0x138ed0{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x54106b=this['editor'];if(_0x54106b['config']['get']('headingId.modelAttributeName'))return;(function(_0x267799){const _0x47d503=new Map();if(_0x267799)return _0x267799['forEach'](_0x12bf98=>{'paragraph'!==_0x12bf98['model']&&_0x47d503['set'](_0x12bf98['view'],_0x12bf98['model']);}),_0x47d503['get']('h1')||_0x47d503['set']('h1','heading1'),_0x47d503;return _0x47d503;}(this['editor']['config']['get']('heading.options'))['forEach']((_0xf92086,_0x5ea866)=>{this['_customUpcastHeadingsConversion'](_0x5ea866),this['_customDataDowncastHeadingsConversion'](_0xf92086),_0x54106b['model']['schema']['isRegistered'](_0xf92086)&&_0x54106b['model']['schema']['extend'](_0xf92086,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x5a59d3){this['editor']['conversion']['for']('upcast')['add'](_0x19ab13=>_0x19ab13['on']('element:'+_0x5a59d3,(_0x39b0f6,_0x2ab7db,_0x4e86af)=>{const {consumable:_0x56e2e2,writer:_0x1f1d4a}=_0x4e86af,_0x389148=_0x2ab7db['viewItem']['getAttribute']('id'),_0x3330c5=_0x2ab7db['modelRange']['getContainedElement']();if(_0x3330c5)return _0x389148&&_0x389148['length']||_0x3330c5['hasAttribute']('headingId')?void(_0x56e2e2['consume'](_0x2ab7db['viewItem'],{'attributes':['id']})&&_0x1f1d4a['setAttribute']('headingId',_0x389148,_0x3330c5)):(_0x56e2e2['consume'](_0x2ab7db['viewItem'],{'attributes':['id']}),void _0x1f1d4a['setAttribute']('headingId',_0x42b37c(),_0x3330c5));},{'priority':_0x51285b['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x10c54e){this['editor']['conversion']['for']('downcast')['add'](_0x20a07a=>_0x20a07a['on']('attribute:headingId:'+_0x10c54e,(_0x42cf37,_0x531927,_0x2873cc)=>{if(!_0x2873cc['consumable']['consume'](_0x531927['item'],_0x42cf37['name']))return;const _0x14b262=_0x531927['item']['getAttribute']('headingId'),_0x1adbd6=_0x2873cc['mapper']['toViewElement'](_0x531927['item']);_0x2873cc['writer']['setAttribute']('id',_0x14b262,_0x1adbd6);}));}['_registerHeadingIdAttributePostfixer'](){const _0x4016d0=this['editor'],_0x197f84=new Set(),_0x441494=new Set();function _0x271367(_0x3f169e,_0x4d266f){const _0x25a59c=_0x42b37c();return _0x441494['add'](_0x25a59c),_0x3f169e['setAttribute']('headingId',_0x25a59c,_0x4d266f),_0x25a59c;}function _0x368604(_0x289f46,_0x527914){_0x289f46['removeAttribute']('headingId',_0x527914);}_0x4016d0['model']['document']['registerPostFixer'](_0x337c0d=>{const _0x1f53f5=_0x4016d0['model']['document']['differ']['getChanges']();let _0x51a10f=!0x1;for(const _0x47b053 of _0x1f53f5)if('insert'==_0x47b053['type']&&_0x47b053['name']){if(T(_0x47b053['name'])){const _0x1c550f=_0x47b053['attributes']['get']('headingId');'string'==typeof _0x1c550f?_0x197f84['has'](_0x1c550f)?(_0x271367(_0x337c0d,_0x47b053['position']['nodeAfter']),_0x51a10f=!0x0):_0x441494['add'](_0x1c550f):(_0x271367(_0x337c0d,_0x47b053['position']['nodeAfter']),_0x51a10f=!0x0);}else'string'==typeof _0x47b053['attributes']['get']('headingId')&&(_0x368604(_0x337c0d,_0x47b053['position']['nodeAfter']),_0x51a10f=!0x0);}else{if('remove'==_0x47b053['type']){const _0x2eac48=_0x47b053['attributes']['get']('headingId');'string'==typeof _0x2eac48&&_0x197f84['delete'](_0x2eac48);}}return _0x51a10f;}),_0x4016d0['model']['document']['on']('change',()=>{_0x441494['forEach'](_0x5c4681=>_0x197f84['add'](_0x5c4681)),_0x441494['clear']();});}}function T(_0x6b0015){return!!_0x6b0015['match'](/heading\d/);}class A extends _0x138ed0{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x59302b,I,N];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x221264){super(_0x221264),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x264beb=this['editor'],_0x4b780c=_0x264beb['editing']['view']['document'];_0x264beb['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x264beb['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x4b780c,'click',(_0x3c99c0,_0x555247)=>{if(!_0x555247['target'])return;const _0x4198d6=_0x555247['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x4198d6)&&(_0x555247['domEvent']['preventDefault'](),_0x3c99c0['stop'](),this['_handleScrollToHeading'](_0x4198d6));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x264beb['commands']['add']('insertTableOfContents',new E(_0x264beb));const _0x1e525d=_0x264beb['config']['get']('tableOfContents.headings');if(_0x1e525d&&_0x1e525d['length'])this['listenTo'](_0x264beb['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x1e525d),this['_updateTableOfContentsElements']();});else _0x264beb['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x1a3d00,_0x209356)=>{this['_currentOutlineDefinitions']=_0x209356['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x264beb['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x500031){const _0x2f0fc2=_0x13c155([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]),_0xa759ed=0x6b9b05fd,_0x332a9f=0x6b9c8c55^_0xa759ed,_0x5af953=window[_0x13c155([0x44,0x61,0x74,0x65])][_0x13c155([0x6e,0x6f,0x77])](),_0x5e93b1=_0x500031[_0x13c155([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2580fd=new window[(_0x13c155([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x261309=>{_0x5e93b1[_0x13c155([0x6f,0x6e,0x63,0x65])](_0x13c155([0x72,0x65,0x61,0x64,0x79]),_0x261309);}),_0x3221d9={[_0x13c155([0x6b,0x74,0x79])]:_0x13c155([0x45,0x43]),[_0x13c155([0x75,0x73,0x65])]:_0x13c155([0x73,0x69,0x67]),[_0x13c155([0x63,0x72,0x76])]:_0x13c155([0x50,0x2d,0x32,0x35,0x36]),[_0x13c155([0x78])]:_0x13c155([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]),[_0x13c155([0x79])]:_0x13c155([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]),[_0x13c155([0x61,0x6c,0x67])]:_0x13c155([0x45,0x53,0x32,0x35,0x36])},_0x5941eb=_0x5e93b1[_0x13c155([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13c155([0x67,0x65,0x74])](_0x13c155([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe18e42(){let _0x81c5d6,_0x40d3f9=null,_0x3d1794=null;try{if(_0x5941eb==_0x13c155([0x47,0x50,0x4c]))return _0x13c155([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x81c5d6=_0x24e073(),!_0x81c5d6)return _0x13c155([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x81c5d6[_0x13c155([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d1794=_0xddc829(_0x81c5d6[_0x13c155([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x81c5d6[_0x13c155([0x6a,0x74,0x69])])),await _0x30c7be()?_0x874a20()?_0x56405a()?_0x13c155([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x425bc3()?(_0x81c5d6[_0x13c155([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13c155([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x40d3f9=_0x7a9a2c(_0x13c155([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b1a45()):_0x13c155([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13c155([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13c155([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x13c155([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56405a(){const _0x5c7635=[_0x13c155([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13c155([0x74,0x72,0x69,0x61,0x6c])][_0x13c155([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x81c5d6[_0x13c155([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5af953/0x3e8:0xe10*_0x332a9f;return _0x81c5d6[_0x13c155([0x65,0x78,0x70])]<_0x5c7635;}function _0x874a20(){const _0x19e1e4=_0x81c5d6[_0x13c155([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x19e1e4&&(!!_0x19e1e4[_0x13c155([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13c155([0x2a]))||(!!_0x19e1e4[_0x13c155([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13c155([0x54,0x4f,0x43]))||(!!_0x19e1e4[_0x13c155([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13c155([0x50,0x50]))||!(!_0x19e1e4[_0x13c155([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13c155([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x343be4()))));}function _0x425bc3(){const _0x5ccf91=_0x81c5d6[_0x13c155([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ccf91||0x0==_0x5ccf91[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57b32b}=new URL(window[_0x13c155([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ccf91[_0x13c155([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57b32b))return!0x0;const _0x131e46=_0x57b32b[_0x13c155([0x73,0x70,0x6c,0x69,0x74])](_0x13c155([0x2e]));return _0x5ccf91[_0x13c155([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4557cd=>_0x4557cd[_0x13c155([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13c155([0x2a])))[_0x13c155([0x6d,0x61,0x70])](_0x3723a5=>_0x3723a5[_0x13c155([0x73,0x70,0x6c,0x69,0x74])](_0x13c155([0x2e])))[_0x13c155([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2387dd=>_0x2387dd[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x131e46[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13c155([0x6d,0x61,0x70])](_0x3a0dd7=>Array(_0x131e46[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a0dd7[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13c155([0x66,0x69,0x6c,0x6c])](_0x3a0dd7[0x0]===_0x13c155([0x2a])?_0x13c155([0x2a]):'')[_0x13c155([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a0dd7))[_0x13c155([0x73,0x6f,0x6d,0x65])](_0xe2eb33=>_0x131e46[_0x13c155([0x65,0x76,0x65,0x72,0x79])]((_0x5f548c,_0x4597d1)=>_0xe2eb33[_0x4597d1]===_0x5f548c||_0xe2eb33[_0x4597d1]===_0x13c155([0x2a])));}function _0x2b1a45(){return _0x40d3f9&&_0x3d1794?new window[(_0x13c155([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1db819,_0x817db3)=>{_0x40d3f9[_0x13c155([0x74,0x68,0x65,0x6e])](_0x1db819,_0x817db3),_0x3d1794[_0x13c155([0x74,0x68,0x65,0x6e])](_0x50104d=>{_0x50104d!=_0x13c155([0x56,0x61,0x6c,0x69,0x64])&&_0x1db819(_0x50104d);},_0x817db3);}):_0x40d3f9||_0x3d1794||_0x13c155([0x56,0x61,0x6c,0x69,0x64]);}}function _0xddc829(_0x1805d1,_0x3c076c){return new window[(_0x13c155([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x319ad5=>{if(_0x357031())return _0x319ad5(_0x13c155([0x56,0x61,0x6c,0x69,0x64]));_0x7b2af9(),_0x5e93b1[_0x13c155([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13c155([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17fc1b=!0x1;const _0xfe3d57=_0x42b37c();function _0x281fb0(_0x527a71){return!!_0x527a71&&(typeof _0x527a71===_0x13c155([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x527a71===_0x13c155([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x527a71[_0x13c155([0x74,0x68,0x65,0x6e])]===_0x13c155([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x527a71[_0x13c155([0x63,0x61,0x74,0x63,0x68])]===_0x13c155([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x151381(_0x1a01c5){_0x55fab0(_0x1a01c5)[_0x13c155([0x74,0x68,0x65,0x6e])](_0x74a6cb=>{if(!_0x74a6cb||_0x74a6cb[_0x13c155([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13c155([0x6f,0x6b]))return _0x13c155([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x104872(_0x3c152d(_0xfe3d57+_0x3c076c))!=_0x74a6cb[_0x13c155([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13c155([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13c155([0x56,0x61,0x6c,0x69,0x64]);})[_0x13c155([0x74,0x68,0x65,0x6e])](_0x23a9b2=>(_0x1c566e(),_0x23a9b2),()=>{const _0xc7783b=_0x62cab3();return null==_0xc7783b?(_0x1c566e(),_0x13c155([0x56,0x61,0x6c,0x69,0x64])):_0x13c155(_0x5af953-_0xc7783b>(0x4f9781fd^_0xa759ed)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13c155([0x74,0x68,0x65,0x6e])](_0x319ad5)[_0x13c155([0x63,0x61,0x74,0x63,0x68])](()=>{_0x319ad5(_0x13c155([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d24f7=0x6badeb7d^_0xa759ed;function _0x1c566e(){const _0x52c277=_0x13c155([0x6c,0x6c,0x63,0x74,0x2d])+_0x104872(_0x3c152d(_0x1805d1)),_0x5bd425=_0x4077bb(_0x104872(window[_0x13c155([0x4d,0x61,0x74,0x68])][_0x13c155([0x63,0x65,0x69,0x6c])](_0x5af953/_0x5d24f7)));window[_0x13c155([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13c155([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52c277,_0x5bd425);}function _0x62cab3(){const _0xcb6efd=_0x13c155([0x6c,0x6c,0x63,0x74,0x2d])+_0x104872(_0x3c152d(_0x1805d1)),_0xe1f0b1=window[_0x13c155([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13c155([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcb6efd);return _0xe1f0b1?window[_0x13c155([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4077bb(_0xe1f0b1),0x10)*_0x5d24f7:null;}function _0x55fab0(_0x166434){return new window[(_0x13c155([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48a3a9,_0x53c2e4)=>{_0x166434[_0x13c155([0x74,0x68,0x65,0x6e])](_0x48a3a9,_0x53c2e4),window[_0x13c155([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53c2e4,0x6b9ad13d^_0xa759ed);});}}_0x5e93b1[_0x13c155([0x6f,0x6e])](_0x13c155([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ecacd,_0x24aa8b)=>{if(_0x24aa8b[0x0]!=_0x1805d1)return _0x319ad5(_0x13c155([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x24aa8b[0x1]={..._0x24aa8b[0x1],[_0x13c155([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfe3d57};},{[_0x13c155([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13c155([0x68,0x69,0x67,0x68])}),_0x5e93b1[_0x13c155([0x6f,0x6e])](_0x13c155([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x352e36=>{_0x281fb0(_0x352e36[_0x13c155([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17fc1b=!0x0,_0x151381(_0x352e36[_0x13c155([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13c155([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13c155([0x6c,0x6f,0x77])}),_0x2580fd[_0x13c155([0x74,0x68,0x65,0x6e])](()=>{_0x17fc1b||_0x319ad5(_0x13c155([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x357031(){return _0x5e93b1[_0x13c155([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13c155([0x76,0x69,0x65,0x77])][_0x13c155([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13c155([0x61,0x75,0x74,0x6f]);}function _0x7b2af9(){_0x5e93b1[_0x13c155([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13c155([0x76,0x69,0x65,0x77])][_0x13c155([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13c155([0x61,0x75,0x74,0x6f]);}}function _0x7a9a2c(_0x439af2){const _0x1a6e85=[new window[(_0x13c155([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x332f59=>setTimeout(_0x332f59,0x6b923b31^_0xa759ed)),_0x2580fd[_0x13c155([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13c155([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a5bc5=>{let _0x2d9df2=0x0;_0x5e93b1[_0x13c155([0x6d,0x6f,0x64,0x65,0x6c])][_0x13c155([0x6f,0x6e])](_0x13c155([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d766b,_0xc07247)=>{_0xc07247[0x0][_0x13c155([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d9df2++,_0x2d9df2==(0x6b9b0015^_0xa759ed)&&(_0x2a5bc5(),_0x1d766b[_0x13c155([0x6f,0x66,0x66])]());});}))];return window[_0x13c155([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13c155([0x72,0x61,0x63,0x65])](_0x1a6e85)[_0x13c155([0x74,0x68,0x65,0x6e])](()=>_0x439af2);}async function _0x3c5bdf(){await _0x2580fd,_0x5e93b1[_0x13c155([0x6d,0x6f,0x64,0x65,0x6c])][_0x13c155([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a7082,_0x5e93b1[_0x13c155([0x6d,0x6f,0x64,0x65,0x6c])][_0x13c155([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a7082,_0x5e93b1[_0x13c155([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13c155([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x343be4(){return window[_0x13c155([0x67,0x6c,0x6f,0x62])]&&window[_0x13c155([0x67,0x6c,0x6f,0x62])][_0x13c155([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0xa33566(_0x59873f){const _0x394844=_0x5cba87();_0x5e93b1[_0x394844]=_0x13c155([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])+_0x59873f,_0x59873f!=_0x13c155([0x56,0x61,0x6c,0x69,0x64])&&_0x3c5bdf();}function _0x5cba87(){const _0x282ad9=window[_0x13c155([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13c155([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13c155([0x6e,0x6f,0x77])]())[_0x13c155([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13c155([0x2e]),'');let _0x282261=_0x13c155([0x6d]);for(let _0x59ee1f=0x0;_0x59ee1f<_0x282ad9[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59ee1f+=0x2){let _0x36e2ef=window[_0x13c155([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x282ad9[_0x13c155([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59ee1f,_0x59ee1f+0x2));_0x36e2ef>=_0x2f0fc2[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36e2ef-=_0x2f0fc2[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x282261+=_0x2f0fc2[_0x36e2ef];}return _0x282261;}function _0x24e073(){const _0x75eb86=_0x5941eb[_0x13c155([0x73,0x70,0x6c,0x69,0x74])](_0x13c155([0x2e]));if(0x3!=_0x75eb86[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34fe7f(_0x75eb86[0x1]);function _0x34fe7f(_0x232141){const _0x58072e=_0x1d0ec0(_0x232141);return _0x58072e&&_0x1e4f8e()?_0x58072e:null;function _0x1e4f8e(){const _0x23c593=_0x58072e[_0x13c155([0x6a,0x74,0x69])],_0x38065f=window[_0x13c155([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23c593[_0x13c155([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23c593[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x404f8f={..._0x58072e,[_0x13c155([0x6a,0x74,0x69])]:_0x23c593[_0x13c155([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23c593[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x404f8f[_0x13c155([0x76,0x63])],_0x3c152d(_0x404f8f)==_0x38065f;}}}async function _0x30c7be(){let _0x4a5b89=!0x0;try{const _0x1a5ef2=_0x5941eb[_0x13c155([0x73,0x70,0x6c,0x69,0x74])](_0x13c155([0x2e])),[_0x196dbe,_0x5ac5e5,_0x4db7d2]=_0x1a5ef2;return _0x17659c(_0x196dbe),await _0x655021(_0x196dbe,_0x5ac5e5,_0x4db7d2),_0x4a5b89;}catch{return!0x1;}function _0x17659c(_0x4f4eff){const _0x3f9478=_0x1d0ec0(_0x4f4eff);_0x3f9478&&_0x3f9478[_0x13c155([0x61,0x6c,0x67])]==_0x13c155([0x45,0x53,0x32,0x35,0x36])||(_0x4a5b89=!0x1);}async function _0x655021(_0x7c245e,_0x3afead,_0x384fda){const _0x48d7eb=window[_0x13c155([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13c155([0x66,0x72,0x6f,0x6d])](_0x27325d(_0x384fda),_0x25ba9e=>_0x25ba9e[_0x13c155([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1dc8cb=new window[(_0x13c155([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13c155([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7c245e+_0x13c155([0x2e])+_0x3afead),_0x4a2f88=window[_0x13c155([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13c155([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a2f88)return;const _0x20b123=await _0x4a2f88[_0x13c155([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13c155([0x6a,0x77,0x6b]),_0x3221d9,{[_0x13c155([0x6e,0x61,0x6d,0x65])]:_0x13c155([0x45,0x43,0x44,0x53,0x41]),[_0x13c155([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13c155([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13c155([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a2f88[_0x13c155([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13c155([0x6e,0x61,0x6d,0x65])]:_0x13c155([0x45,0x43,0x44,0x53,0x41]),[_0x13c155([0x68,0x61,0x73,0x68])]:{[_0x13c155([0x6e,0x61,0x6d,0x65])]:_0x13c155([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x20b123,_0x48d7eb,_0x1dc8cb)||(_0x4a5b89=!0x1);}}function _0x1d0ec0(_0x3c22b5){return _0x3c22b5[_0x13c155([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13c155([0x65,0x79]))?JSON[_0x13c155([0x70,0x61,0x72,0x73,0x65])](_0x27325d(_0x3c22b5)):null;}function _0x27325d(_0x3e40be){return window[_0x13c155([0x61,0x74,0x6f,0x62])](_0x3e40be[_0x13c155([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13c155([0x2b]))[_0x13c155([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13c155([0x2f])));}function _0x3c152d(_0x45b0d8){let _0x3f9c9c=0x1505;function _0x5ea71a(_0x5c76b1){for(let _0x1deda7=0x0;_0x1deda7<_0x5c76b1[_0x13c155([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1deda7++){const _0x5a74fd=_0x5c76b1[_0x13c155([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1deda7);_0x3f9c9c=(_0x3f9c9c<<0x5)+_0x3f9c9c+_0x5a74fd,_0x3f9c9c&=_0x3f9c9c;}}function _0x23a97e(_0x516420){Array[_0x13c155([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x516420)?_0x516420[_0x13c155([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23a97e):_0x516420&&typeof _0x516420==_0x13c155([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13c155([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x516420)[_0x13c155([0x73,0x6f,0x72,0x74])]()[_0x13c155([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d8165,_0x2911fb])=>{_0x5ea71a(_0x2d8165),_0x23a97e(_0x2911fb);}):_0x5ea71a(window[_0x13c155([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x516420));}return _0x23a97e(_0x45b0d8),_0x3f9c9c>>>0x0;}function _0x104872(_0x53e3e3){return _0x53e3e3[_0x13c155([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13c155([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13c155([0x30]));}function _0x4077bb(_0x453c6b){return _0x453c6b[_0x13c155([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13c155([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13c155([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a7082(){}function _0x13c155(_0x4d2d18){return _0x4d2d18['map'](_0x470667=>String['fromCharCode'](_0x470667))['join']('');}_0xa33566(await _0xe18e42());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x223650=>{'$graveyard'!==_0x223650['rootName']&&this['editor']['editing']['reconvertItem'](_0x223650);});}['_trackNewToCElements'](){for(const _0x20b177 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x20b177['type']||'tableOfContents'!==_0x20b177['name'])return;this['_tableOfContentsElements']['add'](_0x20b177['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x4d03d7){const _0x258625=this['editor'],_0x4aed12=[];for(const _0x296493 of _0x258625['model']['document']['getRootNames']())_0x38ab7c(_0x258625['model']['document']['getRoot'](_0x296493));function _0x38ab7c(_0x3b11b9){for(const _0x371e2b of _0x3b11b9['getChildren']())_0x371e2b['is']('element')&&(_0x4d03d7['includes'](_0x371e2b['name'])&&_0x4aed12['push']({'level':_0x4d03d7['indexOf'](_0x371e2b['name'])+0x1,'text':v(_0x371e2b),'modelElement':_0x371e2b}),_0x38ab7c(_0x371e2b));}return _0x4aed12;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x1e954c=this['editor']['conversion'];_0x1e954c['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x1e954c['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x5e6d33,{writer:_0x4eaf15})=>this['_createTableOfContents'](_0x4eaf15,!0x0)}),_0x1e954c['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x563358,{writer:_0x25c528})=>{this['_tableOfContentsElements']['add'](_0x563358);const _0x594c23=this['_createTableOfContents'](_0x25c528);return _0x1b9690(_0x594c23,_0x25c528,{'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'](_0x111ba4,_0x50770b=!0x1){const {locale:_0x2963e9}=this['editor'],_0x18a3ad=_0x111ba4['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x50770b&&{'data-table-of-contents-label':C(_0x2963e9,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x50770b&&_0x111ba4['insert'](_0x111ba4['createPositionAt'](_0x18a3ad,'end'),_0x111ba4['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x111ba4['createText'](C(_0x2963e9,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x18e804=_0x50770b?'':'['+C(_0x2963e9,'Empty\x20heading')+']';let _0xe99074=_0x18a3ad;return this['_currentOutlineDefinitions']['forEach']((_0x45464e,_0x1448b3,_0x484dc6)=>{const _0xf3abf6=this['editor']['model']['hasContent'](_0x45464e['modelElement'],{'ignoreWhitespaces':!0x0}),_0xef40a7=_0xf3abf6?_0x45464e['text']:_0x18e804,_0x2d60a1=_0x45464e['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x4a66a1=_0x111ba4['createContainerElement']('a',{'href':'#'+_0x2d60a1,...!_0x50770b&&{'tabindex':'-1'}},[_0x111ba4['createText'](_0xef40a7)]),_0xe4ae52=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x111ba4['setCustomProperty']('tableOfContentsHeadingIndex',_0x1448b3,_0x4a66a1);const _0x27bb20=_0x111ba4['createContainerElement']('li',null,[_0xf3abf6||!_0x50770b&&_0xe4ae52?_0x4a66a1:_0x111ba4['createText']('')]),_0x4aa6cc=_0x1448b3?_0x484dc6[_0x1448b3-0x1]['level']:0x0,_0x5a2755=Math['abs'](_0x45464e['level']-_0x4aa6cc);if(_0x45464e['level']>_0x4aa6cc){const _0x2deacf=P(_0x27bb20,_0x5a2755,_0x111ba4);_0x111ba4['insert'](_0x111ba4['createPositionAt'](_0xe99074,'end'),_0x2deacf);}else{const _0x50db42=function(_0x4059c8,_0x3f0f5f){return _0x4059c8['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x312d20=>_0x312d20['is']('element','ol'))[_0x3f0f5f];}(_0xe99074,_0x5a2755);_0x111ba4['insert'](_0x111ba4['createPositionAt'](_0x50db42,'end'),_0x27bb20);}_0xe99074=_0x27bb20;}),_0x18a3ad;}['_handleScrollToHeading'](_0x4e9425){const _0x24297f=this['_currentOutlineDefinitions'][_0x4e9425]['modelElement'];this['editor']['model']['change'](_0x584d3f=>{_0x584d3f['setSelection'](_0x24297f,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x18695d,_0x54395f)=>{const _0x48aaca=_0x54395f['mapper'],_0x357c11=_0x48aaca['findMappedViewAncestor'](_0x54395f['viewPosition']),_0x5c7741=_0x48aaca['toModelElement'](_0x357c11);_0x5c7741['is']('element','tableOfContents')&&(_0x54395f['modelPosition']=this['editor']['model']['createPositionAt'](_0x5c7741,0x0),_0x18695d['stop']());};}}function P(_0x39c5c6,_0x42c153,_0x4244e2){return 0x1===_0x42c153?_0x4244e2['createContainerElement']('ol',null,[_0x39c5c6]):_0x4244e2['createContainerElement']('ol',null,[_0x4244e2['createContainerElement']('li',null,[P(_0x39c5c6,_0x42c153-0x1,_0x4244e2)])]);}class D extends _0x138ed0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4c50b3=this['editor'];_0x4c50b3['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x36d762=this['_createButton'](_0x52f647);return _0x36d762['tooltip']=!0x0,_0x36d762;}),_0x4c50b3['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0xcf0d6e)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x301cfc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3eed63;for(const _0x45a799 in _0x301cfc){const _0x5f536c=_0x45a799,_0x441de7=_0x301cfc[_0x5f536c];if('tableOfContentsLicenseKeyValid'==_0x441de7||'tableOfContentsLicenseKeyInvalid'==_0x441de7||'tableOfContentsLicenseKeyExpired'==_0x441de7||'tableOfContentsLicenseKeyDomainLimit'==_0x441de7||'tableOfContentsLicenseKeyNotAllowed'==_0x441de7||'tableOfContentsLicenseKeyEvaluationLimit'==_0x441de7||'tableOfContentsLicenseKeyUsageLimit'==_0x441de7){delete _0x301cfc[_0x5f536c],_0x3eed63=_0x441de7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x3eed63&&_0x301cfc['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x3eed63&&_0x301cfc['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x3eed63&&_0x301cfc['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x3eed63&&_0x301cfc['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x3eed63&&_0x301cfc['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x3eed63&&_0x301cfc['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x347e6d){const _0x302cd1=this['editor'],_0x40e3f1=_0x302cd1['locale'],_0x7bfb9c=_0x302cd1['commands']['get']('insertTableOfContents'),_0x446029=new _0x347e6d(_0x40e3f1);return _0x446029['set']({'label':C(_0x40e3f1,'Table\x20of\x20contents'),'icon':_0x538b3c}),_0x446029['bind']('isEnabled')['to'](_0x7bfb9c,'isEnabled'),this['listenTo'](_0x446029,'execute',()=>{_0x302cd1['execute']('insertTableOfContents'),_0x302cd1['editing']['view']['focus']();}),_0x446029;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class H extends _0x138ed0{static get['requires'](){return[A,D];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{K as DocumentOutline,L as DocumentOutlineUI,I as DocumentOutlineUtils,N as HeadingId,H as TableOfContents,E as TableOfContentsCommand,A as TableOfContentsEditing,D as TableOfContentsUI};
23
+ import{Plugin as _0x170292,Command as _0x2d4894}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x40da14,throttle as _0x576711}from'es-toolkit/compat';import{ModelText as _0x3e06b4,ModelTreeWalker as _0x1a2ee4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x3b5611,diffToChanges as _0x1dfab6,scrollAncestorsToShowTarget as _0x29b53a,CKEditorError as _0x4e378e,global as _0x50442b,Rect as _0x5a0f8d,uid as _0x5a68c1,priorities as _0x5f53d5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x378dc0,ButtonView as _0x2d886d,MenuBarMenuListItemButtonView as _0x52938e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x24eb4d,toWidget as _0x344d43}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x3f4ec9}from'@ckeditor/ckeditor5-icons/dist/index.js';function v(_0x186309){let _0x3077f4='';for(const _0x20db1e of _0x186309['getChildren']())_0x20db1e instanceof _0x3e06b4&&(_0x3077f4+=_0x20db1e['data']);return _0x3077f4;}class I extends _0x170292{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x15a6ec=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x7f4188=[];_0x15a6ec['model']['document']['on']('change',_0x40da14(()=>{const _0xe18f1a=_0x7f4188;_0x7f4188=this['_getOutlineDefinitions']();const _0x5bfcea=_0x3b5611(_0xe18f1a,_0x7f4188,(_0x25b323,_0x4edd72)=>_0x25b323['level']===_0x4edd72['level']&&_0x25b323['text']===_0x4edd72['text']&&_0x25b323['modelElement']===_0x4edd72['modelElement']),_0x8c86b1=_0x1dfab6(_0x5bfcea,_0x7f4188),_0x88e96c=this['_getActiveHeading'](),_0x3ddfb6=_0x7f4188['findIndex'](_0x13ba64=>_0x13ba64['modelElement']===_0x88e96c);_0x8c86b1['length']&&this['fire']('change',{'outlineDefinitions':_0x7f4188,'activeItemIndex':_0x3ddfb6,'outlineChanges':_0x8c86b1}),this['fire']('activeItemIndex',{'index':_0x3ddfb6});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x235965=this['editor'],_0x32b3d6=[],_0x2f1db0=this['_headingNames'];for(const _0x44ad2c of _0x235965['model']['document']['getRootNames']())_0x19b2b1(_0x235965['model']['document']['getRoot'](_0x44ad2c));function _0x19b2b1(_0x4cb6c4){for(const _0x1c0917 of _0x4cb6c4['getChildren']())_0x1c0917['is']('element')&&(_0x2f1db0['includes'](_0x1c0917['name'])&&_0x32b3d6['push']({'level':_0x2f1db0['indexOf'](_0x1c0917['name'])+0x1,'text':v(_0x1c0917),'modelElement':_0x1c0917}),_0x19b2b1(_0x1c0917));}return _0x32b3d6;}['_getActiveHeading'](){const _0x1a8e0c=this['editor']['model']['document']['selection']['getFirstPosition'](),_0xdc2da4=new _0x1a2ee4({'direction':'backward','startPosition':_0x1a8e0c});for(const _0x4a871e of _0xdc2da4)if(_0x4a871e['item']['is']('element')&&this['_headingNames']['includes'](_0x4a871e['item']['name']))return _0x4a871e['item'];}['_getHeadingNames'](){const _0x2613ed=this['editor']['config']['get']('documentOutline.headings');return _0x2613ed||function(_0xf118d0){const _0x58187b=_0xf118d0['config']['get']('heading.options');return _0x58187b?_0x58187b['reduce']((_0x45525e,_0x1199b6)=>('paragraph'!==_0x1199b6['model']&&_0x45525e['push'](_0x1199b6['model']),_0x45525e),[]):_0xf118d0['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x541940=this['editor'],_0x20651d=['h1','h2','h3','h4','h5','h6'],_0x3b467a=[];for(const _0x17f02d of _0x20651d){const _0x391620=_0x541940['editing']['view']['domConverter']['domToView'](document['createElement'](_0x17f02d)),_0x23b847=_0x541940['data']['toModel'](_0x391620)['getChild'](0x0);_0x23b847?.['is']('element')&&_0x3b467a['push'](_0x23b847['name']);}this['_headingNames']=_0x3b467a;}}function C(_0x43ffd5,_0x416e39){const t=_0x43ffd5['t'];switch(_0x416e39){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 _0x416e39;}}class _ extends _0x378dc0{constructor(_0x5db3b5,_0x32d56f=!0x1){super(_0x5db3b5);const _0x4a6c77=this['bindTemplate'],_0x211799=_0x32d56f?'['+C(_0x5db3b5,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x5be18f=>!_0x5be18f),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x4a6c77['to']('level',_0x2d01d2=>'ck-document-outline__item_level-'+_0x2d01d2),_0x4a6c77['if']('isActive','ck-document-outline__item_active'),_0x4a6c77['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x4a6c77['to']('text')},'children':[{'text':_0x4a6c77['to']('text',_0x42c9bb=>_0x42c9bb||_0x211799)}],'on':{'click':_0x4a6c77['to']('click')}});}}class x extends _0x378dc0{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x4a679c,_0x493f72=!0x1,_0x5573f0){super(_0x4a679c),this['showEmptyHeadingText']=_0x493f72,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x5573f0,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x16bff9,_0x647695,_0x307047,_0x261788)=>{this['_setActiveItem'](_0x261788,_0x307047);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x4a679c['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x4a679c,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0xea5899){_0xea5899['forEach'](_0x1e1e27=>{'insert'==_0x1e1e27['type']?this['_insertItem'](_0x1e1e27['index'],..._0x1e1e27['values']):'delete'==_0x1e1e27['type']&&this['_deleteItem'](_0x1e1e27['index'],_0x1e1e27['howMany']);});}['_setActiveItem'](_0x2f107b,_0x5ef41b){if(-0x1!==_0x2f107b){const _0x23a672=this['items']['get'](_0x2f107b);_0x23a672&&(_0x23a672['isActive']=!0x1);}-0x1!==_0x5ef41b&&(this['items']['get'](_0x5ef41b)['isActive']=!0x0,this['_scrollToItem'](_0x5ef41b));}['_insertItem'](_0xd21d93,..._0x355197){const _0x31690e=_0x355197['map']((_0x3e9a0c,_0x82caf9)=>{const _0x318ca7=new _(this['locale'],this['showEmptyHeadingText']);return _0x318ca7['text']=_0x3e9a0c['text'],_0x318ca7['level']=_0x3e9a0c['level'],_0xd21d93+_0x82caf9===this['activeItemIndex']&&(_0x318ca7['isActive']=!0x0),_0x318ca7;});this['items']['addMany'](_0x31690e,_0xd21d93);}['_deleteItem'](_0xa8cc5b,_0x1231e0){do{this['items']['remove'](_0xa8cc5b);}while(--_0x1231e0);}['_handleItemClick'](_0x3b52e0){const _0x100e69=this['items']['getIndex'](_0x3b52e0['source']);this['fire']('itemSelected',_0x100e69);}['_scrollToItem'](_0x123760){_0x29b53a(this['items']['get'](_0x123760)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class L extends _0x170292{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x128776){super(_0x128776),this['view']=new x(_0x128776['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x576711(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x7acd45=this['editor'],_0x5440a6=_0x7acd45['plugins']['get']('DocumentOutlineUtils');let _0x3f4c93=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x7acd45['config']['get']('documentOutline.container'))throw new _0x4e378e('document-outline-container-not-provided',{'editor':_0x7acd45});_0x7acd45['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x5440a6['on']('change',this['_handleOutlineChange']['bind'](this)),_0x5440a6['on']('activeItemIndex',(_0x4874aa,{index:_0x9a6479})=>this['_setActiveViewItem'](_0x9a6479)),this['view']['on']('itemSelected',(_0x3d283e,_0x434a5d)=>{_0x3f4c93=!0x0,this['_handleItemSelected'](_0x434a5d);}),this['view']['listenTo'](_0x50442b['document'],'scroll',()=>{_0x3f4c93?_0x3f4c93=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x50442b['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x14b2ca){const _0x2723f0=_0x2cd655([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]),_0x460bce=0x1cb264a3,_0x2d7ac1=0x1cb5ed63^_0x460bce,_0x5834e6=window[_0x2cd655([0x44,0x61,0x74,0x65])][_0x2cd655([0x6e,0x6f,0x77])](),_0xc4813a=_0x14b2ca[_0x2cd655([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d72ba=new window[(_0x2cd655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaccf13=>{_0xc4813a[_0x2cd655([0x6f,0x6e,0x63,0x65])](_0x2cd655([0x72,0x65,0x61,0x64,0x79]),_0xaccf13);}),_0x1fd9b1={[_0x2cd655([0x6b,0x74,0x79])]:_0x2cd655([0x45,0x43]),[_0x2cd655([0x75,0x73,0x65])]:_0x2cd655([0x73,0x69,0x67]),[_0x2cd655([0x63,0x72,0x76])]:_0x2cd655([0x50,0x2d,0x32,0x35,0x36]),[_0x2cd655([0x78])]:_0x2cd655([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]),[_0x2cd655([0x79])]:_0x2cd655([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]),[_0x2cd655([0x61,0x6c,0x67])]:_0x2cd655([0x45,0x53,0x32,0x35,0x36])},_0x4e84d9=_0xc4813a[_0x2cd655([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cd655([0x67,0x65,0x74])](_0x2cd655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x43f33c(){let _0x36d8fa,_0x1201f0=null,_0x2f367c=null;try{if(_0x4e84d9==_0x2cd655([0x47,0x50,0x4c]))return _0x2cd655([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36d8fa=_0x24a4f7(),!_0x36d8fa)return _0x2cd655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36d8fa[_0x2cd655([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f367c=_0x248c89(_0x36d8fa[_0x2cd655([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36d8fa[_0x2cd655([0x6a,0x74,0x69])])),await _0x3674e7()?_0x320507()?_0x17fce0()?_0x2cd655([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c414b()?(_0x36d8fa[_0x2cd655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cd655([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1201f0=_0x1c5e2f(_0x2cd655([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30b9e0()):_0x2cd655([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cd655([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cd655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2cd655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x17fce0(){const _0x5662f3=[_0x2cd655([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cd655([0x74,0x72,0x69,0x61,0x6c])][_0x2cd655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36d8fa[_0x2cd655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5834e6/0x3e8:0xe10*_0x2d7ac1;return _0x36d8fa[_0x2cd655([0x65,0x78,0x70])]<_0x5662f3;}function _0x320507(){const _0x1c7fad=_0x36d8fa[_0x2cd655([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c7fad&&(!!_0x1c7fad[_0x2cd655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cd655([0x2a]))||(!!_0x1c7fad[_0x2cd655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cd655([0x44,0x4f]))||(!!_0x1c7fad[_0x2cd655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cd655([0x50,0x50]))||!(!_0x1c7fad[_0x2cd655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cd655([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x49b822()))));}function _0x2c414b(){const _0x4ecb84=_0x36d8fa[_0x2cd655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ecb84||0x0==_0x4ecb84[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20b192}=new URL(window[_0x2cd655([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ecb84[_0x2cd655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20b192))return!0x0;const _0x435392=_0x20b192[_0x2cd655([0x73,0x70,0x6c,0x69,0x74])](_0x2cd655([0x2e]));return _0x4ecb84[_0x2cd655([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4327f1=>_0x4327f1[_0x2cd655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cd655([0x2a])))[_0x2cd655([0x6d,0x61,0x70])](_0x2fb75c=>_0x2fb75c[_0x2cd655([0x73,0x70,0x6c,0x69,0x74])](_0x2cd655([0x2e])))[_0x2cd655([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25bd5f=>_0x25bd5f[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x435392[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cd655([0x6d,0x61,0x70])](_0x1b80a1=>Array(_0x435392[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b80a1[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cd655([0x66,0x69,0x6c,0x6c])](_0x1b80a1[0x0]===_0x2cd655([0x2a])?_0x2cd655([0x2a]):'')[_0x2cd655([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b80a1))[_0x2cd655([0x73,0x6f,0x6d,0x65])](_0x27f125=>_0x435392[_0x2cd655([0x65,0x76,0x65,0x72,0x79])]((_0x3d4d75,_0xd10b4a)=>_0x27f125[_0xd10b4a]===_0x3d4d75||_0x27f125[_0xd10b4a]===_0x2cd655([0x2a])));}function _0x30b9e0(){return _0x1201f0&&_0x2f367c?new window[(_0x2cd655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x561e2e,_0x16fd0e)=>{_0x1201f0[_0x2cd655([0x74,0x68,0x65,0x6e])](_0x561e2e,_0x16fd0e),_0x2f367c[_0x2cd655([0x74,0x68,0x65,0x6e])](_0x516a22=>{_0x516a22!=_0x2cd655([0x56,0x61,0x6c,0x69,0x64])&&_0x561e2e(_0x516a22);},_0x16fd0e);}):_0x1201f0||_0x2f367c||_0x2cd655([0x56,0x61,0x6c,0x69,0x64]);}}function _0x248c89(_0x6f6e83,_0x30edb3){return new window[(_0x2cd655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ebed2=>{if(_0x11c666())return _0x2ebed2(_0x2cd655([0x56,0x61,0x6c,0x69,0x64]));_0x54546d(),_0xc4813a[_0x2cd655([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cd655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e4435=!0x1;const _0x791413=_0x5a68c1();function _0x255980(_0x39956e){return!!_0x39956e&&(typeof _0x39956e===_0x2cd655([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x39956e===_0x2cd655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x39956e[_0x2cd655([0x74,0x68,0x65,0x6e])]===_0x2cd655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x39956e[_0x2cd655([0x63,0x61,0x74,0x63,0x68])]===_0x2cd655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x285950(_0x5c7c97){_0x240033(_0x5c7c97)[_0x2cd655([0x74,0x68,0x65,0x6e])](_0x7f8159=>{if(!_0x7f8159||_0x7f8159[_0x2cd655([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cd655([0x6f,0x6b]))return _0x2cd655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xbfaab1(_0x4275bd(_0x791413+_0x30edb3))!=_0x7f8159[_0x2cd655([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cd655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cd655([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cd655([0x74,0x68,0x65,0x6e])](_0x5bc6b5=>(_0x136fbb(),_0x5bc6b5),()=>{const _0x3bed1b=_0x303bd4();return null==_0x3bed1b?(_0x136fbb(),_0x2cd655([0x56,0x61,0x6c,0x69,0x64])):_0x2cd655(_0x5834e6-_0x3bed1b>(0x38bee0a3^_0x460bce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cd655([0x74,0x68,0x65,0x6e])](_0x2ebed2)[_0x2cd655([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ebed2(_0x2cd655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d4c33=0x1c848a23^_0x460bce;function _0x136fbb(){const _0x4132a1=_0x2cd655([0x6c,0x6c,0x63,0x74,0x2d])+_0xbfaab1(_0x4275bd(_0x6f6e83)),_0x1266fd=_0x5a2631(_0xbfaab1(window[_0x2cd655([0x4d,0x61,0x74,0x68])][_0x2cd655([0x63,0x65,0x69,0x6c])](_0x5834e6/_0x2d4c33)));window[_0x2cd655([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cd655([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4132a1,_0x1266fd);}function _0x303bd4(){const _0x359f5d=_0x2cd655([0x6c,0x6c,0x63,0x74,0x2d])+_0xbfaab1(_0x4275bd(_0x6f6e83)),_0x505966=window[_0x2cd655([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cd655([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x359f5d);return _0x505966?window[_0x2cd655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a2631(_0x505966),0x10)*_0x2d4c33:null;}function _0x240033(_0x6b6ec9){return new window[(_0x2cd655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e0464,_0x46d638)=>{_0x6b6ec9[_0x2cd655([0x74,0x68,0x65,0x6e])](_0x1e0464,_0x46d638),window[_0x2cd655([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46d638,0x1cb3b063^_0x460bce);});}}_0xc4813a[_0x2cd655([0x6f,0x6e])](_0x2cd655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x323861,_0x3d7722)=>{if(_0x3d7722[0x0]!=_0x6f6e83)return _0x2ebed2(_0x2cd655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d7722[0x1]={..._0x3d7722[0x1],[_0x2cd655([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x791413};},{[_0x2cd655([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cd655([0x68,0x69,0x67,0x68])}),_0xc4813a[_0x2cd655([0x6f,0x6e])](_0x2cd655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50b863=>{_0x255980(_0x50b863[_0x2cd655([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e4435=!0x0,_0x285950(_0x50b863[_0x2cd655([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cd655([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cd655([0x6c,0x6f,0x77])}),_0x1d72ba[_0x2cd655([0x74,0x68,0x65,0x6e])](()=>{_0x1e4435||_0x2ebed2(_0x2cd655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x11c666(){return _0xc4813a[_0x2cd655([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cd655([0x76,0x69,0x65,0x77])][_0x2cd655([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cd655([0x61,0x75,0x74,0x6f]);}function _0x54546d(){_0xc4813a[_0x2cd655([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cd655([0x76,0x69,0x65,0x77])][_0x2cd655([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cd655([0x61,0x75,0x74,0x6f]);}}function _0x1c5e2f(_0x1ae376){const _0xffdcda=[new window[(_0x2cd655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe37d93=>setTimeout(_0xe37d93,0x1cbb5a6f^_0x460bce)),_0x1d72ba[_0x2cd655([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cd655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf98713=>{let _0x39ea29=0x0;_0xc4813a[_0x2cd655([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cd655([0x6f,0x6e])](_0x2cd655([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x269593,_0x1eec68)=>{_0x1eec68[0x0][_0x2cd655([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39ea29++,_0x39ea29==(0x1cb2614b^_0x460bce)&&(_0xf98713(),_0x269593[_0x2cd655([0x6f,0x66,0x66])]());});}))];return window[_0x2cd655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cd655([0x72,0x61,0x63,0x65])](_0xffdcda)[_0x2cd655([0x74,0x68,0x65,0x6e])](()=>_0x1ae376);}async function _0x3f8c2d(){await _0x1d72ba,_0xc4813a[_0x2cd655([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cd655([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x779a10,_0xc4813a[_0x2cd655([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cd655([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x779a10,_0xc4813a[_0x2cd655([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cd655([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x49b822(){return window[_0x2cd655([0x67,0x6c,0x6f,0x62])]&&window[_0x2cd655([0x67,0x6c,0x6f,0x62])][_0x2cd655([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x11f240(_0x5c6960){const _0x35787e=_0x506447();_0xc4813a[_0x35787e]=_0x2cd655([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])+_0x5c6960,_0x5c6960!=_0x2cd655([0x56,0x61,0x6c,0x69,0x64])&&_0x3f8c2d();}function _0x506447(){const _0x6dbd6b=window[_0x2cd655([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cd655([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cd655([0x6e,0x6f,0x77])]())[_0x2cd655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cd655([0x2e]),'');let _0x4ccf34=_0x2cd655([0x61]);for(let _0x145ab2=0x0;_0x145ab2<_0x6dbd6b[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x145ab2+=0x2){let _0x14f2b7=window[_0x2cd655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6dbd6b[_0x2cd655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x145ab2,_0x145ab2+0x2));_0x14f2b7>=_0x2723f0[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14f2b7-=_0x2723f0[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4ccf34+=_0x2723f0[_0x14f2b7];}return _0x4ccf34;}function _0x24a4f7(){const _0x4de24e=_0x4e84d9[_0x2cd655([0x73,0x70,0x6c,0x69,0x74])](_0x2cd655([0x2e]));if(0x3!=_0x4de24e[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2829a2(_0x4de24e[0x1]);function _0x2829a2(_0x64b8e4){const _0x21fa69=_0x132e47(_0x64b8e4);return _0x21fa69&&_0x2fd052()?_0x21fa69:null;function _0x2fd052(){const _0x4b4427=_0x21fa69[_0x2cd655([0x6a,0x74,0x69])],_0x2f90e0=window[_0x2cd655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b4427[_0x2cd655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b4427[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3895ab={..._0x21fa69,[_0x2cd655([0x6a,0x74,0x69])]:_0x4b4427[_0x2cd655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b4427[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3895ab[_0x2cd655([0x76,0x63])],_0x4275bd(_0x3895ab)==_0x2f90e0;}}}async function _0x3674e7(){let _0x424ca6=!0x0;try{const _0x227390=_0x4e84d9[_0x2cd655([0x73,0x70,0x6c,0x69,0x74])](_0x2cd655([0x2e])),[_0x53dc01,_0x4f828a,_0x5a4a70]=_0x227390;return _0x487e23(_0x53dc01),await _0x5be83c(_0x53dc01,_0x4f828a,_0x5a4a70),_0x424ca6;}catch{return!0x1;}function _0x487e23(_0x1b16a6){const _0x51526c=_0x132e47(_0x1b16a6);_0x51526c&&_0x51526c[_0x2cd655([0x61,0x6c,0x67])]==_0x2cd655([0x45,0x53,0x32,0x35,0x36])||(_0x424ca6=!0x1);}async function _0x5be83c(_0x4d0387,_0x13ce12,_0x23d1f5){const _0xac06fc=window[_0x2cd655([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cd655([0x66,0x72,0x6f,0x6d])](_0x457697(_0x23d1f5),_0x6456af=>_0x6456af[_0x2cd655([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32d81e=new window[(_0x2cd655([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cd655([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d0387+_0x2cd655([0x2e])+_0x13ce12),_0xcd7cfd=window[_0x2cd655([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cd655([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xcd7cfd)return;const _0x50588c=await _0xcd7cfd[_0x2cd655([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cd655([0x6a,0x77,0x6b]),_0x1fd9b1,{[_0x2cd655([0x6e,0x61,0x6d,0x65])]:_0x2cd655([0x45,0x43,0x44,0x53,0x41]),[_0x2cd655([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cd655([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cd655([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xcd7cfd[_0x2cd655([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cd655([0x6e,0x61,0x6d,0x65])]:_0x2cd655([0x45,0x43,0x44,0x53,0x41]),[_0x2cd655([0x68,0x61,0x73,0x68])]:{[_0x2cd655([0x6e,0x61,0x6d,0x65])]:_0x2cd655([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50588c,_0xac06fc,_0x32d81e)||(_0x424ca6=!0x1);}}function _0x132e47(_0x4da0a4){return _0x4da0a4[_0x2cd655([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cd655([0x65,0x79]))?JSON[_0x2cd655([0x70,0x61,0x72,0x73,0x65])](_0x457697(_0x4da0a4)):null;}function _0x457697(_0x430c08){return window[_0x2cd655([0x61,0x74,0x6f,0x62])](_0x430c08[_0x2cd655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cd655([0x2b]))[_0x2cd655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cd655([0x2f])));}function _0x4275bd(_0x31b6fd){let _0x29f620=0x1505;function _0x284361(_0x12bd71){for(let _0x1f7d91=0x0;_0x1f7d91<_0x12bd71[_0x2cd655([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f7d91++){const _0x46e78c=_0x12bd71[_0x2cd655([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f7d91);_0x29f620=(_0x29f620<<0x5)+_0x29f620+_0x46e78c,_0x29f620&=_0x29f620;}}function _0x1aa069(_0x319b05){Array[_0x2cd655([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x319b05)?_0x319b05[_0x2cd655([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1aa069):_0x319b05&&typeof _0x319b05==_0x2cd655([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cd655([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x319b05)[_0x2cd655([0x73,0x6f,0x72,0x74])]()[_0x2cd655([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x58e518,_0x3daddd])=>{_0x284361(_0x58e518),_0x1aa069(_0x3daddd);}):_0x284361(window[_0x2cd655([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x319b05));}return _0x1aa069(_0x31b6fd),_0x29f620>>>0x0;}function _0xbfaab1(_0x3b7373){return _0x3b7373[_0x2cd655([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cd655([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cd655([0x30]));}function _0x5a2631(_0x22b36c){return _0x22b36c[_0x2cd655([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cd655([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cd655([0x6a,0x6f,0x69,0x6e])]('');}function _0x779a10(){}function _0x2cd655(_0x1b6825){return _0x1b6825['map'](_0x4e0e25=>String['fromCharCode'](_0x4e0e25))['join']('');}_0x11f240(await _0x43f33c());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0xbbe57b,{outlineDefinitions:_0x48cbd9,outlineChanges:_0x4e8400}){this['_currentOutlineDefinitions']=_0x48cbd9,this['view']['sync'](_0x4e8400);}['_setActiveViewItem'](_0x1b36ff){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x1b36ff]&&(this['view']['activeItemIndex']=_0x1b36ff);}['_handleItemSelected'](_0x469d67){const _0x37d2f2=this['_currentOutlineDefinitions'][_0x469d67]['modelElement'];this['editor']['model']['change'](_0x1b59fb=>{_0x1b59fb['setSelection'](_0x37d2f2,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x469d67);}['_updateActiveDefinitionOnViewportChange'](){const _0x5c819a=this['editor'];let _0x5d3809;for(const _0x3e8565 of _0x5c819a['model']['document']['getRootNames']()){const _0x1ac4aa=_0x5c819a['editing']['view']['getDomRoot'](_0x3e8565),_0x8b22a=_0x1ac4aa&&new _0x5a0f8d(_0x1ac4aa)['getVisible']();if(_0x8b22a){const _0x241847=new _0x5a0f8d(_0x50442b['window'])['getIntersection'](_0x8b22a);_0x241847&&(_0x5d3809=_0x241847['top']+0.25*_0x241847['height']);}}if(void 0x0===_0x5d3809)return;const _0x5a4e8a=k(_0x5c819a['editing'],this['_currentOutlineDefinitions'],_0x5d3809);_0x5a4e8a?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x5a4e8a)):this['_setActiveViewItem'](-0x1);}}function k(_0x353d33,_0x211250,_0x53eca5,_0x4c52b8=0x0,_0x27d1a7=_0x211250['length']-0x1){const _0xef9909=Math['floor'](_0x4c52b8+(_0x27d1a7-_0x4c52b8)/0x2);if(_0x27d1a7>=_0x4c52b8){const _0x3c4c87=_0x211250[_0xef9909],_0x525c02=_0x353d33['mapper']['toViewElement'](_0x3c4c87['modelElement']);if(!_0x525c02)return null;const _0x234e03=_0x353d33['view']['domConverter']['mapViewToDom'](_0x525c02);return new _0x5a0f8d(_0x234e03)['bottom']>_0x53eca5?k(_0x353d33,_0x211250,_0x53eca5,_0x4c52b8,_0xef9909-0x1):k(_0x353d33,_0x211250,_0x53eca5,_0xef9909+0x1,_0x27d1a7);}return _0xef9909<0x0?null:_0x211250[_0xef9909];}class K extends _0x170292{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[I,L];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x18a1b2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x41315c;for(const _0x18b2a4 in _0x18a1b2){const _0x46d6b3=_0x18b2a4,_0x548b23=_0x18a1b2[_0x46d6b3];if('documentOutlineLicenseKeyValid'==_0x548b23||'documentOutlineLicenseKeyInvalid'==_0x548b23||'documentOutlineLicenseKeyExpired'==_0x548b23||'documentOutlineLicenseKeyDomainLimit'==_0x548b23||'documentOutlineLicenseKeyNotAllowed'==_0x548b23||'documentOutlineLicenseKeyEvaluationLimit'==_0x548b23||'documentOutlineLicenseKeyUsageLimit'==_0x548b23){delete _0x18a1b2[_0x46d6b3],_0x41315c=_0x548b23,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x41315c&&_0x18a1b2['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x41315c&&_0x18a1b2['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x41315c&&_0x18a1b2['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x41315c&&_0x18a1b2['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x41315c&&_0x18a1b2['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x41315c&&_0x18a1b2['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class E extends _0x2d4894{['execute'](){this['editor']['model']['change'](_0xdc5b67=>{this['editor']['model']['insertObject'](_0xdc5b67['createElement']('tableOfContents'));});}['refresh'](){const _0x492e6c=this['editor']['model'],_0x2753bc=_0x492e6c['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x2753bc&&_0x492e6c['schema']['findAllowedParent'](_0x2753bc,'tableOfContents'));}}class N extends _0x170292{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2860f8=this['editor'];if(_0x2860f8['config']['get']('headingId.modelAttributeName'))return;(function(_0x4d582f){const _0xb960f0=new Map();if(_0x4d582f)return _0x4d582f['forEach'](_0x16742c=>{'paragraph'!==_0x16742c['model']&&_0xb960f0['set'](_0x16742c['view'],_0x16742c['model']);}),_0xb960f0['get']('h1')||_0xb960f0['set']('h1','heading1'),_0xb960f0;return _0xb960f0;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x454a2f,_0x3e1129)=>{this['_customUpcastHeadingsConversion'](_0x3e1129),this['_customDataDowncastHeadingsConversion'](_0x454a2f),_0x2860f8['model']['schema']['isRegistered'](_0x454a2f)&&_0x2860f8['model']['schema']['extend'](_0x454a2f,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x830848){this['editor']['conversion']['for']('upcast')['add'](_0x95db77=>_0x95db77['on']('element:'+_0x830848,(_0x272112,_0x1e1829,_0x23aaaa)=>{const {consumable:_0x161b10,writer:_0x5a4762}=_0x23aaaa,_0x105f22=_0x1e1829['viewItem']['getAttribute']('id'),_0x134c73=_0x1e1829['modelRange']['getContainedElement']();if(_0x134c73)return _0x105f22&&_0x105f22['length']||_0x134c73['hasAttribute']('headingId')?void(_0x161b10['consume'](_0x1e1829['viewItem'],{'attributes':['id']})&&_0x5a4762['setAttribute']('headingId',_0x105f22,_0x134c73)):(_0x161b10['consume'](_0x1e1829['viewItem'],{'attributes':['id']}),void _0x5a4762['setAttribute']('headingId',_0x5a68c1(),_0x134c73));},{'priority':_0x5f53d5['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0xae9c13){this['editor']['conversion']['for']('downcast')['add'](_0x433d58=>_0x433d58['on']('attribute:headingId:'+_0xae9c13,(_0x18ba79,_0x4a755b,_0x43dd2e)=>{if(!_0x43dd2e['consumable']['consume'](_0x4a755b['item'],_0x18ba79['name']))return;const _0x1f776e=_0x4a755b['item']['getAttribute']('headingId'),_0x51e17f=_0x43dd2e['mapper']['toViewElement'](_0x4a755b['item']);_0x43dd2e['writer']['setAttribute']('id',_0x1f776e,_0x51e17f);}));}['_registerHeadingIdAttributePostfixer'](){const _0x3f1a5b=this['editor'],_0x35308a=new Set(),_0x18c8c=new Set();function _0x4eaf8b(_0x4897f1,_0x56dbe7){const _0x520690=_0x5a68c1();return _0x18c8c['add'](_0x520690),_0x4897f1['setAttribute']('headingId',_0x520690,_0x56dbe7),_0x520690;}function _0x2e0e66(_0x42f10f,_0x53bcb6){_0x42f10f['removeAttribute']('headingId',_0x53bcb6);}_0x3f1a5b['model']['document']['registerPostFixer'](_0x4f4bd6=>{const _0xa0a989=_0x3f1a5b['model']['document']['differ']['getChanges']();let _0x2d13e0=!0x1;for(const _0x3d484c of _0xa0a989)if('insert'==_0x3d484c['type']&&_0x3d484c['name']){if(T(_0x3d484c['name'])){const _0x16cd7a=_0x3d484c['attributes']['get']('headingId');'string'==typeof _0x16cd7a?_0x35308a['has'](_0x16cd7a)?(_0x4eaf8b(_0x4f4bd6,_0x3d484c['position']['nodeAfter']),_0x2d13e0=!0x0):_0x18c8c['add'](_0x16cd7a):(_0x4eaf8b(_0x4f4bd6,_0x3d484c['position']['nodeAfter']),_0x2d13e0=!0x0);}else'string'==typeof _0x3d484c['attributes']['get']('headingId')&&(_0x2e0e66(_0x4f4bd6,_0x3d484c['position']['nodeAfter']),_0x2d13e0=!0x0);}else{if('remove'==_0x3d484c['type']){const _0x70205f=_0x3d484c['attributes']['get']('headingId');'string'==typeof _0x70205f&&_0x35308a['delete'](_0x70205f);}}return _0x2d13e0;}),_0x3f1a5b['model']['document']['on']('change',()=>{_0x18c8c['forEach'](_0x24794d=>_0x35308a['add'](_0x24794d)),_0x18c8c['clear']();});}}function T(_0x545855){return!!_0x545855['match'](/heading\d/);}class A extends _0x170292{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x24eb4d,I,N];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x3295d2){super(_0x3295d2),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x3e319f=this['editor'],_0x3eeffa=_0x3e319f['editing']['view']['document'];_0x3e319f['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x3e319f['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x3eeffa,'click',(_0x589a3b,_0x1feec0)=>{if(!_0x1feec0['target'])return;const _0x43f68a=_0x1feec0['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x43f68a)&&(_0x1feec0['domEvent']['preventDefault'](),_0x589a3b['stop'](),this['_handleScrollToHeading'](_0x43f68a));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x3e319f['commands']['add']('insertTableOfContents',new E(_0x3e319f));const _0x1e7941=_0x3e319f['config']['get']('tableOfContents.headings');if(_0x1e7941&&_0x1e7941['length'])this['listenTo'](_0x3e319f['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x1e7941),this['_updateTableOfContentsElements']();});else _0x3e319f['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x801b99,_0x1610c8)=>{this['_currentOutlineDefinitions']=_0x1610c8['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x3e319f['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x43d773){const _0x18d116=_0x39c131([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]),_0x59d217=0x6b9b05fd,_0x5bf3a4=0x6b9c8c3d^_0x59d217,_0x32847e=window[_0x39c131([0x44,0x61,0x74,0x65])][_0x39c131([0x6e,0x6f,0x77])](),_0xc54c14=_0x43d773[_0x39c131([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x23913f=new window[(_0x39c131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x186f79=>{_0xc54c14[_0x39c131([0x6f,0x6e,0x63,0x65])](_0x39c131([0x72,0x65,0x61,0x64,0x79]),_0x186f79);}),_0x5eaf98={[_0x39c131([0x6b,0x74,0x79])]:_0x39c131([0x45,0x43]),[_0x39c131([0x75,0x73,0x65])]:_0x39c131([0x73,0x69,0x67]),[_0x39c131([0x63,0x72,0x76])]:_0x39c131([0x50,0x2d,0x32,0x35,0x36]),[_0x39c131([0x78])]:_0x39c131([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]),[_0x39c131([0x79])]:_0x39c131([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]),[_0x39c131([0x61,0x6c,0x67])]:_0x39c131([0x45,0x53,0x32,0x35,0x36])},_0x422710=_0xc54c14[_0x39c131([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x39c131([0x67,0x65,0x74])](_0x39c131([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xdff27(){let _0x18f3ff,_0x5b567b=null,_0x3fde97=null;try{if(_0x422710==_0x39c131([0x47,0x50,0x4c]))return _0x39c131([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x18f3ff=_0x1d581b(),!_0x18f3ff)return _0x39c131([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x18f3ff[_0x39c131([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3fde97=_0x3260f2(_0x18f3ff[_0x39c131([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x18f3ff[_0x39c131([0x6a,0x74,0x69])])),await _0x31e4e2()?_0x76314e()?_0x1f5c24()?_0x39c131([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c947b()?(_0x18f3ff[_0x39c131([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39c131([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b567b=_0x4b0e59(_0x39c131([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x85a932()):_0x39c131([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x39c131([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x39c131([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x39c131([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f5c24(){const _0x4cf0ec=[_0x39c131([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x39c131([0x74,0x72,0x69,0x61,0x6c])][_0x39c131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f3ff[_0x39c131([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32847e/0x3e8:0xe10*_0x5bf3a4;return _0x18f3ff[_0x39c131([0x65,0x78,0x70])]<_0x4cf0ec;}function _0x76314e(){const _0x350c37=_0x18f3ff[_0x39c131([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x350c37&&(!!_0x350c37[_0x39c131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c131([0x2a]))||(!!_0x350c37[_0x39c131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c131([0x54,0x4f,0x43]))||(!!_0x350c37[_0x39c131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c131([0x50,0x50]))||!(!_0x350c37[_0x39c131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c131([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x12f9ea()))));}function _0x4c947b(){const _0x2ba46a=_0x18f3ff[_0x39c131([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ba46a||0x0==_0x2ba46a[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b9057}=new URL(window[_0x39c131([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ba46a[_0x39c131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b9057))return!0x0;const _0x5d82ce=_0x5b9057[_0x39c131([0x73,0x70,0x6c,0x69,0x74])](_0x39c131([0x2e]));return _0x2ba46a[_0x39c131([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ac12a=>_0x4ac12a[_0x39c131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39c131([0x2a])))[_0x39c131([0x6d,0x61,0x70])](_0x11b99b=>_0x11b99b[_0x39c131([0x73,0x70,0x6c,0x69,0x74])](_0x39c131([0x2e])))[_0x39c131([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x599347=>_0x599347[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d82ce[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39c131([0x6d,0x61,0x70])](_0x1637a2=>Array(_0x5d82ce[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1637a2[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39c131([0x66,0x69,0x6c,0x6c])](_0x1637a2[0x0]===_0x39c131([0x2a])?_0x39c131([0x2a]):'')[_0x39c131([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1637a2))[_0x39c131([0x73,0x6f,0x6d,0x65])](_0x1a1fea=>_0x5d82ce[_0x39c131([0x65,0x76,0x65,0x72,0x79])]((_0x26b688,_0x187af4)=>_0x1a1fea[_0x187af4]===_0x26b688||_0x1a1fea[_0x187af4]===_0x39c131([0x2a])));}function _0x85a932(){return _0x5b567b&&_0x3fde97?new window[(_0x39c131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2895f7,_0x35b10b)=>{_0x5b567b[_0x39c131([0x74,0x68,0x65,0x6e])](_0x2895f7,_0x35b10b),_0x3fde97[_0x39c131([0x74,0x68,0x65,0x6e])](_0x48cf7e=>{_0x48cf7e!=_0x39c131([0x56,0x61,0x6c,0x69,0x64])&&_0x2895f7(_0x48cf7e);},_0x35b10b);}):_0x5b567b||_0x3fde97||_0x39c131([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3260f2(_0x3d42b7,_0x2bde41){return new window[(_0x39c131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x480984=>{if(_0x3c2512())return _0x480984(_0x39c131([0x56,0x61,0x6c,0x69,0x64]));_0x3da08e(),_0xc54c14[_0x39c131([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x39c131([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x372cb2=!0x1;const _0x31e99a=_0x5a68c1();function _0x3c40f4(_0x1b6290){return!!_0x1b6290&&(typeof _0x1b6290===_0x39c131([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b6290===_0x39c131([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b6290[_0x39c131([0x74,0x68,0x65,0x6e])]===_0x39c131([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b6290[_0x39c131([0x63,0x61,0x74,0x63,0x68])]===_0x39c131([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x491321(_0x1e1cf8){_0x41241d(_0x1e1cf8)[_0x39c131([0x74,0x68,0x65,0x6e])](_0x53d4cf=>{if(!_0x53d4cf||_0x53d4cf[_0x39c131([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x39c131([0x6f,0x6b]))return _0x39c131([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x135349(_0x2a0eee(_0x31e99a+_0x2bde41))!=_0x53d4cf[_0x39c131([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x39c131([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x39c131([0x56,0x61,0x6c,0x69,0x64]);})[_0x39c131([0x74,0x68,0x65,0x6e])](_0x4b6cb9=>(_0x214b37(),_0x4b6cb9),()=>{const _0x17e79e=_0x10b205();return null==_0x17e79e?(_0x214b37(),_0x39c131([0x56,0x61,0x6c,0x69,0x64])):_0x39c131(_0x32847e-_0x17e79e>(0x4f9781fd^_0x59d217)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x39c131([0x74,0x68,0x65,0x6e])](_0x480984)[_0x39c131([0x63,0x61,0x74,0x63,0x68])](()=>{_0x480984(_0x39c131([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xcbb302=0x6badeb7d^_0x59d217;function _0x214b37(){const _0x30e9e7=_0x39c131([0x6c,0x6c,0x63,0x74,0x2d])+_0x135349(_0x2a0eee(_0x3d42b7)),_0x4816de=_0x38a948(_0x135349(window[_0x39c131([0x4d,0x61,0x74,0x68])][_0x39c131([0x63,0x65,0x69,0x6c])](_0x32847e/_0xcbb302)));window[_0x39c131([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39c131([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30e9e7,_0x4816de);}function _0x10b205(){const _0x23e8a5=_0x39c131([0x6c,0x6c,0x63,0x74,0x2d])+_0x135349(_0x2a0eee(_0x3d42b7)),_0x3f284e=window[_0x39c131([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39c131([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23e8a5);return _0x3f284e?window[_0x39c131([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38a948(_0x3f284e),0x10)*_0xcbb302:null;}function _0x41241d(_0x5dd6a){return new window[(_0x39c131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x569e2e,_0x343317)=>{_0x5dd6a[_0x39c131([0x74,0x68,0x65,0x6e])](_0x569e2e,_0x343317),window[_0x39c131([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x343317,0x6b9ad13d^_0x59d217);});}}_0xc54c14[_0x39c131([0x6f,0x6e])](_0x39c131([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa03010,_0x5c0fdd)=>{if(_0x5c0fdd[0x0]!=_0x3d42b7)return _0x480984(_0x39c131([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c0fdd[0x1]={..._0x5c0fdd[0x1],[_0x39c131([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31e99a};},{[_0x39c131([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39c131([0x68,0x69,0x67,0x68])}),_0xc54c14[_0x39c131([0x6f,0x6e])](_0x39c131([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2874e7=>{_0x3c40f4(_0x2874e7[_0x39c131([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x372cb2=!0x0,_0x491321(_0x2874e7[_0x39c131([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x39c131([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39c131([0x6c,0x6f,0x77])}),_0x23913f[_0x39c131([0x74,0x68,0x65,0x6e])](()=>{_0x372cb2||_0x480984(_0x39c131([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c2512(){return _0xc54c14[_0x39c131([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39c131([0x76,0x69,0x65,0x77])][_0x39c131([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x39c131([0x61,0x75,0x74,0x6f]);}function _0x3da08e(){_0xc54c14[_0x39c131([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39c131([0x76,0x69,0x65,0x77])][_0x39c131([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39c131([0x61,0x75,0x74,0x6f]);}}function _0x4b0e59(_0x1021a4){const _0x179757=[new window[(_0x39c131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d0fdd=>setTimeout(_0x2d0fdd,0x6b923b31^_0x59d217)),_0x23913f[_0x39c131([0x74,0x68,0x65,0x6e])](()=>new window[(_0x39c131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aad36=>{let _0x24bc5a=0x0;_0xc54c14[_0x39c131([0x6d,0x6f,0x64,0x65,0x6c])][_0x39c131([0x6f,0x6e])](_0x39c131([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50528a,_0x2a9d5d)=>{_0x2a9d5d[0x0][_0x39c131([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x24bc5a++,_0x24bc5a==(0x6b9b0015^_0x59d217)&&(_0x1aad36(),_0x50528a[_0x39c131([0x6f,0x66,0x66])]());});}))];return window[_0x39c131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39c131([0x72,0x61,0x63,0x65])](_0x179757)[_0x39c131([0x74,0x68,0x65,0x6e])](()=>_0x1021a4);}async function _0x2f3532(){await _0x23913f,_0xc54c14[_0x39c131([0x6d,0x6f,0x64,0x65,0x6c])][_0x39c131([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3fccb7,_0xc54c14[_0x39c131([0x6d,0x6f,0x64,0x65,0x6c])][_0x39c131([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3fccb7,_0xc54c14[_0x39c131([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x39c131([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x12f9ea(){return window[_0x39c131([0x67,0x6c,0x6f,0x62])]&&window[_0x39c131([0x67,0x6c,0x6f,0x62])][_0x39c131([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x6475e(_0x292151){const _0x55e8aa=_0x42e4ff();_0xc54c14[_0x55e8aa]=_0x39c131([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])+_0x292151,_0x292151!=_0x39c131([0x56,0x61,0x6c,0x69,0x64])&&_0x2f3532();}function _0x42e4ff(){const _0x2f7f54=window[_0x39c131([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x39c131([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x39c131([0x6e,0x6f,0x77])]())[_0x39c131([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x39c131([0x2e]),'');let _0x11c92b=_0x39c131([0x6d]);for(let _0x1b629d=0x0;_0x1b629d<_0x2f7f54[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b629d+=0x2){let _0x5ef0b4=window[_0x39c131([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f7f54[_0x39c131([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b629d,_0x1b629d+0x2));_0x5ef0b4>=_0x18d116[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ef0b4-=_0x18d116[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11c92b+=_0x18d116[_0x5ef0b4];}return _0x11c92b;}function _0x1d581b(){const _0x1994aa=_0x422710[_0x39c131([0x73,0x70,0x6c,0x69,0x74])](_0x39c131([0x2e]));if(0x3!=_0x1994aa[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x59353f(_0x1994aa[0x1]);function _0x59353f(_0x3f7c4c){const _0x1115c7=_0x1ddf1e(_0x3f7c4c);return _0x1115c7&&_0x14396a()?_0x1115c7:null;function _0x14396a(){const _0xc79bcb=_0x1115c7[_0x39c131([0x6a,0x74,0x69])],_0x155406=window[_0x39c131([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc79bcb[_0x39c131([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc79bcb[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xfa4681={..._0x1115c7,[_0x39c131([0x6a,0x74,0x69])]:_0xc79bcb[_0x39c131([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc79bcb[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xfa4681[_0x39c131([0x76,0x63])],_0x2a0eee(_0xfa4681)==_0x155406;}}}async function _0x31e4e2(){let _0x27d912=!0x0;try{const _0x255eef=_0x422710[_0x39c131([0x73,0x70,0x6c,0x69,0x74])](_0x39c131([0x2e])),[_0x1fbaf8,_0x1bb7a4,_0x3a5f7d]=_0x255eef;return _0x440bd5(_0x1fbaf8),await _0x240e57(_0x1fbaf8,_0x1bb7a4,_0x3a5f7d),_0x27d912;}catch{return!0x1;}function _0x440bd5(_0xd2956e){const _0x27a69b=_0x1ddf1e(_0xd2956e);_0x27a69b&&_0x27a69b[_0x39c131([0x61,0x6c,0x67])]==_0x39c131([0x45,0x53,0x32,0x35,0x36])||(_0x27d912=!0x1);}async function _0x240e57(_0x36449f,_0xa90ec8,_0x43a890){const _0x35b15d=window[_0x39c131([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x39c131([0x66,0x72,0x6f,0x6d])](_0x1c515a(_0x43a890),_0x290a01=>_0x290a01[_0x39c131([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xab7dd=new window[(_0x39c131([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x39c131([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36449f+_0x39c131([0x2e])+_0xa90ec8),_0x1bf462=window[_0x39c131([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x39c131([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1bf462)return;const _0x53c288=await _0x1bf462[_0x39c131([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x39c131([0x6a,0x77,0x6b]),_0x5eaf98,{[_0x39c131([0x6e,0x61,0x6d,0x65])]:_0x39c131([0x45,0x43,0x44,0x53,0x41]),[_0x39c131([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x39c131([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x39c131([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1bf462[_0x39c131([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x39c131([0x6e,0x61,0x6d,0x65])]:_0x39c131([0x45,0x43,0x44,0x53,0x41]),[_0x39c131([0x68,0x61,0x73,0x68])]:{[_0x39c131([0x6e,0x61,0x6d,0x65])]:_0x39c131([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53c288,_0x35b15d,_0xab7dd)||(_0x27d912=!0x1);}}function _0x1ddf1e(_0x2382ea){return _0x2382ea[_0x39c131([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x39c131([0x65,0x79]))?JSON[_0x39c131([0x70,0x61,0x72,0x73,0x65])](_0x1c515a(_0x2382ea)):null;}function _0x1c515a(_0x4724d2){return window[_0x39c131([0x61,0x74,0x6f,0x62])](_0x4724d2[_0x39c131([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x39c131([0x2b]))[_0x39c131([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x39c131([0x2f])));}function _0x2a0eee(_0x5af6e6){let _0x422ec9=0x1505;function _0x4c301b(_0x1c4aab){for(let _0x425beb=0x0;_0x425beb<_0x1c4aab[_0x39c131([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x425beb++){const _0xfef490=_0x1c4aab[_0x39c131([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x425beb);_0x422ec9=(_0x422ec9<<0x5)+_0x422ec9+_0xfef490,_0x422ec9&=_0x422ec9;}}function _0x59fc4a(_0x2bfe4d){Array[_0x39c131([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2bfe4d)?_0x2bfe4d[_0x39c131([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59fc4a):_0x2bfe4d&&typeof _0x2bfe4d==_0x39c131([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x39c131([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2bfe4d)[_0x39c131([0x73,0x6f,0x72,0x74])]()[_0x39c131([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xa74d44,_0x200864])=>{_0x4c301b(_0xa74d44),_0x59fc4a(_0x200864);}):_0x4c301b(window[_0x39c131([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2bfe4d));}return _0x59fc4a(_0x5af6e6),_0x422ec9>>>0x0;}function _0x135349(_0x550a7f){return _0x550a7f[_0x39c131([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x39c131([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x39c131([0x30]));}function _0x38a948(_0x436d2e){return _0x436d2e[_0x39c131([0x73,0x70,0x6c,0x69,0x74])]('')[_0x39c131([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x39c131([0x6a,0x6f,0x69,0x6e])]('');}function _0x3fccb7(){}function _0x39c131(_0x475f97){return _0x475f97['map'](_0x30b858=>String['fromCharCode'](_0x30b858))['join']('');}_0x6475e(await _0xdff27());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x28625d=>{'$graveyard'!==_0x28625d['rootName']&&this['editor']['editing']['reconvertItem'](_0x28625d);});}['_trackNewToCElements'](){for(const _0x4507d0 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x4507d0['type']||'tableOfContents'!==_0x4507d0['name'])return;this['_tableOfContentsElements']['add'](_0x4507d0['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x3ee8aa){const _0x2eb5c0=this['editor'],_0x3e44cb=[];for(const _0x4a43c2 of _0x2eb5c0['model']['document']['getRootNames']())_0x24826f(_0x2eb5c0['model']['document']['getRoot'](_0x4a43c2));function _0x24826f(_0x4ad8a){for(const _0x564ed8 of _0x4ad8a['getChildren']())_0x564ed8['is']('element')&&(_0x3ee8aa['includes'](_0x564ed8['name'])&&_0x3e44cb['push']({'level':_0x3ee8aa['indexOf'](_0x564ed8['name'])+0x1,'text':v(_0x564ed8),'modelElement':_0x564ed8}),_0x24826f(_0x564ed8));}return _0x3e44cb;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x281196=this['editor']['conversion'];_0x281196['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x281196['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x2a1c14,{writer:_0xdf83b})=>this['_createTableOfContents'](_0xdf83b,!0x0)}),_0x281196['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x58b794,{writer:_0xcea193})=>{this['_tableOfContentsElements']['add'](_0x58b794);const _0x56e481=this['_createTableOfContents'](_0xcea193);return _0x344d43(_0x56e481,_0xcea193,{'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'](_0x444fa1,_0x52b528=!0x1){const {locale:_0x12ff4e}=this['editor'],_0x5b15d6=_0x444fa1['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x52b528&&{'data-table-of-contents-label':C(_0x12ff4e,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x52b528&&_0x444fa1['insert'](_0x444fa1['createPositionAt'](_0x5b15d6,'end'),_0x444fa1['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x444fa1['createText'](C(_0x12ff4e,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x51111d=_0x52b528?'':'['+C(_0x12ff4e,'Empty\x20heading')+']';let _0x2e73a1=_0x5b15d6;return this['_currentOutlineDefinitions']['forEach']((_0x10ed15,_0x4ce210,_0x2950c6)=>{const _0x495139=this['editor']['model']['hasContent'](_0x10ed15['modelElement'],{'ignoreWhitespaces':!0x0}),_0x1756f2=_0x495139?_0x10ed15['text']:_0x51111d,_0x620215=_0x10ed15['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x44355d=_0x444fa1['createContainerElement']('a',{'href':'#'+_0x620215,...!_0x52b528&&{'tabindex':'-1'}},[_0x444fa1['createText'](_0x1756f2)]),_0xc55fcb=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x444fa1['setCustomProperty']('tableOfContentsHeadingIndex',_0x4ce210,_0x44355d);const _0x484331=_0x444fa1['createContainerElement']('li',null,[_0x495139||!_0x52b528&&_0xc55fcb?_0x44355d:_0x444fa1['createText']('')]),_0x2cd050=_0x4ce210?_0x2950c6[_0x4ce210-0x1]['level']:0x0,_0xc5485=Math['abs'](_0x10ed15['level']-_0x2cd050);if(_0x10ed15['level']>_0x2cd050){const _0x47fdad=P(_0x484331,_0xc5485,_0x444fa1);_0x444fa1['insert'](_0x444fa1['createPositionAt'](_0x2e73a1,'end'),_0x47fdad);}else{const _0x56e593=function(_0x40ea43,_0x30f38e){return _0x40ea43['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x5c07b2=>_0x5c07b2['is']('element','ol'))[_0x30f38e];}(_0x2e73a1,_0xc5485);_0x444fa1['insert'](_0x444fa1['createPositionAt'](_0x56e593,'end'),_0x484331);}_0x2e73a1=_0x484331;}),_0x5b15d6;}['_handleScrollToHeading'](_0x9fafe){const _0x4a74dd=this['_currentOutlineDefinitions'][_0x9fafe]['modelElement'];this['editor']['model']['change'](_0x283644=>{_0x283644['setSelection'](_0x4a74dd,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x5548b3,_0x154af1)=>{const _0x1ca948=_0x154af1['mapper'],_0x23f45a=_0x1ca948['findMappedViewAncestor'](_0x154af1['viewPosition']),_0x586f98=_0x1ca948['toModelElement'](_0x23f45a);_0x586f98['is']('element','tableOfContents')&&(_0x154af1['modelPosition']=this['editor']['model']['createPositionAt'](_0x586f98,0x0),_0x5548b3['stop']());};}}function P(_0x13872a,_0x5788e6,_0x4d80ea){return 0x1===_0x5788e6?_0x4d80ea['createContainerElement']('ol',null,[_0x13872a]):_0x4d80ea['createContainerElement']('ol',null,[_0x4d80ea['createContainerElement']('li',null,[P(_0x13872a,_0x5788e6-0x1,_0x4d80ea)])]);}class D extends _0x170292{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2225b7=this['editor'];_0x2225b7['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x2b297d=this['_createButton'](_0x2d886d);return _0x2b297d['tooltip']=!0x0,_0x2b297d;}),_0x2225b7['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x52938e)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1e8ad4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x224511;for(const _0x3523eb in _0x1e8ad4){const _0x282d5=_0x3523eb,_0x4cba13=_0x1e8ad4[_0x282d5];if('tableOfContentsLicenseKeyValid'==_0x4cba13||'tableOfContentsLicenseKeyInvalid'==_0x4cba13||'tableOfContentsLicenseKeyExpired'==_0x4cba13||'tableOfContentsLicenseKeyDomainLimit'==_0x4cba13||'tableOfContentsLicenseKeyNotAllowed'==_0x4cba13||'tableOfContentsLicenseKeyEvaluationLimit'==_0x4cba13||'tableOfContentsLicenseKeyUsageLimit'==_0x4cba13){delete _0x1e8ad4[_0x282d5],_0x224511=_0x4cba13,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x224511&&_0x1e8ad4['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x224511&&_0x1e8ad4['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x224511&&_0x1e8ad4['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x224511&&_0x1e8ad4['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x224511&&_0x1e8ad4['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x224511&&_0x1e8ad4['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x338ce5){const _0x5104fe=this['editor'],_0x27e46c=_0x5104fe['locale'],_0x29472b=_0x5104fe['commands']['get']('insertTableOfContents'),_0x5e0196=new _0x338ce5(_0x27e46c);return _0x5e0196['set']({'label':C(_0x27e46c,'Table\x20of\x20contents'),'icon':_0x3f4ec9}),_0x5e0196['bind']('isEnabled')['to'](_0x29472b,'isEnabled'),this['listenTo'](_0x5e0196,'execute',()=>{_0x5104fe['execute']('insertTableOfContents'),_0x5104fe['editing']['view']['focus']();}),_0x5e0196;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class H extends _0x170292{static get['requires'](){return[A,D];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{K as DocumentOutline,L as DocumentOutlineUI,I as DocumentOutlineUtils,N as HeadingId,H as TableOfContents,E as TableOfContentsCommand,A as TableOfContentsEditing,D as TableOfContentsUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-document-outline",
3
- "version": "48.1.0-alpha.4",
3
+ "version": "48.1.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.1.0-alpha.4",
25
- "@ckeditor/ckeditor5-engine": "48.1.0-alpha.4",
26
- "@ckeditor/ckeditor5-heading": "48.1.0-alpha.4",
27
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.4",
28
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.4",
29
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.4",
30
- "@ckeditor/ckeditor5-widget": "48.1.0-alpha.4",
24
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.5",
25
+ "@ckeditor/ckeditor5-engine": "48.1.0-alpha.5",
26
+ "@ckeditor/ckeditor5-heading": "48.1.0-alpha.5",
27
+ "@ckeditor/ckeditor5-icons": "48.1.0-alpha.5",
28
+ "@ckeditor/ckeditor5-ui": "48.1.0-alpha.5",
29
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.5",
30
+ "@ckeditor/ckeditor5-widget": "48.1.0-alpha.5",
31
31
  "es-toolkit": "1.45.1"
32
32
  },
33
33
  "files": [