@ckeditor/ckeditor5-slash-command 48.2.0-alpha.4 → 48.2.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 _0x5a2707}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x2c271a}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x52e1ad,uid as _0x124a38}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0xff8171,IconQuote as _0x31c48a,IconBulletedList as _0x463b54,IconCodeBlock as _0x669f61,IconBrowseFiles as _0x28f0b0,IconEmoji as _0x38c46e,IconHeading1 as _0x595360,IconHeading2 as _0x2b4137,IconHeading3 as _0x55449f,IconHeading4 as _0x2abb01,IconHeading5 as _0x433d2f,IconHeading6 as _0x5bc8a7,IconHorizontalLine as _0x329a00,IconHtml as _0x55d51d,IconIndent as _0x5a837b,IconTable as _0x5e239a,IconTableOfContents as _0x124161,IconNumberedList as _0x22600b,IconOutdent as _0x32c3db,IconParagraph as _0x19bb4c,IconTodoList as _0x11a0d3,IconFootnote as _0x7b34a1,IconPlay as _0x120702}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3634b9,View as _0x39ac7a}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x5a2707{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31ce14){super(_0x31ce14),this['_allowedCommands']=null;}['afterInit'](){const _0x39f13c=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x3d791d=function(_0x48f103){let _0x9d2ece=['heading4','heading5','heading6'];if(_0x48f103){const _0x25ca90=_0x48f103['map'](_0x38bab6=>_0x38bab6['model']);_0x9d2ece=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x100009=>!_0x25ca90['includes'](_0x100009));}return _0x9d2ece;}(this['editor']['config']['get']('heading.options'));let _0x406019=this['getDefaultCommands']()['filter'](_0x28a0d1=>!_0x3d791d['includes'](_0x28a0d1['id']))['filter'](_0x1bbaed=>!_0x39f13c['includes'](_0x1bbaed['commandName']));const _0x4d56bc=this['editor']['config']['get']('slashCommand.extraCommands');_0x4d56bc&&_0x4d56bc['length']&&(_0x406019=_0x406019['concat'](_0x4d56bc));const _0x440996=this['editor']['config']['get']('template.definitions');_0x440996&&_0x440996['length']&&(_0x406019=_0x406019['concat'](function(_0x49f5a9){return _0x49f5a9['map'](_0x430ec1=>{const {title:_0x579824,icon:_0x486cce,description:_0x2e9e89,data:_0x129b2c}=_0x430ec1,_0x3b1b3c={'id':O(_0x579824,'template'),'commandName':'insertTemplate','execute':_0x37daac=>{_0x37daac['execute']('insertTemplate',_0x129b2c);},'description':_0x2e9e89,'icon':_0x486cce,'title':_0x579824};return _0x486cce&&(_0x3b1b3c['isIconColorInherited']=!0x1),_0x3b1b3c;});}(_0x440996)));const _0x46c220=this['editor']['config']['get']('style.definitions');_0x46c220&&_0x46c220['length']&&(_0x406019=_0x406019['concat'](function(_0x2d6af6){return _0x2d6af6['map'](_0x2cc320=>({'id':O(_0x2cc320['name'],'style'),'commandName':'style','execute':_0x1e0c87=>{_0x1e0c87['execute']('style',{'styleName':_0x2cc320['name']});},'isEnabled':_0x4b78f0=>{const _0xdef294=_0x4b78f0['commands']['get']('style');return _0xdef294['isEnabled']&&_0xdef294['enabledStyles']['includes'](_0x2cc320['name']);},'title':_0x2cc320['name']}));}(_0x46c220)));const _0x22b9a3=_0x406019['filter'](_0x123224=>!_0x123224['commandName']||void 0x0!==this['editor']['commands']['get'](_0x123224['commandName'])),_0x204cb3=[];for(const _0x4f1457 of _0x22b9a3)_0x204cb3['push']({'id':_0x4f1457['id'],'commandName':_0x4f1457['commandName'],'title':'function'==typeof _0x4f1457['title']?_0x4f1457['title'](this['editor']):_0x4f1457['title'],'description':_0x4f1457['description'],'icon':_0x4f1457['icon'],'isIconColorInherited':_0x4f1457['isIconColorInherited'],'aliases':_0x4f1457['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x4f1457),'execute':()=>this['_proxyExecute'](_0x4f1457)});this['_allowedCommands']=_0x204cb3['sort'](S),async function(_0x49b626){const _0x1f4481=_0x49c57e([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]),_0x15c47b=0x305505ed,_0x4cee94=0x30528e4d^_0x15c47b,_0x5c90ac=window[_0x49c57e([0x44,0x61,0x74,0x65])][_0x49c57e([0x6e,0x6f,0x77])](),_0x3660a7=_0x49b626[_0x49c57e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x563a4d=new window[(_0x49c57e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4555d9=>{_0x3660a7[_0x49c57e([0x6f,0x6e,0x63,0x65])](_0x49c57e([0x72,0x65,0x61,0x64,0x79]),_0x4555d9);}),_0x568f6f={[_0x49c57e([0x6b,0x74,0x79])]:_0x49c57e([0x45,0x43]),[_0x49c57e([0x75,0x73,0x65])]:_0x49c57e([0x73,0x69,0x67]),[_0x49c57e([0x63,0x72,0x76])]:_0x49c57e([0x50,0x2d,0x32,0x35,0x36]),[_0x49c57e([0x78])]:_0x49c57e([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]),[_0x49c57e([0x79])]:_0x49c57e([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]),[_0x49c57e([0x61,0x6c,0x67])]:_0x49c57e([0x45,0x53,0x32,0x35,0x36])},_0x5702f2=_0x3660a7[_0x49c57e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49c57e([0x67,0x65,0x74])](_0x49c57e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d0dde(){let _0x5a288b,_0x36607b=null,_0x5380f5=null;try{if(_0x5702f2==_0x49c57e([0x47,0x50,0x4c]))return _0x49c57e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a288b=_0x24e928(),!_0x5a288b)return _0x49c57e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a288b[_0x49c57e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5380f5=_0x57b4a0(_0x5a288b[_0x49c57e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a288b[_0x49c57e([0x6a,0x74,0x69])])),await _0xde5c16()?_0x1666b6()?_0x9aa84c()?_0x49c57e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x43ca1e()?(_0x5a288b[_0x49c57e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49c57e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36607b=_0x147c06(_0x49c57e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x29dde2()):_0x49c57e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49c57e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49c57e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x49c57e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x9aa84c(){const _0x39685b=[_0x49c57e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49c57e([0x74,0x72,0x69,0x61,0x6c])][_0x49c57e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a288b[_0x49c57e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c90ac/0x3e8:0xe10*_0x4cee94;return _0x5a288b[_0x49c57e([0x65,0x78,0x70])]<_0x39685b;}function _0x1666b6(){const _0x5251dc=_0x5a288b[_0x49c57e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5251dc&&(!!_0x5251dc[_0x49c57e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c57e([0x2a]))||(!!_0x5251dc[_0x49c57e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c57e([0x53,0x43]))||(!!_0x5251dc[_0x49c57e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c57e([0x50,0x50]))||!(!_0x5251dc[_0x49c57e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c57e([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x5abe8d()))));}function _0x43ca1e(){const _0x3a2767=_0x5a288b[_0x49c57e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a2767||0x0==_0x3a2767[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5542c1}=new URL(window[_0x49c57e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a2767[_0x49c57e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5542c1))return!0x0;const _0x524016=_0x5542c1[_0x49c57e([0x73,0x70,0x6c,0x69,0x74])](_0x49c57e([0x2e]));return _0x3a2767[_0x49c57e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40b02d=>_0x40b02d[_0x49c57e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c57e([0x2a])))[_0x49c57e([0x6d,0x61,0x70])](_0x4c900e=>_0x4c900e[_0x49c57e([0x73,0x70,0x6c,0x69,0x74])](_0x49c57e([0x2e])))[_0x49c57e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24e551=>_0x24e551[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x524016[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49c57e([0x6d,0x61,0x70])](_0x52e8bf=>Array(_0x524016[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x52e8bf[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49c57e([0x66,0x69,0x6c,0x6c])](_0x52e8bf[0x0]===_0x49c57e([0x2a])?_0x49c57e([0x2a]):'')[_0x49c57e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x52e8bf))[_0x49c57e([0x73,0x6f,0x6d,0x65])](_0x2853c2=>_0x524016[_0x49c57e([0x65,0x76,0x65,0x72,0x79])]((_0x58807c,_0x242634)=>_0x2853c2[_0x242634]===_0x58807c||_0x2853c2[_0x242634]===_0x49c57e([0x2a])));}function _0x29dde2(){return _0x36607b&&_0x5380f5?new window[(_0x49c57e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35db50,_0x382a1b)=>{_0x36607b[_0x49c57e([0x74,0x68,0x65,0x6e])](_0x35db50,_0x382a1b),_0x5380f5[_0x49c57e([0x74,0x68,0x65,0x6e])](_0xa3f486=>{_0xa3f486!=_0x49c57e([0x56,0x61,0x6c,0x69,0x64])&&_0x35db50(_0xa3f486);},_0x382a1b);}):_0x36607b||_0x5380f5||_0x49c57e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x57b4a0(_0x1f476e,_0x46e274){return new window[(_0x49c57e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52a533=>{if(_0x4ce257())return _0x52a533(_0x49c57e([0x56,0x61,0x6c,0x69,0x64]));_0x494990(),_0x3660a7[_0x49c57e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49c57e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x362913=!0x1;const _0x296626=_0x124a38();function _0x35662f(_0x4be98a){return!!_0x4be98a&&(typeof _0x4be98a===_0x49c57e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4be98a===_0x49c57e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4be98a[_0x49c57e([0x74,0x68,0x65,0x6e])]===_0x49c57e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4be98a[_0x49c57e([0x63,0x61,0x74,0x63,0x68])]===_0x49c57e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x525ddc(_0x55ba92){_0x2859dd(_0x55ba92)[_0x49c57e([0x74,0x68,0x65,0x6e])](_0xbf181f=>{if(!_0xbf181f||_0xbf181f[_0x49c57e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49c57e([0x6f,0x6b]))return _0x49c57e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b5b00(_0x15cba6(_0x296626+_0x46e274))!=_0xbf181f[_0x49c57e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49c57e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49c57e([0x56,0x61,0x6c,0x69,0x64]);})[_0x49c57e([0x74,0x68,0x65,0x6e])](_0x3ac6c1=>(_0x6a69c1(),_0x3ac6c1),()=>{const _0x2f0cdd=_0x2c9bf3();return null==_0x2f0cdd?(_0x6a69c1(),_0x49c57e([0x56,0x61,0x6c,0x69,0x64])):_0x49c57e(_0x5c90ac-_0x2f0cdd>(0x145981ed^_0x15c47b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49c57e([0x74,0x68,0x65,0x6e])](_0x52a533)[_0x49c57e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x52a533(_0x49c57e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc5327c=0x3063eb6d^_0x15c47b;function _0x6a69c1(){const _0x5c2d45=_0x49c57e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b5b00(_0x15cba6(_0x1f476e)),_0x3ec05c=_0x5b58ea(_0x4b5b00(window[_0x49c57e([0x4d,0x61,0x74,0x68])][_0x49c57e([0x63,0x65,0x69,0x6c])](_0x5c90ac/_0xc5327c)));window[_0x49c57e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49c57e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c2d45,_0x3ec05c);}function _0x2c9bf3(){const _0x345a1b=_0x49c57e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b5b00(_0x15cba6(_0x1f476e)),_0x4c3c40=window[_0x49c57e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49c57e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x345a1b);return _0x4c3c40?window[_0x49c57e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b58ea(_0x4c3c40),0x10)*_0xc5327c:null;}function _0x2859dd(_0x4604ff){return new window[(_0x49c57e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bc0d5,_0x4f36c1)=>{_0x4604ff[_0x49c57e([0x74,0x68,0x65,0x6e])](_0x1bc0d5,_0x4f36c1),window[_0x49c57e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f36c1,0x3054d12d^_0x15c47b);});}}_0x3660a7[_0x49c57e([0x6f,0x6e])](_0x49c57e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x145fcb,_0x11b189)=>{if(_0x11b189[0x0]!=_0x1f476e)return _0x52a533(_0x49c57e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11b189[0x1]={..._0x11b189[0x1],[_0x49c57e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x296626};},{[_0x49c57e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49c57e([0x68,0x69,0x67,0x68])}),_0x3660a7[_0x49c57e([0x6f,0x6e])](_0x49c57e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ac151=>{_0x35662f(_0x3ac151[_0x49c57e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x362913=!0x0,_0x525ddc(_0x3ac151[_0x49c57e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49c57e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49c57e([0x6c,0x6f,0x77])}),_0x563a4d[_0x49c57e([0x74,0x68,0x65,0x6e])](()=>{_0x362913||_0x52a533(_0x49c57e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ce257(){return _0x3660a7[_0x49c57e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49c57e([0x76,0x69,0x65,0x77])][_0x49c57e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49c57e([0x61,0x75,0x74,0x6f]);}function _0x494990(){_0x3660a7[_0x49c57e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49c57e([0x76,0x69,0x65,0x77])][_0x49c57e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49c57e([0x61,0x75,0x74,0x6f]);}}function _0x147c06(_0x40eeef){const _0x40b808=[new window[(_0x49c57e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x417276=>setTimeout(_0x417276,0x305c3b21^_0x15c47b)),_0x563a4d[_0x49c57e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49c57e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x63d69c=>{let _0x3c3bed=0x0;_0x3660a7[_0x49c57e([0x6d,0x6f,0x64,0x65,0x6c])][_0x49c57e([0x6f,0x6e])](_0x49c57e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e771e,_0xb32e1e)=>{_0xb32e1e[0x0][_0x49c57e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c3bed++,_0x3c3bed==(0x30550005^_0x15c47b)&&(_0x63d69c(),_0x1e771e[_0x49c57e([0x6f,0x66,0x66])]());});}))];return window[_0x49c57e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49c57e([0x72,0x61,0x63,0x65])](_0x40b808)[_0x49c57e([0x74,0x68,0x65,0x6e])](()=>_0x40eeef);}async function _0x1c880a(){await _0x563a4d,_0x3660a7[_0x49c57e([0x6d,0x6f,0x64,0x65,0x6c])][_0x49c57e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25dbcc,_0x3660a7[_0x49c57e([0x6d,0x6f,0x64,0x65,0x6c])][_0x49c57e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25dbcc,_0x3660a7[_0x49c57e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49c57e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5abe8d(){return window[_0x49c57e([0x67,0x6c,0x6f,0x62])]&&window[_0x49c57e([0x67,0x6c,0x6f,0x62])][_0x49c57e([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0xfd4805(_0xb4325a){const _0x166d53=_0x5ae4b2();_0x3660a7[_0x166d53]=_0x49c57e([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb4325a,_0xb4325a!=_0x49c57e([0x56,0x61,0x6c,0x69,0x64])&&_0x1c880a();}function _0x5ae4b2(){const _0x3024f0=window[_0x49c57e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49c57e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49c57e([0x6e,0x6f,0x77])]())[_0x49c57e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49c57e([0x2e]),'');let _0x4633bd=_0x49c57e([0x75]);for(let _0x2da04a=0x0;_0x2da04a<_0x3024f0[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2da04a+=0x2){let _0x5cfe81=window[_0x49c57e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3024f0[_0x49c57e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2da04a,_0x2da04a+0x2));_0x5cfe81>=_0x1f4481[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5cfe81-=_0x1f4481[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4633bd+=_0x1f4481[_0x5cfe81];}return _0x4633bd;}function _0x24e928(){const _0x836e53=_0x5702f2[_0x49c57e([0x73,0x70,0x6c,0x69,0x74])](_0x49c57e([0x2e]));if(0x3!=_0x836e53[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x376a77(_0x836e53[0x1]);function _0x376a77(_0x24734b){const _0x40906c=_0x4dee22(_0x24734b);return _0x40906c&&_0x5caa9e()?_0x40906c:null;function _0x5caa9e(){const _0x25f1e3=_0x40906c[_0x49c57e([0x6a,0x74,0x69])],_0x235840=window[_0x49c57e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25f1e3[_0x49c57e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25f1e3[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x533d2a={..._0x40906c,[_0x49c57e([0x6a,0x74,0x69])]:_0x25f1e3[_0x49c57e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25f1e3[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x533d2a[_0x49c57e([0x76,0x63])],_0x15cba6(_0x533d2a)==_0x235840;}}}async function _0xde5c16(){let _0x5d0e3c=!0x0;try{const _0x4d7e4b=_0x5702f2[_0x49c57e([0x73,0x70,0x6c,0x69,0x74])](_0x49c57e([0x2e])),[_0x530d2b,_0x2b005a,_0x45b07c]=_0x4d7e4b;return _0x1ae4ca(_0x530d2b),await _0x3e300c(_0x530d2b,_0x2b005a,_0x45b07c),_0x5d0e3c;}catch{return!0x1;}function _0x1ae4ca(_0x4b2d3e){const _0x4451c8=_0x4dee22(_0x4b2d3e);_0x4451c8&&_0x4451c8[_0x49c57e([0x61,0x6c,0x67])]==_0x49c57e([0x45,0x53,0x32,0x35,0x36])||(_0x5d0e3c=!0x1);}async function _0x3e300c(_0x6450d5,_0x4be810,_0x37e3e0){const _0x5d8c5c=window[_0x49c57e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49c57e([0x66,0x72,0x6f,0x6d])](_0x16be0a(_0x37e3e0),_0x54ab05=>_0x54ab05[_0x49c57e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12247f=new window[(_0x49c57e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49c57e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6450d5+_0x49c57e([0x2e])+_0x4be810),_0x599928=window[_0x49c57e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49c57e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x599928)return;const _0x1a6768=await _0x599928[_0x49c57e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49c57e([0x6a,0x77,0x6b]),_0x568f6f,{[_0x49c57e([0x6e,0x61,0x6d,0x65])]:_0x49c57e([0x45,0x43,0x44,0x53,0x41]),[_0x49c57e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49c57e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49c57e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x599928[_0x49c57e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49c57e([0x6e,0x61,0x6d,0x65])]:_0x49c57e([0x45,0x43,0x44,0x53,0x41]),[_0x49c57e([0x68,0x61,0x73,0x68])]:{[_0x49c57e([0x6e,0x61,0x6d,0x65])]:_0x49c57e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a6768,_0x5d8c5c,_0x12247f)||(_0x5d0e3c=!0x1);}}function _0x4dee22(_0x3f15ca){return _0x3f15ca[_0x49c57e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49c57e([0x65,0x79]))?JSON[_0x49c57e([0x70,0x61,0x72,0x73,0x65])](_0x16be0a(_0x3f15ca)):null;}function _0x16be0a(_0x52aaa5){return window[_0x49c57e([0x61,0x74,0x6f,0x62])](_0x52aaa5[_0x49c57e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49c57e([0x2b]))[_0x49c57e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49c57e([0x2f])));}function _0x15cba6(_0x2234e6){let _0x2444bf=0x1505;function _0x5c2206(_0x404be5){for(let _0x2b7af2=0x0;_0x2b7af2<_0x404be5[_0x49c57e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b7af2++){const _0x1bb5db=_0x404be5[_0x49c57e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b7af2);_0x2444bf=(_0x2444bf<<0x5)+_0x2444bf+_0x1bb5db,_0x2444bf&=_0x2444bf;}}function _0x5d9888(_0x236ea9){Array[_0x49c57e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x236ea9)?_0x236ea9[_0x49c57e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d9888):_0x236ea9&&typeof _0x236ea9==_0x49c57e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49c57e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x236ea9)[_0x49c57e([0x73,0x6f,0x72,0x74])]()[_0x49c57e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40ea66,_0x455b0e])=>{_0x5c2206(_0x40ea66),_0x5d9888(_0x455b0e);}):_0x5c2206(window[_0x49c57e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x236ea9));}return _0x5d9888(_0x2234e6),_0x2444bf>>>0x0;}function _0x4b5b00(_0x53bab7){return _0x53bab7[_0x49c57e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49c57e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49c57e([0x30]));}function _0x5b58ea(_0xb6cc6c){return _0xb6cc6c[_0x49c57e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49c57e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49c57e([0x6a,0x6f,0x69,0x6e])]('');}function _0x25dbcc(){}function _0x49c57e(_0x2fac98){return _0x2fac98['map'](_0x4c11dd=>String['fromCharCode'](_0x4c11dd))['join']('');}_0xfd4805(await _0x5d0dde());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x6985c7=_0x52b907=>function(_0x2af190,_0x2527ad){const t=_0x2af190['t'],_0x34ccbc=_0x2af190['t'];switch(_0x2527ad){case'AI\x20Assistant':return _0x34ccbc('AI\x20Assistant');case'Block\x20quote':return _0x34ccbc('Block\x20quote');case'Bulleted\x20List':return _0x34ccbc('Bulleted\x20List');case'Insert\x20code\x20block':return _0x34ccbc('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x34ccbc('Open\x20file\x20manager');case'Insert\x20image':return _0x34ccbc('Insert\x20image');case'Heading\x201':return _0x34ccbc('Heading\x201');case'Heading\x202':return _0x34ccbc('Heading\x202');case'Heading\x203':return _0x34ccbc('Heading\x203');case'Heading\x204':return _0x34ccbc('Heading\x204');case'Heading\x205':return _0x34ccbc('Heading\x205');case'Heading\x206':return _0x34ccbc('Heading\x206');case'Horizontal\x20line':return _0x34ccbc('Horizontal\x20line');case'Insert\x20HTML':return _0x34ccbc('Insert\x20HTML');case'Increase\x20indent':return _0x34ccbc('Increase\x20indent');case'Insert\x20table':return _0x34ccbc('Insert\x20table');case'Table\x20of\x20contents':return _0x34ccbc('Table\x20of\x20contents');case'Numbered\x20List':return _0x34ccbc('Numbered\x20List');case'Decrease\x20indent':return _0x34ccbc('Decrease\x20indent');case'Paragraph':return _0x34ccbc('Paragraph');case'To-do\x20List':return _0x34ccbc('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 _0x2527ad;}}(this['editor']['locale'],_0x52b907);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0xff8171,'title':_0x6985c7('AI\x20Assistant'),'description':_0x6985c7('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x4f3d38=>{setTimeout(()=>_0x4f3d38['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x31c48a,'title':_0x6985c7('Block\x20quote'),'description':_0x6985c7('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x463b54,'title':_0x6985c7('Bulleted\x20List'),'description':_0x6985c7('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x669f61,'title':_0x6985c7('Insert\x20code\x20block'),'description':_0x6985c7('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x28f0b0,'title':_0x6985c7('Open\x20file\x20manager'),'description':_0x6985c7('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x28f0b0,'title':_0x6985c7('Insert\x20image'),'description':_0x6985c7('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x38c46e,'title':_0x6985c7('Emoji'),'description':_0x6985c7('Insert\x20an\x20emoji'),'execute':_0x3a6fbd=>{setTimeout(()=>_0x3a6fbd['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x595360,'title':_0x6985c7('Heading\x201'),'description':_0x6985c7('Create\x20a\x20heading\x20level\x201'),'execute':_0x2705c1=>{_0x2705c1['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x2b4137,'title':_0x6985c7('Heading\x202'),'description':_0x6985c7('Create\x20a\x20heading\x20level\x202'),'execute':_0x3f5d0a=>{_0x3f5d0a['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x55449f,'title':_0x6985c7('Heading\x203'),'description':_0x6985c7('Create\x20a\x20heading\x20level\x203'),'execute':_0x174d2c=>{_0x174d2c['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x2abb01,'title':_0x6985c7('Heading\x204'),'description':_0x6985c7('Create\x20a\x20heading\x20level\x204'),'execute':_0x111403=>{_0x111403['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x433d2f,'title':_0x6985c7('Heading\x205'),'description':_0x6985c7('Create\x20a\x20heading\x20level\x205'),'execute':_0x1abf12=>{_0x1abf12['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x5bc8a7,'title':_0x6985c7('Heading\x206'),'description':_0x6985c7('Create\x20a\x20heading\x20level\x206'),'execute':_0x579575=>{_0x579575['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x329a00,'title':_0x6985c7('Horizontal\x20line'),'description':_0x6985c7('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x55d51d,'title':_0x6985c7('Insert\x20HTML'),'description':_0x6985c7('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x5a837b,'title':_0x6985c7('Increase\x20indent'),'description':_0x6985c7('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x6985c7('Insert\x20Mermaid\x20diagram'),'description':_0x6985c7('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x5e239a,'title':_0x6985c7('Insert\x20table'),'description':_0x6985c7('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x124161,'title':_0x6985c7('Table\x20of\x20contents'),'description':_0x6985c7('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x22600b,'title':_0x6985c7('Numbered\x20List'),'description':_0x6985c7('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x32c3db,'title':_0x6985c7('Decrease\x20indent'),'description':_0x6985c7('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x19bb4c,'title':_0x6985c7('Paragraph'),'description':_0x6985c7('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x11a0d3,'title':_0x6985c7('To-do\x20List'),'description':_0x6985c7('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x7b34a1,'title':_0x6985c7('Footnote'),'description':_0x6985c7('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x5eb584){return _0x5eb584['isEnabled']?_0x5eb584['isEnabled'](this['editor']):!_0x5eb584['commandName']||this['editor']['commands']['get'](_0x5eb584['commandName'])['isEnabled'];}['_proxyExecute'](_0x682c0){if(_0x682c0['execute'])_0x682c0['execute'](this['editor']);else{if(!_0x682c0['commandName'])throw new _0x52e1ad('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x682c0});this['editor']['execute'](_0x682c0['commandName']);}}}function S(_0x113fe0,_0xc63281){return _0x113fe0['title']<_0xc63281['title']?-0x1:_0x113fe0['title']>_0xc63281['title']?0x1:0x0;}function O(_0x2a67a0,_0x560de6){return _0x560de6+'-'+_0x2a67a0['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x5a2707{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x578e64){const _0x291817=_0x578e64&&_0x578e64['toLowerCase']();let _0x474359=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x474359=_0x474359['filter'](_0x1518e3=>_0x1518e3['isEnabled']()),_0x291817){const _0x12ef5a=[],_0x2e5224=[],_0x19ad9f=[],_0x5813a9=[];for(const _0x5dea78 of _0x474359)_0x5dea78['id']['toLowerCase']()['includes'](_0x291817)?_0x12ef5a['push'](_0x5dea78):_0x5dea78['title']['toLowerCase']()['includes'](_0x291817)?_0x2e5224['push'](_0x5dea78):_0x5dea78['aliases']&&_0x5dea78['aliases']['some'](_0xc62a18=>_0xc62a18['toLowerCase']()['includes'](_0x291817))?_0x19ad9f['push'](_0x5dea78):_0x5dea78['description']&&_0x5dea78['description']['toLowerCase']()['includes'](_0x291817)&&_0x5813a9['push'](_0x5dea78);_0x474359=_0x12ef5a['concat'](_0x2e5224,_0x19ad9f,_0x5813a9);}return _0x474359;}}class SlashCommandButtonView extends _0x3634b9{constructor(_0x7b7c46,_0x8f7e84){super(_0x7b7c46),this['textPartView']=this['_createTextPartView'](_0x7b7c46,_0x8f7e84),void 0x0!==_0x8f7e84['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x8f7e84['isIconColorInherited']),this['set']({'icon':_0x8f7e84['icon']||_0x120702,'withText':!0x0,'label':_0x8f7e84['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x493ee7,_0x1cb00f){const _0x28ea54=new _0x39ac7a(_0x493ee7);return _0x28ea54['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x1cb00f['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x1cb00f['description']}]}]:[this['labelView']]}),_0x28ea54;}}class SlashCommandUI extends _0x5a2707{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b029a){super(_0x3b029a),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x397d5c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x207051;for(const _0x3c0c8b in _0x397d5c){const _0x619dcd=_0x3c0c8b,_0x3e872b=_0x397d5c[_0x619dcd];if('slashCommandLicenseKeyValid'==_0x3e872b||'slashCommandLicenseKeyInvalid'==_0x3e872b||'slashCommandLicenseKeyExpired'==_0x3e872b||'slashCommandLicenseKeyDomainLimit'==_0x3e872b||'slashCommandLicenseKeyNotAllowed'==_0x3e872b||'slashCommandLicenseKeyEvaluationLimit'==_0x3e872b||'slashCommandLicenseKeyUsageLimit'==_0x3e872b){delete _0x397d5c[_0x619dcd],_0x207051=_0x3e872b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x207051&&_0x397d5c['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x207051&&_0x397d5c['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x207051&&_0x397d5c['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x207051&&_0x397d5c['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x207051&&_0x397d5c['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x207051&&_0x397d5c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x3f44ed=this['editor'],_0x2903e6=this['editor']['plugins']['get']('SlashCommandEditing'),_0x3e8cf2=_0x3f44ed['config']['get']('mention.feeds');_0x3e8cf2['push']({'marker':'/','feed':_0x1cfb0e=>_0x2903e6['getMatchingCommands'](_0x1cfb0e),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x3f44ed['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x3f44ed['config']['set']('mention.feeds',_0x3e8cf2);}['_overrideMentionExecuteListener'](){const _0x174e75=this['editor'];_0x174e75['commands']['get']('mention')['on']('execute',(_0x2886a3,_0x120a52)=>{const _0x2c789f=_0x120a52[0x0],_0x11a1b5=_0x174e75['model'];'/'===_0x2c789f['marker']&&_0x11a1b5['change'](_0x526f28=>{_0x526f28['remove'](_0x2c789f['range']),_0x2c789f['mention']['execute'](),_0x2886a3['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x48a056){const _0x175459=this['editor']['locale'],_0xa2f2ce=new SlashCommandButtonView(_0x175459,_0x48a056);return _0xa2f2ce['render'](),_0xa2f2ce['element'];}}class SlashCommand extends _0x5a2707{static get['requires'](){return[_0x2c271a,SlashCommandEditing,SlashCommandUI];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{SlashCommand,SlashCommandConfig,SlashCommandEditing,SlashCommandUI};
23
+ import{Plugin as _0x5edba9}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x4b6d8b}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x338791,uid as _0x53723a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x1522b3,IconQuote as _0x316337,IconBulletedList as _0x5bd8c2,IconCodeBlock as _0x57f724,IconBrowseFiles as _0x5dd07c,IconEmoji as _0x101598,IconHeading1 as _0x470cd8,IconHeading2 as _0x21286f,IconHeading3 as _0x2e11e9,IconHeading4 as _0x1e035a,IconHeading5 as _0x34e93c,IconHeading6 as _0x26e55b,IconHorizontalLine as _0x2e5011,IconHtml as _0x1681bc,IconIndent as _0x2d5ac4,IconTable as _0x33bcd8,IconTableOfContents as _0x4897da,IconNumberedList as _0x3c5dde,IconOutdent as _0xe7e1c7,IconParagraph as _0x565579,IconTodoList as _0x4b1ddd,IconFootnote as _0x378f23,IconPlay as _0x31877e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3b8baa,View as _0x36d8a3}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x5edba9{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20e66f){super(_0x20e66f),this['_allowedCommands']=null;}['afterInit'](){const _0x4dddac=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0xf35fe2=function(_0x4d4b77){let _0xee72a3=['heading4','heading5','heading6'];if(_0x4d4b77){const _0x5b83ac=_0x4d4b77['map'](_0x2a50a0=>_0x2a50a0['model']);_0xee72a3=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x17989f=>!_0x5b83ac['includes'](_0x17989f));}return _0xee72a3;}(this['editor']['config']['get']('heading.options'));let _0x14a7a5=this['getDefaultCommands']()['filter'](_0x29cecd=>!_0xf35fe2['includes'](_0x29cecd['id']))['filter'](_0x21f485=>!_0x4dddac['includes'](_0x21f485['commandName']));const _0x1a03b4=this['editor']['config']['get']('slashCommand.extraCommands');_0x1a03b4&&_0x1a03b4['length']&&(_0x14a7a5=_0x14a7a5['concat'](_0x1a03b4));const _0x3baa84=this['editor']['config']['get']('template.definitions');_0x3baa84&&_0x3baa84['length']&&(_0x14a7a5=_0x14a7a5['concat'](function(_0x591c4c){return _0x591c4c['map'](_0x4f53ef=>{const {title:_0x1ac53a,icon:_0x12b30e,description:_0x33fa36,data:_0x4ac0e3}=_0x4f53ef,_0x40e99b={'id':O(_0x1ac53a,'template'),'commandName':'insertTemplate','execute':_0x230234=>{_0x230234['execute']('insertTemplate',_0x4ac0e3);},'description':_0x33fa36,'icon':_0x12b30e,'title':_0x1ac53a};return _0x12b30e&&(_0x40e99b['isIconColorInherited']=!0x1),_0x40e99b;});}(_0x3baa84)));const _0x416f30=this['editor']['config']['get']('style.definitions');_0x416f30&&_0x416f30['length']&&(_0x14a7a5=_0x14a7a5['concat'](function(_0x882cde){return _0x882cde['map'](_0x52c113=>({'id':O(_0x52c113['name'],'style'),'commandName':'style','execute':_0x5cea0d=>{_0x5cea0d['execute']('style',{'styleName':_0x52c113['name']});},'isEnabled':_0x220f33=>{const _0x218be4=_0x220f33['commands']['get']('style');return _0x218be4['isEnabled']&&_0x218be4['enabledStyles']['includes'](_0x52c113['name']);},'title':_0x52c113['name']}));}(_0x416f30)));const _0x381393=_0x14a7a5['filter'](_0x7e63b3=>!_0x7e63b3['commandName']||void 0x0!==this['editor']['commands']['get'](_0x7e63b3['commandName'])),_0x1161d9=[];for(const _0x533261 of _0x381393)_0x1161d9['push']({'id':_0x533261['id'],'commandName':_0x533261['commandName'],'title':'function'==typeof _0x533261['title']?_0x533261['title'](this['editor']):_0x533261['title'],'description':_0x533261['description'],'icon':_0x533261['icon'],'isIconColorInherited':_0x533261['isIconColorInherited'],'aliases':_0x533261['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x533261),'execute':()=>this['_proxyExecute'](_0x533261)});this['_allowedCommands']=_0x1161d9['sort'](S),async function(_0x447f5a){const _0x2bbe5c=_0x3f9e5a([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]),_0x3fac59=0x305505ed,_0x5d5831=0x30528e55^_0x3fac59,_0x35b52c=window[_0x3f9e5a([0x44,0x61,0x74,0x65])][_0x3f9e5a([0x6e,0x6f,0x77])](),_0x2104cb=_0x447f5a[_0x3f9e5a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x361298=new window[(_0x3f9e5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfbe2ae=>{_0x2104cb[_0x3f9e5a([0x6f,0x6e,0x63,0x65])](_0x3f9e5a([0x72,0x65,0x61,0x64,0x79]),_0xfbe2ae);}),_0x44cfcd={[_0x3f9e5a([0x6b,0x74,0x79])]:_0x3f9e5a([0x45,0x43]),[_0x3f9e5a([0x75,0x73,0x65])]:_0x3f9e5a([0x73,0x69,0x67]),[_0x3f9e5a([0x63,0x72,0x76])]:_0x3f9e5a([0x50,0x2d,0x32,0x35,0x36]),[_0x3f9e5a([0x78])]:_0x3f9e5a([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]),[_0x3f9e5a([0x79])]:_0x3f9e5a([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]),[_0x3f9e5a([0x61,0x6c,0x67])]:_0x3f9e5a([0x45,0x53,0x32,0x35,0x36])},_0x39e12e=_0x2104cb[_0x3f9e5a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f9e5a([0x67,0x65,0x74])](_0x3f9e5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c5e84(){let _0x3ebe77,_0xec6785=null,_0xc112a1=null;try{if(_0x39e12e==_0x3f9e5a([0x47,0x50,0x4c]))return _0x3f9e5a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ebe77=_0x247bb1(),!_0x3ebe77)return _0x3f9e5a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ebe77[_0x3f9e5a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc112a1=_0x24bd3a(_0x3ebe77[_0x3f9e5a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ebe77[_0x3f9e5a([0x6a,0x74,0x69])])),await _0x39333e()?_0x28889e()?_0x57923d()?_0x3f9e5a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x176293()?(_0x3ebe77[_0x3f9e5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f9e5a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xec6785=_0x134189(_0x3f9e5a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x50e306()):_0x3f9e5a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f9e5a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f9e5a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3f9e5a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57923d(){const _0x14cfe3=[_0x3f9e5a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f9e5a([0x74,0x72,0x69,0x61,0x6c])][_0x3f9e5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ebe77[_0x3f9e5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x35b52c/0x3e8:0xe10*_0x5d5831;return _0x3ebe77[_0x3f9e5a([0x65,0x78,0x70])]<_0x14cfe3;}function _0x28889e(){const _0xc1902=_0x3ebe77[_0x3f9e5a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc1902&&(!!_0xc1902[_0x3f9e5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9e5a([0x2a]))||(!!_0xc1902[_0x3f9e5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9e5a([0x53,0x43]))||(!!_0xc1902[_0x3f9e5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9e5a([0x50,0x50]))||!(!_0xc1902[_0x3f9e5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9e5a([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x376a17()))));}function _0x176293(){const _0x45cfeb=_0x3ebe77[_0x3f9e5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x45cfeb||0x0==_0x45cfeb[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa0827a}=new URL(window[_0x3f9e5a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x45cfeb[_0x3f9e5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa0827a))return!0x0;const _0x5c4935=_0xa0827a[_0x3f9e5a([0x73,0x70,0x6c,0x69,0x74])](_0x3f9e5a([0x2e]));return _0x45cfeb[_0x3f9e5a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x348fde=>_0x348fde[_0x3f9e5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9e5a([0x2a])))[_0x3f9e5a([0x6d,0x61,0x70])](_0x5abe17=>_0x5abe17[_0x3f9e5a([0x73,0x70,0x6c,0x69,0x74])](_0x3f9e5a([0x2e])))[_0x3f9e5a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58e999=>_0x58e999[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5c4935[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f9e5a([0x6d,0x61,0x70])](_0x4bbb89=>Array(_0x5c4935[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4bbb89[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f9e5a([0x66,0x69,0x6c,0x6c])](_0x4bbb89[0x0]===_0x3f9e5a([0x2a])?_0x3f9e5a([0x2a]):'')[_0x3f9e5a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4bbb89))[_0x3f9e5a([0x73,0x6f,0x6d,0x65])](_0x2bf97d=>_0x5c4935[_0x3f9e5a([0x65,0x76,0x65,0x72,0x79])]((_0x294b18,_0xfe7368)=>_0x2bf97d[_0xfe7368]===_0x294b18||_0x2bf97d[_0xfe7368]===_0x3f9e5a([0x2a])));}function _0x50e306(){return _0xec6785&&_0xc112a1?new window[(_0x3f9e5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b45ca,_0x11c2e7)=>{_0xec6785[_0x3f9e5a([0x74,0x68,0x65,0x6e])](_0x1b45ca,_0x11c2e7),_0xc112a1[_0x3f9e5a([0x74,0x68,0x65,0x6e])](_0x2f36a6=>{_0x2f36a6!=_0x3f9e5a([0x56,0x61,0x6c,0x69,0x64])&&_0x1b45ca(_0x2f36a6);},_0x11c2e7);}):_0xec6785||_0xc112a1||_0x3f9e5a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x24bd3a(_0x43f8fb,_0x294abf){return new window[(_0x3f9e5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x514eb2=>{if(_0x10ccc0())return _0x514eb2(_0x3f9e5a([0x56,0x61,0x6c,0x69,0x64]));_0x4213ee(),_0x2104cb[_0x3f9e5a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f9e5a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd16ee0=!0x1;const _0x424459=_0x53723a();function _0x4b9056(_0x3c6b7f){return!!_0x3c6b7f&&(typeof _0x3c6b7f===_0x3f9e5a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c6b7f===_0x3f9e5a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c6b7f[_0x3f9e5a([0x74,0x68,0x65,0x6e])]===_0x3f9e5a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c6b7f[_0x3f9e5a([0x63,0x61,0x74,0x63,0x68])]===_0x3f9e5a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1efe16(_0x4dc204){_0x42fe0b(_0x4dc204)[_0x3f9e5a([0x74,0x68,0x65,0x6e])](_0x2aa039=>{if(!_0x2aa039||_0x2aa039[_0x3f9e5a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f9e5a([0x6f,0x6b]))return _0x3f9e5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x453d8c(_0x9f84be(_0x424459+_0x294abf))!=_0x2aa039[_0x3f9e5a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f9e5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f9e5a([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f9e5a([0x74,0x68,0x65,0x6e])](_0x4d19a0=>(_0x36a3a8(),_0x4d19a0),()=>{const _0x148691=_0x386e51();return null==_0x148691?(_0x36a3a8(),_0x3f9e5a([0x56,0x61,0x6c,0x69,0x64])):_0x3f9e5a(_0x35b52c-_0x148691>(0x145981ed^_0x3fac59)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f9e5a([0x74,0x68,0x65,0x6e])](_0x514eb2)[_0x3f9e5a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x514eb2(_0x3f9e5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b3fb7=0x3063eb6d^_0x3fac59;function _0x36a3a8(){const _0x32e244=_0x3f9e5a([0x6c,0x6c,0x63,0x74,0x2d])+_0x453d8c(_0x9f84be(_0x43f8fb)),_0x21b8d8=_0x4bbc39(_0x453d8c(window[_0x3f9e5a([0x4d,0x61,0x74,0x68])][_0x3f9e5a([0x63,0x65,0x69,0x6c])](_0x35b52c/_0x3b3fb7)));window[_0x3f9e5a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f9e5a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32e244,_0x21b8d8);}function _0x386e51(){const _0xa7926b=_0x3f9e5a([0x6c,0x6c,0x63,0x74,0x2d])+_0x453d8c(_0x9f84be(_0x43f8fb)),_0x143828=window[_0x3f9e5a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f9e5a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa7926b);return _0x143828?window[_0x3f9e5a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bbc39(_0x143828),0x10)*_0x3b3fb7:null;}function _0x42fe0b(_0x4cdeaf){return new window[(_0x3f9e5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x581f9e,_0x89a4d9)=>{_0x4cdeaf[_0x3f9e5a([0x74,0x68,0x65,0x6e])](_0x581f9e,_0x89a4d9),window[_0x3f9e5a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x89a4d9,0x3054d12d^_0x3fac59);});}}_0x2104cb[_0x3f9e5a([0x6f,0x6e])](_0x3f9e5a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35fb4b,_0x202884)=>{if(_0x202884[0x0]!=_0x43f8fb)return _0x514eb2(_0x3f9e5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x202884[0x1]={..._0x202884[0x1],[_0x3f9e5a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x424459};},{[_0x3f9e5a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f9e5a([0x68,0x69,0x67,0x68])}),_0x2104cb[_0x3f9e5a([0x6f,0x6e])](_0x3f9e5a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2119cd=>{_0x4b9056(_0x2119cd[_0x3f9e5a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd16ee0=!0x0,_0x1efe16(_0x2119cd[_0x3f9e5a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f9e5a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f9e5a([0x6c,0x6f,0x77])}),_0x361298[_0x3f9e5a([0x74,0x68,0x65,0x6e])](()=>{_0xd16ee0||_0x514eb2(_0x3f9e5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10ccc0(){return _0x2104cb[_0x3f9e5a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f9e5a([0x76,0x69,0x65,0x77])][_0x3f9e5a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f9e5a([0x61,0x75,0x74,0x6f]);}function _0x4213ee(){_0x2104cb[_0x3f9e5a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f9e5a([0x76,0x69,0x65,0x77])][_0x3f9e5a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f9e5a([0x61,0x75,0x74,0x6f]);}}function _0x134189(_0x185129){const _0x516fe8=[new window[(_0x3f9e5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb59cf4=>setTimeout(_0xb59cf4,0x305c3b21^_0x3fac59)),_0x361298[_0x3f9e5a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f9e5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x279e5f=>{let _0x467c05=0x0;_0x2104cb[_0x3f9e5a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f9e5a([0x6f,0x6e])](_0x3f9e5a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x43eb7b,_0x201d90)=>{_0x201d90[0x0][_0x3f9e5a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x467c05++,_0x467c05==(0x30550005^_0x3fac59)&&(_0x279e5f(),_0x43eb7b[_0x3f9e5a([0x6f,0x66,0x66])]());});}))];return window[_0x3f9e5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f9e5a([0x72,0x61,0x63,0x65])](_0x516fe8)[_0x3f9e5a([0x74,0x68,0x65,0x6e])](()=>_0x185129);}async function _0x52c430(){await _0x361298,_0x2104cb[_0x3f9e5a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f9e5a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49325a,_0x2104cb[_0x3f9e5a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f9e5a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49325a,_0x2104cb[_0x3f9e5a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f9e5a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x376a17(){return window[_0x3f9e5a([0x67,0x6c,0x6f,0x62])]&&window[_0x3f9e5a([0x67,0x6c,0x6f,0x62])][_0x3f9e5a([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x5f28dc(_0x51d825){const _0x55f3c5=_0x4775a7();_0x2104cb[_0x55f3c5]=_0x3f9e5a([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51d825,_0x51d825!=_0x3f9e5a([0x56,0x61,0x6c,0x69,0x64])&&_0x52c430();}function _0x4775a7(){const _0x59b7f2=window[_0x3f9e5a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f9e5a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f9e5a([0x6e,0x6f,0x77])]())[_0x3f9e5a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f9e5a([0x2e]),'');let _0x7c9964=_0x3f9e5a([0x75]);for(let _0x3f9973=0x0;_0x3f9973<_0x59b7f2[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f9973+=0x2){let _0x4f020b=window[_0x3f9e5a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59b7f2[_0x3f9e5a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f9973,_0x3f9973+0x2));_0x4f020b>=_0x2bbe5c[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f020b-=_0x2bbe5c[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x7c9964+=_0x2bbe5c[_0x4f020b];}return _0x7c9964;}function _0x247bb1(){const _0x443352=_0x39e12e[_0x3f9e5a([0x73,0x70,0x6c,0x69,0x74])](_0x3f9e5a([0x2e]));if(0x3!=_0x443352[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27c0ea(_0x443352[0x1]);function _0x27c0ea(_0x5ae804){const _0x214d54=_0xbb7dff(_0x5ae804);return _0x214d54&&_0x5a40e8()?_0x214d54:null;function _0x5a40e8(){const _0x5d82d6=_0x214d54[_0x3f9e5a([0x6a,0x74,0x69])],_0x42e064=window[_0x3f9e5a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d82d6[_0x3f9e5a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d82d6[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x528071={..._0x214d54,[_0x3f9e5a([0x6a,0x74,0x69])]:_0x5d82d6[_0x3f9e5a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d82d6[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x528071[_0x3f9e5a([0x76,0x63])],_0x9f84be(_0x528071)==_0x42e064;}}}async function _0x39333e(){let _0x3bedf4=!0x0;try{const _0x45368a=_0x39e12e[_0x3f9e5a([0x73,0x70,0x6c,0x69,0x74])](_0x3f9e5a([0x2e])),[_0x4b97d5,_0x314abb,_0xd1969d]=_0x45368a;return _0x38155a(_0x4b97d5),await _0x5cf493(_0x4b97d5,_0x314abb,_0xd1969d),_0x3bedf4;}catch{return!0x1;}function _0x38155a(_0x22cd02){const _0x33c8eb=_0xbb7dff(_0x22cd02);_0x33c8eb&&_0x33c8eb[_0x3f9e5a([0x61,0x6c,0x67])]==_0x3f9e5a([0x45,0x53,0x32,0x35,0x36])||(_0x3bedf4=!0x1);}async function _0x5cf493(_0xf0c89a,_0x3e73ad,_0x3bfb3d){const _0x442225=window[_0x3f9e5a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f9e5a([0x66,0x72,0x6f,0x6d])](_0x1097a3(_0x3bfb3d),_0x5f5175=>_0x5f5175[_0x3f9e5a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52c9bf=new window[(_0x3f9e5a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f9e5a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf0c89a+_0x3f9e5a([0x2e])+_0x3e73ad),_0x55a960=window[_0x3f9e5a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f9e5a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55a960)return;const _0x4f3f8f=await _0x55a960[_0x3f9e5a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f9e5a([0x6a,0x77,0x6b]),_0x44cfcd,{[_0x3f9e5a([0x6e,0x61,0x6d,0x65])]:_0x3f9e5a([0x45,0x43,0x44,0x53,0x41]),[_0x3f9e5a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f9e5a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f9e5a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55a960[_0x3f9e5a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f9e5a([0x6e,0x61,0x6d,0x65])]:_0x3f9e5a([0x45,0x43,0x44,0x53,0x41]),[_0x3f9e5a([0x68,0x61,0x73,0x68])]:{[_0x3f9e5a([0x6e,0x61,0x6d,0x65])]:_0x3f9e5a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f3f8f,_0x442225,_0x52c9bf)||(_0x3bedf4=!0x1);}}function _0xbb7dff(_0x1d0e2d){return _0x1d0e2d[_0x3f9e5a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f9e5a([0x65,0x79]))?JSON[_0x3f9e5a([0x70,0x61,0x72,0x73,0x65])](_0x1097a3(_0x1d0e2d)):null;}function _0x1097a3(_0x9bb200){return window[_0x3f9e5a([0x61,0x74,0x6f,0x62])](_0x9bb200[_0x3f9e5a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f9e5a([0x2b]))[_0x3f9e5a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f9e5a([0x2f])));}function _0x9f84be(_0x3ef969){let _0x11e165=0x1505;function _0x481a6f(_0x5627ec){for(let _0x1d736f=0x0;_0x1d736f<_0x5627ec[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d736f++){const _0x2db8fa=_0x5627ec[_0x3f9e5a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d736f);_0x11e165=(_0x11e165<<0x5)+_0x11e165+_0x2db8fa,_0x11e165&=_0x11e165;}}function _0x56a6e7(_0xc49f1e){Array[_0x3f9e5a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc49f1e)?_0xc49f1e[_0x3f9e5a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x56a6e7):_0xc49f1e&&typeof _0xc49f1e==_0x3f9e5a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f9e5a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc49f1e)[_0x3f9e5a([0x73,0x6f,0x72,0x74])]()[_0x3f9e5a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x136789,_0x2d7862])=>{_0x481a6f(_0x136789),_0x56a6e7(_0x2d7862);}):_0x481a6f(window[_0x3f9e5a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc49f1e));}return _0x56a6e7(_0x3ef969),_0x11e165>>>0x0;}function _0x453d8c(_0x41e709){return _0x41e709[_0x3f9e5a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f9e5a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f9e5a([0x30]));}function _0x4bbc39(_0xcc03d){return _0xcc03d[_0x3f9e5a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f9e5a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f9e5a([0x6a,0x6f,0x69,0x6e])]('');}function _0x49325a(){}function _0x3f9e5a(_0x1cb80e){return _0x1cb80e['map'](_0x40ef34=>String['fromCharCode'](_0x40ef34))['join']('');}_0x5f28dc(await _0x3c5e84());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x3a7fc4=_0x241413=>function(_0xf31a02,_0x3010a0){const t=_0xf31a02['t'],_0x51565d=_0xf31a02['t'];switch(_0x3010a0){case'AI\x20Assistant':return _0x51565d('AI\x20Assistant');case'Block\x20quote':return _0x51565d('Block\x20quote');case'Bulleted\x20List':return _0x51565d('Bulleted\x20List');case'Insert\x20code\x20block':return _0x51565d('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x51565d('Open\x20file\x20manager');case'Insert\x20image':return _0x51565d('Insert\x20image');case'Heading\x201':return _0x51565d('Heading\x201');case'Heading\x202':return _0x51565d('Heading\x202');case'Heading\x203':return _0x51565d('Heading\x203');case'Heading\x204':return _0x51565d('Heading\x204');case'Heading\x205':return _0x51565d('Heading\x205');case'Heading\x206':return _0x51565d('Heading\x206');case'Horizontal\x20line':return _0x51565d('Horizontal\x20line');case'Insert\x20HTML':return _0x51565d('Insert\x20HTML');case'Increase\x20indent':return _0x51565d('Increase\x20indent');case'Insert\x20table':return _0x51565d('Insert\x20table');case'Table\x20of\x20contents':return _0x51565d('Table\x20of\x20contents');case'Numbered\x20List':return _0x51565d('Numbered\x20List');case'Decrease\x20indent':return _0x51565d('Decrease\x20indent');case'Paragraph':return _0x51565d('Paragraph');case'To-do\x20List':return _0x51565d('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 _0x3010a0;}}(this['editor']['locale'],_0x241413);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x1522b3,'title':_0x3a7fc4('AI\x20Assistant'),'description':_0x3a7fc4('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x499c77=>{setTimeout(()=>_0x499c77['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x316337,'title':_0x3a7fc4('Block\x20quote'),'description':_0x3a7fc4('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x5bd8c2,'title':_0x3a7fc4('Bulleted\x20List'),'description':_0x3a7fc4('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x57f724,'title':_0x3a7fc4('Insert\x20code\x20block'),'description':_0x3a7fc4('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x5dd07c,'title':_0x3a7fc4('Open\x20file\x20manager'),'description':_0x3a7fc4('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x5dd07c,'title':_0x3a7fc4('Insert\x20image'),'description':_0x3a7fc4('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x101598,'title':_0x3a7fc4('Emoji'),'description':_0x3a7fc4('Insert\x20an\x20emoji'),'execute':_0x2632b9=>{setTimeout(()=>_0x2632b9['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x470cd8,'title':_0x3a7fc4('Heading\x201'),'description':_0x3a7fc4('Create\x20a\x20heading\x20level\x201'),'execute':_0x26c005=>{_0x26c005['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x21286f,'title':_0x3a7fc4('Heading\x202'),'description':_0x3a7fc4('Create\x20a\x20heading\x20level\x202'),'execute':_0x33de07=>{_0x33de07['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x2e11e9,'title':_0x3a7fc4('Heading\x203'),'description':_0x3a7fc4('Create\x20a\x20heading\x20level\x203'),'execute':_0x10a8e5=>{_0x10a8e5['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x1e035a,'title':_0x3a7fc4('Heading\x204'),'description':_0x3a7fc4('Create\x20a\x20heading\x20level\x204'),'execute':_0x3a433e=>{_0x3a433e['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x34e93c,'title':_0x3a7fc4('Heading\x205'),'description':_0x3a7fc4('Create\x20a\x20heading\x20level\x205'),'execute':_0x528e05=>{_0x528e05['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x26e55b,'title':_0x3a7fc4('Heading\x206'),'description':_0x3a7fc4('Create\x20a\x20heading\x20level\x206'),'execute':_0xf85f61=>{_0xf85f61['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x2e5011,'title':_0x3a7fc4('Horizontal\x20line'),'description':_0x3a7fc4('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x1681bc,'title':_0x3a7fc4('Insert\x20HTML'),'description':_0x3a7fc4('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x2d5ac4,'title':_0x3a7fc4('Increase\x20indent'),'description':_0x3a7fc4('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x3a7fc4('Insert\x20Mermaid\x20diagram'),'description':_0x3a7fc4('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x33bcd8,'title':_0x3a7fc4('Insert\x20table'),'description':_0x3a7fc4('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x4897da,'title':_0x3a7fc4('Table\x20of\x20contents'),'description':_0x3a7fc4('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x3c5dde,'title':_0x3a7fc4('Numbered\x20List'),'description':_0x3a7fc4('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0xe7e1c7,'title':_0x3a7fc4('Decrease\x20indent'),'description':_0x3a7fc4('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x565579,'title':_0x3a7fc4('Paragraph'),'description':_0x3a7fc4('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x4b1ddd,'title':_0x3a7fc4('To-do\x20List'),'description':_0x3a7fc4('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x378f23,'title':_0x3a7fc4('Footnote'),'description':_0x3a7fc4('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x16d6d2){return _0x16d6d2['isEnabled']?_0x16d6d2['isEnabled'](this['editor']):!_0x16d6d2['commandName']||this['editor']['commands']['get'](_0x16d6d2['commandName'])['isEnabled'];}['_proxyExecute'](_0x50036e){if(_0x50036e['execute'])_0x50036e['execute'](this['editor']);else{if(!_0x50036e['commandName'])throw new _0x338791('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x50036e});this['editor']['execute'](_0x50036e['commandName']);}}}function S(_0x3caf48,_0x3a0624){return _0x3caf48['title']<_0x3a0624['title']?-0x1:_0x3caf48['title']>_0x3a0624['title']?0x1:0x0;}function O(_0x33708c,_0x2b0e3b){return _0x2b0e3b+'-'+_0x33708c['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x5edba9{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x2ef410){const _0x45a05a=_0x2ef410&&_0x2ef410['toLowerCase']();let _0xbd4cb4=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0xbd4cb4=_0xbd4cb4['filter'](_0x16bec0=>_0x16bec0['isEnabled']()),_0x45a05a){const _0x9f805b=[],_0x36d282=[],_0x4c842c=[],_0x35c946=[];for(const _0x36e0a7 of _0xbd4cb4)_0x36e0a7['id']['toLowerCase']()['includes'](_0x45a05a)?_0x9f805b['push'](_0x36e0a7):_0x36e0a7['title']['toLowerCase']()['includes'](_0x45a05a)?_0x36d282['push'](_0x36e0a7):_0x36e0a7['aliases']&&_0x36e0a7['aliases']['some'](_0x4314a4=>_0x4314a4['toLowerCase']()['includes'](_0x45a05a))?_0x4c842c['push'](_0x36e0a7):_0x36e0a7['description']&&_0x36e0a7['description']['toLowerCase']()['includes'](_0x45a05a)&&_0x35c946['push'](_0x36e0a7);_0xbd4cb4=_0x9f805b['concat'](_0x36d282,_0x4c842c,_0x35c946);}return _0xbd4cb4;}}class SlashCommandButtonView extends _0x3b8baa{constructor(_0x322499,_0x404249){super(_0x322499),this['textPartView']=this['_createTextPartView'](_0x322499,_0x404249),void 0x0!==_0x404249['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x404249['isIconColorInherited']),this['set']({'icon':_0x404249['icon']||_0x31877e,'withText':!0x0,'label':_0x404249['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x1795cc,_0x24762a){const _0x5c611b=new _0x36d8a3(_0x1795cc);return _0x5c611b['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x24762a['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x24762a['description']}]}]:[this['labelView']]}),_0x5c611b;}}class SlashCommandUI extends _0x5edba9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18cba0){super(_0x18cba0),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42b30a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x733ea7;for(const _0x2c3697 in _0x42b30a){const _0x3e6f58=_0x2c3697,_0x3e59df=_0x42b30a[_0x3e6f58];if('slashCommandLicenseKeyValid'==_0x3e59df||'slashCommandLicenseKeyInvalid'==_0x3e59df||'slashCommandLicenseKeyExpired'==_0x3e59df||'slashCommandLicenseKeyDomainLimit'==_0x3e59df||'slashCommandLicenseKeyNotAllowed'==_0x3e59df||'slashCommandLicenseKeyEvaluationLimit'==_0x3e59df||'slashCommandLicenseKeyUsageLimit'==_0x3e59df){delete _0x42b30a[_0x3e6f58],_0x733ea7=_0x3e59df,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x733ea7&&_0x42b30a['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x733ea7&&_0x42b30a['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x733ea7&&_0x42b30a['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x733ea7&&_0x42b30a['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x733ea7&&_0x42b30a['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x733ea7&&_0x42b30a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x3b7ad3=this['editor'],_0x1e53a7=this['editor']['plugins']['get']('SlashCommandEditing'),_0x5db959=_0x3b7ad3['config']['get']('mention.feeds');_0x5db959['push']({'marker':'/','feed':_0x2543f3=>_0x1e53a7['getMatchingCommands'](_0x2543f3),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x3b7ad3['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x3b7ad3['config']['set']('mention.feeds',_0x5db959);}['_overrideMentionExecuteListener'](){const _0x5dd616=this['editor'];_0x5dd616['commands']['get']('mention')['on']('execute',(_0x70bc9b,_0x384e35)=>{const _0x3d8cac=_0x384e35[0x0],_0x53cdb7=_0x5dd616['model'];'/'===_0x3d8cac['marker']&&_0x53cdb7['change'](_0x14f9d9=>{_0x14f9d9['remove'](_0x3d8cac['range']),_0x3d8cac['mention']['execute'](),_0x70bc9b['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x57b100){const _0x4a2e1f=this['editor']['locale'],_0x16112f=new SlashCommandButtonView(_0x4a2e1f,_0x57b100);return _0x16112f['render'](),_0x16112f['element'];}}class SlashCommand extends _0x5edba9{static get['requires'](){return[_0x4b6d8b,SlashCommandEditing,SlashCommandUI];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{SlashCommand,SlashCommandConfig,SlashCommandEditing,SlashCommandUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-slash-command",
3
- "version": "48.2.0-alpha.4",
3
+ "version": "48.2.0-alpha.5",
4
4
  "description": "Slash command feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,14 +21,14 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.2.0-alpha.4",
25
- "@ckeditor/ckeditor5-heading": "48.2.0-alpha.4",
26
- "@ckeditor/ckeditor5-icons": "48.2.0-alpha.4",
27
- "@ckeditor/ckeditor5-mention": "48.2.0-alpha.4",
28
- "@ckeditor/ckeditor5-style": "48.2.0-alpha.4",
29
- "@ckeditor/ckeditor5-template": "48.2.0-alpha.4",
30
- "@ckeditor/ckeditor5-ui": "48.2.0-alpha.4",
31
- "@ckeditor/ckeditor5-utils": "48.2.0-alpha.4"
24
+ "@ckeditor/ckeditor5-core": "48.2.0-alpha.5",
25
+ "@ckeditor/ckeditor5-heading": "48.2.0-alpha.5",
26
+ "@ckeditor/ckeditor5-icons": "48.2.0-alpha.5",
27
+ "@ckeditor/ckeditor5-mention": "48.2.0-alpha.5",
28
+ "@ckeditor/ckeditor5-style": "48.2.0-alpha.5",
29
+ "@ckeditor/ckeditor5-template": "48.2.0-alpha.5",
30
+ "@ckeditor/ckeditor5-ui": "48.2.0-alpha.5",
31
+ "@ckeditor/ckeditor5-utils": "48.2.0-alpha.5"
32
32
  },
33
33
  "files": [
34
34
  "dist",