@ckeditor/ckeditor5-slash-command 48.0.1-alpha.0 → 48.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5ab94b}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x19a200}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x141bdc,uid as _0x205082}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x40feb0,IconQuote as _0x5c98e9,IconBulletedList as _0x5efec9,IconCodeBlock as _0x438988,IconBrowseFiles as _0x3f9e79,IconEmoji as _0x3ecf88,IconHeading1 as _0x3471ce,IconHeading2 as _0x1c0eda,IconHeading3 as _0x195dae,IconHeading4 as _0x53067f,IconHeading5 as _0x198986,IconHeading6 as _0x1baafe,IconHorizontalLine as _0x31d16e,IconHtml as _0x1a3b9e,IconIndent as _0x14afdd,IconTable as _0x4aa231,IconTableOfContents as _0x39b4f2,IconNumberedList as _0x146f39,IconOutdent as _0x2558e,IconParagraph as _0x54c1c2,IconTodoList as _0x55b316,IconFootnote as _0x17c6e9,IconPlay as _0x1aa73e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x41b268,View as _0x384fbc}from'@ckeditor/ckeditor5-ui/dist/index.js';class O extends _0x5ab94b{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x122da0){super(_0x122da0),this['_allowedCommands']=null;}['afterInit'](){const _0x22cb94=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x573ed0=function(_0x457736){let _0x2c776e=['heading4','heading5','heading6'];if(_0x457736){const _0x1a10dc=_0x457736['map'](_0x1f4ce6=>_0x1f4ce6['model']);_0x2c776e=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x5e5aaa=>!_0x1a10dc['includes'](_0x5e5aaa));}return _0x2c776e;}(this['editor']['config']['get']('heading.options'));let _0x18c138=this['getDefaultCommands']()['filter'](_0x3f9d6d=>!_0x573ed0['includes'](_0x3f9d6d['id']))['filter'](_0x514b88=>!_0x22cb94['includes'](_0x514b88['commandName']));const _0x1e6eb1=this['editor']['config']['get']('slashCommand.extraCommands');_0x1e6eb1&&_0x1e6eb1['length']&&(_0x18c138=_0x18c138['concat'](_0x1e6eb1));const _0x252109=this['editor']['config']['get']('template.definitions');_0x252109&&_0x252109['length']&&(_0x18c138=_0x18c138['concat'](function(_0x1f3c75){return _0x1f3c75['map'](_0x4cbeca=>{const {title:_0x165321,icon:_0x1f76c7,description:_0x1e3109,data:_0x199fd1}=_0x4cbeca,_0x2b41f0={'id':K(_0x165321,'template'),'commandName':'insertTemplate','execute':_0x72f404=>{_0x72f404['execute']('insertTemplate',_0x199fd1);},'description':_0x1e3109,'icon':_0x1f76c7,'title':_0x165321};return _0x1f76c7&&(_0x2b41f0['isIconColorInherited']=!0x1),_0x2b41f0;});}(_0x252109)));const _0x33c9e8=this['editor']['config']['get']('style.definitions');_0x33c9e8&&_0x33c9e8['length']&&(_0x18c138=_0x18c138['concat'](function(_0x55c53d){return _0x55c53d['map'](_0x5d00fa=>({'id':K(_0x5d00fa['name'],'style'),'commandName':'style','execute':_0x20de40=>{_0x20de40['execute']('style',{'styleName':_0x5d00fa['name']});},'isEnabled':_0x344e20=>{const _0x4d7109=_0x344e20['commands']['get']('style');return _0x4d7109['isEnabled']&&_0x4d7109['enabledStyles']['includes'](_0x5d00fa['name']);},'title':_0x5d00fa['name']}));}(_0x33c9e8)));const _0x194931=_0x18c138['filter'](_0x150ab0=>!_0x150ab0['commandName']||void 0x0!==this['editor']['commands']['get'](_0x150ab0['commandName'])),_0x277a57=[];for(const _0x1cf22a of _0x194931)_0x277a57['push']({'id':_0x1cf22a['id'],'commandName':_0x1cf22a['commandName'],'title':'function'==typeof _0x1cf22a['title']?_0x1cf22a['title'](this['editor']):_0x1cf22a['title'],'description':_0x1cf22a['description'],'icon':_0x1cf22a['icon'],'isIconColorInherited':_0x1cf22a['isIconColorInherited'],'aliases':_0x1cf22a['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x1cf22a),'execute':()=>this['_proxyExecute'](_0x1cf22a)});this['_allowedCommands']=_0x277a57['sort'](M),async function(_0x541f5e){const _0x1d0155=_0x60b291([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]),_0x10306e=0x305505ed,_0x461918=0x3052820d^_0x10306e,_0x35ecf6=window[_0x60b291([0x44,0x61,0x74,0x65])][_0x60b291([0x6e,0x6f,0x77])](),_0x246e27=_0x541f5e[_0x60b291([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4bca76=new window[(_0x60b291([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x381920=>{_0x246e27[_0x60b291([0x6f,0x6e,0x63,0x65])](_0x60b291([0x72,0x65,0x61,0x64,0x79]),_0x381920);}),_0x1e275d={[_0x60b291([0x6b,0x74,0x79])]:_0x60b291([0x45,0x43]),[_0x60b291([0x75,0x73,0x65])]:_0x60b291([0x73,0x69,0x67]),[_0x60b291([0x63,0x72,0x76])]:_0x60b291([0x50,0x2d,0x32,0x35,0x36]),[_0x60b291([0x78])]:_0x60b291([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]),[_0x60b291([0x79])]:_0x60b291([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]),[_0x60b291([0x61,0x6c,0x67])]:_0x60b291([0x45,0x53,0x32,0x35,0x36])},_0x8eef0d=_0x246e27[_0x60b291([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x60b291([0x67,0x65,0x74])](_0x60b291([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11efdd(){let _0x431793,_0x4fdb11=null,_0x30fab8=null;try{if(_0x8eef0d==_0x60b291([0x47,0x50,0x4c]))return _0x60b291([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x431793=_0xc9cda1(),!_0x431793)return _0x60b291([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x431793[_0x60b291([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x30fab8=_0x5dc5a9(_0x431793[_0x60b291([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x431793[_0x60b291([0x6a,0x74,0x69])])),await _0x2b8d4d()?_0x1550e7()?_0x3dea30()?_0x60b291([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b74c3()?(_0x431793[_0x60b291([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x60b291([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4fdb11=_0x1217b9(_0x60b291([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4765f0()):_0x60b291([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x60b291([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x60b291([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x60b291([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3dea30(){const _0x2f3742=[_0x60b291([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x60b291([0x74,0x72,0x69,0x61,0x6c])][_0x60b291([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431793[_0x60b291([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x35ecf6/0x3e8:0xe10*_0x461918;return _0x431793[_0x60b291([0x65,0x78,0x70])]<_0x2f3742;}function _0x1550e7(){const _0x53d194=_0x431793[_0x60b291([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x53d194&&(!!_0x53d194[_0x60b291([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60b291([0x2a]))||(!!_0x53d194[_0x60b291([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60b291([0x53,0x43]))||(!!_0x53d194[_0x60b291([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60b291([0x50,0x50]))||!(!_0x53d194[_0x60b291([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60b291([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x40f53b()))));}function _0x3b74c3(){const _0x43f52b=_0x431793[_0x60b291([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x43f52b||0x0==_0x43f52b[_0x60b291([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4edb1f}=new URL(window[_0x60b291([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x43f52b[_0x60b291([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4edb1f))return!0x0;const _0x466359=_0x4edb1f[_0x60b291([0x73,0x70,0x6c,0x69,0x74])](_0x60b291([0x2e]));return _0x43f52b[_0x60b291([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48792d=>_0x48792d[_0x60b291([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60b291([0x2a])))[_0x60b291([0x6d,0x61,0x70])](_0x1bdd31=>_0x1bdd31[_0x60b291([0x73,0x70,0x6c,0x69,0x74])](_0x60b291([0x2e])))[_0x60b291([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ffe7b=>_0x1ffe7b[_0x60b291([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x466359[_0x60b291([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x60b291([0x6d,0x61,0x70])](_0x20183b=>Array(_0x466359[_0x60b291([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x20183b[_0x60b291([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x60b291([0x66,0x69,0x6c,0x6c])](_0x20183b[0x0]===_0x60b291([0x2a])?_0x60b291([0x2a]):'')[_0x60b291([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x20183b))[_0x60b291([0x73,0x6f,0x6d,0x65])](_0x514b03=>_0x466359[_0x60b291([0x65,0x76,0x65,0x72,0x79])]((_0x475ffa,_0x576ec5)=>_0x514b03[_0x576ec5]===_0x475ffa||_0x514b03[_0x576ec5]===_0x60b291([0x2a])));}function _0x4765f0(){return _0x4fdb11&&_0x30fab8?new window[(_0x60b291([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c7ccd,_0x3aa0fe)=>{_0x4fdb11[_0x60b291([0x74,0x68,0x65,0x6e])](_0x4c7ccd,_0x3aa0fe),_0x30fab8[_0x60b291([0x74,0x68,0x65,0x6e])](_0xf7406d=>{_0xf7406d!=_0x60b291([0x56,0x61,0x6c,0x69,0x64])&&_0x4c7ccd(_0xf7406d);},_0x3aa0fe);}):_0x4fdb11||_0x30fab8||_0x60b291([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5dc5a9(_0x33346a,_0x294a10){return new window[(_0x60b291([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x278b27=>{if(_0x4a7d15())return _0x278b27(_0x60b291([0x56,0x61,0x6c,0x69,0x64]));_0x2c6b36(),_0x246e27[_0x60b291([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x60b291([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x471962=!0x1;const _0xa305e9=_0x205082();function _0x403b0b(_0x1f481f){return!!_0x1f481f&&(typeof _0x1f481f===_0x60b291([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f481f===_0x60b291([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f481f[_0x60b291([0x74,0x68,0x65,0x6e])]===_0x60b291([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f481f[_0x60b291([0x63,0x61,0x74,0x63,0x68])]===_0x60b291([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f89e5(_0x844a9b){_0xc4c249(_0x844a9b)[_0x60b291([0x74,0x68,0x65,0x6e])](_0x56e016=>{if(!_0x56e016||_0x56e016[_0x60b291([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x60b291([0x6f,0x6b]))return _0x60b291([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3469cf(_0x4ce164(_0xa305e9+_0x294a10))!=_0x56e016[_0x60b291([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x60b291([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x60b291([0x56,0x61,0x6c,0x69,0x64]);})[_0x60b291([0x74,0x68,0x65,0x6e])](_0x1d440f=>(_0x5ada20(),_0x1d440f),()=>{const _0x1a22f2=_0x39616d();return null==_0x1a22f2?(_0x5ada20(),_0x60b291([0x56,0x61,0x6c,0x69,0x64])):_0x60b291(_0x35ecf6-_0x1a22f2>(0x145981ed^_0x10306e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x60b291([0x74,0x68,0x65,0x6e])](_0x278b27)[_0x60b291([0x63,0x61,0x74,0x63,0x68])](()=>{_0x278b27(_0x60b291([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x49f0da=0x3063eb6d^_0x10306e;function _0x5ada20(){const _0x104537=_0x60b291([0x6c,0x6c,0x63,0x74,0x2d])+_0x3469cf(_0x4ce164(_0x33346a)),_0x4d6aba=_0xba672c(_0x3469cf(window[_0x60b291([0x4d,0x61,0x74,0x68])][_0x60b291([0x63,0x65,0x69,0x6c])](_0x35ecf6/_0x49f0da)));window[_0x60b291([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x60b291([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x104537,_0x4d6aba);}function _0x39616d(){const _0x3d74f9=_0x60b291([0x6c,0x6c,0x63,0x74,0x2d])+_0x3469cf(_0x4ce164(_0x33346a)),_0x423f68=window[_0x60b291([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x60b291([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d74f9);return _0x423f68?window[_0x60b291([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xba672c(_0x423f68),0x10)*_0x49f0da:null;}function _0xc4c249(_0x273afb){return new window[(_0x60b291([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x445e5d,_0x83d398)=>{_0x273afb[_0x60b291([0x74,0x68,0x65,0x6e])](_0x445e5d,_0x83d398),window[_0x60b291([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x83d398,0x3054d12d^_0x10306e);});}}_0x246e27[_0x60b291([0x6f,0x6e])](_0x60b291([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc718be,_0x313f0b)=>{if(_0x313f0b[0x0]!=_0x33346a)return _0x278b27(_0x60b291([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x313f0b[0x1]={..._0x313f0b[0x1],[_0x60b291([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa305e9};},{[_0x60b291([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x60b291([0x68,0x69,0x67,0x68])}),_0x246e27[_0x60b291([0x6f,0x6e])](_0x60b291([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x316a5e=>{_0x403b0b(_0x316a5e[_0x60b291([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x471962=!0x0,_0x3f89e5(_0x316a5e[_0x60b291([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x60b291([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x60b291([0x6c,0x6f,0x77])}),_0x4bca76[_0x60b291([0x74,0x68,0x65,0x6e])](()=>{_0x471962||_0x278b27(_0x60b291([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a7d15(){return _0x246e27[_0x60b291([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x60b291([0x76,0x69,0x65,0x77])][_0x60b291([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x60b291([0x61,0x75,0x74,0x6f]);}function _0x2c6b36(){_0x246e27[_0x60b291([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x60b291([0x76,0x69,0x65,0x77])][_0x60b291([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x60b291([0x61,0x75,0x74,0x6f]);}}function _0x1217b9(_0x311ec7){const _0x36f2a1=[new window[(_0x60b291([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34d947=>setTimeout(_0x34d947,0x305c3b21^_0x10306e)),_0x4bca76[_0x60b291([0x74,0x68,0x65,0x6e])](()=>new window[(_0x60b291([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x190150=>{let _0x10294c=0x0;_0x246e27[_0x60b291([0x6d,0x6f,0x64,0x65,0x6c])][_0x60b291([0x6f,0x6e])](_0x60b291([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xfa07a2,_0x48909f)=>{_0x48909f[0x0][_0x60b291([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x10294c++,_0x10294c==(0x30550005^_0x10306e)&&(_0x190150(),_0xfa07a2[_0x60b291([0x6f,0x66,0x66])]());});}))];return window[_0x60b291([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x60b291([0x72,0x61,0x63,0x65])](_0x36f2a1)[_0x60b291([0x74,0x68,0x65,0x6e])](()=>_0x311ec7);}async function _0x49e0b6(){await _0x4bca76,_0x246e27[_0x60b291([0x6d,0x6f,0x64,0x65,0x6c])][_0x60b291([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42e6b4,_0x246e27[_0x60b291([0x6d,0x6f,0x64,0x65,0x6c])][_0x60b291([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42e6b4,_0x246e27[_0x60b291([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x60b291([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x40f53b(){return window[_0x60b291([0x67,0x6c,0x6f,0x62])]&&window[_0x60b291([0x67,0x6c,0x6f,0x62])][_0x60b291([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x55d088(_0x1178a5){const _0x2f4683=_0x5d9356();_0x246e27[_0x2f4683]=_0x60b291([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1178a5,_0x1178a5!=_0x60b291([0x56,0x61,0x6c,0x69,0x64])&&_0x49e0b6();}function _0x5d9356(){const _0x47d17f=window[_0x60b291([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x60b291([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x60b291([0x6e,0x6f,0x77])]())[_0x60b291([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x60b291([0x2e]),'');let _0x531484=_0x60b291([0x75]);for(let _0x452c1d=0x0;_0x452c1d<_0x47d17f[_0x60b291([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x452c1d+=0x2){let _0xe89849=window[_0x60b291([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47d17f[_0x60b291([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x452c1d,_0x452c1d+0x2));_0xe89849>=_0x1d0155[_0x60b291([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe89849-=_0x1d0155[_0x60b291([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x531484+=_0x1d0155[_0xe89849];}return _0x531484;}function _0xc9cda1(){const _0x31f0c0=_0x8eef0d[_0x60b291([0x73,0x70,0x6c,0x69,0x74])](_0x60b291([0x2e]));if(0x3!=_0x31f0c0[_0x60b291([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xdd426b(_0x31f0c0[0x1]);function _0xdd426b(_0x30c782){const _0x18a358=_0x546f04(_0x30c782);return _0x18a358&&_0x47203f()?_0x18a358:null;function _0x47203f(){const _0x40597e=_0x18a358[_0x60b291([0x6a,0x74,0x69])],_0x586e14=window[_0x60b291([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40597e[_0x60b291([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40597e[_0x60b291([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c70da={..._0x18a358,[_0x60b291([0x6a,0x74,0x69])]:_0x40597e[_0x60b291([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x40597e[_0x60b291([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c70da[_0x60b291([0x76,0x63])],_0x4ce164(_0x1c70da)==_0x586e14;}}}async function _0x2b8d4d(){let _0x533559=!0x0;try{const _0x3517ad=_0x8eef0d[_0x60b291([0x73,0x70,0x6c,0x69,0x74])](_0x60b291([0x2e])),[_0x5b3020,_0x4fd941,_0x276938]=_0x3517ad;return _0x40ec1e(_0x5b3020),await _0x29e971(_0x5b3020,_0x4fd941,_0x276938),_0x533559;}catch{return!0x1;}function _0x40ec1e(_0x26a33a){const _0x3050da=_0x546f04(_0x26a33a);_0x3050da&&_0x3050da[_0x60b291([0x61,0x6c,0x67])]==_0x60b291([0x45,0x53,0x32,0x35,0x36])||(_0x533559=!0x1);}async function _0x29e971(_0x213cd6,_0x536a1c,_0x38a393){const _0x1b2035=window[_0x60b291([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x60b291([0x66,0x72,0x6f,0x6d])](_0xc24622(_0x38a393),_0x46290a=>_0x46290a[_0x60b291([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x319811=new window[(_0x60b291([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x60b291([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x213cd6+_0x60b291([0x2e])+_0x536a1c),_0x8bfe91=window[_0x60b291([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x60b291([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8bfe91)return;const _0x20ceca=await _0x8bfe91[_0x60b291([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x60b291([0x6a,0x77,0x6b]),_0x1e275d,{[_0x60b291([0x6e,0x61,0x6d,0x65])]:_0x60b291([0x45,0x43,0x44,0x53,0x41]),[_0x60b291([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x60b291([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x60b291([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8bfe91[_0x60b291([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x60b291([0x6e,0x61,0x6d,0x65])]:_0x60b291([0x45,0x43,0x44,0x53,0x41]),[_0x60b291([0x68,0x61,0x73,0x68])]:{[_0x60b291([0x6e,0x61,0x6d,0x65])]:_0x60b291([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x20ceca,_0x1b2035,_0x319811)||(_0x533559=!0x1);}}function _0x546f04(_0x4b01be){return _0x4b01be[_0x60b291([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x60b291([0x65,0x79]))?JSON[_0x60b291([0x70,0x61,0x72,0x73,0x65])](_0xc24622(_0x4b01be)):null;}function _0xc24622(_0x544a06){return window[_0x60b291([0x61,0x74,0x6f,0x62])](_0x544a06[_0x60b291([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x60b291([0x2b]))[_0x60b291([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x60b291([0x2f])));}function _0x4ce164(_0x25c67e){let _0x429ff3=0x1505;function _0x2f3f64(_0x1f3529){for(let _0x3974c6=0x0;_0x3974c6<_0x1f3529[_0x60b291([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3974c6++){const _0x3087db=_0x1f3529[_0x60b291([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3974c6);_0x429ff3=(_0x429ff3<<0x5)+_0x429ff3+_0x3087db,_0x429ff3&=_0x429ff3;}}function _0x57a77e(_0x252bd3){Array[_0x60b291([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x252bd3)?_0x252bd3[_0x60b291([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57a77e):_0x252bd3&&typeof _0x252bd3==_0x60b291([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x60b291([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x252bd3)[_0x60b291([0x73,0x6f,0x72,0x74])]()[_0x60b291([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d97dc,_0xf667c0])=>{_0x2f3f64(_0x1d97dc),_0x57a77e(_0xf667c0);}):_0x2f3f64(window[_0x60b291([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x252bd3));}return _0x57a77e(_0x25c67e),_0x429ff3>>>0x0;}function _0x3469cf(_0x279d49){return _0x279d49[_0x60b291([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x60b291([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x60b291([0x30]));}function _0xba672c(_0x8204e1){return _0x8204e1[_0x60b291([0x73,0x70,0x6c,0x69,0x74])]('')[_0x60b291([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x60b291([0x6a,0x6f,0x69,0x6e])]('');}function _0x42e6b4(){}function _0x60b291(_0x4468bf){return _0x4468bf['map'](_0x245cdb=>String['fromCharCode'](_0x245cdb))['join']('');}_0x55d088(await _0x11efdd());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x2aabc4=_0x5d5e79=>function(_0x9cdbad,_0x5759c2){const t=_0x9cdbad['t'],_0x146a08=_0x9cdbad['t'];switch(_0x5759c2){case'AI\x20Assistant':return _0x146a08('AI\x20Assistant');case'Block\x20quote':return _0x146a08('Block\x20quote');case'Bulleted\x20list':return _0x146a08('Bulleted\x20list');case'Insert\x20code\x20block':return _0x146a08('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x146a08('Open\x20file\x20manager');case'Insert\x20image':return _0x146a08('Insert\x20image');case'Heading\x201':return _0x146a08('Heading\x201');case'Heading\x202':return _0x146a08('Heading\x202');case'Heading\x203':return _0x146a08('Heading\x203');case'Heading\x204':return _0x146a08('Heading\x204');case'Heading\x205':return _0x146a08('Heading\x205');case'Heading\x206':return _0x146a08('Heading\x206');case'Horizontal\x20line':return _0x146a08('Horizontal\x20line');case'Insert\x20HTML':return _0x146a08('Insert\x20HTML');case'Increase\x20indent':return _0x146a08('Increase\x20indent');case'Insert\x20table':return _0x146a08('Insert\x20table');case'Table\x20of\x20contents':return _0x146a08('Table\x20of\x20contents');case'Numbered\x20list':return _0x146a08('Numbered\x20list');case'Decrease\x20indent':return _0x146a08('Decrease\x20indent');case'Paragraph':return _0x146a08('Paragraph');case'To-do\x20list':return _0x146a08('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 _0x5759c2;}}(this['editor']['locale'],_0x5d5e79);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x40feb0,'title':_0x2aabc4('AI\x20Assistant'),'description':_0x2aabc4('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x4535bd=>{setTimeout(()=>_0x4535bd['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x5c98e9,'title':_0x2aabc4('Block\x20quote'),'description':_0x2aabc4('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x5efec9,'title':_0x2aabc4('Bulleted\x20list'),'description':_0x2aabc4('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x438988,'title':_0x2aabc4('Insert\x20code\x20block'),'description':_0x2aabc4('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x3f9e79,'title':_0x2aabc4('Open\x20file\x20manager'),'description':_0x2aabc4('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x3f9e79,'title':_0x2aabc4('Insert\x20image'),'description':_0x2aabc4('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x3ecf88,'title':_0x2aabc4('Emoji'),'description':_0x2aabc4('Insert\x20an\x20emoji'),'execute':_0x316c29=>{setTimeout(()=>_0x316c29['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x3471ce,'title':_0x2aabc4('Heading\x201'),'description':_0x2aabc4('Create\x20a\x20heading\x20level\x201'),'execute':_0x140b94=>{_0x140b94['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x1c0eda,'title':_0x2aabc4('Heading\x202'),'description':_0x2aabc4('Create\x20a\x20heading\x20level\x202'),'execute':_0x4edf0e=>{_0x4edf0e['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x195dae,'title':_0x2aabc4('Heading\x203'),'description':_0x2aabc4('Create\x20a\x20heading\x20level\x203'),'execute':_0x258e94=>{_0x258e94['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x53067f,'title':_0x2aabc4('Heading\x204'),'description':_0x2aabc4('Create\x20a\x20heading\x20level\x204'),'execute':_0x1a41a8=>{_0x1a41a8['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x198986,'title':_0x2aabc4('Heading\x205'),'description':_0x2aabc4('Create\x20a\x20heading\x20level\x205'),'execute':_0x4fa225=>{_0x4fa225['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x1baafe,'title':_0x2aabc4('Heading\x206'),'description':_0x2aabc4('Create\x20a\x20heading\x20level\x206'),'execute':_0x4d7cd2=>{_0x4d7cd2['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x31d16e,'title':_0x2aabc4('Horizontal\x20line'),'description':_0x2aabc4('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x1a3b9e,'title':_0x2aabc4('Insert\x20HTML'),'description':_0x2aabc4('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x14afdd,'title':_0x2aabc4('Increase\x20indent'),'description':_0x2aabc4('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x2aabc4('Insert\x20Mermaid\x20diagram'),'description':_0x2aabc4('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x4aa231,'title':_0x2aabc4('Insert\x20table'),'description':_0x2aabc4('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x39b4f2,'title':_0x2aabc4('Table\x20of\x20contents'),'description':_0x2aabc4('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x146f39,'title':_0x2aabc4('Numbered\x20list'),'description':_0x2aabc4('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x2558e,'title':_0x2aabc4('Decrease\x20indent'),'description':_0x2aabc4('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x54c1c2,'title':_0x2aabc4('Paragraph'),'description':_0x2aabc4('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x55b316,'title':_0x2aabc4('To-do\x20list'),'description':_0x2aabc4('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x17c6e9,'title':_0x2aabc4('Footnote'),'description':_0x2aabc4('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x1df7ef){return _0x1df7ef['isEnabled']?_0x1df7ef['isEnabled'](this['editor']):!_0x1df7ef['commandName']||this['editor']['commands']['get'](_0x1df7ef['commandName'])['isEnabled'];}['_proxyExecute'](_0x14ad82){if(_0x14ad82['execute'])_0x14ad82['execute'](this['editor']);else{if(!_0x14ad82['commandName'])throw new _0x141bdc('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x14ad82});this['editor']['execute'](_0x14ad82['commandName']);}}}function M(_0x257cc2,_0x26dc8e){return _0x257cc2['title']<_0x26dc8e['title']?-0x1:_0x257cc2['title']>_0x26dc8e['title']?0x1:0x0;}function K(_0x18794f,_0x3a9c09){return _0x3a9c09+'-'+_0x18794f['toLowerCase']()['split']('\x20')['join']('-');}class P extends _0x5ab94b{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x5990bd){const _0x53fb3c=_0x5990bd&&_0x5990bd['toLowerCase']();let _0xe8d794=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0xe8d794=_0xe8d794['filter'](_0x8ecc12=>_0x8ecc12['isEnabled']()),_0x53fb3c){const _0x2da6fb=[],_0x424656=[],_0x5b80c3=[],_0x2603a9=[];for(const _0x38c94d of _0xe8d794)_0x38c94d['id']['toLowerCase']()['includes'](_0x53fb3c)?_0x2da6fb['push'](_0x38c94d):_0x38c94d['title']['toLowerCase']()['includes'](_0x53fb3c)?_0x424656['push'](_0x38c94d):_0x38c94d['aliases']&&_0x38c94d['aliases']['some'](_0xbb8879=>_0xbb8879['toLowerCase']()['includes'](_0x53fb3c))?_0x5b80c3['push'](_0x38c94d):_0x38c94d['description']&&_0x38c94d['description']['toLowerCase']()['includes'](_0x53fb3c)&&_0x2603a9['push'](_0x38c94d);_0xe8d794=_0x2da6fb['concat'](_0x424656,_0x5b80c3,_0x2603a9);}return _0xe8d794;}}class E extends _0x41b268{constructor(_0x53aeaa,_0x51e4cb){super(_0x53aeaa),this['textPartView']=this['_createTextPartView'](_0x53aeaa,_0x51e4cb),void 0x0!==_0x51e4cb['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x51e4cb['isIconColorInherited']),this['set']({'icon':_0x51e4cb['icon']||_0x1aa73e,'withText':!0x0,'label':_0x51e4cb['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0xfa45f1,_0x1c3778){const _0x1d270f=new _0x384fbc(_0xfa45f1);return _0x1d270f['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x1c3778['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x1c3778['description']}]}]:[this['labelView']]}),_0x1d270f;}}class j extends _0x5ab94b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24b060){super(_0x24b060),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4df7d6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x214840;for(const _0xc4cdb0 in _0x4df7d6){const _0x51430b=_0xc4cdb0,_0x1056aa=_0x4df7d6[_0x51430b];if('slashCommandLicenseKeyValid'==_0x1056aa||'slashCommandLicenseKeyInvalid'==_0x1056aa||'slashCommandLicenseKeyExpired'==_0x1056aa||'slashCommandLicenseKeyDomainLimit'==_0x1056aa||'slashCommandLicenseKeyNotAllowed'==_0x1056aa||'slashCommandLicenseKeyEvaluationLimit'==_0x1056aa||'slashCommandLicenseKeyUsageLimit'==_0x1056aa){delete _0x4df7d6[_0x51430b],_0x214840=_0x1056aa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x214840&&_0x4df7d6['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x214840&&_0x4df7d6['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x214840&&_0x4df7d6['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x214840&&_0x4df7d6['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x214840&&_0x4df7d6['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x214840&&_0x4df7d6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x358225=this['editor'],_0x2db7f0=this['editor']['plugins']['get']('SlashCommandEditing'),_0x646951=_0x358225['config']['get']('mention.feeds');_0x646951['push']({'marker':'/','feed':_0x4a9a98=>_0x2db7f0['getMatchingCommands'](_0x4a9a98),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x358225['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x358225['config']['set']('mention.feeds',_0x646951);}['_overrideMentionExecuteListener'](){const _0x145254=this['editor'];_0x145254['commands']['get']('mention')['on']('execute',(_0x3e4fae,_0x2c515b)=>{const _0x47e6a1=_0x2c515b[0x0],_0x2b5e35=_0x145254['model'];'/'===_0x47e6a1['marker']&&_0x2b5e35['change'](_0x24b998=>{_0x24b998['remove'](_0x47e6a1['range']),_0x47e6a1['mention']['execute'](),_0x3e4fae['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x536d28){const _0x5746af=this['editor']['locale'],_0x76e69a=new E(_0x5746af,_0x536d28);return _0x76e69a['render'](),_0x76e69a['element'];}}class _ extends _0x5ab94b{static get['requires'](){return[_0x19a200,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 _0x46d6d4}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x35ed21}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x810f22,uid as _0x4b2a37}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x31eae0,IconQuote as _0x1a35b1,IconBulletedList as _0x16e412,IconCodeBlock as _0x64b935,IconBrowseFiles as _0x3ad1a7,IconEmoji as _0x253050,IconHeading1 as _0x2bd6c6,IconHeading2 as _0x14e9f5,IconHeading3 as _0x52a041,IconHeading4 as _0x4dda19,IconHeading5 as _0x406b00,IconHeading6 as _0x532b4b,IconHorizontalLine as _0x34845b,IconHtml as _0x5e3169,IconIndent as _0x463a9b,IconTable as _0x22291f,IconTableOfContents as _0x2870b2,IconNumberedList as _0x20aed7,IconOutdent as _0x59d432,IconParagraph as _0x38fc42,IconTodoList as _0x38cbf4,IconFootnote as _0x4b5937,IconPlay as _0x1f68b5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5c8867,View as _0x2ea60d}from'@ckeditor/ckeditor5-ui/dist/index.js';class O extends _0x46d6d4{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x305954){super(_0x305954),this['_allowedCommands']=null;}['afterInit'](){const _0x28e92f=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x326275=function(_0x16c4a7){let _0x2adac8=['heading4','heading5','heading6'];if(_0x16c4a7){const _0x45a241=_0x16c4a7['map'](_0x30a75e=>_0x30a75e['model']);_0x2adac8=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x2eb33b=>!_0x45a241['includes'](_0x2eb33b));}return _0x2adac8;}(this['editor']['config']['get']('heading.options'));let _0x200c4a=this['getDefaultCommands']()['filter'](_0x30ddeb=>!_0x326275['includes'](_0x30ddeb['id']))['filter'](_0x4f0454=>!_0x28e92f['includes'](_0x4f0454['commandName']));const _0x3ac357=this['editor']['config']['get']('slashCommand.extraCommands');_0x3ac357&&_0x3ac357['length']&&(_0x200c4a=_0x200c4a['concat'](_0x3ac357));const _0x27a4e9=this['editor']['config']['get']('template.definitions');_0x27a4e9&&_0x27a4e9['length']&&(_0x200c4a=_0x200c4a['concat'](function(_0x415ea9){return _0x415ea9['map'](_0x58e292=>{const {title:_0x159420,icon:_0x33edad,description:_0x3a5600,data:_0x2370bc}=_0x58e292,_0x4a6c4f={'id':K(_0x159420,'template'),'commandName':'insertTemplate','execute':_0x1d0195=>{_0x1d0195['execute']('insertTemplate',_0x2370bc);},'description':_0x3a5600,'icon':_0x33edad,'title':_0x159420};return _0x33edad&&(_0x4a6c4f['isIconColorInherited']=!0x1),_0x4a6c4f;});}(_0x27a4e9)));const _0x5bf1f4=this['editor']['config']['get']('style.definitions');_0x5bf1f4&&_0x5bf1f4['length']&&(_0x200c4a=_0x200c4a['concat'](function(_0x332d2b){return _0x332d2b['map'](_0x44bf76=>({'id':K(_0x44bf76['name'],'style'),'commandName':'style','execute':_0x255f9d=>{_0x255f9d['execute']('style',{'styleName':_0x44bf76['name']});},'isEnabled':_0x124c83=>{const _0x307ff0=_0x124c83['commands']['get']('style');return _0x307ff0['isEnabled']&&_0x307ff0['enabledStyles']['includes'](_0x44bf76['name']);},'title':_0x44bf76['name']}));}(_0x5bf1f4)));const _0x12a5bf=_0x200c4a['filter'](_0x20f80d=>!_0x20f80d['commandName']||void 0x0!==this['editor']['commands']['get'](_0x20f80d['commandName'])),_0x3986b5=[];for(const _0x1622fa of _0x12a5bf)_0x3986b5['push']({'id':_0x1622fa['id'],'commandName':_0x1622fa['commandName'],'title':'function'==typeof _0x1622fa['title']?_0x1622fa['title'](this['editor']):_0x1622fa['title'],'description':_0x1622fa['description'],'icon':_0x1622fa['icon'],'isIconColorInherited':_0x1622fa['isIconColorInherited'],'aliases':_0x1622fa['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x1622fa),'execute':()=>this['_proxyExecute'](_0x1622fa)});this['_allowedCommands']=_0x3986b5['sort'](M),async function(_0x57f953){const _0x42cf8e=_0x20d0ae([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]),_0x508b6b=0x305505ed,_0x3f338d=0x30528215^_0x508b6b,_0x5ab16a=window[_0x20d0ae([0x44,0x61,0x74,0x65])][_0x20d0ae([0x6e,0x6f,0x77])](),_0x406a10=_0x57f953[_0x20d0ae([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a2ed8=new window[(_0x20d0ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5235a1=>{_0x406a10[_0x20d0ae([0x6f,0x6e,0x63,0x65])](_0x20d0ae([0x72,0x65,0x61,0x64,0x79]),_0x5235a1);}),_0x25637d={[_0x20d0ae([0x6b,0x74,0x79])]:_0x20d0ae([0x45,0x43]),[_0x20d0ae([0x75,0x73,0x65])]:_0x20d0ae([0x73,0x69,0x67]),[_0x20d0ae([0x63,0x72,0x76])]:_0x20d0ae([0x50,0x2d,0x32,0x35,0x36]),[_0x20d0ae([0x78])]:_0x20d0ae([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]),[_0x20d0ae([0x79])]:_0x20d0ae([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]),[_0x20d0ae([0x61,0x6c,0x67])]:_0x20d0ae([0x45,0x53,0x32,0x35,0x36])},_0x2a79da=_0x406a10[_0x20d0ae([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20d0ae([0x67,0x65,0x74])](_0x20d0ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1b7e55(){let _0x42a10f,_0x5eca4c=null,_0xab9995=null;try{if(_0x2a79da==_0x20d0ae([0x47,0x50,0x4c]))return _0x20d0ae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42a10f=_0x5eb1f5(),!_0x42a10f)return _0x20d0ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42a10f[_0x20d0ae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xab9995=_0xbb3f41(_0x42a10f[_0x20d0ae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42a10f[_0x20d0ae([0x6a,0x74,0x69])])),await _0x2b1e47()?_0x508bb8()?_0xb3bf09()?_0x20d0ae([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x166a6c()?(_0x42a10f[_0x20d0ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20d0ae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5eca4c=_0x85b21e(_0x20d0ae([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x19f05d()):_0x20d0ae([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20d0ae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20d0ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x20d0ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb3bf09(){const _0x1651bd=[_0x20d0ae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20d0ae([0x74,0x72,0x69,0x61,0x6c])][_0x20d0ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42a10f[_0x20d0ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ab16a/0x3e8:0xe10*_0x3f338d;return _0x42a10f[_0x20d0ae([0x65,0x78,0x70])]<_0x1651bd;}function _0x508bb8(){const _0x211cf7=_0x42a10f[_0x20d0ae([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x211cf7&&(!!_0x211cf7[_0x20d0ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20d0ae([0x2a]))||(!!_0x211cf7[_0x20d0ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20d0ae([0x53,0x43]))||(!!_0x211cf7[_0x20d0ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20d0ae([0x50,0x50]))||!(!_0x211cf7[_0x20d0ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20d0ae([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0xc4ab3b()))));}function _0x166a6c(){const _0x4d210d=_0x42a10f[_0x20d0ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4d210d||0x0==_0x4d210d[_0x20d0ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6e73e9}=new URL(window[_0x20d0ae([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4d210d[_0x20d0ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6e73e9))return!0x0;const _0x33586b=_0x6e73e9[_0x20d0ae([0x73,0x70,0x6c,0x69,0x74])](_0x20d0ae([0x2e]));return _0x4d210d[_0x20d0ae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2bc19f=>_0x2bc19f[_0x20d0ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20d0ae([0x2a])))[_0x20d0ae([0x6d,0x61,0x70])](_0x14a799=>_0x14a799[_0x20d0ae([0x73,0x70,0x6c,0x69,0x74])](_0x20d0ae([0x2e])))[_0x20d0ae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x465719=>_0x465719[_0x20d0ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x33586b[_0x20d0ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20d0ae([0x6d,0x61,0x70])](_0x4d94ee=>Array(_0x33586b[_0x20d0ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4d94ee[_0x20d0ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20d0ae([0x66,0x69,0x6c,0x6c])](_0x4d94ee[0x0]===_0x20d0ae([0x2a])?_0x20d0ae([0x2a]):'')[_0x20d0ae([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4d94ee))[_0x20d0ae([0x73,0x6f,0x6d,0x65])](_0x507219=>_0x33586b[_0x20d0ae([0x65,0x76,0x65,0x72,0x79])]((_0x36da80,_0x29df53)=>_0x507219[_0x29df53]===_0x36da80||_0x507219[_0x29df53]===_0x20d0ae([0x2a])));}function _0x19f05d(){return _0x5eca4c&&_0xab9995?new window[(_0x20d0ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c8b6c,_0x2adc18)=>{_0x5eca4c[_0x20d0ae([0x74,0x68,0x65,0x6e])](_0x3c8b6c,_0x2adc18),_0xab9995[_0x20d0ae([0x74,0x68,0x65,0x6e])](_0x2b281c=>{_0x2b281c!=_0x20d0ae([0x56,0x61,0x6c,0x69,0x64])&&_0x3c8b6c(_0x2b281c);},_0x2adc18);}):_0x5eca4c||_0xab9995||_0x20d0ae([0x56,0x61,0x6c,0x69,0x64]);}}function _0xbb3f41(_0x28a3e8,_0x2b2002){return new window[(_0x20d0ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2872dc=>{if(_0x414a5f())return _0x2872dc(_0x20d0ae([0x56,0x61,0x6c,0x69,0x64]));_0x234069(),_0x406a10[_0x20d0ae([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20d0ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b833c=!0x1;const _0x5d1cc6=_0x4b2a37();function _0x548270(_0x285183){return!!_0x285183&&(typeof _0x285183===_0x20d0ae([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x285183===_0x20d0ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x285183[_0x20d0ae([0x74,0x68,0x65,0x6e])]===_0x20d0ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x285183[_0x20d0ae([0x63,0x61,0x74,0x63,0x68])]===_0x20d0ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25f884(_0x1abb66){_0x35965e(_0x1abb66)[_0x20d0ae([0x74,0x68,0x65,0x6e])](_0x2629de=>{if(!_0x2629de||_0x2629de[_0x20d0ae([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20d0ae([0x6f,0x6b]))return _0x20d0ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x38916e(_0x447e70(_0x5d1cc6+_0x2b2002))!=_0x2629de[_0x20d0ae([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20d0ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20d0ae([0x56,0x61,0x6c,0x69,0x64]);})[_0x20d0ae([0x74,0x68,0x65,0x6e])](_0x44f5f7=>(_0x114522(),_0x44f5f7),()=>{const _0x747d86=_0x3b2252();return null==_0x747d86?(_0x114522(),_0x20d0ae([0x56,0x61,0x6c,0x69,0x64])):_0x20d0ae(_0x5ab16a-_0x747d86>(0x145981ed^_0x508b6b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20d0ae([0x74,0x68,0x65,0x6e])](_0x2872dc)[_0x20d0ae([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2872dc(_0x20d0ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4060b0=0x3063eb6d^_0x508b6b;function _0x114522(){const _0xe3f286=_0x20d0ae([0x6c,0x6c,0x63,0x74,0x2d])+_0x38916e(_0x447e70(_0x28a3e8)),_0x429499=_0x3a2731(_0x38916e(window[_0x20d0ae([0x4d,0x61,0x74,0x68])][_0x20d0ae([0x63,0x65,0x69,0x6c])](_0x5ab16a/_0x4060b0)));window[_0x20d0ae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20d0ae([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe3f286,_0x429499);}function _0x3b2252(){const _0x1345e1=_0x20d0ae([0x6c,0x6c,0x63,0x74,0x2d])+_0x38916e(_0x447e70(_0x28a3e8)),_0x3472da=window[_0x20d0ae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20d0ae([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1345e1);return _0x3472da?window[_0x20d0ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a2731(_0x3472da),0x10)*_0x4060b0:null;}function _0x35965e(_0x3ab258){return new window[(_0x20d0ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x160ad6,_0x448bc2)=>{_0x3ab258[_0x20d0ae([0x74,0x68,0x65,0x6e])](_0x160ad6,_0x448bc2),window[_0x20d0ae([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x448bc2,0x3054d12d^_0x508b6b);});}}_0x406a10[_0x20d0ae([0x6f,0x6e])](_0x20d0ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5fe39f,_0x3caa00)=>{if(_0x3caa00[0x0]!=_0x28a3e8)return _0x2872dc(_0x20d0ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3caa00[0x1]={..._0x3caa00[0x1],[_0x20d0ae([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d1cc6};},{[_0x20d0ae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20d0ae([0x68,0x69,0x67,0x68])}),_0x406a10[_0x20d0ae([0x6f,0x6e])](_0x20d0ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x51d512=>{_0x548270(_0x51d512[_0x20d0ae([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b833c=!0x0,_0x25f884(_0x51d512[_0x20d0ae([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20d0ae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20d0ae([0x6c,0x6f,0x77])}),_0x4a2ed8[_0x20d0ae([0x74,0x68,0x65,0x6e])](()=>{_0x5b833c||_0x2872dc(_0x20d0ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x414a5f(){return _0x406a10[_0x20d0ae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20d0ae([0x76,0x69,0x65,0x77])][_0x20d0ae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20d0ae([0x61,0x75,0x74,0x6f]);}function _0x234069(){_0x406a10[_0x20d0ae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20d0ae([0x76,0x69,0x65,0x77])][_0x20d0ae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20d0ae([0x61,0x75,0x74,0x6f]);}}function _0x85b21e(_0xb884fc){const _0x479444=[new window[(_0x20d0ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x293abc=>setTimeout(_0x293abc,0x305c3b21^_0x508b6b)),_0x4a2ed8[_0x20d0ae([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20d0ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4208cb=>{let _0x3b4927=0x0;_0x406a10[_0x20d0ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x20d0ae([0x6f,0x6e])](_0x20d0ae([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d54b8,_0x47f8c3)=>{_0x47f8c3[0x0][_0x20d0ae([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b4927++,_0x3b4927==(0x30550005^_0x508b6b)&&(_0x4208cb(),_0x3d54b8[_0x20d0ae([0x6f,0x66,0x66])]());});}))];return window[_0x20d0ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20d0ae([0x72,0x61,0x63,0x65])](_0x479444)[_0x20d0ae([0x74,0x68,0x65,0x6e])](()=>_0xb884fc);}async function _0x468ace(){await _0x4a2ed8,_0x406a10[_0x20d0ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x20d0ae([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e19cd,_0x406a10[_0x20d0ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x20d0ae([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e19cd,_0x406a10[_0x20d0ae([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20d0ae([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc4ab3b(){return window[_0x20d0ae([0x67,0x6c,0x6f,0x62])]&&window[_0x20d0ae([0x67,0x6c,0x6f,0x62])][_0x20d0ae([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x2edee7(_0x46485f){const _0x20f3ca=_0x27942d();_0x406a10[_0x20f3ca]=_0x20d0ae([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x46485f,_0x46485f!=_0x20d0ae([0x56,0x61,0x6c,0x69,0x64])&&_0x468ace();}function _0x27942d(){const _0x1081d3=window[_0x20d0ae([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20d0ae([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20d0ae([0x6e,0x6f,0x77])]())[_0x20d0ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20d0ae([0x2e]),'');let _0x3f08f2=_0x20d0ae([0x75]);for(let _0x1e026e=0x0;_0x1e026e<_0x1081d3[_0x20d0ae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e026e+=0x2){let _0x34240a=window[_0x20d0ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1081d3[_0x20d0ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e026e,_0x1e026e+0x2));_0x34240a>=_0x42cf8e[_0x20d0ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x34240a-=_0x42cf8e[_0x20d0ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f08f2+=_0x42cf8e[_0x34240a];}return _0x3f08f2;}function _0x5eb1f5(){const _0x481c43=_0x2a79da[_0x20d0ae([0x73,0x70,0x6c,0x69,0x74])](_0x20d0ae([0x2e]));if(0x3!=_0x481c43[_0x20d0ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x52b3d7(_0x481c43[0x1]);function _0x52b3d7(_0x1a12c3){const _0x44cbd3=_0x4d5dc5(_0x1a12c3);return _0x44cbd3&&_0x44cb0b()?_0x44cbd3:null;function _0x44cb0b(){const _0x3bfdf4=_0x44cbd3[_0x20d0ae([0x6a,0x74,0x69])],_0x4e9802=window[_0x20d0ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bfdf4[_0x20d0ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3bfdf4[_0x20d0ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3299ef={..._0x44cbd3,[_0x20d0ae([0x6a,0x74,0x69])]:_0x3bfdf4[_0x20d0ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3bfdf4[_0x20d0ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3299ef[_0x20d0ae([0x76,0x63])],_0x447e70(_0x3299ef)==_0x4e9802;}}}async function _0x2b1e47(){let _0x5c1c0e=!0x0;try{const _0x4af955=_0x2a79da[_0x20d0ae([0x73,0x70,0x6c,0x69,0x74])](_0x20d0ae([0x2e])),[_0x2934d8,_0x55760c,_0x49e097]=_0x4af955;return _0x4c5ac7(_0x2934d8),await _0x4e26b1(_0x2934d8,_0x55760c,_0x49e097),_0x5c1c0e;}catch{return!0x1;}function _0x4c5ac7(_0x4d4a69){const _0x1d47bd=_0x4d5dc5(_0x4d4a69);_0x1d47bd&&_0x1d47bd[_0x20d0ae([0x61,0x6c,0x67])]==_0x20d0ae([0x45,0x53,0x32,0x35,0x36])||(_0x5c1c0e=!0x1);}async function _0x4e26b1(_0x3595ba,_0x43ef73,_0x91fdf){const _0x56bb16=window[_0x20d0ae([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20d0ae([0x66,0x72,0x6f,0x6d])](_0x3e68fb(_0x91fdf),_0x2a9445=>_0x2a9445[_0x20d0ae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x382128=new window[(_0x20d0ae([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20d0ae([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3595ba+_0x20d0ae([0x2e])+_0x43ef73),_0x13b1bb=window[_0x20d0ae([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20d0ae([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13b1bb)return;const _0x4cb855=await _0x13b1bb[_0x20d0ae([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20d0ae([0x6a,0x77,0x6b]),_0x25637d,{[_0x20d0ae([0x6e,0x61,0x6d,0x65])]:_0x20d0ae([0x45,0x43,0x44,0x53,0x41]),[_0x20d0ae([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20d0ae([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20d0ae([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13b1bb[_0x20d0ae([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20d0ae([0x6e,0x61,0x6d,0x65])]:_0x20d0ae([0x45,0x43,0x44,0x53,0x41]),[_0x20d0ae([0x68,0x61,0x73,0x68])]:{[_0x20d0ae([0x6e,0x61,0x6d,0x65])]:_0x20d0ae([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4cb855,_0x56bb16,_0x382128)||(_0x5c1c0e=!0x1);}}function _0x4d5dc5(_0x470120){return _0x470120[_0x20d0ae([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20d0ae([0x65,0x79]))?JSON[_0x20d0ae([0x70,0x61,0x72,0x73,0x65])](_0x3e68fb(_0x470120)):null;}function _0x3e68fb(_0x12be5b){return window[_0x20d0ae([0x61,0x74,0x6f,0x62])](_0x12be5b[_0x20d0ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20d0ae([0x2b]))[_0x20d0ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20d0ae([0x2f])));}function _0x447e70(_0x363779){let _0x3d794d=0x1505;function _0x54447f(_0x33e84b){for(let _0x287a3a=0x0;_0x287a3a<_0x33e84b[_0x20d0ae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x287a3a++){const _0x2faacf=_0x33e84b[_0x20d0ae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x287a3a);_0x3d794d=(_0x3d794d<<0x5)+_0x3d794d+_0x2faacf,_0x3d794d&=_0x3d794d;}}function _0x222957(_0x4abcdb){Array[_0x20d0ae([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4abcdb)?_0x4abcdb[_0x20d0ae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x222957):_0x4abcdb&&typeof _0x4abcdb==_0x20d0ae([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20d0ae([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4abcdb)[_0x20d0ae([0x73,0x6f,0x72,0x74])]()[_0x20d0ae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xb2af96,_0x318fa5])=>{_0x54447f(_0xb2af96),_0x222957(_0x318fa5);}):_0x54447f(window[_0x20d0ae([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4abcdb));}return _0x222957(_0x363779),_0x3d794d>>>0x0;}function _0x38916e(_0x23e130){return _0x23e130[_0x20d0ae([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20d0ae([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20d0ae([0x30]));}function _0x3a2731(_0xf8ca4b){return _0xf8ca4b[_0x20d0ae([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20d0ae([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20d0ae([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e19cd(){}function _0x20d0ae(_0x218a3c){return _0x218a3c['map'](_0x27ad58=>String['fromCharCode'](_0x27ad58))['join']('');}_0x2edee7(await _0x1b7e55());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x10c150=_0x1da903=>function(_0x39646f,_0x3ed4f0){const t=_0x39646f['t'],_0x2abbff=_0x39646f['t'];switch(_0x3ed4f0){case'AI\x20Assistant':return _0x2abbff('AI\x20Assistant');case'Block\x20quote':return _0x2abbff('Block\x20quote');case'Bulleted\x20list':return _0x2abbff('Bulleted\x20list');case'Insert\x20code\x20block':return _0x2abbff('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x2abbff('Open\x20file\x20manager');case'Insert\x20image':return _0x2abbff('Insert\x20image');case'Heading\x201':return _0x2abbff('Heading\x201');case'Heading\x202':return _0x2abbff('Heading\x202');case'Heading\x203':return _0x2abbff('Heading\x203');case'Heading\x204':return _0x2abbff('Heading\x204');case'Heading\x205':return _0x2abbff('Heading\x205');case'Heading\x206':return _0x2abbff('Heading\x206');case'Horizontal\x20line':return _0x2abbff('Horizontal\x20line');case'Insert\x20HTML':return _0x2abbff('Insert\x20HTML');case'Increase\x20indent':return _0x2abbff('Increase\x20indent');case'Insert\x20table':return _0x2abbff('Insert\x20table');case'Table\x20of\x20contents':return _0x2abbff('Table\x20of\x20contents');case'Numbered\x20list':return _0x2abbff('Numbered\x20list');case'Decrease\x20indent':return _0x2abbff('Decrease\x20indent');case'Paragraph':return _0x2abbff('Paragraph');case'To-do\x20list':return _0x2abbff('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 _0x3ed4f0;}}(this['editor']['locale'],_0x1da903);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x31eae0,'title':_0x10c150('AI\x20Assistant'),'description':_0x10c150('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x370eb0=>{setTimeout(()=>_0x370eb0['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x1a35b1,'title':_0x10c150('Block\x20quote'),'description':_0x10c150('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x16e412,'title':_0x10c150('Bulleted\x20list'),'description':_0x10c150('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x64b935,'title':_0x10c150('Insert\x20code\x20block'),'description':_0x10c150('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x3ad1a7,'title':_0x10c150('Open\x20file\x20manager'),'description':_0x10c150('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x3ad1a7,'title':_0x10c150('Insert\x20image'),'description':_0x10c150('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x253050,'title':_0x10c150('Emoji'),'description':_0x10c150('Insert\x20an\x20emoji'),'execute':_0xf85120=>{setTimeout(()=>_0xf85120['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x2bd6c6,'title':_0x10c150('Heading\x201'),'description':_0x10c150('Create\x20a\x20heading\x20level\x201'),'execute':_0x53d515=>{_0x53d515['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x14e9f5,'title':_0x10c150('Heading\x202'),'description':_0x10c150('Create\x20a\x20heading\x20level\x202'),'execute':_0x47dab7=>{_0x47dab7['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x52a041,'title':_0x10c150('Heading\x203'),'description':_0x10c150('Create\x20a\x20heading\x20level\x203'),'execute':_0x10097c=>{_0x10097c['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x4dda19,'title':_0x10c150('Heading\x204'),'description':_0x10c150('Create\x20a\x20heading\x20level\x204'),'execute':_0xda6040=>{_0xda6040['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x406b00,'title':_0x10c150('Heading\x205'),'description':_0x10c150('Create\x20a\x20heading\x20level\x205'),'execute':_0x4700cf=>{_0x4700cf['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x532b4b,'title':_0x10c150('Heading\x206'),'description':_0x10c150('Create\x20a\x20heading\x20level\x206'),'execute':_0x202e30=>{_0x202e30['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x34845b,'title':_0x10c150('Horizontal\x20line'),'description':_0x10c150('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x5e3169,'title':_0x10c150('Insert\x20HTML'),'description':_0x10c150('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x463a9b,'title':_0x10c150('Increase\x20indent'),'description':_0x10c150('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x10c150('Insert\x20Mermaid\x20diagram'),'description':_0x10c150('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x22291f,'title':_0x10c150('Insert\x20table'),'description':_0x10c150('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x2870b2,'title':_0x10c150('Table\x20of\x20contents'),'description':_0x10c150('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x20aed7,'title':_0x10c150('Numbered\x20list'),'description':_0x10c150('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x59d432,'title':_0x10c150('Decrease\x20indent'),'description':_0x10c150('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x38fc42,'title':_0x10c150('Paragraph'),'description':_0x10c150('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x38cbf4,'title':_0x10c150('To-do\x20list'),'description':_0x10c150('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x4b5937,'title':_0x10c150('Footnote'),'description':_0x10c150('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x5b3337){return _0x5b3337['isEnabled']?_0x5b3337['isEnabled'](this['editor']):!_0x5b3337['commandName']||this['editor']['commands']['get'](_0x5b3337['commandName'])['isEnabled'];}['_proxyExecute'](_0x143fdb){if(_0x143fdb['execute'])_0x143fdb['execute'](this['editor']);else{if(!_0x143fdb['commandName'])throw new _0x810f22('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x143fdb});this['editor']['execute'](_0x143fdb['commandName']);}}}function M(_0x2009eb,_0x2ae215){return _0x2009eb['title']<_0x2ae215['title']?-0x1:_0x2009eb['title']>_0x2ae215['title']?0x1:0x0;}function K(_0x3ddffb,_0x30601f){return _0x30601f+'-'+_0x3ddffb['toLowerCase']()['split']('\x20')['join']('-');}class P extends _0x46d6d4{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x432c46){const _0x3a5d05=_0x432c46&&_0x432c46['toLowerCase']();let _0x1d08cf=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x1d08cf=_0x1d08cf['filter'](_0x1dd3de=>_0x1dd3de['isEnabled']()),_0x3a5d05){const _0x58a919=[],_0x3951d2=[],_0x3584fc=[],_0x4140fe=[];for(const _0x2752ab of _0x1d08cf)_0x2752ab['id']['toLowerCase']()['includes'](_0x3a5d05)?_0x58a919['push'](_0x2752ab):_0x2752ab['title']['toLowerCase']()['includes'](_0x3a5d05)?_0x3951d2['push'](_0x2752ab):_0x2752ab['aliases']&&_0x2752ab['aliases']['some'](_0x249f6e=>_0x249f6e['toLowerCase']()['includes'](_0x3a5d05))?_0x3584fc['push'](_0x2752ab):_0x2752ab['description']&&_0x2752ab['description']['toLowerCase']()['includes'](_0x3a5d05)&&_0x4140fe['push'](_0x2752ab);_0x1d08cf=_0x58a919['concat'](_0x3951d2,_0x3584fc,_0x4140fe);}return _0x1d08cf;}}class E extends _0x5c8867{constructor(_0x2e2da6,_0x1b4e55){super(_0x2e2da6),this['textPartView']=this['_createTextPartView'](_0x2e2da6,_0x1b4e55),void 0x0!==_0x1b4e55['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x1b4e55['isIconColorInherited']),this['set']({'icon':_0x1b4e55['icon']||_0x1f68b5,'withText':!0x0,'label':_0x1b4e55['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x2733be,_0x46c7e1){const _0x604afd=new _0x2ea60d(_0x2733be);return _0x604afd['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x46c7e1['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x46c7e1['description']}]}]:[this['labelView']]}),_0x604afd;}}class j extends _0x46d6d4{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e6b29){super(_0x1e6b29),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x52fe1f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x93e420;for(const _0x136a30 in _0x52fe1f){const _0x5779b0=_0x136a30,_0x321941=_0x52fe1f[_0x5779b0];if('slashCommandLicenseKeyValid'==_0x321941||'slashCommandLicenseKeyInvalid'==_0x321941||'slashCommandLicenseKeyExpired'==_0x321941||'slashCommandLicenseKeyDomainLimit'==_0x321941||'slashCommandLicenseKeyNotAllowed'==_0x321941||'slashCommandLicenseKeyEvaluationLimit'==_0x321941||'slashCommandLicenseKeyUsageLimit'==_0x321941){delete _0x52fe1f[_0x5779b0],_0x93e420=_0x321941,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x93e420&&_0x52fe1f['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x93e420&&_0x52fe1f['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x93e420&&_0x52fe1f['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x93e420&&_0x52fe1f['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x93e420&&_0x52fe1f['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x93e420&&_0x52fe1f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x344d3f=this['editor'],_0x44058e=this['editor']['plugins']['get']('SlashCommandEditing'),_0x20d74f=_0x344d3f['config']['get']('mention.feeds');_0x20d74f['push']({'marker':'/','feed':_0x1d3594=>_0x44058e['getMatchingCommands'](_0x1d3594),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x344d3f['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x344d3f['config']['set']('mention.feeds',_0x20d74f);}['_overrideMentionExecuteListener'](){const _0x1d860c=this['editor'];_0x1d860c['commands']['get']('mention')['on']('execute',(_0x529d0b,_0x59a91f)=>{const _0x27bcf4=_0x59a91f[0x0],_0x41ce25=_0x1d860c['model'];'/'===_0x27bcf4['marker']&&_0x41ce25['change'](_0xf38405=>{_0xf38405['remove'](_0x27bcf4['range']),_0x27bcf4['mention']['execute'](),_0x529d0b['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x3619d9){const _0x15cfbc=this['editor']['locale'],_0xf77170=new E(_0x15cfbc,_0x3619d9);return _0xf77170['render'](),_0xf77170['element'];}}class _ extends _0x46d6d4{static get['requires'](){return[_0x35ed21,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.1-alpha.0",
3
+ "version": "48.0.1",
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.1-alpha.0",
25
- "@ckeditor/ckeditor5-heading": "48.0.1-alpha.0",
26
- "@ckeditor/ckeditor5-icons": "48.0.1-alpha.0",
27
- "@ckeditor/ckeditor5-mention": "48.0.1-alpha.0",
28
- "@ckeditor/ckeditor5-style": "48.0.1-alpha.0",
29
- "@ckeditor/ckeditor5-template": "48.0.1-alpha.0",
30
- "@ckeditor/ckeditor5-ui": "48.0.1-alpha.0",
31
- "@ckeditor/ckeditor5-utils": "48.0.1-alpha.0"
24
+ "@ckeditor/ckeditor5-core": "48.0.1",
25
+ "@ckeditor/ckeditor5-heading": "48.0.1",
26
+ "@ckeditor/ckeditor5-icons": "48.0.1",
27
+ "@ckeditor/ckeditor5-mention": "48.0.1",
28
+ "@ckeditor/ckeditor5-style": "48.0.1",
29
+ "@ckeditor/ckeditor5-template": "48.0.1",
30
+ "@ckeditor/ckeditor5-ui": "48.0.1",
31
+ "@ckeditor/ckeditor5-utils": "48.0.1"
32
32
  },
33
33
  "files": [
34
34
  "dist",