@ckeditor/ckeditor5-slash-command 48.0.0-alpha.10 → 48.0.0-alpha.11

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 _0x3c653a}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x472dd8}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x17ff63,uid as _0x51dd96}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0xf06cd6,IconQuote as _0x563640,IconBulletedList as _0x36366a,IconCodeBlock as _0xd21a76,IconBrowseFiles as _0x5d04bf,IconEmoji as _0x1d95ec,IconHeading1 as _0x5050a2,IconHeading2 as _0x48452e,IconHeading3 as _0x18e73f,IconHeading4 as _0x1c45a7,IconHeading5 as _0x250989,IconHeading6 as _0x5ac4d4,IconHorizontalLine as _0x2d3639,IconHtml as _0x2a3165,IconIndent as _0x2ca56f,IconTable as _0x1944d8,IconTableOfContents as _0x2f49cf,IconNumberedList as _0x31a015,IconOutdent as _0x43240d,IconParagraph as _0x392226,IconTodoList as _0xe2db05,IconFootnote as _0x279dfe,IconPlay as _0x5eefca}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x29eff9,View as _0x37e8ed}from'@ckeditor/ckeditor5-ui/dist/index.js';class O extends _0x3c653a{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56ddfe){super(_0x56ddfe),this['_allowedCommands']=null;}['afterInit'](){const _0x58f1db=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x138182=function(_0x2a40e9){let _0x5d1c45=['heading4','heading5','heading6'];if(_0x2a40e9){const _0x13e1fb=_0x2a40e9['map'](_0x3f3b87=>_0x3f3b87['model']);_0x5d1c45=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0xd79437=>!_0x13e1fb['includes'](_0xd79437));}return _0x5d1c45;}(this['editor']['config']['get']('heading.options'));let _0x225a95=this['getDefaultCommands']()['filter'](_0x136278=>!_0x138182['includes'](_0x136278['id']))['filter'](_0x167f6e=>!_0x58f1db['includes'](_0x167f6e['commandName']));const _0x56ea93=this['editor']['config']['get']('slashCommand.extraCommands');_0x56ea93&&_0x56ea93['length']&&(_0x225a95=_0x225a95['concat'](_0x56ea93));const _0x1f4f9a=this['editor']['config']['get']('template.definitions');_0x1f4f9a&&_0x1f4f9a['length']&&(_0x225a95=_0x225a95['concat'](function(_0x12714e){return _0x12714e['map'](_0x123be1=>{const {title:_0x51e0d0,icon:_0x9920b6,description:_0x1164a7,data:_0x2bee45}=_0x123be1,_0x5ba54a={'id':K(_0x51e0d0,'template'),'commandName':'insertTemplate','execute':_0x58160=>{_0x58160['execute']('insertTemplate',_0x2bee45);},'description':_0x1164a7,'icon':_0x9920b6,'title':_0x51e0d0};return _0x9920b6&&(_0x5ba54a['isIconColorInherited']=!0x1),_0x5ba54a;});}(_0x1f4f9a)));const _0x3da943=this['editor']['config']['get']('style.definitions');_0x3da943&&_0x3da943['length']&&(_0x225a95=_0x225a95['concat'](function(_0x41af2c){return _0x41af2c['map'](_0x51440f=>({'id':K(_0x51440f['name'],'style'),'commandName':'style','execute':_0x41a926=>{_0x41a926['execute']('style',{'styleName':_0x51440f['name']});},'isEnabled':_0x22c5ae=>{const _0x4a440a=_0x22c5ae['commands']['get']('style');return _0x4a440a['isEnabled']&&_0x4a440a['enabledStyles']['includes'](_0x51440f['name']);},'title':_0x51440f['name']}));}(_0x3da943)));const _0x338858=_0x225a95['filter'](_0x33aefb=>!_0x33aefb['commandName']||void 0x0!==this['editor']['commands']['get'](_0x33aefb['commandName'])),_0x22b502=[];for(const _0xa2bc4e of _0x338858)_0x22b502['push']({'id':_0xa2bc4e['id'],'commandName':_0xa2bc4e['commandName'],'title':'function'==typeof _0xa2bc4e['title']?_0xa2bc4e['title'](this['editor']):_0xa2bc4e['title'],'description':_0xa2bc4e['description'],'icon':_0xa2bc4e['icon'],'isIconColorInherited':_0xa2bc4e['isIconColorInherited'],'aliases':_0xa2bc4e['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0xa2bc4e),'execute':()=>this['_proxyExecute'](_0xa2bc4e)});this['_allowedCommands']=_0x22b502['sort'](M),async function(_0x1617ba){const _0x41ad2c=_0x35ebcf([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]),_0x4040e7=0x305505ed,_0x3b6e66=0x30528055^_0x4040e7,_0x1d080a=window[_0x35ebcf([0x44,0x61,0x74,0x65])][_0x35ebcf([0x6e,0x6f,0x77])](),_0x181826=_0x1617ba[_0x35ebcf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f732f=new window[(_0x35ebcf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x130ac9=>{_0x181826[_0x35ebcf([0x6f,0x6e,0x63,0x65])](_0x35ebcf([0x72,0x65,0x61,0x64,0x79]),_0x130ac9);}),_0x4d9083={[_0x35ebcf([0x6b,0x74,0x79])]:_0x35ebcf([0x45,0x43]),[_0x35ebcf([0x75,0x73,0x65])]:_0x35ebcf([0x73,0x69,0x67]),[_0x35ebcf([0x63,0x72,0x76])]:_0x35ebcf([0x50,0x2d,0x32,0x35,0x36]),[_0x35ebcf([0x78])]:_0x35ebcf([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]),[_0x35ebcf([0x79])]:_0x35ebcf([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]),[_0x35ebcf([0x61,0x6c,0x67])]:_0x35ebcf([0x45,0x53,0x32,0x35,0x36])},_0xd02c88=_0x181826[_0x35ebcf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x35ebcf([0x67,0x65,0x74])](_0x35ebcf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb68fec(){let _0x4fb1df,_0x1a25d2=null,_0x34f369=null;try{if(_0xd02c88==_0x35ebcf([0x47,0x50,0x4c]))return _0x35ebcf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4fb1df=_0x271ecb(),!_0x4fb1df)return _0x35ebcf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4fb1df[_0x35ebcf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x34f369=_0x276425(_0x4fb1df[_0x35ebcf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4fb1df[_0x35ebcf([0x6a,0x74,0x69])])),await _0x37da24()?_0x5100f2()?_0x38a656()?_0x35ebcf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x17d435()?(_0x4fb1df[_0x35ebcf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35ebcf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a25d2=_0x3f82f2(_0x35ebcf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56c1bd()):_0x35ebcf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x35ebcf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x35ebcf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x35ebcf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38a656(){const _0x4e89bf=[_0x35ebcf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x35ebcf([0x74,0x72,0x69,0x61,0x6c])][_0x35ebcf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fb1df[_0x35ebcf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d080a/0x3e8:0xe10*_0x3b6e66;return _0x4fb1df[_0x35ebcf([0x65,0x78,0x70])]<_0x4e89bf;}function _0x5100f2(){const _0x28e21a=_0x4fb1df[_0x35ebcf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x28e21a&&(!!_0x28e21a[_0x35ebcf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35ebcf([0x2a]))||(!!_0x28e21a[_0x35ebcf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35ebcf([0x53,0x43]))||(!!_0x28e21a[_0x35ebcf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35ebcf([0x50,0x50]))||!(!_0x28e21a[_0x35ebcf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35ebcf([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x27696a()))));}function _0x17d435(){const _0x5da9f1=_0x4fb1df[_0x35ebcf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5da9f1||0x0==_0x5da9f1[_0x35ebcf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4bd581}=new URL(window[_0x35ebcf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5da9f1[_0x35ebcf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bd581))return!0x0;const _0x135ca6=_0x4bd581[_0x35ebcf([0x73,0x70,0x6c,0x69,0x74])](_0x35ebcf([0x2e]));return _0x5da9f1[_0x35ebcf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x546124=>_0x546124[_0x35ebcf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35ebcf([0x2a])))[_0x35ebcf([0x6d,0x61,0x70])](_0x4c45d4=>_0x4c45d4[_0x35ebcf([0x73,0x70,0x6c,0x69,0x74])](_0x35ebcf([0x2e])))[_0x35ebcf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f3e9c=>_0x4f3e9c[_0x35ebcf([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x135ca6[_0x35ebcf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35ebcf([0x6d,0x61,0x70])](_0x580909=>Array(_0x135ca6[_0x35ebcf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x580909[_0x35ebcf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35ebcf([0x66,0x69,0x6c,0x6c])](_0x580909[0x0]===_0x35ebcf([0x2a])?_0x35ebcf([0x2a]):'')[_0x35ebcf([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x580909))[_0x35ebcf([0x73,0x6f,0x6d,0x65])](_0x3de4ca=>_0x135ca6[_0x35ebcf([0x65,0x76,0x65,0x72,0x79])]((_0x56105b,_0x4cc82f)=>_0x3de4ca[_0x4cc82f]===_0x56105b||_0x3de4ca[_0x4cc82f]===_0x35ebcf([0x2a])));}function _0x56c1bd(){return _0x1a25d2&&_0x34f369?new window[(_0x35ebcf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50549e,_0x52412d)=>{_0x1a25d2[_0x35ebcf([0x74,0x68,0x65,0x6e])](_0x50549e,_0x52412d),_0x34f369[_0x35ebcf([0x74,0x68,0x65,0x6e])](_0x5e4723=>{_0x5e4723!=_0x35ebcf([0x56,0x61,0x6c,0x69,0x64])&&_0x50549e(_0x5e4723);},_0x52412d);}):_0x1a25d2||_0x34f369||_0x35ebcf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x276425(_0x387ba0,_0x49b9e2){return new window[(_0x35ebcf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fe638=>{if(_0x17f27a())return _0x2fe638(_0x35ebcf([0x56,0x61,0x6c,0x69,0x64]));_0x3da876(),_0x181826[_0x35ebcf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x35ebcf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x553b52=!0x1;const _0x7a1c6a=_0x51dd96();function _0x3c7296(_0x32b17b){return!!_0x32b17b&&(typeof _0x32b17b===_0x35ebcf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x32b17b===_0x35ebcf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x32b17b[_0x35ebcf([0x74,0x68,0x65,0x6e])]===_0x35ebcf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x32b17b[_0x35ebcf([0x63,0x61,0x74,0x63,0x68])]===_0x35ebcf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d212f(_0x5adc8d){_0x4066c6(_0x5adc8d)[_0x35ebcf([0x74,0x68,0x65,0x6e])](_0x1273f3=>{if(!_0x1273f3||_0x1273f3[_0x35ebcf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x35ebcf([0x6f,0x6b]))return _0x35ebcf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x52c693(_0x2a4530(_0x7a1c6a+_0x49b9e2))!=_0x1273f3[_0x35ebcf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x35ebcf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x35ebcf([0x56,0x61,0x6c,0x69,0x64]);})[_0x35ebcf([0x74,0x68,0x65,0x6e])](_0xfcbc1f=>(_0x1f4f8f(),_0xfcbc1f),()=>{const _0x2c939d=_0x11569a();return null==_0x2c939d?(_0x1f4f8f(),_0x35ebcf([0x56,0x61,0x6c,0x69,0x64])):_0x35ebcf(_0x1d080a-_0x2c939d>(0x145981ed^_0x4040e7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x35ebcf([0x74,0x68,0x65,0x6e])](_0x2fe638)[_0x35ebcf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2fe638(_0x35ebcf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3634e5=0x3063eb6d^_0x4040e7;function _0x1f4f8f(){const _0xe27868=_0x35ebcf([0x6c,0x6c,0x63,0x74,0x2d])+_0x52c693(_0x2a4530(_0x387ba0)),_0x2bb93e=_0x47c420(_0x52c693(window[_0x35ebcf([0x4d,0x61,0x74,0x68])][_0x35ebcf([0x63,0x65,0x69,0x6c])](_0x1d080a/_0x3634e5)));window[_0x35ebcf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35ebcf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe27868,_0x2bb93e);}function _0x11569a(){const _0x37d7b0=_0x35ebcf([0x6c,0x6c,0x63,0x74,0x2d])+_0x52c693(_0x2a4530(_0x387ba0)),_0x67a5f5=window[_0x35ebcf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35ebcf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37d7b0);return _0x67a5f5?window[_0x35ebcf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47c420(_0x67a5f5),0x10)*_0x3634e5:null;}function _0x4066c6(_0x183ca4){return new window[(_0x35ebcf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x545f5b,_0x16d760)=>{_0x183ca4[_0x35ebcf([0x74,0x68,0x65,0x6e])](_0x545f5b,_0x16d760),window[_0x35ebcf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x16d760,0x3054d12d^_0x4040e7);});}}_0x181826[_0x35ebcf([0x6f,0x6e])](_0x35ebcf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e4959,_0x47dd07)=>{if(_0x47dd07[0x0]!=_0x387ba0)return _0x2fe638(_0x35ebcf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47dd07[0x1]={..._0x47dd07[0x1],[_0x35ebcf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7a1c6a};},{[_0x35ebcf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35ebcf([0x68,0x69,0x67,0x68])}),_0x181826[_0x35ebcf([0x6f,0x6e])](_0x35ebcf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3f1bb0=>{_0x3c7296(_0x3f1bb0[_0x35ebcf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x553b52=!0x0,_0x3d212f(_0x3f1bb0[_0x35ebcf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x35ebcf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35ebcf([0x6c,0x6f,0x77])}),_0x2f732f[_0x35ebcf([0x74,0x68,0x65,0x6e])](()=>{_0x553b52||_0x2fe638(_0x35ebcf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x17f27a(){return _0x181826[_0x35ebcf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35ebcf([0x76,0x69,0x65,0x77])][_0x35ebcf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x35ebcf([0x61,0x75,0x74,0x6f]);}function _0x3da876(){_0x181826[_0x35ebcf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35ebcf([0x76,0x69,0x65,0x77])][_0x35ebcf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35ebcf([0x61,0x75,0x74,0x6f]);}}function _0x3f82f2(_0x56e7be){const _0x40122d=[new window[(_0x35ebcf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5368b2=>setTimeout(_0x5368b2,0x305c3b21^_0x4040e7)),_0x2f732f[_0x35ebcf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x35ebcf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cc439=>{let _0x498d5a=0x0;_0x181826[_0x35ebcf([0x6d,0x6f,0x64,0x65,0x6c])][_0x35ebcf([0x6f,0x6e])](_0x35ebcf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x34ac35,_0x37f7aa)=>{_0x37f7aa[0x0][_0x35ebcf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x498d5a++,_0x498d5a==(0x30550005^_0x4040e7)&&(_0x4cc439(),_0x34ac35[_0x35ebcf([0x6f,0x66,0x66])]());});}))];return window[_0x35ebcf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35ebcf([0x72,0x61,0x63,0x65])](_0x40122d)[_0x35ebcf([0x74,0x68,0x65,0x6e])](()=>_0x56e7be);}async function _0x25ad71(){await _0x2f732f,_0x181826[_0x35ebcf([0x6d,0x6f,0x64,0x65,0x6c])][_0x35ebcf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc6a286,_0x181826[_0x35ebcf([0x6d,0x6f,0x64,0x65,0x6c])][_0x35ebcf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc6a286,_0x181826[_0x35ebcf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x35ebcf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x27696a(){return window[_0x35ebcf([0x67,0x6c,0x6f,0x62])]&&window[_0x35ebcf([0x67,0x6c,0x6f,0x62])][_0x35ebcf([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x4c590f(_0x134357){const _0x570df0=_0x3cf311();_0x181826[_0x570df0]=_0x35ebcf([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x134357,_0x134357!=_0x35ebcf([0x56,0x61,0x6c,0x69,0x64])&&_0x25ad71();}function _0x3cf311(){const _0x4c0093=window[_0x35ebcf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x35ebcf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x35ebcf([0x6e,0x6f,0x77])]())[_0x35ebcf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x35ebcf([0x2e]),'');let _0x47477c=_0x35ebcf([0x75]);for(let _0x554efd=0x0;_0x554efd<_0x4c0093[_0x35ebcf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x554efd+=0x2){let _0x20a061=window[_0x35ebcf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c0093[_0x35ebcf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x554efd,_0x554efd+0x2));_0x20a061>=_0x41ad2c[_0x35ebcf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x20a061-=_0x41ad2c[_0x35ebcf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47477c+=_0x41ad2c[_0x20a061];}return _0x47477c;}function _0x271ecb(){const _0x370d15=_0xd02c88[_0x35ebcf([0x73,0x70,0x6c,0x69,0x74])](_0x35ebcf([0x2e]));if(0x3!=_0x370d15[_0x35ebcf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d6af2(_0x370d15[0x1]);function _0x4d6af2(_0x483699){const _0x13357e=_0x54be23(_0x483699);return _0x13357e&&_0x3a012d()?_0x13357e:null;function _0x3a012d(){const _0x4870c7=_0x13357e[_0x35ebcf([0x6a,0x74,0x69])],_0x2a55a6=window[_0x35ebcf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4870c7[_0x35ebcf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4870c7[_0x35ebcf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x29449c={..._0x13357e,[_0x35ebcf([0x6a,0x74,0x69])]:_0x4870c7[_0x35ebcf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4870c7[_0x35ebcf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x29449c[_0x35ebcf([0x76,0x63])],_0x2a4530(_0x29449c)==_0x2a55a6;}}}async function _0x37da24(){let _0x59d68d=!0x0;try{const _0x47fabf=_0xd02c88[_0x35ebcf([0x73,0x70,0x6c,0x69,0x74])](_0x35ebcf([0x2e])),[_0x216a6c,_0x157f10,_0x5e4618]=_0x47fabf;return _0x3fbee1(_0x216a6c),await _0x2c907d(_0x216a6c,_0x157f10,_0x5e4618),_0x59d68d;}catch{return!0x1;}function _0x3fbee1(_0x5c7a77){const _0x38ebb=_0x54be23(_0x5c7a77);_0x38ebb&&_0x38ebb[_0x35ebcf([0x61,0x6c,0x67])]==_0x35ebcf([0x45,0x53,0x32,0x35,0x36])||(_0x59d68d=!0x1);}async function _0x2c907d(_0x5448f1,_0x396414,_0x7c7617){const _0x5b3301=window[_0x35ebcf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x35ebcf([0x66,0x72,0x6f,0x6d])](_0x12ef15(_0x7c7617),_0x4e9719=>_0x4e9719[_0x35ebcf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x85f866=new window[(_0x35ebcf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x35ebcf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5448f1+_0x35ebcf([0x2e])+_0x396414),_0x2221f6=window[_0x35ebcf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x35ebcf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2221f6)return;const _0x26740b=await _0x2221f6[_0x35ebcf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x35ebcf([0x6a,0x77,0x6b]),_0x4d9083,{[_0x35ebcf([0x6e,0x61,0x6d,0x65])]:_0x35ebcf([0x45,0x43,0x44,0x53,0x41]),[_0x35ebcf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x35ebcf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x35ebcf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2221f6[_0x35ebcf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x35ebcf([0x6e,0x61,0x6d,0x65])]:_0x35ebcf([0x45,0x43,0x44,0x53,0x41]),[_0x35ebcf([0x68,0x61,0x73,0x68])]:{[_0x35ebcf([0x6e,0x61,0x6d,0x65])]:_0x35ebcf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x26740b,_0x5b3301,_0x85f866)||(_0x59d68d=!0x1);}}function _0x54be23(_0xf3accc){return _0xf3accc[_0x35ebcf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x35ebcf([0x65,0x79]))?JSON[_0x35ebcf([0x70,0x61,0x72,0x73,0x65])](_0x12ef15(_0xf3accc)):null;}function _0x12ef15(_0x124fc3){return window[_0x35ebcf([0x61,0x74,0x6f,0x62])](_0x124fc3[_0x35ebcf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x35ebcf([0x2b]))[_0x35ebcf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x35ebcf([0x2f])));}function _0x2a4530(_0x32c65e){let _0xed6849=0x1505;function _0xf194b7(_0x294ef7){for(let _0x47a215=0x0;_0x47a215<_0x294ef7[_0x35ebcf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47a215++){const _0x482d68=_0x294ef7[_0x35ebcf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x47a215);_0xed6849=(_0xed6849<<0x5)+_0xed6849+_0x482d68,_0xed6849&=_0xed6849;}}function _0x3577e2(_0x3cf82e){Array[_0x35ebcf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3cf82e)?_0x3cf82e[_0x35ebcf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3577e2):_0x3cf82e&&typeof _0x3cf82e==_0x35ebcf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x35ebcf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3cf82e)[_0x35ebcf([0x73,0x6f,0x72,0x74])]()[_0x35ebcf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6d9904,_0x37cf67])=>{_0xf194b7(_0x6d9904),_0x3577e2(_0x37cf67);}):_0xf194b7(window[_0x35ebcf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3cf82e));}return _0x3577e2(_0x32c65e),_0xed6849>>>0x0;}function _0x52c693(_0x15ee6b){return _0x15ee6b[_0x35ebcf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x35ebcf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x35ebcf([0x30]));}function _0x47c420(_0x4cc50a){return _0x4cc50a[_0x35ebcf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x35ebcf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x35ebcf([0x6a,0x6f,0x69,0x6e])]('');}function _0xc6a286(){}function _0x35ebcf(_0x1c13ea){return _0x1c13ea['map'](_0x59d606=>String['fromCharCode'](_0x59d606))['join']('');}_0x4c590f(await _0xb68fec());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x3138d9=_0x96c4b5=>function(_0x2e1a36,_0x288a52){const t=_0x2e1a36['t'],_0x6c68b3=_0x2e1a36['t'];switch(_0x288a52){case'AI\x20Assistant':return _0x6c68b3('AI\x20Assistant');case'Block\x20quote':return _0x6c68b3('Block\x20quote');case'Bulleted\x20list':return _0x6c68b3('Bulleted\x20list');case'Insert\x20code\x20block':return _0x6c68b3('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x6c68b3('Open\x20file\x20manager');case'Insert\x20image':return _0x6c68b3('Insert\x20image');case'Heading\x201':return _0x6c68b3('Heading\x201');case'Heading\x202':return _0x6c68b3('Heading\x202');case'Heading\x203':return _0x6c68b3('Heading\x203');case'Heading\x204':return _0x6c68b3('Heading\x204');case'Heading\x205':return _0x6c68b3('Heading\x205');case'Heading\x206':return _0x6c68b3('Heading\x206');case'Horizontal\x20line':return _0x6c68b3('Horizontal\x20line');case'Insert\x20HTML':return _0x6c68b3('Insert\x20HTML');case'Increase\x20indent':return _0x6c68b3('Increase\x20indent');case'Insert\x20table':return _0x6c68b3('Insert\x20table');case'Table\x20of\x20contents':return _0x6c68b3('Table\x20of\x20contents');case'Numbered\x20list':return _0x6c68b3('Numbered\x20list');case'Decrease\x20indent':return _0x6c68b3('Decrease\x20indent');case'Paragraph':return _0x6c68b3('Paragraph');case'To-do\x20list':return _0x6c68b3('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 _0x288a52;}}(this['editor']['locale'],_0x96c4b5);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0xf06cd6,'title':_0x3138d9('AI\x20Assistant'),'description':_0x3138d9('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x1e2780=>{setTimeout(()=>_0x1e2780['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x563640,'title':_0x3138d9('Block\x20quote'),'description':_0x3138d9('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x36366a,'title':_0x3138d9('Bulleted\x20list'),'description':_0x3138d9('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0xd21a76,'title':_0x3138d9('Insert\x20code\x20block'),'description':_0x3138d9('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x5d04bf,'title':_0x3138d9('Open\x20file\x20manager'),'description':_0x3138d9('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x5d04bf,'title':_0x3138d9('Insert\x20image'),'description':_0x3138d9('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x1d95ec,'title':_0x3138d9('Emoji'),'description':_0x3138d9('Insert\x20an\x20emoji'),'execute':_0x2fe506=>{setTimeout(()=>_0x2fe506['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x5050a2,'title':_0x3138d9('Heading\x201'),'description':_0x3138d9('Create\x20a\x20heading\x20level\x201'),'execute':_0x552852=>{_0x552852['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x48452e,'title':_0x3138d9('Heading\x202'),'description':_0x3138d9('Create\x20a\x20heading\x20level\x202'),'execute':_0xc0d1de=>{_0xc0d1de['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x18e73f,'title':_0x3138d9('Heading\x203'),'description':_0x3138d9('Create\x20a\x20heading\x20level\x203'),'execute':_0x45e559=>{_0x45e559['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x1c45a7,'title':_0x3138d9('Heading\x204'),'description':_0x3138d9('Create\x20a\x20heading\x20level\x204'),'execute':_0xabf2c1=>{_0xabf2c1['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x250989,'title':_0x3138d9('Heading\x205'),'description':_0x3138d9('Create\x20a\x20heading\x20level\x205'),'execute':_0x11844f=>{_0x11844f['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x5ac4d4,'title':_0x3138d9('Heading\x206'),'description':_0x3138d9('Create\x20a\x20heading\x20level\x206'),'execute':_0x5a8c40=>{_0x5a8c40['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x2d3639,'title':_0x3138d9('Horizontal\x20line'),'description':_0x3138d9('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x2a3165,'title':_0x3138d9('Insert\x20HTML'),'description':_0x3138d9('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x2ca56f,'title':_0x3138d9('Increase\x20indent'),'description':_0x3138d9('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x3138d9('Insert\x20Mermaid\x20diagram'),'description':_0x3138d9('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x1944d8,'title':_0x3138d9('Insert\x20table'),'description':_0x3138d9('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x2f49cf,'title':_0x3138d9('Table\x20of\x20contents'),'description':_0x3138d9('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x31a015,'title':_0x3138d9('Numbered\x20list'),'description':_0x3138d9('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x43240d,'title':_0x3138d9('Decrease\x20indent'),'description':_0x3138d9('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x392226,'title':_0x3138d9('Paragraph'),'description':_0x3138d9('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0xe2db05,'title':_0x3138d9('To-do\x20list'),'description':_0x3138d9('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x279dfe,'title':_0x3138d9('Footnote'),'description':_0x3138d9('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x3519f7){return _0x3519f7['isEnabled']?_0x3519f7['isEnabled'](this['editor']):!_0x3519f7['commandName']||this['editor']['commands']['get'](_0x3519f7['commandName'])['isEnabled'];}['_proxyExecute'](_0x155480){if(_0x155480['execute'])_0x155480['execute'](this['editor']);else{if(!_0x155480['commandName'])throw new _0x17ff63('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x155480});this['editor']['execute'](_0x155480['commandName']);}}}function M(_0x158fbd,_0x76259f){return _0x158fbd['title']<_0x76259f['title']?-0x1:_0x158fbd['title']>_0x76259f['title']?0x1:0x0;}function K(_0x19d149,_0x2f729a){return _0x2f729a+'-'+_0x19d149['toLowerCase']()['split']('\x20')['join']('-');}class P extends _0x3c653a{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x2d5a4d){const _0x58355d=_0x2d5a4d&&_0x2d5a4d['toLowerCase']();let _0x2d5bcc=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x2d5bcc=_0x2d5bcc['filter'](_0x3795c6=>_0x3795c6['isEnabled']()),_0x58355d){const _0x4d6fac=[],_0xbb12b3=[],_0x5e0300=[],_0x1f24be=[];for(const _0x33be5d of _0x2d5bcc)_0x33be5d['id']['toLowerCase']()['includes'](_0x58355d)?_0x4d6fac['push'](_0x33be5d):_0x33be5d['title']['toLowerCase']()['includes'](_0x58355d)?_0xbb12b3['push'](_0x33be5d):_0x33be5d['aliases']&&_0x33be5d['aliases']['some'](_0x555d1e=>_0x555d1e['toLowerCase']()['includes'](_0x58355d))?_0x5e0300['push'](_0x33be5d):_0x33be5d['description']&&_0x33be5d['description']['toLowerCase']()['includes'](_0x58355d)&&_0x1f24be['push'](_0x33be5d);_0x2d5bcc=_0x4d6fac['concat'](_0xbb12b3,_0x5e0300,_0x1f24be);}return _0x2d5bcc;}}class E extends _0x29eff9{constructor(_0x370f36,_0x4466b6){super(_0x370f36),this['textPartView']=this['_createTextPartView'](_0x370f36,_0x4466b6),void 0x0!==_0x4466b6['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x4466b6['isIconColorInherited']),this['set']({'icon':_0x4466b6['icon']||_0x5eefca,'withText':!0x0,'label':_0x4466b6['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x48f279,_0x4a06ce){const _0x4a8ea4=new _0x37e8ed(_0x48f279);return _0x4a8ea4['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x4a06ce['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x4a06ce['description']}]}]:[this['labelView']]}),_0x4a8ea4;}}class j extends _0x3c653a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57ffa1){super(_0x57ffa1),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3bee3a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5ed7cb;for(const _0x52a7d4 in _0x3bee3a){const _0x56df0a=_0x52a7d4,_0x1f9863=_0x3bee3a[_0x56df0a];if('slashCommandLicenseKeyValid'==_0x1f9863||'slashCommandLicenseKeyInvalid'==_0x1f9863||'slashCommandLicenseKeyExpired'==_0x1f9863||'slashCommandLicenseKeyDomainLimit'==_0x1f9863||'slashCommandLicenseKeyNotAllowed'==_0x1f9863||'slashCommandLicenseKeyEvaluationLimit'==_0x1f9863||'slashCommandLicenseKeyUsageLimit'==_0x1f9863){delete _0x3bee3a[_0x56df0a],_0x5ed7cb=_0x1f9863,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x5ed7cb&&_0x3bee3a['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x5ed7cb&&_0x3bee3a['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x5ed7cb&&_0x3bee3a['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x5ed7cb&&_0x3bee3a['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x5ed7cb&&_0x3bee3a['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x5ed7cb&&_0x3bee3a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x4753a5=this['editor'],_0x1eeac0=this['editor']['plugins']['get']('SlashCommandEditing'),_0x27b6bf=_0x4753a5['config']['get']('mention.feeds');_0x27b6bf['push']({'marker':'/','feed':_0x51e38a=>_0x1eeac0['getMatchingCommands'](_0x51e38a),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x4753a5['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x4753a5['config']['set']('mention.feeds',_0x27b6bf);}['_overrideMentionExecuteListener'](){const _0x1384c8=this['editor'];_0x1384c8['commands']['get']('mention')['on']('execute',(_0x4cbe20,_0x20a128)=>{const _0xe0652c=_0x20a128[0x0],_0x59a345=_0x1384c8['model'];'/'===_0xe0652c['marker']&&_0x59a345['change'](_0x3f39df=>{_0x3f39df['remove'](_0xe0652c['range']),_0xe0652c['mention']['execute'](),_0x4cbe20['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x51d896){const _0x398b8f=this['editor']['locale'],_0x17c3a9=new E(_0x398b8f,_0x51d896);return _0x17c3a9['render'](),_0x17c3a9['element'];}}class _ extends _0x3c653a{static get['requires'](){return[_0x472dd8,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 _0x51aa1f}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x24751c}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x208302,uid as _0x5d297e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x58df62,IconQuote as _0x222a46,IconBulletedList as _0x843452,IconCodeBlock as _0x337751,IconBrowseFiles as _0x4110ff,IconEmoji as _0xb2aca1,IconHeading1 as _0x524ccc,IconHeading2 as _0x9eead1,IconHeading3 as _0x54645c,IconHeading4 as _0x48b064,IconHeading5 as _0x10ef32,IconHeading6 as _0x3dbd6c,IconHorizontalLine as _0x253482,IconHtml as _0x414c04,IconIndent as _0x9e387c,IconTable as _0x1a2260,IconTableOfContents as _0x3ec32c,IconNumberedList as _0x30ae89,IconOutdent as _0x497d8a,IconParagraph as _0x2d27d0,IconTodoList as _0x278496,IconFootnote as _0x1e84ef,IconPlay as _0x1e9c38}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2e7955,View as _0x3bc250}from'@ckeditor/ckeditor5-ui/dist/index.js';class O extends _0x51aa1f{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b6203){super(_0x4b6203),this['_allowedCommands']=null;}['afterInit'](){const _0x1d67db=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x437915=function(_0x461b31){let _0x3e935d=['heading4','heading5','heading6'];if(_0x461b31){const _0x2fdf3e=_0x461b31['map'](_0x282535=>_0x282535['model']);_0x3e935d=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x3bda78=>!_0x2fdf3e['includes'](_0x3bda78));}return _0x3e935d;}(this['editor']['config']['get']('heading.options'));let _0x237bf1=this['getDefaultCommands']()['filter'](_0x4ecddc=>!_0x437915['includes'](_0x4ecddc['id']))['filter'](_0x39089d=>!_0x1d67db['includes'](_0x39089d['commandName']));const _0x38cf6b=this['editor']['config']['get']('slashCommand.extraCommands');_0x38cf6b&&_0x38cf6b['length']&&(_0x237bf1=_0x237bf1['concat'](_0x38cf6b));const _0x1821fc=this['editor']['config']['get']('template.definitions');_0x1821fc&&_0x1821fc['length']&&(_0x237bf1=_0x237bf1['concat'](function(_0x49d8a8){return _0x49d8a8['map'](_0x153473=>{const {title:_0x1b37b1,icon:_0x3dc4c7,description:_0x5f046a,data:_0x1303bd}=_0x153473,_0x93d205={'id':K(_0x1b37b1,'template'),'commandName':'insertTemplate','execute':_0x1666b3=>{_0x1666b3['execute']('insertTemplate',_0x1303bd);},'description':_0x5f046a,'icon':_0x3dc4c7,'title':_0x1b37b1};return _0x3dc4c7&&(_0x93d205['isIconColorInherited']=!0x1),_0x93d205;});}(_0x1821fc)));const _0x3a3f3e=this['editor']['config']['get']('style.definitions');_0x3a3f3e&&_0x3a3f3e['length']&&(_0x237bf1=_0x237bf1['concat'](function(_0x30a87e){return _0x30a87e['map'](_0x1d9c6e=>({'id':K(_0x1d9c6e['name'],'style'),'commandName':'style','execute':_0xec4ee0=>{_0xec4ee0['execute']('style',{'styleName':_0x1d9c6e['name']});},'isEnabled':_0x141e92=>{const _0x40a462=_0x141e92['commands']['get']('style');return _0x40a462['isEnabled']&&_0x40a462['enabledStyles']['includes'](_0x1d9c6e['name']);},'title':_0x1d9c6e['name']}));}(_0x3a3f3e)));const _0x565a64=_0x237bf1['filter'](_0x309d95=>!_0x309d95['commandName']||void 0x0!==this['editor']['commands']['get'](_0x309d95['commandName'])),_0x323b69=[];for(const _0x54f80a of _0x565a64)_0x323b69['push']({'id':_0x54f80a['id'],'commandName':_0x54f80a['commandName'],'title':'function'==typeof _0x54f80a['title']?_0x54f80a['title'](this['editor']):_0x54f80a['title'],'description':_0x54f80a['description'],'icon':_0x54f80a['icon'],'isIconColorInherited':_0x54f80a['isIconColorInherited'],'aliases':_0x54f80a['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x54f80a),'execute':()=>this['_proxyExecute'](_0x54f80a)});this['_allowedCommands']=_0x323b69['sort'](M),async function(_0x24efc1){const _0x187c10=_0x80ba23([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]),_0x5f4082=0x305505ed,_0x5c0a1d=0x3052803d^_0x5f4082,_0x1ac296=window[_0x80ba23([0x44,0x61,0x74,0x65])][_0x80ba23([0x6e,0x6f,0x77])](),_0x47e98a=_0x24efc1[_0x80ba23([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30f1f4=new window[(_0x80ba23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e9de0=>{_0x47e98a[_0x80ba23([0x6f,0x6e,0x63,0x65])](_0x80ba23([0x72,0x65,0x61,0x64,0x79]),_0x3e9de0);}),_0x3a9d31={[_0x80ba23([0x6b,0x74,0x79])]:_0x80ba23([0x45,0x43]),[_0x80ba23([0x75,0x73,0x65])]:_0x80ba23([0x73,0x69,0x67]),[_0x80ba23([0x63,0x72,0x76])]:_0x80ba23([0x50,0x2d,0x32,0x35,0x36]),[_0x80ba23([0x78])]:_0x80ba23([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]),[_0x80ba23([0x79])]:_0x80ba23([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]),[_0x80ba23([0x61,0x6c,0x67])]:_0x80ba23([0x45,0x53,0x32,0x35,0x36])},_0x3966aa=_0x47e98a[_0x80ba23([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x80ba23([0x67,0x65,0x74])](_0x80ba23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15526f(){let _0x3b20b7,_0x182531=null,_0x597d72=null;try{if(_0x3966aa==_0x80ba23([0x47,0x50,0x4c]))return _0x80ba23([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b20b7=_0x380e6e(),!_0x3b20b7)return _0x80ba23([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b20b7[_0x80ba23([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x597d72=_0x2f82ab(_0x3b20b7[_0x80ba23([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b20b7[_0x80ba23([0x6a,0x74,0x69])])),await _0x43225d()?_0x3ca2e6()?_0x4eecef()?_0x80ba23([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x572076()?(_0x3b20b7[_0x80ba23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x80ba23([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x182531=_0x4efc6b(_0x80ba23([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d7e5e()):_0x80ba23([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x80ba23([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x80ba23([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x80ba23([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4eecef(){const _0xaf366f=[_0x80ba23([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x80ba23([0x74,0x72,0x69,0x61,0x6c])][_0x80ba23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b20b7[_0x80ba23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ac296/0x3e8:0xe10*_0x5c0a1d;return _0x3b20b7[_0x80ba23([0x65,0x78,0x70])]<_0xaf366f;}function _0x3ca2e6(){const _0x428ef9=_0x3b20b7[_0x80ba23([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x428ef9&&(!!_0x428ef9[_0x80ba23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x80ba23([0x2a]))||(!!_0x428ef9[_0x80ba23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x80ba23([0x53,0x43]))||(!!_0x428ef9[_0x80ba23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x80ba23([0x50,0x50]))||!(!_0x428ef9[_0x80ba23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x80ba23([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x310e58()))));}function _0x572076(){const _0x644da1=_0x3b20b7[_0x80ba23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x644da1||0x0==_0x644da1[_0x80ba23([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e2510}=new URL(window[_0x80ba23([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x644da1[_0x80ba23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e2510))return!0x0;const _0xf479d9=_0x1e2510[_0x80ba23([0x73,0x70,0x6c,0x69,0x74])](_0x80ba23([0x2e]));return _0x644da1[_0x80ba23([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54f070=>_0x54f070[_0x80ba23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x80ba23([0x2a])))[_0x80ba23([0x6d,0x61,0x70])](_0x3bd0ad=>_0x3bd0ad[_0x80ba23([0x73,0x70,0x6c,0x69,0x74])](_0x80ba23([0x2e])))[_0x80ba23([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d12ca=>_0x5d12ca[_0x80ba23([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf479d9[_0x80ba23([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x80ba23([0x6d,0x61,0x70])](_0x46a14d=>Array(_0xf479d9[_0x80ba23([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x46a14d[_0x80ba23([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x80ba23([0x66,0x69,0x6c,0x6c])](_0x46a14d[0x0]===_0x80ba23([0x2a])?_0x80ba23([0x2a]):'')[_0x80ba23([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x46a14d))[_0x80ba23([0x73,0x6f,0x6d,0x65])](_0x1c4e4a=>_0xf479d9[_0x80ba23([0x65,0x76,0x65,0x72,0x79])]((_0x159238,_0x42fdf5)=>_0x1c4e4a[_0x42fdf5]===_0x159238||_0x1c4e4a[_0x42fdf5]===_0x80ba23([0x2a])));}function _0x1d7e5e(){return _0x182531&&_0x597d72?new window[(_0x80ba23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2392d8,_0x327f4d)=>{_0x182531[_0x80ba23([0x74,0x68,0x65,0x6e])](_0x2392d8,_0x327f4d),_0x597d72[_0x80ba23([0x74,0x68,0x65,0x6e])](_0x309fd4=>{_0x309fd4!=_0x80ba23([0x56,0x61,0x6c,0x69,0x64])&&_0x2392d8(_0x309fd4);},_0x327f4d);}):_0x182531||_0x597d72||_0x80ba23([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f82ab(_0x1199b7,_0x34d3c8){return new window[(_0x80ba23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54b5b6=>{if(_0x54b592())return _0x54b5b6(_0x80ba23([0x56,0x61,0x6c,0x69,0x64]));_0x514ea7(),_0x47e98a[_0x80ba23([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x80ba23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b9d86=!0x1;const _0x1faede=_0x5d297e();function _0x4dae67(_0x8d028a){return!!_0x8d028a&&(typeof _0x8d028a===_0x80ba23([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x8d028a===_0x80ba23([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x8d028a[_0x80ba23([0x74,0x68,0x65,0x6e])]===_0x80ba23([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x8d028a[_0x80ba23([0x63,0x61,0x74,0x63,0x68])]===_0x80ba23([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47074d(_0x3e0d3d){_0x16f539(_0x3e0d3d)[_0x80ba23([0x74,0x68,0x65,0x6e])](_0x4ecb7e=>{if(!_0x4ecb7e||_0x4ecb7e[_0x80ba23([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x80ba23([0x6f,0x6b]))return _0x80ba23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3ccf14(_0xf16da(_0x1faede+_0x34d3c8))!=_0x4ecb7e[_0x80ba23([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x80ba23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x80ba23([0x56,0x61,0x6c,0x69,0x64]);})[_0x80ba23([0x74,0x68,0x65,0x6e])](_0x1e14b8=>(_0x1694ca(),_0x1e14b8),()=>{const _0x2b3627=_0x18c066();return null==_0x2b3627?(_0x1694ca(),_0x80ba23([0x56,0x61,0x6c,0x69,0x64])):_0x80ba23(_0x1ac296-_0x2b3627>(0x145981ed^_0x5f4082)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x80ba23([0x74,0x68,0x65,0x6e])](_0x54b5b6)[_0x80ba23([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54b5b6(_0x80ba23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21ccc6=0x3063eb6d^_0x5f4082;function _0x1694ca(){const _0x26d627=_0x80ba23([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ccf14(_0xf16da(_0x1199b7)),_0x4bff70=_0x47fb17(_0x3ccf14(window[_0x80ba23([0x4d,0x61,0x74,0x68])][_0x80ba23([0x63,0x65,0x69,0x6c])](_0x1ac296/_0x21ccc6)));window[_0x80ba23([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x80ba23([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26d627,_0x4bff70);}function _0x18c066(){const _0x27b5b4=_0x80ba23([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ccf14(_0xf16da(_0x1199b7)),_0xdbf2b8=window[_0x80ba23([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x80ba23([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27b5b4);return _0xdbf2b8?window[_0x80ba23([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47fb17(_0xdbf2b8),0x10)*_0x21ccc6:null;}function _0x16f539(_0x1896e7){return new window[(_0x80ba23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d7084,_0x4695a3)=>{_0x1896e7[_0x80ba23([0x74,0x68,0x65,0x6e])](_0x4d7084,_0x4695a3),window[_0x80ba23([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4695a3,0x3054d12d^_0x5f4082);});}}_0x47e98a[_0x80ba23([0x6f,0x6e])](_0x80ba23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c9eaf,_0x12dbac)=>{if(_0x12dbac[0x0]!=_0x1199b7)return _0x54b5b6(_0x80ba23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12dbac[0x1]={..._0x12dbac[0x1],[_0x80ba23([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1faede};},{[_0x80ba23([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x80ba23([0x68,0x69,0x67,0x68])}),_0x47e98a[_0x80ba23([0x6f,0x6e])](_0x80ba23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6b366b=>{_0x4dae67(_0x6b366b[_0x80ba23([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b9d86=!0x0,_0x47074d(_0x6b366b[_0x80ba23([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x80ba23([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x80ba23([0x6c,0x6f,0x77])}),_0x30f1f4[_0x80ba23([0x74,0x68,0x65,0x6e])](()=>{_0x1b9d86||_0x54b5b6(_0x80ba23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54b592(){return _0x47e98a[_0x80ba23([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x80ba23([0x76,0x69,0x65,0x77])][_0x80ba23([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x80ba23([0x61,0x75,0x74,0x6f]);}function _0x514ea7(){_0x47e98a[_0x80ba23([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x80ba23([0x76,0x69,0x65,0x77])][_0x80ba23([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x80ba23([0x61,0x75,0x74,0x6f]);}}function _0x4efc6b(_0x4bfdd8){const _0x2d0e6d=[new window[(_0x80ba23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7690b8=>setTimeout(_0x7690b8,0x305c3b21^_0x5f4082)),_0x30f1f4[_0x80ba23([0x74,0x68,0x65,0x6e])](()=>new window[(_0x80ba23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8cc16a=>{let _0x467beb=0x0;_0x47e98a[_0x80ba23([0x6d,0x6f,0x64,0x65,0x6c])][_0x80ba23([0x6f,0x6e])](_0x80ba23([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xb0e7e,_0xb0a79d)=>{_0xb0a79d[0x0][_0x80ba23([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x467beb++,_0x467beb==(0x30550005^_0x5f4082)&&(_0x8cc16a(),_0xb0e7e[_0x80ba23([0x6f,0x66,0x66])]());});}))];return window[_0x80ba23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x80ba23([0x72,0x61,0x63,0x65])](_0x2d0e6d)[_0x80ba23([0x74,0x68,0x65,0x6e])](()=>_0x4bfdd8);}async function _0x20b830(){await _0x30f1f4,_0x47e98a[_0x80ba23([0x6d,0x6f,0x64,0x65,0x6c])][_0x80ba23([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4350bb,_0x47e98a[_0x80ba23([0x6d,0x6f,0x64,0x65,0x6c])][_0x80ba23([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4350bb,_0x47e98a[_0x80ba23([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x80ba23([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x310e58(){return window[_0x80ba23([0x67,0x6c,0x6f,0x62])]&&window[_0x80ba23([0x67,0x6c,0x6f,0x62])][_0x80ba23([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1eebb5(_0x8f93b8){const _0x2d1688=_0x2e7d6c();_0x47e98a[_0x2d1688]=_0x80ba23([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x8f93b8,_0x8f93b8!=_0x80ba23([0x56,0x61,0x6c,0x69,0x64])&&_0x20b830();}function _0x2e7d6c(){const _0xf6ca4b=window[_0x80ba23([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x80ba23([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x80ba23([0x6e,0x6f,0x77])]())[_0x80ba23([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x80ba23([0x2e]),'');let _0x189fe9=_0x80ba23([0x75]);for(let _0x252d09=0x0;_0x252d09<_0xf6ca4b[_0x80ba23([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x252d09+=0x2){let _0x56d1c2=window[_0x80ba23([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf6ca4b[_0x80ba23([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x252d09,_0x252d09+0x2));_0x56d1c2>=_0x187c10[_0x80ba23([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56d1c2-=_0x187c10[_0x80ba23([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x189fe9+=_0x187c10[_0x56d1c2];}return _0x189fe9;}function _0x380e6e(){const _0x4ad4d0=_0x3966aa[_0x80ba23([0x73,0x70,0x6c,0x69,0x74])](_0x80ba23([0x2e]));if(0x3!=_0x4ad4d0[_0x80ba23([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb47b79(_0x4ad4d0[0x1]);function _0xb47b79(_0x14fde0){const _0x35e629=_0x151dcf(_0x14fde0);return _0x35e629&&_0x315ce1()?_0x35e629:null;function _0x315ce1(){const _0x4e58f1=_0x35e629[_0x80ba23([0x6a,0x74,0x69])],_0x3eb78d=window[_0x80ba23([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e58f1[_0x80ba23([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e58f1[_0x80ba23([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x29cdad={..._0x35e629,[_0x80ba23([0x6a,0x74,0x69])]:_0x4e58f1[_0x80ba23([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e58f1[_0x80ba23([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x29cdad[_0x80ba23([0x76,0x63])],_0xf16da(_0x29cdad)==_0x3eb78d;}}}async function _0x43225d(){let _0x461ce3=!0x0;try{const _0xdd8c42=_0x3966aa[_0x80ba23([0x73,0x70,0x6c,0x69,0x74])](_0x80ba23([0x2e])),[_0x52c7ef,_0x1741c7,_0x54d176]=_0xdd8c42;return _0x32b075(_0x52c7ef),await _0x14c4eb(_0x52c7ef,_0x1741c7,_0x54d176),_0x461ce3;}catch{return!0x1;}function _0x32b075(_0x2e6050){const _0x2d6ae3=_0x151dcf(_0x2e6050);_0x2d6ae3&&_0x2d6ae3[_0x80ba23([0x61,0x6c,0x67])]==_0x80ba23([0x45,0x53,0x32,0x35,0x36])||(_0x461ce3=!0x1);}async function _0x14c4eb(_0x596140,_0x4f86f7,_0xed69b7){const _0x56a656=window[_0x80ba23([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x80ba23([0x66,0x72,0x6f,0x6d])](_0x201e45(_0xed69b7),_0x2f32ec=>_0x2f32ec[_0x80ba23([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b1216=new window[(_0x80ba23([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x80ba23([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x596140+_0x80ba23([0x2e])+_0x4f86f7),_0x42ed47=window[_0x80ba23([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x80ba23([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x42ed47)return;const _0x67e1a1=await _0x42ed47[_0x80ba23([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x80ba23([0x6a,0x77,0x6b]),_0x3a9d31,{[_0x80ba23([0x6e,0x61,0x6d,0x65])]:_0x80ba23([0x45,0x43,0x44,0x53,0x41]),[_0x80ba23([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x80ba23([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x80ba23([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x42ed47[_0x80ba23([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x80ba23([0x6e,0x61,0x6d,0x65])]:_0x80ba23([0x45,0x43,0x44,0x53,0x41]),[_0x80ba23([0x68,0x61,0x73,0x68])]:{[_0x80ba23([0x6e,0x61,0x6d,0x65])]:_0x80ba23([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x67e1a1,_0x56a656,_0x4b1216)||(_0x461ce3=!0x1);}}function _0x151dcf(_0x5f7780){return _0x5f7780[_0x80ba23([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x80ba23([0x65,0x79]))?JSON[_0x80ba23([0x70,0x61,0x72,0x73,0x65])](_0x201e45(_0x5f7780)):null;}function _0x201e45(_0x5553a2){return window[_0x80ba23([0x61,0x74,0x6f,0x62])](_0x5553a2[_0x80ba23([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x80ba23([0x2b]))[_0x80ba23([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x80ba23([0x2f])));}function _0xf16da(_0x378ef7){let _0x4aec77=0x1505;function _0x28ac24(_0x1dfe3b){for(let _0xda1225=0x0;_0xda1225<_0x1dfe3b[_0x80ba23([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xda1225++){const _0x18f2a2=_0x1dfe3b[_0x80ba23([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xda1225);_0x4aec77=(_0x4aec77<<0x5)+_0x4aec77+_0x18f2a2,_0x4aec77&=_0x4aec77;}}function _0x356655(_0x3ef68c){Array[_0x80ba23([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ef68c)?_0x3ef68c[_0x80ba23([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x356655):_0x3ef68c&&typeof _0x3ef68c==_0x80ba23([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x80ba23([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ef68c)[_0x80ba23([0x73,0x6f,0x72,0x74])]()[_0x80ba23([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16e634,_0x261b51])=>{_0x28ac24(_0x16e634),_0x356655(_0x261b51);}):_0x28ac24(window[_0x80ba23([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ef68c));}return _0x356655(_0x378ef7),_0x4aec77>>>0x0;}function _0x3ccf14(_0x4aed23){return _0x4aed23[_0x80ba23([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x80ba23([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x80ba23([0x30]));}function _0x47fb17(_0x451d0a){return _0x451d0a[_0x80ba23([0x73,0x70,0x6c,0x69,0x74])]('')[_0x80ba23([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x80ba23([0x6a,0x6f,0x69,0x6e])]('');}function _0x4350bb(){}function _0x80ba23(_0x21e5eb){return _0x21e5eb['map'](_0x525b7b=>String['fromCharCode'](_0x525b7b))['join']('');}_0x1eebb5(await _0x15526f());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x1b30e1=_0x8ddc06=>function(_0x55d901,_0x3255ae){const t=_0x55d901['t'],_0x9959d0=_0x55d901['t'];switch(_0x3255ae){case'AI\x20Assistant':return _0x9959d0('AI\x20Assistant');case'Block\x20quote':return _0x9959d0('Block\x20quote');case'Bulleted\x20list':return _0x9959d0('Bulleted\x20list');case'Insert\x20code\x20block':return _0x9959d0('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x9959d0('Open\x20file\x20manager');case'Insert\x20image':return _0x9959d0('Insert\x20image');case'Heading\x201':return _0x9959d0('Heading\x201');case'Heading\x202':return _0x9959d0('Heading\x202');case'Heading\x203':return _0x9959d0('Heading\x203');case'Heading\x204':return _0x9959d0('Heading\x204');case'Heading\x205':return _0x9959d0('Heading\x205');case'Heading\x206':return _0x9959d0('Heading\x206');case'Horizontal\x20line':return _0x9959d0('Horizontal\x20line');case'Insert\x20HTML':return _0x9959d0('Insert\x20HTML');case'Increase\x20indent':return _0x9959d0('Increase\x20indent');case'Insert\x20table':return _0x9959d0('Insert\x20table');case'Table\x20of\x20contents':return _0x9959d0('Table\x20of\x20contents');case'Numbered\x20list':return _0x9959d0('Numbered\x20list');case'Decrease\x20indent':return _0x9959d0('Decrease\x20indent');case'Paragraph':return _0x9959d0('Paragraph');case'To-do\x20list':return _0x9959d0('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 _0x3255ae;}}(this['editor']['locale'],_0x8ddc06);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x58df62,'title':_0x1b30e1('AI\x20Assistant'),'description':_0x1b30e1('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0xa3d7a6=>{setTimeout(()=>_0xa3d7a6['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x222a46,'title':_0x1b30e1('Block\x20quote'),'description':_0x1b30e1('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x843452,'title':_0x1b30e1('Bulleted\x20list'),'description':_0x1b30e1('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x337751,'title':_0x1b30e1('Insert\x20code\x20block'),'description':_0x1b30e1('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x4110ff,'title':_0x1b30e1('Open\x20file\x20manager'),'description':_0x1b30e1('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x4110ff,'title':_0x1b30e1('Insert\x20image'),'description':_0x1b30e1('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0xb2aca1,'title':_0x1b30e1('Emoji'),'description':_0x1b30e1('Insert\x20an\x20emoji'),'execute':_0x27282a=>{setTimeout(()=>_0x27282a['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x524ccc,'title':_0x1b30e1('Heading\x201'),'description':_0x1b30e1('Create\x20a\x20heading\x20level\x201'),'execute':_0x421dba=>{_0x421dba['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x9eead1,'title':_0x1b30e1('Heading\x202'),'description':_0x1b30e1('Create\x20a\x20heading\x20level\x202'),'execute':_0xd0d99f=>{_0xd0d99f['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x54645c,'title':_0x1b30e1('Heading\x203'),'description':_0x1b30e1('Create\x20a\x20heading\x20level\x203'),'execute':_0x55ed95=>{_0x55ed95['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x48b064,'title':_0x1b30e1('Heading\x204'),'description':_0x1b30e1('Create\x20a\x20heading\x20level\x204'),'execute':_0x31f250=>{_0x31f250['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x10ef32,'title':_0x1b30e1('Heading\x205'),'description':_0x1b30e1('Create\x20a\x20heading\x20level\x205'),'execute':_0x433976=>{_0x433976['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x3dbd6c,'title':_0x1b30e1('Heading\x206'),'description':_0x1b30e1('Create\x20a\x20heading\x20level\x206'),'execute':_0x3e6027=>{_0x3e6027['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x253482,'title':_0x1b30e1('Horizontal\x20line'),'description':_0x1b30e1('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x414c04,'title':_0x1b30e1('Insert\x20HTML'),'description':_0x1b30e1('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x9e387c,'title':_0x1b30e1('Increase\x20indent'),'description':_0x1b30e1('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x1b30e1('Insert\x20Mermaid\x20diagram'),'description':_0x1b30e1('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x1a2260,'title':_0x1b30e1('Insert\x20table'),'description':_0x1b30e1('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x3ec32c,'title':_0x1b30e1('Table\x20of\x20contents'),'description':_0x1b30e1('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x30ae89,'title':_0x1b30e1('Numbered\x20list'),'description':_0x1b30e1('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x497d8a,'title':_0x1b30e1('Decrease\x20indent'),'description':_0x1b30e1('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x2d27d0,'title':_0x1b30e1('Paragraph'),'description':_0x1b30e1('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x278496,'title':_0x1b30e1('To-do\x20list'),'description':_0x1b30e1('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x1e84ef,'title':_0x1b30e1('Footnote'),'description':_0x1b30e1('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x2accb4){return _0x2accb4['isEnabled']?_0x2accb4['isEnabled'](this['editor']):!_0x2accb4['commandName']||this['editor']['commands']['get'](_0x2accb4['commandName'])['isEnabled'];}['_proxyExecute'](_0x3a9ab2){if(_0x3a9ab2['execute'])_0x3a9ab2['execute'](this['editor']);else{if(!_0x3a9ab2['commandName'])throw new _0x208302('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x3a9ab2});this['editor']['execute'](_0x3a9ab2['commandName']);}}}function M(_0x5ec96e,_0x467c32){return _0x5ec96e['title']<_0x467c32['title']?-0x1:_0x5ec96e['title']>_0x467c32['title']?0x1:0x0;}function K(_0x3a1d89,_0x222c55){return _0x222c55+'-'+_0x3a1d89['toLowerCase']()['split']('\x20')['join']('-');}class P extends _0x51aa1f{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x2d15b3){const _0x44e25f=_0x2d15b3&&_0x2d15b3['toLowerCase']();let _0x14b67a=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x14b67a=_0x14b67a['filter'](_0x158f8b=>_0x158f8b['isEnabled']()),_0x44e25f){const _0x355ded=[],_0x229dea=[],_0x2720e0=[],_0x2debe5=[];for(const _0x300763 of _0x14b67a)_0x300763['id']['toLowerCase']()['includes'](_0x44e25f)?_0x355ded['push'](_0x300763):_0x300763['title']['toLowerCase']()['includes'](_0x44e25f)?_0x229dea['push'](_0x300763):_0x300763['aliases']&&_0x300763['aliases']['some'](_0x168a45=>_0x168a45['toLowerCase']()['includes'](_0x44e25f))?_0x2720e0['push'](_0x300763):_0x300763['description']&&_0x300763['description']['toLowerCase']()['includes'](_0x44e25f)&&_0x2debe5['push'](_0x300763);_0x14b67a=_0x355ded['concat'](_0x229dea,_0x2720e0,_0x2debe5);}return _0x14b67a;}}class E extends _0x2e7955{constructor(_0x29bf50,_0x5e1fdd){super(_0x29bf50),this['textPartView']=this['_createTextPartView'](_0x29bf50,_0x5e1fdd),void 0x0!==_0x5e1fdd['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x5e1fdd['isIconColorInherited']),this['set']({'icon':_0x5e1fdd['icon']||_0x1e9c38,'withText':!0x0,'label':_0x5e1fdd['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x1ae5bf,_0x5986e6){const _0x189a0c=new _0x3bc250(_0x1ae5bf);return _0x189a0c['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x5986e6['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x5986e6['description']}]}]:[this['labelView']]}),_0x189a0c;}}class j extends _0x51aa1f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56505b){super(_0x56505b),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd31c0c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x6be42d;for(const _0x56c61a in _0xd31c0c){const _0x23b77e=_0x56c61a,_0x117b87=_0xd31c0c[_0x23b77e];if('slashCommandLicenseKeyValid'==_0x117b87||'slashCommandLicenseKeyInvalid'==_0x117b87||'slashCommandLicenseKeyExpired'==_0x117b87||'slashCommandLicenseKeyDomainLimit'==_0x117b87||'slashCommandLicenseKeyNotAllowed'==_0x117b87||'slashCommandLicenseKeyEvaluationLimit'==_0x117b87||'slashCommandLicenseKeyUsageLimit'==_0x117b87){delete _0xd31c0c[_0x23b77e],_0x6be42d=_0x117b87,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x6be42d&&_0xd31c0c['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x6be42d&&_0xd31c0c['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x6be42d&&_0xd31c0c['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x6be42d&&_0xd31c0c['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x6be42d&&_0xd31c0c['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x6be42d&&_0xd31c0c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x3cc3e0=this['editor'],_0x4e3ded=this['editor']['plugins']['get']('SlashCommandEditing'),_0x2be570=_0x3cc3e0['config']['get']('mention.feeds');_0x2be570['push']({'marker':'/','feed':_0x34a24d=>_0x4e3ded['getMatchingCommands'](_0x34a24d),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x3cc3e0['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x3cc3e0['config']['set']('mention.feeds',_0x2be570);}['_overrideMentionExecuteListener'](){const _0x32ab69=this['editor'];_0x32ab69['commands']['get']('mention')['on']('execute',(_0x151a22,_0x2c3a0f)=>{const _0x9fdadc=_0x2c3a0f[0x0],_0x2156a5=_0x32ab69['model'];'/'===_0x9fdadc['marker']&&_0x2156a5['change'](_0x285fd4=>{_0x285fd4['remove'](_0x9fdadc['range']),_0x9fdadc['mention']['execute'](),_0x151a22['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x572480){const _0x78eb10=this['editor']['locale'],_0x51ed34=new E(_0x78eb10,_0x572480);return _0x51ed34['render'](),_0x51ed34['element'];}}class _ extends _0x51aa1f{static get['requires'](){return[_0x24751c,P,j];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{_ as SlashCommand,O as SlashCommandConfig,P as SlashCommandEditing,j as SlashCommandUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-slash-command",
3
- "version": "48.0.0-alpha.10",
3
+ "version": "48.0.0-alpha.11",
4
4
  "description": "Slash command feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,14 +21,14 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.0.0-alpha.10",
25
- "@ckeditor/ckeditor5-heading": "48.0.0-alpha.10",
26
- "@ckeditor/ckeditor5-icons": "48.0.0-alpha.10",
27
- "@ckeditor/ckeditor5-mention": "48.0.0-alpha.10",
28
- "@ckeditor/ckeditor5-style": "48.0.0-alpha.10",
29
- "@ckeditor/ckeditor5-template": "48.0.0-alpha.10",
30
- "@ckeditor/ckeditor5-ui": "48.0.0-alpha.10",
31
- "@ckeditor/ckeditor5-utils": "48.0.0-alpha.10"
24
+ "@ckeditor/ckeditor5-core": "48.0.0-alpha.11",
25
+ "@ckeditor/ckeditor5-heading": "48.0.0-alpha.11",
26
+ "@ckeditor/ckeditor5-icons": "48.0.0-alpha.11",
27
+ "@ckeditor/ckeditor5-mention": "48.0.0-alpha.11",
28
+ "@ckeditor/ckeditor5-style": "48.0.0-alpha.11",
29
+ "@ckeditor/ckeditor5-template": "48.0.0-alpha.11",
30
+ "@ckeditor/ckeditor5-ui": "48.0.0-alpha.11",
31
+ "@ckeditor/ckeditor5-utils": "48.0.0-alpha.11"
32
32
  },
33
33
  "files": [
34
34
  "dist",