@ckeditor/ckeditor5-slash-command 48.8.1-alpha.1 → 48.8.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xbd09bc}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x3047db}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x4c6594,uid as _0x47ef15}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x4c6457,IconQuote as _0x5b920c,IconBulletedList as _0x1b5468,IconCodeBlock as _0x36e9b3,IconBrowseFiles as _0x2843cf,IconEmoji as _0x4aca39,IconHeading1 as _0x25f9c8,IconHeading2 as _0x20e148,IconHeading3 as _0x1b9d10,IconHeading4 as _0x500a40,IconHeading5 as _0x5205d3,IconHeading6 as _0x3fe496,IconHorizontalLine as _0x2048fb,IconHtml as _0x355e9e,IconIndent as _0x32badf,IconTable as _0xcda14a,IconTableOfContents as _0x5e38af,IconNumberedList as _0xec6784,IconOutdent as _0x49d997,IconParagraph as _0x409cad,IconTodoList as _0x18d339,IconFootnote as _0x2429e3,IconPlay as _0x20f466}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x516fee,View as _0xbb769b}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0xbd09bc{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56452c){super(_0x56452c),this['_allowedCommands']=null;}['afterInit'](){const _0x56493f=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x7c12d8=function(_0x3624ed){let _0x26c22d=['heading4','heading5','heading6'];if(_0x3624ed){const _0x5804cf=_0x3624ed['map'](_0x40509b=>_0x40509b['model']);_0x26c22d=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x28aa1e=>!_0x5804cf['includes'](_0x28aa1e));}return _0x26c22d;}(this['editor']['config']['get']('heading.options'));let _0xf0eb7=this['getDefaultCommands']()['filter'](_0x54324f=>!_0x7c12d8['includes'](_0x54324f['id']))['filter'](_0x31c9bc=>!_0x56493f['includes'](_0x31c9bc['commandName']));const _0x51e9d3=this['editor']['config']['get']('slashCommand.extraCommands');_0x51e9d3&&_0x51e9d3['length']&&(_0xf0eb7=_0xf0eb7['concat'](_0x51e9d3));const _0x4707a4=this['editor']['config']['get']('template.definitions');_0x4707a4&&_0x4707a4['length']&&(_0xf0eb7=_0xf0eb7['concat'](function(_0x3166f4){return _0x3166f4['map'](_0x2d34a5=>{const {title:_0x184ee2,icon:_0x3b4f39,description:_0x5c5840,data:_0x3d45e6}=_0x2d34a5,_0x32c71e={'id':O(_0x184ee2,'template'),'commandName':'insertTemplate','execute':_0x50f4e2=>{_0x50f4e2['execute']('insertTemplate',_0x3d45e6);},'description':_0x5c5840,'icon':_0x3b4f39,'title':_0x184ee2};return _0x3b4f39&&(_0x32c71e['isIconColorInherited']=!0x1),_0x32c71e;});}(_0x4707a4)));const _0x38fbfb=this['editor']['config']['get']('style.definitions');_0x38fbfb&&_0x38fbfb['length']&&(_0xf0eb7=_0xf0eb7['concat'](function(_0x2424ab){return _0x2424ab['map'](_0x456607=>({'id':O(_0x456607['name'],'style'),'commandName':'style','execute':_0x5d4068=>{_0x5d4068['execute']('style',{'styleName':_0x456607['name']});},'isEnabled':_0x31636d=>{const _0x2b54b8=_0x31636d['commands']['get']('style');return _0x2b54b8['isEnabled']&&_0x2b54b8['enabledStyles']['includes'](_0x456607['name']);},'title':_0x456607['name']}));}(_0x38fbfb)));const _0x262ed3=_0xf0eb7['filter'](_0x3cad69=>!_0x3cad69['commandName']||void 0x0!==this['editor']['commands']['get'](_0x3cad69['commandName'])),_0x426c12=[];for(const _0xcd562e of _0x262ed3)_0x426c12['push']({'id':_0xcd562e['id'],'commandName':_0xcd562e['commandName'],'title':'function'==typeof _0xcd562e['title']?_0xcd562e['title'](this['editor']):_0xcd562e['title'],'description':_0xcd562e['description'],'icon':_0xcd562e['icon'],'isIconColorInherited':_0xcd562e['isIconColorInherited'],'aliases':_0xcd562e['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0xcd562e),'execute':()=>this['_proxyExecute'](_0xcd562e)});this['_allowedCommands']=_0x426c12['sort'](S),async function(_0x102c46){const _0x1398e9=_0x3039c4([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]),_0x30ea8c=0x305505ed,_0x3e254a=0x30528fd5^_0x30ea8c,_0x49ac60=window[_0x3039c4([0x44,0x61,0x74,0x65])][_0x3039c4([0x6e,0x6f,0x77])](),_0x382b64=_0x102c46[_0x3039c4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x131286=new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a6e2c=>{_0x382b64[_0x3039c4([0x6f,0x6e,0x63,0x65])](_0x3039c4([0x72,0x65,0x61,0x64,0x79]),_0x2a6e2c);}),_0x48f433={[_0x3039c4([0x6b,0x74,0x79])]:_0x3039c4([0x45,0x43]),[_0x3039c4([0x75,0x73,0x65])]:_0x3039c4([0x73,0x69,0x67]),[_0x3039c4([0x63,0x72,0x76])]:_0x3039c4([0x50,0x2d,0x32,0x35,0x36]),[_0x3039c4([0x78])]:_0x3039c4([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]),[_0x3039c4([0x79])]:_0x3039c4([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]),[_0x3039c4([0x61,0x6c,0x67])]:_0x3039c4([0x45,0x53,0x32,0x35,0x36])},_0x73bbc6=_0x382b64[_0x3039c4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3039c4([0x67,0x65,0x74])](_0x3039c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x53f622(){let _0x4d504b,_0x37c90f=null,_0x313632=null;try{if(_0x73bbc6==_0x3039c4([0x47,0x50,0x4c]))return _0x3039c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d504b=_0x1b7080(),!_0x4d504b)return _0x3039c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d504b[_0x3039c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x313632=_0x1c03a6(_0x4d504b[_0x3039c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d504b[_0x3039c4([0x6a,0x74,0x69])])),await _0x183d8c()?_0x2bce98()?_0x51f280()?_0x3039c4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x217aed()?(_0x4d504b[_0x3039c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3039c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x37c90f=_0x5b4222(_0x3039c4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ec911()):_0x3039c4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3039c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3039c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3039c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x51f280(){const _0x4088b6=[_0x3039c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3039c4([0x74,0x72,0x69,0x61,0x6c])][_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d504b[_0x3039c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49ac60/0x3e8:0xe10*_0x3e254a;return _0x4d504b[_0x3039c4([0x65,0x78,0x70])]<_0x4088b6;}function _0x2bce98(){const _0x46dde4=_0x4d504b[_0x3039c4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x46dde4&&(!!_0x46dde4[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039c4([0x2a]))||(!!_0x46dde4[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039c4([0x53,0x43]))||(!!_0x46dde4[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039c4([0x50,0x50]))||!(!_0x46dde4[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039c4([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x374450()))));}function _0x217aed(){const _0x2fab6d=_0x4d504b[_0x3039c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fab6d||0x0==_0x2fab6d[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa9e8a1}=new URL(window[_0x3039c4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2fab6d[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa9e8a1))return!0x0;const _0x3dd2e9=_0xa9e8a1[_0x3039c4([0x73,0x70,0x6c,0x69,0x74])](_0x3039c4([0x2e]));return _0x2fab6d[_0x3039c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x60e52a=>_0x60e52a[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039c4([0x2a])))[_0x3039c4([0x6d,0x61,0x70])](_0x55019a=>_0x55019a[_0x3039c4([0x73,0x70,0x6c,0x69,0x74])](_0x3039c4([0x2e])))[_0x3039c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4da3e1=>_0x4da3e1[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3dd2e9[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3039c4([0x6d,0x61,0x70])](_0x21b7b2=>Array(_0x3dd2e9[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21b7b2[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3039c4([0x66,0x69,0x6c,0x6c])](_0x21b7b2[0x0]===_0x3039c4([0x2a])?_0x3039c4([0x2a]):'')[_0x3039c4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21b7b2))[_0x3039c4([0x73,0x6f,0x6d,0x65])](_0xef85ef=>_0x3dd2e9[_0x3039c4([0x65,0x76,0x65,0x72,0x79])]((_0x5263a3,_0x307bc3)=>_0xef85ef[_0x307bc3]===_0x5263a3||_0xef85ef[_0x307bc3]===_0x3039c4([0x2a])));}function _0x5ec911(){return _0x37c90f&&_0x313632?new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30bb4e,_0x12996c)=>{_0x37c90f[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x30bb4e,_0x12996c),_0x313632[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x293ce8=>{_0x293ce8!=_0x3039c4([0x56,0x61,0x6c,0x69,0x64])&&_0x30bb4e(_0x293ce8);},_0x12996c);}):_0x37c90f||_0x313632||_0x3039c4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c03a6(_0x2290ed,_0x288056){return new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d7b3b=>{if(_0x9d0aec())return _0x4d7b3b(_0x3039c4([0x56,0x61,0x6c,0x69,0x64]));_0x44219f(),_0x382b64[_0x3039c4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3039c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17c4b2=!0x1;const _0x14502a=_0x47ef15();function _0x4c007f(_0x3949ff){return!!_0x3949ff&&(typeof _0x3949ff===_0x3039c4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3949ff===_0x3039c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3949ff[_0x3039c4([0x74,0x68,0x65,0x6e])]===_0x3039c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3949ff[_0x3039c4([0x63,0x61,0x74,0x63,0x68])]===_0x3039c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x458a4f(_0x398894){_0x63d7b6(_0x398894)[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x23712d=>{if(!_0x23712d||_0x23712d[_0x3039c4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3039c4([0x6f,0x6b]))return _0x3039c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f102a(_0x62c433(_0x14502a+_0x288056))!=_0x23712d[_0x3039c4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3039c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3039c4([0x56,0x61,0x6c,0x69,0x64]);})[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x3209c4=>(_0x525b1c(),_0x3209c4),()=>{const _0x33bf2d=_0x211322();return null==_0x33bf2d?(_0x525b1c(),_0x3039c4([0x56,0x61,0x6c,0x69,0x64])):_0x3039c4(_0x49ac60-_0x33bf2d>(0x145981ed^_0x30ea8c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x4d7b3b)[_0x3039c4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d7b3b(_0x3039c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ede1c=0x3063eb6d^_0x30ea8c;function _0x525b1c(){const _0x171a7d=_0x3039c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f102a(_0x62c433(_0x2290ed)),_0x53f49b=_0x544b51(_0x5f102a(window[_0x3039c4([0x4d,0x61,0x74,0x68])][_0x3039c4([0x63,0x65,0x69,0x6c])](_0x49ac60/_0x5ede1c)));window[_0x3039c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3039c4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x171a7d,_0x53f49b);}function _0x211322(){const _0x4ed16e=_0x3039c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f102a(_0x62c433(_0x2290ed)),_0x18d3dc=window[_0x3039c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3039c4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ed16e);return _0x18d3dc?window[_0x3039c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x544b51(_0x18d3dc),0x10)*_0x5ede1c:null;}function _0x63d7b6(_0x6944a3){return new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b655e,_0xac5265)=>{_0x6944a3[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x3b655e,_0xac5265),window[_0x3039c4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xac5265,0x3054d12d^_0x30ea8c);});}}_0x382b64[_0x3039c4([0x6f,0x6e])](_0x3039c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3a618f,_0x266828)=>{if(_0x266828[0x0]!=_0x2290ed)return _0x4d7b3b(_0x3039c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x266828[0x1]={..._0x266828[0x1],[_0x3039c4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14502a};},{[_0x3039c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3039c4([0x68,0x69,0x67,0x68])}),_0x382b64[_0x3039c4([0x6f,0x6e])](_0x3039c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd36ad7=>{_0x4c007f(_0xd36ad7[_0x3039c4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17c4b2=!0x0,_0x458a4f(_0xd36ad7[_0x3039c4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3039c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3039c4([0x6c,0x6f,0x77])}),_0x131286[_0x3039c4([0x74,0x68,0x65,0x6e])](()=>{_0x17c4b2||_0x4d7b3b(_0x3039c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9d0aec(){return _0x382b64[_0x3039c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3039c4([0x76,0x69,0x65,0x77])][_0x3039c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3039c4([0x61,0x75,0x74,0x6f]);}function _0x44219f(){_0x382b64[_0x3039c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3039c4([0x76,0x69,0x65,0x77])][_0x3039c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3039c4([0x61,0x75,0x74,0x6f]);}}function _0x5b4222(_0xbf85a1){const _0x1334e7=[new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5882d7=>setTimeout(_0x5882d7,0x305c3b21^_0x30ea8c)),_0x131286[_0x3039c4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55311d=>{let _0x1bda00=0x0;_0x382b64[_0x3039c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039c4([0x6f,0x6e])](_0x3039c4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2eb873,_0x2dc845)=>{_0x2dc845[0x0][_0x3039c4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1bda00++,_0x1bda00==(0x30550005^_0x30ea8c)&&(_0x55311d(),_0x2eb873[_0x3039c4([0x6f,0x66,0x66])]());});}))];return window[_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3039c4([0x72,0x61,0x63,0x65])](_0x1334e7)[_0x3039c4([0x74,0x68,0x65,0x6e])](()=>_0xbf85a1);}async function _0x52dff2(){await _0x131286,_0x382b64[_0x3039c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039c4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37d95f,_0x382b64[_0x3039c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039c4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37d95f,_0x382b64[_0x3039c4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3039c4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x374450(){return window[_0x3039c4([0x67,0x6c,0x6f,0x62])]&&window[_0x3039c4([0x67,0x6c,0x6f,0x62])][_0x3039c4([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x2ba5cd(_0x58abe2){const _0x13b136=_0x577509();_0x382b64[_0x13b136]=_0x3039c4([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58abe2,_0x58abe2!=_0x3039c4([0x56,0x61,0x6c,0x69,0x64])&&_0x52dff2();}function _0x577509(){const _0xd9d04a=window[_0x3039c4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3039c4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3039c4([0x6e,0x6f,0x77])]())[_0x3039c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3039c4([0x2e]),'');let _0x44b1a6=_0x3039c4([0x75]);for(let _0x15ed8e=0x0;_0x15ed8e<_0xd9d04a[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15ed8e+=0x2){let _0x380e17=window[_0x3039c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd9d04a[_0x3039c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15ed8e,_0x15ed8e+0x2));_0x380e17>=_0x1398e9[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x380e17-=_0x1398e9[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x44b1a6+=_0x1398e9[_0x380e17];}return _0x44b1a6;}function _0x1b7080(){const _0x36d937=_0x73bbc6[_0x3039c4([0x73,0x70,0x6c,0x69,0x74])](_0x3039c4([0x2e]));if(0x3!=_0x36d937[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2cbff0(_0x36d937[0x1]);function _0x2cbff0(_0x5de43c){const _0xaa23d7=_0x1bc6c2(_0x5de43c);return _0xaa23d7&&_0x48c0fd()?_0xaa23d7:null;function _0x48c0fd(){const _0x40424c=_0xaa23d7[_0x3039c4([0x6a,0x74,0x69])],_0x42166b=window[_0x3039c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40424c[_0x3039c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40424c[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42c3f8={..._0xaa23d7,[_0x3039c4([0x6a,0x74,0x69])]:_0x40424c[_0x3039c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x40424c[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42c3f8[_0x3039c4([0x76,0x63])],_0x62c433(_0x42c3f8)==_0x42166b;}}}async function _0x183d8c(){let _0x167983=!0x0;try{const _0x1db9ac=_0x73bbc6[_0x3039c4([0x73,0x70,0x6c,0x69,0x74])](_0x3039c4([0x2e])),[_0x3a06a9,_0x3fdccf,_0x3438d5]=_0x1db9ac;return _0x311379(_0x3a06a9),await _0x3f34f3(_0x3a06a9,_0x3fdccf,_0x3438d5),_0x167983;}catch{return!0x1;}function _0x311379(_0x556e32){const _0x1b0425=_0x1bc6c2(_0x556e32);_0x1b0425&&_0x1b0425[_0x3039c4([0x61,0x6c,0x67])]==_0x3039c4([0x45,0x53,0x32,0x35,0x36])||(_0x167983=!0x1);}async function _0x3f34f3(_0x282376,_0x334181,_0x264eeb){const _0xe01974=window[_0x3039c4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3039c4([0x66,0x72,0x6f,0x6d])](_0x5cc16f(_0x264eeb),_0x20442f=>_0x20442f[_0x3039c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x533fcf=new window[(_0x3039c4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3039c4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x282376+_0x3039c4([0x2e])+_0x334181),_0x2c8fba=window[_0x3039c4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3039c4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c8fba)return;const _0x1d4de4=await _0x2c8fba[_0x3039c4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3039c4([0x6a,0x77,0x6b]),_0x48f433,{[_0x3039c4([0x6e,0x61,0x6d,0x65])]:_0x3039c4([0x45,0x43,0x44,0x53,0x41]),[_0x3039c4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3039c4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3039c4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c8fba[_0x3039c4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3039c4([0x6e,0x61,0x6d,0x65])]:_0x3039c4([0x45,0x43,0x44,0x53,0x41]),[_0x3039c4([0x68,0x61,0x73,0x68])]:{[_0x3039c4([0x6e,0x61,0x6d,0x65])]:_0x3039c4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d4de4,_0xe01974,_0x533fcf)||(_0x167983=!0x1);}}function _0x1bc6c2(_0x24b4f3){return _0x24b4f3[_0x3039c4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3039c4([0x65,0x79]))?JSON[_0x3039c4([0x70,0x61,0x72,0x73,0x65])](_0x5cc16f(_0x24b4f3)):null;}function _0x5cc16f(_0x1180ff){return window[_0x3039c4([0x61,0x74,0x6f,0x62])](_0x1180ff[_0x3039c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3039c4([0x2b]))[_0x3039c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3039c4([0x2f])));}function _0x62c433(_0x513a97){let _0x122203=0x1505;function _0x46b363(_0xa283ab){for(let _0x5dcdd6=0x0;_0x5dcdd6<_0xa283ab[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dcdd6++){const _0x5a6a62=_0xa283ab[_0x3039c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5dcdd6);_0x122203=(_0x122203<<0x5)+_0x122203+_0x5a6a62,_0x122203&=_0x122203;}}function _0x446055(_0x48ba84){Array[_0x3039c4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48ba84)?_0x48ba84[_0x3039c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x446055):_0x48ba84&&typeof _0x48ba84==_0x3039c4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3039c4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48ba84)[_0x3039c4([0x73,0x6f,0x72,0x74])]()[_0x3039c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c11f9,_0x5f4599])=>{_0x46b363(_0x3c11f9),_0x446055(_0x5f4599);}):_0x46b363(window[_0x3039c4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48ba84));}return _0x446055(_0x513a97),_0x122203>>>0x0;}function _0x5f102a(_0x342a08){return _0x342a08[_0x3039c4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3039c4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3039c4([0x30]));}function _0x544b51(_0x3edba3){return _0x3edba3[_0x3039c4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3039c4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3039c4([0x6a,0x6f,0x69,0x6e])]('');}function _0x37d95f(){}function _0x3039c4(_0xfee72e){return _0xfee72e['map'](_0x37e056=>String['fromCharCode'](_0x37e056))['join']('');}_0x2ba5cd(await _0x53f622());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x3303a1=_0x2797ec=>function(_0x123206,_0x3903ee){const t=_0x123206['t'],_0x5be62d=_0x123206['t'];switch(_0x3903ee){case'AI\x20Assistant':return _0x5be62d('AI\x20Assistant');case'Block\x20quote':return _0x5be62d('Block\x20quote');case'Bulleted\x20List':return _0x5be62d('Bulleted\x20List');case'Insert\x20code\x20block':return _0x5be62d('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x5be62d('Open\x20file\x20manager');case'Insert\x20image':return _0x5be62d('Insert\x20image');case'Heading\x201':return _0x5be62d('Heading\x201');case'Heading\x202':return _0x5be62d('Heading\x202');case'Heading\x203':return _0x5be62d('Heading\x203');case'Heading\x204':return _0x5be62d('Heading\x204');case'Heading\x205':return _0x5be62d('Heading\x205');case'Heading\x206':return _0x5be62d('Heading\x206');case'Horizontal\x20line':return _0x5be62d('Horizontal\x20line');case'Insert\x20HTML':return _0x5be62d('Insert\x20HTML');case'Increase\x20indent':return _0x5be62d('Increase\x20indent');case'Insert\x20table':return _0x5be62d('Insert\x20table');case'Table\x20of\x20contents':return _0x5be62d('Table\x20of\x20contents');case'Numbered\x20List':return _0x5be62d('Numbered\x20List');case'Decrease\x20indent':return _0x5be62d('Decrease\x20indent');case'Paragraph':return _0x5be62d('Paragraph');case'To-do\x20List':return _0x5be62d('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 _0x3903ee;}}(this['editor']['locale'],_0x2797ec);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x4c6457,'title':_0x3303a1('AI\x20Assistant'),'description':_0x3303a1('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x4b9ba0=>{setTimeout(()=>_0x4b9ba0['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x5b920c,'title':_0x3303a1('Block\x20quote'),'description':_0x3303a1('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x1b5468,'title':_0x3303a1('Bulleted\x20List'),'description':_0x3303a1('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x36e9b3,'title':_0x3303a1('Insert\x20code\x20block'),'description':_0x3303a1('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x2843cf,'title':_0x3303a1('Open\x20file\x20manager'),'description':_0x3303a1('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x2843cf,'title':_0x3303a1('Insert\x20image'),'description':_0x3303a1('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x4aca39,'title':_0x3303a1('Emoji'),'description':_0x3303a1('Insert\x20an\x20emoji'),'execute':_0x4024ff=>{setTimeout(()=>_0x4024ff['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x25f9c8,'title':_0x3303a1('Heading\x201'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x201'),'execute':_0x33e4d4=>{_0x33e4d4['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x20e148,'title':_0x3303a1('Heading\x202'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x202'),'execute':_0x5a8471=>{_0x5a8471['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x1b9d10,'title':_0x3303a1('Heading\x203'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x203'),'execute':_0x58ca39=>{_0x58ca39['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x500a40,'title':_0x3303a1('Heading\x204'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x204'),'execute':_0xdf1ccc=>{_0xdf1ccc['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x5205d3,'title':_0x3303a1('Heading\x205'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x205'),'execute':_0x7c9cbf=>{_0x7c9cbf['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x3fe496,'title':_0x3303a1('Heading\x206'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x206'),'execute':_0x522d13=>{_0x522d13['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x2048fb,'title':_0x3303a1('Horizontal\x20line'),'description':_0x3303a1('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x355e9e,'title':_0x3303a1('Insert\x20HTML'),'description':_0x3303a1('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x32badf,'title':_0x3303a1('Increase\x20indent'),'description':_0x3303a1('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x3303a1('Insert\x20Mermaid\x20diagram'),'description':_0x3303a1('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0xcda14a,'title':_0x3303a1('Insert\x20table'),'description':_0x3303a1('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x5e38af,'title':_0x3303a1('Table\x20of\x20contents'),'description':_0x3303a1('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0xec6784,'title':_0x3303a1('Numbered\x20List'),'description':_0x3303a1('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x49d997,'title':_0x3303a1('Decrease\x20indent'),'description':_0x3303a1('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x409cad,'title':_0x3303a1('Paragraph'),'description':_0x3303a1('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x18d339,'title':_0x3303a1('To-do\x20List'),'description':_0x3303a1('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x2429e3,'title':_0x3303a1('Footnote'),'description':_0x3303a1('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x35f59b){return _0x35f59b['isEnabled']?_0x35f59b['isEnabled'](this['editor']):!_0x35f59b['commandName']||this['editor']['commands']['get'](_0x35f59b['commandName'])['isEnabled'];}['_proxyExecute'](_0x3ec654){if(_0x3ec654['execute'])_0x3ec654['execute'](this['editor']);else{if(!_0x3ec654['commandName'])throw new _0x4c6594('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x3ec654});this['editor']['execute'](_0x3ec654['commandName']);}}}function S(_0x457f15,_0x12d93d){return _0x457f15['title']<_0x12d93d['title']?-0x1:_0x457f15['title']>_0x12d93d['title']?0x1:0x0;}function O(_0x1da34d,_0x415d81){return _0x415d81+'-'+_0x1da34d['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0xbd09bc{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x2d5633){const _0x584b4e=_0x2d5633&&_0x2d5633['toLowerCase']();let _0xecf43e=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0xecf43e=_0xecf43e['filter'](_0x322979=>_0x322979['isEnabled']()),_0x584b4e){const _0x44b16b=[],_0x386190=[],_0x2cdf6a=[],_0x5c633e=[];for(const _0x3447a6 of _0xecf43e)_0x3447a6['id']['toLowerCase']()['includes'](_0x584b4e)?_0x44b16b['push'](_0x3447a6):_0x3447a6['title']['toLowerCase']()['includes'](_0x584b4e)?_0x386190['push'](_0x3447a6):_0x3447a6['aliases']&&_0x3447a6['aliases']['some'](_0x35053a=>_0x35053a['toLowerCase']()['includes'](_0x584b4e))?_0x2cdf6a['push'](_0x3447a6):_0x3447a6['description']&&_0x3447a6['description']['toLowerCase']()['includes'](_0x584b4e)&&_0x5c633e['push'](_0x3447a6);_0xecf43e=_0x44b16b['concat'](_0x386190,_0x2cdf6a,_0x5c633e);}return _0xecf43e;}}class SlashCommandButtonView extends _0x516fee{constructor(_0x3fc3a0,_0x82833f){super(_0x3fc3a0),this['textPartView']=this['_createTextPartView'](_0x3fc3a0,_0x82833f),void 0x0!==_0x82833f['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x82833f['isIconColorInherited']),this['set']({'icon':_0x82833f['icon']||_0x20f466,'withText':!0x0,'label':_0x82833f['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x14ca9b,_0x3409d9){const _0x290d6d=new _0xbb769b(_0x14ca9b);return _0x290d6d['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x3409d9['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x3409d9['description']}]}]:[this['labelView']]}),_0x290d6d;}}class SlashCommandUI extends _0xbd09bc{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x196702){super(_0x196702),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x196cdf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1fdf49;for(const _0xe36a1f in _0x196cdf){const _0x164267=_0xe36a1f,_0x562b0a=_0x196cdf[_0x164267];if('slashCommandLicenseKeyValid'==_0x562b0a||'slashCommandLicenseKeyInvalid'==_0x562b0a||'slashCommandLicenseKeyExpired'==_0x562b0a||'slashCommandLicenseKeyDomainLimit'==_0x562b0a||'slashCommandLicenseKeyNotAllowed'==_0x562b0a||'slashCommandLicenseKeyEvaluationLimit'==_0x562b0a||'slashCommandLicenseKeyUsageLimit'==_0x562b0a){delete _0x196cdf[_0x164267],_0x1fdf49=_0x562b0a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x1fdf49&&_0x196cdf['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x1fdf49&&_0x196cdf['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x1fdf49&&_0x196cdf['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x1fdf49&&_0x196cdf['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x1fdf49&&_0x196cdf['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x1fdf49&&_0x196cdf['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x4089a3=this['editor'],_0x241878=this['editor']['plugins']['get']('SlashCommandEditing'),_0x195ea9=_0x4089a3['config']['get']('mention.feeds');_0x195ea9['push']({'marker':'/','feed':_0x17453c=>_0x241878['getMatchingCommands'](_0x17453c),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x4089a3['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x4089a3['config']['set']('mention.feeds',_0x195ea9);}['_overrideMentionExecuteListener'](){const _0x2fb3f6=this['editor'];_0x2fb3f6['commands']['get']('mention')['on']('execute',(_0x3c243c,_0x217a9b)=>{const _0x2f644e=_0x217a9b[0x0],_0x1c69b0=_0x2fb3f6['model'];'/'===_0x2f644e['marker']&&_0x1c69b0['change'](_0x48ef97=>{_0x48ef97['remove'](_0x2f644e['range']),_0x2f644e['mention']['execute'](),_0x3c243c['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x4c1d51){const _0xef01c1=this['editor']['locale'],_0xcd7e86=new SlashCommandButtonView(_0xef01c1,_0x4c1d51);return _0xcd7e86['render'](),_0xcd7e86['element'];}}class SlashCommand extends _0xbd09bc{static get['requires'](){return[_0x3047db,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 _0x4a4149}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x3fe898}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x279201,uid as _0x4bbdf3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x4eda46,IconQuote as _0x122c8f,IconBulletedList as _0x5f1015,IconCodeBlock as _0x2b68f0,IconBrowseFiles as _0x3bb381,IconEmoji as _0x289b7b,IconHeading1 as _0xbfe048,IconHeading2 as _0x1b9b85,IconHeading3 as _0x3d5ed2,IconHeading4 as _0x499532,IconHeading5 as _0x2c61c6,IconHeading6 as _0x42c041,IconHorizontalLine as _0x393331,IconHtml as _0x12b458,IconIndent as _0x240796,IconTable as _0x5c8169,IconTableOfContents as _0x2ad964,IconNumberedList as _0x4884c2,IconOutdent as _0x2faca1,IconParagraph as _0x2b7999,IconTodoList as _0x18272c,IconFootnote as _0x54b401,IconPlay as _0x194784}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1666dd,View as _0x33c86f}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x4a4149{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4402b7){super(_0x4402b7),this['_allowedCommands']=null;}['afterInit'](){const _0x47a588=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x50d907=function(_0x5201e4){let _0x5c5fe2=['heading4','heading5','heading6'];if(_0x5201e4){const _0x357582=_0x5201e4['map'](_0x2604da=>_0x2604da['model']);_0x5c5fe2=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x313a7e=>!_0x357582['includes'](_0x313a7e));}return _0x5c5fe2;}(this['editor']['config']['get']('heading.options'));let _0x54a69f=this['getDefaultCommands']()['filter'](_0x48dd0a=>!_0x50d907['includes'](_0x48dd0a['id']))['filter'](_0x78d8ef=>!_0x47a588['includes'](_0x78d8ef['commandName']));const _0x2570fb=this['editor']['config']['get']('slashCommand.extraCommands');_0x2570fb&&_0x2570fb['length']&&(_0x54a69f=_0x54a69f['concat'](_0x2570fb));const _0x26746e=this['editor']['config']['get']('template.definitions');_0x26746e&&_0x26746e['length']&&(_0x54a69f=_0x54a69f['concat'](function(_0x576b1d){return _0x576b1d['map'](_0x58f865=>{const {title:_0xe7a49a,icon:_0x22f8ac,description:_0x264da3,data:_0x2abea4}=_0x58f865,_0x226913={'id':O(_0xe7a49a,'template'),'commandName':'insertTemplate','execute':_0x7153ce=>{_0x7153ce['execute']('insertTemplate',_0x2abea4);},'description':_0x264da3,'icon':_0x22f8ac,'title':_0xe7a49a};return _0x22f8ac&&(_0x226913['isIconColorInherited']=!0x1),_0x226913;});}(_0x26746e)));const _0x12a62a=this['editor']['config']['get']('style.definitions');_0x12a62a&&_0x12a62a['length']&&(_0x54a69f=_0x54a69f['concat'](function(_0x20750b){return _0x20750b['map'](_0x196ea5=>({'id':O(_0x196ea5['name'],'style'),'commandName':'style','execute':_0x9e52e5=>{_0x9e52e5['execute']('style',{'styleName':_0x196ea5['name']});},'isEnabled':_0x5bb235=>{const _0x58bf07=_0x5bb235['commands']['get']('style');return _0x58bf07['isEnabled']&&_0x58bf07['enabledStyles']['includes'](_0x196ea5['name']);},'title':_0x196ea5['name']}));}(_0x12a62a)));const _0x3c5f4d=_0x54a69f['filter'](_0x13b86b=>!_0x13b86b['commandName']||void 0x0!==this['editor']['commands']['get'](_0x13b86b['commandName'])),_0x2ef5bc=[];for(const _0x56af21 of _0x3c5f4d)_0x2ef5bc['push']({'id':_0x56af21['id'],'commandName':_0x56af21['commandName'],'title':'function'==typeof _0x56af21['title']?_0x56af21['title'](this['editor']):_0x56af21['title'],'description':_0x56af21['description'],'icon':_0x56af21['icon'],'isIconColorInherited':_0x56af21['isIconColorInherited'],'aliases':_0x56af21['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x56af21),'execute':()=>this['_proxyExecute'](_0x56af21)});this['_allowedCommands']=_0x2ef5bc['sort'](S),async function(_0x2127ec){const _0x102661=_0x45c58f([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]),_0x53f670=0x305505ed,_0x53da6b=0x30528f85^_0x53f670,_0x16de2f=window[_0x45c58f([0x44,0x61,0x74,0x65])][_0x45c58f([0x6e,0x6f,0x77])](),_0x4f9212=_0x2127ec[_0x45c58f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x314e6c=new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x316bee=>{_0x4f9212[_0x45c58f([0x6f,0x6e,0x63,0x65])](_0x45c58f([0x72,0x65,0x61,0x64,0x79]),_0x316bee);}),_0xc006eb={[_0x45c58f([0x6b,0x74,0x79])]:_0x45c58f([0x45,0x43]),[_0x45c58f([0x75,0x73,0x65])]:_0x45c58f([0x73,0x69,0x67]),[_0x45c58f([0x63,0x72,0x76])]:_0x45c58f([0x50,0x2d,0x32,0x35,0x36]),[_0x45c58f([0x78])]:_0x45c58f([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]),[_0x45c58f([0x79])]:_0x45c58f([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]),[_0x45c58f([0x61,0x6c,0x67])]:_0x45c58f([0x45,0x53,0x32,0x35,0x36])},_0x2fc355=_0x4f9212[_0x45c58f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x45c58f([0x67,0x65,0x74])](_0x45c58f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x166f0e(){let _0x584777,_0x165fa9=null,_0x55b700=null;try{if(_0x2fc355==_0x45c58f([0x47,0x50,0x4c]))return _0x45c58f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x584777=_0x2a283e(),!_0x584777)return _0x45c58f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x584777[_0x45c58f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55b700=_0x787876(_0x584777[_0x45c58f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x584777[_0x45c58f([0x6a,0x74,0x69])])),await _0x36316b()?_0x1a6185()?_0x284e9f()?_0x45c58f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x62476()?(_0x584777[_0x45c58f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45c58f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x165fa9=_0x58b667(_0x45c58f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e0457()):_0x45c58f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x45c58f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x45c58f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x45c58f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x284e9f(){const _0x57a2e5=[_0x45c58f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x45c58f([0x74,0x72,0x69,0x61,0x6c])][_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x584777[_0x45c58f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16de2f/0x3e8:0xe10*_0x53da6b;return _0x584777[_0x45c58f([0x65,0x78,0x70])]<_0x57a2e5;}function _0x1a6185(){const _0x2c5466=_0x584777[_0x45c58f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2c5466&&(!!_0x2c5466[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c58f([0x2a]))||(!!_0x2c5466[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c58f([0x53,0x43]))||(!!_0x2c5466[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c58f([0x50,0x50]))||!(!_0x2c5466[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c58f([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x533b1d()))));}function _0x62476(){const _0x4cbc88=_0x584777[_0x45c58f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4cbc88||0x0==_0x4cbc88[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x387ec2}=new URL(window[_0x45c58f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4cbc88[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x387ec2))return!0x0;const _0x619355=_0x387ec2[_0x45c58f([0x73,0x70,0x6c,0x69,0x74])](_0x45c58f([0x2e]));return _0x4cbc88[_0x45c58f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5592e1=>_0x5592e1[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c58f([0x2a])))[_0x45c58f([0x6d,0x61,0x70])](_0x19c6a0=>_0x19c6a0[_0x45c58f([0x73,0x70,0x6c,0x69,0x74])](_0x45c58f([0x2e])))[_0x45c58f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30b345=>_0x30b345[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x619355[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45c58f([0x6d,0x61,0x70])](_0x27a06a=>Array(_0x619355[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27a06a[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45c58f([0x66,0x69,0x6c,0x6c])](_0x27a06a[0x0]===_0x45c58f([0x2a])?_0x45c58f([0x2a]):'')[_0x45c58f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27a06a))[_0x45c58f([0x73,0x6f,0x6d,0x65])](_0x23f717=>_0x619355[_0x45c58f([0x65,0x76,0x65,0x72,0x79])]((_0x57e87c,_0x4af295)=>_0x23f717[_0x4af295]===_0x57e87c||_0x23f717[_0x4af295]===_0x45c58f([0x2a])));}function _0x2e0457(){return _0x165fa9&&_0x55b700?new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22e36e,_0x7c6315)=>{_0x165fa9[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x22e36e,_0x7c6315),_0x55b700[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x21d4c4=>{_0x21d4c4!=_0x45c58f([0x56,0x61,0x6c,0x69,0x64])&&_0x22e36e(_0x21d4c4);},_0x7c6315);}):_0x165fa9||_0x55b700||_0x45c58f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x787876(_0x2e8ca1,_0x139e5b){return new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b30ba=>{if(_0x5d2398())return _0x3b30ba(_0x45c58f([0x56,0x61,0x6c,0x69,0x64]));_0x1a2695(),_0x4f9212[_0x45c58f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x45c58f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x416ab8=!0x1;const _0x1a6664=_0x4bbdf3();function _0x3645ad(_0x181cee){return!!_0x181cee&&(typeof _0x181cee===_0x45c58f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x181cee===_0x45c58f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x181cee[_0x45c58f([0x74,0x68,0x65,0x6e])]===_0x45c58f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x181cee[_0x45c58f([0x63,0x61,0x74,0x63,0x68])]===_0x45c58f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25f125(_0x8e04e){_0x3b0bed(_0x8e04e)[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x13b9ee=>{if(!_0x13b9ee||_0x13b9ee[_0x45c58f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x45c58f([0x6f,0x6b]))return _0x45c58f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3bca9e(_0x5bfed9(_0x1a6664+_0x139e5b))!=_0x13b9ee[_0x45c58f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x45c58f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x45c58f([0x56,0x61,0x6c,0x69,0x64]);})[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x57b83e=>(_0x14cabd(),_0x57b83e),()=>{const _0x562e05=_0x576d9d();return null==_0x562e05?(_0x14cabd(),_0x45c58f([0x56,0x61,0x6c,0x69,0x64])):_0x45c58f(_0x16de2f-_0x562e05>(0x145981ed^_0x53f670)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x3b30ba)[_0x45c58f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b30ba(_0x45c58f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7bb424=0x3063eb6d^_0x53f670;function _0x14cabd(){const _0x6b1677=_0x45c58f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bca9e(_0x5bfed9(_0x2e8ca1)),_0x37f887=_0x2614e4(_0x3bca9e(window[_0x45c58f([0x4d,0x61,0x74,0x68])][_0x45c58f([0x63,0x65,0x69,0x6c])](_0x16de2f/_0x7bb424)));window[_0x45c58f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45c58f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6b1677,_0x37f887);}function _0x576d9d(){const _0xe24d4=_0x45c58f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bca9e(_0x5bfed9(_0x2e8ca1)),_0x3bbcbf=window[_0x45c58f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45c58f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe24d4);return _0x3bbcbf?window[_0x45c58f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2614e4(_0x3bbcbf),0x10)*_0x7bb424:null;}function _0x3b0bed(_0x55cbbb){return new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17b66a,_0x35b817)=>{_0x55cbbb[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x17b66a,_0x35b817),window[_0x45c58f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35b817,0x3054d12d^_0x53f670);});}}_0x4f9212[_0x45c58f([0x6f,0x6e])](_0x45c58f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x405510,_0x46ccce)=>{if(_0x46ccce[0x0]!=_0x2e8ca1)return _0x3b30ba(_0x45c58f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46ccce[0x1]={..._0x46ccce[0x1],[_0x45c58f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a6664};},{[_0x45c58f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45c58f([0x68,0x69,0x67,0x68])}),_0x4f9212[_0x45c58f([0x6f,0x6e])](_0x45c58f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14dab5=>{_0x3645ad(_0x14dab5[_0x45c58f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x416ab8=!0x0,_0x25f125(_0x14dab5[_0x45c58f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x45c58f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45c58f([0x6c,0x6f,0x77])}),_0x314e6c[_0x45c58f([0x74,0x68,0x65,0x6e])](()=>{_0x416ab8||_0x3b30ba(_0x45c58f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5d2398(){return _0x4f9212[_0x45c58f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45c58f([0x76,0x69,0x65,0x77])][_0x45c58f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x45c58f([0x61,0x75,0x74,0x6f]);}function _0x1a2695(){_0x4f9212[_0x45c58f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45c58f([0x76,0x69,0x65,0x77])][_0x45c58f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45c58f([0x61,0x75,0x74,0x6f]);}}function _0x58b667(_0x1c501a){const _0x120323=[new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x454af0=>setTimeout(_0x454af0,0x305c3b21^_0x53f670)),_0x314e6c[_0x45c58f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x167dad=>{let _0x59ded0=0x0;_0x4f9212[_0x45c58f([0x6d,0x6f,0x64,0x65,0x6c])][_0x45c58f([0x6f,0x6e])](_0x45c58f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4dbbaa,_0x1b64ca)=>{_0x1b64ca[0x0][_0x45c58f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x59ded0++,_0x59ded0==(0x30550005^_0x53f670)&&(_0x167dad(),_0x4dbbaa[_0x45c58f([0x6f,0x66,0x66])]());});}))];return window[_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45c58f([0x72,0x61,0x63,0x65])](_0x120323)[_0x45c58f([0x74,0x68,0x65,0x6e])](()=>_0x1c501a);}async function _0x3d5c5d(){await _0x314e6c,_0x4f9212[_0x45c58f([0x6d,0x6f,0x64,0x65,0x6c])][_0x45c58f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3699be,_0x4f9212[_0x45c58f([0x6d,0x6f,0x64,0x65,0x6c])][_0x45c58f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3699be,_0x4f9212[_0x45c58f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x45c58f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x533b1d(){return window[_0x45c58f([0x67,0x6c,0x6f,0x62])]&&window[_0x45c58f([0x67,0x6c,0x6f,0x62])][_0x45c58f([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x13c52d(_0x495776){const _0x1452ce=_0x2b8381();_0x4f9212[_0x1452ce]=_0x45c58f([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x495776,_0x495776!=_0x45c58f([0x56,0x61,0x6c,0x69,0x64])&&_0x3d5c5d();}function _0x2b8381(){const _0x287af5=window[_0x45c58f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x45c58f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x45c58f([0x6e,0x6f,0x77])]())[_0x45c58f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x45c58f([0x2e]),'');let _0x173ae4=_0x45c58f([0x75]);for(let _0x1e1783=0x0;_0x1e1783<_0x287af5[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e1783+=0x2){let _0x24b5ae=window[_0x45c58f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x287af5[_0x45c58f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e1783,_0x1e1783+0x2));_0x24b5ae>=_0x102661[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24b5ae-=_0x102661[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x173ae4+=_0x102661[_0x24b5ae];}return _0x173ae4;}function _0x2a283e(){const _0x1cf762=_0x2fc355[_0x45c58f([0x73,0x70,0x6c,0x69,0x74])](_0x45c58f([0x2e]));if(0x3!=_0x1cf762[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x22b2c7(_0x1cf762[0x1]);function _0x22b2c7(_0x3cd66e){const _0x4b6046=_0x2c4cbd(_0x3cd66e);return _0x4b6046&&_0x4442d3()?_0x4b6046:null;function _0x4442d3(){const _0x2f06d5=_0x4b6046[_0x45c58f([0x6a,0x74,0x69])],_0x3a2d9c=window[_0x45c58f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f06d5[_0x45c58f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f06d5[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xcd6340={..._0x4b6046,[_0x45c58f([0x6a,0x74,0x69])]:_0x2f06d5[_0x45c58f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f06d5[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xcd6340[_0x45c58f([0x76,0x63])],_0x5bfed9(_0xcd6340)==_0x3a2d9c;}}}async function _0x36316b(){let _0x28cdb1=!0x0;try{const _0x29f4ff=_0x2fc355[_0x45c58f([0x73,0x70,0x6c,0x69,0x74])](_0x45c58f([0x2e])),[_0x11d582,_0x5ab89a,_0xe01bfc]=_0x29f4ff;return _0x58cb8f(_0x11d582),await _0x39f756(_0x11d582,_0x5ab89a,_0xe01bfc),_0x28cdb1;}catch{return!0x1;}function _0x58cb8f(_0x3d9747){const _0x130743=_0x2c4cbd(_0x3d9747);_0x130743&&_0x130743[_0x45c58f([0x61,0x6c,0x67])]==_0x45c58f([0x45,0x53,0x32,0x35,0x36])||(_0x28cdb1=!0x1);}async function _0x39f756(_0x2bd847,_0x3f7ec0,_0x496369){const _0x15e06f=window[_0x45c58f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x45c58f([0x66,0x72,0x6f,0x6d])](_0x2f65e5(_0x496369),_0x1e8efd=>_0x1e8efd[_0x45c58f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a3f20=new window[(_0x45c58f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x45c58f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2bd847+_0x45c58f([0x2e])+_0x3f7ec0),_0x58bf51=window[_0x45c58f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x45c58f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58bf51)return;const _0x2d1037=await _0x58bf51[_0x45c58f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x45c58f([0x6a,0x77,0x6b]),_0xc006eb,{[_0x45c58f([0x6e,0x61,0x6d,0x65])]:_0x45c58f([0x45,0x43,0x44,0x53,0x41]),[_0x45c58f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x45c58f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x45c58f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58bf51[_0x45c58f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x45c58f([0x6e,0x61,0x6d,0x65])]:_0x45c58f([0x45,0x43,0x44,0x53,0x41]),[_0x45c58f([0x68,0x61,0x73,0x68])]:{[_0x45c58f([0x6e,0x61,0x6d,0x65])]:_0x45c58f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d1037,_0x15e06f,_0x2a3f20)||(_0x28cdb1=!0x1);}}function _0x2c4cbd(_0x1215b8){return _0x1215b8[_0x45c58f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x45c58f([0x65,0x79]))?JSON[_0x45c58f([0x70,0x61,0x72,0x73,0x65])](_0x2f65e5(_0x1215b8)):null;}function _0x2f65e5(_0xc50d5){return window[_0x45c58f([0x61,0x74,0x6f,0x62])](_0xc50d5[_0x45c58f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x45c58f([0x2b]))[_0x45c58f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x45c58f([0x2f])));}function _0x5bfed9(_0x438ed5){let _0x51c5e4=0x1505;function _0x2472c5(_0x1aedf0){for(let _0x3873ee=0x0;_0x3873ee<_0x1aedf0[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3873ee++){const _0x248b9b=_0x1aedf0[_0x45c58f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3873ee);_0x51c5e4=(_0x51c5e4<<0x5)+_0x51c5e4+_0x248b9b,_0x51c5e4&=_0x51c5e4;}}function _0x2f3c79(_0x2722d6){Array[_0x45c58f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2722d6)?_0x2722d6[_0x45c58f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f3c79):_0x2722d6&&typeof _0x2722d6==_0x45c58f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x45c58f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2722d6)[_0x45c58f([0x73,0x6f,0x72,0x74])]()[_0x45c58f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c1b88,_0x3cc759])=>{_0x2472c5(_0x2c1b88),_0x2f3c79(_0x3cc759);}):_0x2472c5(window[_0x45c58f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2722d6));}return _0x2f3c79(_0x438ed5),_0x51c5e4>>>0x0;}function _0x3bca9e(_0x11e6b5){return _0x11e6b5[_0x45c58f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x45c58f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x45c58f([0x30]));}function _0x2614e4(_0x115b02){return _0x115b02[_0x45c58f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x45c58f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x45c58f([0x6a,0x6f,0x69,0x6e])]('');}function _0x3699be(){}function _0x45c58f(_0x42d79a){return _0x42d79a['map'](_0x25881a=>String['fromCharCode'](_0x25881a))['join']('');}_0x13c52d(await _0x166f0e());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x15bfd4=_0xeeb8b6=>function(_0x1ab776,_0x563f96){const t=_0x1ab776['t'],_0x299e22=_0x1ab776['t'];switch(_0x563f96){case'AI\x20Assistant':return _0x299e22('AI\x20Assistant');case'Block\x20quote':return _0x299e22('Block\x20quote');case'Bulleted\x20List':return _0x299e22('Bulleted\x20List');case'Insert\x20code\x20block':return _0x299e22('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x299e22('Open\x20file\x20manager');case'Insert\x20image':return _0x299e22('Insert\x20image');case'Heading\x201':return _0x299e22('Heading\x201');case'Heading\x202':return _0x299e22('Heading\x202');case'Heading\x203':return _0x299e22('Heading\x203');case'Heading\x204':return _0x299e22('Heading\x204');case'Heading\x205':return _0x299e22('Heading\x205');case'Heading\x206':return _0x299e22('Heading\x206');case'Horizontal\x20line':return _0x299e22('Horizontal\x20line');case'Insert\x20HTML':return _0x299e22('Insert\x20HTML');case'Increase\x20indent':return _0x299e22('Increase\x20indent');case'Insert\x20table':return _0x299e22('Insert\x20table');case'Table\x20of\x20contents':return _0x299e22('Table\x20of\x20contents');case'Numbered\x20List':return _0x299e22('Numbered\x20List');case'Decrease\x20indent':return _0x299e22('Decrease\x20indent');case'Paragraph':return _0x299e22('Paragraph');case'To-do\x20List':return _0x299e22('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 _0x563f96;}}(this['editor']['locale'],_0xeeb8b6);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x4eda46,'title':_0x15bfd4('AI\x20Assistant'),'description':_0x15bfd4('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x503143=>{setTimeout(()=>_0x503143['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x122c8f,'title':_0x15bfd4('Block\x20quote'),'description':_0x15bfd4('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x5f1015,'title':_0x15bfd4('Bulleted\x20List'),'description':_0x15bfd4('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x2b68f0,'title':_0x15bfd4('Insert\x20code\x20block'),'description':_0x15bfd4('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x3bb381,'title':_0x15bfd4('Open\x20file\x20manager'),'description':_0x15bfd4('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x3bb381,'title':_0x15bfd4('Insert\x20image'),'description':_0x15bfd4('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x289b7b,'title':_0x15bfd4('Emoji'),'description':_0x15bfd4('Insert\x20an\x20emoji'),'execute':_0x28f8c7=>{setTimeout(()=>_0x28f8c7['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0xbfe048,'title':_0x15bfd4('Heading\x201'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x201'),'execute':_0x304955=>{_0x304955['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x1b9b85,'title':_0x15bfd4('Heading\x202'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x202'),'execute':_0x282fa2=>{_0x282fa2['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x3d5ed2,'title':_0x15bfd4('Heading\x203'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x203'),'execute':_0x1125f9=>{_0x1125f9['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x499532,'title':_0x15bfd4('Heading\x204'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x204'),'execute':_0x3a7fc3=>{_0x3a7fc3['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x2c61c6,'title':_0x15bfd4('Heading\x205'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x205'),'execute':_0x591b5c=>{_0x591b5c['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x42c041,'title':_0x15bfd4('Heading\x206'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x206'),'execute':_0x502793=>{_0x502793['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x393331,'title':_0x15bfd4('Horizontal\x20line'),'description':_0x15bfd4('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x12b458,'title':_0x15bfd4('Insert\x20HTML'),'description':_0x15bfd4('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x240796,'title':_0x15bfd4('Increase\x20indent'),'description':_0x15bfd4('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x15bfd4('Insert\x20Mermaid\x20diagram'),'description':_0x15bfd4('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x5c8169,'title':_0x15bfd4('Insert\x20table'),'description':_0x15bfd4('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x2ad964,'title':_0x15bfd4('Table\x20of\x20contents'),'description':_0x15bfd4('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x4884c2,'title':_0x15bfd4('Numbered\x20List'),'description':_0x15bfd4('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x2faca1,'title':_0x15bfd4('Decrease\x20indent'),'description':_0x15bfd4('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x2b7999,'title':_0x15bfd4('Paragraph'),'description':_0x15bfd4('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x18272c,'title':_0x15bfd4('To-do\x20List'),'description':_0x15bfd4('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x54b401,'title':_0x15bfd4('Footnote'),'description':_0x15bfd4('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x169566){return _0x169566['isEnabled']?_0x169566['isEnabled'](this['editor']):!_0x169566['commandName']||this['editor']['commands']['get'](_0x169566['commandName'])['isEnabled'];}['_proxyExecute'](_0x50a131){if(_0x50a131['execute'])_0x50a131['execute'](this['editor']);else{if(!_0x50a131['commandName'])throw new _0x279201('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x50a131});this['editor']['execute'](_0x50a131['commandName']);}}}function S(_0x333583,_0x43b8d8){return _0x333583['title']<_0x43b8d8['title']?-0x1:_0x333583['title']>_0x43b8d8['title']?0x1:0x0;}function O(_0x227bb5,_0x5ed4d1){return _0x5ed4d1+'-'+_0x227bb5['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x4a4149{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x551d1a){const _0x59f310=_0x551d1a&&_0x551d1a['toLowerCase']();let _0x5d448d=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x5d448d=_0x5d448d['filter'](_0x43b504=>_0x43b504['isEnabled']()),_0x59f310){const _0x4e373f=[],_0x4c4345=[],_0x32ac7e=[],_0x233eed=[];for(const _0x1f8f35 of _0x5d448d)_0x1f8f35['id']['toLowerCase']()['includes'](_0x59f310)?_0x4e373f['push'](_0x1f8f35):_0x1f8f35['title']['toLowerCase']()['includes'](_0x59f310)?_0x4c4345['push'](_0x1f8f35):_0x1f8f35['aliases']&&_0x1f8f35['aliases']['some'](_0x45944e=>_0x45944e['toLowerCase']()['includes'](_0x59f310))?_0x32ac7e['push'](_0x1f8f35):_0x1f8f35['description']&&_0x1f8f35['description']['toLowerCase']()['includes'](_0x59f310)&&_0x233eed['push'](_0x1f8f35);_0x5d448d=_0x4e373f['concat'](_0x4c4345,_0x32ac7e,_0x233eed);}return _0x5d448d;}}class SlashCommandButtonView extends _0x1666dd{constructor(_0x189acf,_0x46c7e1){super(_0x189acf),this['textPartView']=this['_createTextPartView'](_0x189acf,_0x46c7e1),void 0x0!==_0x46c7e1['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x46c7e1['isIconColorInherited']),this['set']({'icon':_0x46c7e1['icon']||_0x194784,'withText':!0x0,'label':_0x46c7e1['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x270887,_0x53c31e){const _0x335114=new _0x33c86f(_0x270887);return _0x335114['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x53c31e['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x53c31e['description']}]}]:[this['labelView']]}),_0x335114;}}class SlashCommandUI extends _0x4a4149{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x446339){super(_0x446339),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4cc713=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x585df7;for(const _0x220914 in _0x4cc713){const _0x425ae8=_0x220914,_0x490e7a=_0x4cc713[_0x425ae8];if('slashCommandLicenseKeyValid'==_0x490e7a||'slashCommandLicenseKeyInvalid'==_0x490e7a||'slashCommandLicenseKeyExpired'==_0x490e7a||'slashCommandLicenseKeyDomainLimit'==_0x490e7a||'slashCommandLicenseKeyNotAllowed'==_0x490e7a||'slashCommandLicenseKeyEvaluationLimit'==_0x490e7a||'slashCommandLicenseKeyUsageLimit'==_0x490e7a){delete _0x4cc713[_0x425ae8],_0x585df7=_0x490e7a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x585df7&&_0x4cc713['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x585df7&&_0x4cc713['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x585df7&&_0x4cc713['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x585df7&&_0x4cc713['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x585df7&&_0x4cc713['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x585df7&&_0x4cc713['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x43eedd=this['editor'],_0x218469=this['editor']['plugins']['get']('SlashCommandEditing'),_0x37f591=_0x43eedd['config']['get']('mention.feeds');_0x37f591['push']({'marker':'/','feed':_0xcffbc6=>_0x218469['getMatchingCommands'](_0xcffbc6),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x43eedd['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x43eedd['config']['set']('mention.feeds',_0x37f591);}['_overrideMentionExecuteListener'](){const _0x460bb9=this['editor'];_0x460bb9['commands']['get']('mention')['on']('execute',(_0x18ad1f,_0x4d1be9)=>{const _0x487ba5=_0x4d1be9[0x0],_0x4ca52a=_0x460bb9['model'];'/'===_0x487ba5['marker']&&_0x4ca52a['change'](_0x2701ab=>{_0x2701ab['remove'](_0x487ba5['range']),_0x487ba5['mention']['execute'](),_0x18ad1f['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x411203){const _0x53d82b=this['editor']['locale'],_0x30fa30=new SlashCommandButtonView(_0x53d82b,_0x411203);return _0x30fa30['render'](),_0x30fa30['element'];}}class SlashCommand extends _0x4a4149{static get['requires'](){return[_0x3fe898,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.8.1-alpha.
|
|
3
|
+
"version": "48.8.1-alpha.3",
|
|
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.8.1-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-heading": "48.8.1-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-icons": "48.8.1-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-mention": "48.8.1-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-style": "48.8.1-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-template": "48.8.1-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "48.8.1-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.8.1-alpha.3",
|
|
25
|
+
"@ckeditor/ckeditor5-heading": "48.8.1-alpha.3",
|
|
26
|
+
"@ckeditor/ckeditor5-icons": "48.8.1-alpha.3",
|
|
27
|
+
"@ckeditor/ckeditor5-mention": "48.8.1-alpha.3",
|
|
28
|
+
"@ckeditor/ckeditor5-style": "48.8.1-alpha.3",
|
|
29
|
+
"@ckeditor/ckeditor5-template": "48.8.1-alpha.3",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "48.8.1-alpha.3",
|
|
31
|
+
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.3"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"dist",
|