@ckeditor/ckeditor5-slash-command 48.1.0-alpha.3 → 48.1.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 _0x377714}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x50c706}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x17db41,uid as _0x5240cd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x24ed29,IconQuote as _0x39df87,IconBulletedList as _0x4a3ec8,IconCodeBlock as _0x3a1f23,IconBrowseFiles as _0x26e66b,IconEmoji as _0x1e03d7,IconHeading1 as _0x1608ab,IconHeading2 as _0x32b7f0,IconHeading3 as _0x3fde66,IconHeading4 as _0x4b5392,IconHeading5 as _0x3566b7,IconHeading6 as _0x38d96e,IconHorizontalLine as _0xebf0b0,IconHtml as _0x3d33f4,IconIndent as _0x349f10,IconTable as _0x21dd23,IconTableOfContents as _0x232b99,IconNumberedList as _0x3d0944,IconOutdent as _0x4dddcc,IconParagraph as _0x536969,IconTodoList as _0xc650b7,IconFootnote as _0x5ec169,IconPlay as _0x11289c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x38ad7c,View as _0x5846f6}from'@ckeditor/ckeditor5-ui/dist/index.js';class O extends _0x377714{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x275fd5){super(_0x275fd5),this['_allowedCommands']=null;}['afterInit'](){const _0x2b7bb1=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x2fe771=function(_0x4f4319){let _0x244e30=['heading4','heading5','heading6'];if(_0x4f4319){const _0x1f8b9a=_0x4f4319['map'](_0x3e5d57=>_0x3e5d57['model']);_0x244e30=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x1a36cf=>!_0x1f8b9a['includes'](_0x1a36cf));}return _0x244e30;}(this['editor']['config']['get']('heading.options'));let _0x4f26b3=this['getDefaultCommands']()['filter'](_0x3d116e=>!_0x2fe771['includes'](_0x3d116e['id']))['filter'](_0x7f8c2c=>!_0x2b7bb1['includes'](_0x7f8c2c['commandName']));const _0x43f444=this['editor']['config']['get']('slashCommand.extraCommands');_0x43f444&&_0x43f444['length']&&(_0x4f26b3=_0x4f26b3['concat'](_0x43f444));const _0x31d1c2=this['editor']['config']['get']('template.definitions');_0x31d1c2&&_0x31d1c2['length']&&(_0x4f26b3=_0x4f26b3['concat'](function(_0x22a296){return _0x22a296['map'](_0x2f316e=>{const {title:_0x443e93,icon:_0x19ddcc,description:_0x5ada1a,data:_0x2fc493}=_0x2f316e,_0x580c7a={'id':K(_0x443e93,'template'),'commandName':'insertTemplate','execute':_0x4d5a42=>{_0x4d5a42['execute']('insertTemplate',_0x2fc493);},'description':_0x5ada1a,'icon':_0x19ddcc,'title':_0x443e93};return _0x19ddcc&&(_0x580c7a['isIconColorInherited']=!0x1),_0x580c7a;});}(_0x31d1c2)));const _0x4eb1e6=this['editor']['config']['get']('style.definitions');_0x4eb1e6&&_0x4eb1e6['length']&&(_0x4f26b3=_0x4f26b3['concat'](function(_0x17cda9){return _0x17cda9['map'](_0x238597=>({'id':K(_0x238597['name'],'style'),'commandName':'style','execute':_0x3d7b00=>{_0x3d7b00['execute']('style',{'styleName':_0x238597['name']});},'isEnabled':_0x4c6c1e=>{const _0x101577=_0x4c6c1e['commands']['get']('style');return _0x101577['isEnabled']&&_0x101577['enabledStyles']['includes'](_0x238597['name']);},'title':_0x238597['name']}));}(_0x4eb1e6)));const _0x535a72=_0x4f26b3['filter'](_0x4e4a6b=>!_0x4e4a6b['commandName']||void 0x0!==this['editor']['commands']['get'](_0x4e4a6b['commandName'])),_0x381c5a=[];for(const _0x33b030 of _0x535a72)_0x381c5a['push']({'id':_0x33b030['id'],'commandName':_0x33b030['commandName'],'title':'function'==typeof _0x33b030['title']?_0x33b030['title'](this['editor']):_0x33b030['title'],'description':_0x33b030['description'],'icon':_0x33b030['icon'],'isIconColorInherited':_0x33b030['isIconColorInherited'],'aliases':_0x33b030['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x33b030),'execute':()=>this['_proxyExecute'](_0x33b030)});this['_allowedCommands']=_0x381c5a['sort'](M),async function(_0x4f4a14){const _0x1460f4=_0x51326c([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]),_0x563ce2=0x305505ed,_0x466f44=0x30528c7d^_0x563ce2,_0x32c2a7=window[_0x51326c([0x44,0x61,0x74,0x65])][_0x51326c([0x6e,0x6f,0x77])](),_0x5811b0=_0x4f4a14[_0x51326c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x32f0f5=new window[(_0x51326c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x483a17=>{_0x5811b0[_0x51326c([0x6f,0x6e,0x63,0x65])](_0x51326c([0x72,0x65,0x61,0x64,0x79]),_0x483a17);}),_0x265226={[_0x51326c([0x6b,0x74,0x79])]:_0x51326c([0x45,0x43]),[_0x51326c([0x75,0x73,0x65])]:_0x51326c([0x73,0x69,0x67]),[_0x51326c([0x63,0x72,0x76])]:_0x51326c([0x50,0x2d,0x32,0x35,0x36]),[_0x51326c([0x78])]:_0x51326c([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]),[_0x51326c([0x79])]:_0x51326c([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]),[_0x51326c([0x61,0x6c,0x67])]:_0x51326c([0x45,0x53,0x32,0x35,0x36])},_0x579a4c=_0x5811b0[_0x51326c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51326c([0x67,0x65,0x74])](_0x51326c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5be340(){let _0x155be3,_0x2779c4=null,_0x266d9b=null;try{if(_0x579a4c==_0x51326c([0x47,0x50,0x4c]))return _0x51326c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x155be3=_0x2e04cf(),!_0x155be3)return _0x51326c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x155be3[_0x51326c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x266d9b=_0xb0c379(_0x155be3[_0x51326c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x155be3[_0x51326c([0x6a,0x74,0x69])])),await _0x4243d5()?_0x445810()?_0x3d26ff()?_0x51326c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x183d53()?(_0x155be3[_0x51326c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51326c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2779c4=_0x50bda2(_0x51326c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x495460()):_0x51326c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51326c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51326c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51326c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d26ff(){const _0x3204ca=[_0x51326c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51326c([0x74,0x72,0x69,0x61,0x6c])][_0x51326c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x155be3[_0x51326c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32c2a7/0x3e8:0xe10*_0x466f44;return _0x155be3[_0x51326c([0x65,0x78,0x70])]<_0x3204ca;}function _0x445810(){const _0x14578f=_0x155be3[_0x51326c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x14578f&&(!!_0x14578f[_0x51326c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51326c([0x2a]))||(!!_0x14578f[_0x51326c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51326c([0x53,0x43]))||(!!_0x14578f[_0x51326c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51326c([0x50,0x50]))||!(!_0x14578f[_0x51326c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51326c([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x2068a8()))));}function _0x183d53(){const _0x497a27=_0x155be3[_0x51326c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x497a27||0x0==_0x497a27[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59bc2b}=new URL(window[_0x51326c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x497a27[_0x51326c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59bc2b))return!0x0;const _0x19bce5=_0x59bc2b[_0x51326c([0x73,0x70,0x6c,0x69,0x74])](_0x51326c([0x2e]));return _0x497a27[_0x51326c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x444e00=>_0x444e00[_0x51326c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51326c([0x2a])))[_0x51326c([0x6d,0x61,0x70])](_0x33fcb1=>_0x33fcb1[_0x51326c([0x73,0x70,0x6c,0x69,0x74])](_0x51326c([0x2e])))[_0x51326c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4254d9=>_0x4254d9[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x19bce5[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51326c([0x6d,0x61,0x70])](_0x5c204a=>Array(_0x19bce5[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c204a[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51326c([0x66,0x69,0x6c,0x6c])](_0x5c204a[0x0]===_0x51326c([0x2a])?_0x51326c([0x2a]):'')[_0x51326c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c204a))[_0x51326c([0x73,0x6f,0x6d,0x65])](_0x188ac4=>_0x19bce5[_0x51326c([0x65,0x76,0x65,0x72,0x79])]((_0x431d6b,_0x58c1a4)=>_0x188ac4[_0x58c1a4]===_0x431d6b||_0x188ac4[_0x58c1a4]===_0x51326c([0x2a])));}function _0x495460(){return _0x2779c4&&_0x266d9b?new window[(_0x51326c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x498d8b,_0x239402)=>{_0x2779c4[_0x51326c([0x74,0x68,0x65,0x6e])](_0x498d8b,_0x239402),_0x266d9b[_0x51326c([0x74,0x68,0x65,0x6e])](_0x588248=>{_0x588248!=_0x51326c([0x56,0x61,0x6c,0x69,0x64])&&_0x498d8b(_0x588248);},_0x239402);}):_0x2779c4||_0x266d9b||_0x51326c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb0c379(_0x9cd618,_0x10ca5a){return new window[(_0x51326c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x133cf6=>{if(_0x22c8d3())return _0x133cf6(_0x51326c([0x56,0x61,0x6c,0x69,0x64]));_0x290434(),_0x5811b0[_0x51326c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51326c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13656e=!0x1;const _0x156320=_0x5240cd();function _0x6f6172(_0x3aa740){return!!_0x3aa740&&(typeof _0x3aa740===_0x51326c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3aa740===_0x51326c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3aa740[_0x51326c([0x74,0x68,0x65,0x6e])]===_0x51326c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3aa740[_0x51326c([0x63,0x61,0x74,0x63,0x68])]===_0x51326c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18d605(_0x5073d6){_0x433b0a(_0x5073d6)[_0x51326c([0x74,0x68,0x65,0x6e])](_0x546bda=>{if(!_0x546bda||_0x546bda[_0x51326c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51326c([0x6f,0x6b]))return _0x51326c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x271ab9(_0x304b84(_0x156320+_0x10ca5a))!=_0x546bda[_0x51326c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51326c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51326c([0x56,0x61,0x6c,0x69,0x64]);})[_0x51326c([0x74,0x68,0x65,0x6e])](_0x396a32=>(_0x1fa14f(),_0x396a32),()=>{const _0x5970a3=_0x128dbb();return null==_0x5970a3?(_0x1fa14f(),_0x51326c([0x56,0x61,0x6c,0x69,0x64])):_0x51326c(_0x32c2a7-_0x5970a3>(0x145981ed^_0x563ce2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51326c([0x74,0x68,0x65,0x6e])](_0x133cf6)[_0x51326c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x133cf6(_0x51326c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12d11d=0x3063eb6d^_0x563ce2;function _0x1fa14f(){const _0x5b5f51=_0x51326c([0x6c,0x6c,0x63,0x74,0x2d])+_0x271ab9(_0x304b84(_0x9cd618)),_0x280330=_0x1ac33e(_0x271ab9(window[_0x51326c([0x4d,0x61,0x74,0x68])][_0x51326c([0x63,0x65,0x69,0x6c])](_0x32c2a7/_0x12d11d)));window[_0x51326c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51326c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b5f51,_0x280330);}function _0x128dbb(){const _0x226781=_0x51326c([0x6c,0x6c,0x63,0x74,0x2d])+_0x271ab9(_0x304b84(_0x9cd618)),_0x37c086=window[_0x51326c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51326c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x226781);return _0x37c086?window[_0x51326c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ac33e(_0x37c086),0x10)*_0x12d11d:null;}function _0x433b0a(_0x990e85){return new window[(_0x51326c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18b1a2,_0x57a131)=>{_0x990e85[_0x51326c([0x74,0x68,0x65,0x6e])](_0x18b1a2,_0x57a131),window[_0x51326c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x57a131,0x3054d12d^_0x563ce2);});}}_0x5811b0[_0x51326c([0x6f,0x6e])](_0x51326c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ee580,_0x3cfe3d)=>{if(_0x3cfe3d[0x0]!=_0x9cd618)return _0x133cf6(_0x51326c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3cfe3d[0x1]={..._0x3cfe3d[0x1],[_0x51326c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x156320};},{[_0x51326c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51326c([0x68,0x69,0x67,0x68])}),_0x5811b0[_0x51326c([0x6f,0x6e])](_0x51326c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e6222=>{_0x6f6172(_0x5e6222[_0x51326c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13656e=!0x0,_0x18d605(_0x5e6222[_0x51326c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51326c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51326c([0x6c,0x6f,0x77])}),_0x32f0f5[_0x51326c([0x74,0x68,0x65,0x6e])](()=>{_0x13656e||_0x133cf6(_0x51326c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x22c8d3(){return _0x5811b0[_0x51326c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51326c([0x76,0x69,0x65,0x77])][_0x51326c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51326c([0x61,0x75,0x74,0x6f]);}function _0x290434(){_0x5811b0[_0x51326c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51326c([0x76,0x69,0x65,0x77])][_0x51326c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51326c([0x61,0x75,0x74,0x6f]);}}function _0x50bda2(_0x1b5811){const _0x528d6c=[new window[(_0x51326c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x502a6b=>setTimeout(_0x502a6b,0x305c3b21^_0x563ce2)),_0x32f0f5[_0x51326c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51326c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x517931=>{let _0x303235=0x0;_0x5811b0[_0x51326c([0x6d,0x6f,0x64,0x65,0x6c])][_0x51326c([0x6f,0x6e])](_0x51326c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x37c2be,_0x3519ec)=>{_0x3519ec[0x0][_0x51326c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x303235++,_0x303235==(0x30550005^_0x563ce2)&&(_0x517931(),_0x37c2be[_0x51326c([0x6f,0x66,0x66])]());});}))];return window[_0x51326c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51326c([0x72,0x61,0x63,0x65])](_0x528d6c)[_0x51326c([0x74,0x68,0x65,0x6e])](()=>_0x1b5811);}async function _0x4f2dd6(){await _0x32f0f5,_0x5811b0[_0x51326c([0x6d,0x6f,0x64,0x65,0x6c])][_0x51326c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51c6b8,_0x5811b0[_0x51326c([0x6d,0x6f,0x64,0x65,0x6c])][_0x51326c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51c6b8,_0x5811b0[_0x51326c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51326c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2068a8(){return window[_0x51326c([0x67,0x6c,0x6f,0x62])]&&window[_0x51326c([0x67,0x6c,0x6f,0x62])][_0x51326c([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x380e7a(_0x519598){const _0x3800eb=_0x328ea3();_0x5811b0[_0x3800eb]=_0x51326c([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x519598,_0x519598!=_0x51326c([0x56,0x61,0x6c,0x69,0x64])&&_0x4f2dd6();}function _0x328ea3(){const _0x54b932=window[_0x51326c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51326c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51326c([0x6e,0x6f,0x77])]())[_0x51326c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51326c([0x2e]),'');let _0x100e7a=_0x51326c([0x75]);for(let _0x509f40=0x0;_0x509f40<_0x54b932[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x509f40+=0x2){let _0x205d89=window[_0x51326c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54b932[_0x51326c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x509f40,_0x509f40+0x2));_0x205d89>=_0x1460f4[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x205d89-=_0x1460f4[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x100e7a+=_0x1460f4[_0x205d89];}return _0x100e7a;}function _0x2e04cf(){const _0x49e9f5=_0x579a4c[_0x51326c([0x73,0x70,0x6c,0x69,0x74])](_0x51326c([0x2e]));if(0x3!=_0x49e9f5[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a96ab(_0x49e9f5[0x1]);function _0x5a96ab(_0x253c82){const _0x599181=_0x34ab6d(_0x253c82);return _0x599181&&_0x1ddc85()?_0x599181:null;function _0x1ddc85(){const _0x166a9d=_0x599181[_0x51326c([0x6a,0x74,0x69])],_0x3c4bfa=window[_0x51326c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x166a9d[_0x51326c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x166a9d[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x29e431={..._0x599181,[_0x51326c([0x6a,0x74,0x69])]:_0x166a9d[_0x51326c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x166a9d[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x29e431[_0x51326c([0x76,0x63])],_0x304b84(_0x29e431)==_0x3c4bfa;}}}async function _0x4243d5(){let _0x15f2d8=!0x0;try{const _0x45ef92=_0x579a4c[_0x51326c([0x73,0x70,0x6c,0x69,0x74])](_0x51326c([0x2e])),[_0x646f5b,_0x1c79b1,_0x33ba8b]=_0x45ef92;return _0x513cfa(_0x646f5b),await _0x32fd6e(_0x646f5b,_0x1c79b1,_0x33ba8b),_0x15f2d8;}catch{return!0x1;}function _0x513cfa(_0x31c075){const _0x87e1a0=_0x34ab6d(_0x31c075);_0x87e1a0&&_0x87e1a0[_0x51326c([0x61,0x6c,0x67])]==_0x51326c([0x45,0x53,0x32,0x35,0x36])||(_0x15f2d8=!0x1);}async function _0x32fd6e(_0x3a5ad2,_0x3e20b9,_0xda92b8){const _0x20f5e6=window[_0x51326c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51326c([0x66,0x72,0x6f,0x6d])](_0x53dd3d(_0xda92b8),_0x7f7189=>_0x7f7189[_0x51326c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x17ad2d=new window[(_0x51326c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51326c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a5ad2+_0x51326c([0x2e])+_0x3e20b9),_0x345864=window[_0x51326c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51326c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x345864)return;const _0x3aef12=await _0x345864[_0x51326c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51326c([0x6a,0x77,0x6b]),_0x265226,{[_0x51326c([0x6e,0x61,0x6d,0x65])]:_0x51326c([0x45,0x43,0x44,0x53,0x41]),[_0x51326c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51326c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51326c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x345864[_0x51326c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51326c([0x6e,0x61,0x6d,0x65])]:_0x51326c([0x45,0x43,0x44,0x53,0x41]),[_0x51326c([0x68,0x61,0x73,0x68])]:{[_0x51326c([0x6e,0x61,0x6d,0x65])]:_0x51326c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3aef12,_0x20f5e6,_0x17ad2d)||(_0x15f2d8=!0x1);}}function _0x34ab6d(_0x1ef6c7){return _0x1ef6c7[_0x51326c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51326c([0x65,0x79]))?JSON[_0x51326c([0x70,0x61,0x72,0x73,0x65])](_0x53dd3d(_0x1ef6c7)):null;}function _0x53dd3d(_0x2d7abe){return window[_0x51326c([0x61,0x74,0x6f,0x62])](_0x2d7abe[_0x51326c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51326c([0x2b]))[_0x51326c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51326c([0x2f])));}function _0x304b84(_0x2890e3){let _0x4703d6=0x1505;function _0x2a8c90(_0xf6c2ae){for(let _0x18c4d1=0x0;_0x18c4d1<_0xf6c2ae[_0x51326c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18c4d1++){const _0xf4168c=_0xf6c2ae[_0x51326c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18c4d1);_0x4703d6=(_0x4703d6<<0x5)+_0x4703d6+_0xf4168c,_0x4703d6&=_0x4703d6;}}function _0x84efac(_0x4a2e21){Array[_0x51326c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a2e21)?_0x4a2e21[_0x51326c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x84efac):_0x4a2e21&&typeof _0x4a2e21==_0x51326c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51326c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a2e21)[_0x51326c([0x73,0x6f,0x72,0x74])]()[_0x51326c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6da5ae,_0x2cfad1])=>{_0x2a8c90(_0x6da5ae),_0x84efac(_0x2cfad1);}):_0x2a8c90(window[_0x51326c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a2e21));}return _0x84efac(_0x2890e3),_0x4703d6>>>0x0;}function _0x271ab9(_0x300665){return _0x300665[_0x51326c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51326c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51326c([0x30]));}function _0x1ac33e(_0x517d3d){return _0x517d3d[_0x51326c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51326c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51326c([0x6a,0x6f,0x69,0x6e])]('');}function _0x51c6b8(){}function _0x51326c(_0x2a3f05){return _0x2a3f05['map'](_0x51d33d=>String['fromCharCode'](_0x51d33d))['join']('');}_0x380e7a(await _0x5be340());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x8669fe=_0x353592=>function(_0x25e79f,_0x2ae374){const t=_0x25e79f['t'],_0x4ff7af=_0x25e79f['t'];switch(_0x2ae374){case'AI\x20Assistant':return _0x4ff7af('AI\x20Assistant');case'Block\x20quote':return _0x4ff7af('Block\x20quote');case'Bulleted\x20List':return _0x4ff7af('Bulleted\x20List');case'Insert\x20code\x20block':return _0x4ff7af('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x4ff7af('Open\x20file\x20manager');case'Insert\x20image':return _0x4ff7af('Insert\x20image');case'Heading\x201':return _0x4ff7af('Heading\x201');case'Heading\x202':return _0x4ff7af('Heading\x202');case'Heading\x203':return _0x4ff7af('Heading\x203');case'Heading\x204':return _0x4ff7af('Heading\x204');case'Heading\x205':return _0x4ff7af('Heading\x205');case'Heading\x206':return _0x4ff7af('Heading\x206');case'Horizontal\x20line':return _0x4ff7af('Horizontal\x20line');case'Insert\x20HTML':return _0x4ff7af('Insert\x20HTML');case'Increase\x20indent':return _0x4ff7af('Increase\x20indent');case'Insert\x20table':return _0x4ff7af('Insert\x20table');case'Table\x20of\x20contents':return _0x4ff7af('Table\x20of\x20contents');case'Numbered\x20List':return _0x4ff7af('Numbered\x20List');case'Decrease\x20indent':return _0x4ff7af('Decrease\x20indent');case'Paragraph':return _0x4ff7af('Paragraph');case'To-do\x20List':return _0x4ff7af('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 _0x2ae374;}}(this['editor']['locale'],_0x353592);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x24ed29,'title':_0x8669fe('AI\x20Assistant'),'description':_0x8669fe('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x3a5dc4=>{setTimeout(()=>_0x3a5dc4['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x39df87,'title':_0x8669fe('Block\x20quote'),'description':_0x8669fe('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x4a3ec8,'title':_0x8669fe('Bulleted\x20List'),'description':_0x8669fe('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x3a1f23,'title':_0x8669fe('Insert\x20code\x20block'),'description':_0x8669fe('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x26e66b,'title':_0x8669fe('Open\x20file\x20manager'),'description':_0x8669fe('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x26e66b,'title':_0x8669fe('Insert\x20image'),'description':_0x8669fe('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x1e03d7,'title':_0x8669fe('Emoji'),'description':_0x8669fe('Insert\x20an\x20emoji'),'execute':_0x20066d=>{setTimeout(()=>_0x20066d['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x1608ab,'title':_0x8669fe('Heading\x201'),'description':_0x8669fe('Create\x20a\x20heading\x20level\x201'),'execute':_0x51cd66=>{_0x51cd66['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x32b7f0,'title':_0x8669fe('Heading\x202'),'description':_0x8669fe('Create\x20a\x20heading\x20level\x202'),'execute':_0x539c2c=>{_0x539c2c['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x3fde66,'title':_0x8669fe('Heading\x203'),'description':_0x8669fe('Create\x20a\x20heading\x20level\x203'),'execute':_0x166df1=>{_0x166df1['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x4b5392,'title':_0x8669fe('Heading\x204'),'description':_0x8669fe('Create\x20a\x20heading\x20level\x204'),'execute':_0x1004d1=>{_0x1004d1['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x3566b7,'title':_0x8669fe('Heading\x205'),'description':_0x8669fe('Create\x20a\x20heading\x20level\x205'),'execute':_0x4ad36f=>{_0x4ad36f['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x38d96e,'title':_0x8669fe('Heading\x206'),'description':_0x8669fe('Create\x20a\x20heading\x20level\x206'),'execute':_0x33851a=>{_0x33851a['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0xebf0b0,'title':_0x8669fe('Horizontal\x20line'),'description':_0x8669fe('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x3d33f4,'title':_0x8669fe('Insert\x20HTML'),'description':_0x8669fe('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x349f10,'title':_0x8669fe('Increase\x20indent'),'description':_0x8669fe('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x8669fe('Insert\x20Mermaid\x20diagram'),'description':_0x8669fe('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x21dd23,'title':_0x8669fe('Insert\x20table'),'description':_0x8669fe('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x232b99,'title':_0x8669fe('Table\x20of\x20contents'),'description':_0x8669fe('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x3d0944,'title':_0x8669fe('Numbered\x20List'),'description':_0x8669fe('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x4dddcc,'title':_0x8669fe('Decrease\x20indent'),'description':_0x8669fe('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x536969,'title':_0x8669fe('Paragraph'),'description':_0x8669fe('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0xc650b7,'title':_0x8669fe('To-do\x20List'),'description':_0x8669fe('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x5ec169,'title':_0x8669fe('Footnote'),'description':_0x8669fe('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x23b6f7){return _0x23b6f7['isEnabled']?_0x23b6f7['isEnabled'](this['editor']):!_0x23b6f7['commandName']||this['editor']['commands']['get'](_0x23b6f7['commandName'])['isEnabled'];}['_proxyExecute'](_0x509ffe){if(_0x509ffe['execute'])_0x509ffe['execute'](this['editor']);else{if(!_0x509ffe['commandName'])throw new _0x17db41('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x509ffe});this['editor']['execute'](_0x509ffe['commandName']);}}}function M(_0x277ef0,_0x4b5c45){return _0x277ef0['title']<_0x4b5c45['title']?-0x1:_0x277ef0['title']>_0x4b5c45['title']?0x1:0x0;}function K(_0x5a2eab,_0x401b46){return _0x401b46+'-'+_0x5a2eab['toLowerCase']()['split']('\x20')['join']('-');}class P extends _0x377714{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x127745){const _0x1413b6=_0x127745&&_0x127745['toLowerCase']();let _0x5c04b5=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x5c04b5=_0x5c04b5['filter'](_0x4b26e5=>_0x4b26e5['isEnabled']()),_0x1413b6){const _0x3a7db0=[],_0x3ae5e1=[],_0x25267d=[],_0x4a2bdb=[];for(const _0x5cf4f8 of _0x5c04b5)_0x5cf4f8['id']['toLowerCase']()['includes'](_0x1413b6)?_0x3a7db0['push'](_0x5cf4f8):_0x5cf4f8['title']['toLowerCase']()['includes'](_0x1413b6)?_0x3ae5e1['push'](_0x5cf4f8):_0x5cf4f8['aliases']&&_0x5cf4f8['aliases']['some'](_0x2e1dfd=>_0x2e1dfd['toLowerCase']()['includes'](_0x1413b6))?_0x25267d['push'](_0x5cf4f8):_0x5cf4f8['description']&&_0x5cf4f8['description']['toLowerCase']()['includes'](_0x1413b6)&&_0x4a2bdb['push'](_0x5cf4f8);_0x5c04b5=_0x3a7db0['concat'](_0x3ae5e1,_0x25267d,_0x4a2bdb);}return _0x5c04b5;}}class E extends _0x38ad7c{constructor(_0x4f2ee6,_0x1575dd){super(_0x4f2ee6),this['textPartView']=this['_createTextPartView'](_0x4f2ee6,_0x1575dd),void 0x0!==_0x1575dd['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x1575dd['isIconColorInherited']),this['set']({'icon':_0x1575dd['icon']||_0x11289c,'withText':!0x0,'label':_0x1575dd['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x53a14b,_0x4c0fff){const _0x169554=new _0x5846f6(_0x53a14b);return _0x169554['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x4c0fff['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x4c0fff['description']}]}]:[this['labelView']]}),_0x169554;}}class j extends _0x377714{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d6909){super(_0x1d6909),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x475e9e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5df5b7;for(const _0x17c31d in _0x475e9e){const _0xee3205=_0x17c31d,_0x7693fc=_0x475e9e[_0xee3205];if('slashCommandLicenseKeyValid'==_0x7693fc||'slashCommandLicenseKeyInvalid'==_0x7693fc||'slashCommandLicenseKeyExpired'==_0x7693fc||'slashCommandLicenseKeyDomainLimit'==_0x7693fc||'slashCommandLicenseKeyNotAllowed'==_0x7693fc||'slashCommandLicenseKeyEvaluationLimit'==_0x7693fc||'slashCommandLicenseKeyUsageLimit'==_0x7693fc){delete _0x475e9e[_0xee3205],_0x5df5b7=_0x7693fc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x5df5b7&&_0x475e9e['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x5df5b7&&_0x475e9e['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x5df5b7&&_0x475e9e['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x5df5b7&&_0x475e9e['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x5df5b7&&_0x475e9e['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x5df5b7&&_0x475e9e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x3da8b3=this['editor'],_0xfbece7=this['editor']['plugins']['get']('SlashCommandEditing'),_0x51d532=_0x3da8b3['config']['get']('mention.feeds');_0x51d532['push']({'marker':'/','feed':_0x2a330e=>_0xfbece7['getMatchingCommands'](_0x2a330e),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x3da8b3['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x3da8b3['config']['set']('mention.feeds',_0x51d532);}['_overrideMentionExecuteListener'](){const _0x4f968f=this['editor'];_0x4f968f['commands']['get']('mention')['on']('execute',(_0x584aec,_0xa87e67)=>{const _0xc2f725=_0xa87e67[0x0],_0x70c9db=_0x4f968f['model'];'/'===_0xc2f725['marker']&&_0x70c9db['change'](_0x43dc74=>{_0x43dc74['remove'](_0xc2f725['range']),_0xc2f725['mention']['execute'](),_0x584aec['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x3a8979){const _0x400a28=this['editor']['locale'],_0x4c033f=new E(_0x400a28,_0x3a8979);return _0x4c033f['render'](),_0x4c033f['element'];}}class _ extends _0x377714{static get['requires'](){return[_0x50c706,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 _0x4a0ab0}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x1a3b59}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x217e75,uid as _0x14c24a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x5459f3,IconQuote as _0x37662d,IconBulletedList as _0x21a13f,IconCodeBlock as _0x1a8c29,IconBrowseFiles as _0x111eb1,IconEmoji as _0x2f645a,IconHeading1 as _0x33e747,IconHeading2 as _0x401735,IconHeading3 as _0x48f83b,IconHeading4 as _0x1b5893,IconHeading5 as _0x3fda44,IconHeading6 as _0x1152b9,IconHorizontalLine as _0x3b6e45,IconHtml as _0x2c63f2,IconIndent as _0x1b2fad,IconTable as _0x4851ad,IconTableOfContents as _0x258b91,IconNumberedList as _0x4e949b,IconOutdent as _0x1564ae,IconParagraph as _0x3bf7c3,IconTodoList as _0x542bb7,IconFootnote as _0x28d2cb,IconPlay as _0x3acd6f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x440000,View as _0x4fae20}from'@ckeditor/ckeditor5-ui/dist/index.js';class O extends _0x4a0ab0{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x490ab4){super(_0x490ab4),this['_allowedCommands']=null;}['afterInit'](){const _0x49d607=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x92ead=function(_0x3501da){let _0x30fe95=['heading4','heading5','heading6'];if(_0x3501da){const _0x2e9854=_0x3501da['map'](_0x445567=>_0x445567['model']);_0x30fe95=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x41250a=>!_0x2e9854['includes'](_0x41250a));}return _0x30fe95;}(this['editor']['config']['get']('heading.options'));let _0x13232f=this['getDefaultCommands']()['filter'](_0x46286f=>!_0x92ead['includes'](_0x46286f['id']))['filter'](_0x1e9343=>!_0x49d607['includes'](_0x1e9343['commandName']));const _0x412680=this['editor']['config']['get']('slashCommand.extraCommands');_0x412680&&_0x412680['length']&&(_0x13232f=_0x13232f['concat'](_0x412680));const _0x150ad6=this['editor']['config']['get']('template.definitions');_0x150ad6&&_0x150ad6['length']&&(_0x13232f=_0x13232f['concat'](function(_0x387290){return _0x387290['map'](_0x7adafe=>{const {title:_0x5015d0,icon:_0x3e44d,description:_0xd48ed3,data:_0x4e2211}=_0x7adafe,_0x3b1827={'id':K(_0x5015d0,'template'),'commandName':'insertTemplate','execute':_0x37aab9=>{_0x37aab9['execute']('insertTemplate',_0x4e2211);},'description':_0xd48ed3,'icon':_0x3e44d,'title':_0x5015d0};return _0x3e44d&&(_0x3b1827['isIconColorInherited']=!0x1),_0x3b1827;});}(_0x150ad6)));const _0x509795=this['editor']['config']['get']('style.definitions');_0x509795&&_0x509795['length']&&(_0x13232f=_0x13232f['concat'](function(_0x141b38){return _0x141b38['map'](_0x46bbff=>({'id':K(_0x46bbff['name'],'style'),'commandName':'style','execute':_0xd2d3b1=>{_0xd2d3b1['execute']('style',{'styleName':_0x46bbff['name']});},'isEnabled':_0x4e25a6=>{const _0x3a0177=_0x4e25a6['commands']['get']('style');return _0x3a0177['isEnabled']&&_0x3a0177['enabledStyles']['includes'](_0x46bbff['name']);},'title':_0x46bbff['name']}));}(_0x509795)));const _0x1c2d07=_0x13232f['filter'](_0x73d144=>!_0x73d144['commandName']||void 0x0!==this['editor']['commands']['get'](_0x73d144['commandName'])),_0x4654ba=[];for(const _0x2a9d2f of _0x1c2d07)_0x4654ba['push']({'id':_0x2a9d2f['id'],'commandName':_0x2a9d2f['commandName'],'title':'function'==typeof _0x2a9d2f['title']?_0x2a9d2f['title'](this['editor']):_0x2a9d2f['title'],'description':_0x2a9d2f['description'],'icon':_0x2a9d2f['icon'],'isIconColorInherited':_0x2a9d2f['isIconColorInherited'],'aliases':_0x2a9d2f['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x2a9d2f),'execute':()=>this['_proxyExecute'](_0x2a9d2f)});this['_allowedCommands']=_0x4654ba['sort'](M),async function(_0x461881){const _0x135fb4=_0x349e80([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]),_0x348036=0x305505ed,_0x238c72=0x30528c2d^_0x348036,_0x3e493a=window[_0x349e80([0x44,0x61,0x74,0x65])][_0x349e80([0x6e,0x6f,0x77])](),_0x14ea30=_0x461881[_0x349e80([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x357887=new window[(_0x349e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5af22b=>{_0x14ea30[_0x349e80([0x6f,0x6e,0x63,0x65])](_0x349e80([0x72,0x65,0x61,0x64,0x79]),_0x5af22b);}),_0x5b95c8={[_0x349e80([0x6b,0x74,0x79])]:_0x349e80([0x45,0x43]),[_0x349e80([0x75,0x73,0x65])]:_0x349e80([0x73,0x69,0x67]),[_0x349e80([0x63,0x72,0x76])]:_0x349e80([0x50,0x2d,0x32,0x35,0x36]),[_0x349e80([0x78])]:_0x349e80([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]),[_0x349e80([0x79])]:_0x349e80([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]),[_0x349e80([0x61,0x6c,0x67])]:_0x349e80([0x45,0x53,0x32,0x35,0x36])},_0x24a133=_0x14ea30[_0x349e80([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x349e80([0x67,0x65,0x74])](_0x349e80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34c4c7(){let _0x2931cd,_0x5b3782=null,_0x36a8a3=null;try{if(_0x24a133==_0x349e80([0x47,0x50,0x4c]))return _0x349e80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2931cd=_0x1b44ec(),!_0x2931cd)return _0x349e80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2931cd[_0x349e80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x36a8a3=_0x2d0469(_0x2931cd[_0x349e80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2931cd[_0x349e80([0x6a,0x74,0x69])])),await _0x2e7819()?_0x2deae9()?_0x2cc06()?_0x349e80([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53a364()?(_0x2931cd[_0x349e80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x349e80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b3782=_0x57a7dd(_0x349e80([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xcaab68()):_0x349e80([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x349e80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x349e80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x349e80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2cc06(){const _0x957170=[_0x349e80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x349e80([0x74,0x72,0x69,0x61,0x6c])][_0x349e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2931cd[_0x349e80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e493a/0x3e8:0xe10*_0x238c72;return _0x2931cd[_0x349e80([0x65,0x78,0x70])]<_0x957170;}function _0x2deae9(){const _0xef2a9d=_0x2931cd[_0x349e80([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xef2a9d&&(!!_0xef2a9d[_0x349e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349e80([0x2a]))||(!!_0xef2a9d[_0x349e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349e80([0x53,0x43]))||(!!_0xef2a9d[_0x349e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349e80([0x50,0x50]))||!(!_0xef2a9d[_0x349e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349e80([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x1af03c()))));}function _0x53a364(){const _0x5dda6e=_0x2931cd[_0x349e80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5dda6e||0x0==_0x5dda6e[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x313303}=new URL(window[_0x349e80([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5dda6e[_0x349e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x313303))return!0x0;const _0xb28edd=_0x313303[_0x349e80([0x73,0x70,0x6c,0x69,0x74])](_0x349e80([0x2e]));return _0x5dda6e[_0x349e80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18c9a6=>_0x18c9a6[_0x349e80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349e80([0x2a])))[_0x349e80([0x6d,0x61,0x70])](_0x49c006=>_0x49c006[_0x349e80([0x73,0x70,0x6c,0x69,0x74])](_0x349e80([0x2e])))[_0x349e80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ccc3a=>_0x5ccc3a[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xb28edd[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x349e80([0x6d,0x61,0x70])](_0x22ba33=>Array(_0xb28edd[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22ba33[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x349e80([0x66,0x69,0x6c,0x6c])](_0x22ba33[0x0]===_0x349e80([0x2a])?_0x349e80([0x2a]):'')[_0x349e80([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22ba33))[_0x349e80([0x73,0x6f,0x6d,0x65])](_0x4617d3=>_0xb28edd[_0x349e80([0x65,0x76,0x65,0x72,0x79])]((_0x1fca30,_0x13eb42)=>_0x4617d3[_0x13eb42]===_0x1fca30||_0x4617d3[_0x13eb42]===_0x349e80([0x2a])));}function _0xcaab68(){return _0x5b3782&&_0x36a8a3?new window[(_0x349e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2dc06f,_0x1b4b9b)=>{_0x5b3782[_0x349e80([0x74,0x68,0x65,0x6e])](_0x2dc06f,_0x1b4b9b),_0x36a8a3[_0x349e80([0x74,0x68,0x65,0x6e])](_0x67b963=>{_0x67b963!=_0x349e80([0x56,0x61,0x6c,0x69,0x64])&&_0x2dc06f(_0x67b963);},_0x1b4b9b);}):_0x5b3782||_0x36a8a3||_0x349e80([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d0469(_0x204e11,_0x1f8a73){return new window[(_0x349e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28396f=>{if(_0x2b7d07())return _0x28396f(_0x349e80([0x56,0x61,0x6c,0x69,0x64]));_0x537ddd(),_0x14ea30[_0x349e80([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x349e80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d7c67=!0x1;const _0x1e070c=_0x14c24a();function _0x877b56(_0x9a14d7){return!!_0x9a14d7&&(typeof _0x9a14d7===_0x349e80([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9a14d7===_0x349e80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9a14d7[_0x349e80([0x74,0x68,0x65,0x6e])]===_0x349e80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9a14d7[_0x349e80([0x63,0x61,0x74,0x63,0x68])]===_0x349e80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x197248(_0x1cf56c){_0x3a310e(_0x1cf56c)[_0x349e80([0x74,0x68,0x65,0x6e])](_0x348a29=>{if(!_0x348a29||_0x348a29[_0x349e80([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x349e80([0x6f,0x6b]))return _0x349e80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x156ad5(_0x567ef3(_0x1e070c+_0x1f8a73))!=_0x348a29[_0x349e80([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x349e80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x349e80([0x56,0x61,0x6c,0x69,0x64]);})[_0x349e80([0x74,0x68,0x65,0x6e])](_0x380c81=>(_0x37cab6(),_0x380c81),()=>{const _0x1b63ef=_0x37c23c();return null==_0x1b63ef?(_0x37cab6(),_0x349e80([0x56,0x61,0x6c,0x69,0x64])):_0x349e80(_0x3e493a-_0x1b63ef>(0x145981ed^_0x348036)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x349e80([0x74,0x68,0x65,0x6e])](_0x28396f)[_0x349e80([0x63,0x61,0x74,0x63,0x68])](()=>{_0x28396f(_0x349e80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x207eb2=0x3063eb6d^_0x348036;function _0x37cab6(){const _0xf99b15=_0x349e80([0x6c,0x6c,0x63,0x74,0x2d])+_0x156ad5(_0x567ef3(_0x204e11)),_0x28db64=_0x6be8ac(_0x156ad5(window[_0x349e80([0x4d,0x61,0x74,0x68])][_0x349e80([0x63,0x65,0x69,0x6c])](_0x3e493a/_0x207eb2)));window[_0x349e80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x349e80([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf99b15,_0x28db64);}function _0x37c23c(){const _0x42779b=_0x349e80([0x6c,0x6c,0x63,0x74,0x2d])+_0x156ad5(_0x567ef3(_0x204e11)),_0x289302=window[_0x349e80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x349e80([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42779b);return _0x289302?window[_0x349e80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6be8ac(_0x289302),0x10)*_0x207eb2:null;}function _0x3a310e(_0x12ed5e){return new window[(_0x349e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25e51f,_0x50a186)=>{_0x12ed5e[_0x349e80([0x74,0x68,0x65,0x6e])](_0x25e51f,_0x50a186),window[_0x349e80([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50a186,0x3054d12d^_0x348036);});}}_0x14ea30[_0x349e80([0x6f,0x6e])](_0x349e80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5cb9d4,_0x1873a4)=>{if(_0x1873a4[0x0]!=_0x204e11)return _0x28396f(_0x349e80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1873a4[0x1]={..._0x1873a4[0x1],[_0x349e80([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e070c};},{[_0x349e80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x349e80([0x68,0x69,0x67,0x68])}),_0x14ea30[_0x349e80([0x6f,0x6e])](_0x349e80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb751ea=>{_0x877b56(_0xb751ea[_0x349e80([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d7c67=!0x0,_0x197248(_0xb751ea[_0x349e80([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x349e80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x349e80([0x6c,0x6f,0x77])}),_0x357887[_0x349e80([0x74,0x68,0x65,0x6e])](()=>{_0x2d7c67||_0x28396f(_0x349e80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b7d07(){return _0x14ea30[_0x349e80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x349e80([0x76,0x69,0x65,0x77])][_0x349e80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x349e80([0x61,0x75,0x74,0x6f]);}function _0x537ddd(){_0x14ea30[_0x349e80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x349e80([0x76,0x69,0x65,0x77])][_0x349e80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x349e80([0x61,0x75,0x74,0x6f]);}}function _0x57a7dd(_0x51a996){const _0x5afe78=[new window[(_0x349e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x211ff6=>setTimeout(_0x211ff6,0x305c3b21^_0x348036)),_0x357887[_0x349e80([0x74,0x68,0x65,0x6e])](()=>new window[(_0x349e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4537f6=>{let _0x39a6eb=0x0;_0x14ea30[_0x349e80([0x6d,0x6f,0x64,0x65,0x6c])][_0x349e80([0x6f,0x6e])](_0x349e80([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x740b1a,_0x1cd312)=>{_0x1cd312[0x0][_0x349e80([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39a6eb++,_0x39a6eb==(0x30550005^_0x348036)&&(_0x4537f6(),_0x740b1a[_0x349e80([0x6f,0x66,0x66])]());});}))];return window[_0x349e80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x349e80([0x72,0x61,0x63,0x65])](_0x5afe78)[_0x349e80([0x74,0x68,0x65,0x6e])](()=>_0x51a996);}async function _0x5141ac(){await _0x357887,_0x14ea30[_0x349e80([0x6d,0x6f,0x64,0x65,0x6c])][_0x349e80([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51c9eb,_0x14ea30[_0x349e80([0x6d,0x6f,0x64,0x65,0x6c])][_0x349e80([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51c9eb,_0x14ea30[_0x349e80([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x349e80([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1af03c(){return window[_0x349e80([0x67,0x6c,0x6f,0x62])]&&window[_0x349e80([0x67,0x6c,0x6f,0x62])][_0x349e80([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1becd7(_0x2601b2){const _0x42d075=_0x4dc37e();_0x14ea30[_0x42d075]=_0x349e80([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2601b2,_0x2601b2!=_0x349e80([0x56,0x61,0x6c,0x69,0x64])&&_0x5141ac();}function _0x4dc37e(){const _0x183ab7=window[_0x349e80([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x349e80([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x349e80([0x6e,0x6f,0x77])]())[_0x349e80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x349e80([0x2e]),'');let _0xf872a9=_0x349e80([0x75]);for(let _0x2492bd=0x0;_0x2492bd<_0x183ab7[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2492bd+=0x2){let _0x1e7bea=window[_0x349e80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x183ab7[_0x349e80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2492bd,_0x2492bd+0x2));_0x1e7bea>=_0x135fb4[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e7bea-=_0x135fb4[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf872a9+=_0x135fb4[_0x1e7bea];}return _0xf872a9;}function _0x1b44ec(){const _0x4f5548=_0x24a133[_0x349e80([0x73,0x70,0x6c,0x69,0x74])](_0x349e80([0x2e]));if(0x3!=_0x4f5548[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ecfad(_0x4f5548[0x1]);function _0x1ecfad(_0x3406e3){const _0x495a22=_0x54278e(_0x3406e3);return _0x495a22&&_0x5237a9()?_0x495a22:null;function _0x5237a9(){const _0x2ccb5f=_0x495a22[_0x349e80([0x6a,0x74,0x69])],_0x5b29eb=window[_0x349e80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ccb5f[_0x349e80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ccb5f[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1dfd99={..._0x495a22,[_0x349e80([0x6a,0x74,0x69])]:_0x2ccb5f[_0x349e80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ccb5f[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1dfd99[_0x349e80([0x76,0x63])],_0x567ef3(_0x1dfd99)==_0x5b29eb;}}}async function _0x2e7819(){let _0x490139=!0x0;try{const _0x3d4e60=_0x24a133[_0x349e80([0x73,0x70,0x6c,0x69,0x74])](_0x349e80([0x2e])),[_0x4ed6aa,_0x3d1ee4,_0x22694c]=_0x3d4e60;return _0x376446(_0x4ed6aa),await _0x11c30b(_0x4ed6aa,_0x3d1ee4,_0x22694c),_0x490139;}catch{return!0x1;}function _0x376446(_0x505d5c){const _0xecac13=_0x54278e(_0x505d5c);_0xecac13&&_0xecac13[_0x349e80([0x61,0x6c,0x67])]==_0x349e80([0x45,0x53,0x32,0x35,0x36])||(_0x490139=!0x1);}async function _0x11c30b(_0x30dcd3,_0x3eb6c4,_0x62ab97){const _0x1aea47=window[_0x349e80([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x349e80([0x66,0x72,0x6f,0x6d])](_0x12ec2a(_0x62ab97),_0x5c461c=>_0x5c461c[_0x349e80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fa1dc=new window[(_0x349e80([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x349e80([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30dcd3+_0x349e80([0x2e])+_0x3eb6c4),_0x2d2105=window[_0x349e80([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x349e80([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d2105)return;const _0x30c184=await _0x2d2105[_0x349e80([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x349e80([0x6a,0x77,0x6b]),_0x5b95c8,{[_0x349e80([0x6e,0x61,0x6d,0x65])]:_0x349e80([0x45,0x43,0x44,0x53,0x41]),[_0x349e80([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x349e80([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x349e80([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d2105[_0x349e80([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x349e80([0x6e,0x61,0x6d,0x65])]:_0x349e80([0x45,0x43,0x44,0x53,0x41]),[_0x349e80([0x68,0x61,0x73,0x68])]:{[_0x349e80([0x6e,0x61,0x6d,0x65])]:_0x349e80([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30c184,_0x1aea47,_0x2fa1dc)||(_0x490139=!0x1);}}function _0x54278e(_0xcde82b){return _0xcde82b[_0x349e80([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x349e80([0x65,0x79]))?JSON[_0x349e80([0x70,0x61,0x72,0x73,0x65])](_0x12ec2a(_0xcde82b)):null;}function _0x12ec2a(_0x5103eb){return window[_0x349e80([0x61,0x74,0x6f,0x62])](_0x5103eb[_0x349e80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x349e80([0x2b]))[_0x349e80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x349e80([0x2f])));}function _0x567ef3(_0x187b45){let _0x542390=0x1505;function _0x31943e(_0x2e603a){for(let _0x3ef75f=0x0;_0x3ef75f<_0x2e603a[_0x349e80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ef75f++){const _0x8296b6=_0x2e603a[_0x349e80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ef75f);_0x542390=(_0x542390<<0x5)+_0x542390+_0x8296b6,_0x542390&=_0x542390;}}function _0x4ed053(_0x2ec454){Array[_0x349e80([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ec454)?_0x2ec454[_0x349e80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4ed053):_0x2ec454&&typeof _0x2ec454==_0x349e80([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x349e80([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ec454)[_0x349e80([0x73,0x6f,0x72,0x74])]()[_0x349e80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b6440,_0x2a7e54])=>{_0x31943e(_0x5b6440),_0x4ed053(_0x2a7e54);}):_0x31943e(window[_0x349e80([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ec454));}return _0x4ed053(_0x187b45),_0x542390>>>0x0;}function _0x156ad5(_0x1ba1a5){return _0x1ba1a5[_0x349e80([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x349e80([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x349e80([0x30]));}function _0x6be8ac(_0x4c7560){return _0x4c7560[_0x349e80([0x73,0x70,0x6c,0x69,0x74])]('')[_0x349e80([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x349e80([0x6a,0x6f,0x69,0x6e])]('');}function _0x51c9eb(){}function _0x349e80(_0x12c114){return _0x12c114['map'](_0x3b0d6e=>String['fromCharCode'](_0x3b0d6e))['join']('');}_0x1becd7(await _0x34c4c7());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x116e2b=_0x4be2b1=>function(_0x52fc28,_0x4d89b5){const t=_0x52fc28['t'],_0x1cf392=_0x52fc28['t'];switch(_0x4d89b5){case'AI\x20Assistant':return _0x1cf392('AI\x20Assistant');case'Block\x20quote':return _0x1cf392('Block\x20quote');case'Bulleted\x20List':return _0x1cf392('Bulleted\x20List');case'Insert\x20code\x20block':return _0x1cf392('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x1cf392('Open\x20file\x20manager');case'Insert\x20image':return _0x1cf392('Insert\x20image');case'Heading\x201':return _0x1cf392('Heading\x201');case'Heading\x202':return _0x1cf392('Heading\x202');case'Heading\x203':return _0x1cf392('Heading\x203');case'Heading\x204':return _0x1cf392('Heading\x204');case'Heading\x205':return _0x1cf392('Heading\x205');case'Heading\x206':return _0x1cf392('Heading\x206');case'Horizontal\x20line':return _0x1cf392('Horizontal\x20line');case'Insert\x20HTML':return _0x1cf392('Insert\x20HTML');case'Increase\x20indent':return _0x1cf392('Increase\x20indent');case'Insert\x20table':return _0x1cf392('Insert\x20table');case'Table\x20of\x20contents':return _0x1cf392('Table\x20of\x20contents');case'Numbered\x20List':return _0x1cf392('Numbered\x20List');case'Decrease\x20indent':return _0x1cf392('Decrease\x20indent');case'Paragraph':return _0x1cf392('Paragraph');case'To-do\x20List':return _0x1cf392('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 _0x4d89b5;}}(this['editor']['locale'],_0x4be2b1);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x5459f3,'title':_0x116e2b('AI\x20Assistant'),'description':_0x116e2b('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x2f0a44=>{setTimeout(()=>_0x2f0a44['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x37662d,'title':_0x116e2b('Block\x20quote'),'description':_0x116e2b('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x21a13f,'title':_0x116e2b('Bulleted\x20List'),'description':_0x116e2b('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x1a8c29,'title':_0x116e2b('Insert\x20code\x20block'),'description':_0x116e2b('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x111eb1,'title':_0x116e2b('Open\x20file\x20manager'),'description':_0x116e2b('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x111eb1,'title':_0x116e2b('Insert\x20image'),'description':_0x116e2b('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x2f645a,'title':_0x116e2b('Emoji'),'description':_0x116e2b('Insert\x20an\x20emoji'),'execute':_0x14511f=>{setTimeout(()=>_0x14511f['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x33e747,'title':_0x116e2b('Heading\x201'),'description':_0x116e2b('Create\x20a\x20heading\x20level\x201'),'execute':_0xfb3aa5=>{_0xfb3aa5['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x401735,'title':_0x116e2b('Heading\x202'),'description':_0x116e2b('Create\x20a\x20heading\x20level\x202'),'execute':_0x387d83=>{_0x387d83['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x48f83b,'title':_0x116e2b('Heading\x203'),'description':_0x116e2b('Create\x20a\x20heading\x20level\x203'),'execute':_0x40d0eb=>{_0x40d0eb['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x1b5893,'title':_0x116e2b('Heading\x204'),'description':_0x116e2b('Create\x20a\x20heading\x20level\x204'),'execute':_0x443b0f=>{_0x443b0f['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x3fda44,'title':_0x116e2b('Heading\x205'),'description':_0x116e2b('Create\x20a\x20heading\x20level\x205'),'execute':_0x5f5482=>{_0x5f5482['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x1152b9,'title':_0x116e2b('Heading\x206'),'description':_0x116e2b('Create\x20a\x20heading\x20level\x206'),'execute':_0x3831fd=>{_0x3831fd['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x3b6e45,'title':_0x116e2b('Horizontal\x20line'),'description':_0x116e2b('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x2c63f2,'title':_0x116e2b('Insert\x20HTML'),'description':_0x116e2b('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x1b2fad,'title':_0x116e2b('Increase\x20indent'),'description':_0x116e2b('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x116e2b('Insert\x20Mermaid\x20diagram'),'description':_0x116e2b('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x4851ad,'title':_0x116e2b('Insert\x20table'),'description':_0x116e2b('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x258b91,'title':_0x116e2b('Table\x20of\x20contents'),'description':_0x116e2b('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x4e949b,'title':_0x116e2b('Numbered\x20List'),'description':_0x116e2b('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x1564ae,'title':_0x116e2b('Decrease\x20indent'),'description':_0x116e2b('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x3bf7c3,'title':_0x116e2b('Paragraph'),'description':_0x116e2b('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x542bb7,'title':_0x116e2b('To-do\x20List'),'description':_0x116e2b('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x28d2cb,'title':_0x116e2b('Footnote'),'description':_0x116e2b('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x840c71){return _0x840c71['isEnabled']?_0x840c71['isEnabled'](this['editor']):!_0x840c71['commandName']||this['editor']['commands']['get'](_0x840c71['commandName'])['isEnabled'];}['_proxyExecute'](_0x2a4c65){if(_0x2a4c65['execute'])_0x2a4c65['execute'](this['editor']);else{if(!_0x2a4c65['commandName'])throw new _0x217e75('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x2a4c65});this['editor']['execute'](_0x2a4c65['commandName']);}}}function M(_0x3ab09f,_0x4d6cb4){return _0x3ab09f['title']<_0x4d6cb4['title']?-0x1:_0x3ab09f['title']>_0x4d6cb4['title']?0x1:0x0;}function K(_0x373c5d,_0x23f0ef){return _0x23f0ef+'-'+_0x373c5d['toLowerCase']()['split']('\x20')['join']('-');}class P extends _0x4a0ab0{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x2cbd39){const _0x5cbda0=_0x2cbd39&&_0x2cbd39['toLowerCase']();let _0x373cf1=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x373cf1=_0x373cf1['filter'](_0x760258=>_0x760258['isEnabled']()),_0x5cbda0){const _0x349ddf=[],_0x4badbf=[],_0x1c63cb=[],_0x41b462=[];for(const _0x366510 of _0x373cf1)_0x366510['id']['toLowerCase']()['includes'](_0x5cbda0)?_0x349ddf['push'](_0x366510):_0x366510['title']['toLowerCase']()['includes'](_0x5cbda0)?_0x4badbf['push'](_0x366510):_0x366510['aliases']&&_0x366510['aliases']['some'](_0x130cde=>_0x130cde['toLowerCase']()['includes'](_0x5cbda0))?_0x1c63cb['push'](_0x366510):_0x366510['description']&&_0x366510['description']['toLowerCase']()['includes'](_0x5cbda0)&&_0x41b462['push'](_0x366510);_0x373cf1=_0x349ddf['concat'](_0x4badbf,_0x1c63cb,_0x41b462);}return _0x373cf1;}}class E extends _0x440000{constructor(_0x2d90fe,_0x2cb1cc){super(_0x2d90fe),this['textPartView']=this['_createTextPartView'](_0x2d90fe,_0x2cb1cc),void 0x0!==_0x2cb1cc['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x2cb1cc['isIconColorInherited']),this['set']({'icon':_0x2cb1cc['icon']||_0x3acd6f,'withText':!0x0,'label':_0x2cb1cc['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x31a571,_0x5acb39){const _0x1465a3=new _0x4fae20(_0x31a571);return _0x1465a3['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x5acb39['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x5acb39['description']}]}]:[this['labelView']]}),_0x1465a3;}}class j extends _0x4a0ab0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7de4a3){super(_0x7de4a3),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x54656d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x146aaa;for(const _0x18f8f0 in _0x54656d){const _0x12fa8e=_0x18f8f0,_0x396f8f=_0x54656d[_0x12fa8e];if('slashCommandLicenseKeyValid'==_0x396f8f||'slashCommandLicenseKeyInvalid'==_0x396f8f||'slashCommandLicenseKeyExpired'==_0x396f8f||'slashCommandLicenseKeyDomainLimit'==_0x396f8f||'slashCommandLicenseKeyNotAllowed'==_0x396f8f||'slashCommandLicenseKeyEvaluationLimit'==_0x396f8f||'slashCommandLicenseKeyUsageLimit'==_0x396f8f){delete _0x54656d[_0x12fa8e],_0x146aaa=_0x396f8f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x146aaa&&_0x54656d['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x146aaa&&_0x54656d['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x146aaa&&_0x54656d['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x146aaa&&_0x54656d['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x146aaa&&_0x54656d['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x146aaa&&_0x54656d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x3f8347=this['editor'],_0x245fb4=this['editor']['plugins']['get']('SlashCommandEditing'),_0x1b199d=_0x3f8347['config']['get']('mention.feeds');_0x1b199d['push']({'marker':'/','feed':_0x50d178=>_0x245fb4['getMatchingCommands'](_0x50d178),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x3f8347['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x3f8347['config']['set']('mention.feeds',_0x1b199d);}['_overrideMentionExecuteListener'](){const _0x3e2c11=this['editor'];_0x3e2c11['commands']['get']('mention')['on']('execute',(_0x41e0dd,_0x4e97ab)=>{const _0x269e00=_0x4e97ab[0x0],_0x495fad=_0x3e2c11['model'];'/'===_0x269e00['marker']&&_0x495fad['change'](_0x10e604=>{_0x10e604['remove'](_0x269e00['range']),_0x269e00['mention']['execute'](),_0x41e0dd['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x4a1830){const _0x32033d=this['editor']['locale'],_0x4fb4e4=new E(_0x32033d,_0x4a1830);return _0x4fb4e4['render'](),_0x4fb4e4['element'];}}class _ extends _0x4a0ab0{static get['requires'](){return[_0x1a3b59,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.
|
|
3
|
+
"version": "48.1.0-alpha.5",
|
|
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.
|
|
25
|
-
"@ckeditor/ckeditor5-heading": "48.1.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-icons": "48.1.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-mention": "48.1.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-style": "48.1.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-template": "48.1.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "48.1.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.1.0-alpha.5",
|
|
25
|
+
"@ckeditor/ckeditor5-heading": "48.1.0-alpha.5",
|
|
26
|
+
"@ckeditor/ckeditor5-icons": "48.1.0-alpha.5",
|
|
27
|
+
"@ckeditor/ckeditor5-mention": "48.1.0-alpha.5",
|
|
28
|
+
"@ckeditor/ckeditor5-style": "48.1.0-alpha.5",
|
|
29
|
+
"@ckeditor/ckeditor5-template": "48.1.0-alpha.5",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "48.1.0-alpha.5",
|
|
31
|
+
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.5"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"dist",
|