@ckeditor/ckeditor5-slash-command 48.0.0-alpha.0 → 48.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x1de714}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x49cc3f}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x1f6d33,uid as _0x3acccf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x38f6f2,IconQuote as _0x2ab8c4,IconBulletedList as _0x2050fc,IconCodeBlock as _0x433f61,IconBrowseFiles as _0x502bb2,IconEmoji as _0x2828f0,IconHeading1 as _0x12658f,IconHeading2 as _0x41a79a,IconHeading3 as _0x23ef95,IconHeading4 as _0x332eab,IconHeading5 as _0x260f91,IconHeading6 as _0x4ed034,IconHorizontalLine as _0x2a93fa,IconHtml as _0x3532e8,IconIndent as _0x4cc569,IconTable as _0x3e1544,IconTableOfContents as _0x4f59af,IconNumberedList as _0x3224b6,IconOutdent as _0x1ba577,IconParagraph as _0x1b73f3,IconTodoList as _0x165ada,IconFootnote as _0x1731ce,IconPlay as _0x55814c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x522fa9,View as _0x19b9b}from'@ckeditor/ckeditor5-ui/dist/index.js';class O extends _0x1de714{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1091ba){super(_0x1091ba),this['_allowedCommands']=null;}['afterInit'](){const _0x5c8278=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x175491=function(_0x47d8ce){let _0x322fb8=['heading4','heading5','heading6'];if(_0x47d8ce){const _0x296c75=_0x47d8ce['map'](_0x1a7b14=>_0x1a7b14['model']);_0x322fb8=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x1bab17=>!_0x296c75['includes'](_0x1bab17));}return _0x322fb8;}(this['editor']['config']['get']('heading.options'));let _0x22007b=this['getDefaultCommands']()['filter'](_0xdc4d17=>!_0x175491['includes'](_0xdc4d17['id']))['filter'](_0x40eab9=>!_0x5c8278['includes'](_0x40eab9['commandName']));const _0x17ccbe=this['editor']['config']['get']('slashCommand.extraCommands');_0x17ccbe&&_0x17ccbe['length']&&(_0x22007b=_0x22007b['concat'](_0x17ccbe));const _0x436a74=this['editor']['config']['get']('template.definitions');_0x436a74&&_0x436a74['length']&&(_0x22007b=_0x22007b['concat'](function(_0x366044){return _0x366044['map'](_0xd7993b=>{const {title:_0x26f917,icon:_0x36328a,description:_0x5d0e7d,data:_0x55d5a3}=_0xd7993b,_0x23c780={'id':K(_0x26f917,'template'),'commandName':'insertTemplate','execute':_0x4b6c3e=>{_0x4b6c3e['execute']('insertTemplate',_0x55d5a3);},'description':_0x5d0e7d,'icon':_0x36328a,'title':_0x26f917};return _0x36328a&&(_0x23c780['isIconColorInherited']=!0x1),_0x23c780;});}(_0x436a74)));const _0x282367=this['editor']['config']['get']('style.definitions');_0x282367&&_0x282367['length']&&(_0x22007b=_0x22007b['concat'](function(_0x18b1ff){return _0x18b1ff['map'](_0x8b562e=>({'id':K(_0x8b562e['name'],'style'),'commandName':'style','execute':_0x1284d3=>{_0x1284d3['execute']('style',{'styleName':_0x8b562e['name']});},'isEnabled':_0x2bb7bd=>{const _0x3e01a5=_0x2bb7bd['commands']['get']('style');return _0x3e01a5['isEnabled']&&_0x3e01a5['enabledStyles']['includes'](_0x8b562e['name']);},'title':_0x8b562e['name']}));}(_0x282367)));const _0xd4133b=_0x22007b['filter'](_0x474d55=>!_0x474d55['commandName']||void 0x0!==this['editor']['commands']['get'](_0x474d55['commandName'])),_0x430cc1=[];for(const _0x2841ed of _0xd4133b)_0x430cc1['push']({'id':_0x2841ed['id'],'commandName':_0x2841ed['commandName'],'title':'function'==typeof _0x2841ed['title']?_0x2841ed['title'](this['editor']):_0x2841ed['title'],'description':_0x2841ed['description'],'icon':_0x2841ed['icon'],'isIconColorInherited':_0x2841ed['isIconColorInherited'],'aliases':_0x2841ed['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x2841ed),'execute':()=>this['_proxyExecute'](_0x2841ed)});this['_allowedCommands']=_0x430cc1['sort'](M),async function(_0x15b412){const _0x5c667b=_0x1b000a([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]),_0x68b3b5=0x305505ed,_0x3ad28f=0x30528125^_0x68b3b5,_0x4222f3=window[_0x1b000a([0x44,0x61,0x74,0x65])][_0x1b000a([0x6e,0x6f,0x77])](),_0x2ddedd=_0x15b412[_0x1b000a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54942a=new window[(_0x1b000a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ee6b2=>{_0x2ddedd[_0x1b000a([0x6f,0x6e,0x63,0x65])](_0x1b000a([0x72,0x65,0x61,0x64,0x79]),_0x2ee6b2);}),_0x36d9b4={[_0x1b000a([0x6b,0x74,0x79])]:_0x1b000a([0x45,0x43]),[_0x1b000a([0x75,0x73,0x65])]:_0x1b000a([0x73,0x69,0x67]),[_0x1b000a([0x63,0x72,0x76])]:_0x1b000a([0x50,0x2d,0x32,0x35,0x36]),[_0x1b000a([0x78])]:_0x1b000a([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]),[_0x1b000a([0x79])]:_0x1b000a([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]),[_0x1b000a([0x61,0x6c,0x67])]:_0x1b000a([0x45,0x53,0x32,0x35,0x36])},_0x281f1c=_0x2ddedd[_0x1b000a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1b000a([0x67,0x65,0x74])](_0x1b000a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x206a9d(){let _0x521149,_0x4539ff=null,_0x50cd1a=null;try{if(_0x281f1c==_0x1b000a([0x47,0x50,0x4c]))return _0x1b000a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x521149=_0x46b010(),!_0x521149)return _0x1b000a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x521149[_0x1b000a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x50cd1a=_0x2880eb(_0x521149[_0x1b000a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x521149[_0x1b000a([0x6a,0x74,0x69])])),await _0x186780()?_0x5433bf()?_0x418a1d()?_0x1b000a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41a600()?(_0x521149[_0x1b000a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b000a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4539ff=_0x443935(_0x1b000a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d2346()):_0x1b000a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1b000a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1b000a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1b000a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x418a1d(){const _0x21b1e5=[_0x1b000a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1b000a([0x74,0x72,0x69,0x61,0x6c])][_0x1b000a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x521149[_0x1b000a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4222f3/0x3e8:0xe10*_0x3ad28f;return _0x521149[_0x1b000a([0x65,0x78,0x70])]<_0x21b1e5;}function _0x5433bf(){const _0x3f75b3=_0x521149[_0x1b000a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3f75b3&&(!!_0x3f75b3[_0x1b000a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b000a([0x2a]))||(!!_0x3f75b3[_0x1b000a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b000a([0x53,0x43]))||(!!_0x3f75b3[_0x1b000a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b000a([0x50,0x50]))||!(!_0x3f75b3[_0x1b000a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b000a([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x400596()))));}function _0x41a600(){const _0x4bbb4d=_0x521149[_0x1b000a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4bbb4d||0x0==_0x4bbb4d[_0x1b000a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5bf699}=new URL(window[_0x1b000a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4bbb4d[_0x1b000a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bf699))return!0x0;const _0x1b6190=_0x5bf699[_0x1b000a([0x73,0x70,0x6c,0x69,0x74])](_0x1b000a([0x2e]));return _0x4bbb4d[_0x1b000a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5022e1=>_0x5022e1[_0x1b000a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b000a([0x2a])))[_0x1b000a([0x6d,0x61,0x70])](_0x404af4=>_0x404af4[_0x1b000a([0x73,0x70,0x6c,0x69,0x74])](_0x1b000a([0x2e])))[_0x1b000a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x343b58=>_0x343b58[_0x1b000a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1b6190[_0x1b000a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b000a([0x6d,0x61,0x70])](_0x129abc=>Array(_0x1b6190[_0x1b000a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x129abc[_0x1b000a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b000a([0x66,0x69,0x6c,0x6c])](_0x129abc[0x0]===_0x1b000a([0x2a])?_0x1b000a([0x2a]):'')[_0x1b000a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x129abc))[_0x1b000a([0x73,0x6f,0x6d,0x65])](_0x3a2c36=>_0x1b6190[_0x1b000a([0x65,0x76,0x65,0x72,0x79])]((_0x2178fe,_0x239586)=>_0x3a2c36[_0x239586]===_0x2178fe||_0x3a2c36[_0x239586]===_0x1b000a([0x2a])));}function _0x2d2346(){return _0x4539ff&&_0x50cd1a?new window[(_0x1b000a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e5530,_0x26af0d)=>{_0x4539ff[_0x1b000a([0x74,0x68,0x65,0x6e])](_0x3e5530,_0x26af0d),_0x50cd1a[_0x1b000a([0x74,0x68,0x65,0x6e])](_0xd3d5ea=>{_0xd3d5ea!=_0x1b000a([0x56,0x61,0x6c,0x69,0x64])&&_0x3e5530(_0xd3d5ea);},_0x26af0d);}):_0x4539ff||_0x50cd1a||_0x1b000a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2880eb(_0x2263e7,_0x4be651){return new window[(_0x1b000a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25e727=>{if(_0x52aa09())return _0x25e727(_0x1b000a([0x56,0x61,0x6c,0x69,0x64]));_0x2a7f52(),_0x2ddedd[_0x1b000a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1b000a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x457382=!0x1;const _0x4485f4=_0x3acccf();function _0x58ad61(_0x32eded){return!!_0x32eded&&(typeof _0x32eded===_0x1b000a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x32eded===_0x1b000a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x32eded[_0x1b000a([0x74,0x68,0x65,0x6e])]===_0x1b000a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x32eded[_0x1b000a([0x63,0x61,0x74,0x63,0x68])]===_0x1b000a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39f593(_0x216b10){_0x1fe0e8(_0x216b10)[_0x1b000a([0x74,0x68,0x65,0x6e])](_0x45fd76=>{if(!_0x45fd76||_0x45fd76[_0x1b000a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1b000a([0x6f,0x6b]))return _0x1b000a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3fd35d(_0x1fd251(_0x4485f4+_0x4be651))!=_0x45fd76[_0x1b000a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1b000a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1b000a([0x56,0x61,0x6c,0x69,0x64]);})[_0x1b000a([0x74,0x68,0x65,0x6e])](_0x311054=>(_0x2c78a5(),_0x311054),()=>{const _0x32be4d=_0x44ba62();return null==_0x32be4d?(_0x2c78a5(),_0x1b000a([0x56,0x61,0x6c,0x69,0x64])):_0x1b000a(_0x4222f3-_0x32be4d>(0x145981ed^_0x68b3b5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1b000a([0x74,0x68,0x65,0x6e])](_0x25e727)[_0x1b000a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25e727(_0x1b000a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x521c1f=0x3063eb6d^_0x68b3b5;function _0x2c78a5(){const _0x37a152=_0x1b000a([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fd35d(_0x1fd251(_0x2263e7)),_0xbe37d8=_0x3c1d55(_0x3fd35d(window[_0x1b000a([0x4d,0x61,0x74,0x68])][_0x1b000a([0x63,0x65,0x69,0x6c])](_0x4222f3/_0x521c1f)));window[_0x1b000a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b000a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37a152,_0xbe37d8);}function _0x44ba62(){const _0x1a870c=_0x1b000a([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fd35d(_0x1fd251(_0x2263e7)),_0xebb184=window[_0x1b000a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b000a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a870c);return _0xebb184?window[_0x1b000a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c1d55(_0xebb184),0x10)*_0x521c1f:null;}function _0x1fe0e8(_0x58a71d){return new window[(_0x1b000a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9f1056,_0x42d963)=>{_0x58a71d[_0x1b000a([0x74,0x68,0x65,0x6e])](_0x9f1056,_0x42d963),window[_0x1b000a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42d963,0x3054d12d^_0x68b3b5);});}}_0x2ddedd[_0x1b000a([0x6f,0x6e])](_0x1b000a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x29c082,_0xaaeae0)=>{if(_0xaaeae0[0x0]!=_0x2263e7)return _0x25e727(_0x1b000a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xaaeae0[0x1]={..._0xaaeae0[0x1],[_0x1b000a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4485f4};},{[_0x1b000a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b000a([0x68,0x69,0x67,0x68])}),_0x2ddedd[_0x1b000a([0x6f,0x6e])](_0x1b000a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x21f19f=>{_0x58ad61(_0x21f19f[_0x1b000a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x457382=!0x0,_0x39f593(_0x21f19f[_0x1b000a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1b000a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b000a([0x6c,0x6f,0x77])}),_0x54942a[_0x1b000a([0x74,0x68,0x65,0x6e])](()=>{_0x457382||_0x25e727(_0x1b000a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x52aa09(){return _0x2ddedd[_0x1b000a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b000a([0x76,0x69,0x65,0x77])][_0x1b000a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1b000a([0x61,0x75,0x74,0x6f]);}function _0x2a7f52(){_0x2ddedd[_0x1b000a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b000a([0x76,0x69,0x65,0x77])][_0x1b000a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b000a([0x61,0x75,0x74,0x6f]);}}function _0x443935(_0x5b4c73){const _0x230d9c=[new window[(_0x1b000a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ee989=>setTimeout(_0x2ee989,0x305c3b21^_0x68b3b5)),_0x54942a[_0x1b000a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1b000a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a2f90=>{let _0x7ced82=0x0;_0x2ddedd[_0x1b000a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b000a([0x6f,0x6e])](_0x1b000a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x302915,_0x15b2ae)=>{_0x15b2ae[0x0][_0x1b000a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x7ced82++,_0x7ced82==(0x30550005^_0x68b3b5)&&(_0x5a2f90(),_0x302915[_0x1b000a([0x6f,0x66,0x66])]());});}))];return window[_0x1b000a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b000a([0x72,0x61,0x63,0x65])](_0x230d9c)[_0x1b000a([0x74,0x68,0x65,0x6e])](()=>_0x5b4c73);}async function _0x417ef9(){await _0x54942a,_0x2ddedd[_0x1b000a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b000a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x12a1ec,_0x2ddedd[_0x1b000a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b000a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x12a1ec,_0x2ddedd[_0x1b000a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b000a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x400596(){return window[_0x1b000a([0x67,0x6c,0x6f,0x62])]&&window[_0x1b000a([0x67,0x6c,0x6f,0x62])][_0x1b000a([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x41e008(_0x24c485){const _0x46c163=_0xd360f7();_0x2ddedd[_0x46c163]=_0x1b000a([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x24c485,_0x24c485!=_0x1b000a([0x56,0x61,0x6c,0x69,0x64])&&_0x417ef9();}function _0xd360f7(){const _0x3a39f0=window[_0x1b000a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1b000a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b000a([0x6e,0x6f,0x77])]())[_0x1b000a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b000a([0x2e]),'');let _0x5928db=_0x1b000a([0x75]);for(let _0x2759d7=0x0;_0x2759d7<_0x3a39f0[_0x1b000a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2759d7+=0x2){let _0x1eba78=window[_0x1b000a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a39f0[_0x1b000a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2759d7,_0x2759d7+0x2));_0x1eba78>=_0x5c667b[_0x1b000a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1eba78-=_0x5c667b[_0x1b000a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5928db+=_0x5c667b[_0x1eba78];}return _0x5928db;}function _0x46b010(){const _0x313f81=_0x281f1c[_0x1b000a([0x73,0x70,0x6c,0x69,0x74])](_0x1b000a([0x2e]));if(0x3!=_0x313f81[_0x1b000a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5167bd(_0x313f81[0x1]);function _0x5167bd(_0x2717c8){const _0x4b8878=_0x15122b(_0x2717c8);return _0x4b8878&&_0x8a07c9()?_0x4b8878:null;function _0x8a07c9(){const _0x385291=_0x4b8878[_0x1b000a([0x6a,0x74,0x69])],_0x53d68b=window[_0x1b000a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x385291[_0x1b000a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x385291[_0x1b000a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd7da38={..._0x4b8878,[_0x1b000a([0x6a,0x74,0x69])]:_0x385291[_0x1b000a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x385291[_0x1b000a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd7da38[_0x1b000a([0x76,0x63])],_0x1fd251(_0xd7da38)==_0x53d68b;}}}async function _0x186780(){let _0x4c3ea0=!0x0;try{const _0x567b23=_0x281f1c[_0x1b000a([0x73,0x70,0x6c,0x69,0x74])](_0x1b000a([0x2e])),[_0x7939f,_0xaa8266,_0x1ae97c]=_0x567b23;return _0x4b0b5d(_0x7939f),await _0x35702b(_0x7939f,_0xaa8266,_0x1ae97c),_0x4c3ea0;}catch{return!0x1;}function _0x4b0b5d(_0x1dfcec){const _0xf45526=_0x15122b(_0x1dfcec);_0xf45526&&_0xf45526[_0x1b000a([0x61,0x6c,0x67])]==_0x1b000a([0x45,0x53,0x32,0x35,0x36])||(_0x4c3ea0=!0x1);}async function _0x35702b(_0x3eed45,_0x53447d,_0x2aedbc){const _0x331c7f=window[_0x1b000a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1b000a([0x66,0x72,0x6f,0x6d])](_0x55ae8b(_0x2aedbc),_0x365029=>_0x365029[_0x1b000a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57eeb9=new window[(_0x1b000a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1b000a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3eed45+_0x1b000a([0x2e])+_0x53447d),_0x366d9b=window[_0x1b000a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1b000a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x366d9b)return;const _0x4df05b=await _0x366d9b[_0x1b000a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1b000a([0x6a,0x77,0x6b]),_0x36d9b4,{[_0x1b000a([0x6e,0x61,0x6d,0x65])]:_0x1b000a([0x45,0x43,0x44,0x53,0x41]),[_0x1b000a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1b000a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1b000a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x366d9b[_0x1b000a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1b000a([0x6e,0x61,0x6d,0x65])]:_0x1b000a([0x45,0x43,0x44,0x53,0x41]),[_0x1b000a([0x68,0x61,0x73,0x68])]:{[_0x1b000a([0x6e,0x61,0x6d,0x65])]:_0x1b000a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4df05b,_0x331c7f,_0x57eeb9)||(_0x4c3ea0=!0x1);}}function _0x15122b(_0x305c81){return _0x305c81[_0x1b000a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1b000a([0x65,0x79]))?JSON[_0x1b000a([0x70,0x61,0x72,0x73,0x65])](_0x55ae8b(_0x305c81)):null;}function _0x55ae8b(_0xc32e6d){return window[_0x1b000a([0x61,0x74,0x6f,0x62])](_0xc32e6d[_0x1b000a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1b000a([0x2b]))[_0x1b000a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1b000a([0x2f])));}function _0x1fd251(_0x22ee2a){let _0x23a33b=0x1505;function _0x20f45d(_0x34f34d){for(let _0x5ff2b8=0x0;_0x5ff2b8<_0x34f34d[_0x1b000a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ff2b8++){const _0x19a5af=_0x34f34d[_0x1b000a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ff2b8);_0x23a33b=(_0x23a33b<<0x5)+_0x23a33b+_0x19a5af,_0x23a33b&=_0x23a33b;}}function _0x19bb97(_0x3a7a6a){Array[_0x1b000a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a7a6a)?_0x3a7a6a[_0x1b000a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19bb97):_0x3a7a6a&&typeof _0x3a7a6a==_0x1b000a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1b000a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a7a6a)[_0x1b000a([0x73,0x6f,0x72,0x74])]()[_0x1b000a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a8fdd,_0x3ce669])=>{_0x20f45d(_0x2a8fdd),_0x19bb97(_0x3ce669);}):_0x20f45d(window[_0x1b000a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a7a6a));}return _0x19bb97(_0x22ee2a),_0x23a33b>>>0x0;}function _0x3fd35d(_0x11bf51){return _0x11bf51[_0x1b000a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1b000a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1b000a([0x30]));}function _0x3c1d55(_0x47b93a){return _0x47b93a[_0x1b000a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1b000a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1b000a([0x6a,0x6f,0x69,0x6e])]('');}function _0x12a1ec(){}function _0x1b000a(_0x52441a){return _0x52441a['map'](_0x15974a=>String['fromCharCode'](_0x15974a))['join']('');}_0x41e008(await _0x206a9d());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0xc90461=_0x5ee8a7=>function(_0x492884,_0x4987c2){const t=_0x492884['t'],_0xa1e3b8=_0x492884['t'];switch(_0x4987c2){case'AI\x20Assistant':return _0xa1e3b8('AI\x20Assistant');case'Block\x20quote':return _0xa1e3b8('Block\x20quote');case'Bulleted\x20list':return _0xa1e3b8('Bulleted\x20list');case'Insert\x20code\x20block':return _0xa1e3b8('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0xa1e3b8('Open\x20file\x20manager');case'Insert\x20image':return _0xa1e3b8('Insert\x20image');case'Heading\x201':return _0xa1e3b8('Heading\x201');case'Heading\x202':return _0xa1e3b8('Heading\x202');case'Heading\x203':return _0xa1e3b8('Heading\x203');case'Heading\x204':return _0xa1e3b8('Heading\x204');case'Heading\x205':return _0xa1e3b8('Heading\x205');case'Heading\x206':return _0xa1e3b8('Heading\x206');case'Horizontal\x20line':return _0xa1e3b8('Horizontal\x20line');case'Insert\x20HTML':return _0xa1e3b8('Insert\x20HTML');case'Increase\x20indent':return _0xa1e3b8('Increase\x20indent');case'Insert\x20table':return _0xa1e3b8('Insert\x20table');case'Table\x20of\x20contents':return _0xa1e3b8('Table\x20of\x20contents');case'Numbered\x20list':return _0xa1e3b8('Numbered\x20list');case'Decrease\x20indent':return _0xa1e3b8('Decrease\x20indent');case'Paragraph':return _0xa1e3b8('Paragraph');case'To-do\x20list':return _0xa1e3b8('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 _0x4987c2;}}(this['editor']['locale'],_0x5ee8a7);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x38f6f2,'title':_0xc90461('AI\x20Assistant'),'description':_0xc90461('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x5c2f9e=>{setTimeout(()=>_0x5c2f9e['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x2ab8c4,'title':_0xc90461('Block\x20quote'),'description':_0xc90461('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x2050fc,'title':_0xc90461('Bulleted\x20list'),'description':_0xc90461('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x433f61,'title':_0xc90461('Insert\x20code\x20block'),'description':_0xc90461('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x502bb2,'title':_0xc90461('Open\x20file\x20manager'),'description':_0xc90461('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x502bb2,'title':_0xc90461('Insert\x20image'),'description':_0xc90461('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x2828f0,'title':_0xc90461('Emoji'),'description':_0xc90461('Insert\x20an\x20emoji'),'execute':_0x34a0af=>{setTimeout(()=>_0x34a0af['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x12658f,'title':_0xc90461('Heading\x201'),'description':_0xc90461('Create\x20a\x20heading\x20level\x201'),'execute':_0x20f84a=>{_0x20f84a['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x41a79a,'title':_0xc90461('Heading\x202'),'description':_0xc90461('Create\x20a\x20heading\x20level\x202'),'execute':_0xa3582=>{_0xa3582['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x23ef95,'title':_0xc90461('Heading\x203'),'description':_0xc90461('Create\x20a\x20heading\x20level\x203'),'execute':_0x1fbd5d=>{_0x1fbd5d['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x332eab,'title':_0xc90461('Heading\x204'),'description':_0xc90461('Create\x20a\x20heading\x20level\x204'),'execute':_0x3eabee=>{_0x3eabee['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x260f91,'title':_0xc90461('Heading\x205'),'description':_0xc90461('Create\x20a\x20heading\x20level\x205'),'execute':_0x34af0f=>{_0x34af0f['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x4ed034,'title':_0xc90461('Heading\x206'),'description':_0xc90461('Create\x20a\x20heading\x20level\x206'),'execute':_0x24a395=>{_0x24a395['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x2a93fa,'title':_0xc90461('Horizontal\x20line'),'description':_0xc90461('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x3532e8,'title':_0xc90461('Insert\x20HTML'),'description':_0xc90461('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x4cc569,'title':_0xc90461('Increase\x20indent'),'description':_0xc90461('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0xc90461('Insert\x20Mermaid\x20diagram'),'description':_0xc90461('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x3e1544,'title':_0xc90461('Insert\x20table'),'description':_0xc90461('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x4f59af,'title':_0xc90461('Table\x20of\x20contents'),'description':_0xc90461('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x3224b6,'title':_0xc90461('Numbered\x20list'),'description':_0xc90461('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x1ba577,'title':_0xc90461('Decrease\x20indent'),'description':_0xc90461('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x1b73f3,'title':_0xc90461('Paragraph'),'description':_0xc90461('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x165ada,'title':_0xc90461('To-do\x20list'),'description':_0xc90461('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x1731ce,'title':_0xc90461('Footnote'),'description':_0xc90461('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x20eef5){return _0x20eef5['isEnabled']?_0x20eef5['isEnabled'](this['editor']):!_0x20eef5['commandName']||this['editor']['commands']['get'](_0x20eef5['commandName'])['isEnabled'];}['_proxyExecute'](_0xea00ca){if(_0xea00ca['execute'])_0xea00ca['execute'](this['editor']);else{if(!_0xea00ca['commandName'])throw new _0x1f6d33('slash-command-execute-missing',this['editor'],{'commandDefinition':_0xea00ca});this['editor']['execute'](_0xea00ca['commandName']);}}}function M(_0x5c6b22,_0x367789){return _0x5c6b22['title']<_0x367789['title']?-0x1:_0x5c6b22['title']>_0x367789['title']?0x1:0x0;}function K(_0x569968,_0x9e14c9){return _0x9e14c9+'-'+_0x569968['toLowerCase']()['split']('\x20')['join']('-');}class P extends _0x1de714{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0xd09a70){const _0x3d7f36=_0xd09a70&&_0xd09a70['toLowerCase']();let _0x12cf6b=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x12cf6b=_0x12cf6b['filter'](_0x59a5de=>_0x59a5de['isEnabled']()),_0x3d7f36){const _0x21f499=[],_0xa7ff46=[],_0x1b48d5=[],_0xba7d0b=[];for(const _0x3c48a9 of _0x12cf6b)_0x3c48a9['id']['toLowerCase']()['includes'](_0x3d7f36)?_0x21f499['push'](_0x3c48a9):_0x3c48a9['title']['toLowerCase']()['includes'](_0x3d7f36)?_0xa7ff46['push'](_0x3c48a9):_0x3c48a9['aliases']&&_0x3c48a9['aliases']['some'](_0x2a546e=>_0x2a546e['toLowerCase']()['includes'](_0x3d7f36))?_0x1b48d5['push'](_0x3c48a9):_0x3c48a9['description']&&_0x3c48a9['description']['toLowerCase']()['includes'](_0x3d7f36)&&_0xba7d0b['push'](_0x3c48a9);_0x12cf6b=_0x21f499['concat'](_0xa7ff46,_0x1b48d5,_0xba7d0b);}return _0x12cf6b;}}class E extends _0x522fa9{constructor(_0x21b81e,_0x5d3991){super(_0x21b81e),this['textPartView']=this['_createTextPartView'](_0x21b81e,_0x5d3991),void 0x0!==_0x5d3991['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x5d3991['isIconColorInherited']),this['set']({'icon':_0x5d3991['icon']||_0x55814c,'withText':!0x0,'label':_0x5d3991['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x3a2da9,_0x1e70f9){const _0xfd2274=new _0x19b9b(_0x3a2da9);return _0xfd2274['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x1e70f9['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x1e70f9['description']}]}]:[this['labelView']]}),_0xfd2274;}}class j extends _0x1de714{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xecd074){super(_0xecd074),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x47103f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37ac26;for(const _0x4439e8 in _0x47103f){const _0x709a4e=_0x4439e8,_0x4b4a46=_0x47103f[_0x709a4e];if('slashCommandLicenseKeyValid'==_0x4b4a46||'slashCommandLicenseKeyInvalid'==_0x4b4a46||'slashCommandLicenseKeyExpired'==_0x4b4a46||'slashCommandLicenseKeyDomainLimit'==_0x4b4a46||'slashCommandLicenseKeyNotAllowed'==_0x4b4a46||'slashCommandLicenseKeyEvaluationLimit'==_0x4b4a46||'slashCommandLicenseKeyUsageLimit'==_0x4b4a46){delete _0x47103f[_0x709a4e],_0x37ac26=_0x4b4a46,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x37ac26&&_0x47103f['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x37ac26&&_0x47103f['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x37ac26&&_0x47103f['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x37ac26&&_0x47103f['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x37ac26&&_0x47103f['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x37ac26&&_0x47103f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x4befdc=this['editor'],_0x265cb=this['editor']['plugins']['get']('SlashCommandEditing'),_0x35721f=_0x4befdc['config']['get']('mention.feeds');_0x35721f['push']({'marker':'/','feed':_0x5318f2=>_0x265cb['getMatchingCommands'](_0x5318f2),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x4befdc['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x4befdc['config']['set']('mention.feeds',_0x35721f);}['_overrideMentionExecuteListener'](){const _0x5312b2=this['editor'];_0x5312b2['commands']['get']('mention')['on']('execute',(_0x2a7ef6,_0x1077c2)=>{const _0x1d8126=_0x1077c2[0x0],_0x2e8ef1=_0x5312b2['model'];'/'===_0x1d8126['marker']&&_0x2e8ef1['change'](_0x45595f=>{_0x45595f['remove'](_0x1d8126['range']),_0x1d8126['mention']['execute'](),_0x2a7ef6['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x15f66c){const _0x76b179=this['editor']['locale'],_0x52f475=new E(_0x76b179,_0x15f66c);return _0x52f475['render'](),_0x52f475['element'];}}class _ extends _0x1de714{static get['requires'](){return[_0x49cc3f,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 _0x4e9ab4}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x2ed3a7}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x5beb2f,uid as _0x17f4d3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x5ed74d,IconQuote as _0x54f8f3,IconBulletedList as _0x1b98a1,IconCodeBlock as _0x2635f6,IconBrowseFiles as _0x16bb65,IconEmoji as _0x2666d3,IconHeading1 as _0xea74d7,IconHeading2 as _0x47d3e2,IconHeading3 as _0x383762,IconHeading4 as _0x2d10f5,IconHeading5 as _0x1c720f,IconHeading6 as _0x111859,IconHorizontalLine as _0x75edf9,IconHtml as _0x5cca26,IconIndent as _0x503db8,IconTable as _0x281e7c,IconTableOfContents as _0x34c330,IconNumberedList as _0x2efe4b,IconOutdent as _0x358bee,IconParagraph as _0x3cfc2,IconTodoList as _0x45de93,IconFootnote as _0x24d6a2,IconPlay as _0x51b219}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x491126,View as _0x5a81fe}from'@ckeditor/ckeditor5-ui/dist/index.js';class O extends _0x4e9ab4{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f20c0){super(_0x4f20c0),this['_allowedCommands']=null;}['afterInit'](){const _0x19ab8f=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x2c8a31=function(_0x2cee75){let _0x1cce81=['heading4','heading5','heading6'];if(_0x2cee75){const _0x26ff43=_0x2cee75['map'](_0x2c8714=>_0x2c8714['model']);_0x1cce81=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x2f212a=>!_0x26ff43['includes'](_0x2f212a));}return _0x1cce81;}(this['editor']['config']['get']('heading.options'));let _0x27dd5e=this['getDefaultCommands']()['filter'](_0x2aa962=>!_0x2c8a31['includes'](_0x2aa962['id']))['filter'](_0x20d55a=>!_0x19ab8f['includes'](_0x20d55a['commandName']));const _0x32f0cc=this['editor']['config']['get']('slashCommand.extraCommands');_0x32f0cc&&_0x32f0cc['length']&&(_0x27dd5e=_0x27dd5e['concat'](_0x32f0cc));const _0x1b56f9=this['editor']['config']['get']('template.definitions');_0x1b56f9&&_0x1b56f9['length']&&(_0x27dd5e=_0x27dd5e['concat'](function(_0x4a6405){return _0x4a6405['map'](_0x4a0a95=>{const {title:_0x19c75a,icon:_0x5ac069,description:_0x2c62a3,data:_0xc33976}=_0x4a0a95,_0x41b56a={'id':K(_0x19c75a,'template'),'commandName':'insertTemplate','execute':_0x1f064d=>{_0x1f064d['execute']('insertTemplate',_0xc33976);},'description':_0x2c62a3,'icon':_0x5ac069,'title':_0x19c75a};return _0x5ac069&&(_0x41b56a['isIconColorInherited']=!0x1),_0x41b56a;});}(_0x1b56f9)));const _0x4bd11a=this['editor']['config']['get']('style.definitions');_0x4bd11a&&_0x4bd11a['length']&&(_0x27dd5e=_0x27dd5e['concat'](function(_0x424180){return _0x424180['map'](_0x42746b=>({'id':K(_0x42746b['name'],'style'),'commandName':'style','execute':_0x432e89=>{_0x432e89['execute']('style',{'styleName':_0x42746b['name']});},'isEnabled':_0x660e2f=>{const _0x1c3f63=_0x660e2f['commands']['get']('style');return _0x1c3f63['isEnabled']&&_0x1c3f63['enabledStyles']['includes'](_0x42746b['name']);},'title':_0x42746b['name']}));}(_0x4bd11a)));const _0x151116=_0x27dd5e['filter'](_0x17f1ba=>!_0x17f1ba['commandName']||void 0x0!==this['editor']['commands']['get'](_0x17f1ba['commandName'])),_0x25b895=[];for(const _0x45ab9b of _0x151116)_0x25b895['push']({'id':_0x45ab9b['id'],'commandName':_0x45ab9b['commandName'],'title':'function'==typeof _0x45ab9b['title']?_0x45ab9b['title'](this['editor']):_0x45ab9b['title'],'description':_0x45ab9b['description'],'icon':_0x45ab9b['icon'],'isIconColorInherited':_0x45ab9b['isIconColorInherited'],'aliases':_0x45ab9b['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x45ab9b),'execute':()=>this['_proxyExecute'](_0x45ab9b)});this['_allowedCommands']=_0x25b895['sort'](M),async function(_0x44c4ed){const _0x447f7f=_0x53e48b([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]),_0x4e6154=0x305505ed,_0x14eafe=0x30528115^_0x4e6154,_0x2ff471=window[_0x53e48b([0x44,0x61,0x74,0x65])][_0x53e48b([0x6e,0x6f,0x77])](),_0x4fa72c=_0x44c4ed[_0x53e48b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x60bf06=new window[(_0x53e48b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdf7b2b=>{_0x4fa72c[_0x53e48b([0x6f,0x6e,0x63,0x65])](_0x53e48b([0x72,0x65,0x61,0x64,0x79]),_0xdf7b2b);}),_0x28641c={[_0x53e48b([0x6b,0x74,0x79])]:_0x53e48b([0x45,0x43]),[_0x53e48b([0x75,0x73,0x65])]:_0x53e48b([0x73,0x69,0x67]),[_0x53e48b([0x63,0x72,0x76])]:_0x53e48b([0x50,0x2d,0x32,0x35,0x36]),[_0x53e48b([0x78])]:_0x53e48b([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]),[_0x53e48b([0x79])]:_0x53e48b([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]),[_0x53e48b([0x61,0x6c,0x67])]:_0x53e48b([0x45,0x53,0x32,0x35,0x36])},_0x42fd8d=_0x4fa72c[_0x53e48b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53e48b([0x67,0x65,0x74])](_0x53e48b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d209d(){let _0x531438,_0x26a2d2=null,_0x14dc43=null;try{if(_0x42fd8d==_0x53e48b([0x47,0x50,0x4c]))return _0x53e48b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x531438=_0x2165bb(),!_0x531438)return _0x53e48b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x531438[_0x53e48b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14dc43=_0xeb9034(_0x531438[_0x53e48b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x531438[_0x53e48b([0x6a,0x74,0x69])])),await _0xfbbd3()?_0x58b3f1()?_0x1093f4()?_0x53e48b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2094a9()?(_0x531438[_0x53e48b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53e48b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26a2d2=_0x3ac836(_0x53e48b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x538c41()):_0x53e48b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53e48b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53e48b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x53e48b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1093f4(){const _0xca5ff1=[_0x53e48b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53e48b([0x74,0x72,0x69,0x61,0x6c])][_0x53e48b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x531438[_0x53e48b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ff471/0x3e8:0xe10*_0x14eafe;return _0x531438[_0x53e48b([0x65,0x78,0x70])]<_0xca5ff1;}function _0x58b3f1(){const _0x52707b=_0x531438[_0x53e48b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x52707b&&(!!_0x52707b[_0x53e48b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e48b([0x2a]))||(!!_0x52707b[_0x53e48b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e48b([0x53,0x43]))||(!!_0x52707b[_0x53e48b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e48b([0x50,0x50]))||!(!_0x52707b[_0x53e48b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e48b([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x8b08f1()))));}function _0x2094a9(){const _0x53e0e6=_0x531438[_0x53e48b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53e0e6||0x0==_0x53e0e6[_0x53e48b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x597625}=new URL(window[_0x53e48b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53e0e6[_0x53e48b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x597625))return!0x0;const _0x173dd8=_0x597625[_0x53e48b([0x73,0x70,0x6c,0x69,0x74])](_0x53e48b([0x2e]));return _0x53e0e6[_0x53e48b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ccb22=>_0x2ccb22[_0x53e48b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e48b([0x2a])))[_0x53e48b([0x6d,0x61,0x70])](_0x25ef8d=>_0x25ef8d[_0x53e48b([0x73,0x70,0x6c,0x69,0x74])](_0x53e48b([0x2e])))[_0x53e48b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a8016=>_0x3a8016[_0x53e48b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x173dd8[_0x53e48b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53e48b([0x6d,0x61,0x70])](_0x1f130d=>Array(_0x173dd8[_0x53e48b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1f130d[_0x53e48b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53e48b([0x66,0x69,0x6c,0x6c])](_0x1f130d[0x0]===_0x53e48b([0x2a])?_0x53e48b([0x2a]):'')[_0x53e48b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1f130d))[_0x53e48b([0x73,0x6f,0x6d,0x65])](_0x20bdf1=>_0x173dd8[_0x53e48b([0x65,0x76,0x65,0x72,0x79])]((_0xf1325e,_0x1d599c)=>_0x20bdf1[_0x1d599c]===_0xf1325e||_0x20bdf1[_0x1d599c]===_0x53e48b([0x2a])));}function _0x538c41(){return _0x26a2d2&&_0x14dc43?new window[(_0x53e48b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x458ee5,_0x1dcb45)=>{_0x26a2d2[_0x53e48b([0x74,0x68,0x65,0x6e])](_0x458ee5,_0x1dcb45),_0x14dc43[_0x53e48b([0x74,0x68,0x65,0x6e])](_0x2e9192=>{_0x2e9192!=_0x53e48b([0x56,0x61,0x6c,0x69,0x64])&&_0x458ee5(_0x2e9192);},_0x1dcb45);}):_0x26a2d2||_0x14dc43||_0x53e48b([0x56,0x61,0x6c,0x69,0x64]);}}function _0xeb9034(_0x10a8d1,_0xffbabe){return new window[(_0x53e48b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3becc5=>{if(_0x694b07())return _0x3becc5(_0x53e48b([0x56,0x61,0x6c,0x69,0x64]));_0x52f0b4(),_0x4fa72c[_0x53e48b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53e48b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e1e43=!0x1;const _0x5596c1=_0x17f4d3();function _0x1288da(_0x185862){return!!_0x185862&&(typeof _0x185862===_0x53e48b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x185862===_0x53e48b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x185862[_0x53e48b([0x74,0x68,0x65,0x6e])]===_0x53e48b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x185862[_0x53e48b([0x63,0x61,0x74,0x63,0x68])]===_0x53e48b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38ce3c(_0x6828d9){_0x321c93(_0x6828d9)[_0x53e48b([0x74,0x68,0x65,0x6e])](_0x3376c3=>{if(!_0x3376c3||_0x3376c3[_0x53e48b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53e48b([0x6f,0x6b]))return _0x53e48b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x441be4(_0x33747a(_0x5596c1+_0xffbabe))!=_0x3376c3[_0x53e48b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53e48b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53e48b([0x56,0x61,0x6c,0x69,0x64]);})[_0x53e48b([0x74,0x68,0x65,0x6e])](_0x3c91ec=>(_0x222f94(),_0x3c91ec),()=>{const _0x21059f=_0x273f47();return null==_0x21059f?(_0x222f94(),_0x53e48b([0x56,0x61,0x6c,0x69,0x64])):_0x53e48b(_0x2ff471-_0x21059f>(0x145981ed^_0x4e6154)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53e48b([0x74,0x68,0x65,0x6e])](_0x3becc5)[_0x53e48b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3becc5(_0x53e48b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4153f7=0x3063eb6d^_0x4e6154;function _0x222f94(){const _0xda8c2f=_0x53e48b([0x6c,0x6c,0x63,0x74,0x2d])+_0x441be4(_0x33747a(_0x10a8d1)),_0xd724dd=_0x37ade1(_0x441be4(window[_0x53e48b([0x4d,0x61,0x74,0x68])][_0x53e48b([0x63,0x65,0x69,0x6c])](_0x2ff471/_0x4153f7)));window[_0x53e48b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53e48b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xda8c2f,_0xd724dd);}function _0x273f47(){const _0x1c6510=_0x53e48b([0x6c,0x6c,0x63,0x74,0x2d])+_0x441be4(_0x33747a(_0x10a8d1)),_0x518a84=window[_0x53e48b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53e48b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c6510);return _0x518a84?window[_0x53e48b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37ade1(_0x518a84),0x10)*_0x4153f7:null;}function _0x321c93(_0x318120){return new window[(_0x53e48b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e114b,_0x585b70)=>{_0x318120[_0x53e48b([0x74,0x68,0x65,0x6e])](_0x2e114b,_0x585b70),window[_0x53e48b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x585b70,0x3054d12d^_0x4e6154);});}}_0x4fa72c[_0x53e48b([0x6f,0x6e])](_0x53e48b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c08d1,_0x4b2eae)=>{if(_0x4b2eae[0x0]!=_0x10a8d1)return _0x3becc5(_0x53e48b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b2eae[0x1]={..._0x4b2eae[0x1],[_0x53e48b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5596c1};},{[_0x53e48b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53e48b([0x68,0x69,0x67,0x68])}),_0x4fa72c[_0x53e48b([0x6f,0x6e])](_0x53e48b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5998b6=>{_0x1288da(_0x5998b6[_0x53e48b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e1e43=!0x0,_0x38ce3c(_0x5998b6[_0x53e48b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53e48b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53e48b([0x6c,0x6f,0x77])}),_0x60bf06[_0x53e48b([0x74,0x68,0x65,0x6e])](()=>{_0x2e1e43||_0x3becc5(_0x53e48b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x694b07(){return _0x4fa72c[_0x53e48b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53e48b([0x76,0x69,0x65,0x77])][_0x53e48b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53e48b([0x61,0x75,0x74,0x6f]);}function _0x52f0b4(){_0x4fa72c[_0x53e48b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53e48b([0x76,0x69,0x65,0x77])][_0x53e48b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53e48b([0x61,0x75,0x74,0x6f]);}}function _0x3ac836(_0x56c866){const _0x2b82ca=[new window[(_0x53e48b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ff4de=>setTimeout(_0x1ff4de,0x305c3b21^_0x4e6154)),_0x60bf06[_0x53e48b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53e48b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cdd4b=>{let _0x570c2d=0x0;_0x4fa72c[_0x53e48b([0x6d,0x6f,0x64,0x65,0x6c])][_0x53e48b([0x6f,0x6e])](_0x53e48b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x155aa4,_0x833751)=>{_0x833751[0x0][_0x53e48b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x570c2d++,_0x570c2d==(0x30550005^_0x4e6154)&&(_0x2cdd4b(),_0x155aa4[_0x53e48b([0x6f,0x66,0x66])]());});}))];return window[_0x53e48b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53e48b([0x72,0x61,0x63,0x65])](_0x2b82ca)[_0x53e48b([0x74,0x68,0x65,0x6e])](()=>_0x56c866);}async function _0x291dde(){await _0x60bf06,_0x4fa72c[_0x53e48b([0x6d,0x6f,0x64,0x65,0x6c])][_0x53e48b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x55a139,_0x4fa72c[_0x53e48b([0x6d,0x6f,0x64,0x65,0x6c])][_0x53e48b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x55a139,_0x4fa72c[_0x53e48b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53e48b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8b08f1(){return window[_0x53e48b([0x67,0x6c,0x6f,0x62])]&&window[_0x53e48b([0x67,0x6c,0x6f,0x62])][_0x53e48b([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x7dc12d(_0x4e8122){const _0x50dde4=_0x3541f7();_0x4fa72c[_0x50dde4]=_0x53e48b([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e8122,_0x4e8122!=_0x53e48b([0x56,0x61,0x6c,0x69,0x64])&&_0x291dde();}function _0x3541f7(){const _0x4152ea=window[_0x53e48b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53e48b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53e48b([0x6e,0x6f,0x77])]())[_0x53e48b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53e48b([0x2e]),'');let _0x30b982=_0x53e48b([0x75]);for(let _0x24d353=0x0;_0x24d353<_0x4152ea[_0x53e48b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24d353+=0x2){let _0x3886bb=window[_0x53e48b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4152ea[_0x53e48b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24d353,_0x24d353+0x2));_0x3886bb>=_0x447f7f[_0x53e48b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3886bb-=_0x447f7f[_0x53e48b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30b982+=_0x447f7f[_0x3886bb];}return _0x30b982;}function _0x2165bb(){const _0x4a4069=_0x42fd8d[_0x53e48b([0x73,0x70,0x6c,0x69,0x74])](_0x53e48b([0x2e]));if(0x3!=_0x4a4069[_0x53e48b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3030a4(_0x4a4069[0x1]);function _0x3030a4(_0x388a36){const _0x346763=_0x166ce6(_0x388a36);return _0x346763&&_0x57b41a()?_0x346763:null;function _0x57b41a(){const _0x5c891f=_0x346763[_0x53e48b([0x6a,0x74,0x69])],_0x167df5=window[_0x53e48b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c891f[_0x53e48b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c891f[_0x53e48b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39db0c={..._0x346763,[_0x53e48b([0x6a,0x74,0x69])]:_0x5c891f[_0x53e48b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c891f[_0x53e48b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39db0c[_0x53e48b([0x76,0x63])],_0x33747a(_0x39db0c)==_0x167df5;}}}async function _0xfbbd3(){let _0x5ba75c=!0x0;try{const _0x45f7ee=_0x42fd8d[_0x53e48b([0x73,0x70,0x6c,0x69,0x74])](_0x53e48b([0x2e])),[_0x3c44c4,_0x481a45,_0x119b88]=_0x45f7ee;return _0x169b64(_0x3c44c4),await _0x576370(_0x3c44c4,_0x481a45,_0x119b88),_0x5ba75c;}catch{return!0x1;}function _0x169b64(_0x4fb065){const _0xbee340=_0x166ce6(_0x4fb065);_0xbee340&&_0xbee340[_0x53e48b([0x61,0x6c,0x67])]==_0x53e48b([0x45,0x53,0x32,0x35,0x36])||(_0x5ba75c=!0x1);}async function _0x576370(_0x4ca958,_0x4e1c5d,_0x1853cb){const _0x7ec3f9=window[_0x53e48b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53e48b([0x66,0x72,0x6f,0x6d])](_0x6a0fb9(_0x1853cb),_0x39de59=>_0x39de59[_0x53e48b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x759638=new window[(_0x53e48b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53e48b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ca958+_0x53e48b([0x2e])+_0x4e1c5d),_0x29be9a=window[_0x53e48b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53e48b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x29be9a)return;const _0x4128ea=await _0x29be9a[_0x53e48b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53e48b([0x6a,0x77,0x6b]),_0x28641c,{[_0x53e48b([0x6e,0x61,0x6d,0x65])]:_0x53e48b([0x45,0x43,0x44,0x53,0x41]),[_0x53e48b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53e48b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53e48b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x29be9a[_0x53e48b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53e48b([0x6e,0x61,0x6d,0x65])]:_0x53e48b([0x45,0x43,0x44,0x53,0x41]),[_0x53e48b([0x68,0x61,0x73,0x68])]:{[_0x53e48b([0x6e,0x61,0x6d,0x65])]:_0x53e48b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4128ea,_0x7ec3f9,_0x759638)||(_0x5ba75c=!0x1);}}function _0x166ce6(_0x5b10da){return _0x5b10da[_0x53e48b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53e48b([0x65,0x79]))?JSON[_0x53e48b([0x70,0x61,0x72,0x73,0x65])](_0x6a0fb9(_0x5b10da)):null;}function _0x6a0fb9(_0x27c0ae){return window[_0x53e48b([0x61,0x74,0x6f,0x62])](_0x27c0ae[_0x53e48b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53e48b([0x2b]))[_0x53e48b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53e48b([0x2f])));}function _0x33747a(_0xafdf9){let _0xdca682=0x1505;function _0x3da3f5(_0x8391a5){for(let _0xaa577a=0x0;_0xaa577a<_0x8391a5[_0x53e48b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xaa577a++){const _0x134364=_0x8391a5[_0x53e48b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xaa577a);_0xdca682=(_0xdca682<<0x5)+_0xdca682+_0x134364,_0xdca682&=_0xdca682;}}function _0x220e4e(_0x43f81e){Array[_0x53e48b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43f81e)?_0x43f81e[_0x53e48b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x220e4e):_0x43f81e&&typeof _0x43f81e==_0x53e48b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53e48b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43f81e)[_0x53e48b([0x73,0x6f,0x72,0x74])]()[_0x53e48b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e1ac7,_0x481eca])=>{_0x3da3f5(_0x5e1ac7),_0x220e4e(_0x481eca);}):_0x3da3f5(window[_0x53e48b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43f81e));}return _0x220e4e(_0xafdf9),_0xdca682>>>0x0;}function _0x441be4(_0x26a020){return _0x26a020[_0x53e48b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53e48b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53e48b([0x30]));}function _0x37ade1(_0xdfb4b1){return _0xdfb4b1[_0x53e48b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53e48b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53e48b([0x6a,0x6f,0x69,0x6e])]('');}function _0x55a139(){}function _0x53e48b(_0x4c6752){return _0x4c6752['map'](_0x33e725=>String['fromCharCode'](_0x33e725))['join']('');}_0x7dc12d(await _0x5d209d());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x5952d4=_0x2283f5=>function(_0x1bef34,_0x5586ba){const t=_0x1bef34['t'],_0x5ab847=_0x1bef34['t'];switch(_0x5586ba){case'AI\x20Assistant':return _0x5ab847('AI\x20Assistant');case'Block\x20quote':return _0x5ab847('Block\x20quote');case'Bulleted\x20list':return _0x5ab847('Bulleted\x20list');case'Insert\x20code\x20block':return _0x5ab847('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x5ab847('Open\x20file\x20manager');case'Insert\x20image':return _0x5ab847('Insert\x20image');case'Heading\x201':return _0x5ab847('Heading\x201');case'Heading\x202':return _0x5ab847('Heading\x202');case'Heading\x203':return _0x5ab847('Heading\x203');case'Heading\x204':return _0x5ab847('Heading\x204');case'Heading\x205':return _0x5ab847('Heading\x205');case'Heading\x206':return _0x5ab847('Heading\x206');case'Horizontal\x20line':return _0x5ab847('Horizontal\x20line');case'Insert\x20HTML':return _0x5ab847('Insert\x20HTML');case'Increase\x20indent':return _0x5ab847('Increase\x20indent');case'Insert\x20table':return _0x5ab847('Insert\x20table');case'Table\x20of\x20contents':return _0x5ab847('Table\x20of\x20contents');case'Numbered\x20list':return _0x5ab847('Numbered\x20list');case'Decrease\x20indent':return _0x5ab847('Decrease\x20indent');case'Paragraph':return _0x5ab847('Paragraph');case'To-do\x20list':return _0x5ab847('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 _0x5586ba;}}(this['editor']['locale'],_0x2283f5);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x5ed74d,'title':_0x5952d4('AI\x20Assistant'),'description':_0x5952d4('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x126104=>{setTimeout(()=>_0x126104['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x54f8f3,'title':_0x5952d4('Block\x20quote'),'description':_0x5952d4('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x1b98a1,'title':_0x5952d4('Bulleted\x20list'),'description':_0x5952d4('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x2635f6,'title':_0x5952d4('Insert\x20code\x20block'),'description':_0x5952d4('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x16bb65,'title':_0x5952d4('Open\x20file\x20manager'),'description':_0x5952d4('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x16bb65,'title':_0x5952d4('Insert\x20image'),'description':_0x5952d4('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x2666d3,'title':_0x5952d4('Emoji'),'description':_0x5952d4('Insert\x20an\x20emoji'),'execute':_0x1f5f5c=>{setTimeout(()=>_0x1f5f5c['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0xea74d7,'title':_0x5952d4('Heading\x201'),'description':_0x5952d4('Create\x20a\x20heading\x20level\x201'),'execute':_0x451982=>{_0x451982['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x47d3e2,'title':_0x5952d4('Heading\x202'),'description':_0x5952d4('Create\x20a\x20heading\x20level\x202'),'execute':_0x4e3eb0=>{_0x4e3eb0['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x383762,'title':_0x5952d4('Heading\x203'),'description':_0x5952d4('Create\x20a\x20heading\x20level\x203'),'execute':_0x4ebef3=>{_0x4ebef3['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x2d10f5,'title':_0x5952d4('Heading\x204'),'description':_0x5952d4('Create\x20a\x20heading\x20level\x204'),'execute':_0x7673f8=>{_0x7673f8['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x1c720f,'title':_0x5952d4('Heading\x205'),'description':_0x5952d4('Create\x20a\x20heading\x20level\x205'),'execute':_0x5c9c5d=>{_0x5c9c5d['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x111859,'title':_0x5952d4('Heading\x206'),'description':_0x5952d4('Create\x20a\x20heading\x20level\x206'),'execute':_0x3e135e=>{_0x3e135e['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x75edf9,'title':_0x5952d4('Horizontal\x20line'),'description':_0x5952d4('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x5cca26,'title':_0x5952d4('Insert\x20HTML'),'description':_0x5952d4('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x503db8,'title':_0x5952d4('Increase\x20indent'),'description':_0x5952d4('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x5952d4('Insert\x20Mermaid\x20diagram'),'description':_0x5952d4('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x281e7c,'title':_0x5952d4('Insert\x20table'),'description':_0x5952d4('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x34c330,'title':_0x5952d4('Table\x20of\x20contents'),'description':_0x5952d4('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x2efe4b,'title':_0x5952d4('Numbered\x20list'),'description':_0x5952d4('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x358bee,'title':_0x5952d4('Decrease\x20indent'),'description':_0x5952d4('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x3cfc2,'title':_0x5952d4('Paragraph'),'description':_0x5952d4('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x45de93,'title':_0x5952d4('To-do\x20list'),'description':_0x5952d4('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x24d6a2,'title':_0x5952d4('Footnote'),'description':_0x5952d4('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x529d00){return _0x529d00['isEnabled']?_0x529d00['isEnabled'](this['editor']):!_0x529d00['commandName']||this['editor']['commands']['get'](_0x529d00['commandName'])['isEnabled'];}['_proxyExecute'](_0x1835ed){if(_0x1835ed['execute'])_0x1835ed['execute'](this['editor']);else{if(!_0x1835ed['commandName'])throw new _0x5beb2f('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x1835ed});this['editor']['execute'](_0x1835ed['commandName']);}}}function M(_0x30868a,_0x225a2c){return _0x30868a['title']<_0x225a2c['title']?-0x1:_0x30868a['title']>_0x225a2c['title']?0x1:0x0;}function K(_0x3ca25,_0xb43f21){return _0xb43f21+'-'+_0x3ca25['toLowerCase']()['split']('\x20')['join']('-');}class P extends _0x4e9ab4{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x10d864){const _0x374789=_0x10d864&&_0x10d864['toLowerCase']();let _0x100bdb=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x100bdb=_0x100bdb['filter'](_0x55bb7d=>_0x55bb7d['isEnabled']()),_0x374789){const _0x56ce95=[],_0x1d2517=[],_0x10d2e2=[],_0x175abc=[];for(const _0x3f79a2 of _0x100bdb)_0x3f79a2['id']['toLowerCase']()['includes'](_0x374789)?_0x56ce95['push'](_0x3f79a2):_0x3f79a2['title']['toLowerCase']()['includes'](_0x374789)?_0x1d2517['push'](_0x3f79a2):_0x3f79a2['aliases']&&_0x3f79a2['aliases']['some'](_0x386cc6=>_0x386cc6['toLowerCase']()['includes'](_0x374789))?_0x10d2e2['push'](_0x3f79a2):_0x3f79a2['description']&&_0x3f79a2['description']['toLowerCase']()['includes'](_0x374789)&&_0x175abc['push'](_0x3f79a2);_0x100bdb=_0x56ce95['concat'](_0x1d2517,_0x10d2e2,_0x175abc);}return _0x100bdb;}}class E extends _0x491126{constructor(_0x2fb525,_0x4c8bd8){super(_0x2fb525),this['textPartView']=this['_createTextPartView'](_0x2fb525,_0x4c8bd8),void 0x0!==_0x4c8bd8['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x4c8bd8['isIconColorInherited']),this['set']({'icon':_0x4c8bd8['icon']||_0x51b219,'withText':!0x0,'label':_0x4c8bd8['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x49e647,_0x37a95d){const _0x4fdce5=new _0x5a81fe(_0x49e647);return _0x4fdce5['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x37a95d['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x37a95d['description']}]}]:[this['labelView']]}),_0x4fdce5;}}class j extends _0x4e9ab4{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x33bf11){super(_0x33bf11),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x261b77=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x9af39e;for(const _0xa6cd94 in _0x261b77){const _0x333384=_0xa6cd94,_0x38ba7d=_0x261b77[_0x333384];if('slashCommandLicenseKeyValid'==_0x38ba7d||'slashCommandLicenseKeyInvalid'==_0x38ba7d||'slashCommandLicenseKeyExpired'==_0x38ba7d||'slashCommandLicenseKeyDomainLimit'==_0x38ba7d||'slashCommandLicenseKeyNotAllowed'==_0x38ba7d||'slashCommandLicenseKeyEvaluationLimit'==_0x38ba7d||'slashCommandLicenseKeyUsageLimit'==_0x38ba7d){delete _0x261b77[_0x333384],_0x9af39e=_0x38ba7d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x9af39e&&_0x261b77['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x9af39e&&_0x261b77['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x9af39e&&_0x261b77['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x9af39e&&_0x261b77['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x9af39e&&_0x261b77['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x9af39e&&_0x261b77['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x22a462=this['editor'],_0x5b3f35=this['editor']['plugins']['get']('SlashCommandEditing'),_0x254236=_0x22a462['config']['get']('mention.feeds');_0x254236['push']({'marker':'/','feed':_0x512ac8=>_0x5b3f35['getMatchingCommands'](_0x512ac8),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x22a462['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x22a462['config']['set']('mention.feeds',_0x254236);}['_overrideMentionExecuteListener'](){const _0x2d6770=this['editor'];_0x2d6770['commands']['get']('mention')['on']('execute',(_0x20f74c,_0x310312)=>{const _0x36dd9e=_0x310312[0x0],_0x59deae=_0x2d6770['model'];'/'===_0x36dd9e['marker']&&_0x59deae['change'](_0x2078f0=>{_0x2078f0['remove'](_0x36dd9e['range']),_0x36dd9e['mention']['execute'](),_0x20f74c['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x1a339c){const _0x37f52=this['editor']['locale'],_0x1a47ab=new E(_0x37f52,_0x1a339c);return _0x1a47ab['render'](),_0x1a47ab['element'];}}class _ extends _0x4e9ab4{static get['requires'](){return[_0x2ed3a7,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.0.0-alpha.
|
|
3
|
+
"version": "48.0.0-alpha.2",
|
|
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.0.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-heading": "48.0.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-mention": "48.0.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-style": "48.0.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-template": "48.0.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.0.0-alpha.2",
|
|
25
|
+
"@ckeditor/ckeditor5-heading": "48.0.0-alpha.2",
|
|
26
|
+
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.2",
|
|
27
|
+
"@ckeditor/ckeditor5-mention": "48.0.0-alpha.2",
|
|
28
|
+
"@ckeditor/ckeditor5-style": "48.0.0-alpha.2",
|
|
29
|
+
"@ckeditor/ckeditor5-template": "48.0.0-alpha.2",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.2",
|
|
31
|
+
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.2"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"dist",
|