@ckeditor/ckeditor5-slash-command 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 +9 -9
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x2086f7}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x200a99}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x35402c,uid as _0x578b17}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x157b7c,IconQuote as _0x5cec55,IconBulletedList as _0x20786a,IconCodeBlock as _0x10c5d7,IconBrowseFiles as _0x983869,IconEmoji as _0x52e9b9,IconHeading1 as _0x21489f,IconHeading2 as _0x3bb92d,IconHeading3 as _0xd7b4ef,IconHeading4 as _0x46adc7,IconHeading5 as _0x535329,IconHeading6 as _0x14095e,IconHorizontalLine as _0x2e44b0,IconHtml as _0x5cf6b0,IconIndent as _0x7e594b,IconTable as _0x7ac673,IconTableOfContents as _0x311137,IconNumberedList as _0x21bc15,IconOutdent as _0x229c6c,IconParagraph as _0x7b4c50,IconTodoList as _0x5be284,IconFootnote as _0x4e39df,IconPlay as _0x5eb89b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x54debf,View as _0x562b9f}from'@ckeditor/ckeditor5-ui/dist/index.js';class O extends _0x2086f7{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4158cb){super(_0x4158cb),this['_allowedCommands']=null;}['afterInit'](){const _0x136634=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x5e6e2a=function(_0x2e728f){let _0x12637d=['heading4','heading5','heading6'];if(_0x2e728f){const _0x1be950=_0x2e728f['map'](_0x27ba3b=>_0x27ba3b['model']);_0x12637d=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x4dccdb=>!_0x1be950['includes'](_0x4dccdb));}return _0x12637d;}(this['editor']['config']['get']('heading.options'));let _0x3f804e=this['getDefaultCommands']()['filter'](_0x4d6193=>!_0x5e6e2a['includes'](_0x4d6193['id']))['filter'](_0x5018dd=>!_0x136634['includes'](_0x5018dd['commandName']));const _0x39370c=this['editor']['config']['get']('slashCommand.extraCommands');_0x39370c&&_0x39370c['length']&&(_0x3f804e=_0x3f804e['concat'](_0x39370c));const _0x42a7e9=this['editor']['config']['get']('template.definitions');_0x42a7e9&&_0x42a7e9['length']&&(_0x3f804e=_0x3f804e['concat'](function(_0x217317){return _0x217317['map'](_0xcd46b7=>{const {title:_0x3b2ae7,icon:_0x2edd66,description:_0x4bc7c3,data:_0x4fabfc}=_0xcd46b7,_0x23e447={'id':K(_0x3b2ae7,'template'),'commandName':'insertTemplate','execute':_0x14523e=>{_0x14523e['execute']('insertTemplate',_0x4fabfc);},'description':_0x4bc7c3,'icon':_0x2edd66,'title':_0x3b2ae7};return _0x2edd66&&(_0x23e447['isIconColorInherited']=!0x1),_0x23e447;});}(_0x42a7e9)));const _0x34b4d3=this['editor']['config']['get']('style.definitions');_0x34b4d3&&_0x34b4d3['length']&&(_0x3f804e=_0x3f804e['concat'](function(_0xcb172a){return _0xcb172a['map'](_0x3684bf=>({'id':K(_0x3684bf['name'],'style'),'commandName':'style','execute':_0x6e3734=>{_0x6e3734['execute']('style',{'styleName':_0x3684bf['name']});},'isEnabled':_0x41a4ff=>{const _0x1bd892=_0x41a4ff['commands']['get']('style');return _0x1bd892['isEnabled']&&_0x1bd892['enabledStyles']['includes'](_0x3684bf['name']);},'title':_0x3684bf['name']}));}(_0x34b4d3)));const _0x187977=_0x3f804e['filter'](_0x5d9eb2=>!_0x5d9eb2['commandName']||void 0x0!==this['editor']['commands']['get'](_0x5d9eb2['commandName'])),_0x2c3cb4=[];for(const _0x7141ee of _0x187977)_0x2c3cb4['push']({'id':_0x7141ee['id'],'commandName':_0x7141ee['commandName'],'title':'function'==typeof _0x7141ee['title']?_0x7141ee['title'](this['editor']):_0x7141ee['title'],'description':_0x7141ee['description'],'icon':_0x7141ee['icon'],'isIconColorInherited':_0x7141ee['isIconColorInherited'],'aliases':_0x7141ee['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x7141ee),'execute':()=>this['_proxyExecute'](_0x7141ee)});this['_allowedCommands']=_0x2c3cb4['sort'](M),async function(_0x5a8313){const _0x57ecd2=_0x58591b([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0xb36bf4=0x305505ed,_0x3253c6=0x30528c35^_0xb36bf4,_0x520105=window[_0x58591b([0x44,0x61,0x74,0x65])][_0x58591b([0x6e,0x6f,0x77])](),_0x44af8c=_0x5a8313[_0x58591b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xfb9dfe=new window[(_0x58591b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32a687=>{_0x44af8c[_0x58591b([0x6f,0x6e,0x63,0x65])](_0x58591b([0x72,0x65,0x61,0x64,0x79]),_0x32a687);}),_0x306ef6={[_0x58591b([0x6b,0x74,0x79])]:_0x58591b([0x45,0x43]),[_0x58591b([0x75,0x73,0x65])]:_0x58591b([0x73,0x69,0x67]),[_0x58591b([0x63,0x72,0x76])]:_0x58591b([0x50,0x2d,0x32,0x35,0x36]),[_0x58591b([0x78])]:_0x58591b([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]),[_0x58591b([0x79])]:_0x58591b([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]),[_0x58591b([0x61,0x6c,0x67])]:_0x58591b([0x45,0x53,0x32,0x35,0x36])},_0x519bd3=_0x44af8c[_0x58591b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x58591b([0x67,0x65,0x74])](_0x58591b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x889804(){let _0x44844b,_0x524497=null,_0x2fe526=null;try{if(_0x519bd3==_0x58591b([0x47,0x50,0x4c]))return _0x58591b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x44844b=_0x4ab403(),!_0x44844b)return _0x58591b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x44844b[_0x58591b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2fe526=_0x55626d(_0x44844b[_0x58591b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x44844b[_0x58591b([0x6a,0x74,0x69])])),await _0x5836fc()?_0x455dcd()?_0xb695bf()?_0x58591b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x520c73()?(_0x44844b[_0x58591b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58591b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x524497=_0x9c30a2(_0x58591b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17f798()):_0x58591b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x58591b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x58591b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x58591b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb695bf(){const _0x40e59f=[_0x58591b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x58591b([0x74,0x72,0x69,0x61,0x6c])][_0x58591b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44844b[_0x58591b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x520105/0x3e8:0xe10*_0x3253c6;return _0x44844b[_0x58591b([0x65,0x78,0x70])]<_0x40e59f;}function _0x455dcd(){const _0x3f8ad6=_0x44844b[_0x58591b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3f8ad6&&(!!_0x3f8ad6[_0x58591b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58591b([0x2a]))||(!!_0x3f8ad6[_0x58591b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58591b([0x53,0x43]))||(!!_0x3f8ad6[_0x58591b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58591b([0x50,0x50]))||!(!_0x3f8ad6[_0x58591b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58591b([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x3fe46e()))));}function _0x520c73(){const _0x1ee03e=_0x44844b[_0x58591b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1ee03e||0x0==_0x1ee03e[_0x58591b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b8a1c}=new URL(window[_0x58591b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1ee03e[_0x58591b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b8a1c))return!0x0;const _0x16862a=_0x1b8a1c[_0x58591b([0x73,0x70,0x6c,0x69,0x74])](_0x58591b([0x2e]));return _0x1ee03e[_0x58591b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51095c=>_0x51095c[_0x58591b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58591b([0x2a])))[_0x58591b([0x6d,0x61,0x70])](_0x34397f=>_0x34397f[_0x58591b([0x73,0x70,0x6c,0x69,0x74])](_0x58591b([0x2e])))[_0x58591b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6117b=>_0x6117b[_0x58591b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x16862a[_0x58591b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58591b([0x6d,0x61,0x70])](_0x2b8a2d=>Array(_0x16862a[_0x58591b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2b8a2d[_0x58591b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58591b([0x66,0x69,0x6c,0x6c])](_0x2b8a2d[0x0]===_0x58591b([0x2a])?_0x58591b([0x2a]):'')[_0x58591b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2b8a2d))[_0x58591b([0x73,0x6f,0x6d,0x65])](_0x28c478=>_0x16862a[_0x58591b([0x65,0x76,0x65,0x72,0x79])]((_0x269471,_0x287dae)=>_0x28c478[_0x287dae]===_0x269471||_0x28c478[_0x287dae]===_0x58591b([0x2a])));}function _0x17f798(){return _0x524497&&_0x2fe526?new window[(_0x58591b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fb316,_0x234842)=>{_0x524497[_0x58591b([0x74,0x68,0x65,0x6e])](_0x4fb316,_0x234842),_0x2fe526[_0x58591b([0x74,0x68,0x65,0x6e])](_0x5aa49e=>{_0x5aa49e!=_0x58591b([0x56,0x61,0x6c,0x69,0x64])&&_0x4fb316(_0x5aa49e);},_0x234842);}):_0x524497||_0x2fe526||_0x58591b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55626d(_0x123397,_0x181198){return new window[(_0x58591b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d89d6=>{if(_0x45eef2())return _0x1d89d6(_0x58591b([0x56,0x61,0x6c,0x69,0x64]));_0x4f8861(),_0x44af8c[_0x58591b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x58591b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17b8da=!0x1;const _0x31ce5c=_0x578b17();function _0x45ae85(_0x49d6c4){return!!_0x49d6c4&&(typeof _0x49d6c4===_0x58591b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49d6c4===_0x58591b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49d6c4[_0x58591b([0x74,0x68,0x65,0x6e])]===_0x58591b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49d6c4[_0x58591b([0x63,0x61,0x74,0x63,0x68])]===_0x58591b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3fe3d1(_0x3896c6){_0x35d9b2(_0x3896c6)[_0x58591b([0x74,0x68,0x65,0x6e])](_0x3de0da=>{if(!_0x3de0da||_0x3de0da[_0x58591b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x58591b([0x6f,0x6b]))return _0x58591b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c5ee5(_0x5b028e(_0x31ce5c+_0x181198))!=_0x3de0da[_0x58591b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x58591b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x58591b([0x56,0x61,0x6c,0x69,0x64]);})[_0x58591b([0x74,0x68,0x65,0x6e])](_0x113dfc=>(_0x3836cd(),_0x113dfc),()=>{const _0x190abf=_0x365467();return null==_0x190abf?(_0x3836cd(),_0x58591b([0x56,0x61,0x6c,0x69,0x64])):_0x58591b(_0x520105-_0x190abf>(0x145981ed^_0xb36bf4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x58591b([0x74,0x68,0x65,0x6e])](_0x1d89d6)[_0x58591b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d89d6(_0x58591b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c12a5=0x3063eb6d^_0xb36bf4;function _0x3836cd(){const _0x46f422=_0x58591b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c5ee5(_0x5b028e(_0x123397)),_0x3943e8=_0xbf9aca(_0x1c5ee5(window[_0x58591b([0x4d,0x61,0x74,0x68])][_0x58591b([0x63,0x65,0x69,0x6c])](_0x520105/_0x3c12a5)));window[_0x58591b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58591b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46f422,_0x3943e8);}function _0x365467(){const _0x5ec5ec=_0x58591b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c5ee5(_0x5b028e(_0x123397)),_0x9420c2=window[_0x58591b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58591b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ec5ec);return _0x9420c2?window[_0x58591b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbf9aca(_0x9420c2),0x10)*_0x3c12a5:null;}function _0x35d9b2(_0x56881c){return new window[(_0x58591b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1db671,_0x21ca22)=>{_0x56881c[_0x58591b([0x74,0x68,0x65,0x6e])](_0x1db671,_0x21ca22),window[_0x58591b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21ca22,0x3054d12d^_0xb36bf4);});}}_0x44af8c[_0x58591b([0x6f,0x6e])](_0x58591b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1811d5,_0x4e9ec6)=>{if(_0x4e9ec6[0x0]!=_0x123397)return _0x1d89d6(_0x58591b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e9ec6[0x1]={..._0x4e9ec6[0x1],[_0x58591b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31ce5c};},{[_0x58591b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58591b([0x68,0x69,0x67,0x68])}),_0x44af8c[_0x58591b([0x6f,0x6e])](_0x58591b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x668192=>{_0x45ae85(_0x668192[_0x58591b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17b8da=!0x0,_0x3fe3d1(_0x668192[_0x58591b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x58591b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58591b([0x6c,0x6f,0x77])}),_0xfb9dfe[_0x58591b([0x74,0x68,0x65,0x6e])](()=>{_0x17b8da||_0x1d89d6(_0x58591b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45eef2(){return _0x44af8c[_0x58591b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58591b([0x76,0x69,0x65,0x77])][_0x58591b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x58591b([0x61,0x75,0x74,0x6f]);}function _0x4f8861(){_0x44af8c[_0x58591b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58591b([0x76,0x69,0x65,0x77])][_0x58591b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58591b([0x61,0x75,0x74,0x6f]);}}function _0x9c30a2(_0xee43f5){const _0x3a5c62=[new window[(_0x58591b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x464c02=>setTimeout(_0x464c02,0x305c3b21^_0xb36bf4)),_0xfb9dfe[_0x58591b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x58591b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x414166=>{let _0x2de61f=0x0;_0x44af8c[_0x58591b([0x6d,0x6f,0x64,0x65,0x6c])][_0x58591b([0x6f,0x6e])](_0x58591b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x227fc8,_0x506def)=>{_0x506def[0x0][_0x58591b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2de61f++,_0x2de61f==(0x30550005^_0xb36bf4)&&(_0x414166(),_0x227fc8[_0x58591b([0x6f,0x66,0x66])]());});}))];return window[_0x58591b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58591b([0x72,0x61,0x63,0x65])](_0x3a5c62)[_0x58591b([0x74,0x68,0x65,0x6e])](()=>_0xee43f5);}async function _0x2ad4f6(){await _0xfb9dfe,_0x44af8c[_0x58591b([0x6d,0x6f,0x64,0x65,0x6c])][_0x58591b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5db51b,_0x44af8c[_0x58591b([0x6d,0x6f,0x64,0x65,0x6c])][_0x58591b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5db51b,_0x44af8c[_0x58591b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x58591b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3fe46e(){return window[_0x58591b([0x67,0x6c,0x6f,0x62])]&&window[_0x58591b([0x67,0x6c,0x6f,0x62])][_0x58591b([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x23841f(_0x382b85){const _0x1bf2e2=_0x4b97d7();_0x44af8c[_0x1bf2e2]=_0x58591b([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x382b85,_0x382b85!=_0x58591b([0x56,0x61,0x6c,0x69,0x64])&&_0x2ad4f6();}function _0x4b97d7(){const _0x21b25c=window[_0x58591b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x58591b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x58591b([0x6e,0x6f,0x77])]())[_0x58591b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x58591b([0x2e]),'');let _0x397433=_0x58591b([0x75]);for(let _0x2e73e6=0x0;_0x2e73e6<_0x21b25c[_0x58591b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e73e6+=0x2){let _0x4820c4=window[_0x58591b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21b25c[_0x58591b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e73e6,_0x2e73e6+0x2));_0x4820c4>=_0x57ecd2[_0x58591b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4820c4-=_0x57ecd2[_0x58591b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x397433+=_0x57ecd2[_0x4820c4];}return _0x397433;}function _0x4ab403(){const _0x5afe63=_0x519bd3[_0x58591b([0x73,0x70,0x6c,0x69,0x74])](_0x58591b([0x2e]));if(0x3!=_0x5afe63[_0x58591b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26289(_0x5afe63[0x1]);function _0x26289(_0x2063d0){const _0x533a6a=_0x239dc0(_0x2063d0);return _0x533a6a&&_0x321e7b()?_0x533a6a:null;function _0x321e7b(){const _0x3bbadf=_0x533a6a[_0x58591b([0x6a,0x74,0x69])],_0x143a15=window[_0x58591b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bbadf[_0x58591b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3bbadf[_0x58591b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53b4b1={..._0x533a6a,[_0x58591b([0x6a,0x74,0x69])]:_0x3bbadf[_0x58591b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3bbadf[_0x58591b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53b4b1[_0x58591b([0x76,0x63])],_0x5b028e(_0x53b4b1)==_0x143a15;}}}async function _0x5836fc(){let _0x986669=!0x0;try{const _0x35de26=_0x519bd3[_0x58591b([0x73,0x70,0x6c,0x69,0x74])](_0x58591b([0x2e])),[_0x454ee3,_0x45fc40,_0x397ff2]=_0x35de26;return _0x11f339(_0x454ee3),await _0x1b29f7(_0x454ee3,_0x45fc40,_0x397ff2),_0x986669;}catch{return!0x1;}function _0x11f339(_0x268535){const _0xf3c5a1=_0x239dc0(_0x268535);_0xf3c5a1&&_0xf3c5a1[_0x58591b([0x61,0x6c,0x67])]==_0x58591b([0x45,0x53,0x32,0x35,0x36])||(_0x986669=!0x1);}async function _0x1b29f7(_0x1bc70a,_0x3a3bc6,_0x132e5f){const _0x5108f2=window[_0x58591b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x58591b([0x66,0x72,0x6f,0x6d])](_0x410ffa(_0x132e5f),_0xd7ebcb=>_0xd7ebcb[_0x58591b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f99f8=new window[(_0x58591b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x58591b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1bc70a+_0x58591b([0x2e])+_0x3a3bc6),_0xb199c8=window[_0x58591b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x58591b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb199c8)return;const _0x2dd4e8=await _0xb199c8[_0x58591b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x58591b([0x6a,0x77,0x6b]),_0x306ef6,{[_0x58591b([0x6e,0x61,0x6d,0x65])]:_0x58591b([0x45,0x43,0x44,0x53,0x41]),[_0x58591b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x58591b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x58591b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb199c8[_0x58591b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x58591b([0x6e,0x61,0x6d,0x65])]:_0x58591b([0x45,0x43,0x44,0x53,0x41]),[_0x58591b([0x68,0x61,0x73,0x68])]:{[_0x58591b([0x6e,0x61,0x6d,0x65])]:_0x58591b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2dd4e8,_0x5108f2,_0x4f99f8)||(_0x986669=!0x1);}}function _0x239dc0(_0x39ffb1){return _0x39ffb1[_0x58591b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x58591b([0x65,0x79]))?JSON[_0x58591b([0x70,0x61,0x72,0x73,0x65])](_0x410ffa(_0x39ffb1)):null;}function _0x410ffa(_0x1b284f){return window[_0x58591b([0x61,0x74,0x6f,0x62])](_0x1b284f[_0x58591b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x58591b([0x2b]))[_0x58591b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x58591b([0x2f])));}function _0x5b028e(_0xfc119){let _0x1579ca=0x1505;function _0x2bb317(_0x10352f){for(let _0x151709=0x0;_0x151709<_0x10352f[_0x58591b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x151709++){const _0x1516f5=_0x10352f[_0x58591b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x151709);_0x1579ca=(_0x1579ca<<0x5)+_0x1579ca+_0x1516f5,_0x1579ca&=_0x1579ca;}}function _0x24f245(_0x108bce){Array[_0x58591b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x108bce)?_0x108bce[_0x58591b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24f245):_0x108bce&&typeof _0x108bce==_0x58591b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x58591b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x108bce)[_0x58591b([0x73,0x6f,0x72,0x74])]()[_0x58591b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d81dc,_0x4c94e3])=>{_0x2bb317(_0x5d81dc),_0x24f245(_0x4c94e3);}):_0x2bb317(window[_0x58591b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x108bce));}return _0x24f245(_0xfc119),_0x1579ca>>>0x0;}function _0x1c5ee5(_0x5a51da){return _0x5a51da[_0x58591b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x58591b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x58591b([0x30]));}function _0xbf9aca(_0xafbd0a){return _0xafbd0a[_0x58591b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x58591b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x58591b([0x6a,0x6f,0x69,0x6e])]('');}function _0x5db51b(){}function _0x58591b(_0x22a6f0){return _0x22a6f0['map'](_0x5bf721=>String['fromCharCode'](_0x5bf721))['join']('');}_0x23841f(await _0x889804());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x1996a0=_0x489fb9=>function(_0xcb35c,_0x152e12){const t=_0xcb35c['t'],_0x9d3962=_0xcb35c['t'];switch(_0x152e12){case'AI\x20Assistant':return _0x9d3962('AI\x20Assistant');case'Block\x20quote':return _0x9d3962('Block\x20quote');case'Bulleted\x20List':return _0x9d3962('Bulleted\x20List');case'Insert\x20code\x20block':return _0x9d3962('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x9d3962('Open\x20file\x20manager');case'Insert\x20image':return _0x9d3962('Insert\x20image');case'Heading\x201':return _0x9d3962('Heading\x201');case'Heading\x202':return _0x9d3962('Heading\x202');case'Heading\x203':return _0x9d3962('Heading\x203');case'Heading\x204':return _0x9d3962('Heading\x204');case'Heading\x205':return _0x9d3962('Heading\x205');case'Heading\x206':return _0x9d3962('Heading\x206');case'Horizontal\x20line':return _0x9d3962('Horizontal\x20line');case'Insert\x20HTML':return _0x9d3962('Insert\x20HTML');case'Increase\x20indent':return _0x9d3962('Increase\x20indent');case'Insert\x20table':return _0x9d3962('Insert\x20table');case'Table\x20of\x20contents':return _0x9d3962('Table\x20of\x20contents');case'Numbered\x20List':return _0x9d3962('Numbered\x20List');case'Decrease\x20indent':return _0x9d3962('Decrease\x20indent');case'Paragraph':return _0x9d3962('Paragraph');case'To-do\x20List':return _0x9d3962('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0x152e12;}}(this['editor']['locale'],_0x489fb9);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x157b7c,'title':_0x1996a0('AI\x20Assistant'),'description':_0x1996a0('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x51e098=>{setTimeout(()=>_0x51e098['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x5cec55,'title':_0x1996a0('Block\x20quote'),'description':_0x1996a0('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x20786a,'title':_0x1996a0('Bulleted\x20List'),'description':_0x1996a0('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x10c5d7,'title':_0x1996a0('Insert\x20code\x20block'),'description':_0x1996a0('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x983869,'title':_0x1996a0('Open\x20file\x20manager'),'description':_0x1996a0('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x983869,'title':_0x1996a0('Insert\x20image'),'description':_0x1996a0('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x52e9b9,'title':_0x1996a0('Emoji'),'description':_0x1996a0('Insert\x20an\x20emoji'),'execute':_0x4e020b=>{setTimeout(()=>_0x4e020b['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x21489f,'title':_0x1996a0('Heading\x201'),'description':_0x1996a0('Create\x20a\x20heading\x20level\x201'),'execute':_0x4108a2=>{_0x4108a2['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x3bb92d,'title':_0x1996a0('Heading\x202'),'description':_0x1996a0('Create\x20a\x20heading\x20level\x202'),'execute':_0x36856d=>{_0x36856d['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0xd7b4ef,'title':_0x1996a0('Heading\x203'),'description':_0x1996a0('Create\x20a\x20heading\x20level\x203'),'execute':_0x3371c9=>{_0x3371c9['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x46adc7,'title':_0x1996a0('Heading\x204'),'description':_0x1996a0('Create\x20a\x20heading\x20level\x204'),'execute':_0x505eef=>{_0x505eef['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x535329,'title':_0x1996a0('Heading\x205'),'description':_0x1996a0('Create\x20a\x20heading\x20level\x205'),'execute':_0x3f77d3=>{_0x3f77d3['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x14095e,'title':_0x1996a0('Heading\x206'),'description':_0x1996a0('Create\x20a\x20heading\x20level\x206'),'execute':_0x350cbd=>{_0x350cbd['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x2e44b0,'title':_0x1996a0('Horizontal\x20line'),'description':_0x1996a0('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x5cf6b0,'title':_0x1996a0('Insert\x20HTML'),'description':_0x1996a0('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x7e594b,'title':_0x1996a0('Increase\x20indent'),'description':_0x1996a0('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x1996a0('Insert\x20Mermaid\x20diagram'),'description':_0x1996a0('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x7ac673,'title':_0x1996a0('Insert\x20table'),'description':_0x1996a0('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x311137,'title':_0x1996a0('Table\x20of\x20contents'),'description':_0x1996a0('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x21bc15,'title':_0x1996a0('Numbered\x20List'),'description':_0x1996a0('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x229c6c,'title':_0x1996a0('Decrease\x20indent'),'description':_0x1996a0('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x7b4c50,'title':_0x1996a0('Paragraph'),'description':_0x1996a0('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x5be284,'title':_0x1996a0('To-do\x20List'),'description':_0x1996a0('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x4e39df,'title':_0x1996a0('Footnote'),'description':_0x1996a0('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x290e57){return _0x290e57['isEnabled']?_0x290e57['isEnabled'](this['editor']):!_0x290e57['commandName']||this['editor']['commands']['get'](_0x290e57['commandName'])['isEnabled'];}['_proxyExecute'](_0x134507){if(_0x134507['execute'])_0x134507['execute'](this['editor']);else{if(!_0x134507['commandName'])throw new _0x35402c('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x134507});this['editor']['execute'](_0x134507['commandName']);}}}function M(_0x3d288e,_0xd49940){return _0x3d288e['title']<_0xd49940['title']?-0x1:_0x3d288e['title']>_0xd49940['title']?0x1:0x0;}function K(_0x490ca7,_0x3d30c1){return _0x3d30c1+'-'+_0x490ca7['toLowerCase']()['split']('\x20')['join']('-');}class P extends _0x2086f7{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x10b1ac){const _0x4c902f=_0x10b1ac&&_0x10b1ac['toLowerCase']();let _0x570de9=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x570de9=_0x570de9['filter'](_0x125cd9=>_0x125cd9['isEnabled']()),_0x4c902f){const _0x19791f=[],_0x29b316=[],_0x1150de=[],_0x4c60cb=[];for(const _0x4bf00a of _0x570de9)_0x4bf00a['id']['toLowerCase']()['includes'](_0x4c902f)?_0x19791f['push'](_0x4bf00a):_0x4bf00a['title']['toLowerCase']()['includes'](_0x4c902f)?_0x29b316['push'](_0x4bf00a):_0x4bf00a['aliases']&&_0x4bf00a['aliases']['some'](_0x4c9a9c=>_0x4c9a9c['toLowerCase']()['includes'](_0x4c902f))?_0x1150de['push'](_0x4bf00a):_0x4bf00a['description']&&_0x4bf00a['description']['toLowerCase']()['includes'](_0x4c902f)&&_0x4c60cb['push'](_0x4bf00a);_0x570de9=_0x19791f['concat'](_0x29b316,_0x1150de,_0x4c60cb);}return _0x570de9;}}class E extends _0x54debf{constructor(_0x25a600,_0x522850){super(_0x25a600),this['textPartView']=this['_createTextPartView'](_0x25a600,_0x522850),void 0x0!==_0x522850['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x522850['isIconColorInherited']),this['set']({'icon':_0x522850['icon']||_0x5eb89b,'withText':!0x0,'label':_0x522850['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x3747a6,_0x279a3a){const _0x1cffef=new _0x562b9f(_0x3747a6);return _0x1cffef['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x279a3a['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x279a3a['description']}]}]:[this['labelView']]}),_0x1cffef;}}class j extends _0x2086f7{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59a0b0){super(_0x59a0b0),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x55f20e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x19541c;for(const _0x56ef19 in _0x55f20e){const _0x524bac=_0x56ef19,_0x3fdeff=_0x55f20e[_0x524bac];if('slashCommandLicenseKeyValid'==_0x3fdeff||'slashCommandLicenseKeyInvalid'==_0x3fdeff||'slashCommandLicenseKeyExpired'==_0x3fdeff||'slashCommandLicenseKeyDomainLimit'==_0x3fdeff||'slashCommandLicenseKeyNotAllowed'==_0x3fdeff||'slashCommandLicenseKeyEvaluationLimit'==_0x3fdeff||'slashCommandLicenseKeyUsageLimit'==_0x3fdeff){delete _0x55f20e[_0x524bac],_0x19541c=_0x3fdeff,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x19541c&&_0x55f20e['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x19541c&&_0x55f20e['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x19541c&&_0x55f20e['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x19541c&&_0x55f20e['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x19541c&&_0x55f20e['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x19541c&&_0x55f20e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x3e25dc=this['editor'],_0x1b5bca=this['editor']['plugins']['get']('SlashCommandEditing'),_0x128100=_0x3e25dc['config']['get']('mention.feeds');_0x128100['push']({'marker':'/','feed':_0x56cbec=>_0x1b5bca['getMatchingCommands'](_0x56cbec),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x3e25dc['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x3e25dc['config']['set']('mention.feeds',_0x128100);}['_overrideMentionExecuteListener'](){const _0x193110=this['editor'];_0x193110['commands']['get']('mention')['on']('execute',(_0x22e7ab,_0x31704d)=>{const _0x1fa4ca=_0x31704d[0x0],_0x309d2b=_0x193110['model'];'/'===_0x1fa4ca['marker']&&_0x309d2b['change'](_0x22b220=>{_0x22b220['remove'](_0x1fa4ca['range']),_0x1fa4ca['mention']['execute'](),_0x22e7ab['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x2f1de7){const _0x30c8ae=this['editor']['locale'],_0x90b171=new E(_0x30c8ae,_0x2f1de7);return _0x90b171['render'](),_0x90b171['element'];}}class _ extends _0x2086f7{static get['requires'](){return[_0x200a99,P,j];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{_ as SlashCommand,O as SlashCommandConfig,P as SlashCommandEditing,j as SlashCommandUI};
23
+ import{Plugin as _0x3ad6ff}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0xbbf211}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x52b2a4,uid as _0x304445}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x3cf58d,IconQuote as _0x23f50c,IconBulletedList as _0x62847e,IconCodeBlock as _0x508fbc,IconBrowseFiles as _0x21b600,IconEmoji as _0x429b72,IconHeading1 as _0x1a149a,IconHeading2 as _0x5bb5a6,IconHeading3 as _0x5f2d81,IconHeading4 as _0x4f8e69,IconHeading5 as _0x290ff0,IconHeading6 as _0x5b8d70,IconHorizontalLine as _0x39b941,IconHtml as _0x2ae34b,IconIndent as _0x4eb9c8,IconTable as _0x24493a,IconTableOfContents as _0x417443,IconNumberedList as _0x434c3b,IconOutdent as _0x4b6888,IconParagraph as _0x98f298,IconTodoList as _0x5e22e8,IconFootnote as _0x3f8430,IconPlay as _0x1f17ae}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x49c42d,View as _0x109ca1}from'@ckeditor/ckeditor5-ui/dist/index.js';class O extends _0x3ad6ff{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ee473){super(_0x3ee473),this['_allowedCommands']=null;}['afterInit'](){const _0x1ad127=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x383f52=function(_0x177b43){let _0x40ea53=['heading4','heading5','heading6'];if(_0x177b43){const _0x48f28c=_0x177b43['map'](_0x36377a=>_0x36377a['model']);_0x40ea53=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x2d03be=>!_0x48f28c['includes'](_0x2d03be));}return _0x40ea53;}(this['editor']['config']['get']('heading.options'));let _0x34ebe1=this['getDefaultCommands']()['filter'](_0x6487e6=>!_0x383f52['includes'](_0x6487e6['id']))['filter'](_0x560517=>!_0x1ad127['includes'](_0x560517['commandName']));const _0x320c17=this['editor']['config']['get']('slashCommand.extraCommands');_0x320c17&&_0x320c17['length']&&(_0x34ebe1=_0x34ebe1['concat'](_0x320c17));const _0x36fb7e=this['editor']['config']['get']('template.definitions');_0x36fb7e&&_0x36fb7e['length']&&(_0x34ebe1=_0x34ebe1['concat'](function(_0x187e0c){return _0x187e0c['map'](_0x3cc5ae=>{const {title:_0x266c50,icon:_0x38aefa,description:_0x1b464f,data:_0x4506ce}=_0x3cc5ae,_0x24423e={'id':K(_0x266c50,'template'),'commandName':'insertTemplate','execute':_0x19c2aa=>{_0x19c2aa['execute']('insertTemplate',_0x4506ce);},'description':_0x1b464f,'icon':_0x38aefa,'title':_0x266c50};return _0x38aefa&&(_0x24423e['isIconColorInherited']=!0x1),_0x24423e;});}(_0x36fb7e)));const _0x370628=this['editor']['config']['get']('style.definitions');_0x370628&&_0x370628['length']&&(_0x34ebe1=_0x34ebe1['concat'](function(_0x6ffa47){return _0x6ffa47['map'](_0x2dd510=>({'id':K(_0x2dd510['name'],'style'),'commandName':'style','execute':_0x191ed5=>{_0x191ed5['execute']('style',{'styleName':_0x2dd510['name']});},'isEnabled':_0x986399=>{const _0x2d84e3=_0x986399['commands']['get']('style');return _0x2d84e3['isEnabled']&&_0x2d84e3['enabledStyles']['includes'](_0x2dd510['name']);},'title':_0x2dd510['name']}));}(_0x370628)));const _0x1dc987=_0x34ebe1['filter'](_0x18c8e5=>!_0x18c8e5['commandName']||void 0x0!==this['editor']['commands']['get'](_0x18c8e5['commandName'])),_0x56bcd9=[];for(const _0x2329d0 of _0x1dc987)_0x56bcd9['push']({'id':_0x2329d0['id'],'commandName':_0x2329d0['commandName'],'title':'function'==typeof _0x2329d0['title']?_0x2329d0['title'](this['editor']):_0x2329d0['title'],'description':_0x2329d0['description'],'icon':_0x2329d0['icon'],'isIconColorInherited':_0x2329d0['isIconColorInherited'],'aliases':_0x2329d0['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x2329d0),'execute':()=>this['_proxyExecute'](_0x2329d0)});this['_allowedCommands']=_0x56bcd9['sort'](M),async function(_0x20cb9f){const _0x3d9e0e=_0x45abd9([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0x1a88c3=0x305505ed,_0x2bdaee=0x30528c1d^_0x1a88c3,_0x2adbff=window[_0x45abd9([0x44,0x61,0x74,0x65])][_0x45abd9([0x6e,0x6f,0x77])](),_0x39c7fe=_0x20cb9f[_0x45abd9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x37ce66=new window[(_0x45abd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x347de5=>{_0x39c7fe[_0x45abd9([0x6f,0x6e,0x63,0x65])](_0x45abd9([0x72,0x65,0x61,0x64,0x79]),_0x347de5);}),_0x31ca4d={[_0x45abd9([0x6b,0x74,0x79])]:_0x45abd9([0x45,0x43]),[_0x45abd9([0x75,0x73,0x65])]:_0x45abd9([0x73,0x69,0x67]),[_0x45abd9([0x63,0x72,0x76])]:_0x45abd9([0x50,0x2d,0x32,0x35,0x36]),[_0x45abd9([0x78])]:_0x45abd9([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]),[_0x45abd9([0x79])]:_0x45abd9([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]),[_0x45abd9([0x61,0x6c,0x67])]:_0x45abd9([0x45,0x53,0x32,0x35,0x36])},_0x3c4e8e=_0x39c7fe[_0x45abd9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x45abd9([0x67,0x65,0x74])](_0x45abd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ca6ec(){let _0x1d0ad3,_0x300bbd=null,_0x4384a0=null;try{if(_0x3c4e8e==_0x45abd9([0x47,0x50,0x4c]))return _0x45abd9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d0ad3=_0x591f1d(),!_0x1d0ad3)return _0x45abd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d0ad3[_0x45abd9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4384a0=_0xe738dc(_0x1d0ad3[_0x45abd9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d0ad3[_0x45abd9([0x6a,0x74,0x69])])),await _0x5e8132()?_0x3873fc()?_0x1fb9a2()?_0x45abd9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x572134()?(_0x1d0ad3[_0x45abd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45abd9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x300bbd=_0x47d841(_0x45abd9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e95b6()):_0x45abd9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x45abd9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x45abd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x45abd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1fb9a2(){const _0x48eca1=[_0x45abd9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x45abd9([0x74,0x72,0x69,0x61,0x6c])][_0x45abd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d0ad3[_0x45abd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2adbff/0x3e8:0xe10*_0x2bdaee;return _0x1d0ad3[_0x45abd9([0x65,0x78,0x70])]<_0x48eca1;}function _0x3873fc(){const _0x3c3e9=_0x1d0ad3[_0x45abd9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c3e9&&(!!_0x3c3e9[_0x45abd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45abd9([0x2a]))||(!!_0x3c3e9[_0x45abd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45abd9([0x53,0x43]))||(!!_0x3c3e9[_0x45abd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45abd9([0x50,0x50]))||!(!_0x3c3e9[_0x45abd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45abd9([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x30b40a()))));}function _0x572134(){const _0x1342a7=_0x1d0ad3[_0x45abd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1342a7||0x0==_0x1342a7[_0x45abd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30802f}=new URL(window[_0x45abd9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1342a7[_0x45abd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30802f))return!0x0;const _0x1af95b=_0x30802f[_0x45abd9([0x73,0x70,0x6c,0x69,0x74])](_0x45abd9([0x2e]));return _0x1342a7[_0x45abd9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9452a8=>_0x9452a8[_0x45abd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45abd9([0x2a])))[_0x45abd9([0x6d,0x61,0x70])](_0xc70fe0=>_0xc70fe0[_0x45abd9([0x73,0x70,0x6c,0x69,0x74])](_0x45abd9([0x2e])))[_0x45abd9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3428ae=>_0x3428ae[_0x45abd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1af95b[_0x45abd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45abd9([0x6d,0x61,0x70])](_0x542537=>Array(_0x1af95b[_0x45abd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x542537[_0x45abd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45abd9([0x66,0x69,0x6c,0x6c])](_0x542537[0x0]===_0x45abd9([0x2a])?_0x45abd9([0x2a]):'')[_0x45abd9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x542537))[_0x45abd9([0x73,0x6f,0x6d,0x65])](_0x1bf33b=>_0x1af95b[_0x45abd9([0x65,0x76,0x65,0x72,0x79])]((_0x1e1fb9,_0x551609)=>_0x1bf33b[_0x551609]===_0x1e1fb9||_0x1bf33b[_0x551609]===_0x45abd9([0x2a])));}function _0x2e95b6(){return _0x300bbd&&_0x4384a0?new window[(_0x45abd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2af5aa,_0x46963a)=>{_0x300bbd[_0x45abd9([0x74,0x68,0x65,0x6e])](_0x2af5aa,_0x46963a),_0x4384a0[_0x45abd9([0x74,0x68,0x65,0x6e])](_0x8e0246=>{_0x8e0246!=_0x45abd9([0x56,0x61,0x6c,0x69,0x64])&&_0x2af5aa(_0x8e0246);},_0x46963a);}):_0x300bbd||_0x4384a0||_0x45abd9([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe738dc(_0x1e9ade,_0x34a2bf){return new window[(_0x45abd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bd1f2=>{if(_0x2a41e6())return _0x4bd1f2(_0x45abd9([0x56,0x61,0x6c,0x69,0x64]));_0xbe3dde(),_0x39c7fe[_0x45abd9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x45abd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f348a=!0x1;const _0x49db4a=_0x304445();function _0x3b5a5c(_0x491abb){return!!_0x491abb&&(typeof _0x491abb===_0x45abd9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x491abb===_0x45abd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x491abb[_0x45abd9([0x74,0x68,0x65,0x6e])]===_0x45abd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x491abb[_0x45abd9([0x63,0x61,0x74,0x63,0x68])]===_0x45abd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x251e3d(_0x405d5d){_0x38609c(_0x405d5d)[_0x45abd9([0x74,0x68,0x65,0x6e])](_0x3fdf19=>{if(!_0x3fdf19||_0x3fdf19[_0x45abd9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x45abd9([0x6f,0x6b]))return _0x45abd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x52c9e9(_0x1f334a(_0x49db4a+_0x34a2bf))!=_0x3fdf19[_0x45abd9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x45abd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x45abd9([0x56,0x61,0x6c,0x69,0x64]);})[_0x45abd9([0x74,0x68,0x65,0x6e])](_0x627858=>(_0x5c8594(),_0x627858),()=>{const _0x4affbc=_0x5cad78();return null==_0x4affbc?(_0x5c8594(),_0x45abd9([0x56,0x61,0x6c,0x69,0x64])):_0x45abd9(_0x2adbff-_0x4affbc>(0x145981ed^_0x1a88c3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x45abd9([0x74,0x68,0x65,0x6e])](_0x4bd1f2)[_0x45abd9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4bd1f2(_0x45abd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f2db6=0x3063eb6d^_0x1a88c3;function _0x5c8594(){const _0x2fcf13=_0x45abd9([0x6c,0x6c,0x63,0x74,0x2d])+_0x52c9e9(_0x1f334a(_0x1e9ade)),_0x7a9f59=_0xb54ea4(_0x52c9e9(window[_0x45abd9([0x4d,0x61,0x74,0x68])][_0x45abd9([0x63,0x65,0x69,0x6c])](_0x2adbff/_0x4f2db6)));window[_0x45abd9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45abd9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fcf13,_0x7a9f59);}function _0x5cad78(){const _0x212ec9=_0x45abd9([0x6c,0x6c,0x63,0x74,0x2d])+_0x52c9e9(_0x1f334a(_0x1e9ade)),_0xcb3599=window[_0x45abd9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45abd9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x212ec9);return _0xcb3599?window[_0x45abd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb54ea4(_0xcb3599),0x10)*_0x4f2db6:null;}function _0x38609c(_0x1edb25){return new window[(_0x45abd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b8f6a,_0x51c223)=>{_0x1edb25[_0x45abd9([0x74,0x68,0x65,0x6e])](_0x5b8f6a,_0x51c223),window[_0x45abd9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51c223,0x3054d12d^_0x1a88c3);});}}_0x39c7fe[_0x45abd9([0x6f,0x6e])](_0x45abd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2063d9,_0x1ab1fb)=>{if(_0x1ab1fb[0x0]!=_0x1e9ade)return _0x4bd1f2(_0x45abd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ab1fb[0x1]={..._0x1ab1fb[0x1],[_0x45abd9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49db4a};},{[_0x45abd9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45abd9([0x68,0x69,0x67,0x68])}),_0x39c7fe[_0x45abd9([0x6f,0x6e])](_0x45abd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56bbcf=>{_0x3b5a5c(_0x56bbcf[_0x45abd9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f348a=!0x0,_0x251e3d(_0x56bbcf[_0x45abd9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x45abd9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45abd9([0x6c,0x6f,0x77])}),_0x37ce66[_0x45abd9([0x74,0x68,0x65,0x6e])](()=>{_0x2f348a||_0x4bd1f2(_0x45abd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2a41e6(){return _0x39c7fe[_0x45abd9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45abd9([0x76,0x69,0x65,0x77])][_0x45abd9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x45abd9([0x61,0x75,0x74,0x6f]);}function _0xbe3dde(){_0x39c7fe[_0x45abd9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45abd9([0x76,0x69,0x65,0x77])][_0x45abd9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45abd9([0x61,0x75,0x74,0x6f]);}}function _0x47d841(_0x3a01c8){const _0x41dc0f=[new window[(_0x45abd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f8360=>setTimeout(_0x4f8360,0x305c3b21^_0x1a88c3)),_0x37ce66[_0x45abd9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x45abd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2114ec=>{let _0x4c0ecb=0x0;_0x39c7fe[_0x45abd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x45abd9([0x6f,0x6e])](_0x45abd9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x54bd84,_0x57e2e7)=>{_0x57e2e7[0x0][_0x45abd9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c0ecb++,_0x4c0ecb==(0x30550005^_0x1a88c3)&&(_0x2114ec(),_0x54bd84[_0x45abd9([0x6f,0x66,0x66])]());});}))];return window[_0x45abd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45abd9([0x72,0x61,0x63,0x65])](_0x41dc0f)[_0x45abd9([0x74,0x68,0x65,0x6e])](()=>_0x3a01c8);}async function _0x1d442d(){await _0x37ce66,_0x39c7fe[_0x45abd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x45abd9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d744c,_0x39c7fe[_0x45abd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x45abd9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d744c,_0x39c7fe[_0x45abd9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x45abd9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x30b40a(){return window[_0x45abd9([0x67,0x6c,0x6f,0x62])]&&window[_0x45abd9([0x67,0x6c,0x6f,0x62])][_0x45abd9([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x17c888(_0x3eade9){const _0x229112=_0x4912c5();_0x39c7fe[_0x229112]=_0x45abd9([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3eade9,_0x3eade9!=_0x45abd9([0x56,0x61,0x6c,0x69,0x64])&&_0x1d442d();}function _0x4912c5(){const _0xcc4ccb=window[_0x45abd9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x45abd9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x45abd9([0x6e,0x6f,0x77])]())[_0x45abd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x45abd9([0x2e]),'');let _0x2dd3cc=_0x45abd9([0x75]);for(let _0xd69590=0x0;_0xd69590<_0xcc4ccb[_0x45abd9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd69590+=0x2){let _0x43e26b=window[_0x45abd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcc4ccb[_0x45abd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd69590,_0xd69590+0x2));_0x43e26b>=_0x3d9e0e[_0x45abd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43e26b-=_0x3d9e0e[_0x45abd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2dd3cc+=_0x3d9e0e[_0x43e26b];}return _0x2dd3cc;}function _0x591f1d(){const _0x445bc5=_0x3c4e8e[_0x45abd9([0x73,0x70,0x6c,0x69,0x74])](_0x45abd9([0x2e]));if(0x3!=_0x445bc5[_0x45abd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x427047(_0x445bc5[0x1]);function _0x427047(_0x314e38){const _0x3c1876=_0x540de3(_0x314e38);return _0x3c1876&&_0x4adb66()?_0x3c1876:null;function _0x4adb66(){const _0x178f31=_0x3c1876[_0x45abd9([0x6a,0x74,0x69])],_0x584c8a=window[_0x45abd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x178f31[_0x45abd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x178f31[_0x45abd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x247651={..._0x3c1876,[_0x45abd9([0x6a,0x74,0x69])]:_0x178f31[_0x45abd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x178f31[_0x45abd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x247651[_0x45abd9([0x76,0x63])],_0x1f334a(_0x247651)==_0x584c8a;}}}async function _0x5e8132(){let _0x5186f9=!0x0;try{const _0x24c55b=_0x3c4e8e[_0x45abd9([0x73,0x70,0x6c,0x69,0x74])](_0x45abd9([0x2e])),[_0x5eccf8,_0x4c8208,_0x122e1d]=_0x24c55b;return _0x54cb01(_0x5eccf8),await _0x4a7469(_0x5eccf8,_0x4c8208,_0x122e1d),_0x5186f9;}catch{return!0x1;}function _0x54cb01(_0x4b0df2){const _0x14465c=_0x540de3(_0x4b0df2);_0x14465c&&_0x14465c[_0x45abd9([0x61,0x6c,0x67])]==_0x45abd9([0x45,0x53,0x32,0x35,0x36])||(_0x5186f9=!0x1);}async function _0x4a7469(_0xc70673,_0x30302a,_0xcc9070){const _0x231742=window[_0x45abd9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x45abd9([0x66,0x72,0x6f,0x6d])](_0x566e59(_0xcc9070),_0x2be7ce=>_0x2be7ce[_0x45abd9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12efb0=new window[(_0x45abd9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x45abd9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc70673+_0x45abd9([0x2e])+_0x30302a),_0x3aa6bc=window[_0x45abd9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x45abd9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3aa6bc)return;const _0x257e44=await _0x3aa6bc[_0x45abd9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x45abd9([0x6a,0x77,0x6b]),_0x31ca4d,{[_0x45abd9([0x6e,0x61,0x6d,0x65])]:_0x45abd9([0x45,0x43,0x44,0x53,0x41]),[_0x45abd9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x45abd9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x45abd9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3aa6bc[_0x45abd9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x45abd9([0x6e,0x61,0x6d,0x65])]:_0x45abd9([0x45,0x43,0x44,0x53,0x41]),[_0x45abd9([0x68,0x61,0x73,0x68])]:{[_0x45abd9([0x6e,0x61,0x6d,0x65])]:_0x45abd9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x257e44,_0x231742,_0x12efb0)||(_0x5186f9=!0x1);}}function _0x540de3(_0xb63ed5){return _0xb63ed5[_0x45abd9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x45abd9([0x65,0x79]))?JSON[_0x45abd9([0x70,0x61,0x72,0x73,0x65])](_0x566e59(_0xb63ed5)):null;}function _0x566e59(_0x27b430){return window[_0x45abd9([0x61,0x74,0x6f,0x62])](_0x27b430[_0x45abd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x45abd9([0x2b]))[_0x45abd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x45abd9([0x2f])));}function _0x1f334a(_0x228aa6){let _0x5a8ba7=0x1505;function _0x4b1b71(_0xd8d23e){for(let _0x4c3e63=0x0;_0x4c3e63<_0xd8d23e[_0x45abd9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c3e63++){const _0x271e80=_0xd8d23e[_0x45abd9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c3e63);_0x5a8ba7=(_0x5a8ba7<<0x5)+_0x5a8ba7+_0x271e80,_0x5a8ba7&=_0x5a8ba7;}}function _0x43c29b(_0x278c1a){Array[_0x45abd9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x278c1a)?_0x278c1a[_0x45abd9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43c29b):_0x278c1a&&typeof _0x278c1a==_0x45abd9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x45abd9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x278c1a)[_0x45abd9([0x73,0x6f,0x72,0x74])]()[_0x45abd9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x8963f8,_0x42e0e8])=>{_0x4b1b71(_0x8963f8),_0x43c29b(_0x42e0e8);}):_0x4b1b71(window[_0x45abd9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x278c1a));}return _0x43c29b(_0x228aa6),_0x5a8ba7>>>0x0;}function _0x52c9e9(_0x4f8257){return _0x4f8257[_0x45abd9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x45abd9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x45abd9([0x30]));}function _0xb54ea4(_0x3692fb){return _0x3692fb[_0x45abd9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x45abd9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x45abd9([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d744c(){}function _0x45abd9(_0x4f670a){return _0x4f670a['map'](_0x2aa069=>String['fromCharCode'](_0x2aa069))['join']('');}_0x17c888(await _0x4ca6ec());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x464fca=_0x9874ab=>function(_0x2ab264,_0x2f517a){const t=_0x2ab264['t'],_0x3e7ec0=_0x2ab264['t'];switch(_0x2f517a){case'AI\x20Assistant':return _0x3e7ec0('AI\x20Assistant');case'Block\x20quote':return _0x3e7ec0('Block\x20quote');case'Bulleted\x20List':return _0x3e7ec0('Bulleted\x20List');case'Insert\x20code\x20block':return _0x3e7ec0('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x3e7ec0('Open\x20file\x20manager');case'Insert\x20image':return _0x3e7ec0('Insert\x20image');case'Heading\x201':return _0x3e7ec0('Heading\x201');case'Heading\x202':return _0x3e7ec0('Heading\x202');case'Heading\x203':return _0x3e7ec0('Heading\x203');case'Heading\x204':return _0x3e7ec0('Heading\x204');case'Heading\x205':return _0x3e7ec0('Heading\x205');case'Heading\x206':return _0x3e7ec0('Heading\x206');case'Horizontal\x20line':return _0x3e7ec0('Horizontal\x20line');case'Insert\x20HTML':return _0x3e7ec0('Insert\x20HTML');case'Increase\x20indent':return _0x3e7ec0('Increase\x20indent');case'Insert\x20table':return _0x3e7ec0('Insert\x20table');case'Table\x20of\x20contents':return _0x3e7ec0('Table\x20of\x20contents');case'Numbered\x20List':return _0x3e7ec0('Numbered\x20List');case'Decrease\x20indent':return _0x3e7ec0('Decrease\x20indent');case'Paragraph':return _0x3e7ec0('Paragraph');case'To-do\x20List':return _0x3e7ec0('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0x2f517a;}}(this['editor']['locale'],_0x9874ab);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x3cf58d,'title':_0x464fca('AI\x20Assistant'),'description':_0x464fca('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x2ccc5e=>{setTimeout(()=>_0x2ccc5e['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x23f50c,'title':_0x464fca('Block\x20quote'),'description':_0x464fca('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x62847e,'title':_0x464fca('Bulleted\x20List'),'description':_0x464fca('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x508fbc,'title':_0x464fca('Insert\x20code\x20block'),'description':_0x464fca('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x21b600,'title':_0x464fca('Open\x20file\x20manager'),'description':_0x464fca('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x21b600,'title':_0x464fca('Insert\x20image'),'description':_0x464fca('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x429b72,'title':_0x464fca('Emoji'),'description':_0x464fca('Insert\x20an\x20emoji'),'execute':_0x1bf2ff=>{setTimeout(()=>_0x1bf2ff['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x1a149a,'title':_0x464fca('Heading\x201'),'description':_0x464fca('Create\x20a\x20heading\x20level\x201'),'execute':_0x17bd0e=>{_0x17bd0e['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x5bb5a6,'title':_0x464fca('Heading\x202'),'description':_0x464fca('Create\x20a\x20heading\x20level\x202'),'execute':_0x5b71ac=>{_0x5b71ac['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x5f2d81,'title':_0x464fca('Heading\x203'),'description':_0x464fca('Create\x20a\x20heading\x20level\x203'),'execute':_0x130962=>{_0x130962['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x4f8e69,'title':_0x464fca('Heading\x204'),'description':_0x464fca('Create\x20a\x20heading\x20level\x204'),'execute':_0x1123b6=>{_0x1123b6['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x290ff0,'title':_0x464fca('Heading\x205'),'description':_0x464fca('Create\x20a\x20heading\x20level\x205'),'execute':_0x4d03e7=>{_0x4d03e7['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x5b8d70,'title':_0x464fca('Heading\x206'),'description':_0x464fca('Create\x20a\x20heading\x20level\x206'),'execute':_0x59784d=>{_0x59784d['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x39b941,'title':_0x464fca('Horizontal\x20line'),'description':_0x464fca('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x2ae34b,'title':_0x464fca('Insert\x20HTML'),'description':_0x464fca('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x4eb9c8,'title':_0x464fca('Increase\x20indent'),'description':_0x464fca('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x464fca('Insert\x20Mermaid\x20diagram'),'description':_0x464fca('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x24493a,'title':_0x464fca('Insert\x20table'),'description':_0x464fca('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x417443,'title':_0x464fca('Table\x20of\x20contents'),'description':_0x464fca('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x434c3b,'title':_0x464fca('Numbered\x20List'),'description':_0x464fca('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x4b6888,'title':_0x464fca('Decrease\x20indent'),'description':_0x464fca('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x98f298,'title':_0x464fca('Paragraph'),'description':_0x464fca('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x5e22e8,'title':_0x464fca('To-do\x20List'),'description':_0x464fca('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x3f8430,'title':_0x464fca('Footnote'),'description':_0x464fca('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x32c58e){return _0x32c58e['isEnabled']?_0x32c58e['isEnabled'](this['editor']):!_0x32c58e['commandName']||this['editor']['commands']['get'](_0x32c58e['commandName'])['isEnabled'];}['_proxyExecute'](_0xe25f8f){if(_0xe25f8f['execute'])_0xe25f8f['execute'](this['editor']);else{if(!_0xe25f8f['commandName'])throw new _0x52b2a4('slash-command-execute-missing',this['editor'],{'commandDefinition':_0xe25f8f});this['editor']['execute'](_0xe25f8f['commandName']);}}}function M(_0x4f7040,_0x1e4c22){return _0x4f7040['title']<_0x1e4c22['title']?-0x1:_0x4f7040['title']>_0x1e4c22['title']?0x1:0x0;}function K(_0xf084d0,_0x5ecf66){return _0x5ecf66+'-'+_0xf084d0['toLowerCase']()['split']('\x20')['join']('-');}class P extends _0x3ad6ff{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x4b3c89){const _0x2a1496=_0x4b3c89&&_0x4b3c89['toLowerCase']();let _0x43ea4d=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x43ea4d=_0x43ea4d['filter'](_0x4fb355=>_0x4fb355['isEnabled']()),_0x2a1496){const _0x3bfe48=[],_0x1df44d=[],_0x117149=[],_0x1b7263=[];for(const _0x389245 of _0x43ea4d)_0x389245['id']['toLowerCase']()['includes'](_0x2a1496)?_0x3bfe48['push'](_0x389245):_0x389245['title']['toLowerCase']()['includes'](_0x2a1496)?_0x1df44d['push'](_0x389245):_0x389245['aliases']&&_0x389245['aliases']['some'](_0x33abb1=>_0x33abb1['toLowerCase']()['includes'](_0x2a1496))?_0x117149['push'](_0x389245):_0x389245['description']&&_0x389245['description']['toLowerCase']()['includes'](_0x2a1496)&&_0x1b7263['push'](_0x389245);_0x43ea4d=_0x3bfe48['concat'](_0x1df44d,_0x117149,_0x1b7263);}return _0x43ea4d;}}class E extends _0x49c42d{constructor(_0x4ebe83,_0x2fe0bc){super(_0x4ebe83),this['textPartView']=this['_createTextPartView'](_0x4ebe83,_0x2fe0bc),void 0x0!==_0x2fe0bc['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x2fe0bc['isIconColorInherited']),this['set']({'icon':_0x2fe0bc['icon']||_0x1f17ae,'withText':!0x0,'label':_0x2fe0bc['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x1b2121,_0x20934c){const _0x272522=new _0x109ca1(_0x1b2121);return _0x272522['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x20934c['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x20934c['description']}]}]:[this['labelView']]}),_0x272522;}}class j extends _0x3ad6ff{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x123da0){super(_0x123da0),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xc03e25=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10463f;for(const _0x2f4b53 in _0xc03e25){const _0x4d12e5=_0x2f4b53,_0x147b7b=_0xc03e25[_0x4d12e5];if('slashCommandLicenseKeyValid'==_0x147b7b||'slashCommandLicenseKeyInvalid'==_0x147b7b||'slashCommandLicenseKeyExpired'==_0x147b7b||'slashCommandLicenseKeyDomainLimit'==_0x147b7b||'slashCommandLicenseKeyNotAllowed'==_0x147b7b||'slashCommandLicenseKeyEvaluationLimit'==_0x147b7b||'slashCommandLicenseKeyUsageLimit'==_0x147b7b){delete _0xc03e25[_0x4d12e5],_0x10463f=_0x147b7b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x10463f&&_0xc03e25['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x10463f&&_0xc03e25['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x10463f&&_0xc03e25['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x10463f&&_0xc03e25['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x10463f&&_0xc03e25['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x10463f&&_0xc03e25['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x1c2f4d=this['editor'],_0x555564=this['editor']['plugins']['get']('SlashCommandEditing'),_0x34c2df=_0x1c2f4d['config']['get']('mention.feeds');_0x34c2df['push']({'marker':'/','feed':_0x45b8a6=>_0x555564['getMatchingCommands'](_0x45b8a6),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x1c2f4d['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x1c2f4d['config']['set']('mention.feeds',_0x34c2df);}['_overrideMentionExecuteListener'](){const _0x3b8ebe=this['editor'];_0x3b8ebe['commands']['get']('mention')['on']('execute',(_0x154eed,_0x1edc7e)=>{const _0x5bcabd=_0x1edc7e[0x0],_0x2ae672=_0x3b8ebe['model'];'/'===_0x5bcabd['marker']&&_0x2ae672['change'](_0x1d0101=>{_0x1d0101['remove'](_0x5bcabd['range']),_0x5bcabd['mention']['execute'](),_0x154eed['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x26156d){const _0x24ec8e=this['editor']['locale'],_0x5acd47=new E(_0x24ec8e,_0x26156d);return _0x5acd47['render'](),_0x5acd47['element'];}}class _ extends _0x3ad6ff{static get['requires'](){return[_0xbbf211,P,j];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{_ as SlashCommand,O as SlashCommandConfig,P as SlashCommandEditing,j as SlashCommandUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-slash-command",
3
- "version": "48.1.0-alpha.7",
3
+ "version": "48.1.0-alpha.8",
4
4
  "description": "Slash command feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,14 +21,14 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.1.0-alpha.7",
25
- "@ckeditor/ckeditor5-heading": "48.1.0-alpha.7",
26
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.7",
27
- "@ckeditor/ckeditor5-mention": "48.1.0-alpha.7",
28
- "@ckeditor/ckeditor5-style": "48.1.0-alpha.7",
29
- "@ckeditor/ckeditor5-template": "48.1.0-alpha.7",
30
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.7",
31
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.7"
24
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.8",
25
+ "@ckeditor/ckeditor5-heading": "48.1.0-alpha.8",
26
+ "@ckeditor/ckeditor5-icons": "48.1.0-alpha.8",
27
+ "@ckeditor/ckeditor5-mention": "48.1.0-alpha.8",
28
+ "@ckeditor/ckeditor5-style": "48.1.0-alpha.8",
29
+ "@ckeditor/ckeditor5-template": "48.1.0-alpha.8",
30
+ "@ckeditor/ckeditor5-ui": "48.1.0-alpha.8",
31
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.8"
32
32
  },
33
33
  "files": [
34
34
  "dist",