@ckeditor/ckeditor5-document-outline 48.1.0-alpha.7 → 48.1.0-alpha.8

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 _0x3d6086,Command as _0xf6d9c3}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x60ebc2,throttle as _0x5a1844}from'es-toolkit/compat';import{ModelText as _0x140f28,ModelTreeWalker as _0x45f7c7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x1bf28b,diffToChanges as _0x89d6bd,scrollAncestorsToShowTarget as _0x23afea,CKEditorError as _0x233ce9,global as _0x3ac437,Rect as _0x267f00,uid as _0xf3bdb5,priorities as _0x73b274}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x5353d4,ButtonView as _0x3ede79,MenuBarMenuListItemButtonView as _0x1d2695}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x237496,toWidget as _0x1a11c2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x2d86d3}from'@ckeditor/ckeditor5-icons/dist/index.js';function v(_0x5a5560){let _0x474f75='';for(const _0x4956b2 of _0x5a5560['getChildren']())_0x4956b2 instanceof _0x140f28&&(_0x474f75+=_0x4956b2['data']);return _0x474f75;}class I extends _0x3d6086{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x5785c0=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x553681=[];_0x5785c0['model']['document']['on']('change',_0x60ebc2(()=>{const _0x443e78=_0x553681;_0x553681=this['_getOutlineDefinitions']();const _0x3684c5=_0x1bf28b(_0x443e78,_0x553681,(_0x34b31c,_0x436931)=>_0x34b31c['level']===_0x436931['level']&&_0x34b31c['text']===_0x436931['text']&&_0x34b31c['modelElement']===_0x436931['modelElement']),_0x29ff9c=_0x89d6bd(_0x3684c5,_0x553681),_0x2e39e1=this['_getActiveHeading'](),_0x4b0c19=_0x553681['findIndex'](_0x1aed9c=>_0x1aed9c['modelElement']===_0x2e39e1);_0x29ff9c['length']&&this['fire']('change',{'outlineDefinitions':_0x553681,'activeItemIndex':_0x4b0c19,'outlineChanges':_0x29ff9c}),this['fire']('activeItemIndex',{'index':_0x4b0c19});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x1d55f3=this['editor'],_0x399743=[],_0x3b696c=this['_headingNames'];for(const _0x2d26a4 of _0x1d55f3['model']['document']['getRootNames']())_0x184b37(_0x1d55f3['model']['document']['getRoot'](_0x2d26a4));function _0x184b37(_0x4bf9b3){for(const _0x182817 of _0x4bf9b3['getChildren']())_0x182817['is']('element')&&(_0x3b696c['includes'](_0x182817['name'])&&_0x399743['push']({'level':_0x3b696c['indexOf'](_0x182817['name'])+0x1,'text':v(_0x182817),'modelElement':_0x182817}),_0x184b37(_0x182817));}return _0x399743;}['_getActiveHeading'](){const _0x1dd7b0=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x2a01de=new _0x45f7c7({'direction':'backward','startPosition':_0x1dd7b0});for(const _0x45e28d of _0x2a01de)if(_0x45e28d['item']['is']('element')&&this['_headingNames']['includes'](_0x45e28d['item']['name']))return _0x45e28d['item'];}['_getHeadingNames'](){const _0x345d76=this['editor']['config']['get']('documentOutline.headings');return _0x345d76||function(_0x21d921){const _0x3b5d8c=_0x21d921['config']['get']('heading.options');return _0x3b5d8c?_0x3b5d8c['reduce']((_0x59777d,_0x13e41d)=>('paragraph'!==_0x13e41d['model']&&_0x59777d['push'](_0x13e41d['model']),_0x59777d),[]):_0x21d921['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x24636a=this['editor'],_0x50fa6f=['h1','h2','h3','h4','h5','h6'],_0x5705b4=[];for(const _0x390a59 of _0x50fa6f){const _0x3771d9=_0x24636a['editing']['view']['domConverter']['domToView'](document['createElement'](_0x390a59)),_0x2292a=_0x24636a['data']['toModel'](_0x3771d9)['getChild'](0x0);_0x2292a?.['is']('element')&&_0x5705b4['push'](_0x2292a['name']);}this['_headingNames']=_0x5705b4;}}function C(_0x3378ee,_0x46dc70){const t=_0x3378ee['t'];switch(_0x46dc70){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 _0x46dc70;}}class _ extends _0x5353d4{constructor(_0x48695e,_0x2b3f10=!0x1){super(_0x48695e);const _0x40dc39=this['bindTemplate'],_0x704205=_0x2b3f10?'['+C(_0x48695e,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x307cc4=>!_0x307cc4),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x40dc39['to']('level',_0x35aa12=>'ck-document-outline__item_level-'+_0x35aa12),_0x40dc39['if']('isActive','ck-document-outline__item_active'),_0x40dc39['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x40dc39['to']('text')},'children':[{'text':_0x40dc39['to']('text',_0x55c050=>_0x55c050||_0x704205)}],'on':{'click':_0x40dc39['to']('click')}});}}class x extends _0x5353d4{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x13b17b,_0x19d57d=!0x1,_0xbceca3){super(_0x13b17b),this['showEmptyHeadingText']=_0x19d57d,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0xbceca3,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x3eed92,_0xd4ab68,_0x16ac70,_0x336179)=>{this['_setActiveItem'](_0x336179,_0x16ac70);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x13b17b['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x13b17b,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x31e1c1){_0x31e1c1['forEach'](_0x11b4f6=>{'insert'==_0x11b4f6['type']?this['_insertItem'](_0x11b4f6['index'],..._0x11b4f6['values']):'delete'==_0x11b4f6['type']&&this['_deleteItem'](_0x11b4f6['index'],_0x11b4f6['howMany']);});}['_setActiveItem'](_0x385aa6,_0x155fb5){if(-0x1!==_0x385aa6){const _0x106bfd=this['items']['get'](_0x385aa6);_0x106bfd&&(_0x106bfd['isActive']=!0x1);}-0x1!==_0x155fb5&&(this['items']['get'](_0x155fb5)['isActive']=!0x0,this['_scrollToItem'](_0x155fb5));}['_insertItem'](_0x389f35,..._0x2453be){const _0x4bba14=_0x2453be['map']((_0x43c78b,_0x4d1ce6)=>{const _0x32b382=new _(this['locale'],this['showEmptyHeadingText']);return _0x32b382['text']=_0x43c78b['text'],_0x32b382['level']=_0x43c78b['level'],_0x389f35+_0x4d1ce6===this['activeItemIndex']&&(_0x32b382['isActive']=!0x0),_0x32b382;});this['items']['addMany'](_0x4bba14,_0x389f35);}['_deleteItem'](_0x2d6c58,_0x84df3c){do{this['items']['remove'](_0x2d6c58);}while(--_0x84df3c);}['_handleItemClick'](_0x3e0025){const _0x1bbed2=this['items']['getIndex'](_0x3e0025['source']);this['fire']('itemSelected',_0x1bbed2);}['_scrollToItem'](_0x36f1a5){_0x23afea(this['items']['get'](_0x36f1a5)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class L extends _0x3d6086{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x287074){super(_0x287074),this['view']=new x(_0x287074['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x5a1844(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x3a4d5b=this['editor'],_0x193651=_0x3a4d5b['plugins']['get']('DocumentOutlineUtils');let _0x67b185=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x3a4d5b['config']['get']('documentOutline.container'))throw new _0x233ce9('document-outline-container-not-provided',{'editor':_0x3a4d5b});_0x3a4d5b['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x193651['on']('change',this['_handleOutlineChange']['bind'](this)),_0x193651['on']('activeItemIndex',(_0x5d791f,{index:_0x5cabeb})=>this['_setActiveViewItem'](_0x5cabeb)),this['view']['on']('itemSelected',(_0x13237b,_0x3bcd93)=>{_0x67b185=!0x0,this['_handleItemSelected'](_0x3bcd93);}),this['view']['listenTo'](_0x3ac437['document'],'scroll',()=>{_0x67b185?_0x67b185=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x3ac437['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x1b7203){const _0x293a15=_0x199b36([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]),_0x3736a2=0x1cb264a3,_0x4921cd=0x1cb5ed7b^_0x3736a2,_0x1cf7a0=window[_0x199b36([0x44,0x61,0x74,0x65])][_0x199b36([0x6e,0x6f,0x77])](),_0x115e31=_0x1b7203[_0x199b36([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x436b62=new window[(_0x199b36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x158770=>{_0x115e31[_0x199b36([0x6f,0x6e,0x63,0x65])](_0x199b36([0x72,0x65,0x61,0x64,0x79]),_0x158770);}),_0x339fd0={[_0x199b36([0x6b,0x74,0x79])]:_0x199b36([0x45,0x43]),[_0x199b36([0x75,0x73,0x65])]:_0x199b36([0x73,0x69,0x67]),[_0x199b36([0x63,0x72,0x76])]:_0x199b36([0x50,0x2d,0x32,0x35,0x36]),[_0x199b36([0x78])]:_0x199b36([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]),[_0x199b36([0x79])]:_0x199b36([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]),[_0x199b36([0x61,0x6c,0x67])]:_0x199b36([0x45,0x53,0x32,0x35,0x36])},_0x468c5e=_0x115e31[_0x199b36([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x199b36([0x67,0x65,0x74])](_0x199b36([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d2679(){let _0x2751cd,_0x5d51bb=null,_0x317cfd=null;try{if(_0x468c5e==_0x199b36([0x47,0x50,0x4c]))return _0x199b36([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2751cd=_0xdf6c20(),!_0x2751cd)return _0x199b36([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2751cd[_0x199b36([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x317cfd=_0x262cfb(_0x2751cd[_0x199b36([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2751cd[_0x199b36([0x6a,0x74,0x69])])),await _0x3e0a73()?_0x2104f0()?_0x46b6dd()?_0x199b36([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe3e5bb()?(_0x2751cd[_0x199b36([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x199b36([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d51bb=_0x2cdb4a(_0x199b36([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x270714()):_0x199b36([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x199b36([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x199b36([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x199b36([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46b6dd(){const _0xd50065=[_0x199b36([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x199b36([0x74,0x72,0x69,0x61,0x6c])][_0x199b36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2751cd[_0x199b36([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1cf7a0/0x3e8:0xe10*_0x4921cd;return _0x2751cd[_0x199b36([0x65,0x78,0x70])]<_0xd50065;}function _0x2104f0(){const _0x5bda68=_0x2751cd[_0x199b36([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5bda68&&(!!_0x5bda68[_0x199b36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x199b36([0x2a]))||(!!_0x5bda68[_0x199b36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x199b36([0x44,0x4f]))||(!!_0x5bda68[_0x199b36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x199b36([0x50,0x50]))||!(!_0x5bda68[_0x199b36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x199b36([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x276277()))));}function _0xe3e5bb(){const _0x21308a=_0x2751cd[_0x199b36([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x21308a||0x0==_0x21308a[_0x199b36([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x331840}=new URL(window[_0x199b36([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x21308a[_0x199b36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x331840))return!0x0;const _0x3df4e2=_0x331840[_0x199b36([0x73,0x70,0x6c,0x69,0x74])](_0x199b36([0x2e]));return _0x21308a[_0x199b36([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38fe77=>_0x38fe77[_0x199b36([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x199b36([0x2a])))[_0x199b36([0x6d,0x61,0x70])](_0xa2cbc8=>_0xa2cbc8[_0x199b36([0x73,0x70,0x6c,0x69,0x74])](_0x199b36([0x2e])))[_0x199b36([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f17af=>_0x3f17af[_0x199b36([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3df4e2[_0x199b36([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x199b36([0x6d,0x61,0x70])](_0x3eba09=>Array(_0x3df4e2[_0x199b36([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3eba09[_0x199b36([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x199b36([0x66,0x69,0x6c,0x6c])](_0x3eba09[0x0]===_0x199b36([0x2a])?_0x199b36([0x2a]):'')[_0x199b36([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3eba09))[_0x199b36([0x73,0x6f,0x6d,0x65])](_0xeb9e69=>_0x3df4e2[_0x199b36([0x65,0x76,0x65,0x72,0x79])]((_0x13465c,_0x13fe8e)=>_0xeb9e69[_0x13fe8e]===_0x13465c||_0xeb9e69[_0x13fe8e]===_0x199b36([0x2a])));}function _0x270714(){return _0x5d51bb&&_0x317cfd?new window[(_0x199b36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x95efb5,_0x23f2ef)=>{_0x5d51bb[_0x199b36([0x74,0x68,0x65,0x6e])](_0x95efb5,_0x23f2ef),_0x317cfd[_0x199b36([0x74,0x68,0x65,0x6e])](_0x2d7997=>{_0x2d7997!=_0x199b36([0x56,0x61,0x6c,0x69,0x64])&&_0x95efb5(_0x2d7997);},_0x23f2ef);}):_0x5d51bb||_0x317cfd||_0x199b36([0x56,0x61,0x6c,0x69,0x64]);}}function _0x262cfb(_0x3f5db9,_0x57dc30){return new window[(_0x199b36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e457c=>{if(_0x3c810f())return _0x2e457c(_0x199b36([0x56,0x61,0x6c,0x69,0x64]));_0x5c1bde(),_0x115e31[_0x199b36([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x199b36([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2919ca=!0x1;const _0x491cc7=_0xf3bdb5();function _0x53dcad(_0x94ec03){return!!_0x94ec03&&(typeof _0x94ec03===_0x199b36([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x94ec03===_0x199b36([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x94ec03[_0x199b36([0x74,0x68,0x65,0x6e])]===_0x199b36([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x94ec03[_0x199b36([0x63,0x61,0x74,0x63,0x68])]===_0x199b36([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x538b2a(_0x2ef85b){_0x517b5d(_0x2ef85b)[_0x199b36([0x74,0x68,0x65,0x6e])](_0x242568=>{if(!_0x242568||_0x242568[_0x199b36([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x199b36([0x6f,0x6b]))return _0x199b36([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x117b9c(_0x3e3157(_0x491cc7+_0x57dc30))!=_0x242568[_0x199b36([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x199b36([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x199b36([0x56,0x61,0x6c,0x69,0x64]);})[_0x199b36([0x74,0x68,0x65,0x6e])](_0x5e90c1=>(_0x1ea046(),_0x5e90c1),()=>{const _0x573f7=_0x33bfc4();return null==_0x573f7?(_0x1ea046(),_0x199b36([0x56,0x61,0x6c,0x69,0x64])):_0x199b36(_0x1cf7a0-_0x573f7>(0x38bee0a3^_0x3736a2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x199b36([0x74,0x68,0x65,0x6e])](_0x2e457c)[_0x199b36([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2e457c(_0x199b36([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5f397d=0x1c848a23^_0x3736a2;function _0x1ea046(){const _0x118cfb=_0x199b36([0x6c,0x6c,0x63,0x74,0x2d])+_0x117b9c(_0x3e3157(_0x3f5db9)),_0x3a2b95=_0x5340e8(_0x117b9c(window[_0x199b36([0x4d,0x61,0x74,0x68])][_0x199b36([0x63,0x65,0x69,0x6c])](_0x1cf7a0/_0x5f397d)));window[_0x199b36([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x199b36([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x118cfb,_0x3a2b95);}function _0x33bfc4(){const _0x5205a8=_0x199b36([0x6c,0x6c,0x63,0x74,0x2d])+_0x117b9c(_0x3e3157(_0x3f5db9)),_0x25fef5=window[_0x199b36([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x199b36([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5205a8);return _0x25fef5?window[_0x199b36([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5340e8(_0x25fef5),0x10)*_0x5f397d:null;}function _0x517b5d(_0x2fe80d){return new window[(_0x199b36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf3db4f,_0x333a46)=>{_0x2fe80d[_0x199b36([0x74,0x68,0x65,0x6e])](_0xf3db4f,_0x333a46),window[_0x199b36([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x333a46,0x1cb3b063^_0x3736a2);});}}_0x115e31[_0x199b36([0x6f,0x6e])](_0x199b36([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x345904,_0xdce64a)=>{if(_0xdce64a[0x0]!=_0x3f5db9)return _0x2e457c(_0x199b36([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xdce64a[0x1]={..._0xdce64a[0x1],[_0x199b36([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x491cc7};},{[_0x199b36([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x199b36([0x68,0x69,0x67,0x68])}),_0x115e31[_0x199b36([0x6f,0x6e])](_0x199b36([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13b420=>{_0x53dcad(_0x13b420[_0x199b36([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2919ca=!0x0,_0x538b2a(_0x13b420[_0x199b36([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x199b36([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x199b36([0x6c,0x6f,0x77])}),_0x436b62[_0x199b36([0x74,0x68,0x65,0x6e])](()=>{_0x2919ca||_0x2e457c(_0x199b36([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c810f(){return _0x115e31[_0x199b36([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x199b36([0x76,0x69,0x65,0x77])][_0x199b36([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x199b36([0x61,0x75,0x74,0x6f]);}function _0x5c1bde(){_0x115e31[_0x199b36([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x199b36([0x76,0x69,0x65,0x77])][_0x199b36([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x199b36([0x61,0x75,0x74,0x6f]);}}function _0x2cdb4a(_0x315d06){const _0x226b08=[new window[(_0x199b36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23f485=>setTimeout(_0x23f485,0x1cbb5a6f^_0x3736a2)),_0x436b62[_0x199b36([0x74,0x68,0x65,0x6e])](()=>new window[(_0x199b36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3627dd=>{let _0x3e22ca=0x0;_0x115e31[_0x199b36([0x6d,0x6f,0x64,0x65,0x6c])][_0x199b36([0x6f,0x6e])](_0x199b36([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x29e5b5,_0x208448)=>{_0x208448[0x0][_0x199b36([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3e22ca++,_0x3e22ca==(0x1cb2614b^_0x3736a2)&&(_0x3627dd(),_0x29e5b5[_0x199b36([0x6f,0x66,0x66])]());});}))];return window[_0x199b36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x199b36([0x72,0x61,0x63,0x65])](_0x226b08)[_0x199b36([0x74,0x68,0x65,0x6e])](()=>_0x315d06);}async function _0x40c77c(){await _0x436b62,_0x115e31[_0x199b36([0x6d,0x6f,0x64,0x65,0x6c])][_0x199b36([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ddece,_0x115e31[_0x199b36([0x6d,0x6f,0x64,0x65,0x6c])][_0x199b36([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ddece,_0x115e31[_0x199b36([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x199b36([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x276277(){return window[_0x199b36([0x67,0x6c,0x6f,0x62])]&&window[_0x199b36([0x67,0x6c,0x6f,0x62])][_0x199b36([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x282267(_0x444ced){const _0x70fa1d=_0x7f36f6();_0x115e31[_0x70fa1d]=_0x199b36([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])+_0x444ced,_0x444ced!=_0x199b36([0x56,0x61,0x6c,0x69,0x64])&&_0x40c77c();}function _0x7f36f6(){const _0x18fe4f=window[_0x199b36([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x199b36([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x199b36([0x6e,0x6f,0x77])]())[_0x199b36([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x199b36([0x2e]),'');let _0x1cedb5=_0x199b36([0x61]);for(let _0x4eb125=0x0;_0x4eb125<_0x18fe4f[_0x199b36([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4eb125+=0x2){let _0x2afb88=window[_0x199b36([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18fe4f[_0x199b36([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4eb125,_0x4eb125+0x2));_0x2afb88>=_0x293a15[_0x199b36([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2afb88-=_0x293a15[_0x199b36([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1cedb5+=_0x293a15[_0x2afb88];}return _0x1cedb5;}function _0xdf6c20(){const _0x146ca2=_0x468c5e[_0x199b36([0x73,0x70,0x6c,0x69,0x74])](_0x199b36([0x2e]));if(0x3!=_0x146ca2[_0x199b36([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x411f0c(_0x146ca2[0x1]);function _0x411f0c(_0x2d2514){const _0x26dd97=_0x515ccf(_0x2d2514);return _0x26dd97&&_0x522745()?_0x26dd97:null;function _0x522745(){const _0x23e3a8=_0x26dd97[_0x199b36([0x6a,0x74,0x69])],_0x5eaf=window[_0x199b36([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23e3a8[_0x199b36([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23e3a8[_0x199b36([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2df9cf={..._0x26dd97,[_0x199b36([0x6a,0x74,0x69])]:_0x23e3a8[_0x199b36([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23e3a8[_0x199b36([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2df9cf[_0x199b36([0x76,0x63])],_0x3e3157(_0x2df9cf)==_0x5eaf;}}}async function _0x3e0a73(){let _0x93862a=!0x0;try{const _0x2d211c=_0x468c5e[_0x199b36([0x73,0x70,0x6c,0x69,0x74])](_0x199b36([0x2e])),[_0x4b3f2d,_0x26e260,_0x3ac796]=_0x2d211c;return _0x518420(_0x4b3f2d),await _0x471767(_0x4b3f2d,_0x26e260,_0x3ac796),_0x93862a;}catch{return!0x1;}function _0x518420(_0x13574a){const _0x4c2f35=_0x515ccf(_0x13574a);_0x4c2f35&&_0x4c2f35[_0x199b36([0x61,0x6c,0x67])]==_0x199b36([0x45,0x53,0x32,0x35,0x36])||(_0x93862a=!0x1);}async function _0x471767(_0x56fdbe,_0x2faa77,_0xd7ff0d){const _0x329684=window[_0x199b36([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x199b36([0x66,0x72,0x6f,0x6d])](_0x44ee12(_0xd7ff0d),_0x2f38d8=>_0x2f38d8[_0x199b36([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c17ab=new window[(_0x199b36([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x199b36([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x56fdbe+_0x199b36([0x2e])+_0x2faa77),_0xe19279=window[_0x199b36([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x199b36([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe19279)return;const _0x5459dd=await _0xe19279[_0x199b36([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x199b36([0x6a,0x77,0x6b]),_0x339fd0,{[_0x199b36([0x6e,0x61,0x6d,0x65])]:_0x199b36([0x45,0x43,0x44,0x53,0x41]),[_0x199b36([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x199b36([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x199b36([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe19279[_0x199b36([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x199b36([0x6e,0x61,0x6d,0x65])]:_0x199b36([0x45,0x43,0x44,0x53,0x41]),[_0x199b36([0x68,0x61,0x73,0x68])]:{[_0x199b36([0x6e,0x61,0x6d,0x65])]:_0x199b36([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5459dd,_0x329684,_0x5c17ab)||(_0x93862a=!0x1);}}function _0x515ccf(_0x2c1898){return _0x2c1898[_0x199b36([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x199b36([0x65,0x79]))?JSON[_0x199b36([0x70,0x61,0x72,0x73,0x65])](_0x44ee12(_0x2c1898)):null;}function _0x44ee12(_0x2b971b){return window[_0x199b36([0x61,0x74,0x6f,0x62])](_0x2b971b[_0x199b36([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x199b36([0x2b]))[_0x199b36([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x199b36([0x2f])));}function _0x3e3157(_0x16bdbd){let _0x4d8f1b=0x1505;function _0xd9540a(_0x3c91a8){for(let _0x2b02cd=0x0;_0x2b02cd<_0x3c91a8[_0x199b36([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b02cd++){const _0x4374dd=_0x3c91a8[_0x199b36([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b02cd);_0x4d8f1b=(_0x4d8f1b<<0x5)+_0x4d8f1b+_0x4374dd,_0x4d8f1b&=_0x4d8f1b;}}function _0x7db09b(_0x379db0){Array[_0x199b36([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x379db0)?_0x379db0[_0x199b36([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7db09b):_0x379db0&&typeof _0x379db0==_0x199b36([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x199b36([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x379db0)[_0x199b36([0x73,0x6f,0x72,0x74])]()[_0x199b36([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d3ecb,_0x152ef9])=>{_0xd9540a(_0x4d3ecb),_0x7db09b(_0x152ef9);}):_0xd9540a(window[_0x199b36([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x379db0));}return _0x7db09b(_0x16bdbd),_0x4d8f1b>>>0x0;}function _0x117b9c(_0x34ddd7){return _0x34ddd7[_0x199b36([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x199b36([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x199b36([0x30]));}function _0x5340e8(_0x340f6f){return _0x340f6f[_0x199b36([0x73,0x70,0x6c,0x69,0x74])]('')[_0x199b36([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x199b36([0x6a,0x6f,0x69,0x6e])]('');}function _0x1ddece(){}function _0x199b36(_0x3670d4){return _0x3670d4['map'](_0x1743da=>String['fromCharCode'](_0x1743da))['join']('');}_0x282267(await _0x1d2679());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x5b0b77,{outlineDefinitions:_0xe30dec,outlineChanges:_0x1bbe8f}){this['_currentOutlineDefinitions']=_0xe30dec,this['view']['sync'](_0x1bbe8f);}['_setActiveViewItem'](_0x57e55c){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x57e55c]&&(this['view']['activeItemIndex']=_0x57e55c);}['_handleItemSelected'](_0x31fa4c){const _0x30fa7f=this['_currentOutlineDefinitions'][_0x31fa4c]['modelElement'];this['editor']['model']['change'](_0x59b285=>{_0x59b285['setSelection'](_0x30fa7f,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x31fa4c);}['_updateActiveDefinitionOnViewportChange'](){const _0x3d918b=this['editor'];let _0x3dc699;for(const _0x540159 of _0x3d918b['model']['document']['getRootNames']()){const _0x4dbb85=_0x3d918b['editing']['view']['getDomRoot'](_0x540159),_0x1e2b42=_0x4dbb85&&new _0x267f00(_0x4dbb85)['getVisible']();if(_0x1e2b42){const _0xf4388=new _0x267f00(_0x3ac437['window'])['getIntersection'](_0x1e2b42);_0xf4388&&(_0x3dc699=_0xf4388['top']+0.25*_0xf4388['height']);}}if(void 0x0===_0x3dc699)return;const _0x26b677=k(_0x3d918b['editing'],this['_currentOutlineDefinitions'],_0x3dc699);_0x26b677?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x26b677)):this['_setActiveViewItem'](-0x1);}}function k(_0x578b36,_0x397827,_0x472ada,_0x3c80f5=0x0,_0x529e02=_0x397827['length']-0x1){const _0x21a347=Math['floor'](_0x3c80f5+(_0x529e02-_0x3c80f5)/0x2);if(_0x529e02>=_0x3c80f5){const _0x553f52=_0x397827[_0x21a347],_0x2fa340=_0x578b36['mapper']['toViewElement'](_0x553f52['modelElement']);if(!_0x2fa340)return null;const _0x2508f2=_0x578b36['view']['domConverter']['mapViewToDom'](_0x2fa340);return new _0x267f00(_0x2508f2)['bottom']>_0x472ada?k(_0x578b36,_0x397827,_0x472ada,_0x3c80f5,_0x21a347-0x1):k(_0x578b36,_0x397827,_0x472ada,_0x21a347+0x1,_0x529e02);}return _0x21a347<0x0?null:_0x397827[_0x21a347];}class K extends _0x3d6086{['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 _0x4ecdd6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x59a4b1;for(const _0x2071be in _0x4ecdd6){const _0x405318=_0x2071be,_0x470c45=_0x4ecdd6[_0x405318];if('documentOutlineLicenseKeyValid'==_0x470c45||'documentOutlineLicenseKeyInvalid'==_0x470c45||'documentOutlineLicenseKeyExpired'==_0x470c45||'documentOutlineLicenseKeyDomainLimit'==_0x470c45||'documentOutlineLicenseKeyNotAllowed'==_0x470c45||'documentOutlineLicenseKeyEvaluationLimit'==_0x470c45||'documentOutlineLicenseKeyUsageLimit'==_0x470c45){delete _0x4ecdd6[_0x405318],_0x59a4b1=_0x470c45,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x59a4b1&&_0x4ecdd6['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x59a4b1&&_0x4ecdd6['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x59a4b1&&_0x4ecdd6['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x59a4b1&&_0x4ecdd6['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x59a4b1&&_0x4ecdd6['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x59a4b1&&_0x4ecdd6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class E extends _0xf6d9c3{['execute'](){this['editor']['model']['change'](_0xc227b1=>{this['editor']['model']['insertObject'](_0xc227b1['createElement']('tableOfContents'));});}['refresh'](){const _0x52a2c1=this['editor']['model'],_0x1e1300=_0x52a2c1['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x1e1300&&_0x52a2c1['schema']['findAllowedParent'](_0x1e1300,'tableOfContents'));}}class N extends _0x3d6086{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5b037b=this['editor'];if(_0x5b037b['config']['get']('headingId.modelAttributeName'))return;(function(_0x1c6b9f){const _0x4c38c1=new Map();if(_0x1c6b9f)return _0x1c6b9f['forEach'](_0x523bbb=>{'paragraph'!==_0x523bbb['model']&&_0x4c38c1['set'](_0x523bbb['view'],_0x523bbb['model']);}),_0x4c38c1['get']('h1')||_0x4c38c1['set']('h1','heading1'),_0x4c38c1;return _0x4c38c1;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x423ff5,_0x2b3be7)=>{this['_customUpcastHeadingsConversion'](_0x2b3be7),this['_customDataDowncastHeadingsConversion'](_0x423ff5),_0x5b037b['model']['schema']['isRegistered'](_0x423ff5)&&_0x5b037b['model']['schema']['extend'](_0x423ff5,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x3d80ee){this['editor']['conversion']['for']('upcast')['add'](_0x84a430=>_0x84a430['on']('element:'+_0x3d80ee,(_0x3eca83,_0x28ed06,_0x446169)=>{const {consumable:_0x137a26,writer:_0x513f58}=_0x446169,_0x1527f9=_0x28ed06['viewItem']['getAttribute']('id'),_0x42879d=_0x28ed06['modelRange']['getContainedElement']();if(_0x42879d)return _0x1527f9&&_0x1527f9['length']||_0x42879d['hasAttribute']('headingId')?void(_0x137a26['consume'](_0x28ed06['viewItem'],{'attributes':['id']})&&_0x513f58['setAttribute']('headingId',_0x1527f9,_0x42879d)):(_0x137a26['consume'](_0x28ed06['viewItem'],{'attributes':['id']}),void _0x513f58['setAttribute']('headingId',_0xf3bdb5(),_0x42879d));},{'priority':_0x73b274['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x44fcdb){this['editor']['conversion']['for']('downcast')['add'](_0x2068b3=>_0x2068b3['on']('attribute:headingId:'+_0x44fcdb,(_0x25837f,_0xa59887,_0x16ae48)=>{if(!_0x16ae48['consumable']['consume'](_0xa59887['item'],_0x25837f['name']))return;const _0x21f70c=_0xa59887['item']['getAttribute']('headingId'),_0x179103=_0x16ae48['mapper']['toViewElement'](_0xa59887['item']);_0x16ae48['writer']['setAttribute']('id',_0x21f70c,_0x179103);}));}['_registerHeadingIdAttributePostfixer'](){const _0x40389e=this['editor'],_0xa7f91e=new Set(),_0xfe3090=new Set();function _0x5b91fe(_0x51020f,_0x2e6260){const _0x4654d8=_0xf3bdb5();return _0xfe3090['add'](_0x4654d8),_0x51020f['setAttribute']('headingId',_0x4654d8,_0x2e6260),_0x4654d8;}function _0xf62ba7(_0xe6a00,_0x5edeae){_0xe6a00['removeAttribute']('headingId',_0x5edeae);}_0x40389e['model']['document']['registerPostFixer'](_0x198af5=>{const _0x5d10e6=_0x40389e['model']['document']['differ']['getChanges']();let _0x195e6a=!0x1;for(const _0x1155f3 of _0x5d10e6)if('insert'==_0x1155f3['type']&&_0x1155f3['name']){if(T(_0x1155f3['name'])){const _0x20cd8a=_0x1155f3['attributes']['get']('headingId');'string'==typeof _0x20cd8a?_0xa7f91e['has'](_0x20cd8a)?(_0x5b91fe(_0x198af5,_0x1155f3['position']['nodeAfter']),_0x195e6a=!0x0):_0xfe3090['add'](_0x20cd8a):(_0x5b91fe(_0x198af5,_0x1155f3['position']['nodeAfter']),_0x195e6a=!0x0);}else'string'==typeof _0x1155f3['attributes']['get']('headingId')&&(_0xf62ba7(_0x198af5,_0x1155f3['position']['nodeAfter']),_0x195e6a=!0x0);}else{if('remove'==_0x1155f3['type']){const _0x4d1932=_0x1155f3['attributes']['get']('headingId');'string'==typeof _0x4d1932&&_0xa7f91e['delete'](_0x4d1932);}}return _0x195e6a;}),_0x40389e['model']['document']['on']('change',()=>{_0xfe3090['forEach'](_0xd653dc=>_0xa7f91e['add'](_0xd653dc)),_0xfe3090['clear']();});}}function T(_0x8cf2de){return!!_0x8cf2de['match'](/heading\d/);}class A extends _0x3d6086{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x237496,I,N];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x25a213){super(_0x25a213),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x340a8d=this['editor'],_0x2d9efd=_0x340a8d['editing']['view']['document'];_0x340a8d['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x340a8d['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x2d9efd,'click',(_0x19f675,_0x219b38)=>{if(!_0x219b38['target'])return;const _0x518631=_0x219b38['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x518631)&&(_0x219b38['domEvent']['preventDefault'](),_0x19f675['stop'](),this['_handleScrollToHeading'](_0x518631));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x340a8d['commands']['add']('insertTableOfContents',new E(_0x340a8d));const _0x1ab21d=_0x340a8d['config']['get']('tableOfContents.headings');if(_0x1ab21d&&_0x1ab21d['length'])this['listenTo'](_0x340a8d['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x1ab21d),this['_updateTableOfContentsElements']();});else _0x340a8d['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x550dfc,_0x3a01f8)=>{this['_currentOutlineDefinitions']=_0x3a01f8['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x340a8d['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x4b2ffe){const _0x1589fd=_0x1f7451([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]),_0x435416=0x6b9b05fd,_0x399dff=0x6b9c8c25^_0x435416,_0x2d0675=window[_0x1f7451([0x44,0x61,0x74,0x65])][_0x1f7451([0x6e,0x6f,0x77])](),_0x5e1c85=_0x4b2ffe[_0x1f7451([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x348a32=new window[(_0x1f7451([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dc4f2=>{_0x5e1c85[_0x1f7451([0x6f,0x6e,0x63,0x65])](_0x1f7451([0x72,0x65,0x61,0x64,0x79]),_0x4dc4f2);}),_0x410907={[_0x1f7451([0x6b,0x74,0x79])]:_0x1f7451([0x45,0x43]),[_0x1f7451([0x75,0x73,0x65])]:_0x1f7451([0x73,0x69,0x67]),[_0x1f7451([0x63,0x72,0x76])]:_0x1f7451([0x50,0x2d,0x32,0x35,0x36]),[_0x1f7451([0x78])]:_0x1f7451([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]),[_0x1f7451([0x79])]:_0x1f7451([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]),[_0x1f7451([0x61,0x6c,0x67])]:_0x1f7451([0x45,0x53,0x32,0x35,0x36])},_0x5960fe=_0x5e1c85[_0x1f7451([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f7451([0x67,0x65,0x74])](_0x1f7451([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1b0c77(){let _0x2a828f,_0x2dd874=null,_0x4e429c=null;try{if(_0x5960fe==_0x1f7451([0x47,0x50,0x4c]))return _0x1f7451([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a828f=_0x2fd4a2(),!_0x2a828f)return _0x1f7451([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a828f[_0x1f7451([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e429c=_0x2ac3ac(_0x2a828f[_0x1f7451([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a828f[_0x1f7451([0x6a,0x74,0x69])])),await _0x2154c9()?_0x3907aa()?_0x3cf01f()?_0x1f7451([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ad011()?(_0x2a828f[_0x1f7451([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f7451([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2dd874=_0x4dcb0b(_0x1f7451([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x32524f()):_0x1f7451([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f7451([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f7451([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f7451([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cf01f(){const _0x3033d7=[_0x1f7451([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f7451([0x74,0x72,0x69,0x61,0x6c])][_0x1f7451([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a828f[_0x1f7451([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d0675/0x3e8:0xe10*_0x399dff;return _0x2a828f[_0x1f7451([0x65,0x78,0x70])]<_0x3033d7;}function _0x3907aa(){const _0x1feb66=_0x2a828f[_0x1f7451([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1feb66&&(!!_0x1feb66[_0x1f7451([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f7451([0x2a]))||(!!_0x1feb66[_0x1f7451([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f7451([0x54,0x4f,0x43]))||(!!_0x1feb66[_0x1f7451([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f7451([0x50,0x50]))||!(!_0x1feb66[_0x1f7451([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f7451([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x304756()))));}function _0x1ad011(){const _0x38174d=_0x2a828f[_0x1f7451([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x38174d||0x0==_0x38174d[_0x1f7451([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23a2aa}=new URL(window[_0x1f7451([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x38174d[_0x1f7451([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23a2aa))return!0x0;const _0xe9fa28=_0x23a2aa[_0x1f7451([0x73,0x70,0x6c,0x69,0x74])](_0x1f7451([0x2e]));return _0x38174d[_0x1f7451([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a1969=>_0x2a1969[_0x1f7451([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f7451([0x2a])))[_0x1f7451([0x6d,0x61,0x70])](_0x462190=>_0x462190[_0x1f7451([0x73,0x70,0x6c,0x69,0x74])](_0x1f7451([0x2e])))[_0x1f7451([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d0214=>_0x3d0214[_0x1f7451([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe9fa28[_0x1f7451([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f7451([0x6d,0x61,0x70])](_0x3653d6=>Array(_0xe9fa28[_0x1f7451([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3653d6[_0x1f7451([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f7451([0x66,0x69,0x6c,0x6c])](_0x3653d6[0x0]===_0x1f7451([0x2a])?_0x1f7451([0x2a]):'')[_0x1f7451([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3653d6))[_0x1f7451([0x73,0x6f,0x6d,0x65])](_0x336272=>_0xe9fa28[_0x1f7451([0x65,0x76,0x65,0x72,0x79])]((_0x2b0774,_0x59abd9)=>_0x336272[_0x59abd9]===_0x2b0774||_0x336272[_0x59abd9]===_0x1f7451([0x2a])));}function _0x32524f(){return _0x2dd874&&_0x4e429c?new window[(_0x1f7451([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ce632,_0x5f1506)=>{_0x2dd874[_0x1f7451([0x74,0x68,0x65,0x6e])](_0x5ce632,_0x5f1506),_0x4e429c[_0x1f7451([0x74,0x68,0x65,0x6e])](_0x2a95ee=>{_0x2a95ee!=_0x1f7451([0x56,0x61,0x6c,0x69,0x64])&&_0x5ce632(_0x2a95ee);},_0x5f1506);}):_0x2dd874||_0x4e429c||_0x1f7451([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ac3ac(_0x1bf0fd,_0x145dd8){return new window[(_0x1f7451([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x220c87=>{if(_0x5b14ec())return _0x220c87(_0x1f7451([0x56,0x61,0x6c,0x69,0x64]));_0x3ef36e(),_0x5e1c85[_0x1f7451([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f7451([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9b12c8=!0x1;const _0x534ac1=_0xf3bdb5();function _0x48fc66(_0x54dd9a){return!!_0x54dd9a&&(typeof _0x54dd9a===_0x1f7451([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x54dd9a===_0x1f7451([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x54dd9a[_0x1f7451([0x74,0x68,0x65,0x6e])]===_0x1f7451([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x54dd9a[_0x1f7451([0x63,0x61,0x74,0x63,0x68])]===_0x1f7451([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52e28c(_0x49579c){_0x269652(_0x49579c)[_0x1f7451([0x74,0x68,0x65,0x6e])](_0x12a484=>{if(!_0x12a484||_0x12a484[_0x1f7451([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f7451([0x6f,0x6b]))return _0x1f7451([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x554031(_0x165cfd(_0x534ac1+_0x145dd8))!=_0x12a484[_0x1f7451([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f7451([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f7451([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f7451([0x74,0x68,0x65,0x6e])](_0x547075=>(_0x1907d0(),_0x547075),()=>{const _0x39aa77=_0x1f1601();return null==_0x39aa77?(_0x1907d0(),_0x1f7451([0x56,0x61,0x6c,0x69,0x64])):_0x1f7451(_0x2d0675-_0x39aa77>(0x4f9781fd^_0x435416)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f7451([0x74,0x68,0x65,0x6e])](_0x220c87)[_0x1f7451([0x63,0x61,0x74,0x63,0x68])](()=>{_0x220c87(_0x1f7451([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23f84c=0x6badeb7d^_0x435416;function _0x1907d0(){const _0x71cb99=_0x1f7451([0x6c,0x6c,0x63,0x74,0x2d])+_0x554031(_0x165cfd(_0x1bf0fd)),_0x3b79f9=_0x1ba87e(_0x554031(window[_0x1f7451([0x4d,0x61,0x74,0x68])][_0x1f7451([0x63,0x65,0x69,0x6c])](_0x2d0675/_0x23f84c)));window[_0x1f7451([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f7451([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x71cb99,_0x3b79f9);}function _0x1f1601(){const _0x34202a=_0x1f7451([0x6c,0x6c,0x63,0x74,0x2d])+_0x554031(_0x165cfd(_0x1bf0fd)),_0xe250dd=window[_0x1f7451([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f7451([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34202a);return _0xe250dd?window[_0x1f7451([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ba87e(_0xe250dd),0x10)*_0x23f84c:null;}function _0x269652(_0x2c30ce){return new window[(_0x1f7451([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43a8d6,_0x45401b)=>{_0x2c30ce[_0x1f7451([0x74,0x68,0x65,0x6e])](_0x43a8d6,_0x45401b),window[_0x1f7451([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x45401b,0x6b9ad13d^_0x435416);});}}_0x5e1c85[_0x1f7451([0x6f,0x6e])](_0x1f7451([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b4a4e,_0x48be6a)=>{if(_0x48be6a[0x0]!=_0x1bf0fd)return _0x220c87(_0x1f7451([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x48be6a[0x1]={..._0x48be6a[0x1],[_0x1f7451([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x534ac1};},{[_0x1f7451([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f7451([0x68,0x69,0x67,0x68])}),_0x5e1c85[_0x1f7451([0x6f,0x6e])](_0x1f7451([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57f437=>{_0x48fc66(_0x57f437[_0x1f7451([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9b12c8=!0x0,_0x52e28c(_0x57f437[_0x1f7451([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f7451([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f7451([0x6c,0x6f,0x77])}),_0x348a32[_0x1f7451([0x74,0x68,0x65,0x6e])](()=>{_0x9b12c8||_0x220c87(_0x1f7451([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b14ec(){return _0x5e1c85[_0x1f7451([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f7451([0x76,0x69,0x65,0x77])][_0x1f7451([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f7451([0x61,0x75,0x74,0x6f]);}function _0x3ef36e(){_0x5e1c85[_0x1f7451([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f7451([0x76,0x69,0x65,0x77])][_0x1f7451([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f7451([0x61,0x75,0x74,0x6f]);}}function _0x4dcb0b(_0x334454){const _0x4556a5=[new window[(_0x1f7451([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x991cb5=>setTimeout(_0x991cb5,0x6b923b31^_0x435416)),_0x348a32[_0x1f7451([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f7451([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2db1d5=>{let _0x125644=0x0;_0x5e1c85[_0x1f7451([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f7451([0x6f,0x6e])](_0x1f7451([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b3be6,_0x345e71)=>{_0x345e71[0x0][_0x1f7451([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x125644++,_0x125644==(0x6b9b0015^_0x435416)&&(_0x2db1d5(),_0x4b3be6[_0x1f7451([0x6f,0x66,0x66])]());});}))];return window[_0x1f7451([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f7451([0x72,0x61,0x63,0x65])](_0x4556a5)[_0x1f7451([0x74,0x68,0x65,0x6e])](()=>_0x334454);}async function _0x101612(){await _0x348a32,_0x5e1c85[_0x1f7451([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f7451([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f013d,_0x5e1c85[_0x1f7451([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f7451([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f013d,_0x5e1c85[_0x1f7451([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f7451([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x304756(){return window[_0x1f7451([0x67,0x6c,0x6f,0x62])]&&window[_0x1f7451([0x67,0x6c,0x6f,0x62])][_0x1f7451([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x20a0d(_0x282ffa){const _0x65ed84=_0x19c834();_0x5e1c85[_0x65ed84]=_0x1f7451([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])+_0x282ffa,_0x282ffa!=_0x1f7451([0x56,0x61,0x6c,0x69,0x64])&&_0x101612();}function _0x19c834(){const _0x9815ca=window[_0x1f7451([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f7451([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f7451([0x6e,0x6f,0x77])]())[_0x1f7451([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f7451([0x2e]),'');let _0x48b9c7=_0x1f7451([0x6d]);for(let _0x197a57=0x0;_0x197a57<_0x9815ca[_0x1f7451([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x197a57+=0x2){let _0x1e592b=window[_0x1f7451([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9815ca[_0x1f7451([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x197a57,_0x197a57+0x2));_0x1e592b>=_0x1589fd[_0x1f7451([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e592b-=_0x1589fd[_0x1f7451([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48b9c7+=_0x1589fd[_0x1e592b];}return _0x48b9c7;}function _0x2fd4a2(){const _0x217df8=_0x5960fe[_0x1f7451([0x73,0x70,0x6c,0x69,0x74])](_0x1f7451([0x2e]));if(0x3!=_0x217df8[_0x1f7451([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x14ab5e(_0x217df8[0x1]);function _0x14ab5e(_0x29ce35){const _0x183669=_0x2c9db0(_0x29ce35);return _0x183669&&_0x21b2dd()?_0x183669:null;function _0x21b2dd(){const _0x572d92=_0x183669[_0x1f7451([0x6a,0x74,0x69])],_0x4bece1=window[_0x1f7451([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x572d92[_0x1f7451([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x572d92[_0x1f7451([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3cca41={..._0x183669,[_0x1f7451([0x6a,0x74,0x69])]:_0x572d92[_0x1f7451([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x572d92[_0x1f7451([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3cca41[_0x1f7451([0x76,0x63])],_0x165cfd(_0x3cca41)==_0x4bece1;}}}async function _0x2154c9(){let _0x52c428=!0x0;try{const _0x2b315f=_0x5960fe[_0x1f7451([0x73,0x70,0x6c,0x69,0x74])](_0x1f7451([0x2e])),[_0x2b5c26,_0x183d86,_0x253684]=_0x2b315f;return _0x5538c2(_0x2b5c26),await _0x100758(_0x2b5c26,_0x183d86,_0x253684),_0x52c428;}catch{return!0x1;}function _0x5538c2(_0x15a068){const _0x2816e2=_0x2c9db0(_0x15a068);_0x2816e2&&_0x2816e2[_0x1f7451([0x61,0x6c,0x67])]==_0x1f7451([0x45,0x53,0x32,0x35,0x36])||(_0x52c428=!0x1);}async function _0x100758(_0x43f6c4,_0x540002,_0x158f30){const _0x340e74=window[_0x1f7451([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f7451([0x66,0x72,0x6f,0x6d])](_0x5c86e0(_0x158f30),_0x2e7673=>_0x2e7673[_0x1f7451([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47b75c=new window[(_0x1f7451([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f7451([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43f6c4+_0x1f7451([0x2e])+_0x540002),_0x2a0297=window[_0x1f7451([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f7451([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a0297)return;const _0x547edc=await _0x2a0297[_0x1f7451([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f7451([0x6a,0x77,0x6b]),_0x410907,{[_0x1f7451([0x6e,0x61,0x6d,0x65])]:_0x1f7451([0x45,0x43,0x44,0x53,0x41]),[_0x1f7451([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f7451([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f7451([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a0297[_0x1f7451([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f7451([0x6e,0x61,0x6d,0x65])]:_0x1f7451([0x45,0x43,0x44,0x53,0x41]),[_0x1f7451([0x68,0x61,0x73,0x68])]:{[_0x1f7451([0x6e,0x61,0x6d,0x65])]:_0x1f7451([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x547edc,_0x340e74,_0x47b75c)||(_0x52c428=!0x1);}}function _0x2c9db0(_0x580fb4){return _0x580fb4[_0x1f7451([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f7451([0x65,0x79]))?JSON[_0x1f7451([0x70,0x61,0x72,0x73,0x65])](_0x5c86e0(_0x580fb4)):null;}function _0x5c86e0(_0x47a568){return window[_0x1f7451([0x61,0x74,0x6f,0x62])](_0x47a568[_0x1f7451([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f7451([0x2b]))[_0x1f7451([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f7451([0x2f])));}function _0x165cfd(_0x10078c){let _0x39d030=0x1505;function _0x333c7c(_0x2b6756){for(let _0x7d26b7=0x0;_0x7d26b7<_0x2b6756[_0x1f7451([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7d26b7++){const _0x4ed77f=_0x2b6756[_0x1f7451([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x7d26b7);_0x39d030=(_0x39d030<<0x5)+_0x39d030+_0x4ed77f,_0x39d030&=_0x39d030;}}function _0x19aa2c(_0x449ead){Array[_0x1f7451([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x449ead)?_0x449ead[_0x1f7451([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19aa2c):_0x449ead&&typeof _0x449ead==_0x1f7451([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f7451([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x449ead)[_0x1f7451([0x73,0x6f,0x72,0x74])]()[_0x1f7451([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52adb1,_0x132888])=>{_0x333c7c(_0x52adb1),_0x19aa2c(_0x132888);}):_0x333c7c(window[_0x1f7451([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x449ead));}return _0x19aa2c(_0x10078c),_0x39d030>>>0x0;}function _0x554031(_0x3d2755){return _0x3d2755[_0x1f7451([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f7451([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f7451([0x30]));}function _0x1ba87e(_0x246b80){return _0x246b80[_0x1f7451([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f7451([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f7451([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f013d(){}function _0x1f7451(_0x5159c4){return _0x5159c4['map'](_0x2aef28=>String['fromCharCode'](_0x2aef28))['join']('');}_0x20a0d(await _0x1b0c77());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x32bc0b=>{'$graveyard'!==_0x32bc0b['rootName']&&this['editor']['editing']['reconvertItem'](_0x32bc0b);});}['_trackNewToCElements'](){for(const _0x42ef20 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x42ef20['type']||'tableOfContents'!==_0x42ef20['name'])return;this['_tableOfContentsElements']['add'](_0x42ef20['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x26e402){const _0x511121=this['editor'],_0x384de9=[];for(const _0x1a2627 of _0x511121['model']['document']['getRootNames']())_0x33f25a(_0x511121['model']['document']['getRoot'](_0x1a2627));function _0x33f25a(_0x1ebddd){for(const _0x38e5af of _0x1ebddd['getChildren']())_0x38e5af['is']('element')&&(_0x26e402['includes'](_0x38e5af['name'])&&_0x384de9['push']({'level':_0x26e402['indexOf'](_0x38e5af['name'])+0x1,'text':v(_0x38e5af),'modelElement':_0x38e5af}),_0x33f25a(_0x38e5af));}return _0x384de9;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x160fe7=this['editor']['conversion'];_0x160fe7['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x160fe7['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x215100,{writer:_0x13e7ec})=>this['_createTableOfContents'](_0x13e7ec,!0x0)}),_0x160fe7['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x349e69,{writer:_0x4baca2})=>{this['_tableOfContentsElements']['add'](_0x349e69);const _0xeeeee5=this['_createTableOfContents'](_0x4baca2);return _0x1a11c2(_0xeeeee5,_0x4baca2,{'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'](_0x39c03c,_0x14f69c=!0x1){const {locale:_0x16c1d8}=this['editor'],_0x45b5c8=_0x39c03c['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x14f69c&&{'data-table-of-contents-label':C(_0x16c1d8,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x14f69c&&_0x39c03c['insert'](_0x39c03c['createPositionAt'](_0x45b5c8,'end'),_0x39c03c['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x39c03c['createText'](C(_0x16c1d8,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x498670=_0x14f69c?'':'['+C(_0x16c1d8,'Empty\x20heading')+']';let _0x36601f=_0x45b5c8;return this['_currentOutlineDefinitions']['forEach']((_0x1ef53d,_0x22bdc1,_0x2c9b78)=>{const _0x18e00f=this['editor']['model']['hasContent'](_0x1ef53d['modelElement'],{'ignoreWhitespaces':!0x0}),_0x418ad0=_0x18e00f?_0x1ef53d['text']:_0x498670,_0x43a2c6=_0x1ef53d['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x27e049=_0x39c03c['createContainerElement']('a',{'href':'#'+_0x43a2c6,...!_0x14f69c&&{'tabindex':'-1'}},[_0x39c03c['createText'](_0x418ad0)]),_0x548eea=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x39c03c['setCustomProperty']('tableOfContentsHeadingIndex',_0x22bdc1,_0x27e049);const _0x10e269=_0x39c03c['createContainerElement']('li',null,[_0x18e00f||!_0x14f69c&&_0x548eea?_0x27e049:_0x39c03c['createText']('')]),_0x1c57df=_0x22bdc1?_0x2c9b78[_0x22bdc1-0x1]['level']:0x0,_0x240f73=Math['abs'](_0x1ef53d['level']-_0x1c57df);if(_0x1ef53d['level']>_0x1c57df){const _0xca35ee=P(_0x10e269,_0x240f73,_0x39c03c);_0x39c03c['insert'](_0x39c03c['createPositionAt'](_0x36601f,'end'),_0xca35ee);}else{const _0x294ce1=function(_0x42b668,_0x4d533c){return _0x42b668['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x5e4e4d=>_0x5e4e4d['is']('element','ol'))[_0x4d533c];}(_0x36601f,_0x240f73);_0x39c03c['insert'](_0x39c03c['createPositionAt'](_0x294ce1,'end'),_0x10e269);}_0x36601f=_0x10e269;}),_0x45b5c8;}['_handleScrollToHeading'](_0x546486){const _0x5e75a8=this['_currentOutlineDefinitions'][_0x546486]['modelElement'];this['editor']['model']['change'](_0xb0dd22=>{_0xb0dd22['setSelection'](_0x5e75a8,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x935d4a,_0x5a8b92)=>{const _0x16e027=_0x5a8b92['mapper'],_0x43106d=_0x16e027['findMappedViewAncestor'](_0x5a8b92['viewPosition']),_0x5ab733=_0x16e027['toModelElement'](_0x43106d);_0x5ab733['is']('element','tableOfContents')&&(_0x5a8b92['modelPosition']=this['editor']['model']['createPositionAt'](_0x5ab733,0x0),_0x935d4a['stop']());};}}function P(_0x17d314,_0x2eea61,_0x450e6b){return 0x1===_0x2eea61?_0x450e6b['createContainerElement']('ol',null,[_0x17d314]):_0x450e6b['createContainerElement']('ol',null,[_0x450e6b['createContainerElement']('li',null,[P(_0x17d314,_0x2eea61-0x1,_0x450e6b)])]);}class D extends _0x3d6086{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x49d283=this['editor'];_0x49d283['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x4bfaf5=this['_createButton'](_0x3ede79);return _0x4bfaf5['tooltip']=!0x0,_0x4bfaf5;}),_0x49d283['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x1d2695)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x310b25=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57795b;for(const _0x478111 in _0x310b25){const _0xa965be=_0x478111,_0x2d0ec9=_0x310b25[_0xa965be];if('tableOfContentsLicenseKeyValid'==_0x2d0ec9||'tableOfContentsLicenseKeyInvalid'==_0x2d0ec9||'tableOfContentsLicenseKeyExpired'==_0x2d0ec9||'tableOfContentsLicenseKeyDomainLimit'==_0x2d0ec9||'tableOfContentsLicenseKeyNotAllowed'==_0x2d0ec9||'tableOfContentsLicenseKeyEvaluationLimit'==_0x2d0ec9||'tableOfContentsLicenseKeyUsageLimit'==_0x2d0ec9){delete _0x310b25[_0xa965be],_0x57795b=_0x2d0ec9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x57795b&&_0x310b25['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x57795b&&_0x310b25['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x57795b&&_0x310b25['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x57795b&&_0x310b25['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x57795b&&_0x310b25['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x57795b&&_0x310b25['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x3a053d){const _0x38b878=this['editor'],_0x314480=_0x38b878['locale'],_0x214377=_0x38b878['commands']['get']('insertTableOfContents'),_0xe2e144=new _0x3a053d(_0x314480);return _0xe2e144['set']({'label':C(_0x314480,'Table\x20of\x20contents'),'icon':_0x2d86d3}),_0xe2e144['bind']('isEnabled')['to'](_0x214377,'isEnabled'),this['listenTo'](_0xe2e144,'execute',()=>{_0x38b878['execute']('insertTableOfContents'),_0x38b878['editing']['view']['focus']();}),_0xe2e144;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class H extends _0x3d6086{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 _0x325ee5,Command as _0xb5e48d}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x391946,throttle as _0x55477b}from'es-toolkit/compat';import{ModelText as _0x4753df,ModelTreeWalker as _0x2bf0b0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x39e2f9,diffToChanges as _0x2e001a,scrollAncestorsToShowTarget as _0x1fcd75,CKEditorError as _0xfd7f5f,global as _0x2ffccc,Rect as _0x2c504e,uid as _0x223b34,priorities as _0x4280c6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x91ec4,ButtonView as _0x4a5eaa,MenuBarMenuListItemButtonView as _0x49114c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x9ae8c9,toWidget as _0x15f1ab}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x1ccc52}from'@ckeditor/ckeditor5-icons/dist/index.js';function v(_0x6d670){let _0x431d0d='';for(const _0x3c3221 of _0x6d670['getChildren']())_0x3c3221 instanceof _0x4753df&&(_0x431d0d+=_0x3c3221['data']);return _0x431d0d;}class I extends _0x325ee5{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x3f2b3f=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x45d36b=[];_0x3f2b3f['model']['document']['on']('change',_0x391946(()=>{const _0x509697=_0x45d36b;_0x45d36b=this['_getOutlineDefinitions']();const _0x497cff=_0x39e2f9(_0x509697,_0x45d36b,(_0x389c79,_0x36ce5d)=>_0x389c79['level']===_0x36ce5d['level']&&_0x389c79['text']===_0x36ce5d['text']&&_0x389c79['modelElement']===_0x36ce5d['modelElement']),_0x399197=_0x2e001a(_0x497cff,_0x45d36b),_0x2f044a=this['_getActiveHeading'](),_0x1a597f=_0x45d36b['findIndex'](_0x316ea2=>_0x316ea2['modelElement']===_0x2f044a);_0x399197['length']&&this['fire']('change',{'outlineDefinitions':_0x45d36b,'activeItemIndex':_0x1a597f,'outlineChanges':_0x399197}),this['fire']('activeItemIndex',{'index':_0x1a597f});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x5915ab=this['editor'],_0x49d555=[],_0xf1a7bf=this['_headingNames'];for(const _0x190ffe of _0x5915ab['model']['document']['getRootNames']())_0x5e32a8(_0x5915ab['model']['document']['getRoot'](_0x190ffe));function _0x5e32a8(_0x743b79){for(const _0xb698ee of _0x743b79['getChildren']())_0xb698ee['is']('element')&&(_0xf1a7bf['includes'](_0xb698ee['name'])&&_0x49d555['push']({'level':_0xf1a7bf['indexOf'](_0xb698ee['name'])+0x1,'text':v(_0xb698ee),'modelElement':_0xb698ee}),_0x5e32a8(_0xb698ee));}return _0x49d555;}['_getActiveHeading'](){const _0x5c800d=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x21ee78=new _0x2bf0b0({'direction':'backward','startPosition':_0x5c800d});for(const _0x1ed504 of _0x21ee78)if(_0x1ed504['item']['is']('element')&&this['_headingNames']['includes'](_0x1ed504['item']['name']))return _0x1ed504['item'];}['_getHeadingNames'](){const _0x5b1c3c=this['editor']['config']['get']('documentOutline.headings');return _0x5b1c3c||function(_0x7d2a7){const _0x5297f2=_0x7d2a7['config']['get']('heading.options');return _0x5297f2?_0x5297f2['reduce']((_0x30938f,_0x20b2a6)=>('paragraph'!==_0x20b2a6['model']&&_0x30938f['push'](_0x20b2a6['model']),_0x30938f),[]):_0x7d2a7['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x30cc77=this['editor'],_0x546b40=['h1','h2','h3','h4','h5','h6'],_0x4cac20=[];for(const _0x574f83 of _0x546b40){const _0x15211d=_0x30cc77['editing']['view']['domConverter']['domToView'](document['createElement'](_0x574f83)),_0x406d73=_0x30cc77['data']['toModel'](_0x15211d)['getChild'](0x0);_0x406d73?.['is']('element')&&_0x4cac20['push'](_0x406d73['name']);}this['_headingNames']=_0x4cac20;}}function C(_0x27ed76,_0x297c18){const t=_0x27ed76['t'];switch(_0x297c18){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 _0x297c18;}}class _ extends _0x91ec4{constructor(_0x2f7425,_0x5e3726=!0x1){super(_0x2f7425);const _0x14aea0=this['bindTemplate'],_0x264dd2=_0x5e3726?'['+C(_0x2f7425,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x574e60=>!_0x574e60),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x14aea0['to']('level',_0x2a738d=>'ck-document-outline__item_level-'+_0x2a738d),_0x14aea0['if']('isActive','ck-document-outline__item_active'),_0x14aea0['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x14aea0['to']('text')},'children':[{'text':_0x14aea0['to']('text',_0x56ef04=>_0x56ef04||_0x264dd2)}],'on':{'click':_0x14aea0['to']('click')}});}}class x extends _0x91ec4{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0xa8a8ae,_0x327833=!0x1,_0x4cd8db){super(_0xa8a8ae),this['showEmptyHeadingText']=_0x327833,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x4cd8db,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x121156,_0x8427bc,_0x4375ea,_0x5ceefe)=>{this['_setActiveItem'](_0x5ceefe,_0x4375ea);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0xa8a8ae['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0xa8a8ae,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0xdd4bf8){_0xdd4bf8['forEach'](_0xb0c26b=>{'insert'==_0xb0c26b['type']?this['_insertItem'](_0xb0c26b['index'],..._0xb0c26b['values']):'delete'==_0xb0c26b['type']&&this['_deleteItem'](_0xb0c26b['index'],_0xb0c26b['howMany']);});}['_setActiveItem'](_0x532870,_0x5dcdc0){if(-0x1!==_0x532870){const _0x283f05=this['items']['get'](_0x532870);_0x283f05&&(_0x283f05['isActive']=!0x1);}-0x1!==_0x5dcdc0&&(this['items']['get'](_0x5dcdc0)['isActive']=!0x0,this['_scrollToItem'](_0x5dcdc0));}['_insertItem'](_0x23f4eb,..._0x5cb58a){const _0x155776=_0x5cb58a['map']((_0x582175,_0x2e3844)=>{const _0x4c92d4=new _(this['locale'],this['showEmptyHeadingText']);return _0x4c92d4['text']=_0x582175['text'],_0x4c92d4['level']=_0x582175['level'],_0x23f4eb+_0x2e3844===this['activeItemIndex']&&(_0x4c92d4['isActive']=!0x0),_0x4c92d4;});this['items']['addMany'](_0x155776,_0x23f4eb);}['_deleteItem'](_0x1596be,_0x13fa1d){do{this['items']['remove'](_0x1596be);}while(--_0x13fa1d);}['_handleItemClick'](_0x5733cf){const _0x5a9ba1=this['items']['getIndex'](_0x5733cf['source']);this['fire']('itemSelected',_0x5a9ba1);}['_scrollToItem'](_0x2c43a2){_0x1fcd75(this['items']['get'](_0x2c43a2)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class L extends _0x325ee5{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25478d){super(_0x25478d),this['view']=new x(_0x25478d['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x55477b(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x423731=this['editor'],_0x1ca333=_0x423731['plugins']['get']('DocumentOutlineUtils');let _0x4774aa=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x423731['config']['get']('documentOutline.container'))throw new _0xfd7f5f('document-outline-container-not-provided',{'editor':_0x423731});_0x423731['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x1ca333['on']('change',this['_handleOutlineChange']['bind'](this)),_0x1ca333['on']('activeItemIndex',(_0x5aa88a,{index:_0x59c90c})=>this['_setActiveViewItem'](_0x59c90c)),this['view']['on']('itemSelected',(_0x4f11c2,_0x511de8)=>{_0x4774aa=!0x0,this['_handleItemSelected'](_0x511de8);}),this['view']['listenTo'](_0x2ffccc['document'],'scroll',()=>{_0x4774aa?_0x4774aa=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x2ffccc['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0xd604fe){const _0x326008=_0x1200f6([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]),_0x185349=0x1cb264a3,_0x4384cb=0x1cb5ed53^_0x185349,_0x53023d=window[_0x1200f6([0x44,0x61,0x74,0x65])][_0x1200f6([0x6e,0x6f,0x77])](),_0x472f50=_0xd604fe[_0x1200f6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2cdbd3=new window[(_0x1200f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1001b8=>{_0x472f50[_0x1200f6([0x6f,0x6e,0x63,0x65])](_0x1200f6([0x72,0x65,0x61,0x64,0x79]),_0x1001b8);}),_0x3b9a23={[_0x1200f6([0x6b,0x74,0x79])]:_0x1200f6([0x45,0x43]),[_0x1200f6([0x75,0x73,0x65])]:_0x1200f6([0x73,0x69,0x67]),[_0x1200f6([0x63,0x72,0x76])]:_0x1200f6([0x50,0x2d,0x32,0x35,0x36]),[_0x1200f6([0x78])]:_0x1200f6([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]),[_0x1200f6([0x79])]:_0x1200f6([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]),[_0x1200f6([0x61,0x6c,0x67])]:_0x1200f6([0x45,0x53,0x32,0x35,0x36])},_0xe3ebb0=_0x472f50[_0x1200f6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1200f6([0x67,0x65,0x74])](_0x1200f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e4530(){let _0xc490d9,_0xc105ff=null,_0x3d82b5=null;try{if(_0xe3ebb0==_0x1200f6([0x47,0x50,0x4c]))return _0x1200f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xc490d9=_0x4ac9e8(),!_0xc490d9)return _0x1200f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xc490d9[_0x1200f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d82b5=_0x20a205(_0xc490d9[_0x1200f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xc490d9[_0x1200f6([0x6a,0x74,0x69])])),await _0x2aa7b6()?_0x1a4bc9()?_0x5b383c()?_0x1200f6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x108c6c()?(_0xc490d9[_0x1200f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1200f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc105ff=_0x2530b5(_0x1200f6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a4491()):_0x1200f6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1200f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1200f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1200f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5b383c(){const _0x53f2ca=[_0x1200f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1200f6([0x74,0x72,0x69,0x61,0x6c])][_0x1200f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc490d9[_0x1200f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53023d/0x3e8:0xe10*_0x4384cb;return _0xc490d9[_0x1200f6([0x65,0x78,0x70])]<_0x53f2ca;}function _0x1a4bc9(){const _0x182ee4=_0xc490d9[_0x1200f6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x182ee4&&(!!_0x182ee4[_0x1200f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1200f6([0x2a]))||(!!_0x182ee4[_0x1200f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1200f6([0x44,0x4f]))||(!!_0x182ee4[_0x1200f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1200f6([0x50,0x50]))||!(!_0x182ee4[_0x1200f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1200f6([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x5652ae()))));}function _0x108c6c(){const _0x12761f=_0xc490d9[_0x1200f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x12761f||0x0==_0x12761f[_0x1200f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x256dfc}=new URL(window[_0x1200f6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x12761f[_0x1200f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256dfc))return!0x0;const _0x4752cb=_0x256dfc[_0x1200f6([0x73,0x70,0x6c,0x69,0x74])](_0x1200f6([0x2e]));return _0x12761f[_0x1200f6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xcdedd5=>_0xcdedd5[_0x1200f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1200f6([0x2a])))[_0x1200f6([0x6d,0x61,0x70])](_0x54c537=>_0x54c537[_0x1200f6([0x73,0x70,0x6c,0x69,0x74])](_0x1200f6([0x2e])))[_0x1200f6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x590277=>_0x590277[_0x1200f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4752cb[_0x1200f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1200f6([0x6d,0x61,0x70])](_0x4ec196=>Array(_0x4752cb[_0x1200f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ec196[_0x1200f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1200f6([0x66,0x69,0x6c,0x6c])](_0x4ec196[0x0]===_0x1200f6([0x2a])?_0x1200f6([0x2a]):'')[_0x1200f6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ec196))[_0x1200f6([0x73,0x6f,0x6d,0x65])](_0x15b59b=>_0x4752cb[_0x1200f6([0x65,0x76,0x65,0x72,0x79])]((_0xeb2594,_0x34dbff)=>_0x15b59b[_0x34dbff]===_0xeb2594||_0x15b59b[_0x34dbff]===_0x1200f6([0x2a])));}function _0x3a4491(){return _0xc105ff&&_0x3d82b5?new window[(_0x1200f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3264ac,_0x2760ed)=>{_0xc105ff[_0x1200f6([0x74,0x68,0x65,0x6e])](_0x3264ac,_0x2760ed),_0x3d82b5[_0x1200f6([0x74,0x68,0x65,0x6e])](_0x1cf85c=>{_0x1cf85c!=_0x1200f6([0x56,0x61,0x6c,0x69,0x64])&&_0x3264ac(_0x1cf85c);},_0x2760ed);}):_0xc105ff||_0x3d82b5||_0x1200f6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x20a205(_0x3a59c1,_0x2932c8){return new window[(_0x1200f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e2025=>{if(_0x15b403())return _0x5e2025(_0x1200f6([0x56,0x61,0x6c,0x69,0x64]));_0x24f365(),_0x472f50[_0x1200f6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1200f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c2423=!0x1;const _0x1566e1=_0x223b34();function _0x5658d6(_0x28533e){return!!_0x28533e&&(typeof _0x28533e===_0x1200f6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x28533e===_0x1200f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x28533e[_0x1200f6([0x74,0x68,0x65,0x6e])]===_0x1200f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x28533e[_0x1200f6([0x63,0x61,0x74,0x63,0x68])]===_0x1200f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x48b87c(_0x3f684c){_0x53a347(_0x3f684c)[_0x1200f6([0x74,0x68,0x65,0x6e])](_0x4426dc=>{if(!_0x4426dc||_0x4426dc[_0x1200f6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1200f6([0x6f,0x6b]))return _0x1200f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c1a2e(_0x5b1a69(_0x1566e1+_0x2932c8))!=_0x4426dc[_0x1200f6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1200f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1200f6([0x56,0x61,0x6c,0x69,0x64]);})[_0x1200f6([0x74,0x68,0x65,0x6e])](_0x1d6b02=>(_0x4689b1(),_0x1d6b02),()=>{const _0x115206=_0x156355();return null==_0x115206?(_0x4689b1(),_0x1200f6([0x56,0x61,0x6c,0x69,0x64])):_0x1200f6(_0x53023d-_0x115206>(0x38bee0a3^_0x185349)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1200f6([0x74,0x68,0x65,0x6e])](_0x5e2025)[_0x1200f6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e2025(_0x1200f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x442d70=0x1c848a23^_0x185349;function _0x4689b1(){const _0x61eab2=_0x1200f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c1a2e(_0x5b1a69(_0x3a59c1)),_0x23226c=_0x8ab910(_0x1c1a2e(window[_0x1200f6([0x4d,0x61,0x74,0x68])][_0x1200f6([0x63,0x65,0x69,0x6c])](_0x53023d/_0x442d70)));window[_0x1200f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1200f6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x61eab2,_0x23226c);}function _0x156355(){const _0x49629f=_0x1200f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c1a2e(_0x5b1a69(_0x3a59c1)),_0x21851b=window[_0x1200f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1200f6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49629f);return _0x21851b?window[_0x1200f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8ab910(_0x21851b),0x10)*_0x442d70:null;}function _0x53a347(_0x1b2742){return new window[(_0x1200f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x908fbe,_0x4ffb40)=>{_0x1b2742[_0x1200f6([0x74,0x68,0x65,0x6e])](_0x908fbe,_0x4ffb40),window[_0x1200f6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ffb40,0x1cb3b063^_0x185349);});}}_0x472f50[_0x1200f6([0x6f,0x6e])](_0x1200f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47eba6,_0x18797f)=>{if(_0x18797f[0x0]!=_0x3a59c1)return _0x5e2025(_0x1200f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18797f[0x1]={..._0x18797f[0x1],[_0x1200f6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1566e1};},{[_0x1200f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1200f6([0x68,0x69,0x67,0x68])}),_0x472f50[_0x1200f6([0x6f,0x6e])](_0x1200f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x51bc44=>{_0x5658d6(_0x51bc44[_0x1200f6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c2423=!0x0,_0x48b87c(_0x51bc44[_0x1200f6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1200f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1200f6([0x6c,0x6f,0x77])}),_0x2cdbd3[_0x1200f6([0x74,0x68,0x65,0x6e])](()=>{_0x2c2423||_0x5e2025(_0x1200f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15b403(){return _0x472f50[_0x1200f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1200f6([0x76,0x69,0x65,0x77])][_0x1200f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1200f6([0x61,0x75,0x74,0x6f]);}function _0x24f365(){_0x472f50[_0x1200f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1200f6([0x76,0x69,0x65,0x77])][_0x1200f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1200f6([0x61,0x75,0x74,0x6f]);}}function _0x2530b5(_0x31f3a3){const _0x39c8e3=[new window[(_0x1200f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27dbbf=>setTimeout(_0x27dbbf,0x1cbb5a6f^_0x185349)),_0x2cdbd3[_0x1200f6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1200f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20627e=>{let _0x34b57a=0x0;_0x472f50[_0x1200f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1200f6([0x6f,0x6e])](_0x1200f6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x465b9c,_0x30cf3c)=>{_0x30cf3c[0x0][_0x1200f6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34b57a++,_0x34b57a==(0x1cb2614b^_0x185349)&&(_0x20627e(),_0x465b9c[_0x1200f6([0x6f,0x66,0x66])]());});}))];return window[_0x1200f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1200f6([0x72,0x61,0x63,0x65])](_0x39c8e3)[_0x1200f6([0x74,0x68,0x65,0x6e])](()=>_0x31f3a3);}async function _0x569d4f(){await _0x2cdbd3,_0x472f50[_0x1200f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1200f6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ce17b,_0x472f50[_0x1200f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1200f6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ce17b,_0x472f50[_0x1200f6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1200f6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5652ae(){return window[_0x1200f6([0x67,0x6c,0x6f,0x62])]&&window[_0x1200f6([0x67,0x6c,0x6f,0x62])][_0x1200f6([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x569f59(_0x5226e8){const _0x4bf2db=_0x5a7734();_0x472f50[_0x4bf2db]=_0x1200f6([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])+_0x5226e8,_0x5226e8!=_0x1200f6([0x56,0x61,0x6c,0x69,0x64])&&_0x569d4f();}function _0x5a7734(){const _0x142302=window[_0x1200f6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1200f6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1200f6([0x6e,0x6f,0x77])]())[_0x1200f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1200f6([0x2e]),'');let _0x37afcd=_0x1200f6([0x61]);for(let _0xad2d43=0x0;_0xad2d43<_0x142302[_0x1200f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xad2d43+=0x2){let _0x258490=window[_0x1200f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x142302[_0x1200f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xad2d43,_0xad2d43+0x2));_0x258490>=_0x326008[_0x1200f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x258490-=_0x326008[_0x1200f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37afcd+=_0x326008[_0x258490];}return _0x37afcd;}function _0x4ac9e8(){const _0x2f746a=_0xe3ebb0[_0x1200f6([0x73,0x70,0x6c,0x69,0x74])](_0x1200f6([0x2e]));if(0x3!=_0x2f746a[_0x1200f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6f7b16(_0x2f746a[0x1]);function _0x6f7b16(_0x573760){const _0x50a4df=_0x53e56c(_0x573760);return _0x50a4df&&_0x425c33()?_0x50a4df:null;function _0x425c33(){const _0x103adb=_0x50a4df[_0x1200f6([0x6a,0x74,0x69])],_0x3e0eab=window[_0x1200f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x103adb[_0x1200f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x103adb[_0x1200f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44d628={..._0x50a4df,[_0x1200f6([0x6a,0x74,0x69])]:_0x103adb[_0x1200f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x103adb[_0x1200f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44d628[_0x1200f6([0x76,0x63])],_0x5b1a69(_0x44d628)==_0x3e0eab;}}}async function _0x2aa7b6(){let _0x5dcb03=!0x0;try{const _0xea6f1f=_0xe3ebb0[_0x1200f6([0x73,0x70,0x6c,0x69,0x74])](_0x1200f6([0x2e])),[_0x29ec46,_0x4e0b4d,_0x267bdb]=_0xea6f1f;return _0x25cae5(_0x29ec46),await _0xe0c3c7(_0x29ec46,_0x4e0b4d,_0x267bdb),_0x5dcb03;}catch{return!0x1;}function _0x25cae5(_0x1f4680){const _0x6adba3=_0x53e56c(_0x1f4680);_0x6adba3&&_0x6adba3[_0x1200f6([0x61,0x6c,0x67])]==_0x1200f6([0x45,0x53,0x32,0x35,0x36])||(_0x5dcb03=!0x1);}async function _0xe0c3c7(_0x52fe8c,_0x2fdbc2,_0x2bc8a9){const _0x364425=window[_0x1200f6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1200f6([0x66,0x72,0x6f,0x6d])](_0xdfa92b(_0x2bc8a9),_0x39de69=>_0x39de69[_0x1200f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbed738=new window[(_0x1200f6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1200f6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52fe8c+_0x1200f6([0x2e])+_0x2fdbc2),_0x24fa39=window[_0x1200f6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1200f6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24fa39)return;const _0x3b4c51=await _0x24fa39[_0x1200f6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1200f6([0x6a,0x77,0x6b]),_0x3b9a23,{[_0x1200f6([0x6e,0x61,0x6d,0x65])]:_0x1200f6([0x45,0x43,0x44,0x53,0x41]),[_0x1200f6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1200f6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1200f6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24fa39[_0x1200f6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1200f6([0x6e,0x61,0x6d,0x65])]:_0x1200f6([0x45,0x43,0x44,0x53,0x41]),[_0x1200f6([0x68,0x61,0x73,0x68])]:{[_0x1200f6([0x6e,0x61,0x6d,0x65])]:_0x1200f6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b4c51,_0x364425,_0xbed738)||(_0x5dcb03=!0x1);}}function _0x53e56c(_0x59d7da){return _0x59d7da[_0x1200f6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1200f6([0x65,0x79]))?JSON[_0x1200f6([0x70,0x61,0x72,0x73,0x65])](_0xdfa92b(_0x59d7da)):null;}function _0xdfa92b(_0x217022){return window[_0x1200f6([0x61,0x74,0x6f,0x62])](_0x217022[_0x1200f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1200f6([0x2b]))[_0x1200f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1200f6([0x2f])));}function _0x5b1a69(_0x331a60){let _0x3bad8b=0x1505;function _0x2deaf1(_0x489872){for(let _0x4c5a5a=0x0;_0x4c5a5a<_0x489872[_0x1200f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c5a5a++){const _0x44e621=_0x489872[_0x1200f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c5a5a);_0x3bad8b=(_0x3bad8b<<0x5)+_0x3bad8b+_0x44e621,_0x3bad8b&=_0x3bad8b;}}function _0x292a54(_0x3ac721){Array[_0x1200f6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ac721)?_0x3ac721[_0x1200f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x292a54):_0x3ac721&&typeof _0x3ac721==_0x1200f6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1200f6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ac721)[_0x1200f6([0x73,0x6f,0x72,0x74])]()[_0x1200f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x334c89,_0x20be6b])=>{_0x2deaf1(_0x334c89),_0x292a54(_0x20be6b);}):_0x2deaf1(window[_0x1200f6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ac721));}return _0x292a54(_0x331a60),_0x3bad8b>>>0x0;}function _0x1c1a2e(_0xf7737d){return _0xf7737d[_0x1200f6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1200f6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1200f6([0x30]));}function _0x8ab910(_0x17d219){return _0x17d219[_0x1200f6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1200f6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1200f6([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ce17b(){}function _0x1200f6(_0x207308){return _0x207308['map'](_0x3eda7a=>String['fromCharCode'](_0x3eda7a))['join']('');}_0x569f59(await _0x4e4530());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x40f6c6,{outlineDefinitions:_0xdf3c73,outlineChanges:_0x10e6a6}){this['_currentOutlineDefinitions']=_0xdf3c73,this['view']['sync'](_0x10e6a6);}['_setActiveViewItem'](_0x527539){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x527539]&&(this['view']['activeItemIndex']=_0x527539);}['_handleItemSelected'](_0x27eedc){const _0x4ee8f2=this['_currentOutlineDefinitions'][_0x27eedc]['modelElement'];this['editor']['model']['change'](_0x452631=>{_0x452631['setSelection'](_0x4ee8f2,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x27eedc);}['_updateActiveDefinitionOnViewportChange'](){const _0x2ed2c9=this['editor'];let _0x9a8f00;for(const _0x167fb3 of _0x2ed2c9['model']['document']['getRootNames']()){const _0x3bbf68=_0x2ed2c9['editing']['view']['getDomRoot'](_0x167fb3),_0x57ffa4=_0x3bbf68&&new _0x2c504e(_0x3bbf68)['getVisible']();if(_0x57ffa4){const _0x5c4e4d=new _0x2c504e(_0x2ffccc['window'])['getIntersection'](_0x57ffa4);_0x5c4e4d&&(_0x9a8f00=_0x5c4e4d['top']+0.25*_0x5c4e4d['height']);}}if(void 0x0===_0x9a8f00)return;const _0x1511ae=k(_0x2ed2c9['editing'],this['_currentOutlineDefinitions'],_0x9a8f00);_0x1511ae?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x1511ae)):this['_setActiveViewItem'](-0x1);}}function k(_0x15fbb7,_0x35b823,_0x4bff66,_0x10cb5c=0x0,_0x587cea=_0x35b823['length']-0x1){const _0x3e783a=Math['floor'](_0x10cb5c+(_0x587cea-_0x10cb5c)/0x2);if(_0x587cea>=_0x10cb5c){const _0x1b694a=_0x35b823[_0x3e783a],_0x1d4a29=_0x15fbb7['mapper']['toViewElement'](_0x1b694a['modelElement']);if(!_0x1d4a29)return null;const _0x4d3fcc=_0x15fbb7['view']['domConverter']['mapViewToDom'](_0x1d4a29);return new _0x2c504e(_0x4d3fcc)['bottom']>_0x4bff66?k(_0x15fbb7,_0x35b823,_0x4bff66,_0x10cb5c,_0x3e783a-0x1):k(_0x15fbb7,_0x35b823,_0x4bff66,_0x3e783a+0x1,_0x587cea);}return _0x3e783a<0x0?null:_0x35b823[_0x3e783a];}class K extends _0x325ee5{['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 _0x57e3f1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b3c90;for(const _0x76f2b2 in _0x57e3f1){const _0xc3380a=_0x76f2b2,_0x4e8c9c=_0x57e3f1[_0xc3380a];if('documentOutlineLicenseKeyValid'==_0x4e8c9c||'documentOutlineLicenseKeyInvalid'==_0x4e8c9c||'documentOutlineLicenseKeyExpired'==_0x4e8c9c||'documentOutlineLicenseKeyDomainLimit'==_0x4e8c9c||'documentOutlineLicenseKeyNotAllowed'==_0x4e8c9c||'documentOutlineLicenseKeyEvaluationLimit'==_0x4e8c9c||'documentOutlineLicenseKeyUsageLimit'==_0x4e8c9c){delete _0x57e3f1[_0xc3380a],_0x4b3c90=_0x4e8c9c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x4b3c90&&_0x57e3f1['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x4b3c90&&_0x57e3f1['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x4b3c90&&_0x57e3f1['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x4b3c90&&_0x57e3f1['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x4b3c90&&_0x57e3f1['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x4b3c90&&_0x57e3f1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class E extends _0xb5e48d{['execute'](){this['editor']['model']['change'](_0x444371=>{this['editor']['model']['insertObject'](_0x444371['createElement']('tableOfContents'));});}['refresh'](){const _0x23317b=this['editor']['model'],_0x2e8b66=_0x23317b['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x2e8b66&&_0x23317b['schema']['findAllowedParent'](_0x2e8b66,'tableOfContents'));}}class N extends _0x325ee5{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2dbf5a=this['editor'];if(_0x2dbf5a['config']['get']('headingId.modelAttributeName'))return;(function(_0x5dd0be){const _0x1c34c1=new Map();if(_0x5dd0be)return _0x5dd0be['forEach'](_0x5d6038=>{'paragraph'!==_0x5d6038['model']&&_0x1c34c1['set'](_0x5d6038['view'],_0x5d6038['model']);}),_0x1c34c1['get']('h1')||_0x1c34c1['set']('h1','heading1'),_0x1c34c1;return _0x1c34c1;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x5b2f22,_0x4ea9d3)=>{this['_customUpcastHeadingsConversion'](_0x4ea9d3),this['_customDataDowncastHeadingsConversion'](_0x5b2f22),_0x2dbf5a['model']['schema']['isRegistered'](_0x5b2f22)&&_0x2dbf5a['model']['schema']['extend'](_0x5b2f22,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x50d5c9){this['editor']['conversion']['for']('upcast')['add'](_0x926336=>_0x926336['on']('element:'+_0x50d5c9,(_0x351e6e,_0x5e2e83,_0x4cd4e6)=>{const {consumable:_0x223cf4,writer:_0x591834}=_0x4cd4e6,_0x21299b=_0x5e2e83['viewItem']['getAttribute']('id'),_0x2c58aa=_0x5e2e83['modelRange']['getContainedElement']();if(_0x2c58aa)return _0x21299b&&_0x21299b['length']||_0x2c58aa['hasAttribute']('headingId')?void(_0x223cf4['consume'](_0x5e2e83['viewItem'],{'attributes':['id']})&&_0x591834['setAttribute']('headingId',_0x21299b,_0x2c58aa)):(_0x223cf4['consume'](_0x5e2e83['viewItem'],{'attributes':['id']}),void _0x591834['setAttribute']('headingId',_0x223b34(),_0x2c58aa));},{'priority':_0x4280c6['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x38abb9){this['editor']['conversion']['for']('downcast')['add'](_0x6c3ce=>_0x6c3ce['on']('attribute:headingId:'+_0x38abb9,(_0x3b9afd,_0x1dd6e3,_0x2a7cc2)=>{if(!_0x2a7cc2['consumable']['consume'](_0x1dd6e3['item'],_0x3b9afd['name']))return;const _0x309775=_0x1dd6e3['item']['getAttribute']('headingId'),_0x5b7595=_0x2a7cc2['mapper']['toViewElement'](_0x1dd6e3['item']);_0x2a7cc2['writer']['setAttribute']('id',_0x309775,_0x5b7595);}));}['_registerHeadingIdAttributePostfixer'](){const _0x4ee796=this['editor'],_0x382c30=new Set(),_0x2b9767=new Set();function _0x3a6c35(_0x583cdf,_0x503315){const _0x5d3923=_0x223b34();return _0x2b9767['add'](_0x5d3923),_0x583cdf['setAttribute']('headingId',_0x5d3923,_0x503315),_0x5d3923;}function _0x35a2db(_0x4a30a0,_0x4164c5){_0x4a30a0['removeAttribute']('headingId',_0x4164c5);}_0x4ee796['model']['document']['registerPostFixer'](_0x65273c=>{const _0x5a1812=_0x4ee796['model']['document']['differ']['getChanges']();let _0x55257f=!0x1;for(const _0x2d2831 of _0x5a1812)if('insert'==_0x2d2831['type']&&_0x2d2831['name']){if(T(_0x2d2831['name'])){const _0xda1705=_0x2d2831['attributes']['get']('headingId');'string'==typeof _0xda1705?_0x382c30['has'](_0xda1705)?(_0x3a6c35(_0x65273c,_0x2d2831['position']['nodeAfter']),_0x55257f=!0x0):_0x2b9767['add'](_0xda1705):(_0x3a6c35(_0x65273c,_0x2d2831['position']['nodeAfter']),_0x55257f=!0x0);}else'string'==typeof _0x2d2831['attributes']['get']('headingId')&&(_0x35a2db(_0x65273c,_0x2d2831['position']['nodeAfter']),_0x55257f=!0x0);}else{if('remove'==_0x2d2831['type']){const _0x5be1e5=_0x2d2831['attributes']['get']('headingId');'string'==typeof _0x5be1e5&&_0x382c30['delete'](_0x5be1e5);}}return _0x55257f;}),_0x4ee796['model']['document']['on']('change',()=>{_0x2b9767['forEach'](_0x1df70b=>_0x382c30['add'](_0x1df70b)),_0x2b9767['clear']();});}}function T(_0x5ed3d0){return!!_0x5ed3d0['match'](/heading\d/);}class A extends _0x325ee5{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x9ae8c9,I,N];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x469cd4){super(_0x469cd4),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x1d6986=this['editor'],_0xb380f0=_0x1d6986['editing']['view']['document'];_0x1d6986['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x1d6986['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0xb380f0,'click',(_0x49476d,_0x89a0a9)=>{if(!_0x89a0a9['target'])return;const _0x2d537f=_0x89a0a9['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x2d537f)&&(_0x89a0a9['domEvent']['preventDefault'](),_0x49476d['stop'](),this['_handleScrollToHeading'](_0x2d537f));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x1d6986['commands']['add']('insertTableOfContents',new E(_0x1d6986));const _0x47f29a=_0x1d6986['config']['get']('tableOfContents.headings');if(_0x47f29a&&_0x47f29a['length'])this['listenTo'](_0x1d6986['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x47f29a),this['_updateTableOfContentsElements']();});else _0x1d6986['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x26746a,_0x2b506a)=>{this['_currentOutlineDefinitions']=_0x2b506a['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x1d6986['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x52cdc0){const _0x49feb7=_0xe90f94([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]),_0x453908=0x6b9b05fd,_0x5aea45=0x6b9c8c0d^_0x453908,_0x52b60d=window[_0xe90f94([0x44,0x61,0x74,0x65])][_0xe90f94([0x6e,0x6f,0x77])](),_0x30cafd=_0x52cdc0[_0xe90f94([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e1e3c=new window[(_0xe90f94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x144cf3=>{_0x30cafd[_0xe90f94([0x6f,0x6e,0x63,0x65])](_0xe90f94([0x72,0x65,0x61,0x64,0x79]),_0x144cf3);}),_0xefa226={[_0xe90f94([0x6b,0x74,0x79])]:_0xe90f94([0x45,0x43]),[_0xe90f94([0x75,0x73,0x65])]:_0xe90f94([0x73,0x69,0x67]),[_0xe90f94([0x63,0x72,0x76])]:_0xe90f94([0x50,0x2d,0x32,0x35,0x36]),[_0xe90f94([0x78])]:_0xe90f94([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]),[_0xe90f94([0x79])]:_0xe90f94([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]),[_0xe90f94([0x61,0x6c,0x67])]:_0xe90f94([0x45,0x53,0x32,0x35,0x36])},_0xf3ed08=_0x30cafd[_0xe90f94([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe90f94([0x67,0x65,0x74])](_0xe90f94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a56be(){let _0x1dbdf2,_0x494da2=null,_0x75d584=null;try{if(_0xf3ed08==_0xe90f94([0x47,0x50,0x4c]))return _0xe90f94([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1dbdf2=_0x30a975(),!_0x1dbdf2)return _0xe90f94([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1dbdf2[_0xe90f94([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x75d584=_0x295c42(_0x1dbdf2[_0xe90f94([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1dbdf2[_0xe90f94([0x6a,0x74,0x69])])),await _0x4f3c76()?_0x3ac878()?_0x1663f6()?_0xe90f94([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x409205()?(_0x1dbdf2[_0xe90f94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe90f94([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x494da2=_0x1436eb(_0xe90f94([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a7831()):_0xe90f94([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe90f94([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe90f94([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe90f94([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1663f6(){const _0x4089ce=[_0xe90f94([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe90f94([0x74,0x72,0x69,0x61,0x6c])][_0xe90f94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dbdf2[_0xe90f94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52b60d/0x3e8:0xe10*_0x5aea45;return _0x1dbdf2[_0xe90f94([0x65,0x78,0x70])]<_0x4089ce;}function _0x3ac878(){const _0x1ff77b=_0x1dbdf2[_0xe90f94([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1ff77b&&(!!_0x1ff77b[_0xe90f94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe90f94([0x2a]))||(!!_0x1ff77b[_0xe90f94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe90f94([0x54,0x4f,0x43]))||(!!_0x1ff77b[_0xe90f94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe90f94([0x50,0x50]))||!(!_0x1ff77b[_0xe90f94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe90f94([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0xaef3f1()))));}function _0x409205(){const _0xf581ff=_0x1dbdf2[_0xe90f94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf581ff||0x0==_0xf581ff[_0xe90f94([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f1958}=new URL(window[_0xe90f94([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf581ff[_0xe90f94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1958))return!0x0;const _0x3ccff9=_0x1f1958[_0xe90f94([0x73,0x70,0x6c,0x69,0x74])](_0xe90f94([0x2e]));return _0xf581ff[_0xe90f94([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58ba98=>_0x58ba98[_0xe90f94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe90f94([0x2a])))[_0xe90f94([0x6d,0x61,0x70])](_0x4910e9=>_0x4910e9[_0xe90f94([0x73,0x70,0x6c,0x69,0x74])](_0xe90f94([0x2e])))[_0xe90f94([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xaf150a=>_0xaf150a[_0xe90f94([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3ccff9[_0xe90f94([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe90f94([0x6d,0x61,0x70])](_0x22691a=>Array(_0x3ccff9[_0xe90f94([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22691a[_0xe90f94([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe90f94([0x66,0x69,0x6c,0x6c])](_0x22691a[0x0]===_0xe90f94([0x2a])?_0xe90f94([0x2a]):'')[_0xe90f94([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22691a))[_0xe90f94([0x73,0x6f,0x6d,0x65])](_0x57f9fb=>_0x3ccff9[_0xe90f94([0x65,0x76,0x65,0x72,0x79])]((_0x4ba999,_0x3f86cb)=>_0x57f9fb[_0x3f86cb]===_0x4ba999||_0x57f9fb[_0x3f86cb]===_0xe90f94([0x2a])));}function _0x5a7831(){return _0x494da2&&_0x75d584?new window[(_0xe90f94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x96be23,_0x52cd37)=>{_0x494da2[_0xe90f94([0x74,0x68,0x65,0x6e])](_0x96be23,_0x52cd37),_0x75d584[_0xe90f94([0x74,0x68,0x65,0x6e])](_0x1f9032=>{_0x1f9032!=_0xe90f94([0x56,0x61,0x6c,0x69,0x64])&&_0x96be23(_0x1f9032);},_0x52cd37);}):_0x494da2||_0x75d584||_0xe90f94([0x56,0x61,0x6c,0x69,0x64]);}}function _0x295c42(_0x5a1389,_0x33e0a9){return new window[(_0xe90f94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5200fe=>{if(_0x46d3d8())return _0x5200fe(_0xe90f94([0x56,0x61,0x6c,0x69,0x64]));_0x504223(),_0x30cafd[_0xe90f94([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe90f94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ca7c5=!0x1;const _0x45be40=_0x223b34();function _0x2b039b(_0xe00f4){return!!_0xe00f4&&(typeof _0xe00f4===_0xe90f94([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe00f4===_0xe90f94([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe00f4[_0xe90f94([0x74,0x68,0x65,0x6e])]===_0xe90f94([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe00f4[_0xe90f94([0x63,0x61,0x74,0x63,0x68])]===_0xe90f94([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28ea0d(_0x4a3502){_0x4d4112(_0x4a3502)[_0xe90f94([0x74,0x68,0x65,0x6e])](_0x2a54dc=>{if(!_0x2a54dc||_0x2a54dc[_0xe90f94([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe90f94([0x6f,0x6b]))return _0xe90f94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1afdd8(_0x46afce(_0x45be40+_0x33e0a9))!=_0x2a54dc[_0xe90f94([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe90f94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe90f94([0x56,0x61,0x6c,0x69,0x64]);})[_0xe90f94([0x74,0x68,0x65,0x6e])](_0xb78d40=>(_0xaa9712(),_0xb78d40),()=>{const _0x19c131=_0x31c668();return null==_0x19c131?(_0xaa9712(),_0xe90f94([0x56,0x61,0x6c,0x69,0x64])):_0xe90f94(_0x52b60d-_0x19c131>(0x4f9781fd^_0x453908)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe90f94([0x74,0x68,0x65,0x6e])](_0x5200fe)[_0xe90f94([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5200fe(_0xe90f94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a5f85=0x6badeb7d^_0x453908;function _0xaa9712(){const _0x485d21=_0xe90f94([0x6c,0x6c,0x63,0x74,0x2d])+_0x1afdd8(_0x46afce(_0x5a1389)),_0x550f29=_0x2ad9fa(_0x1afdd8(window[_0xe90f94([0x4d,0x61,0x74,0x68])][_0xe90f94([0x63,0x65,0x69,0x6c])](_0x52b60d/_0x1a5f85)));window[_0xe90f94([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe90f94([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x485d21,_0x550f29);}function _0x31c668(){const _0x2d0f6c=_0xe90f94([0x6c,0x6c,0x63,0x74,0x2d])+_0x1afdd8(_0x46afce(_0x5a1389)),_0x177f87=window[_0xe90f94([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe90f94([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d0f6c);return _0x177f87?window[_0xe90f94([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ad9fa(_0x177f87),0x10)*_0x1a5f85:null;}function _0x4d4112(_0x280846){return new window[(_0xe90f94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23f150,_0x111745)=>{_0x280846[_0xe90f94([0x74,0x68,0x65,0x6e])](_0x23f150,_0x111745),window[_0xe90f94([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x111745,0x6b9ad13d^_0x453908);});}}_0x30cafd[_0xe90f94([0x6f,0x6e])](_0xe90f94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47806b,_0x12ce21)=>{if(_0x12ce21[0x0]!=_0x5a1389)return _0x5200fe(_0xe90f94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12ce21[0x1]={..._0x12ce21[0x1],[_0xe90f94([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45be40};},{[_0xe90f94([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe90f94([0x68,0x69,0x67,0x68])}),_0x30cafd[_0xe90f94([0x6f,0x6e])](_0xe90f94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c0ac8=>{_0x2b039b(_0x4c0ac8[_0xe90f94([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ca7c5=!0x0,_0x28ea0d(_0x4c0ac8[_0xe90f94([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe90f94([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe90f94([0x6c,0x6f,0x77])}),_0x3e1e3c[_0xe90f94([0x74,0x68,0x65,0x6e])](()=>{_0x3ca7c5||_0x5200fe(_0xe90f94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x46d3d8(){return _0x30cafd[_0xe90f94([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe90f94([0x76,0x69,0x65,0x77])][_0xe90f94([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe90f94([0x61,0x75,0x74,0x6f]);}function _0x504223(){_0x30cafd[_0xe90f94([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe90f94([0x76,0x69,0x65,0x77])][_0xe90f94([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe90f94([0x61,0x75,0x74,0x6f]);}}function _0x1436eb(_0xc8ea59){const _0x5d6256=[new window[(_0xe90f94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x294486=>setTimeout(_0x294486,0x6b923b31^_0x453908)),_0x3e1e3c[_0xe90f94([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe90f94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd7a64c=>{let _0x561bdf=0x0;_0x30cafd[_0xe90f94([0x6d,0x6f,0x64,0x65,0x6c])][_0xe90f94([0x6f,0x6e])](_0xe90f94([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x187795,_0x25191a)=>{_0x25191a[0x0][_0xe90f94([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x561bdf++,_0x561bdf==(0x6b9b0015^_0x453908)&&(_0xd7a64c(),_0x187795[_0xe90f94([0x6f,0x66,0x66])]());});}))];return window[_0xe90f94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe90f94([0x72,0x61,0x63,0x65])](_0x5d6256)[_0xe90f94([0x74,0x68,0x65,0x6e])](()=>_0xc8ea59);}async function _0x11adac(){await _0x3e1e3c,_0x30cafd[_0xe90f94([0x6d,0x6f,0x64,0x65,0x6c])][_0xe90f94([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8d32f4,_0x30cafd[_0xe90f94([0x6d,0x6f,0x64,0x65,0x6c])][_0xe90f94([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8d32f4,_0x30cafd[_0xe90f94([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe90f94([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xaef3f1(){return window[_0xe90f94([0x67,0x6c,0x6f,0x62])]&&window[_0xe90f94([0x67,0x6c,0x6f,0x62])][_0xe90f94([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x3b558a(_0x4f6f35){const _0x5c9f92=_0x46c69c();_0x30cafd[_0x5c9f92]=_0xe90f94([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])+_0x4f6f35,_0x4f6f35!=_0xe90f94([0x56,0x61,0x6c,0x69,0x64])&&_0x11adac();}function _0x46c69c(){const _0x38837e=window[_0xe90f94([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe90f94([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe90f94([0x6e,0x6f,0x77])]())[_0xe90f94([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe90f94([0x2e]),'');let _0x12a955=_0xe90f94([0x6d]);for(let _0x41b769=0x0;_0x41b769<_0x38837e[_0xe90f94([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41b769+=0x2){let _0x52ef43=window[_0xe90f94([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38837e[_0xe90f94([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41b769,_0x41b769+0x2));_0x52ef43>=_0x49feb7[_0xe90f94([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52ef43-=_0x49feb7[_0xe90f94([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x12a955+=_0x49feb7[_0x52ef43];}return _0x12a955;}function _0x30a975(){const _0x531d39=_0xf3ed08[_0xe90f94([0x73,0x70,0x6c,0x69,0x74])](_0xe90f94([0x2e]));if(0x3!=_0x531d39[_0xe90f94([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x52e33f(_0x531d39[0x1]);function _0x52e33f(_0x3dc871){const _0x3ac234=_0x4228b7(_0x3dc871);return _0x3ac234&&_0x5f03b6()?_0x3ac234:null;function _0x5f03b6(){const _0x25447f=_0x3ac234[_0xe90f94([0x6a,0x74,0x69])],_0x4d7952=window[_0xe90f94([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25447f[_0xe90f94([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25447f[_0xe90f94([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x40e153={..._0x3ac234,[_0xe90f94([0x6a,0x74,0x69])]:_0x25447f[_0xe90f94([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25447f[_0xe90f94([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x40e153[_0xe90f94([0x76,0x63])],_0x46afce(_0x40e153)==_0x4d7952;}}}async function _0x4f3c76(){let _0x2fc124=!0x0;try{const _0x31df21=_0xf3ed08[_0xe90f94([0x73,0x70,0x6c,0x69,0x74])](_0xe90f94([0x2e])),[_0x30b24e,_0x2c757d,_0x397e2b]=_0x31df21;return _0x13f756(_0x30b24e),await _0x4331f6(_0x30b24e,_0x2c757d,_0x397e2b),_0x2fc124;}catch{return!0x1;}function _0x13f756(_0x1e1d13){const _0x894528=_0x4228b7(_0x1e1d13);_0x894528&&_0x894528[_0xe90f94([0x61,0x6c,0x67])]==_0xe90f94([0x45,0x53,0x32,0x35,0x36])||(_0x2fc124=!0x1);}async function _0x4331f6(_0x3d8a00,_0xbb35c7,_0x1c96e9){const _0x57e1bd=window[_0xe90f94([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe90f94([0x66,0x72,0x6f,0x6d])](_0x2521df(_0x1c96e9),_0x58e681=>_0x58e681[_0xe90f94([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x31f494=new window[(_0xe90f94([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe90f94([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d8a00+_0xe90f94([0x2e])+_0xbb35c7),_0x31d92e=window[_0xe90f94([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe90f94([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31d92e)return;const _0x2611ed=await _0x31d92e[_0xe90f94([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe90f94([0x6a,0x77,0x6b]),_0xefa226,{[_0xe90f94([0x6e,0x61,0x6d,0x65])]:_0xe90f94([0x45,0x43,0x44,0x53,0x41]),[_0xe90f94([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe90f94([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe90f94([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31d92e[_0xe90f94([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe90f94([0x6e,0x61,0x6d,0x65])]:_0xe90f94([0x45,0x43,0x44,0x53,0x41]),[_0xe90f94([0x68,0x61,0x73,0x68])]:{[_0xe90f94([0x6e,0x61,0x6d,0x65])]:_0xe90f94([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2611ed,_0x57e1bd,_0x31f494)||(_0x2fc124=!0x1);}}function _0x4228b7(_0x221145){return _0x221145[_0xe90f94([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe90f94([0x65,0x79]))?JSON[_0xe90f94([0x70,0x61,0x72,0x73,0x65])](_0x2521df(_0x221145)):null;}function _0x2521df(_0x3d29be){return window[_0xe90f94([0x61,0x74,0x6f,0x62])](_0x3d29be[_0xe90f94([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe90f94([0x2b]))[_0xe90f94([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe90f94([0x2f])));}function _0x46afce(_0x36f1ba){let _0x43546f=0x1505;function _0x4af28d(_0x13c812){for(let _0x94092c=0x0;_0x94092c<_0x13c812[_0xe90f94([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x94092c++){const _0x10f56b=_0x13c812[_0xe90f94([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x94092c);_0x43546f=(_0x43546f<<0x5)+_0x43546f+_0x10f56b,_0x43546f&=_0x43546f;}}function _0x17d4e0(_0x5f139b){Array[_0xe90f94([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5f139b)?_0x5f139b[_0xe90f94([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17d4e0):_0x5f139b&&typeof _0x5f139b==_0xe90f94([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe90f94([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5f139b)[_0xe90f94([0x73,0x6f,0x72,0x74])]()[_0xe90f94([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x46f352,_0x5c9910])=>{_0x4af28d(_0x46f352),_0x17d4e0(_0x5c9910);}):_0x4af28d(window[_0xe90f94([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5f139b));}return _0x17d4e0(_0x36f1ba),_0x43546f>>>0x0;}function _0x1afdd8(_0x442016){return _0x442016[_0xe90f94([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe90f94([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe90f94([0x30]));}function _0x2ad9fa(_0x257f97){return _0x257f97[_0xe90f94([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe90f94([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe90f94([0x6a,0x6f,0x69,0x6e])]('');}function _0x8d32f4(){}function _0xe90f94(_0x1d2473){return _0x1d2473['map'](_0x8a85d1=>String['fromCharCode'](_0x8a85d1))['join']('');}_0x3b558a(await _0x1a56be());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x2e0b39=>{'$graveyard'!==_0x2e0b39['rootName']&&this['editor']['editing']['reconvertItem'](_0x2e0b39);});}['_trackNewToCElements'](){for(const _0x270fd9 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x270fd9['type']||'tableOfContents'!==_0x270fd9['name'])return;this['_tableOfContentsElements']['add'](_0x270fd9['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x4de860){const _0xa1cd57=this['editor'],_0x4566f7=[];for(const _0x21e01d of _0xa1cd57['model']['document']['getRootNames']())_0x304ecb(_0xa1cd57['model']['document']['getRoot'](_0x21e01d));function _0x304ecb(_0x429d1b){for(const _0x11299b of _0x429d1b['getChildren']())_0x11299b['is']('element')&&(_0x4de860['includes'](_0x11299b['name'])&&_0x4566f7['push']({'level':_0x4de860['indexOf'](_0x11299b['name'])+0x1,'text':v(_0x11299b),'modelElement':_0x11299b}),_0x304ecb(_0x11299b));}return _0x4566f7;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x4e9763=this['editor']['conversion'];_0x4e9763['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x4e9763['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x2142ec,{writer:_0x949410})=>this['_createTableOfContents'](_0x949410,!0x0)}),_0x4e9763['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x4139a8,{writer:_0x324f08})=>{this['_tableOfContentsElements']['add'](_0x4139a8);const _0x22aa6a=this['_createTableOfContents'](_0x324f08);return _0x15f1ab(_0x22aa6a,_0x324f08,{'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'](_0xabcc9f,_0x1642a6=!0x1){const {locale:_0x4bcae5}=this['editor'],_0x5a29f0=_0xabcc9f['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x1642a6&&{'data-table-of-contents-label':C(_0x4bcae5,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x1642a6&&_0xabcc9f['insert'](_0xabcc9f['createPositionAt'](_0x5a29f0,'end'),_0xabcc9f['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0xabcc9f['createText'](C(_0x4bcae5,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x1321a2=_0x1642a6?'':'['+C(_0x4bcae5,'Empty\x20heading')+']';let _0x4a276c=_0x5a29f0;return this['_currentOutlineDefinitions']['forEach']((_0x386e25,_0xabd43e,_0x2f981a)=>{const _0x1f9f72=this['editor']['model']['hasContent'](_0x386e25['modelElement'],{'ignoreWhitespaces':!0x0}),_0x503394=_0x1f9f72?_0x386e25['text']:_0x1321a2,_0xdfc9f7=_0x386e25['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x2d8a8d=_0xabcc9f['createContainerElement']('a',{'href':'#'+_0xdfc9f7,...!_0x1642a6&&{'tabindex':'-1'}},[_0xabcc9f['createText'](_0x503394)]),_0xc410e9=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0xabcc9f['setCustomProperty']('tableOfContentsHeadingIndex',_0xabd43e,_0x2d8a8d);const _0x2d754f=_0xabcc9f['createContainerElement']('li',null,[_0x1f9f72||!_0x1642a6&&_0xc410e9?_0x2d8a8d:_0xabcc9f['createText']('')]),_0xf84e78=_0xabd43e?_0x2f981a[_0xabd43e-0x1]['level']:0x0,_0x367097=Math['abs'](_0x386e25['level']-_0xf84e78);if(_0x386e25['level']>_0xf84e78){const _0xeebb5e=P(_0x2d754f,_0x367097,_0xabcc9f);_0xabcc9f['insert'](_0xabcc9f['createPositionAt'](_0x4a276c,'end'),_0xeebb5e);}else{const _0x2d6186=function(_0xf191af,_0x29c25a){return _0xf191af['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x103dbd=>_0x103dbd['is']('element','ol'))[_0x29c25a];}(_0x4a276c,_0x367097);_0xabcc9f['insert'](_0xabcc9f['createPositionAt'](_0x2d6186,'end'),_0x2d754f);}_0x4a276c=_0x2d754f;}),_0x5a29f0;}['_handleScrollToHeading'](_0x271653){const _0x3d75c3=this['_currentOutlineDefinitions'][_0x271653]['modelElement'];this['editor']['model']['change'](_0x106246=>{_0x106246['setSelection'](_0x3d75c3,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x27441b,_0x452802)=>{const _0x8fc345=_0x452802['mapper'],_0x552009=_0x8fc345['findMappedViewAncestor'](_0x452802['viewPosition']),_0x4678e3=_0x8fc345['toModelElement'](_0x552009);_0x4678e3['is']('element','tableOfContents')&&(_0x452802['modelPosition']=this['editor']['model']['createPositionAt'](_0x4678e3,0x0),_0x27441b['stop']());};}}function P(_0x2079b6,_0x167556,_0x87702f){return 0x1===_0x167556?_0x87702f['createContainerElement']('ol',null,[_0x2079b6]):_0x87702f['createContainerElement']('ol',null,[_0x87702f['createContainerElement']('li',null,[P(_0x2079b6,_0x167556-0x1,_0x87702f)])]);}class D extends _0x325ee5{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x42034e=this['editor'];_0x42034e['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x418b7f=this['_createButton'](_0x4a5eaa);return _0x418b7f['tooltip']=!0x0,_0x418b7f;}),_0x42034e['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x49114c)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3e0ad5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2dcf92;for(const _0x44214e in _0x3e0ad5){const _0x545c5f=_0x44214e,_0x5645b0=_0x3e0ad5[_0x545c5f];if('tableOfContentsLicenseKeyValid'==_0x5645b0||'tableOfContentsLicenseKeyInvalid'==_0x5645b0||'tableOfContentsLicenseKeyExpired'==_0x5645b0||'tableOfContentsLicenseKeyDomainLimit'==_0x5645b0||'tableOfContentsLicenseKeyNotAllowed'==_0x5645b0||'tableOfContentsLicenseKeyEvaluationLimit'==_0x5645b0||'tableOfContentsLicenseKeyUsageLimit'==_0x5645b0){delete _0x3e0ad5[_0x545c5f],_0x2dcf92=_0x5645b0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x2dcf92&&_0x3e0ad5['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x2dcf92&&_0x3e0ad5['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x2dcf92&&_0x3e0ad5['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x2dcf92&&_0x3e0ad5['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x2dcf92&&_0x3e0ad5['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x2dcf92&&_0x3e0ad5['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x324d23){const _0x315c7e=this['editor'],_0x8cbfb=_0x315c7e['locale'],_0x4e9973=_0x315c7e['commands']['get']('insertTableOfContents'),_0x4787d0=new _0x324d23(_0x8cbfb);return _0x4787d0['set']({'label':C(_0x8cbfb,'Table\x20of\x20contents'),'icon':_0x1ccc52}),_0x4787d0['bind']('isEnabled')['to'](_0x4e9973,'isEnabled'),this['listenTo'](_0x4787d0,'execute',()=>{_0x315c7e['execute']('insertTableOfContents'),_0x315c7e['editing']['view']['focus']();}),_0x4787d0;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class H extends _0x325ee5{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.7",
3
+ "version": "48.1.0-alpha.8",
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.7",
25
- "@ckeditor/ckeditor5-engine": "48.1.0-alpha.7",
26
- "@ckeditor/ckeditor5-heading": "48.1.0-alpha.7",
27
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.7",
28
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.7",
29
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.7",
30
- "@ckeditor/ckeditor5-widget": "48.1.0-alpha.7",
24
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.8",
25
+ "@ckeditor/ckeditor5-engine": "48.1.0-alpha.8",
26
+ "@ckeditor/ckeditor5-heading": "48.1.0-alpha.8",
27
+ "@ckeditor/ckeditor5-icons": "48.1.0-alpha.8",
28
+ "@ckeditor/ckeditor5-ui": "48.1.0-alpha.8",
29
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.8",
30
+ "@ckeditor/ckeditor5-widget": "48.1.0-alpha.8",
31
31
  "es-toolkit": "1.45.1"
32
32
  },
33
33
  "files": [