@ckeditor/ckeditor5-source-editing-enhanced 46.0.1-alpha.12 → 46.0.1-alpha.13
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/build/source-editing-enhanced.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +7 -7
- package/src/sourceeditingenhancedui.js +1 -1
- package/src/ui/codeeditorview.js +1 -1
- package/src/ui/editsourcecommand.js +1 -1
- package/src/utils/createcodemirroreditor.js +1 -1
- package/src/utils/format.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x2e7d9a,PendingActions as _0x3293ef,Plugin as _0xae372c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x15bdb0,formatHtml as _0xeaaf92,env as _0x35b84b,uid as _0x34d3f0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x9619d6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0xaa7977,ButtonView as _0x11184a,MenuBarMenuListItemButtonView as _0x3a3f47}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x266d10,crosshairCursor as _0x3fd6ce,drawSelection as _0x5dfbb3,dropCursor as _0x104755,lineNumbers as _0x433e0d,highlightActiveLine as _0x759adc,highlightActiveLineGutter as _0xa5c7b5,highlightSpecialChars as _0x43b5f9,rectangularSelection as _0x2356df,keymap as _0xa6c59b}from'@codemirror/view';import{Compartment as _0x1869fb,Transaction as _0x2bc42e}from'@codemirror/state';import{bracketMatching as _0x156f9d,foldGutter as _0x486af5,indentOnInput as _0x339246,syntaxHighlighting as _0xc19b69,defaultHighlightStyle as _0xaf9d12,foldKeymap as _0x5cff31}from'@codemirror/language';import{toggleTabFocusMode as _0x5ebeb8,history as _0x9d3dfd,defaultKeymap as _0x193d5b,historyKeymap as _0xea115b,indentLess as _0x57502c,indentMore as _0x228197,redo as _0x3d7237,undo as _0x13b216}from'@codemirror/commands';import{autocompletion as _0x1979ec,closeBrackets as _0x13386e,closeBracketsKeymap as _0x4dec78,completionKeymap as _0x4403e8}from'@codemirror/autocomplete';import{html as _0x49f427}from'@codemirror/lang-html';import{markdown as _0x5d8189}from'@codemirror/lang-markdown';import{oneDark as _0x4910e7}from'@codemirror/theme-one-dark';function w(_0x18f0d5,_0x10c5e1){const t=_0x18f0d5['t'];switch(_0x10c5e1){case'Edit\x20source\x20modal\x20label':return t({'string':'Edit\x20source','id':'Edit\x20source\x20modal\x20label'});case'Source':return t('Source');case'Source\x20Editing\x20Enhanced':return t('Source\x20Editing\x20Enhanced');case'Copy\x20line\x20down':return t('Copy\x20line\x20down');case'Copy\x20line\x20up':return t('Copy\x20line\x20up');case'Delete\x20line':return t('Delete\x20line');case'Indent\x20less':return t('Indent\x20less');case'Indent\x20more':return t('Indent\x20more');case'Fold\x20all':return t('Fold\x20all');case'Fold\x20code\x20(current\x20level)':return t('Fold\x20code\x20(current\x20level)');case'Move\x20line\x20down':return t('Move\x20line\x20down');case'Move\x20line\x20up':return t('Move\x20line\x20up');case'Redo\x20(keystroke)':return t({'id':'Redo\x20(keystroke)','string':'Redo'});case'Select\x20line':return t('Select\x20line');case'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode':return t('Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode');case'Toggle\x20block\x20comment':return t('Toggle\x20block\x20comment');case'Toggle\x20comment':return t('Toggle\x20comment');case'Undo\x20(keystroke)':return t({'id':'Undo\x20(keystroke)','string':'Undo'});case'Unfold\x20all':return t('Unfold\x20all');case'Unfold\x20code\x20(current\x20level)':return t('Unfold\x20code\x20(current\x20level)');case'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.':return t('Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.');case'Cancel':return t('Cancel');case'Save':return t('Save');default:return _0x10c5e1;}}function r(_0x3f3c89){const _0x41f7bf=_0x3f3c89['editing']['view']['document']['roots'],_0x42780c=_0x41f7bf['length'];if(0x0===_0x42780c)throw new _0x15bdb0('source-editing-enhanced-editor-no-root',_0x3f3c89);if(0x1===_0x42780c)return _0x41f7bf['first']['rootName'];return Array['from'](_0x3f3c89['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function g(_0x4d1165){return tr(_0x4d1165['replace'](/^[\n\s]*/g,''))?_0x4d1165['replace'](/\s+/g,''):_0x4d1165;}function tr(_0x4f0a28){return _0x4f0a28['startsWith']('<');}function p(_0x1eb14f){const _0x49e4ec=[_0x266d10['lineWrapping'],_0x1979ec(),_0x156f9d(),_0x13386e(),_0x3fd6ce(),_0x5dfbb3(),_0x104755(),_0x433e0d(),_0x486af5(),_0x759adc(),_0xa5c7b5(),_0x43b5f9(),_0x9d3dfd(),_0x339246(),_0x2356df(),_0xc19b69(_0xaf9d12,{'fallback':!0x0})],_0x26cc63=new _0x1869fb();_0x49e4ec['push'](_0x26cc63['of'](_0x266d10['editable']['of'](!0x0))),'html'===_0x1eb14f['syntaxLanguage']?_0x49e4ec['push'](_0x49f427()):_0x49e4ec['push'](_0x5d8189());const _0x21c92d=function(_0x1d5ff1){if(_0x1d5ff1&&'default'!==_0x1d5ff1)return'dark'===_0x1d5ff1?_0x4910e7:_0x1d5ff1;return null;}(_0x1eb14f['theme']);_0x21c92d&&_0x49e4ec['push'](_0x21c92d),_0x49e4ec['push'](_0xa6c59b['of']([..._0x4dec78,..._0x193d5b,..._0xea115b,..._0x5cff31,..._0x4403e8,{'key':'Tab','run':_0x228197,'shift':_0x57502c,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x3d7237,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x3d7237,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x13b216,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x36ed83=new _0x266d10({'extensions':_0x49e4ec,'parent':_0x1eb14f['parent']});return _0x5ebeb8(_0x36ed83),{'focus':()=>{_0x36ed83['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x36ed83['focus']();},'getData':()=>_0x36ed83['state']['doc']['toString'](),'setData':_0x1dad92=>{_0x36ed83['dispatch']({'changes':{'from':0x0,'to':_0x36ed83['state']['doc']['length'],'insert':_0x1dad92},'annotations':_0x2bc42e['addToHistory']['of'](!0x1)});},'setReadOnly':_0x1474b0=>{_0x36ed83['dispatch']({'effects':[_0x26cc63['reconfigure'](_0x266d10['editable']['of'](!_0x1474b0))]});},'destroy':()=>{_0x36ed83['destroy']();},'instance':_0x36ed83};}class E extends _0xaa7977{['_codeEditorApi']=null;['_options'];constructor(_0x2979cd,_0x369591){super(_0x2979cd),this['_options']=_0x369591,this['set']('isReadOnly',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-code-editor'],'tabindex':-0x1}});}['render'](){super['render'](),this['_codeEditorApi']=p({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x5556e8,_0x2d085d,_0x506e70)=>{this['setReadOnly'](_0x506e70);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x462a72){this['_codeEditorApi']['setData'](_0x462a72);}['setReadOnly'](_0x483068){this['_codeEditorApi']['setReadOnly'](_0x483068);}}const b='SourceEditingEnhancedMode';class d extends _0x2e7d9a{constructor(_0xc745c5){super(_0xc745c5),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x3293ef)['on']('change:hasAny',(_0x417a0d,_0x4d4285,_0x5530fd)=>{_0x5530fd?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x93cc2b=this['editor'];for(const _0x4dbfe2 of _0x93cc2b['commands']['names']())['replaceSource','editSource']['includes'](_0x4dbfe2)||_0x93cc2b['commands']['get'](_0x4dbfe2)['forceDisabled'](b);}['_enableCommands'](){const _0x25a420=this['editor'];for(const _0x9b6991 of _0x25a420['commands']['commands']())_0x9b6991['clearForceDisabled'](b);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x8a5034=this['editor'],_0x4798cc=_0x8a5034['locale'],_0x57d1c6=_0x8a5034['plugins']['get']('Dialog'),_0x1c4b24=r(_0x8a5034),_0x254cad=_0x8a5034['data']['get']({'rootName':_0x1c4b24}),_0x568203=tr(_0x208d46=_0x254cad)?_0xeaaf92(_0x208d46):_0x208d46;var _0x208d46;const _0x272c77=new E(_0x4798cc,{'syntaxLanguage':_0x8a5034['plugins']['has']('Markdown')?'markdown':'html','theme':_0x8a5034['config']['get']('sourceEditingEnhanced.theme')});let _0x3654f3=!0x0;const _0x510520=_0x5e0e0b=>{if(!_0x3654f3)return;return g(_0x272c77['getData']())!==g(_0x568203)?window['confirm'](w(_0x4798cc,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x5e0e0b['stop']():void 0x0;};_0x57d1c6['show']({'id':'sourceEditingEnhanced','title':w(_0x4798cc,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x272c77,'actionButtons':[{'label':w(_0x4798cc,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x57d1c6['hide']();}},{'label':w(_0x4798cc,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x33c69a=g(_0x272c77['getData']())!==g(_0x568203);(_0x33c69a&&_0x8a5034['execute']('replaceSource',_0x272c77['getData']()),_0x3654f3=!0x1,_0x57d1c6['hide'](),_0x33c69a&&'editables'in _0x8a5034['ui']['view'])&&_0x8a5034['ui']['view']['editables'][_0x1c4b24]['element']['focus']();},'onCreate':_0x4daab4=>{_0x4daab4['set']('isEnabled',!_0x8a5034['isReadOnly']),_0x4daab4['bind']('isEnabled')['to'](_0x8a5034,'isReadOnly',this,'isEnabled',(_0x3d1cf6,_0x3579f6)=>!_0x3d1cf6&&_0x3579f6);}}],'onHide':()=>{this['_enableCommands'](),_0x57d1c6['off']('hide',_0x510520),_0x272c77['destroy']();},'onShow':()=>{_0x272c77['bind']('isReadOnly')['to'](_0x8a5034,'isReadOnly',this,'isEnabled',(_0x33a1b6,_0x2b4f4a)=>_0x33a1b6||!_0x2b4f4a),_0x272c77['setData'](_0x568203),_0x272c77['focus'](),_0x57d1c6['on']('hide',_0x510520,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0xae372c{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x3293ef];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x255f24=this['editor'],_0x26ef75=_0x255f24['locale'],_0x2ea49a=new d(_0x255f24);_0x255f24['commands']['add']('editSource',_0x2ea49a),_0x255f24['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x6b8cf7=this['_createButton'](_0x11184a,_0x2ea49a);return _0x6b8cf7['set']({'label':w(_0x26ef75,'Source'),'icon':_0x9619d6,'tooltip':w(_0x26ef75,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x6b8cf7;}),_0x255f24['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x56d1db=this['_createButton'](_0x3a3f47,_0x2ea49a,!0x0);return _0x56d1db['set']({'label':w(_0x26ef75,'Edit\x20source\x20modal\x20label'),'icon':_0x9619d6,'role':'menuitemcheckbox'}),_0x56d1db;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x513c0f){const _0x19175a=_0x4ff84b([0x51,0x74,0x35,0x79,0x50,0x6e,0x65,0x41,0x52,0x76,0x6d,0x39,0x4b,0x4c,0x61,0x37,0x54,0x44,0x38,0x59,0x73,0x7a,0x62,0x36,0x42,0x30,0x58,0x4e,0x34,0x46,0x69,0x53,0x49,0x4f,0x31,0x32,0x6f,0x72,0x68,0x47,0x6c,0x6b,0x55,0x70,0x75,0x67,0x6a,0x57,0x43,0x78,0x56,0x71,0x48,0x63,0x5a,0x4a,0x66,0x64,0x4d,0x45,0x77,0x33]),_0x3b9e4e=0x16e451df,_0x15afda=0x16e33e27^_0x3b9e4e,_0x24bbf6=window[_0x4ff84b([0x44,0x61,0x74,0x65])][_0x4ff84b([0x6e,0x6f,0x77])](),_0x26a4d7=_0x513c0f[_0x4ff84b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46a680=new window[(_0x4ff84b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x382cf3=>{_0x26a4d7[_0x4ff84b([0x6f,0x6e,0x63,0x65])](_0x4ff84b([0x72,0x65,0x61,0x64,0x79]),_0x382cf3);}),_0x2b239d={[_0x4ff84b([0x6b,0x74,0x79])]:_0x4ff84b([0x45,0x43]),[_0x4ff84b([0x75,0x73,0x65])]:_0x4ff84b([0x73,0x69,0x67]),[_0x4ff84b([0x63,0x72,0x76])]:_0x4ff84b([0x50,0x2d,0x32,0x35,0x36]),[_0x4ff84b([0x78])]:_0x4ff84b([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]),[_0x4ff84b([0x79])]:_0x4ff84b([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]),[_0x4ff84b([0x61,0x6c,0x67])]:_0x4ff84b([0x45,0x53,0x32,0x35,0x36])},_0x180bf8=_0x26a4d7[_0x4ff84b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ff84b([0x67,0x65,0x74])](_0x4ff84b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54f6f(){let _0x804799,_0xf760c9=null,_0x3fa3d1=null;try{if(_0x180bf8==_0x4ff84b([0x47,0x50,0x4c]))return _0x4ff84b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x804799=_0x25bc86(),!_0x804799)return _0x4ff84b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x804799[_0x4ff84b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3fa3d1=_0x31f468(_0x804799[_0x4ff84b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x804799[_0x4ff84b([0x6a,0x74,0x69])])),await _0x260631()?_0x26e553()?_0x5942ed()?_0x4ff84b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x37767c()?(_0x804799[_0x4ff84b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ff84b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf760c9=_0x204f11(_0x4ff84b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x804799[_0x4ff84b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ff84b([0x74,0x72,0x69,0x61,0x6c])&&(_0xf760c9=_0x204f11(_0x4ff84b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c5234()):_0x4ff84b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ff84b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ff84b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4ff84b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5942ed(){const _0x510337=[_0x4ff84b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ff84b([0x74,0x72,0x69,0x61,0x6c])][_0x4ff84b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x804799[_0x4ff84b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x24bbf6/0x3e8:0xe10*_0x15afda;return _0x804799[_0x4ff84b([0x65,0x78,0x70])]<_0x510337;}function _0x26e553(){const _0x547a83=_0x804799[_0x4ff84b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x547a83&&(!!_0x547a83[_0x4ff84b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ff84b([0x2a]))||!!_0x547a83[_0x4ff84b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ff84b([0x53,0x45,0x45])));}function _0x37767c(){const _0x35973a=_0x804799[_0x4ff84b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35973a||0x0==_0x35973a[_0x4ff84b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa7e1be}=new URL(window[_0x4ff84b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35973a[_0x4ff84b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa7e1be))return!0x0;const _0x5a7f63=_0xa7e1be[_0x4ff84b([0x73,0x70,0x6c,0x69,0x74])](_0x4ff84b([0x2e]));return _0x35973a[_0x4ff84b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52bbd1=>_0x52bbd1[_0x4ff84b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ff84b([0x2a])))[_0x4ff84b([0x6d,0x61,0x70])](_0x5e9955=>_0x5e9955[_0x4ff84b([0x73,0x70,0x6c,0x69,0x74])](_0x4ff84b([0x2e])))[_0x4ff84b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2178f0=>_0x2178f0[_0x4ff84b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a7f63[_0x4ff84b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ff84b([0x6d,0x61,0x70])](_0x36e9ec=>Array(_0x5a7f63[_0x4ff84b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x36e9ec[_0x4ff84b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ff84b([0x66,0x69,0x6c,0x6c])](_0x36e9ec[0x0]===_0x4ff84b([0x2a])?_0x4ff84b([0x2a]):'')[_0x4ff84b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x36e9ec))[_0x4ff84b([0x73,0x6f,0x6d,0x65])](_0x3d06af=>_0x5a7f63[_0x4ff84b([0x65,0x76,0x65,0x72,0x79])]((_0x1a5a41,_0x4c1145)=>_0x3d06af[_0x4c1145]===_0x1a5a41||_0x3d06af[_0x4c1145]===_0x4ff84b([0x2a])));}function _0x1c5234(){return _0xf760c9&&_0x3fa3d1?new window[(_0x4ff84b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e3461,_0x3c1f34)=>{_0xf760c9[_0x4ff84b([0x74,0x68,0x65,0x6e])](_0x4e3461,_0x3c1f34),_0x3fa3d1[_0x4ff84b([0x74,0x68,0x65,0x6e])](_0x3f6141=>{_0x3f6141!=_0x4ff84b([0x56,0x61,0x6c,0x69,0x64])&&_0x4e3461(_0x3f6141);},_0x3c1f34);}):_0xf760c9||_0x3fa3d1||_0x4ff84b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x31f468(_0x3805bd,_0x2f6e70){return new window[(_0x4ff84b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57c5f9=>{if(_0x24f54f())return _0x57c5f9(_0x4ff84b([0x56,0x61,0x6c,0x69,0x64]));_0x1b9238(),_0x26a4d7[_0x4ff84b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ff84b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x471b52=!0x1;const _0x777ab9=_0x34d3f0();function _0x3cb00d(_0x56ddcb){return!!_0x56ddcb&&(typeof _0x56ddcb===_0x4ff84b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x56ddcb===_0x4ff84b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x56ddcb[_0x4ff84b([0x74,0x68,0x65,0x6e])]===_0x4ff84b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x56ddcb[_0x4ff84b([0x63,0x61,0x74,0x63,0x68])]===_0x4ff84b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x202c3b(_0x50526a){_0x25112e(_0x50526a)[_0x4ff84b([0x74,0x68,0x65,0x6e])](_0x41aa6c=>{if(!_0x41aa6c||_0x41aa6c[_0x4ff84b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ff84b([0x6f,0x6b]))return _0x4ff84b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4f184a(_0x317d91(_0x777ab9+_0x2f6e70))!=_0x41aa6c[_0x4ff84b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ff84b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ff84b([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ff84b([0x74,0x68,0x65,0x6e])](_0x4681dc=>(_0xd2007e(),_0x4681dc),()=>{const _0x379069=_0x2d25b4();return null==_0x379069?(_0xd2007e(),_0x4ff84b([0x56,0x61,0x6c,0x69,0x64])):_0x4ff84b(_0x24bbf6-_0x379069>(0x32e8d5df^_0x3b9e4e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ff84b([0x74,0x68,0x65,0x6e])](_0x57c5f9)[_0x4ff84b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57c5f9(_0x4ff84b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x494560=0x16d2bf5f^_0x3b9e4e;function _0xd2007e(){const _0x146db2=_0x4ff84b([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f184a(_0x317d91(_0x3805bd)),_0x5d4db4=_0x1a5ad1(_0x4f184a(window[_0x4ff84b([0x4d,0x61,0x74,0x68])][_0x4ff84b([0x63,0x65,0x69,0x6c])](_0x24bbf6/_0x494560)));window[_0x4ff84b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ff84b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x146db2,_0x5d4db4);}function _0x2d25b4(){const _0xcd9541=_0x4ff84b([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f184a(_0x317d91(_0x3805bd)),_0x3e9b0b=window[_0x4ff84b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ff84b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcd9541);return _0x3e9b0b?window[_0x4ff84b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a5ad1(_0x3e9b0b),0x10)*_0x494560:null;}function _0x25112e(_0xde96b1){return new window[(_0x4ff84b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bf671,_0x3364ff)=>{_0xde96b1[_0x4ff84b([0x74,0x68,0x65,0x6e])](_0x2bf671,_0x3364ff),window[_0x4ff84b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3364ff,0x16e5851f^_0x3b9e4e);});}}_0x26a4d7[_0x4ff84b([0x6f,0x6e])](_0x4ff84b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd84ba3,_0x39f4a5)=>{if(_0x39f4a5[0x0]!=_0x3805bd)return _0x57c5f9(_0x4ff84b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39f4a5[0x1]={..._0x39f4a5[0x1],[_0x4ff84b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x777ab9};},{[_0x4ff84b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ff84b([0x68,0x69,0x67,0x68])}),_0x26a4d7[_0x4ff84b([0x6f,0x6e])](_0x4ff84b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12b502=>{_0x3cb00d(_0x12b502[_0x4ff84b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x471b52=!0x0,_0x202c3b(_0x12b502[_0x4ff84b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ff84b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ff84b([0x6c,0x6f,0x77])}),_0x46a680[_0x4ff84b([0x74,0x68,0x65,0x6e])](()=>{_0x471b52||_0x57c5f9(_0x4ff84b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x24f54f(){return _0x26a4d7[_0x4ff84b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ff84b([0x76,0x69,0x65,0x77])][_0x4ff84b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ff84b([0x61,0x75,0x74,0x6f]);}function _0x1b9238(){_0x26a4d7[_0x4ff84b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ff84b([0x76,0x69,0x65,0x77])][_0x4ff84b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ff84b([0x61,0x75,0x74,0x6f]);}}function _0x204f11(_0x397694){const _0x239412=[new window[(_0x4ff84b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41fea1=>setTimeout(_0x41fea1,0x16ed6f13^_0x3b9e4e)),_0x46a680[_0x4ff84b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ff84b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3593b0=>{let _0x4096b5=0x0;_0x26a4d7[_0x4ff84b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ff84b([0x6f,0x6e])](_0x4ff84b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42e080,_0x4ed9ad)=>{_0x4ed9ad[0x0][_0x4ff84b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4096b5++,_0x4096b5==(0x16e45027^_0x3b9e4e)&&(_0x3593b0(),_0x42e080[_0x4ff84b([0x6f,0x66,0x66])]());});}))];return window[_0x4ff84b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ff84b([0x72,0x61,0x63,0x65])](_0x239412)[_0x4ff84b([0x74,0x68,0x65,0x6e])](()=>_0x397694);}async function _0x1d73c5(){await _0x46a680,_0x26a4d7[_0x4ff84b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ff84b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b5aa2,_0x26a4d7[_0x4ff84b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ff84b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b5aa2,_0x26a4d7[_0x4ff84b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ff84b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x44d9f3(_0x4132b1){const _0x106875=_0x2db189();_0x26a4d7[_0x106875]=_0x4ff84b([0x73,0x6f,0x75,0x72,0x63,0x65,0x45,0x64,0x69,0x74,0x69,0x6e,0x67,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4132b1,_0x4132b1!=_0x4ff84b([0x56,0x61,0x6c,0x69,0x64])&&_0x1d73c5();}function _0x2db189(){const _0x2d5496=window[_0x4ff84b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ff84b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ff84b([0x6e,0x6f,0x77])]())[_0x4ff84b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ff84b([0x2e]),'');let _0x282ee3=_0x4ff84b([0x51]);for(let _0x334f5c=0x0;_0x334f5c<_0x2d5496[_0x4ff84b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x334f5c+=0x2){let _0x964fa8=window[_0x4ff84b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d5496[_0x4ff84b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x334f5c,_0x334f5c+0x2));_0x964fa8>=_0x19175a[_0x4ff84b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x964fa8-=_0x19175a[_0x4ff84b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x282ee3+=_0x19175a[_0x964fa8];}return _0x282ee3;}function _0x25bc86(){const _0x39dbc7=_0x180bf8[_0x4ff84b([0x73,0x70,0x6c,0x69,0x74])](_0x4ff84b([0x2e]));if(0x3!=_0x39dbc7[_0x4ff84b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2bf59c(_0x39dbc7[0x1]);function _0x2bf59c(_0x5a1866){const _0x91caf5=_0x51c37d(_0x5a1866);return _0x91caf5&&_0x11a10e()?_0x91caf5:null;function _0x11a10e(){const _0x54d793=_0x91caf5[_0x4ff84b([0x6a,0x74,0x69])],_0x7e6bb2=window[_0x4ff84b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54d793[_0x4ff84b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54d793[_0x4ff84b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ef8b3={..._0x91caf5,[_0x4ff84b([0x6a,0x74,0x69])]:_0x54d793[_0x4ff84b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x54d793[_0x4ff84b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ef8b3[_0x4ff84b([0x76,0x63])],_0x317d91(_0x3ef8b3)==_0x7e6bb2;}}}async function _0x260631(){let _0x1a0c6c=!0x0;try{const _0x4727df=_0x180bf8[_0x4ff84b([0x73,0x70,0x6c,0x69,0x74])](_0x4ff84b([0x2e])),[_0x2c3430,_0x45a54d,_0x4c32d9]=_0x4727df;return _0x106049(_0x2c3430),await _0x302528(_0x2c3430,_0x45a54d,_0x4c32d9),_0x1a0c6c;}catch{return!0x1;}function _0x106049(_0x4ef6be){const _0x56585f=_0x51c37d(_0x4ef6be);_0x56585f&&_0x56585f[_0x4ff84b([0x61,0x6c,0x67])]==_0x4ff84b([0x45,0x53,0x32,0x35,0x36])||(_0x1a0c6c=!0x1);}async function _0x302528(_0x4a12d7,_0x28fc53,_0x4c464b){const _0x5f3e4c=window[_0x4ff84b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ff84b([0x66,0x72,0x6f,0x6d])](_0x48b785(_0x4c464b),_0x4f3f2b=>_0x4f3f2b[_0x4ff84b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x53e133=new window[(_0x4ff84b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ff84b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a12d7+_0x4ff84b([0x2e])+_0x28fc53),_0x1b90fd=window[_0x4ff84b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ff84b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b90fd)return;const _0x4b2f57=await _0x1b90fd[_0x4ff84b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ff84b([0x6a,0x77,0x6b]),_0x2b239d,{[_0x4ff84b([0x6e,0x61,0x6d,0x65])]:_0x4ff84b([0x45,0x43,0x44,0x53,0x41]),[_0x4ff84b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ff84b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ff84b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b90fd[_0x4ff84b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ff84b([0x6e,0x61,0x6d,0x65])]:_0x4ff84b([0x45,0x43,0x44,0x53,0x41]),[_0x4ff84b([0x68,0x61,0x73,0x68])]:{[_0x4ff84b([0x6e,0x61,0x6d,0x65])]:_0x4ff84b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b2f57,_0x5f3e4c,_0x53e133)||(_0x1a0c6c=!0x1);}}function _0x51c37d(_0x36e8e3){return _0x36e8e3[_0x4ff84b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ff84b([0x65,0x79]))?JSON[_0x4ff84b([0x70,0x61,0x72,0x73,0x65])](_0x48b785(_0x36e8e3)):null;}function _0x48b785(_0xa2b20f){return window[_0x4ff84b([0x61,0x74,0x6f,0x62])](_0xa2b20f[_0x4ff84b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ff84b([0x2b]))[_0x4ff84b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ff84b([0x2f])));}function _0x317d91(_0x47e49e){let _0x326ace=0x1505;function _0xfa975d(_0x44a2cc){for(let _0x1c58d7=0x0;_0x1c58d7<_0x44a2cc[_0x4ff84b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c58d7++){const _0x37b7ee=_0x44a2cc[_0x4ff84b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1c58d7);_0x326ace=(_0x326ace<<0x5)+_0x326ace+_0x37b7ee,_0x326ace&=_0x326ace;}}function _0x4278be(_0xeccdfc){Array[_0x4ff84b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xeccdfc)?_0xeccdfc[_0x4ff84b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4278be):_0xeccdfc&&typeof _0xeccdfc==_0x4ff84b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ff84b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xeccdfc)[_0x4ff84b([0x73,0x6f,0x72,0x74])]()[_0x4ff84b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xfde538,_0x47f154])=>{_0xfa975d(_0xfde538),_0x4278be(_0x47f154);}):_0xfa975d(window[_0x4ff84b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xeccdfc));}return _0x4278be(_0x47e49e),_0x326ace>>>0x0;}function _0x4f184a(_0x24f0fc){return _0x24f0fc[_0x4ff84b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ff84b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ff84b([0x30]));}function _0x1a5ad1(_0x53e191){return _0x53e191[_0x4ff84b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ff84b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ff84b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b5aa2(){}function _0x4ff84b(_0x399755){return _0x399755['map'](_0xf94adc=>String['fromCharCode'](_0xf94adc))['join']('');}_0x44d9f3(await _0x54f6f());}(this);}['_createButton'](_0x201b5a,_0x5f967d,_0x18a1c2=!0x1){const _0xa4a1b5=new _0x201b5a(this['editor']['locale']);return _0xa4a1b5['set']({'withText':_0x18a1c2,'isToggleable':!0x1}),_0xa4a1b5['bind']('isEnabled')['to'](_0x5f967d,'isEnabled'),this['listenTo'](_0xa4a1b5,'execute',()=>_0x5f967d['execute']()),_0xa4a1b5;}['_registerKeybindings'](){const _0x17de5f=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x17de5f,'Source\x20Editing\x20Enhanced')});const _0x527719=_0x35b84b['isMac']||_0x35b84b['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x17de5f,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x17de5f,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x17de5f,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x17de5f,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x17de5f,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x17de5f,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x17de5f,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x527719?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x17de5f,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x17de5f,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x17de5f,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x17de5f,'Select\x20line'),'keystroke':_0x527719?'Ctrl!+L':'Alt+L'},{'label':w(_0x17de5f,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x527719?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x17de5f,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x17de5f,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x17de5f,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x17de5f,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x17de5f,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x527719?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0x2e7d9a{constructor(_0xffce38){super(_0xffce38),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x381e8d,_0x20b5e2){const _0x3b6a06=this['editor'],_0x5c8eb0=_0x20b5e2?.['rootName']??r(_0x3b6a06);_0x3b6a06['data']['set']({[_0x5c8eb0]:_0x381e8d},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ee extends _0xae372c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x1aa729){super(_0x1aa729),_0x1aa729['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new c(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x37ac8f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x7f1fd1;for(const _0x2dc1eb in _0x37ac8f){const _0x56a9ed=_0x2dc1eb,_0x5c011a=_0x37ac8f[_0x56a9ed];if('sourceEditingEnhancedLicenseKeyValid'==_0x5c011a||'sourceEditingEnhancedLicenseKeyInvalid'==_0x5c011a||'sourceEditingEnhancedLicenseKeyExpired'==_0x5c011a||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x5c011a||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x5c011a||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x5c011a||'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x5c011a||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x5c011a){delete _0x37ac8f[_0x56a9ed],_0x7f1fd1=_0x5c011a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x7f1fd1&&_0x37ac8f['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x7f1fd1&&_0x37ac8f['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x7f1fd1&&_0x37ac8f['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x7f1fd1&&_0x37ac8f['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x7f1fd1&&_0x37ac8f['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x7f1fd1&&_0x37ac8f['_showLicenseError']('trialLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x7f1fd1&&_0x37ac8f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x221c6e=this['editor'],_0x88cf0b=_0x221c6e['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x88cf0b&&_0x221c6e['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x15bdb0('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x88cf0b&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x2aeef3=>_0x221c6e['plugins']['has'](_0x2aeef3))&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20at\x20least\x20one\x20of\x20the\x20collaboration\x20features.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20collaboration\x20features.'),_0x221c6e['plugins']['has']('RestrictedEditingModeEditing')&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20restricted\x20editing\x20feature.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20enhanced\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20restricted\x20editing\x20feature.');}}export{d as EditSourceCommand,c as ReplaceSourceCommand,ee as SourceEditingEnhanced};
|
|
23
|
+
import{Command as _0x32bd4a,PendingActions as _0x2b98cf,Plugin as _0x5164b1}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x52bd90,formatHtml as _0x3c698c,env as _0x5c3ca2,uid as _0x4601a7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x1fa0f7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x47ad88,ButtonView as _0x2fd5aa,MenuBarMenuListItemButtonView as _0x93e455}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x4cbfba,crosshairCursor as _0x29fe14,drawSelection as _0x2686ce,dropCursor as _0x3cbf77,lineNumbers as _0x5ec2ae,highlightActiveLine as _0x4cdef3,highlightActiveLineGutter as _0x3243c6,highlightSpecialChars as _0x1ba08d,rectangularSelection as _0x36688a,keymap as _0x16f3fa}from'@codemirror/view';import{Compartment as _0x5b9a5a,Transaction as _0x4725a3}from'@codemirror/state';import{bracketMatching as _0x3ced95,foldGutter as _0x161177,indentOnInput as _0x536880,syntaxHighlighting as _0x5d18ec,defaultHighlightStyle as _0x31b9b6,foldKeymap as _0x3b005e}from'@codemirror/language';import{toggleTabFocusMode as _0x429a3e,history as _0x54e568,defaultKeymap as _0x52a9dd,historyKeymap as _0x1a011c,indentLess as _0x3cbab5,indentMore as _0x53bc91,redo as _0xd1c908,undo as _0x4262e6}from'@codemirror/commands';import{autocompletion as _0x3bda71,closeBrackets as _0x3ae242,closeBracketsKeymap as _0x23e6be,completionKeymap as _0x236a2c}from'@codemirror/autocomplete';import{html as _0xc764c1}from'@codemirror/lang-html';import{markdown as _0x315186}from'@codemirror/lang-markdown';import{oneDark as _0x2539e7}from'@codemirror/theme-one-dark';function w(_0x13928d,_0x3d10d6){const t=_0x13928d['t'];switch(_0x3d10d6){case'Edit\x20source\x20modal\x20label':return t({'string':'Edit\x20source','id':'Edit\x20source\x20modal\x20label'});case'Source':return t('Source');case'Source\x20Editing\x20Enhanced':return t('Source\x20Editing\x20Enhanced');case'Copy\x20line\x20down':return t('Copy\x20line\x20down');case'Copy\x20line\x20up':return t('Copy\x20line\x20up');case'Delete\x20line':return t('Delete\x20line');case'Indent\x20less':return t('Indent\x20less');case'Indent\x20more':return t('Indent\x20more');case'Fold\x20all':return t('Fold\x20all');case'Fold\x20code\x20(current\x20level)':return t('Fold\x20code\x20(current\x20level)');case'Move\x20line\x20down':return t('Move\x20line\x20down');case'Move\x20line\x20up':return t('Move\x20line\x20up');case'Redo\x20(keystroke)':return t({'id':'Redo\x20(keystroke)','string':'Redo'});case'Select\x20line':return t('Select\x20line');case'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode':return t('Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode');case'Toggle\x20block\x20comment':return t('Toggle\x20block\x20comment');case'Toggle\x20comment':return t('Toggle\x20comment');case'Undo\x20(keystroke)':return t({'id':'Undo\x20(keystroke)','string':'Undo'});case'Unfold\x20all':return t('Unfold\x20all');case'Unfold\x20code\x20(current\x20level)':return t('Unfold\x20code\x20(current\x20level)');case'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.':return t('Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.');case'Cancel':return t('Cancel');case'Save':return t('Save');default:return _0x3d10d6;}}function r(_0x31b4fd){const _0x66e0a2=_0x31b4fd['editing']['view']['document']['roots'],_0x4edc04=_0x66e0a2['length'];if(0x0===_0x4edc04)throw new _0x52bd90('source-editing-enhanced-editor-no-root',_0x31b4fd);if(0x1===_0x4edc04)return _0x66e0a2['first']['rootName'];return Array['from'](_0x31b4fd['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function $(_0x101d96){return X(_0x101d96['replace'](/^[\n\s]*/g,''))?_0x101d96['replace'](/\s+/g,''):_0x101d96;}function X(_0x59d0ee){return _0x59d0ee['startsWith']('<');}function Y(_0x5d8d18){const _0x472882=[_0x4cbfba['lineWrapping'],_0x3bda71(),_0x3ced95(),_0x3ae242(),_0x29fe14(),_0x2686ce(),_0x3cbf77(),_0x5ec2ae(),_0x161177(),_0x4cdef3(),_0x3243c6(),_0x1ba08d(),_0x54e568(),_0x536880(),_0x36688a(),_0x5d18ec(_0x31b9b6,{'fallback':!0x0})],_0x46a542=new _0x5b9a5a();_0x472882['push'](_0x46a542['of'](_0x4cbfba['editable']['of'](!0x0))),'html'===_0x5d8d18['syntaxLanguage']?_0x472882['push'](_0xc764c1()):_0x472882['push'](_0x315186());const _0x5cd327=function(_0x4d2db3){if(_0x4d2db3&&'default'!==_0x4d2db3)return'dark'===_0x4d2db3?_0x2539e7:_0x4d2db3;return null;}(_0x5d8d18['theme']);_0x5cd327&&_0x472882['push'](_0x5cd327),_0x472882['push'](_0x16f3fa['of']([..._0x23e6be,..._0x52a9dd,..._0x1a011c,..._0x3b005e,..._0x236a2c,{'key':'Tab','run':_0x53bc91,'shift':_0x3cbab5,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0xd1c908,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0xd1c908,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x4262e6,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x2edb2c=new _0x4cbfba({'extensions':_0x472882,'parent':_0x5d8d18['parent']});return _0x429a3e(_0x2edb2c),{'focus':()=>{_0x2edb2c['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x2edb2c['focus']();},'getData':()=>_0x2edb2c['state']['doc']['toString'](),'setData':_0x218d1a=>{_0x2edb2c['dispatch']({'changes':{'from':0x0,'to':_0x2edb2c['state']['doc']['length'],'insert':_0x218d1a},'annotations':_0x4725a3['addToHistory']['of'](!0x1)});},'setReadOnly':_0x391dea=>{_0x2edb2c['dispatch']({'effects':[_0x46a542['reconfigure'](_0x4cbfba['editable']['of'](!_0x391dea))]});},'destroy':()=>{_0x2edb2c['destroy']();},'instance':_0x2edb2c};}class ee extends _0x47ad88{['_codeEditorApi']=null;['_options'];constructor(_0x229c75,_0x5e13a9){super(_0x229c75),this['_options']=_0x5e13a9,this['set']('isReadOnly',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-code-editor'],'tabindex':-0x1}});}['render'](){super['render'](),this['_codeEditorApi']=Y({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x5a961f,_0x42a765,_0x5461b2)=>{this['setReadOnly'](_0x5461b2);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x468088){this['_codeEditorApi']['setData'](_0x468088);}['setReadOnly'](_0x549baa){this['_codeEditorApi']['setReadOnly'](_0x549baa);}}const te='SourceEditingEnhancedMode';class d extends _0x32bd4a{constructor(_0x3d7e3c){super(_0x3d7e3c),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x2b98cf)['on']('change:hasAny',(_0x36ec1b,_0x3dec47,_0x2f4e66)=>{_0x2f4e66?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x858066=this['editor'];for(const _0x2a83bf of _0x858066['commands']['names']())['replaceSource','editSource']['includes'](_0x2a83bf)||_0x858066['commands']['get'](_0x2a83bf)['forceDisabled'](te);}['_enableCommands'](){const _0x1a4d38=this['editor'];for(const _0x2d77a0 of _0x1a4d38['commands']['commands']())_0x2d77a0['clearForceDisabled'](te);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xae2b32=this['editor'],_0x3da648=_0xae2b32['locale'],_0x5a43d9=_0xae2b32['plugins']['get']('Dialog'),_0x130284=r(_0xae2b32),_0x4bbb8b=_0xae2b32['data']['get']({'rootName':_0x130284}),_0x385d1b=X(_0x224a4a=_0x4bbb8b)?_0x3c698c(_0x224a4a):_0x224a4a;var _0x224a4a;const _0x15e726=new ee(_0x3da648,{'syntaxLanguage':_0xae2b32['plugins']['has']('Markdown')?'markdown':'html','theme':_0xae2b32['config']['get']('sourceEditingEnhanced.theme')});let _0x6b80c8=!0x0;const _0x30df64=_0x20e4dc=>{if(!_0x6b80c8)return;return $(_0x15e726['getData']())!==$(_0x385d1b)?window['confirm'](w(_0x3da648,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x20e4dc['stop']():void 0x0;};_0x5a43d9['show']({'id':'sourceEditingEnhanced','title':w(_0x3da648,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x15e726,'actionButtons':[{'label':w(_0x3da648,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x5a43d9['hide']();}},{'label':w(_0x3da648,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x431418=$(_0x15e726['getData']())!==$(_0x385d1b);(_0x431418&&_0xae2b32['execute']('replaceSource',_0x15e726['getData']()),_0x6b80c8=!0x1,_0x5a43d9['hide'](),_0x431418&&'editables'in _0xae2b32['ui']['view'])&&_0xae2b32['ui']['view']['editables'][_0x130284]['element']['focus']();},'onCreate':_0x4dc6a8=>{_0x4dc6a8['set']('isEnabled',!_0xae2b32['isReadOnly']),_0x4dc6a8['bind']('isEnabled')['to'](_0xae2b32,'isReadOnly',this,'isEnabled',(_0x1a9719,_0x1acc3e)=>!_0x1a9719&&_0x1acc3e);}}],'onHide':()=>{this['_enableCommands'](),_0x5a43d9['off']('hide',_0x30df64),_0x15e726['destroy']();},'onShow':()=>{_0x15e726['bind']('isReadOnly')['to'](_0xae2b32,'isReadOnly',this,'isEnabled',(_0x1b17cf,_0x151323)=>_0x1b17cf||!_0x151323),_0x15e726['setData'](_0x385d1b),_0x15e726['focus'](),_0x5a43d9['on']('hide',_0x30df64,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0x5164b1{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x2b98cf];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x456e40=this['editor'],_0x4c994c=_0x456e40['locale'],_0x57c67f=new d(_0x456e40);_0x456e40['commands']['add']('editSource',_0x57c67f),_0x456e40['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x43033e=this['_createButton'](_0x2fd5aa,_0x57c67f);return _0x43033e['set']({'label':w(_0x4c994c,'Source'),'icon':_0x1fa0f7,'tooltip':w(_0x4c994c,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x43033e;}),_0x456e40['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x5130e6=this['_createButton'](_0x93e455,_0x57c67f,!0x0);return _0x5130e6['set']({'label':w(_0x4c994c,'Edit\x20source\x20modal\x20label'),'icon':_0x1fa0f7,'role':'menuitemcheckbox'}),_0x5130e6;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x41d315){const _0x23c157=_0x151662([0x71,0x39,0x31,0x5a,0x41,0x6d,0x56,0x4c,0x76,0x6a,0x4e,0x73,0x46,0x55,0x49,0x4b,0x6e,0x75,0x51,0x74,0x37,0x34,0x30,0x44,0x4d,0x58,0x68,0x45,0x59,0x35,0x6f,0x7a,0x4f,0x36,0x47,0x6c,0x33,0x38,0x64,0x6b,0x66,0x61,0x62,0x4a,0x54,0x52,0x79,0x78,0x43,0x63,0x42,0x57,0x77,0x65,0x70,0x72,0x67,0x50,0x53,0x48,0x69,0x32]),_0x4f16ad=0x66da4893,_0x3ce094=0x66dd3883^_0x4f16ad,_0x47cddc=window[_0x151662([0x44,0x61,0x74,0x65])][_0x151662([0x6e,0x6f,0x77])](),_0x4d7592=_0x41d315[_0x151662([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x373509=new window[(_0x151662([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5114e3=>{_0x4d7592[_0x151662([0x6f,0x6e,0x63,0x65])](_0x151662([0x72,0x65,0x61,0x64,0x79]),_0x5114e3);}),_0x33d31a={[_0x151662([0x6b,0x74,0x79])]:_0x151662([0x45,0x43]),[_0x151662([0x75,0x73,0x65])]:_0x151662([0x73,0x69,0x67]),[_0x151662([0x63,0x72,0x76])]:_0x151662([0x50,0x2d,0x32,0x35,0x36]),[_0x151662([0x78])]:_0x151662([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]),[_0x151662([0x79])]:_0x151662([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]),[_0x151662([0x61,0x6c,0x67])]:_0x151662([0x45,0x53,0x32,0x35,0x36])},_0x25e94a=_0x4d7592[_0x151662([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x151662([0x67,0x65,0x74])](_0x151662([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d84f1(){let _0x440331,_0x487628=null,_0xa238d5=null;try{if(_0x25e94a==_0x151662([0x47,0x50,0x4c]))return _0x151662([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x440331=_0x35b776(),!_0x440331)return _0x151662([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x440331[_0x151662([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa238d5=_0x38dc9c(_0x440331[_0x151662([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x440331[_0x151662([0x6a,0x74,0x69])])),await _0x18fd56()?_0x993cbf()?_0x1c7c84()?_0x151662([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e767a()?(_0x440331[_0x151662([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x151662([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x487628=_0x4fa3d4(_0x151662([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x440331[_0x151662([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x151662([0x74,0x72,0x69,0x61,0x6c])&&(_0x487628=_0x4fa3d4(_0x151662([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b54ca()):_0x151662([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x151662([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x151662([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x151662([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c7c84(){const _0x10d12d=[_0x151662([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x151662([0x74,0x72,0x69,0x61,0x6c])][_0x151662([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x440331[_0x151662([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47cddc/0x3e8:0xe10*_0x3ce094;return _0x440331[_0x151662([0x65,0x78,0x70])]<_0x10d12d;}function _0x993cbf(){const _0x24f491=_0x440331[_0x151662([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x24f491&&(!!_0x24f491[_0x151662([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x151662([0x2a]))||!!_0x24f491[_0x151662([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x151662([0x53,0x45,0x45])));}function _0x3e767a(){const _0x3c3a54=_0x440331[_0x151662([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c3a54||0x0==_0x3c3a54[_0x151662([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e004a}=new URL(window[_0x151662([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c3a54[_0x151662([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e004a))return!0x0;const _0x5e346d=_0x1e004a[_0x151662([0x73,0x70,0x6c,0x69,0x74])](_0x151662([0x2e]));return _0x3c3a54[_0x151662([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x71f217=>_0x71f217[_0x151662([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x151662([0x2a])))[_0x151662([0x6d,0x61,0x70])](_0x4ecb3f=>_0x4ecb3f[_0x151662([0x73,0x70,0x6c,0x69,0x74])](_0x151662([0x2e])))[_0x151662([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15ac7b=>_0x15ac7b[_0x151662([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e346d[_0x151662([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x151662([0x6d,0x61,0x70])](_0x5c94f7=>Array(_0x5e346d[_0x151662([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c94f7[_0x151662([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x151662([0x66,0x69,0x6c,0x6c])](_0x5c94f7[0x0]===_0x151662([0x2a])?_0x151662([0x2a]):'')[_0x151662([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c94f7))[_0x151662([0x73,0x6f,0x6d,0x65])](_0x2f8fc=>_0x5e346d[_0x151662([0x65,0x76,0x65,0x72,0x79])]((_0x1953e1,_0x52de8b)=>_0x2f8fc[_0x52de8b]===_0x1953e1||_0x2f8fc[_0x52de8b]===_0x151662([0x2a])));}function _0x2b54ca(){return _0x487628&&_0xa238d5?new window[(_0x151662([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1196aa,_0x12a514)=>{_0x487628[_0x151662([0x74,0x68,0x65,0x6e])](_0x1196aa,_0x12a514),_0xa238d5[_0x151662([0x74,0x68,0x65,0x6e])](_0x22e8cd=>{_0x22e8cd!=_0x151662([0x56,0x61,0x6c,0x69,0x64])&&_0x1196aa(_0x22e8cd);},_0x12a514);}):_0x487628||_0xa238d5||_0x151662([0x56,0x61,0x6c,0x69,0x64]);}}function _0x38dc9c(_0xbbd886,_0x1e488f){return new window[(_0x151662([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x353cab=>{if(_0x4133ac())return _0x353cab(_0x151662([0x56,0x61,0x6c,0x69,0x64]));_0x7e8363(),_0x4d7592[_0x151662([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x151662([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16c680=!0x1;const _0x518e0b=_0x4601a7();function _0xf3e722(_0x4f9f7c){return!!_0x4f9f7c&&(typeof _0x4f9f7c===_0x151662([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f9f7c===_0x151662([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f9f7c[_0x151662([0x74,0x68,0x65,0x6e])]===_0x151662([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f9f7c[_0x151662([0x63,0x61,0x74,0x63,0x68])]===_0x151662([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f88bb(_0x394bc1){_0x481c02(_0x394bc1)[_0x151662([0x74,0x68,0x65,0x6e])](_0x4ea24b=>{if(!_0x4ea24b||_0x4ea24b[_0x151662([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x151662([0x6f,0x6b]))return _0x151662([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b76f7(_0x48c31c(_0x518e0b+_0x1e488f))!=_0x4ea24b[_0x151662([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x151662([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x151662([0x56,0x61,0x6c,0x69,0x64]);})[_0x151662([0x74,0x68,0x65,0x6e])](_0x2d756f=>(_0x19b5ce(),_0x2d756f),()=>{const _0x274c84=_0x373d85();return null==_0x274c84?(_0x19b5ce(),_0x151662([0x56,0x61,0x6c,0x69,0x64])):_0x151662(_0x47cddc-_0x274c84>(0x42d6cc93^_0x4f16ad)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x151662([0x74,0x68,0x65,0x6e])](_0x353cab)[_0x151662([0x63,0x61,0x74,0x63,0x68])](()=>{_0x353cab(_0x151662([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xbfb8e5=0x66eca613^_0x4f16ad;function _0x19b5ce(){const _0x27e62f=_0x151662([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b76f7(_0x48c31c(_0xbbd886)),_0x43db5c=_0x3af41f(_0x2b76f7(window[_0x151662([0x4d,0x61,0x74,0x68])][_0x151662([0x63,0x65,0x69,0x6c])](_0x47cddc/_0xbfb8e5)));window[_0x151662([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x151662([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27e62f,_0x43db5c);}function _0x373d85(){const _0x52dadd=_0x151662([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b76f7(_0x48c31c(_0xbbd886)),_0x310b16=window[_0x151662([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x151662([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52dadd);return _0x310b16?window[_0x151662([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3af41f(_0x310b16),0x10)*_0xbfb8e5:null;}function _0x481c02(_0x3e5c4f){return new window[(_0x151662([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26e895,_0x2fb0ad)=>{_0x3e5c4f[_0x151662([0x74,0x68,0x65,0x6e])](_0x26e895,_0x2fb0ad),window[_0x151662([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fb0ad,0x66db9c53^_0x4f16ad);});}}_0x4d7592[_0x151662([0x6f,0x6e])](_0x151662([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x196164,_0x3c3b2b)=>{if(_0x3c3b2b[0x0]!=_0xbbd886)return _0x353cab(_0x151662([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c3b2b[0x1]={..._0x3c3b2b[0x1],[_0x151662([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x518e0b};},{[_0x151662([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x151662([0x68,0x69,0x67,0x68])}),_0x4d7592[_0x151662([0x6f,0x6e])](_0x151662([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e8fc4=>{_0xf3e722(_0x5e8fc4[_0x151662([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16c680=!0x0,_0x3f88bb(_0x5e8fc4[_0x151662([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x151662([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x151662([0x6c,0x6f,0x77])}),_0x373509[_0x151662([0x74,0x68,0x65,0x6e])](()=>{_0x16c680||_0x353cab(_0x151662([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4133ac(){return _0x4d7592[_0x151662([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x151662([0x76,0x69,0x65,0x77])][_0x151662([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x151662([0x61,0x75,0x74,0x6f]);}function _0x7e8363(){_0x4d7592[_0x151662([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x151662([0x76,0x69,0x65,0x77])][_0x151662([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x151662([0x61,0x75,0x74,0x6f]);}}function _0x4fa3d4(_0x24d20e){const _0x2c603c=[new window[(_0x151662([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x481e7f=>setTimeout(_0x481e7f,0x66d3765f^_0x4f16ad)),_0x373509[_0x151662([0x74,0x68,0x65,0x6e])](()=>new window[(_0x151662([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44ca1b=>{let _0x2eaa1a=0x0;_0x4d7592[_0x151662([0x6d,0x6f,0x64,0x65,0x6c])][_0x151662([0x6f,0x6e])](_0x151662([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2278d9,_0x6dff22)=>{_0x6dff22[0x0][_0x151662([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2eaa1a++,_0x2eaa1a==(0x66da496b^_0x4f16ad)&&(_0x44ca1b(),_0x2278d9[_0x151662([0x6f,0x66,0x66])]());});}))];return window[_0x151662([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x151662([0x72,0x61,0x63,0x65])](_0x2c603c)[_0x151662([0x74,0x68,0x65,0x6e])](()=>_0x24d20e);}async function _0x327b7f(){await _0x373509,_0x4d7592[_0x151662([0x6d,0x6f,0x64,0x65,0x6c])][_0x151662([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1fbe91,_0x4d7592[_0x151662([0x6d,0x6f,0x64,0x65,0x6c])][_0x151662([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1fbe91,_0x4d7592[_0x151662([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x151662([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b56b7(_0x3b0dad){const _0x58f798=_0x2f767c();_0x4d7592[_0x58f798]=_0x151662([0x73,0x6f,0x75,0x72,0x63,0x65,0x45,0x64,0x69,0x74,0x69,0x6e,0x67,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3b0dad,_0x3b0dad!=_0x151662([0x56,0x61,0x6c,0x69,0x64])&&_0x327b7f();}function _0x2f767c(){const _0x105b37=window[_0x151662([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x151662([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x151662([0x6e,0x6f,0x77])]())[_0x151662([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x151662([0x2e]),'');let _0xf9089a=_0x151662([0x71]);for(let _0x4017ce=0x0;_0x4017ce<_0x105b37[_0x151662([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4017ce+=0x2){let _0x7f42bf=window[_0x151662([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x105b37[_0x151662([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4017ce,_0x4017ce+0x2));_0x7f42bf>=_0x23c157[_0x151662([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x7f42bf-=_0x23c157[_0x151662([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf9089a+=_0x23c157[_0x7f42bf];}return _0xf9089a;}function _0x35b776(){const _0x2eb4ba=_0x25e94a[_0x151662([0x73,0x70,0x6c,0x69,0x74])](_0x151662([0x2e]));if(0x3!=_0x2eb4ba[_0x151662([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x229c66(_0x2eb4ba[0x1]);function _0x229c66(_0x237c92){const _0x4c6370=_0x21581e(_0x237c92);return _0x4c6370&&_0x30cdd2()?_0x4c6370:null;function _0x30cdd2(){const _0x2c2b71=_0x4c6370[_0x151662([0x6a,0x74,0x69])],_0x284f5a=window[_0x151662([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c2b71[_0x151662([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c2b71[_0x151662([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a9d08={..._0x4c6370,[_0x151662([0x6a,0x74,0x69])]:_0x2c2b71[_0x151662([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c2b71[_0x151662([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a9d08[_0x151662([0x76,0x63])],_0x48c31c(_0x4a9d08)==_0x284f5a;}}}async function _0x18fd56(){let _0x1c1f55=!0x0;try{const _0x56f50f=_0x25e94a[_0x151662([0x73,0x70,0x6c,0x69,0x74])](_0x151662([0x2e])),[_0x1f596b,_0xe02c06,_0x32612a]=_0x56f50f;return _0x311643(_0x1f596b),await _0x42e44d(_0x1f596b,_0xe02c06,_0x32612a),_0x1c1f55;}catch{return!0x1;}function _0x311643(_0x13b1b3){const _0x3ce7d2=_0x21581e(_0x13b1b3);_0x3ce7d2&&_0x3ce7d2[_0x151662([0x61,0x6c,0x67])]==_0x151662([0x45,0x53,0x32,0x35,0x36])||(_0x1c1f55=!0x1);}async function _0x42e44d(_0x506793,_0xf808d4,_0x343b21){const _0x55624e=window[_0x151662([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x151662([0x66,0x72,0x6f,0x6d])](_0x5af8f8(_0x343b21),_0x3974df=>_0x3974df[_0x151662([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x42ae65=new window[(_0x151662([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x151662([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x506793+_0x151662([0x2e])+_0xf808d4),_0x19df98=window[_0x151662([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x151662([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x19df98)return;const _0x24fda4=await _0x19df98[_0x151662([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x151662([0x6a,0x77,0x6b]),_0x33d31a,{[_0x151662([0x6e,0x61,0x6d,0x65])]:_0x151662([0x45,0x43,0x44,0x53,0x41]),[_0x151662([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x151662([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x151662([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x19df98[_0x151662([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x151662([0x6e,0x61,0x6d,0x65])]:_0x151662([0x45,0x43,0x44,0x53,0x41]),[_0x151662([0x68,0x61,0x73,0x68])]:{[_0x151662([0x6e,0x61,0x6d,0x65])]:_0x151662([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24fda4,_0x55624e,_0x42ae65)||(_0x1c1f55=!0x1);}}function _0x21581e(_0x57933b){return _0x57933b[_0x151662([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x151662([0x65,0x79]))?JSON[_0x151662([0x70,0x61,0x72,0x73,0x65])](_0x5af8f8(_0x57933b)):null;}function _0x5af8f8(_0x1577b4){return window[_0x151662([0x61,0x74,0x6f,0x62])](_0x1577b4[_0x151662([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x151662([0x2b]))[_0x151662([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x151662([0x2f])));}function _0x48c31c(_0x1c1dc1){let _0x1a0f6d=0x1505;function _0x15097b(_0x5303f3){for(let _0xab47f1=0x0;_0xab47f1<_0x5303f3[_0x151662([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xab47f1++){const _0x4b6e4f=_0x5303f3[_0x151662([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xab47f1);_0x1a0f6d=(_0x1a0f6d<<0x5)+_0x1a0f6d+_0x4b6e4f,_0x1a0f6d&=_0x1a0f6d;}}function _0xd7c012(_0x14396e){Array[_0x151662([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x14396e)?_0x14396e[_0x151662([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd7c012):_0x14396e&&typeof _0x14396e==_0x151662([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x151662([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x14396e)[_0x151662([0x73,0x6f,0x72,0x74])]()[_0x151662([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16bb8c,_0x3a16b3])=>{_0x15097b(_0x16bb8c),_0xd7c012(_0x3a16b3);}):_0x15097b(window[_0x151662([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x14396e));}return _0xd7c012(_0x1c1dc1),_0x1a0f6d>>>0x0;}function _0x2b76f7(_0x3754e4){return _0x3754e4[_0x151662([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x151662([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x151662([0x30]));}function _0x3af41f(_0x224be0){return _0x224be0[_0x151662([0x73,0x70,0x6c,0x69,0x74])]('')[_0x151662([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x151662([0x6a,0x6f,0x69,0x6e])]('');}function _0x1fbe91(){}function _0x151662(_0x11013f){return _0x11013f['map'](_0x33dae8=>String['fromCharCode'](_0x33dae8))['join']('');}_0x5b56b7(await _0x4d84f1());}(this);}['_createButton'](_0x17eee2,_0x53e209,_0x5188ce=!0x1){const _0x17f049=new _0x17eee2(this['editor']['locale']);return _0x17f049['set']({'withText':_0x5188ce,'isToggleable':!0x1}),_0x17f049['bind']('isEnabled')['to'](_0x53e209,'isEnabled'),this['listenTo'](_0x17f049,'execute',()=>_0x53e209['execute']()),_0x17f049;}['_registerKeybindings'](){const _0x421c9d=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x421c9d,'Source\x20Editing\x20Enhanced')});const _0x4f5394=_0x5c3ca2['isMac']||_0x5c3ca2['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x421c9d,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x421c9d,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x421c9d,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x421c9d,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x421c9d,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x421c9d,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x421c9d,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x4f5394?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x421c9d,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x421c9d,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x421c9d,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x421c9d,'Select\x20line'),'keystroke':_0x4f5394?'Ctrl!+L':'Alt+L'},{'label':w(_0x421c9d,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x4f5394?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x421c9d,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x421c9d,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x421c9d,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x421c9d,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x421c9d,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x4f5394?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0x32bd4a{constructor(_0x550ef7){super(_0x550ef7),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0xf56436,_0x5ca598){const _0x43ab20=this['editor'],_0x37cdcf=_0x5ca598?.['rootName']??r(_0x43ab20);_0x43ab20['data']['set']({[_0x37cdcf]:_0xf56436},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ne extends _0x5164b1{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x553a83){super(_0x553a83),_0x553a83['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new c(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x313cc3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3edd1a;for(const _0x38810f in _0x313cc3){const _0x3caae9=_0x38810f,_0x49147a=_0x313cc3[_0x3caae9];if('sourceEditingEnhancedLicenseKeyValid'==_0x49147a||'sourceEditingEnhancedLicenseKeyInvalid'==_0x49147a||'sourceEditingEnhancedLicenseKeyExpired'==_0x49147a||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x49147a||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x49147a||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x49147a||'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x49147a||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x49147a){delete _0x313cc3[_0x3caae9],_0x3edd1a=_0x49147a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x3edd1a&&_0x313cc3['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x3edd1a&&_0x313cc3['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x3edd1a&&_0x313cc3['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x3edd1a&&_0x313cc3['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x3edd1a&&_0x313cc3['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x3edd1a&&_0x313cc3['_showLicenseError']('trialLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x3edd1a&&_0x313cc3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x185f87=this['editor'],_0x52d965=_0x185f87['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x52d965&&_0x185f87['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x52bd90('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x52d965&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x145445=>_0x185f87['plugins']['has'](_0x145445))&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20at\x20least\x20one\x20of\x20the\x20collaboration\x20features.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20collaboration\x20features.'),_0x185f87['plugins']['has']('RestrictedEditingModeEditing')&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20restricted\x20editing\x20feature.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20enhanced\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20restricted\x20editing\x20feature.');}}export{d as EditSourceCommand,c as ReplaceSourceCommand,ne as SourceEditingEnhanced};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-source-editing-enhanced",
|
|
3
|
-
"version": "46.0.1-alpha.
|
|
3
|
+
"version": "46.0.1-alpha.13",
|
|
4
4
|
"description": "Source editing enhanced feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"type": "module",
|
|
19
19
|
"main": "src/index.js",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@ckeditor/ckeditor5-core": "46.0.1-alpha.
|
|
22
|
-
"@ckeditor/ckeditor5-icons": "46.0.1-alpha.
|
|
23
|
-
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.
|
|
24
|
-
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.
|
|
21
|
+
"@ckeditor/ckeditor5-core": "46.0.1-alpha.13",
|
|
22
|
+
"@ckeditor/ckeditor5-icons": "46.0.1-alpha.13",
|
|
23
|
+
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.13",
|
|
24
|
+
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.13",
|
|
25
|
+
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.13",
|
|
26
26
|
"@codemirror/autocomplete": "^6.7.1",
|
|
27
27
|
"@codemirror/commands": "6.8.1",
|
|
28
28
|
"@codemirror/lang-html": "^6.0.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@codemirror/state": "^6.5.0",
|
|
32
32
|
"@codemirror/theme-one-dark": "^6.1.2",
|
|
33
33
|
"@codemirror/view": "^6.35.0",
|
|
34
|
-
"ckeditor5": "46.0.1-alpha.
|
|
34
|
+
"ckeditor5": "46.0.1-alpha.13"
|
|
35
35
|
},
|
|
36
36
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
37
37
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x51791d=_0x1583;(function(_0x2428cd,_0x272a96){const _0x569d7f=_0x1583,_0x3bfef5=_0x2428cd();while(!![]){try{const _0x14b347=-parseInt(_0x569d7f(0x22d))/0x1*(-parseInt(_0x569d7f(0x225))/0x2)+parseInt(_0x569d7f(0x23f))/0x3*(-parseInt(_0x569d7f(0x22b))/0x4)+parseInt(_0x569d7f(0x233))/0x5*(parseInt(_0x569d7f(0x21b))/0x6)+-parseInt(_0x569d7f(0x201))/0x7*(parseInt(_0x569d7f(0x20f))/0x8)+-parseInt(_0x569d7f(0x220))/0x9+-parseInt(_0x569d7f(0x218))/0xa*(-parseInt(_0x569d7f(0x1fc))/0xb)+parseInt(_0x569d7f(0x202))/0xc;if(_0x14b347===_0x272a96)break;else _0x3bfef5['push'](_0x3bfef5['shift']());}catch(_0xd986cb){_0x3bfef5['push'](_0x3bfef5['shift']());}}}(_0x2998,0xa007b));import{Plugin as _0x18cf05,PendingActions as _0x136d71}from'ckeditor5/src/core.js';import{IconSource as _0x1e2f12}from'ckeditor5/src/icons.js';function _0x1583(_0x2a418a,_0x229af0){const _0x2998e6=_0x2998();return _0x1583=function(_0x158353,_0x4c08c8){_0x158353=_0x158353-0x1e9;let _0x4c4bda=_0x2998e6[_0x158353];return _0x4c4bda;},_0x1583(_0x2a418a,_0x229af0);}import{ButtonView as _0x1d7b29,MenuBarMenuListItemButtonView as _0x44836a}from'ckeditor5/src/ui.js';import{EditSourceCommand as _0x283167}from'./ui/editsourcecommand.js';function _0x2998(){const _0x1b486b=['95hOJYSQ','Source\x20Editing\x20Enhanced','sourceEditingEnhanced','Move\x20line\x20up','menuBar:sourceEditingEnhanced','Shift+Alt+A','Ctrl!+Alt+]','Unfold\x20all','Shift+Ctrl+K','Ctrl+Shift+[','Shift+Alt+ArrowUp','isOfficialPlugin','3DSifbh','Source','Ctrl+M','menuitemcheckbox','_registerKeybindings','join','Ctrl+Shift+Z','Fold\x20code\x20(current\x20level)','Copy\x20line\x20up','isPremiumPlugin','Select\x20line','componentFactory','add','Ctrl+Shift+]','Edit\x20source\x20modal\x20label','Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode','execute','isiOS','fromCharCode','href','33ryIdVW','isMac','Redo\x20(keystroke)','Ctrl+[','Move\x20line\x20down','700dnorcr','665976VTqfeC','Alt+Shift+M','Cmd+Alt+[','Alt+ArrowUp','Ctrl+]','Ctrl+/','Delete\x20line','_createButton','addKeystrokeInfoCategory','Indent\x20more','locale','accessibility','Ctrl+Z','81632QuGdBC','isEnabled','bind','Cmd+Alt+]','Toggle\x20comment','set','ck-source-editing-enhanced-button','Fold\x20all','Indent\x20less','3935480FAaXNH','editSource','SourceEditingEnhancedUI','133176FRoBNc','addKeystrokeInfos','Ctrl!+Alt+[','Shift+Alt+ArrowDown','Undo\x20(keystroke)','394335eAjBnF','Unfold\x20code\x20(current\x20level)','Alt+ArrowDown','afterInit','map','202YoQucx','Ctrl+Y','Ctrl!+L','requires','Copy\x20line\x20down','init','4154252uBLBCL','Toggle\x20block\x20comment','10895tGVMNq','Alt+L','commands','pluginName','listenTo','editor'];_0x2998=function(){return _0x1b486b;};return _0x2998();}import{getTranslation as _0x7c6d86}from'./utils/common-translations.js';import{env as _0x387960,uid as _0x179208}from'ckeditor5/src/utils.js';import'../theme/sourceeditingenhanced.css';export class SourceEditingEnhancedUI extends _0x18cf05{static get[_0x51791d(0x230)](){const _0x3610c0=_0x51791d;return _0x3610c0(0x21a);}static get[_0x51791d(0x228)](){return[_0x136d71];}static get[_0x51791d(0x23e)](){return!0x0;}static get[_0x51791d(0x1f1)](){return!0x0;}[_0x51791d(0x22a)](){const _0x3067f5=_0x51791d,_0x18e08b=this[_0x3067f5(0x232)],_0x388ab4=_0x18e08b[_0x3067f5(0x20c)],_0x485442=new _0x283167(_0x18e08b);_0x18e08b[_0x3067f5(0x22f)][_0x3067f5(0x1f4)](_0x3067f5(0x219),_0x485442),_0x18e08b['ui'][_0x3067f5(0x1f3)][_0x3067f5(0x1f4)](_0x3067f5(0x235),()=>{const _0x1d8f2e=_0x3067f5,_0x122171=this[_0x1d8f2e(0x209)](_0x1d7b29,_0x485442);return _0x122171[_0x1d8f2e(0x214)]({'label':_0x7c6d86(_0x388ab4,_0x1d8f2e(0x1e9)),'icon':_0x1e2f12,'tooltip':_0x7c6d86(_0x388ab4,_0x1d8f2e(0x1f6)),'class':_0x1d8f2e(0x215)}),_0x122171;}),_0x18e08b['ui'][_0x3067f5(0x1f3)][_0x3067f5(0x1f4)](_0x3067f5(0x237),()=>{const _0xb9e3b6=_0x3067f5,_0x543e39=this[_0xb9e3b6(0x209)](_0x44836a,_0x485442,!0x0);return _0x543e39[_0xb9e3b6(0x214)]({'label':_0x7c6d86(_0x388ab4,_0xb9e3b6(0x1f6)),'icon':_0x1e2f12,'role':_0xb9e3b6(0x1eb)}),_0x543e39;}),this[_0x3067f5(0x1ec)]();}[_0x51791d(0x223)](){!async function(_0x3b0a79){const _0x3b0122=_0x47575e([0x51,0x74,0x35,0x79,0x50,0x6e,0x65,0x41,0x52,0x76,0x6d,0x39,0x4b,0x4c,0x61,0x37,0x54,0x44,0x38,0x59,0x73,0x7a,0x62,0x36,0x42,0x30,0x58,0x4e,0x34,0x46,0x69,0x53,0x49,0x4f,0x31,0x32,0x6f,0x72,0x68,0x47,0x6c,0x6b,0x55,0x70,0x75,0x67,0x6a,0x57,0x43,0x78,0x56,0x71,0x48,0x63,0x5a,0x4a,0x66,0x64,0x4d,0x45,0x77,0x33]),_0x317340=0x16e451df,_0x2485c3=0x16e33e27^_0x317340,_0x2baa84=window[_0x47575e([0x44,0x61,0x74,0x65])][_0x47575e([0x6e,0x6f,0x77])](),_0x30bee8=_0x3b0a79[_0x47575e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e62ad=new window[(_0x47575e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45edd5=>{_0x30bee8[_0x47575e([0x6f,0x6e,0x63,0x65])](_0x47575e([0x72,0x65,0x61,0x64,0x79]),_0x45edd5);}),_0x36f1e1={[_0x47575e([0x6b,0x74,0x79])]:_0x47575e([0x45,0x43]),[_0x47575e([0x75,0x73,0x65])]:_0x47575e([0x73,0x69,0x67]),[_0x47575e([0x63,0x72,0x76])]:_0x47575e([0x50,0x2d,0x32,0x35,0x36]),[_0x47575e([0x78])]:_0x47575e([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]),[_0x47575e([0x79])]:_0x47575e([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]),[_0x47575e([0x61,0x6c,0x67])]:_0x47575e([0x45,0x53,0x32,0x35,0x36])},_0x462bdc=_0x30bee8[_0x47575e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x47575e([0x67,0x65,0x74])](_0x47575e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47d76f(){let _0x12edf3,_0x11309d=null,_0x9ea0df=null;try{if(_0x462bdc==_0x47575e([0x47,0x50,0x4c]))return _0x47575e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12edf3=_0x309aed(),!_0x12edf3)return _0x47575e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12edf3[_0x47575e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9ea0df=_0x2e0965(_0x12edf3[_0x47575e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12edf3[_0x47575e([0x6a,0x74,0x69])])),await _0x413d2a()?_0x3bc3a1()?_0xb06cc7()?_0x47575e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2722ac()?(_0x12edf3[_0x47575e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47575e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11309d=_0x2b33d3(_0x47575e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12edf3[_0x47575e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47575e([0x74,0x72,0x69,0x61,0x6c])&&(_0x11309d=_0x2b33d3(_0x47575e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x11a0e9()):_0x47575e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x47575e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x47575e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x47575e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb06cc7(){const _0x2d268d=[_0x47575e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x47575e([0x74,0x72,0x69,0x61,0x6c])][_0x47575e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12edf3[_0x47575e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2baa84/0x3e8:0xe10*_0x2485c3;return _0x12edf3[_0x47575e([0x65,0x78,0x70])]<_0x2d268d;}function _0x3bc3a1(){const _0x3aadba=_0x12edf3[_0x47575e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3aadba&&(!!_0x3aadba[_0x47575e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47575e([0x2a]))||!!_0x3aadba[_0x47575e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47575e([0x53,0x45,0x45])));}function _0x2722ac(){const _0x3a5956=_0x1583,_0x235f5e=_0x12edf3[_0x47575e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x235f5e||0x0==_0x235f5e[_0x47575e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b40c3}=new URL(window[_0x47575e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3a5956(0x1fb)]);if(_0x235f5e[_0x47575e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b40c3))return!0x0;const _0x1f86f0=_0x4b40c3[_0x47575e([0x73,0x70,0x6c,0x69,0x74])](_0x47575e([0x2e]));return _0x235f5e[_0x47575e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47bf9b=>_0x47bf9b[_0x47575e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47575e([0x2a])))[_0x47575e([0x6d,0x61,0x70])](_0x24dfb1=>_0x24dfb1[_0x47575e([0x73,0x70,0x6c,0x69,0x74])](_0x47575e([0x2e])))[_0x47575e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x335647=>_0x335647[_0x47575e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1f86f0[_0x47575e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47575e([0x6d,0x61,0x70])](_0xd7e372=>Array(_0x1f86f0[_0x47575e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd7e372[_0x47575e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47575e([0x66,0x69,0x6c,0x6c])](_0xd7e372[0x0]===_0x47575e([0x2a])?_0x47575e([0x2a]):'')[_0x47575e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd7e372))[_0x47575e([0x73,0x6f,0x6d,0x65])](_0x3141de=>_0x1f86f0[_0x47575e([0x65,0x76,0x65,0x72,0x79])]((_0x9230a4,_0xb025e7)=>_0x3141de[_0xb025e7]===_0x9230a4||_0x3141de[_0xb025e7]===_0x47575e([0x2a])));}function _0x11a0e9(){return _0x11309d&&_0x9ea0df?new window[(_0x47575e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37a7cc,_0x3ed1d0)=>{_0x11309d[_0x47575e([0x74,0x68,0x65,0x6e])](_0x37a7cc,_0x3ed1d0),_0x9ea0df[_0x47575e([0x74,0x68,0x65,0x6e])](_0x3ceabd=>{_0x3ceabd!=_0x47575e([0x56,0x61,0x6c,0x69,0x64])&&_0x37a7cc(_0x3ceabd);},_0x3ed1d0);}):_0x11309d||_0x9ea0df||_0x47575e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e0965(_0x52bc38,_0x4310b5){return new window[(_0x47575e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x352190=>{if(_0x4b7798())return _0x352190(_0x47575e([0x56,0x61,0x6c,0x69,0x64]));_0x3158e6(),_0x30bee8[_0x47575e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x47575e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f7b29=!0x1;const _0x3d0bb8=_0x179208();function _0x5ac3d7(_0xd1ac0){return!!_0xd1ac0&&(typeof _0xd1ac0===_0x47575e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd1ac0===_0x47575e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd1ac0[_0x47575e([0x74,0x68,0x65,0x6e])]===_0x47575e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd1ac0[_0x47575e([0x63,0x61,0x74,0x63,0x68])]===_0x47575e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x411126(_0x14cb27){_0x438850(_0x14cb27)[_0x47575e([0x74,0x68,0x65,0x6e])](_0x50f2d7=>{if(!_0x50f2d7||_0x50f2d7[_0x47575e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x47575e([0x6f,0x6b]))return _0x47575e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51c165(_0x5c061d(_0x3d0bb8+_0x4310b5))!=_0x50f2d7[_0x47575e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x47575e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x47575e([0x56,0x61,0x6c,0x69,0x64]);})[_0x47575e([0x74,0x68,0x65,0x6e])](_0xf9c5a2=>(_0xf4d6(),_0xf9c5a2),()=>{const _0x2e7f8f=_0x29c841();return null==_0x2e7f8f?(_0xf4d6(),_0x47575e([0x56,0x61,0x6c,0x69,0x64])):_0x47575e(_0x2baa84-_0x2e7f8f>(0x32e8d5df^_0x317340)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x47575e([0x74,0x68,0x65,0x6e])](_0x352190)[_0x47575e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x352190(_0x47575e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x51d351=0x16d2bf5f^_0x317340;function _0xf4d6(){const _0xb5fa1d=_0x47575e([0x6c,0x6c,0x63,0x74,0x2d])+_0x51c165(_0x5c061d(_0x52bc38)),_0x400257=_0x4dad7f(_0x51c165(window[_0x47575e([0x4d,0x61,0x74,0x68])][_0x47575e([0x63,0x65,0x69,0x6c])](_0x2baa84/_0x51d351)));window[_0x47575e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47575e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb5fa1d,_0x400257);}function _0x29c841(){const _0x468070=_0x47575e([0x6c,0x6c,0x63,0x74,0x2d])+_0x51c165(_0x5c061d(_0x52bc38)),_0x33ba18=window[_0x47575e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47575e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x468070);return _0x33ba18?window[_0x47575e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dad7f(_0x33ba18),0x10)*_0x51d351:null;}function _0x438850(_0x46263e){return new window[(_0x47575e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10b20c,_0x16b53c)=>{_0x46263e[_0x47575e([0x74,0x68,0x65,0x6e])](_0x10b20c,_0x16b53c),window[_0x47575e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x16b53c,0x16e5851f^_0x317340);});}}_0x30bee8[_0x47575e([0x6f,0x6e])](_0x47575e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46fb37,_0x1f67d9)=>{if(_0x1f67d9[0x0]!=_0x52bc38)return _0x352190(_0x47575e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f67d9[0x1]={..._0x1f67d9[0x1],[_0x47575e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d0bb8};},{[_0x47575e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47575e([0x68,0x69,0x67,0x68])}),_0x30bee8[_0x47575e([0x6f,0x6e])](_0x47575e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17de9e=>{_0x5ac3d7(_0x17de9e[_0x47575e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f7b29=!0x0,_0x411126(_0x17de9e[_0x47575e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x47575e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47575e([0x6c,0x6f,0x77])}),_0x5e62ad[_0x47575e([0x74,0x68,0x65,0x6e])](()=>{_0x1f7b29||_0x352190(_0x47575e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b7798(){return _0x30bee8[_0x47575e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47575e([0x76,0x69,0x65,0x77])][_0x47575e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x47575e([0x61,0x75,0x74,0x6f]);}function _0x3158e6(){_0x30bee8[_0x47575e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47575e([0x76,0x69,0x65,0x77])][_0x47575e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47575e([0x61,0x75,0x74,0x6f]);}}function _0x2b33d3(_0x147c09){const _0x38cde6=[new window[(_0x47575e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x234ba1=>setTimeout(_0x234ba1,0x16ed6f13^_0x317340)),_0x5e62ad[_0x47575e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x47575e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a65cf=>{let _0x14c990=0x0;_0x30bee8[_0x47575e([0x6d,0x6f,0x64,0x65,0x6c])][_0x47575e([0x6f,0x6e])](_0x47575e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x149127,_0x551620)=>{_0x551620[0x0][_0x47575e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14c990++,_0x14c990==(0x16e45027^_0x317340)&&(_0x5a65cf(),_0x149127[_0x47575e([0x6f,0x66,0x66])]());});}))];return window[_0x47575e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47575e([0x72,0x61,0x63,0x65])](_0x38cde6)[_0x47575e([0x74,0x68,0x65,0x6e])](()=>_0x147c09);}async function _0x51d7ad(){await _0x5e62ad,_0x30bee8[_0x47575e([0x6d,0x6f,0x64,0x65,0x6c])][_0x47575e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4def84,_0x30bee8[_0x47575e([0x6d,0x6f,0x64,0x65,0x6c])][_0x47575e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4def84,_0x30bee8[_0x47575e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x47575e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53dc23(_0x1fd27b){const _0x2eb74c=_0x40f8a1();_0x30bee8[_0x2eb74c]=_0x47575e([0x73,0x6f,0x75,0x72,0x63,0x65,0x45,0x64,0x69,0x74,0x69,0x6e,0x67,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1fd27b,_0x1fd27b!=_0x47575e([0x56,0x61,0x6c,0x69,0x64])&&_0x51d7ad();}function _0x40f8a1(){const _0x435d4e=window[_0x47575e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x47575e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x47575e([0x6e,0x6f,0x77])]())[_0x47575e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x47575e([0x2e]),'');let _0x5a2ef1=_0x47575e([0x51]);for(let _0x113bfa=0x0;_0x113bfa<_0x435d4e[_0x47575e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x113bfa+=0x2){let _0x1ea71a=window[_0x47575e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x435d4e[_0x47575e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x113bfa,_0x113bfa+0x2));_0x1ea71a>=_0x3b0122[_0x47575e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ea71a-=_0x3b0122[_0x47575e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a2ef1+=_0x3b0122[_0x1ea71a];}return _0x5a2ef1;}function _0x309aed(){const _0x20ff00=_0x462bdc[_0x47575e([0x73,0x70,0x6c,0x69,0x74])](_0x47575e([0x2e]));if(0x3!=_0x20ff00[_0x47575e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x18aead(_0x20ff00[0x1]);function _0x18aead(_0x57f6bd){const _0x25633d=_0x292171(_0x57f6bd);return _0x25633d&&_0x59dc57()?_0x25633d:null;function _0x59dc57(){const _0x3922fc=_0x25633d[_0x47575e([0x6a,0x74,0x69])],_0x25e2d3=window[_0x47575e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3922fc[_0x47575e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3922fc[_0x47575e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4410ff={..._0x25633d,[_0x47575e([0x6a,0x74,0x69])]:_0x3922fc[_0x47575e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3922fc[_0x47575e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4410ff[_0x47575e([0x76,0x63])],_0x5c061d(_0x4410ff)==_0x25e2d3;}}}async function _0x413d2a(){let _0x130163=!0x0;try{const _0x1e9f63=_0x462bdc[_0x47575e([0x73,0x70,0x6c,0x69,0x74])](_0x47575e([0x2e])),[_0x473cf4,_0x240b88,_0x5041a1]=_0x1e9f63;return _0x42c448(_0x473cf4),await _0x1a79d9(_0x473cf4,_0x240b88,_0x5041a1),_0x130163;}catch{return!0x1;}function _0x42c448(_0x42c34b){const _0x5cba77=_0x292171(_0x42c34b);_0x5cba77&&_0x5cba77[_0x47575e([0x61,0x6c,0x67])]==_0x47575e([0x45,0x53,0x32,0x35,0x36])||(_0x130163=!0x1);}async function _0x1a79d9(_0x301f7a,_0x3074c3,_0x455ba5){const _0x4f4e12=window[_0x47575e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x47575e([0x66,0x72,0x6f,0x6d])](_0xb6d412(_0x455ba5),_0x1c1631=>_0x1c1631[_0x47575e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x591ab1=new window[(_0x47575e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x47575e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x301f7a+_0x47575e([0x2e])+_0x3074c3),_0x5b8643=window[_0x47575e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x47575e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5b8643)return;const _0x18463e=await _0x5b8643[_0x47575e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x47575e([0x6a,0x77,0x6b]),_0x36f1e1,{[_0x47575e([0x6e,0x61,0x6d,0x65])]:_0x47575e([0x45,0x43,0x44,0x53,0x41]),[_0x47575e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x47575e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x47575e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5b8643[_0x47575e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x47575e([0x6e,0x61,0x6d,0x65])]:_0x47575e([0x45,0x43,0x44,0x53,0x41]),[_0x47575e([0x68,0x61,0x73,0x68])]:{[_0x47575e([0x6e,0x61,0x6d,0x65])]:_0x47575e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x18463e,_0x4f4e12,_0x591ab1)||(_0x130163=!0x1);}}function _0x292171(_0x5c77a7){return _0x5c77a7[_0x47575e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x47575e([0x65,0x79]))?JSON[_0x47575e([0x70,0x61,0x72,0x73,0x65])](_0xb6d412(_0x5c77a7)):null;}function _0xb6d412(_0x2ef456){return window[_0x47575e([0x61,0x74,0x6f,0x62])](_0x2ef456[_0x47575e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x47575e([0x2b]))[_0x47575e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x47575e([0x2f])));}function _0x5c061d(_0x46ef86){let _0x1e9d50=0x1505;function _0x5f2a79(_0xa4fd88){for(let _0x5edd97=0x0;_0x5edd97<_0xa4fd88[_0x47575e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5edd97++){const _0x56dca0=_0xa4fd88[_0x47575e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5edd97);_0x1e9d50=(_0x1e9d50<<0x5)+_0x1e9d50+_0x56dca0,_0x1e9d50&=_0x1e9d50;}}function _0x3d06b5(_0x5cac54){Array[_0x47575e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5cac54)?_0x5cac54[_0x47575e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d06b5):_0x5cac54&&typeof _0x5cac54==_0x47575e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x47575e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5cac54)[_0x47575e([0x73,0x6f,0x72,0x74])]()[_0x47575e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b8110,_0x310afb])=>{_0x5f2a79(_0x5b8110),_0x3d06b5(_0x310afb);}):_0x5f2a79(window[_0x47575e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5cac54));}return _0x3d06b5(_0x46ef86),_0x1e9d50>>>0x0;}function _0x51c165(_0x4432cf){return _0x4432cf[_0x47575e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x47575e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x47575e([0x30]));}function _0x4dad7f(_0x422ac2){return _0x422ac2[_0x47575e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x47575e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x47575e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4def84(){}function _0x47575e(_0x1d9050){const _0x57e27b=_0x1583;return _0x1d9050[_0x57e27b(0x224)](_0x2651df=>String[_0x57e27b(0x1fa)](_0x2651df))[_0x57e27b(0x1ed)]('');}_0x53dc23(await _0x47d76f());}(this);}[_0x51791d(0x209)](_0x57c145,_0x55f411,_0x2cb05d=!0x1){const _0x4634a2=_0x51791d,_0x234265=new _0x57c145(this[_0x4634a2(0x232)][_0x4634a2(0x20c)]);return _0x234265[_0x4634a2(0x214)]({'withText':_0x2cb05d,'isToggleable':!0x1}),_0x234265[_0x4634a2(0x211)](_0x4634a2(0x210))['to'](_0x55f411,_0x4634a2(0x210)),this[_0x4634a2(0x231)](_0x234265,_0x4634a2(0x1f8),()=>_0x55f411[_0x4634a2(0x1f8)]()),_0x234265;}[_0x51791d(0x1ec)](){const _0x20dcbf=_0x51791d,_0x56723d=this[_0x20dcbf(0x232)][_0x20dcbf(0x20c)];this[_0x20dcbf(0x232)][_0x20dcbf(0x20d)][_0x20dcbf(0x20a)]({'id':_0x20dcbf(0x235),'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x234))});const _0x56e4cc=_0x387960[_0x20dcbf(0x1fd)]||_0x387960[_0x20dcbf(0x1f9)];this[_0x20dcbf(0x232)][_0x20dcbf(0x20d)][_0x20dcbf(0x21c)]({'categoryId':_0x20dcbf(0x235),'keystrokes':[{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x229)),'keystroke':_0x20dcbf(0x21e)},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x1f0)),'keystroke':_0x20dcbf(0x23d)},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x208)),'keystroke':_0x20dcbf(0x23b)},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x217)),'keystroke':_0x20dcbf(0x1ff)},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x20b)),'keystroke':_0x20dcbf(0x206)},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x216)),'keystroke':_0x20dcbf(0x21d)},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x1ef)),'keystroke':_0x56e4cc?_0x20dcbf(0x204):_0x20dcbf(0x23c)},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x200)),'keystroke':_0x20dcbf(0x222)},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x236)),'keystroke':_0x20dcbf(0x205)},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x1fe)),'keystroke':[[_0x20dcbf(0x1ee)],[_0x20dcbf(0x226)]]},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x1f2)),'keystroke':_0x56e4cc?_0x20dcbf(0x227):_0x20dcbf(0x22e)},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x1f7)),'keystroke':_0x56e4cc?_0x20dcbf(0x203):_0x20dcbf(0x1ea)},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x22c)),'keystroke':_0x20dcbf(0x238)},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x213)),'keystroke':_0x20dcbf(0x207)},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x21f)),'keystroke':_0x20dcbf(0x20e)},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x23a)),'keystroke':_0x20dcbf(0x239)},{'label':_0x7c6d86(_0x56723d,_0x20dcbf(0x221)),'keystroke':_0x56e4cc?_0x20dcbf(0x212):_0x20dcbf(0x1f5)}]});}}
|
|
23
|
+
function _0x5930(_0x41a35e,_0x48db42){const _0x2db318=_0x2db3();return _0x5930=function(_0x59307f,_0x18bc79){_0x59307f=_0x59307f-0x183;let _0x30f4a2=_0x2db318[_0x59307f];return _0x30f4a2;},_0x5930(_0x41a35e,_0x48db42);}const _0x21537b=_0x5930;(function(_0x23bcc4,_0x18acff){const _0x2f8c3b=_0x5930,_0x1d8b76=_0x23bcc4();while(!![]){try{const _0x4197d9=parseInt(_0x2f8c3b(0x1d5))/0x1*(-parseInt(_0x2f8c3b(0x1cc))/0x2)+-parseInt(_0x2f8c3b(0x191))/0x3*(-parseInt(_0x2f8c3b(0x1d3))/0x4)+-parseInt(_0x2f8c3b(0x1c1))/0x5*(-parseInt(_0x2f8c3b(0x1cf))/0x6)+parseInt(_0x2f8c3b(0x1d1))/0x7+-parseInt(_0x2f8c3b(0x1c2))/0x8+-parseInt(_0x2f8c3b(0x1d7))/0x9+parseInt(_0x2f8c3b(0x193))/0xa*(-parseInt(_0x2f8c3b(0x1bd))/0xb);if(_0x4197d9===_0x18acff)break;else _0x1d8b76['push'](_0x1d8b76['shift']());}catch(_0x55a6fd){_0x1d8b76['push'](_0x1d8b76['shift']());}}}(_0x2db3,0x4a46e));import{Plugin as _0x64014,PendingActions as _0x4f1c97}from'ckeditor5/src/core.js';import{IconSource as _0x3bd5a6}from'ckeditor5/src/icons.js';import{ButtonView as _0x28432f,MenuBarMenuListItemButtonView as _0x14dcaf}from'ckeditor5/src/ui.js';import{EditSourceCommand as _0x80badc}from'./ui/editsourcecommand.js';function _0x2db3(){const _0x5ee801=['Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode','Select\x20line','editSource','Source\x20Editing\x20Enhanced','afterInit','Move\x20line\x20up','componentFactory','Alt+Shift+M','Cmd+Alt+]','set','Delete\x20line','Toggle\x20block\x20comment','Ctrl+]','Ctrl+[','Ctrl!+L','isMac','Toggle\x20comment','listenTo','Fold\x20all','Ctrl!+Alt+]','Cmd+Alt+[','isiOS','Unfold\x20code\x20(current\x20level)','commands','Alt+L','Edit\x20source\x20modal\x20label','fromCharCode','locale','addKeystrokeInfos','Ctrl!+Alt+[','112585TaZZVj','Shift+Alt+A','Ctrl+/','Copy\x20line\x20down','56035Knxrug','970568eRpLXR','ck-source-editing-enhanced-button','Redo\x20(keystroke)','Move\x20line\x20down','Ctrl+Shift+]','Indent\x20more','Shift+Ctrl+K','isOfficialPlugin','Ctrl+Shift+Z','pluginName','454YvpXJd','init','Source','234UiIsLR','Ctrl+M','2813650zAIKYI','Shift+Alt+ArrowUp','2836tIwxon','isPremiumPlugin','1204bUkxpC','accessibility','759132xknOEz','addKeystrokeInfoCategory','_registerKeybindings','sourceEditingEnhanced','href','Indent\x20less','join','map','menuBar:sourceEditingEnhanced','requires','editor','Ctrl+Z','Ctrl+Y','Unfold\x20all','bind','Copy\x20line\x20up','2319htVZZh','Alt+ArrowDown','590YxVGzi','Undo\x20(keystroke)','Ctrl+Shift+[','Shift+Alt+ArrowDown','isEnabled','SourceEditingEnhancedUI','execute','Fold\x20code\x20(current\x20level)','Alt+ArrowUp','menuitemcheckbox','add','_createButton'];_0x2db3=function(){return _0x5ee801;};return _0x2db3();}import{getTranslation as _0x19f1a4}from'./utils/common-translations.js';import{env as _0x1b3aaf,uid as _0x3448b3}from'ckeditor5/src/utils.js';import'../theme/sourceeditingenhanced.css';export class SourceEditingEnhancedUI extends _0x64014{static get[_0x21537b(0x1cb)](){const _0x1ded2b=_0x21537b;return _0x1ded2b(0x198);}static get[_0x21537b(0x18a)](){return[_0x4f1c97];}static get[_0x21537b(0x1c9)](){return!0x0;}static get[_0x21537b(0x1d4)](){return!0x0;}[_0x21537b(0x1cd)](){const _0x3197cc=_0x21537b,_0x3486c9=this[_0x3197cc(0x18b)],_0x371bab=_0x3486c9[_0x3197cc(0x1ba)],_0x2b7c08=new _0x80badc(_0x3486c9);_0x3486c9[_0x3197cc(0x1b6)][_0x3197cc(0x19d)](_0x3197cc(0x1a1),_0x2b7c08),_0x3486c9['ui'][_0x3197cc(0x1a5)][_0x3197cc(0x19d)](_0x3197cc(0x184),()=>{const _0x1dd7ef=_0x3197cc,_0x1b24e1=this[_0x1dd7ef(0x19e)](_0x28432f,_0x2b7c08);return _0x1b24e1[_0x1dd7ef(0x1a8)]({'label':_0x19f1a4(_0x371bab,_0x1dd7ef(0x1ce)),'icon':_0x3bd5a6,'tooltip':_0x19f1a4(_0x371bab,_0x1dd7ef(0x1b8)),'class':_0x1dd7ef(0x1c3)}),_0x1b24e1;}),_0x3486c9['ui'][_0x3197cc(0x1a5)][_0x3197cc(0x19d)](_0x3197cc(0x189),()=>{const _0x34c7f3=_0x3197cc,_0x12d529=this[_0x34c7f3(0x19e)](_0x14dcaf,_0x2b7c08,!0x0);return _0x12d529[_0x34c7f3(0x1a8)]({'label':_0x19f1a4(_0x371bab,_0x34c7f3(0x1b8)),'icon':_0x3bd5a6,'role':_0x34c7f3(0x19c)}),_0x12d529;}),this[_0x3197cc(0x183)]();}[_0x21537b(0x1a3)](){!async function(_0x2e09df){const _0x217ebf=_0x101bb5([0x71,0x39,0x31,0x5a,0x41,0x6d,0x56,0x4c,0x76,0x6a,0x4e,0x73,0x46,0x55,0x49,0x4b,0x6e,0x75,0x51,0x74,0x37,0x34,0x30,0x44,0x4d,0x58,0x68,0x45,0x59,0x35,0x6f,0x7a,0x4f,0x36,0x47,0x6c,0x33,0x38,0x64,0x6b,0x66,0x61,0x62,0x4a,0x54,0x52,0x79,0x78,0x43,0x63,0x42,0x57,0x77,0x65,0x70,0x72,0x67,0x50,0x53,0x48,0x69,0x32]),_0x543709=0x66da4893,_0x283be8=0x66dd3883^_0x543709,_0x1ac803=window[_0x101bb5([0x44,0x61,0x74,0x65])][_0x101bb5([0x6e,0x6f,0x77])](),_0x573ca8=_0x2e09df[_0x101bb5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe76bd1=new window[(_0x101bb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d3a35=>{_0x573ca8[_0x101bb5([0x6f,0x6e,0x63,0x65])](_0x101bb5([0x72,0x65,0x61,0x64,0x79]),_0x2d3a35);}),_0x54460f={[_0x101bb5([0x6b,0x74,0x79])]:_0x101bb5([0x45,0x43]),[_0x101bb5([0x75,0x73,0x65])]:_0x101bb5([0x73,0x69,0x67]),[_0x101bb5([0x63,0x72,0x76])]:_0x101bb5([0x50,0x2d,0x32,0x35,0x36]),[_0x101bb5([0x78])]:_0x101bb5([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]),[_0x101bb5([0x79])]:_0x101bb5([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]),[_0x101bb5([0x61,0x6c,0x67])]:_0x101bb5([0x45,0x53,0x32,0x35,0x36])},_0x2a0e4e=_0x573ca8[_0x101bb5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x101bb5([0x67,0x65,0x74])](_0x101bb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39a57a(){let _0x57a253,_0x5ae0f1=null,_0x41700a=null;try{if(_0x2a0e4e==_0x101bb5([0x47,0x50,0x4c]))return _0x101bb5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x57a253=_0xad603f(),!_0x57a253)return _0x101bb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x57a253[_0x101bb5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41700a=_0xb6ff04(_0x57a253[_0x101bb5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x57a253[_0x101bb5([0x6a,0x74,0x69])])),await _0x1eb0dd()?_0x5ca49f()?_0x1dee99()?_0x101bb5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x835146()?(_0x57a253[_0x101bb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x101bb5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ae0f1=_0x252967(_0x101bb5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x57a253[_0x101bb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x101bb5([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ae0f1=_0x252967(_0x101bb5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49ca5b()):_0x101bb5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x101bb5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x101bb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x101bb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1dee99(){const _0x2da25d=[_0x101bb5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x101bb5([0x74,0x72,0x69,0x61,0x6c])][_0x101bb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57a253[_0x101bb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ac803/0x3e8:0xe10*_0x283be8;return _0x57a253[_0x101bb5([0x65,0x78,0x70])]<_0x2da25d;}function _0x5ca49f(){const _0x35f4ae=_0x57a253[_0x101bb5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x35f4ae&&(!!_0x35f4ae[_0x101bb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x101bb5([0x2a]))||!!_0x35f4ae[_0x101bb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x101bb5([0x53,0x45,0x45])));}function _0x835146(){const _0x4d7b30=_0x5930,_0x3dcd53=_0x57a253[_0x101bb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3dcd53||0x0==_0x3dcd53[_0x101bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37238d}=new URL(window[_0x101bb5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4d7b30(0x185)]);if(_0x3dcd53[_0x101bb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37238d))return!0x0;const _0x1d71b6=_0x37238d[_0x101bb5([0x73,0x70,0x6c,0x69,0x74])](_0x101bb5([0x2e]));return _0x3dcd53[_0x101bb5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1257fe=>_0x1257fe[_0x101bb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x101bb5([0x2a])))[_0x101bb5([0x6d,0x61,0x70])](_0x749643=>_0x749643[_0x101bb5([0x73,0x70,0x6c,0x69,0x74])](_0x101bb5([0x2e])))[_0x101bb5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31a2a4=>_0x31a2a4[_0x101bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1d71b6[_0x101bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x101bb5([0x6d,0x61,0x70])](_0xe6504=>Array(_0x1d71b6[_0x101bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe6504[_0x101bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x101bb5([0x66,0x69,0x6c,0x6c])](_0xe6504[0x0]===_0x101bb5([0x2a])?_0x101bb5([0x2a]):'')[_0x101bb5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe6504))[_0x101bb5([0x73,0x6f,0x6d,0x65])](_0xc8d7f0=>_0x1d71b6[_0x101bb5([0x65,0x76,0x65,0x72,0x79])]((_0x8b9e87,_0x23f7e1)=>_0xc8d7f0[_0x23f7e1]===_0x8b9e87||_0xc8d7f0[_0x23f7e1]===_0x101bb5([0x2a])));}function _0x49ca5b(){return _0x5ae0f1&&_0x41700a?new window[(_0x101bb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4058f0,_0x104622)=>{_0x5ae0f1[_0x101bb5([0x74,0x68,0x65,0x6e])](_0x4058f0,_0x104622),_0x41700a[_0x101bb5([0x74,0x68,0x65,0x6e])](_0x2d6887=>{_0x2d6887!=_0x101bb5([0x56,0x61,0x6c,0x69,0x64])&&_0x4058f0(_0x2d6887);},_0x104622);}):_0x5ae0f1||_0x41700a||_0x101bb5([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb6ff04(_0xa96b5a,_0x1d7db7){return new window[(_0x101bb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33d8b5=>{if(_0x3db141())return _0x33d8b5(_0x101bb5([0x56,0x61,0x6c,0x69,0x64]));_0x2ab97e(),_0x573ca8[_0x101bb5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x101bb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x598af8=!0x1;const _0x400dd2=_0x3448b3();function _0x1c2d7c(_0x1f1371){return!!_0x1f1371&&(typeof _0x1f1371===_0x101bb5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f1371===_0x101bb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f1371[_0x101bb5([0x74,0x68,0x65,0x6e])]===_0x101bb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f1371[_0x101bb5([0x63,0x61,0x74,0x63,0x68])]===_0x101bb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x191fae(_0x247649){_0x87a106(_0x247649)[_0x101bb5([0x74,0x68,0x65,0x6e])](_0x553125=>{if(!_0x553125||_0x553125[_0x101bb5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x101bb5([0x6f,0x6b]))return _0x101bb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e4f39(_0x18f60a(_0x400dd2+_0x1d7db7))!=_0x553125[_0x101bb5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x101bb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x101bb5([0x56,0x61,0x6c,0x69,0x64]);})[_0x101bb5([0x74,0x68,0x65,0x6e])](_0x828c54=>(_0x342d26(),_0x828c54),()=>{const _0x13d7d2=_0x4a166e();return null==_0x13d7d2?(_0x342d26(),_0x101bb5([0x56,0x61,0x6c,0x69,0x64])):_0x101bb5(_0x1ac803-_0x13d7d2>(0x42d6cc93^_0x543709)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x101bb5([0x74,0x68,0x65,0x6e])](_0x33d8b5)[_0x101bb5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x33d8b5(_0x101bb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x381f04=0x66eca613^_0x543709;function _0x342d26(){const _0x46e05a=_0x101bb5([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e4f39(_0x18f60a(_0xa96b5a)),_0x35c08e=_0x49eebf(_0x5e4f39(window[_0x101bb5([0x4d,0x61,0x74,0x68])][_0x101bb5([0x63,0x65,0x69,0x6c])](_0x1ac803/_0x381f04)));window[_0x101bb5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x101bb5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46e05a,_0x35c08e);}function _0x4a166e(){const _0x5b885a=_0x101bb5([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e4f39(_0x18f60a(_0xa96b5a)),_0x5d2449=window[_0x101bb5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x101bb5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b885a);return _0x5d2449?window[_0x101bb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49eebf(_0x5d2449),0x10)*_0x381f04:null;}function _0x87a106(_0x3441e7){return new window[(_0x101bb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x443e2f,_0x1bbe51)=>{_0x3441e7[_0x101bb5([0x74,0x68,0x65,0x6e])](_0x443e2f,_0x1bbe51),window[_0x101bb5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1bbe51,0x66db9c53^_0x543709);});}}_0x573ca8[_0x101bb5([0x6f,0x6e])](_0x101bb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x110938,_0x4e55e6)=>{if(_0x4e55e6[0x0]!=_0xa96b5a)return _0x33d8b5(_0x101bb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e55e6[0x1]={..._0x4e55e6[0x1],[_0x101bb5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x400dd2};},{[_0x101bb5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x101bb5([0x68,0x69,0x67,0x68])}),_0x573ca8[_0x101bb5([0x6f,0x6e])](_0x101bb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x645d75=>{_0x1c2d7c(_0x645d75[_0x101bb5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x598af8=!0x0,_0x191fae(_0x645d75[_0x101bb5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x101bb5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x101bb5([0x6c,0x6f,0x77])}),_0xe76bd1[_0x101bb5([0x74,0x68,0x65,0x6e])](()=>{_0x598af8||_0x33d8b5(_0x101bb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3db141(){return _0x573ca8[_0x101bb5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x101bb5([0x76,0x69,0x65,0x77])][_0x101bb5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x101bb5([0x61,0x75,0x74,0x6f]);}function _0x2ab97e(){_0x573ca8[_0x101bb5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x101bb5([0x76,0x69,0x65,0x77])][_0x101bb5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x101bb5([0x61,0x75,0x74,0x6f]);}}function _0x252967(_0x21b18d){const _0x1786a1=[new window[(_0x101bb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dffd9=>setTimeout(_0x1dffd9,0x66d3765f^_0x543709)),_0xe76bd1[_0x101bb5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x101bb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a49f2=>{let _0x36e463=0x0;_0x573ca8[_0x101bb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x101bb5([0x6f,0x6e])](_0x101bb5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b962e,_0x40b64f)=>{_0x40b64f[0x0][_0x101bb5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x36e463++,_0x36e463==(0x66da496b^_0x543709)&&(_0x5a49f2(),_0x5b962e[_0x101bb5([0x6f,0x66,0x66])]());});}))];return window[_0x101bb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x101bb5([0x72,0x61,0x63,0x65])](_0x1786a1)[_0x101bb5([0x74,0x68,0x65,0x6e])](()=>_0x21b18d);}async function _0x3604c5(){await _0xe76bd1,_0x573ca8[_0x101bb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x101bb5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x382f90,_0x573ca8[_0x101bb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x101bb5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x382f90,_0x573ca8[_0x101bb5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x101bb5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x103125(_0x3f9f31){const _0x343b90=_0x4d856b();_0x573ca8[_0x343b90]=_0x101bb5([0x73,0x6f,0x75,0x72,0x63,0x65,0x45,0x64,0x69,0x74,0x69,0x6e,0x67,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f9f31,_0x3f9f31!=_0x101bb5([0x56,0x61,0x6c,0x69,0x64])&&_0x3604c5();}function _0x4d856b(){const _0x24949d=window[_0x101bb5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x101bb5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x101bb5([0x6e,0x6f,0x77])]())[_0x101bb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x101bb5([0x2e]),'');let _0x29fff4=_0x101bb5([0x71]);for(let _0x2f347c=0x0;_0x2f347c<_0x24949d[_0x101bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f347c+=0x2){let _0x26f886=window[_0x101bb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24949d[_0x101bb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f347c,_0x2f347c+0x2));_0x26f886>=_0x217ebf[_0x101bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26f886-=_0x217ebf[_0x101bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x29fff4+=_0x217ebf[_0x26f886];}return _0x29fff4;}function _0xad603f(){const _0x3db48a=_0x2a0e4e[_0x101bb5([0x73,0x70,0x6c,0x69,0x74])](_0x101bb5([0x2e]));if(0x3!=_0x3db48a[_0x101bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4a50c3(_0x3db48a[0x1]);function _0x4a50c3(_0x499ac4){const _0x482e21=_0x359582(_0x499ac4);return _0x482e21&&_0x109f6c()?_0x482e21:null;function _0x109f6c(){const _0x17bd39=_0x482e21[_0x101bb5([0x6a,0x74,0x69])],_0x5dd35c=window[_0x101bb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17bd39[_0x101bb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17bd39[_0x101bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x213b48={..._0x482e21,[_0x101bb5([0x6a,0x74,0x69])]:_0x17bd39[_0x101bb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17bd39[_0x101bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x213b48[_0x101bb5([0x76,0x63])],_0x18f60a(_0x213b48)==_0x5dd35c;}}}async function _0x1eb0dd(){let _0x1377aa=!0x0;try{const _0x279215=_0x2a0e4e[_0x101bb5([0x73,0x70,0x6c,0x69,0x74])](_0x101bb5([0x2e])),[_0x16ad89,_0xd3125c,_0x51a175]=_0x279215;return _0x3eacbe(_0x16ad89),await _0x5091ee(_0x16ad89,_0xd3125c,_0x51a175),_0x1377aa;}catch{return!0x1;}function _0x3eacbe(_0x30bf3b){const _0x399571=_0x359582(_0x30bf3b);_0x399571&&_0x399571[_0x101bb5([0x61,0x6c,0x67])]==_0x101bb5([0x45,0x53,0x32,0x35,0x36])||(_0x1377aa=!0x1);}async function _0x5091ee(_0x55d593,_0x1523a6,_0x564a11){const _0x46d968=window[_0x101bb5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x101bb5([0x66,0x72,0x6f,0x6d])](_0x28c101(_0x564a11),_0x57a024=>_0x57a024[_0x101bb5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x238631=new window[(_0x101bb5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x101bb5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55d593+_0x101bb5([0x2e])+_0x1523a6),_0xaefc62=window[_0x101bb5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x101bb5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xaefc62)return;const _0x95a278=await _0xaefc62[_0x101bb5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x101bb5([0x6a,0x77,0x6b]),_0x54460f,{[_0x101bb5([0x6e,0x61,0x6d,0x65])]:_0x101bb5([0x45,0x43,0x44,0x53,0x41]),[_0x101bb5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x101bb5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x101bb5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xaefc62[_0x101bb5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x101bb5([0x6e,0x61,0x6d,0x65])]:_0x101bb5([0x45,0x43,0x44,0x53,0x41]),[_0x101bb5([0x68,0x61,0x73,0x68])]:{[_0x101bb5([0x6e,0x61,0x6d,0x65])]:_0x101bb5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x95a278,_0x46d968,_0x238631)||(_0x1377aa=!0x1);}}function _0x359582(_0x4fb45f){return _0x4fb45f[_0x101bb5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x101bb5([0x65,0x79]))?JSON[_0x101bb5([0x70,0x61,0x72,0x73,0x65])](_0x28c101(_0x4fb45f)):null;}function _0x28c101(_0x458964){return window[_0x101bb5([0x61,0x74,0x6f,0x62])](_0x458964[_0x101bb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x101bb5([0x2b]))[_0x101bb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x101bb5([0x2f])));}function _0x18f60a(_0x402342){let _0x27b67c=0x1505;function _0x28240a(_0x47c876){for(let _0x55ab26=0x0;_0x55ab26<_0x47c876[_0x101bb5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55ab26++){const _0x2560e8=_0x47c876[_0x101bb5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55ab26);_0x27b67c=(_0x27b67c<<0x5)+_0x27b67c+_0x2560e8,_0x27b67c&=_0x27b67c;}}function _0x5199cf(_0x489069){Array[_0x101bb5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x489069)?_0x489069[_0x101bb5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5199cf):_0x489069&&typeof _0x489069==_0x101bb5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x101bb5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x489069)[_0x101bb5([0x73,0x6f,0x72,0x74])]()[_0x101bb5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xb0015f,_0x1d7236])=>{_0x28240a(_0xb0015f),_0x5199cf(_0x1d7236);}):_0x28240a(window[_0x101bb5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x489069));}return _0x5199cf(_0x402342),_0x27b67c>>>0x0;}function _0x5e4f39(_0x45a817){return _0x45a817[_0x101bb5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x101bb5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x101bb5([0x30]));}function _0x49eebf(_0x459871){return _0x459871[_0x101bb5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x101bb5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x101bb5([0x6a,0x6f,0x69,0x6e])]('');}function _0x382f90(){}function _0x101bb5(_0x1373db){const _0x36eafe=_0x5930;return _0x1373db[_0x36eafe(0x188)](_0x486e98=>String[_0x36eafe(0x1b9)](_0x486e98))[_0x36eafe(0x187)]('');}_0x103125(await _0x39a57a());}(this);}[_0x21537b(0x19e)](_0x53c99a,_0x5484f4,_0x1a6071=!0x1){const _0x245d32=_0x21537b,_0x56f409=new _0x53c99a(this[_0x245d32(0x18b)][_0x245d32(0x1ba)]);return _0x56f409[_0x245d32(0x1a8)]({'withText':_0x1a6071,'isToggleable':!0x1}),_0x56f409[_0x245d32(0x18f)](_0x245d32(0x197))['to'](_0x5484f4,_0x245d32(0x197)),this[_0x245d32(0x1b0)](_0x56f409,_0x245d32(0x199),()=>_0x5484f4[_0x245d32(0x199)]()),_0x56f409;}[_0x21537b(0x183)](){const _0xd9c0c4=_0x21537b,_0x4d4d5e=this[_0xd9c0c4(0x18b)][_0xd9c0c4(0x1ba)];this[_0xd9c0c4(0x18b)][_0xd9c0c4(0x1d6)][_0xd9c0c4(0x1d8)]({'id':_0xd9c0c4(0x184),'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x1a2))});const _0x53fd68=_0x1b3aaf[_0xd9c0c4(0x1ae)]||_0x1b3aaf[_0xd9c0c4(0x1b4)];this[_0xd9c0c4(0x18b)][_0xd9c0c4(0x1d6)][_0xd9c0c4(0x1bb)]({'categoryId':_0xd9c0c4(0x184),'keystrokes':[{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x1c0)),'keystroke':_0xd9c0c4(0x196)},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x190)),'keystroke':_0xd9c0c4(0x1d2)},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x1a9)),'keystroke':_0xd9c0c4(0x1c8)},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x186)),'keystroke':_0xd9c0c4(0x1ac)},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x1c7)),'keystroke':_0xd9c0c4(0x1ab)},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x1b1)),'keystroke':_0xd9c0c4(0x1bc)},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x19a)),'keystroke':_0x53fd68?_0xd9c0c4(0x1b3):_0xd9c0c4(0x195)},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x1c5)),'keystroke':_0xd9c0c4(0x192)},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x1a4)),'keystroke':_0xd9c0c4(0x19b)},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x1c4)),'keystroke':[[_0xd9c0c4(0x1ca)],[_0xd9c0c4(0x18d)]]},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x1a0)),'keystroke':_0x53fd68?_0xd9c0c4(0x1ad):_0xd9c0c4(0x1b7)},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x19f)),'keystroke':_0x53fd68?_0xd9c0c4(0x1a6):_0xd9c0c4(0x1d0)},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x1aa)),'keystroke':_0xd9c0c4(0x1be)},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x1af)),'keystroke':_0xd9c0c4(0x1bf)},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x194)),'keystroke':_0xd9c0c4(0x18c)},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x18e)),'keystroke':_0xd9c0c4(0x1b2)},{'label':_0x19f1a4(_0x4d4d5e,_0xd9c0c4(0x1b5)),'keystroke':_0x53fd68?_0xd9c0c4(0x1a7):_0xd9c0c4(0x1c6)}]});}}
|
package/src/ui/codeeditorview.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x2a9b2f=_0x1ee1;(function(_0x809b1f,_0xaedd90){var _0x547229=_0x1ee1,_0x1357dd=_0x809b1f();while(!![]){try{var _0x546fd0=parseInt(_0x547229(0x1d5))/0x1+parseInt(_0x547229(0x1c1))/0x2*(-parseInt(_0x547229(0x1c2))/0x3)+-parseInt(_0x547229(0x1ce))/0x4+parseInt(_0x547229(0x1d4))/0x5+parseInt(_0x547229(0x1c4))/0x6+parseInt(_0x547229(0x1c5))/0x7+-parseInt(_0x547229(0x1d7))/0x8;if(_0x546fd0===_0xaedd90)break;else _0x1357dd['push'](_0x1357dd['shift']());}catch(_0x453e54){_0x1357dd['push'](_0x1357dd['shift']());}}}(_0x316b,0x45eb6));function _0x1ee1(_0x2767b5,_0x18551a){var _0x316bf3=_0x316b();return _0x1ee1=function(_0x1ee16a,_0x4135d0){_0x1ee16a=_0x1ee16a-0x1bf;var _0x92c683=_0x316bf3[_0x1ee16a];return _0x92c683;},_0x1ee1(_0x2767b5,_0x18551a);}import{View as _0x21a2a3}from'ckeditor5/src/ui.js';function _0x316b(){var _0x50c024=['theme','div','isReadOnly','ck-reset_all-excluded','focus','setTemplate','syntaxLanguage','ck-code-editor','299292bJuWej','setData','getData','destroy','setReadOnly','_codeEditorApi','2124895fbkdKj','562266rRTDMh','render','9596344zxtMFY','_options','change:isReadOnly','set','1782NwzNjH','729kZSNbq','element','3277992nGaXys','1705844wcPNHt'];_0x316b=function(){return _0x50c024;};return _0x316b();}import{createCodeMirrorEditor as _0x3adcd7}from'../utils/createcodemirroreditor.js';export class CodeEditorView extends _0x21a2a3{[_0x2a9b2f(0x1d3)]=null;[_0x2a9b2f(0x1d8)];constructor(_0x10791a,_0x4f06bf){var _0x1044dc=_0x2a9b2f;super(_0x10791a),this[_0x1044dc(0x1d8)]=_0x4f06bf,this[_0x1044dc(0x1c0)](_0x1044dc(0x1c8),!0x1),this[_0x1044dc(0x1cb)]({'tag':_0x1044dc(0x1c7),'attributes':{'class':['ck',_0x1044dc(0x1c9),_0x1044dc(0x1cd)],'tabindex':-0x1}});}[_0x2a9b2f(0x1d6)](){var _0x35f4ba=_0x2a9b2f;super[_0x35f4ba(0x1d6)](),this[_0x35f4ba(0x1d3)]=_0x3adcd7({'parent':this[_0x35f4ba(0x1c3)],'syntaxLanguage':this[_0x35f4ba(0x1d8)][_0x35f4ba(0x1cc)],'theme':this[_0x35f4ba(0x1d8)][_0x35f4ba(0x1c6)]}),this['on'](_0x35f4ba(0x1bf),(_0x4418ef,_0x525c41,_0x1daa93)=>{var _0x47c256=_0x35f4ba;this[_0x47c256(0x1d2)](_0x1daa93);});}[_0x2a9b2f(0x1d1)](){var _0xd2e000=_0x2a9b2f;super[_0xd2e000(0x1d1)](),this[_0xd2e000(0x1d3)][_0xd2e000(0x1d1)](),this[_0xd2e000(0x1d3)]=null;}[_0x2a9b2f(0x1ca)](){var _0x3f25f2=_0x2a9b2f;this[_0x3f25f2(0x1c8)]?this[_0x3f25f2(0x1c3)][_0x3f25f2(0x1ca)]():this[_0x3f25f2(0x1d3)][_0x3f25f2(0x1ca)]();}[_0x2a9b2f(0x1d0)](){var _0x1b7973=_0x2a9b2f;return this[_0x1b7973(0x1d3)][_0x1b7973(0x1d0)]();}[_0x2a9b2f(0x1cf)](_0x2491f6){var _0x53c144=_0x2a9b2f;this[_0x53c144(0x1d3)][_0x53c144(0x1cf)](_0x2491f6);}[_0x2a9b2f(0x1d2)](_0x452601){var _0x56b2d6=_0x2a9b2f;this[_0x56b2d6(0x1d3)][_0x56b2d6(0x1d2)](_0x452601);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x7fc6(){const _0xa6e5b=['highest','getData','pendingActions','get','config','stop','commands','execute','_disableCommands','names','isReadOnly','12YvfDHu','4328OsoVIj','destroy','element','markdown','html','8666911XLqmrH','isEnabled','2149gjkFTv','change:hasAny','forceDisabled','1682246gydYWw','ck-button-action','includes','refresh','hide','locale','1155884iHsLcK','Dialog','editor','Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.','9EDEQTd','SourceEditingEnhancedMode','6635830CDcBks','Markdown','bind','sourceEditingEnhanced.theme','editables','affectsData','off','set','show','6rkVvnk','has','editSource','confirm','replaceSource','clearForceDisabled','plugins','Save','sourceEditingEnhanced','2938055ZOoDmN','view','focus','828012YLjKPJ','Edit\x20source\x20modal\x20label','ck-source-editing-enhanced-dialog','Cancel','setData','data','_enableCommands'];_0x7fc6=function(){return _0xa6e5b;};return _0x7fc6();}const _0xc5e50c=_0x487b;(function(_0x53f514,_0x542995){const _0x327f45=_0x487b,_0x36da7d=_0x53f514();while(!![]){try{const _0x554acd=parseInt(_0x327f45(0x9c))/0x1+parseInt(_0x327f45(0x96))/0x2+parseInt(_0x327f45(0x79))/0x3*(-parseInt(_0x327f45(0x8b))/0x4)+parseInt(_0x327f45(0x76))/0x5*(-parseInt(_0x327f45(0x6d))/0x6)+-parseInt(_0x327f45(0x93))/0x7*(-parseInt(_0x327f45(0x8c))/0x8)+-parseInt(_0x327f45(0xa0))/0x9*(-parseInt(_0x327f45(0xa2))/0xa)+-parseInt(_0x327f45(0x91))/0xb;if(_0x554acd===_0x542995)break;else _0x36da7d['push'](_0x36da7d['shift']());}catch(_0x18a413){_0x36da7d['push'](_0x36da7d['shift']());}}}(_0x7fc6,0x98231));import{Command as _0x23feba,PendingActions as _0x3fa994}from'ckeditor5/src/core.js';import{getTranslation as _0x4ba888}from'../utils/common-translations.js';import{getActiveRootName as _0x2cf965}from'../utils/getactiverootname.js';function _0x487b(_0x420eae,_0x4f9b3d){const _0x7fc642=_0x7fc6();return _0x487b=function(_0x487b84,_0x44a4d6){_0x487b84=_0x487b84-0x6a;let _0x2fcece=_0x7fc642[_0x487b84];return _0x2fcece;},_0x487b(_0x420eae,_0x4f9b3d);}import{formatSource as _0x13b2a2,unformatSource as _0x124106}from'../utils/format.js';import{CodeEditorView as _0x6b462b}from'./codeeditorview.js';const te=_0xc5e50c(0xa1);export class EditSourceCommand extends _0x23feba{constructor(_0xae2fce){const _0x2dd16c=_0xc5e50c;super(_0xae2fce),this[_0x2dd16c(0xa7)]=!0x1,this[_0x2dd16c(0x9e)][_0x2dd16c(0x73)][_0x2dd16c(0x83)](_0x3fa994)['on'](_0x2dd16c(0x94),(_0x3e6584,_0x1d079e,_0x2a4401)=>{const _0xe4702d=_0x2dd16c;_0x2a4401?this[_0xe4702d(0x95)](_0xe4702d(0x82)):this[_0xe4702d(0x72)](_0xe4702d(0x82));});}[_0xc5e50c(0x88)](){const _0x49e468=_0xc5e50c,_0x57cd8c=this[_0x49e468(0x9e)];for(const _0x317ef7 of _0x57cd8c[_0x49e468(0x86)][_0x49e468(0x89)]())[_0x49e468(0x71),_0x49e468(0x6f)][_0x49e468(0x98)](_0x317ef7)||_0x57cd8c[_0x49e468(0x86)][_0x49e468(0x83)](_0x317ef7)[_0x49e468(0x95)](te);}[_0xc5e50c(0x7f)](){const _0x40590e=_0xc5e50c,_0x3122a1=this[_0x40590e(0x9e)];for(const _0x3e003d of _0x3122a1[_0x40590e(0x86)][_0x40590e(0x86)]())_0x3e003d[_0x40590e(0x72)](te);}[_0xc5e50c(0x99)](){const _0x1a67e5=_0xc5e50c;this[_0x1a67e5(0x92)]=!0x0;}[_0xc5e50c(0x87)](){const _0x129758=_0xc5e50c,_0x33ae78=this[_0x129758(0x9e)],_0x3295d3=_0x33ae78[_0x129758(0x9b)],_0x2e5e97=_0x33ae78[_0x129758(0x73)][_0x129758(0x83)](_0x129758(0x9d)),_0x380544=_0x2cf965(_0x33ae78),_0x2242dc=_0x33ae78[_0x129758(0x7e)][_0x129758(0x83)]({'rootName':_0x380544}),_0x56c764=_0x13b2a2(_0x2242dc),_0x56879a=new _0x6b462b(_0x3295d3,{'syntaxLanguage':_0x33ae78[_0x129758(0x73)][_0x129758(0x6e)](_0x129758(0xa3))?_0x129758(0x8f):_0x129758(0x90),'theme':_0x33ae78[_0x129758(0x84)][_0x129758(0x83)](_0x129758(0xa5))});let _0x192ef0=!0x0;const _0x334b46=_0x1369e1=>{const _0x119ef7=_0x129758;if(!_0x192ef0)return;const _0x1f2599=_0x56879a[_0x119ef7(0x81)]();return _0x124106(_0x1f2599)!==_0x124106(_0x56c764)?window[_0x119ef7(0x70)](_0x4ba888(_0x3295d3,_0x119ef7(0x9f)))?void 0x0:_0x1369e1[_0x119ef7(0x85)]():void 0x0;};_0x2e5e97[_0x129758(0x6c)]({'id':_0x129758(0x75),'title':_0x4ba888(_0x3295d3,_0x129758(0x7a)),'isModal':!0x0,'className':_0x129758(0x7b),'content':_0x56879a,'actionButtons':[{'label':_0x4ba888(_0x3295d3,_0x129758(0x7c)),'withText':!0x0,'onExecute':()=>{const _0x3a6740=_0x129758;_0x2e5e97[_0x3a6740(0x9a)]();}},{'label':_0x4ba888(_0x3295d3,_0x129758(0x74)),'class':_0x129758(0x97),'withText':!0x0,'onExecute':()=>{const _0x5b3769=_0x129758,_0x5bf31d=_0x56879a[_0x5b3769(0x81)](),_0x5b860a=_0x124106(_0x5bf31d)!==_0x124106(_0x56c764);(_0x5b860a&&_0x33ae78[_0x5b3769(0x87)](_0x5b3769(0x71),_0x56879a[_0x5b3769(0x81)]()),_0x192ef0=!0x1,_0x2e5e97[_0x5b3769(0x9a)](),_0x5b860a&&_0x5b3769(0xa6)in _0x33ae78['ui'][_0x5b3769(0x77)])&&_0x33ae78['ui'][_0x5b3769(0x77)][_0x5b3769(0xa6)][_0x380544][_0x5b3769(0x8e)][_0x5b3769(0x78)]();},'onCreate':_0x57046c=>{const _0x206b57=_0x129758;_0x57046c[_0x206b57(0x6b)](_0x206b57(0x92),!_0x33ae78[_0x206b57(0x8a)]),_0x57046c[_0x206b57(0xa4)](_0x206b57(0x92))['to'](_0x33ae78,_0x206b57(0x8a),this,_0x206b57(0x92),(_0x24a30a,_0x498d8e)=>!_0x24a30a&&_0x498d8e);}}],'onHide':()=>{const _0x2476ca=_0x129758;this[_0x2476ca(0x7f)](),_0x2e5e97[_0x2476ca(0x6a)](_0x2476ca(0x9a),_0x334b46),_0x56879a[_0x2476ca(0x8d)]();},'onShow':()=>{const _0x4d1db0=_0x129758;_0x56879a[_0x4d1db0(0xa4)](_0x4d1db0(0x8a))['to'](_0x33ae78,_0x4d1db0(0x8a),this,_0x4d1db0(0x92),(_0x247fd2,_0x5c09c3)=>_0x247fd2||!_0x5c09c3),_0x56879a[_0x4d1db0(0x7d)](_0x56c764),_0x56879a[_0x4d1db0(0x78)](),_0x2e5e97['on'](_0x4d1db0(0x9a),_0x334b46,{'priority':_0x4d1db0(0x80)}),this[_0x4d1db0(0x88)]();}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2de613,_0x1502f6){const _0x7807ea=_0x2492,_0x12e560=_0x2de613();while(!![]){try{const _0x32f137=parseInt(_0x7807ea(0x1f2))/0x1*(-parseInt(_0x7807ea(0x209))/0x2)+parseInt(_0x7807ea(0x200))/0x3+-parseInt(_0x7807ea(0x1f4))/0x4*(-parseInt(_0x7807ea(0x1f9))/0x5)+parseInt(_0x7807ea(0x20b))/0x6*(-parseInt(_0x7807ea(0x20a))/0x7)+-parseInt(_0x7807ea(0x206))/0x8+-parseInt(_0x7807ea(0x211))/0x9+parseInt(_0x7807ea(0x1fc))/0xa;if(_0x32f137===_0x1502f6)break;else _0x12e560['push'](_0x12e560['shift']());}catch(_0x4e7d72){_0x12e560['push'](_0x12e560['shift']());}}}(_0x4ecc,0x674a9));import{lineNumbers as _0x2f0fae,highlightActiveLineGutter as _0x39d641,highlightSpecialChars as _0x504333,drawSelection as _0x54de7b,dropCursor as _0x2d9be4,rectangularSelection as _0x575d00,crosshairCursor as _0x282b66,highlightActiveLine as _0x1621bb,keymap as _0x3b6753,EditorView as _0x683c47}from'@codemirror/view';import{Compartment as _0x3ed7fb,Transaction as _0xafcd59}from'@codemirror/state';import{foldGutter as _0x1c99ce,indentOnInput as _0x2a0c1d,syntaxHighlighting as _0x246553,defaultHighlightStyle as _0x12065f,bracketMatching as _0x22f332,foldKeymap as _0x5ed024}from'@codemirror/language';import{history as _0x96addb,defaultKeymap as _0x1c488d,historyKeymap as _0x1e1753,redo as _0x3fbae9,undo as _0x513ca2,indentMore as _0x2ce4ec,indentLess as _0x39d246,toggleTabFocusMode as _0x2ad70b}from'@codemirror/commands';import{closeBrackets as _0x2ead07,autocompletion as _0x442c15,closeBracketsKeymap as _0x5503ad,completionKeymap as _0x3ecb72}from'@codemirror/autocomplete';import{html as _0x166746}from'@codemirror/lang-html';function _0x2492(_0x2765fb,_0x1220a9){const _0x4ecc45=_0x4ecc();return _0x2492=function(_0x2492b6,_0x527cc0){_0x2492b6=_0x2492b6-0x1f1;let _0x4a9055=_0x4ecc45[_0x2492b6];return _0x4a9055;},_0x2492(_0x2765fb,_0x1220a9);}function _0x4ecc(){const _0x27c65a=['focus','Ctrl-z','19445730glZbpK','reconfigure','Cmd-Shift-z','editable','681279sKoiLK','length','html','lineWrapping','toString','state','6085064dkJfDu','default','Cmd-z','12bQDJlD','4325153PoeSju','6PXCvaX','parent','syntaxLanguage','Ctrl-Shift-z','Tab','doc','1958409iovqFu','dark','push','Cmd-y','84948JFafyj','destroy','59536rsphmn','dispatch','addToHistory','Ctrl-y','theme','120aZtLBU'];_0x4ecc=function(){return _0x27c65a;};return _0x4ecc();}import{markdown as _0x2b79b3}from'@codemirror/lang-markdown';import{oneDark as _0x56e604}from'@codemirror/theme-one-dark';export function createCodeMirrorEditor(_0x54abc7){const _0x30ccf9=_0x2492,_0x18bfe=[_0x683c47[_0x30ccf9(0x203)],_0x442c15(),_0x22f332(),_0x2ead07(),_0x282b66(),_0x54de7b(),_0x2d9be4(),_0x2f0fae(),_0x1c99ce(),_0x1621bb(),_0x39d641(),_0x504333(),_0x96addb(),_0x2a0c1d(),_0x575d00(),_0x246553(_0x12065f,{'fallback':!0x0})],_0x1dd189=new _0x3ed7fb();_0x18bfe[_0x30ccf9(0x213)](_0x1dd189['of'](_0x683c47[_0x30ccf9(0x1ff)]['of'](!0x0))),_0x30ccf9(0x202)===_0x54abc7[_0x30ccf9(0x20d)]?_0x18bfe[_0x30ccf9(0x213)](_0x166746()):_0x18bfe[_0x30ccf9(0x213)](_0x2b79b3());const _0x50c24a=function(_0x39e554){const _0x4aac55=_0x30ccf9;if(_0x39e554&&_0x4aac55(0x207)!==_0x39e554)return _0x4aac55(0x212)===_0x39e554?_0x56e604:_0x39e554;return null;}(_0x54abc7[_0x30ccf9(0x1f8)]);_0x50c24a&&_0x18bfe[_0x30ccf9(0x213)](_0x50c24a),_0x18bfe[_0x30ccf9(0x213)](...getKeybindings());const _0x5777e7=new _0x683c47({'extensions':_0x18bfe,'parent':_0x54abc7[_0x30ccf9(0x20c)]});return _0x2ad70b(_0x5777e7),{'focus':()=>{const _0x479593=_0x30ccf9;_0x5777e7[_0x479593(0x1f5)]({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x5777e7[_0x479593(0x1fa)]();},'getData':()=>_0x5777e7[_0x30ccf9(0x205)][_0x30ccf9(0x210)][_0x30ccf9(0x204)](),'setData':_0x52ad1b=>{const _0x2591a9=_0x30ccf9;_0x5777e7[_0x2591a9(0x1f5)]({'changes':{'from':0x0,'to':_0x5777e7[_0x2591a9(0x205)][_0x2591a9(0x210)][_0x2591a9(0x201)],'insert':_0x52ad1b},'annotations':_0xafcd59[_0x2591a9(0x1f6)]['of'](!0x1)});},'setReadOnly':_0x3f59ca=>{const _0xb57199=_0x30ccf9;_0x5777e7[_0xb57199(0x1f5)]({'effects':[_0x1dd189[_0xb57199(0x1fd)](_0x683c47[_0xb57199(0x1ff)]['of'](!_0x3f59ca))]});},'destroy':()=>{const _0x412192=_0x30ccf9;_0x5777e7[_0x412192(0x1f3)]();},'instance':_0x5777e7};}export function getKeybindings(){const _0x2af8ed=_0x2492;return[_0x3b6753['of']([..._0x5503ad,..._0x1c488d,..._0x1e1753,..._0x5ed024,..._0x3ecb72,{'key':_0x2af8ed(0x20f),'run':_0x2ce4ec,'shift':_0x39d246,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x2af8ed(0x1f7),'mac':_0x2af8ed(0x1f1),'run':_0x3fbae9,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x2af8ed(0x20e),'mac':_0x2af8ed(0x1fe),'run':_0x3fbae9,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x2af8ed(0x1fb),'mac':_0x2af8ed(0x208),'run':_0x513ca2,'preventDefault':!0x0,'stopPropagation':!0x0}])];}
|
package/src/utils/format.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4b1651,_0x39e6d5){var _0x4b0743=_0x1d20,_0x2ac227=_0x4b1651();while(!![]){try{var _0xc7a8b0=-parseInt(_0x4b0743(0xb4))/0x1*(parseInt(_0x4b0743(0xb6))/0x2)+parseInt(_0x4b0743(0xba))/0x3+-parseInt(_0x4b0743(0xb7))/0x4*(parseInt(_0x4b0743(0xb0))/0x5)+parseInt(_0x4b0743(0xb3))/0x6+parseInt(_0x4b0743(0xbc))/0x7+-parseInt(_0x4b0743(0xb2))/0x8*(-parseInt(_0x4b0743(0xb9))/0x9)+parseInt(_0x4b0743(0xb8))/0xa*(-parseInt(_0x4b0743(0xb1))/0xb);if(_0xc7a8b0===_0x39e6d5)break;else _0x2ac227['push'](_0x2ac227['shift']());}catch(_0x1ccbfa){_0x2ac227['push'](_0x2ac227['shift']());}}}(_0x5637,0x4e7af));function _0x5637(){var _0x18631a=['2035733PxZTEi','857865pFDcMj','319AozxFI','554008IJgSna','2970864JMMlxX','879KJPWDz','startsWith','26gUPgtO','4GuEvms','413570ypagFR','54YoLqwE','1507017EPVwAT','replace'];_0x5637=function(){return _0x18631a;};return _0x5637();}import{formatHtml as _0x2f03b6}from'ckeditor5/src/utils.js';export function formatSource(_0x3c30da){return X(_0x3c30da)?_0x2f03b6(_0x3c30da):_0x3c30da;}export function unformatSource(_0x155cea){var _0x4f07ee=_0x1d20;return X(_0x155cea[_0x4f07ee(0xbb)](/^[\n\s]*/g,''))?_0x155cea[_0x4f07ee(0xbb)](/\s+/g,''):_0x155cea;}function _0x1d20(_0x518e0d,_0x53c7bb){var _0x563747=_0x5637();return _0x1d20=function(_0x1d20e9,_0x470dea){_0x1d20e9=_0x1d20e9-0xb0;var _0x51e2cf=_0x563747[_0x1d20e9];return _0x51e2cf;},_0x1d20(_0x518e0d,_0x53c7bb);}function X(_0x27b9c8){var _0x3c3132=_0x1d20;return _0x27b9c8[_0x3c3132(0xb5)]('<');}
|