@ckeditor/ckeditor5-source-editing-enhanced 47.7.1-alpha.0 → 47.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 _0x4f0295,PendingActions as _0x81c80,Plugin as _0x511cea}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xc05040,formatHtml as _0x2c131b,env as _0x3b0713,uid as _0x2b1009}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x365eab}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x2f0862,ButtonView as _0x37b81d,MenuBarMenuListItemButtonView as _0x1d66cd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x3bfe84,crosshairCursor as _0x796870,drawSelection as _0x3ed729,dropCursor as _0x355507,lineNumbers as _0x258e29,highlightActiveLine as _0x507885,highlightActiveLineGutter as _0xada831,highlightSpecialChars as _0x461e0c,rectangularSelection as _0x2037b2,keymap as _0x51fb66}from'@codemirror/view';import{Compartment as _0xf1e54b,Transaction as _0x53f60e}from'@codemirror/state';import{bracketMatching as _0x3f9e82,foldGutter as _0x521cb7,indentOnInput as _0x59360c,syntaxHighlighting as _0x3571c4,defaultHighlightStyle as _0x59ef27,foldKeymap as _0x44a664}from'@codemirror/language';import{toggleTabFocusMode as _0x41ec6b,history as _0x2ade54,defaultKeymap as _0x5edb05,historyKeymap as _0x54fb16,indentLess as _0x39bed0,indentMore as _0x2dd788,redo as _0x2aecf7,undo as _0x251b00}from'@codemirror/commands';import{autocompletion as _0x82e1c0,closeBrackets as _0x685243,closeBracketsKeymap as _0x437563,completionKeymap as _0x2bec79}from'@codemirror/autocomplete';import{html as _0x27d092}from'@codemirror/lang-html';import{markdown as _0x1ed9a8}from'@codemirror/lang-markdown';import{oneDark as _0x26b689}from'@codemirror/theme-one-dark';function w(_0x58553c,_0x10cad0){const t=_0x58553c['t'];switch(_0x10cad0){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 _0x10cad0;}}function r(_0x3bfc86){const _0x202dc3=_0x3bfc86['editing']['view']['document']['roots'],_0x58cb9b=_0x202dc3['length'];if(0x0===_0x58cb9b)throw new _0xc05040('source-editing-enhanced-editor-no-root',_0x3bfc86);if(0x1===_0x58cb9b)return _0x202dc3['first']['rootName'];return Array['from'](_0x3bfc86['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function $(_0x440bd7){return X(_0x440bd7['replace'](/^[\n\s]*/g,''))?_0x440bd7['replace'](/\s+/g,''):_0x440bd7;}function X(_0x564919){return _0x564919['startsWith']('<');}function Y(_0x318065){const _0x1ea4b1=[_0x3bfe84['lineWrapping'],_0x82e1c0(),_0x3f9e82(),_0x685243(),_0x796870(),_0x3ed729(),_0x355507(),_0x258e29(),_0x521cb7(),_0x507885(),_0xada831(),_0x461e0c(),_0x2ade54(),_0x59360c(),_0x2037b2(),_0x3571c4(_0x59ef27,{'fallback':!0x0})],_0x5508b1=new _0xf1e54b();_0x1ea4b1['push'](_0x5508b1['of'](_0x3bfe84['editable']['of'](!0x0))),'html'===_0x318065['syntaxLanguage']?_0x1ea4b1['push'](_0x27d092()):_0x1ea4b1['push'](_0x1ed9a8());const _0x360d5c=function(_0x560332){if(_0x560332&&'default'!==_0x560332)return'dark'===_0x560332?_0x26b689:_0x560332;return null;}(_0x318065['theme']);_0x360d5c&&_0x1ea4b1['push'](_0x360d5c),_0x1ea4b1['push'](_0x51fb66['of']([..._0x437563,..._0x5edb05,..._0x54fb16,..._0x44a664,..._0x2bec79,{'key':'Tab','run':_0x2dd788,'shift':_0x39bed0,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x2aecf7,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x2aecf7,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x251b00,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x15d490=new _0x3bfe84({'extensions':_0x1ea4b1,'parent':_0x318065['parent']});return _0x41ec6b(_0x15d490),{'focus':()=>{_0x15d490['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x15d490['focus']();},'getData':()=>_0x15d490['state']['doc']['toString'](),'setData':_0x29e2fa=>{_0x15d490['dispatch']({'changes':{'from':0x0,'to':_0x15d490['state']['doc']['length'],'insert':_0x29e2fa},'annotations':_0x53f60e['addToHistory']['of'](!0x1)});},'setReadOnly':_0x47ed50=>{_0x15d490['dispatch']({'effects':[_0x5508b1['reconfigure'](_0x3bfe84['editable']['of'](!_0x47ed50))]});},'destroy':()=>{_0x15d490['destroy']();},'instance':_0x15d490};}class ee extends _0x2f0862{['_codeEditorApi']=null;['_options'];constructor(_0x4a8517,_0x1bd600){super(_0x4a8517),this['_options']=_0x1bd600,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',(_0x413702,_0x56d6a0,_0x10a12f)=>{this['setReadOnly'](_0x10a12f);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x152b51){this['_codeEditorApi']['setData'](_0x152b51);}['setReadOnly'](_0x229d03){this['_codeEditorApi']['setReadOnly'](_0x229d03);}}const te='SourceEditingEnhancedMode';class d extends _0x4f0295{constructor(_0x317f44){super(_0x317f44),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x81c80)['on']('change:hasAny',(_0x33d6e3,_0x16e48b,_0x23813a)=>{_0x23813a?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x21f4e8=this['editor'];for(const _0x3aeb51 of _0x21f4e8['commands']['names']())['replaceSource','editSource']['includes'](_0x3aeb51)||_0x21f4e8['commands']['get'](_0x3aeb51)['forceDisabled'](te);}['_enableCommands'](){const _0x5f319b=this['editor'];for(const _0x15ad31 of _0x5f319b['commands']['commands']())_0x15ad31['clearForceDisabled'](te);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x15d39b=this['editor'],_0x5d8b07=_0x15d39b['locale'],_0xeb4f42=_0x15d39b['plugins']['get']('Dialog'),_0x56ac94=r(_0x15d39b),_0x202da8=_0x15d39b['data']['get']({'rootName':_0x56ac94}),_0x59806f=X(_0xaeb435=_0x202da8)?_0x2c131b(_0xaeb435):_0xaeb435;var _0xaeb435;const _0x3ad220=new ee(_0x5d8b07,{'syntaxLanguage':_0x15d39b['plugins']['has']('Markdown')?'markdown':'html','theme':_0x15d39b['config']['get']('sourceEditingEnhanced.theme')});let _0x4dad1f=!0x0;const _0x566f11=_0x5c84a9=>{if(!_0x4dad1f)return;return $(_0x3ad220['getData']())!==$(_0x59806f)?window['confirm'](w(_0x5d8b07,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x5c84a9['stop']():void 0x0;};_0xeb4f42['show']({'id':'sourceEditingEnhanced','title':w(_0x5d8b07,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x3ad220,'actionButtons':[{'label':w(_0x5d8b07,'Cancel'),'withText':!0x0,'onExecute':()=>{_0xeb4f42['hide']();}},{'label':w(_0x5d8b07,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x74fb46=$(_0x3ad220['getData']())!==$(_0x59806f);(_0x74fb46&&_0x15d39b['execute']('replaceSource',_0x3ad220['getData']()),_0x4dad1f=!0x1,_0xeb4f42['hide'](),_0x74fb46&&'editables'in _0x15d39b['ui']['view'])&&_0x15d39b['ui']['view']['editables'][_0x56ac94]['element']['focus']();},'onCreate':_0x24f9f7=>{_0x24f9f7['set']('isEnabled',!_0x15d39b['isReadOnly']),_0x24f9f7['bind']('isEnabled')['to'](_0x15d39b,'isReadOnly',this,'isEnabled',(_0x4dc41e,_0x4ac96b)=>!_0x4dc41e&&_0x4ac96b);}}],'onHide':()=>{this['_enableCommands'](),_0xeb4f42['off']('hide',_0x566f11),_0x3ad220['destroy']();},'onShow':()=>{_0x3ad220['bind']('isReadOnly')['to'](_0x15d39b,'isReadOnly',this,'isEnabled',(_0x8d4939,_0x3b85ea)=>_0x8d4939||!_0x3b85ea),_0x3ad220['setData'](_0x59806f),_0x3ad220['focus'](),_0xeb4f42['on']('hide',_0x566f11,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0x511cea{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x81c80];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x21f83c=this['editor'],_0x519953=_0x21f83c['locale'],_0x106ed0=new d(_0x21f83c);_0x21f83c['commands']['add']('editSource',_0x106ed0),_0x21f83c['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x35b03d=this['_createButton'](_0x37b81d,_0x106ed0);return _0x35b03d['set']({'label':w(_0x519953,'Source'),'icon':_0x365eab,'tooltip':w(_0x519953,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x35b03d;}),_0x21f83c['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x5c12fc=this['_createButton'](_0x1d66cd,_0x106ed0,!0x0);return _0x5c12fc['set']({'label':w(_0x519953,'Edit\x20source\x20modal\x20label'),'icon':_0x365eab,'role':'menuitemcheckbox'}),_0x5c12fc;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0xa1ce61){const _0xb1b1bf=_0x544342([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0x379466=0x5dba9314,_0x443f39=0x5dbd14dc^_0x379466,_0x5bba3f=window[_0x544342([0x44,0x61,0x74,0x65])][_0x544342([0x6e,0x6f,0x77])](),_0x54a8c0=_0xa1ce61[_0x544342([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x45cf36=new window[(_0x544342([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20f456=>{_0x54a8c0[_0x544342([0x6f,0x6e,0x63,0x65])](_0x544342([0x72,0x65,0x61,0x64,0x79]),_0x20f456);}),_0x3cc566={[_0x544342([0x6b,0x74,0x79])]:_0x544342([0x45,0x43]),[_0x544342([0x75,0x73,0x65])]:_0x544342([0x73,0x69,0x67]),[_0x544342([0x63,0x72,0x76])]:_0x544342([0x50,0x2d,0x32,0x35,0x36]),[_0x544342([0x78])]:_0x544342([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]),[_0x544342([0x79])]:_0x544342([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]),[_0x544342([0x61,0x6c,0x67])]:_0x544342([0x45,0x53,0x32,0x35,0x36])},_0x575a0e=_0x54a8c0[_0x544342([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x544342([0x67,0x65,0x74])](_0x544342([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x389706(){let _0x30e812,_0x2247d4=null,_0x31c5b7=null;try{if(_0x575a0e==_0x544342([0x47,0x50,0x4c]))return _0x544342([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30e812=_0x13e680(),!_0x30e812)return _0x544342([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30e812[_0x544342([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31c5b7=_0x15e941(_0x30e812[_0x544342([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30e812[_0x544342([0x6a,0x74,0x69])])),await _0x1ca9fc()?_0x294234()?_0x5376d8()?_0x544342([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x111485()?(_0x30e812[_0x544342([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x544342([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2247d4=_0x13c9f4(_0x544342([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2dc4ed()):_0x544342([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x544342([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x544342([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x544342([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5376d8(){const _0x532121=[_0x544342([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x544342([0x74,0x72,0x69,0x61,0x6c])][_0x544342([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30e812[_0x544342([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bba3f/0x3e8:0xe10*_0x443f39;return _0x30e812[_0x544342([0x65,0x78,0x70])]<_0x532121;}function _0x294234(){const _0x8cd25d=_0x30e812[_0x544342([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x8cd25d&&(!!_0x8cd25d[_0x544342([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x544342([0x2a]))||!!_0x8cd25d[_0x544342([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x544342([0x53,0x45,0x45])));}function _0x111485(){const _0x31f6e0=_0x30e812[_0x544342([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31f6e0||0x0==_0x31f6e0[_0x544342([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3cfa18}=new URL(window[_0x544342([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x31f6e0[_0x544342([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cfa18))return!0x0;const _0x447637=_0x3cfa18[_0x544342([0x73,0x70,0x6c,0x69,0x74])](_0x544342([0x2e]));return _0x31f6e0[_0x544342([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x216600=>_0x216600[_0x544342([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x544342([0x2a])))[_0x544342([0x6d,0x61,0x70])](_0x2759d2=>_0x2759d2[_0x544342([0x73,0x70,0x6c,0x69,0x74])](_0x544342([0x2e])))[_0x544342([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd91284=>_0xd91284[_0x544342([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x447637[_0x544342([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x544342([0x6d,0x61,0x70])](_0x5555a7=>Array(_0x447637[_0x544342([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5555a7[_0x544342([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x544342([0x66,0x69,0x6c,0x6c])](_0x5555a7[0x0]===_0x544342([0x2a])?_0x544342([0x2a]):'')[_0x544342([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5555a7))[_0x544342([0x73,0x6f,0x6d,0x65])](_0x2dddcd=>_0x447637[_0x544342([0x65,0x76,0x65,0x72,0x79])]((_0x1df621,_0x36547f)=>_0x2dddcd[_0x36547f]===_0x1df621||_0x2dddcd[_0x36547f]===_0x544342([0x2a])));}function _0x2dc4ed(){return _0x2247d4&&_0x31c5b7?new window[(_0x544342([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3949ee,_0x427efb)=>{_0x2247d4[_0x544342([0x74,0x68,0x65,0x6e])](_0x3949ee,_0x427efb),_0x31c5b7[_0x544342([0x74,0x68,0x65,0x6e])](_0x595d50=>{_0x595d50!=_0x544342([0x56,0x61,0x6c,0x69,0x64])&&_0x3949ee(_0x595d50);},_0x427efb);}):_0x2247d4||_0x31c5b7||_0x544342([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15e941(_0x5369e7,_0xa1a705){return new window[(_0x544342([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1701c4=>{if(_0x4161ad())return _0x1701c4(_0x544342([0x56,0x61,0x6c,0x69,0x64]));_0x4d8092(),_0x54a8c0[_0x544342([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x544342([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42c6f8=!0x1;const _0x207560=_0x2b1009();function _0x116ee6(_0x51caac){return!!_0x51caac&&(typeof _0x51caac===_0x544342([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51caac===_0x544342([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51caac[_0x544342([0x74,0x68,0x65,0x6e])]===_0x544342([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51caac[_0x544342([0x63,0x61,0x74,0x63,0x68])]===_0x544342([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x122084(_0x30efaa){_0x1467c4(_0x30efaa)[_0x544342([0x74,0x68,0x65,0x6e])](_0xb7189b=>{if(!_0xb7189b||_0xb7189b[_0x544342([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x544342([0x6f,0x6b]))return _0x544342([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2fab24(_0x30dde7(_0x207560+_0xa1a705))!=_0xb7189b[_0x544342([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x544342([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x544342([0x56,0x61,0x6c,0x69,0x64]);})[_0x544342([0x74,0x68,0x65,0x6e])](_0x470d1b=>(_0x4cc7d5(),_0x470d1b),()=>{const _0x5b687f=_0x242178();return null==_0x5b687f?(_0x4cc7d5(),_0x544342([0x56,0x61,0x6c,0x69,0x64])):_0x544342(_0x5bba3f-_0x5b687f>(0x79b61714^_0x379466)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x544342([0x74,0x68,0x65,0x6e])](_0x1701c4)[_0x544342([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1701c4(_0x544342([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d1f53=0x5d8c7d94^_0x379466;function _0x4cc7d5(){const _0x26a199=_0x544342([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fab24(_0x30dde7(_0x5369e7)),_0x4af641=_0x3e5c37(_0x2fab24(window[_0x544342([0x4d,0x61,0x74,0x68])][_0x544342([0x63,0x65,0x69,0x6c])](_0x5bba3f/_0x2d1f53)));window[_0x544342([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x544342([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26a199,_0x4af641);}function _0x242178(){const _0x49e7b4=_0x544342([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fab24(_0x30dde7(_0x5369e7)),_0x7537a7=window[_0x544342([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x544342([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49e7b4);return _0x7537a7?window[_0x544342([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e5c37(_0x7537a7),0x10)*_0x2d1f53:null;}function _0x1467c4(_0x5af8ef){return new window[(_0x544342([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c2918,_0x2fe0a0)=>{_0x5af8ef[_0x544342([0x74,0x68,0x65,0x6e])](_0x4c2918,_0x2fe0a0),window[_0x544342([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fe0a0,0x5dbb47d4^_0x379466);});}}_0x54a8c0[_0x544342([0x6f,0x6e])](_0x544342([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a0b0d,_0x10e220)=>{if(_0x10e220[0x0]!=_0x5369e7)return _0x1701c4(_0x544342([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10e220[0x1]={..._0x10e220[0x1],[_0x544342([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x207560};},{[_0x544342([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x544342([0x68,0x69,0x67,0x68])}),_0x54a8c0[_0x544342([0x6f,0x6e])](_0x544342([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27263d=>{_0x116ee6(_0x27263d[_0x544342([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42c6f8=!0x0,_0x122084(_0x27263d[_0x544342([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x544342([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x544342([0x6c,0x6f,0x77])}),_0x45cf36[_0x544342([0x74,0x68,0x65,0x6e])](()=>{_0x42c6f8||_0x1701c4(_0x544342([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4161ad(){return _0x54a8c0[_0x544342([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x544342([0x76,0x69,0x65,0x77])][_0x544342([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x544342([0x61,0x75,0x74,0x6f]);}function _0x4d8092(){_0x54a8c0[_0x544342([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x544342([0x76,0x69,0x65,0x77])][_0x544342([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x544342([0x61,0x75,0x74,0x6f]);}}function _0x13c9f4(_0x59b667){const _0x46fa80=[new window[(_0x544342([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cfeba=>setTimeout(_0x3cfeba,0x5db3add8^_0x379466)),_0x45cf36[_0x544342([0x74,0x68,0x65,0x6e])](()=>new window[(_0x544342([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x546f1c=>{let _0x5104cb=0x0;_0x54a8c0[_0x544342([0x6d,0x6f,0x64,0x65,0x6c])][_0x544342([0x6f,0x6e])](_0x544342([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x54582d,_0x1533ab)=>{_0x1533ab[0x0][_0x544342([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5104cb++,_0x5104cb==(0x5dba96fc^_0x379466)&&(_0x546f1c(),_0x54582d[_0x544342([0x6f,0x66,0x66])]());});}))];return window[_0x544342([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x544342([0x72,0x61,0x63,0x65])](_0x46fa80)[_0x544342([0x74,0x68,0x65,0x6e])](()=>_0x59b667);}async function _0x2ef658(){await _0x45cf36,_0x54a8c0[_0x544342([0x6d,0x6f,0x64,0x65,0x6c])][_0x544342([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x400a54,_0x54a8c0[_0x544342([0x6d,0x6f,0x64,0x65,0x6c])][_0x544342([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x400a54,_0x54a8c0[_0x544342([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x544342([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e857b(_0x4d9220){const _0x4996fd=_0x41adf1();_0x54a8c0[_0x4996fd]=_0x544342([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])+_0x4d9220,_0x4d9220!=_0x544342([0x56,0x61,0x6c,0x69,0x64])&&_0x2ef658();}function _0x41adf1(){const _0x19e5a3=window[_0x544342([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x544342([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x544342([0x6e,0x6f,0x77])]())[_0x544342([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x544342([0x2e]),'');let _0x236587=_0x544342([0x4e]);for(let _0x28f0eb=0x0;_0x28f0eb<_0x19e5a3[_0x544342([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28f0eb+=0x2){let _0x271db5=window[_0x544342([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19e5a3[_0x544342([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28f0eb,_0x28f0eb+0x2));_0x271db5>=_0xb1b1bf[_0x544342([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x271db5-=_0xb1b1bf[_0x544342([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x236587+=_0xb1b1bf[_0x271db5];}return _0x236587;}function _0x13e680(){const _0x4800e7=_0x575a0e[_0x544342([0x73,0x70,0x6c,0x69,0x74])](_0x544342([0x2e]));if(0x3!=_0x4800e7[_0x544342([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2dc7f7(_0x4800e7[0x1]);function _0x2dc7f7(_0x3c78cf){const _0x34b8db=_0x29ccae(_0x3c78cf);return _0x34b8db&&_0x22e798()?_0x34b8db:null;function _0x22e798(){const _0x3ac695=_0x34b8db[_0x544342([0x6a,0x74,0x69])],_0x510189=window[_0x544342([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ac695[_0x544342([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ac695[_0x544342([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x493aa3={..._0x34b8db,[_0x544342([0x6a,0x74,0x69])]:_0x3ac695[_0x544342([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ac695[_0x544342([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x493aa3[_0x544342([0x76,0x63])],_0x30dde7(_0x493aa3)==_0x510189;}}}async function _0x1ca9fc(){let _0x124b13=!0x0;try{const _0x2e28b9=_0x575a0e[_0x544342([0x73,0x70,0x6c,0x69,0x74])](_0x544342([0x2e])),[_0x1e6474,_0x185660,_0x2761db]=_0x2e28b9;return _0x11726c(_0x1e6474),await _0x498d8f(_0x1e6474,_0x185660,_0x2761db),_0x124b13;}catch{return!0x1;}function _0x11726c(_0x4d4128){const _0x4efbde=_0x29ccae(_0x4d4128);_0x4efbde&&_0x4efbde[_0x544342([0x61,0x6c,0x67])]==_0x544342([0x45,0x53,0x32,0x35,0x36])||(_0x124b13=!0x1);}async function _0x498d8f(_0x25c9e2,_0xf33f21,_0x27fe32){const _0x472040=window[_0x544342([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x544342([0x66,0x72,0x6f,0x6d])](_0x6fbf19(_0x27fe32),_0x1b9156=>_0x1b9156[_0x544342([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x470483=new window[(_0x544342([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x544342([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25c9e2+_0x544342([0x2e])+_0xf33f21),_0x536c77=window[_0x544342([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x544342([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x536c77)return;const _0x4f3467=await _0x536c77[_0x544342([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x544342([0x6a,0x77,0x6b]),_0x3cc566,{[_0x544342([0x6e,0x61,0x6d,0x65])]:_0x544342([0x45,0x43,0x44,0x53,0x41]),[_0x544342([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x544342([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x544342([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x536c77[_0x544342([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x544342([0x6e,0x61,0x6d,0x65])]:_0x544342([0x45,0x43,0x44,0x53,0x41]),[_0x544342([0x68,0x61,0x73,0x68])]:{[_0x544342([0x6e,0x61,0x6d,0x65])]:_0x544342([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f3467,_0x472040,_0x470483)||(_0x124b13=!0x1);}}function _0x29ccae(_0x326286){return _0x326286[_0x544342([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x544342([0x65,0x79]))?JSON[_0x544342([0x70,0x61,0x72,0x73,0x65])](_0x6fbf19(_0x326286)):null;}function _0x6fbf19(_0x5f28f7){return window[_0x544342([0x61,0x74,0x6f,0x62])](_0x5f28f7[_0x544342([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x544342([0x2b]))[_0x544342([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x544342([0x2f])));}function _0x30dde7(_0x55c091){let _0x38de6c=0x1505;function _0x5164c2(_0x390e0b){for(let _0x3ab036=0x0;_0x3ab036<_0x390e0b[_0x544342([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ab036++){const _0x5d20fb=_0x390e0b[_0x544342([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ab036);_0x38de6c=(_0x38de6c<<0x5)+_0x38de6c+_0x5d20fb,_0x38de6c&=_0x38de6c;}}function _0x365ab7(_0x4a29ef){Array[_0x544342([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a29ef)?_0x4a29ef[_0x544342([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x365ab7):_0x4a29ef&&typeof _0x4a29ef==_0x544342([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x544342([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a29ef)[_0x544342([0x73,0x6f,0x72,0x74])]()[_0x544342([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cb400,_0x32e054])=>{_0x5164c2(_0x1cb400),_0x365ab7(_0x32e054);}):_0x5164c2(window[_0x544342([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a29ef));}return _0x365ab7(_0x55c091),_0x38de6c>>>0x0;}function _0x2fab24(_0x5b477d){return _0x5b477d[_0x544342([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x544342([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x544342([0x30]));}function _0x3e5c37(_0x349894){return _0x349894[_0x544342([0x73,0x70,0x6c,0x69,0x74])]('')[_0x544342([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x544342([0x6a,0x6f,0x69,0x6e])]('');}function _0x400a54(){}function _0x544342(_0x485d4f){return _0x485d4f['map'](_0x49ae6a=>String['fromCharCode'](_0x49ae6a))['join']('');}_0x5e857b(await _0x389706());}(this);}['_createButton'](_0x45bf31,_0x19c23f,_0x377df6=!0x1){const _0x3d932b=new _0x45bf31(this['editor']['locale']);return _0x3d932b['set']({'withText':_0x377df6,'isToggleable':!0x1}),_0x3d932b['bind']('isEnabled')['to'](_0x19c23f,'isEnabled'),this['listenTo'](_0x3d932b,'execute',()=>_0x19c23f['execute']()),_0x3d932b;}['_registerKeybindings'](){const _0x5064c1=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x5064c1,'Source\x20Editing\x20Enhanced')});const _0x5fe69c=_0x3b0713['isMac']||_0x3b0713['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x5064c1,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x5064c1,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x5064c1,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x5064c1,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x5064c1,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x5064c1,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x5064c1,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x5fe69c?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x5064c1,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x5064c1,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x5064c1,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x5064c1,'Select\x20line'),'keystroke':_0x5fe69c?'Ctrl!+L':'Alt+L'},{'label':w(_0x5064c1,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x5fe69c?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x5064c1,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x5064c1,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x5064c1,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x5064c1,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x5064c1,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x5fe69c?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0x4f0295{constructor(_0x9219d0){super(_0x9219d0),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x3018b8,_0x149afa){const _0x1e7e5a=this['editor'],_0x26c7d7=_0x149afa?.['rootName']??r(_0x1e7e5a);_0x1e7e5a['data']['set']({[_0x26c7d7]:_0x3018b8},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ne extends _0x511cea{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x4344c3){super(_0x4344c3),_0x4344c3['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 _0x18e257=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x137319;for(const _0x5125e9 in _0x18e257){const _0x2eb4c5=_0x5125e9,_0x2355e0=_0x18e257[_0x2eb4c5];if('sourceEditingEnhancedLicenseKeyValid'==_0x2355e0||'sourceEditingEnhancedLicenseKeyInvalid'==_0x2355e0||'sourceEditingEnhancedLicenseKeyExpired'==_0x2355e0||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x2355e0||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x2355e0||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x2355e0||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x2355e0){delete _0x18e257[_0x2eb4c5],_0x137319=_0x2355e0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x137319&&_0x18e257['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x137319&&_0x18e257['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x137319&&_0x18e257['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x137319&&_0x18e257['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x137319&&_0x18e257['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x137319&&_0x18e257['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x2a5e12=this['editor'],_0x297913=_0x2a5e12['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x297913&&_0x2a5e12['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0xc05040('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x297913&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x509600=>_0x2a5e12['plugins']['has'](_0x509600))&&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.'),_0x2a5e12['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};
|
|
23
|
+
import{Command as _0x19e333,PendingActions as _0x457362,Plugin as _0x2c5c00}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x28a725,formatHtml as _0x5f297c,env as _0x5379b5,uid as _0x3170e2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x4e4160}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x26b502,ButtonView as _0x3074e9,MenuBarMenuListItemButtonView as _0xe6203b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x1cb7d0,crosshairCursor as _0x5371f6,drawSelection as _0x531118,dropCursor as _0x54c277,lineNumbers as _0x9a019e,highlightActiveLine as _0x301a97,highlightActiveLineGutter as _0x5d07cd,highlightSpecialChars as _0x12d088,rectangularSelection as _0x224547,keymap as _0x56a876}from'@codemirror/view';import{Compartment as _0x1aa510,Transaction as _0x2bbd17}from'@codemirror/state';import{bracketMatching as _0x2af476,foldGutter as _0x4e53d7,indentOnInput as _0xa56551,syntaxHighlighting as _0x2c9c37,defaultHighlightStyle as _0x3e72f3,foldKeymap as _0x5b97d5}from'@codemirror/language';import{toggleTabFocusMode as _0x3758f0,history as _0x3dfe50,defaultKeymap as _0x4dd2f1,historyKeymap as _0x13d839,indentLess as _0x4a7dfa,indentMore as _0x9a90e8,redo as _0x91abd4,undo as _0x5656ed}from'@codemirror/commands';import{autocompletion as _0x1ac22d,closeBrackets as _0x17212d,closeBracketsKeymap as _0x3db06b,completionKeymap as _0x289b11}from'@codemirror/autocomplete';import{html as _0x5a7db3}from'@codemirror/lang-html';import{markdown as _0xfaf70}from'@codemirror/lang-markdown';import{oneDark as _0x1d86f6}from'@codemirror/theme-one-dark';function w(_0x5e7ec4,_0x156454){const t=_0x5e7ec4['t'];switch(_0x156454){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 _0x156454;}}function r(_0x38e554){const _0x5ae0c8=_0x38e554['editing']['view']['document']['roots'],_0x46aa27=_0x5ae0c8['length'];if(0x0===_0x46aa27)throw new _0x28a725('source-editing-enhanced-editor-no-root',_0x38e554);if(0x1===_0x46aa27)return _0x5ae0c8['first']['rootName'];return Array['from'](_0x38e554['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function g(_0x39f175){return tr(_0x39f175['replace'](/^[\n\s]*/g,''))?_0x39f175['replace'](/\s+/g,''):_0x39f175;}function tr(_0xd37fa){return _0xd37fa['startsWith']('<');}function p(_0x569d24){const _0x39df1d=[_0x1cb7d0['lineWrapping'],_0x1ac22d(),_0x2af476(),_0x17212d(),_0x5371f6(),_0x531118(),_0x54c277(),_0x9a019e(),_0x4e53d7(),_0x301a97(),_0x5d07cd(),_0x12d088(),_0x3dfe50(),_0xa56551(),_0x224547(),_0x2c9c37(_0x3e72f3,{'fallback':!0x0})],_0x46f3a6=new _0x1aa510();_0x39df1d['push'](_0x46f3a6['of'](_0x1cb7d0['editable']['of'](!0x0))),'html'===_0x569d24['syntaxLanguage']?_0x39df1d['push'](_0x5a7db3()):_0x39df1d['push'](_0xfaf70());const _0xec0050=function(_0x291c03){if(_0x291c03&&'default'!==_0x291c03)return'dark'===_0x291c03?_0x1d86f6:_0x291c03;return null;}(_0x569d24['theme']);_0xec0050&&_0x39df1d['push'](_0xec0050),_0x39df1d['push'](_0x56a876['of']([..._0x3db06b,..._0x4dd2f1,..._0x13d839,..._0x5b97d5,..._0x289b11,{'key':'Tab','run':_0x9a90e8,'shift':_0x4a7dfa,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x91abd4,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x91abd4,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x5656ed,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x3c0b24=new _0x1cb7d0({'extensions':_0x39df1d,'parent':_0x569d24['parent']});return _0x3758f0(_0x3c0b24),{'focus':()=>{_0x3c0b24['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x3c0b24['focus']();},'getData':()=>_0x3c0b24['state']['doc']['toString'](),'setData':_0x3b8a3c=>{_0x3c0b24['dispatch']({'changes':{'from':0x0,'to':_0x3c0b24['state']['doc']['length'],'insert':_0x3b8a3c},'annotations':_0x2bbd17['addToHistory']['of'](!0x1)});},'setReadOnly':_0x18f4c1=>{_0x3c0b24['dispatch']({'effects':[_0x46f3a6['reconfigure'](_0x1cb7d0['editable']['of'](!_0x18f4c1))]});},'destroy':()=>{_0x3c0b24['destroy']();},'instance':_0x3c0b24};}class E extends _0x26b502{['_codeEditorApi']=null;['_options'];constructor(_0x42d496,_0x437a54){super(_0x42d496),this['_options']=_0x437a54,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',(_0x5a79c0,_0x2947ea,_0x27d45a)=>{this['setReadOnly'](_0x27d45a);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x746293){this['_codeEditorApi']['setData'](_0x746293);}['setReadOnly'](_0xa55851){this['_codeEditorApi']['setReadOnly'](_0xa55851);}}const b='SourceEditingEnhancedMode';class d extends _0x19e333{constructor(_0x269f6c){super(_0x269f6c),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x457362)['on']('change:hasAny',(_0x260727,_0x490040,_0x5d7688)=>{_0x5d7688?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x4c0c8e=this['editor'];for(const _0x51fe13 of _0x4c0c8e['commands']['names']())['replaceSource','editSource']['includes'](_0x51fe13)||_0x4c0c8e['commands']['get'](_0x51fe13)['forceDisabled'](b);}['_enableCommands'](){const _0x2ba244=this['editor'];for(const _0x6e87b6 of _0x2ba244['commands']['commands']())_0x6e87b6['clearForceDisabled'](b);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3a0e05=this['editor'],_0xd51a9c=_0x3a0e05['locale'],_0x6c77e5=_0x3a0e05['plugins']['get']('Dialog'),_0x1f2eff=r(_0x3a0e05),_0x405dc0=_0x3a0e05['data']['get']({'rootName':_0x1f2eff}),_0x203a49=tr(_0x4259aa=_0x405dc0)?_0x5f297c(_0x4259aa):_0x4259aa;var _0x4259aa;const _0x2981b7=new E(_0xd51a9c,{'syntaxLanguage':_0x3a0e05['plugins']['has']('Markdown')?'markdown':'html','theme':_0x3a0e05['config']['get']('sourceEditingEnhanced.theme')});let _0x539347=!0x0;const _0x143c43=_0x4ffcd5=>{if(!_0x539347)return;return g(_0x2981b7['getData']())!==g(_0x203a49)?window['confirm'](w(_0xd51a9c,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x4ffcd5['stop']():void 0x0;};_0x6c77e5['show']({'id':'sourceEditingEnhanced','title':w(_0xd51a9c,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x2981b7,'actionButtons':[{'label':w(_0xd51a9c,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x6c77e5['hide']();}},{'label':w(_0xd51a9c,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x784b2b=g(_0x2981b7['getData']())!==g(_0x203a49);(_0x784b2b&&_0x3a0e05['execute']('replaceSource',_0x2981b7['getData']()),_0x539347=!0x1,_0x6c77e5['hide'](),_0x784b2b&&'editables'in _0x3a0e05['ui']['view'])&&_0x3a0e05['ui']['view']['editables'][_0x1f2eff]['element']['focus']();},'onCreate':_0x5da697=>{_0x5da697['set']('isEnabled',!_0x3a0e05['isReadOnly']),_0x5da697['bind']('isEnabled')['to'](_0x3a0e05,'isReadOnly',this,'isEnabled',(_0x310641,_0x48fd4b)=>!_0x310641&&_0x48fd4b);}}],'onHide':()=>{this['_enableCommands'](),_0x6c77e5['off']('hide',_0x143c43),_0x2981b7['destroy']();},'onShow':()=>{_0x2981b7['bind']('isReadOnly')['to'](_0x3a0e05,'isReadOnly',this,'isEnabled',(_0x2e038e,_0x4127bf)=>_0x2e038e||!_0x4127bf),_0x2981b7['setData'](_0x203a49),_0x2981b7['focus'](),_0x6c77e5['on']('hide',_0x143c43,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0x2c5c00{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x457362];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xf3cc3=this['editor'],_0x10ba06=_0xf3cc3['locale'],_0x5c4a70=new d(_0xf3cc3);_0xf3cc3['commands']['add']('editSource',_0x5c4a70),_0xf3cc3['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x46fae2=this['_createButton'](_0x3074e9,_0x5c4a70);return _0x46fae2['set']({'label':w(_0x10ba06,'Source'),'icon':_0x4e4160,'tooltip':w(_0x10ba06,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x46fae2;}),_0xf3cc3['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x28c275=this['_createButton'](_0xe6203b,_0x5c4a70,!0x0);return _0x28c275['set']({'label':w(_0x10ba06,'Edit\x20source\x20modal\x20label'),'icon':_0x4e4160,'role':'menuitemcheckbox'}),_0x28c275;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x114756){const _0x2ff927=_0x18ee53([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0x56e3c8=0x5dba9314,_0x15da36=0x5dbd1b04^_0x56e3c8,_0x13f5c3=window[_0x18ee53([0x44,0x61,0x74,0x65])][_0x18ee53([0x6e,0x6f,0x77])](),_0x32c36a=_0x114756[_0x18ee53([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26b830=new window[(_0x18ee53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d9bd5=>{_0x32c36a[_0x18ee53([0x6f,0x6e,0x63,0x65])](_0x18ee53([0x72,0x65,0x61,0x64,0x79]),_0x5d9bd5);}),_0x5f421a={[_0x18ee53([0x6b,0x74,0x79])]:_0x18ee53([0x45,0x43]),[_0x18ee53([0x75,0x73,0x65])]:_0x18ee53([0x73,0x69,0x67]),[_0x18ee53([0x63,0x72,0x76])]:_0x18ee53([0x50,0x2d,0x32,0x35,0x36]),[_0x18ee53([0x78])]:_0x18ee53([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]),[_0x18ee53([0x79])]:_0x18ee53([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]),[_0x18ee53([0x61,0x6c,0x67])]:_0x18ee53([0x45,0x53,0x32,0x35,0x36])},_0x3c5323=_0x32c36a[_0x18ee53([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x18ee53([0x67,0x65,0x74])](_0x18ee53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x222c01(){let _0x42c4e9,_0x552f9e=null,_0x112fc7=null;try{if(_0x3c5323==_0x18ee53([0x47,0x50,0x4c]))return _0x18ee53([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42c4e9=_0x54ffa8(),!_0x42c4e9)return _0x18ee53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42c4e9[_0x18ee53([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x112fc7=_0x303e14(_0x42c4e9[_0x18ee53([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42c4e9[_0x18ee53([0x6a,0x74,0x69])])),await _0x54bb36()?_0x14b8f6()?_0x23eb0a()?_0x18ee53([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4cdff9()?(_0x42c4e9[_0x18ee53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18ee53([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x552f9e=_0x466061(_0x18ee53([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb437c8()):_0x18ee53([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x18ee53([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x18ee53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x18ee53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x23eb0a(){const _0x5e7700=[_0x18ee53([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x18ee53([0x74,0x72,0x69,0x61,0x6c])][_0x18ee53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c4e9[_0x18ee53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x13f5c3/0x3e8:0xe10*_0x15da36;return _0x42c4e9[_0x18ee53([0x65,0x78,0x70])]<_0x5e7700;}function _0x14b8f6(){const _0x2d4779=_0x42c4e9[_0x18ee53([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2d4779&&(!!_0x2d4779[_0x18ee53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18ee53([0x2a]))||!!_0x2d4779[_0x18ee53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18ee53([0x53,0x45,0x45])));}function _0x4cdff9(){const _0x48ff99=_0x42c4e9[_0x18ee53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48ff99||0x0==_0x48ff99[_0x18ee53([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c27c4}=new URL(window[_0x18ee53([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x48ff99[_0x18ee53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c27c4))return!0x0;const _0x36931f=_0x5c27c4[_0x18ee53([0x73,0x70,0x6c,0x69,0x74])](_0x18ee53([0x2e]));return _0x48ff99[_0x18ee53([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x390f1f=>_0x390f1f[_0x18ee53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18ee53([0x2a])))[_0x18ee53([0x6d,0x61,0x70])](_0x25af75=>_0x25af75[_0x18ee53([0x73,0x70,0x6c,0x69,0x74])](_0x18ee53([0x2e])))[_0x18ee53([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x162f01=>_0x162f01[_0x18ee53([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x36931f[_0x18ee53([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18ee53([0x6d,0x61,0x70])](_0x24a4ca=>Array(_0x36931f[_0x18ee53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x24a4ca[_0x18ee53([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18ee53([0x66,0x69,0x6c,0x6c])](_0x24a4ca[0x0]===_0x18ee53([0x2a])?_0x18ee53([0x2a]):'')[_0x18ee53([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x24a4ca))[_0x18ee53([0x73,0x6f,0x6d,0x65])](_0x3c66ff=>_0x36931f[_0x18ee53([0x65,0x76,0x65,0x72,0x79])]((_0x1e58e0,_0x48b989)=>_0x3c66ff[_0x48b989]===_0x1e58e0||_0x3c66ff[_0x48b989]===_0x18ee53([0x2a])));}function _0xb437c8(){return _0x552f9e&&_0x112fc7?new window[(_0x18ee53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a99ee,_0x488091)=>{_0x552f9e[_0x18ee53([0x74,0x68,0x65,0x6e])](_0x1a99ee,_0x488091),_0x112fc7[_0x18ee53([0x74,0x68,0x65,0x6e])](_0x16ec62=>{_0x16ec62!=_0x18ee53([0x56,0x61,0x6c,0x69,0x64])&&_0x1a99ee(_0x16ec62);},_0x488091);}):_0x552f9e||_0x112fc7||_0x18ee53([0x56,0x61,0x6c,0x69,0x64]);}}function _0x303e14(_0x434205,_0x4b66e9){return new window[(_0x18ee53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56ca36=>{if(_0x2b96a4())return _0x56ca36(_0x18ee53([0x56,0x61,0x6c,0x69,0x64]));_0x568de4(),_0x32c36a[_0x18ee53([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x18ee53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14d678=!0x1;const _0x184503=_0x3170e2();function _0xcaad27(_0x4d209a){return!!_0x4d209a&&(typeof _0x4d209a===_0x18ee53([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d209a===_0x18ee53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d209a[_0x18ee53([0x74,0x68,0x65,0x6e])]===_0x18ee53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d209a[_0x18ee53([0x63,0x61,0x74,0x63,0x68])]===_0x18ee53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25e436(_0x5828bb){_0x2f5273(_0x5828bb)[_0x18ee53([0x74,0x68,0x65,0x6e])](_0x4300d7=>{if(!_0x4300d7||_0x4300d7[_0x18ee53([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x18ee53([0x6f,0x6b]))return _0x18ee53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48ad22(_0x3d988d(_0x184503+_0x4b66e9))!=_0x4300d7[_0x18ee53([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x18ee53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x18ee53([0x56,0x61,0x6c,0x69,0x64]);})[_0x18ee53([0x74,0x68,0x65,0x6e])](_0x2210b5=>(_0x39f399(),_0x2210b5),()=>{const _0x5f3460=_0x577ad7();return null==_0x5f3460?(_0x39f399(),_0x18ee53([0x56,0x61,0x6c,0x69,0x64])):_0x18ee53(_0x13f5c3-_0x5f3460>(0x79b61714^_0x56e3c8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x18ee53([0x74,0x68,0x65,0x6e])](_0x56ca36)[_0x18ee53([0x63,0x61,0x74,0x63,0x68])](()=>{_0x56ca36(_0x18ee53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x344a6f=0x5d8c7d94^_0x56e3c8;function _0x39f399(){const _0x2a7509=_0x18ee53([0x6c,0x6c,0x63,0x74,0x2d])+_0x48ad22(_0x3d988d(_0x434205)),_0x784795=_0x5406a2(_0x48ad22(window[_0x18ee53([0x4d,0x61,0x74,0x68])][_0x18ee53([0x63,0x65,0x69,0x6c])](_0x13f5c3/_0x344a6f)));window[_0x18ee53([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18ee53([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a7509,_0x784795);}function _0x577ad7(){const _0x3aa384=_0x18ee53([0x6c,0x6c,0x63,0x74,0x2d])+_0x48ad22(_0x3d988d(_0x434205)),_0x90c5a8=window[_0x18ee53([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18ee53([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3aa384);return _0x90c5a8?window[_0x18ee53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5406a2(_0x90c5a8),0x10)*_0x344a6f:null;}function _0x2f5273(_0x471626){return new window[(_0x18ee53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x396f4d,_0x56776f)=>{_0x471626[_0x18ee53([0x74,0x68,0x65,0x6e])](_0x396f4d,_0x56776f),window[_0x18ee53([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56776f,0x5dbb47d4^_0x56e3c8);});}}_0x32c36a[_0x18ee53([0x6f,0x6e])](_0x18ee53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a7aac,_0x379002)=>{if(_0x379002[0x0]!=_0x434205)return _0x56ca36(_0x18ee53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x379002[0x1]={..._0x379002[0x1],[_0x18ee53([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x184503};},{[_0x18ee53([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18ee53([0x68,0x69,0x67,0x68])}),_0x32c36a[_0x18ee53([0x6f,0x6e])](_0x18ee53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1c4c8a=>{_0xcaad27(_0x1c4c8a[_0x18ee53([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14d678=!0x0,_0x25e436(_0x1c4c8a[_0x18ee53([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x18ee53([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18ee53([0x6c,0x6f,0x77])}),_0x26b830[_0x18ee53([0x74,0x68,0x65,0x6e])](()=>{_0x14d678||_0x56ca36(_0x18ee53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b96a4(){return _0x32c36a[_0x18ee53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18ee53([0x76,0x69,0x65,0x77])][_0x18ee53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x18ee53([0x61,0x75,0x74,0x6f]);}function _0x568de4(){_0x32c36a[_0x18ee53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18ee53([0x76,0x69,0x65,0x77])][_0x18ee53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18ee53([0x61,0x75,0x74,0x6f]);}}function _0x466061(_0x1052e6){const _0x67be18=[new window[(_0x18ee53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x444d82=>setTimeout(_0x444d82,0x5db3add8^_0x56e3c8)),_0x26b830[_0x18ee53([0x74,0x68,0x65,0x6e])](()=>new window[(_0x18ee53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15bcfa=>{let _0x26eb9b=0x0;_0x32c36a[_0x18ee53([0x6d,0x6f,0x64,0x65,0x6c])][_0x18ee53([0x6f,0x6e])](_0x18ee53([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x31bae0,_0x5c7be2)=>{_0x5c7be2[0x0][_0x18ee53([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x26eb9b++,_0x26eb9b==(0x5dba96fc^_0x56e3c8)&&(_0x15bcfa(),_0x31bae0[_0x18ee53([0x6f,0x66,0x66])]());});}))];return window[_0x18ee53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18ee53([0x72,0x61,0x63,0x65])](_0x67be18)[_0x18ee53([0x74,0x68,0x65,0x6e])](()=>_0x1052e6);}async function _0x494807(){await _0x26b830,_0x32c36a[_0x18ee53([0x6d,0x6f,0x64,0x65,0x6c])][_0x18ee53([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d5b4a,_0x32c36a[_0x18ee53([0x6d,0x6f,0x64,0x65,0x6c])][_0x18ee53([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d5b4a,_0x32c36a[_0x18ee53([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x18ee53([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x47d0d9(_0x23f4c7){const _0x514b70=_0x20c330();_0x32c36a[_0x514b70]=_0x18ee53([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])+_0x23f4c7,_0x23f4c7!=_0x18ee53([0x56,0x61,0x6c,0x69,0x64])&&_0x494807();}function _0x20c330(){const _0x1aae04=window[_0x18ee53([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x18ee53([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x18ee53([0x6e,0x6f,0x77])]())[_0x18ee53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x18ee53([0x2e]),'');let _0x198f34=_0x18ee53([0x4e]);for(let _0x2ac018=0x0;_0x2ac018<_0x1aae04[_0x18ee53([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ac018+=0x2){let _0x10c40e=window[_0x18ee53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1aae04[_0x18ee53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ac018,_0x2ac018+0x2));_0x10c40e>=_0x2ff927[_0x18ee53([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x10c40e-=_0x2ff927[_0x18ee53([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x198f34+=_0x2ff927[_0x10c40e];}return _0x198f34;}function _0x54ffa8(){const _0xebecc1=_0x3c5323[_0x18ee53([0x73,0x70,0x6c,0x69,0x74])](_0x18ee53([0x2e]));if(0x3!=_0xebecc1[_0x18ee53([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x25a190(_0xebecc1[0x1]);function _0x25a190(_0x45474b){const _0x444830=_0x586267(_0x45474b);return _0x444830&&_0x1d6daa()?_0x444830:null;function _0x1d6daa(){const _0x2d1d04=_0x444830[_0x18ee53([0x6a,0x74,0x69])],_0x187099=window[_0x18ee53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d1d04[_0x18ee53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d1d04[_0x18ee53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5f21b1={..._0x444830,[_0x18ee53([0x6a,0x74,0x69])]:_0x2d1d04[_0x18ee53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d1d04[_0x18ee53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5f21b1[_0x18ee53([0x76,0x63])],_0x3d988d(_0x5f21b1)==_0x187099;}}}async function _0x54bb36(){let _0x8ab5c=!0x0;try{const _0xd2d6a1=_0x3c5323[_0x18ee53([0x73,0x70,0x6c,0x69,0x74])](_0x18ee53([0x2e])),[_0xcc6a45,_0x5882ac,_0x3dc18d]=_0xd2d6a1;return _0x31f453(_0xcc6a45),await _0x46d4ec(_0xcc6a45,_0x5882ac,_0x3dc18d),_0x8ab5c;}catch{return!0x1;}function _0x31f453(_0x7d7fe4){const _0x20f779=_0x586267(_0x7d7fe4);_0x20f779&&_0x20f779[_0x18ee53([0x61,0x6c,0x67])]==_0x18ee53([0x45,0x53,0x32,0x35,0x36])||(_0x8ab5c=!0x1);}async function _0x46d4ec(_0x24f74f,_0x4429d,_0x373703){const _0x363070=window[_0x18ee53([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x18ee53([0x66,0x72,0x6f,0x6d])](_0x2ca27c(_0x373703),_0x505ff1=>_0x505ff1[_0x18ee53([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ac990=new window[(_0x18ee53([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x18ee53([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24f74f+_0x18ee53([0x2e])+_0x4429d),_0x3b8c5e=window[_0x18ee53([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x18ee53([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b8c5e)return;const _0x3dce3d=await _0x3b8c5e[_0x18ee53([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x18ee53([0x6a,0x77,0x6b]),_0x5f421a,{[_0x18ee53([0x6e,0x61,0x6d,0x65])]:_0x18ee53([0x45,0x43,0x44,0x53,0x41]),[_0x18ee53([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x18ee53([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x18ee53([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b8c5e[_0x18ee53([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x18ee53([0x6e,0x61,0x6d,0x65])]:_0x18ee53([0x45,0x43,0x44,0x53,0x41]),[_0x18ee53([0x68,0x61,0x73,0x68])]:{[_0x18ee53([0x6e,0x61,0x6d,0x65])]:_0x18ee53([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3dce3d,_0x363070,_0x3ac990)||(_0x8ab5c=!0x1);}}function _0x586267(_0x232dd8){return _0x232dd8[_0x18ee53([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x18ee53([0x65,0x79]))?JSON[_0x18ee53([0x70,0x61,0x72,0x73,0x65])](_0x2ca27c(_0x232dd8)):null;}function _0x2ca27c(_0x5bb802){return window[_0x18ee53([0x61,0x74,0x6f,0x62])](_0x5bb802[_0x18ee53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x18ee53([0x2b]))[_0x18ee53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x18ee53([0x2f])));}function _0x3d988d(_0x45e2b2){let _0x1a0c5=0x1505;function _0x4c992e(_0xcee730){for(let _0x3ef5ed=0x0;_0x3ef5ed<_0xcee730[_0x18ee53([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ef5ed++){const _0x5d23bb=_0xcee730[_0x18ee53([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ef5ed);_0x1a0c5=(_0x1a0c5<<0x5)+_0x1a0c5+_0x5d23bb,_0x1a0c5&=_0x1a0c5;}}function _0x43c42a(_0x379915){Array[_0x18ee53([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x379915)?_0x379915[_0x18ee53([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43c42a):_0x379915&&typeof _0x379915==_0x18ee53([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x18ee53([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x379915)[_0x18ee53([0x73,0x6f,0x72,0x74])]()[_0x18ee53([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c8e46,_0x284ae7])=>{_0x4c992e(_0x2c8e46),_0x43c42a(_0x284ae7);}):_0x4c992e(window[_0x18ee53([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x379915));}return _0x43c42a(_0x45e2b2),_0x1a0c5>>>0x0;}function _0x48ad22(_0x5473d7){return _0x5473d7[_0x18ee53([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x18ee53([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x18ee53([0x30]));}function _0x5406a2(_0x28cbbf){return _0x28cbbf[_0x18ee53([0x73,0x70,0x6c,0x69,0x74])]('')[_0x18ee53([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x18ee53([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d5b4a(){}function _0x18ee53(_0x25f5e0){return _0x25f5e0['map'](_0x1cfdc6=>String['fromCharCode'](_0x1cfdc6))['join']('');}_0x47d0d9(await _0x222c01());}(this);}['_createButton'](_0x183a63,_0x36de05,_0x57d899=!0x1){const _0x284c71=new _0x183a63(this['editor']['locale']);return _0x284c71['set']({'withText':_0x57d899,'isToggleable':!0x1}),_0x284c71['bind']('isEnabled')['to'](_0x36de05,'isEnabled'),this['listenTo'](_0x284c71,'execute',()=>_0x36de05['execute']()),_0x284c71;}['_registerKeybindings'](){const _0x346283=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x346283,'Source\x20Editing\x20Enhanced')});const _0x143574=_0x5379b5['isMac']||_0x5379b5['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x346283,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x346283,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x346283,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x346283,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x346283,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x346283,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x346283,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x143574?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x346283,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x346283,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x346283,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x346283,'Select\x20line'),'keystroke':_0x143574?'Ctrl!+L':'Alt+L'},{'label':w(_0x346283,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x143574?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x346283,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x346283,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x346283,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x346283,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x346283,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x143574?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0x19e333{constructor(_0xbbefbb){super(_0xbbefbb),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x26325d,_0x4d47c1){const _0x13299f=this['editor'],_0x2d6659=_0x4d47c1?.['rootName']??r(_0x13299f);_0x13299f['data']['set']({[_0x2d6659]:_0x26325d},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ee extends _0x2c5c00{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x42bc67){super(_0x42bc67),_0x42bc67['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 _0x4d8f01=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2ceda7;for(const _0x58df78 in _0x4d8f01){const _0x5eac14=_0x58df78,_0x473f32=_0x4d8f01[_0x5eac14];if('sourceEditingEnhancedLicenseKeyValid'==_0x473f32||'sourceEditingEnhancedLicenseKeyInvalid'==_0x473f32||'sourceEditingEnhancedLicenseKeyExpired'==_0x473f32||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x473f32||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x473f32||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x473f32||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x473f32){delete _0x4d8f01[_0x5eac14],_0x2ceda7=_0x473f32,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x2ceda7&&_0x4d8f01['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x2ceda7&&_0x4d8f01['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x2ceda7&&_0x4d8f01['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x2ceda7&&_0x4d8f01['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x2ceda7&&_0x4d8f01['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x2ceda7&&_0x4d8f01['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x4d5ef1=this['editor'],_0xdf0fc=_0x4d5ef1['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0xdf0fc&&_0x4d5ef1['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x28a725('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0xdf0fc&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x2a23b7=>_0x4d5ef1['plugins']['has'](_0x2a23b7))&&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.'),_0x4d5ef1['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};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-source-editing-enhanced",
|
|
3
|
-
"version": "47.7.1
|
|
3
|
+
"version": "47.7.1",
|
|
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": "47.7.1
|
|
22
|
-
"@ckeditor/ckeditor5-icons": "47.7.1
|
|
23
|
-
"@ckeditor/ckeditor5-theme-lark": "47.7.1
|
|
24
|
-
"@ckeditor/ckeditor5-ui": "47.7.1
|
|
25
|
-
"@ckeditor/ckeditor5-utils": "47.7.1
|
|
21
|
+
"@ckeditor/ckeditor5-core": "47.7.1",
|
|
22
|
+
"@ckeditor/ckeditor5-icons": "47.7.1",
|
|
23
|
+
"@ckeditor/ckeditor5-theme-lark": "47.7.1",
|
|
24
|
+
"@ckeditor/ckeditor5-ui": "47.7.1",
|
|
25
|
+
"@ckeditor/ckeditor5-utils": "47.7.1",
|
|
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": "47.7.1
|
|
34
|
+
"ckeditor5": "47.7.1"
|
|
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 _0x32f499=_0x5c05;(function(_0x38921f,_0x492d3c){const _0x143a97=_0x5c05,_0x1b38fe=_0x38921f();while(!![]){try{const _0xfc2975=-parseInt(_0x143a97(0x13a))/0x1+parseInt(_0x143a97(0x14e))/0x2+-parseInt(_0x143a97(0x126))/0x3+parseInt(_0x143a97(0x13f))/0x4+parseInt(_0x143a97(0x12f))/0x5*(parseInt(_0x143a97(0x12d))/0x6)+-parseInt(_0x143a97(0x130))/0x7*(-parseInt(_0x143a97(0x112))/0x8)+-parseInt(_0x143a97(0x129))/0x9;if(_0xfc2975===_0x492d3c)break;else _0x1b38fe['push'](_0x1b38fe['shift']());}catch(_0x14ba72){_0x1b38fe['push'](_0x1b38fe['shift']());}}}(_0x1f46,0x6eb78));function _0x1f46(){const _0x4dd9f6=['editSource','Delete\x20line','join','Undo\x20(keystroke)','Edit\x20source\x20modal\x20label','Ctrl!+Alt+]','183256aKczxr','locale','href','afterInit','SourceEditingEnhancedUI','Copy\x20line\x20up','componentFactory','isPremiumPlugin','Indent\x20more','Ctrl+Y','addKeystrokeInfoCategory','Ctrl+Shift+]','Select\x20line','accessibility','Source','execute','Ctrl+/','Source\x20Editing\x20Enhanced','Alt+ArrowUp','Ctrl+Shift+[','isMac','Indent\x20less','set','add','2120WckCSC','isiOS','Shift+Alt+ArrowUp','_registerKeybindings','Ctrl+Shift+Z','Shift+Alt+A','Toggle\x20comment','Ctrl!+L','Move\x20line\x20down','Cmd+Alt+]','_createButton','Ctrl+[','commands','Toggle\x20block\x20comment','Shift+Alt+ArrowDown','Fold\x20all','Ctrl+]','requires','Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode','fromCharCode','2075214ZytOQF','Alt+Shift+M','Copy\x20line\x20down','4332456PyjXoG','isOfficialPlugin','map','Redo\x20(keystroke)','852qlSTPw','Ctrl+Z','21865mvTUdE','5768VCPkyr','editor','menuitemcheckbox','isEnabled','Cmd+Alt+[','Unfold\x20all','init','Shift+Ctrl+K','menuBar:sourceEditingEnhanced','ck-source-editing-enhanced-button','120365qXMijt','Move\x20line\x20up','Fold\x20code\x20(current\x20level)','Ctrl+M','addKeystrokeInfos','3264116vOrBuT','pluginName','Unfold\x20code\x20(current\x20level)','sourceEditingEnhanced','listenTo','bind','Alt+L','Ctrl!+Alt+[','Alt+ArrowDown'];_0x1f46=function(){return _0x4dd9f6;};return _0x1f46();}import{Plugin as _0x55e4ab,PendingActions as _0x2afe89}from'ckeditor5/src/core.js';import{IconSource as _0x2c543c}from'ckeditor5/src/icons.js';import{ButtonView as _0x3976c5,MenuBarMenuListItemButtonView as _0x892b98}from'ckeditor5/src/ui.js';import{EditSourceCommand as _0x3d8b96}from'./ui/editsourcecommand.js';import{getTranslation as _0x8a7462}from'./utils/common-translations.js';import{env as _0x322675,uid as _0x21427e}from'ckeditor5/src/utils.js';function _0x5c05(_0x1abbed,_0x1536fd){const _0x1f46b1=_0x1f46();return _0x5c05=function(_0x5c0546,_0x40af83){_0x5c0546=_0x5c0546-0x108;let _0x5b2869=_0x1f46b1[_0x5c0546];return _0x5b2869;},_0x5c05(_0x1abbed,_0x1536fd);}import'../theme/sourceeditingenhanced.css';export class SourceEditingEnhancedUI extends _0x55e4ab{static get[_0x32f499(0x140)](){const _0x5b43d7=_0x32f499;return _0x5b43d7(0x152);}static get[_0x32f499(0x123)](){return[_0x2afe89];}static get[_0x32f499(0x12a)](){return!0x0;}static get[_0x32f499(0x155)](){return!0x0;}[_0x32f499(0x136)](){const _0x4cb7c9=_0x32f499,_0x431e60=this[_0x4cb7c9(0x131)],_0x49aaaa=_0x431e60[_0x4cb7c9(0x14f)],_0x3c4784=new _0x3d8b96(_0x431e60);_0x431e60[_0x4cb7c9(0x11e)][_0x4cb7c9(0x111)](_0x4cb7c9(0x148),_0x3c4784),_0x431e60['ui'][_0x4cb7c9(0x154)][_0x4cb7c9(0x111)](_0x4cb7c9(0x142),()=>{const _0x52bae1=_0x4cb7c9,_0x464bd2=this[_0x52bae1(0x11c)](_0x3976c5,_0x3c4784);return _0x464bd2[_0x52bae1(0x110)]({'label':_0x8a7462(_0x49aaaa,_0x52bae1(0x108)),'icon':_0x2c543c,'tooltip':_0x8a7462(_0x49aaaa,_0x52bae1(0x14c)),'class':_0x52bae1(0x139)}),_0x464bd2;}),_0x431e60['ui'][_0x4cb7c9(0x154)][_0x4cb7c9(0x111)](_0x4cb7c9(0x138),()=>{const _0x4efade=_0x4cb7c9,_0x38ffd6=this[_0x4efade(0x11c)](_0x892b98,_0x3c4784,!0x0);return _0x38ffd6[_0x4efade(0x110)]({'label':_0x8a7462(_0x49aaaa,_0x4efade(0x14c)),'icon':_0x2c543c,'role':_0x4efade(0x132)}),_0x38ffd6;}),this[_0x4cb7c9(0x115)]();}[_0x32f499(0x151)](){!async function(_0x17921c){const _0x45fa0d=_0x4433bb([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0x193f7a=0x5dba9314,_0x3cc40c=0x5dbd14dc^_0x193f7a,_0xcc6a2c=window[_0x4433bb([0x44,0x61,0x74,0x65])][_0x4433bb([0x6e,0x6f,0x77])](),_0x19dc41=_0x17921c[_0x4433bb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa48266=new window[(_0x4433bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51045b=>{_0x19dc41[_0x4433bb([0x6f,0x6e,0x63,0x65])](_0x4433bb([0x72,0x65,0x61,0x64,0x79]),_0x51045b);}),_0x33a6d9={[_0x4433bb([0x6b,0x74,0x79])]:_0x4433bb([0x45,0x43]),[_0x4433bb([0x75,0x73,0x65])]:_0x4433bb([0x73,0x69,0x67]),[_0x4433bb([0x63,0x72,0x76])]:_0x4433bb([0x50,0x2d,0x32,0x35,0x36]),[_0x4433bb([0x78])]:_0x4433bb([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]),[_0x4433bb([0x79])]:_0x4433bb([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]),[_0x4433bb([0x61,0x6c,0x67])]:_0x4433bb([0x45,0x53,0x32,0x35,0x36])},_0x57f196=_0x19dc41[_0x4433bb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4433bb([0x67,0x65,0x74])](_0x4433bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x26efca(){let _0x42853a,_0x1db168=null,_0x498069=null;try{if(_0x57f196==_0x4433bb([0x47,0x50,0x4c]))return _0x4433bb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42853a=_0x88bf33(),!_0x42853a)return _0x4433bb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42853a[_0x4433bb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x498069=_0x2dff5b(_0x42853a[_0x4433bb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42853a[_0x4433bb([0x6a,0x74,0x69])])),await _0x153044()?_0x42e6e3()?_0x49003c()?_0x4433bb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1eb395()?(_0x42853a[_0x4433bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4433bb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1db168=_0x7e3f44(_0x4433bb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x27afd8()):_0x4433bb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4433bb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4433bb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4433bb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49003c(){const _0x4e401b=[_0x4433bb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4433bb([0x74,0x72,0x69,0x61,0x6c])][_0x4433bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42853a[_0x4433bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcc6a2c/0x3e8:0xe10*_0x3cc40c;return _0x42853a[_0x4433bb([0x65,0x78,0x70])]<_0x4e401b;}function _0x42e6e3(){const _0x240ea8=_0x42853a[_0x4433bb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x240ea8&&(!!_0x240ea8[_0x4433bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4433bb([0x2a]))||!!_0x240ea8[_0x4433bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4433bb([0x53,0x45,0x45])));}function _0x1eb395(){const _0x162f78=_0x5c05,_0x372736=_0x42853a[_0x4433bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x372736||0x0==_0x372736[_0x4433bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2cfa3f}=new URL(window[_0x4433bb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x162f78(0x150)]);if(_0x372736[_0x4433bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cfa3f))return!0x0;const _0x3b1b50=_0x2cfa3f[_0x4433bb([0x73,0x70,0x6c,0x69,0x74])](_0x4433bb([0x2e]));return _0x372736[_0x4433bb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x265b1a=>_0x265b1a[_0x4433bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4433bb([0x2a])))[_0x4433bb([0x6d,0x61,0x70])](_0x439824=>_0x439824[_0x4433bb([0x73,0x70,0x6c,0x69,0x74])](_0x4433bb([0x2e])))[_0x4433bb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x134a82=>_0x134a82[_0x4433bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3b1b50[_0x4433bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4433bb([0x6d,0x61,0x70])](_0x3c1282=>Array(_0x3b1b50[_0x4433bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3c1282[_0x4433bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4433bb([0x66,0x69,0x6c,0x6c])](_0x3c1282[0x0]===_0x4433bb([0x2a])?_0x4433bb([0x2a]):'')[_0x4433bb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3c1282))[_0x4433bb([0x73,0x6f,0x6d,0x65])](_0x11b4b4=>_0x3b1b50[_0x4433bb([0x65,0x76,0x65,0x72,0x79])]((_0x316c64,_0x13eb19)=>_0x11b4b4[_0x13eb19]===_0x316c64||_0x11b4b4[_0x13eb19]===_0x4433bb([0x2a])));}function _0x27afd8(){return _0x1db168&&_0x498069?new window[(_0x4433bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23f814,_0x54b982)=>{_0x1db168[_0x4433bb([0x74,0x68,0x65,0x6e])](_0x23f814,_0x54b982),_0x498069[_0x4433bb([0x74,0x68,0x65,0x6e])](_0x470d18=>{_0x470d18!=_0x4433bb([0x56,0x61,0x6c,0x69,0x64])&&_0x23f814(_0x470d18);},_0x54b982);}):_0x1db168||_0x498069||_0x4433bb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2dff5b(_0x35f804,_0x4d381a){return new window[(_0x4433bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107865=>{if(_0x5c0e33())return _0x107865(_0x4433bb([0x56,0x61,0x6c,0x69,0x64]));_0x1acc45(),_0x19dc41[_0x4433bb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4433bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e1d50=!0x1;const _0x4b567=_0x21427e();function _0x52fe0b(_0x4eb2ad){return!!_0x4eb2ad&&(typeof _0x4eb2ad===_0x4433bb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4eb2ad===_0x4433bb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4eb2ad[_0x4433bb([0x74,0x68,0x65,0x6e])]===_0x4433bb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4eb2ad[_0x4433bb([0x63,0x61,0x74,0x63,0x68])]===_0x4433bb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a8daa(_0x498354){_0x16c68f(_0x498354)[_0x4433bb([0x74,0x68,0x65,0x6e])](_0x37e5ba=>{if(!_0x37e5ba||_0x37e5ba[_0x4433bb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4433bb([0x6f,0x6b]))return _0x4433bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x153059(_0x5b29ad(_0x4b567+_0x4d381a))!=_0x37e5ba[_0x4433bb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4433bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4433bb([0x56,0x61,0x6c,0x69,0x64]);})[_0x4433bb([0x74,0x68,0x65,0x6e])](_0x5ca42f=>(_0x4e7580(),_0x5ca42f),()=>{const _0x7e12cf=_0x1fc1f9();return null==_0x7e12cf?(_0x4e7580(),_0x4433bb([0x56,0x61,0x6c,0x69,0x64])):_0x4433bb(_0xcc6a2c-_0x7e12cf>(0x79b61714^_0x193f7a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4433bb([0x74,0x68,0x65,0x6e])](_0x107865)[_0x4433bb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x107865(_0x4433bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6acce4=0x5d8c7d94^_0x193f7a;function _0x4e7580(){const _0x2cad77=_0x4433bb([0x6c,0x6c,0x63,0x74,0x2d])+_0x153059(_0x5b29ad(_0x35f804)),_0x54ce43=_0x157194(_0x153059(window[_0x4433bb([0x4d,0x61,0x74,0x68])][_0x4433bb([0x63,0x65,0x69,0x6c])](_0xcc6a2c/_0x6acce4)));window[_0x4433bb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4433bb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cad77,_0x54ce43);}function _0x1fc1f9(){const _0x2e758a=_0x4433bb([0x6c,0x6c,0x63,0x74,0x2d])+_0x153059(_0x5b29ad(_0x35f804)),_0x381377=window[_0x4433bb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4433bb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e758a);return _0x381377?window[_0x4433bb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x157194(_0x381377),0x10)*_0x6acce4:null;}function _0x16c68f(_0x57746e){return new window[(_0x4433bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xcde83d,_0x4f9108)=>{_0x57746e[_0x4433bb([0x74,0x68,0x65,0x6e])](_0xcde83d,_0x4f9108),window[_0x4433bb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f9108,0x5dbb47d4^_0x193f7a);});}}_0x19dc41[_0x4433bb([0x6f,0x6e])](_0x4433bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4aea94,_0x22240a)=>{if(_0x22240a[0x0]!=_0x35f804)return _0x107865(_0x4433bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22240a[0x1]={..._0x22240a[0x1],[_0x4433bb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b567};},{[_0x4433bb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4433bb([0x68,0x69,0x67,0x68])}),_0x19dc41[_0x4433bb([0x6f,0x6e])](_0x4433bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x166c88=>{_0x52fe0b(_0x166c88[_0x4433bb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e1d50=!0x0,_0x1a8daa(_0x166c88[_0x4433bb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4433bb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4433bb([0x6c,0x6f,0x77])}),_0xa48266[_0x4433bb([0x74,0x68,0x65,0x6e])](()=>{_0x5e1d50||_0x107865(_0x4433bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c0e33(){return _0x19dc41[_0x4433bb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4433bb([0x76,0x69,0x65,0x77])][_0x4433bb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4433bb([0x61,0x75,0x74,0x6f]);}function _0x1acc45(){_0x19dc41[_0x4433bb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4433bb([0x76,0x69,0x65,0x77])][_0x4433bb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4433bb([0x61,0x75,0x74,0x6f]);}}function _0x7e3f44(_0x3fa1b0){const _0x2710d9=[new window[(_0x4433bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12c2e6=>setTimeout(_0x12c2e6,0x5db3add8^_0x193f7a)),_0xa48266[_0x4433bb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4433bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x335539=>{let _0x2cfe16=0x0;_0x19dc41[_0x4433bb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4433bb([0x6f,0x6e])](_0x4433bb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x30876e,_0x1ed90f)=>{_0x1ed90f[0x0][_0x4433bb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2cfe16++,_0x2cfe16==(0x5dba96fc^_0x193f7a)&&(_0x335539(),_0x30876e[_0x4433bb([0x6f,0x66,0x66])]());});}))];return window[_0x4433bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4433bb([0x72,0x61,0x63,0x65])](_0x2710d9)[_0x4433bb([0x74,0x68,0x65,0x6e])](()=>_0x3fa1b0);}async function _0xa5215(){await _0xa48266,_0x19dc41[_0x4433bb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4433bb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1deffe,_0x19dc41[_0x4433bb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4433bb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1deffe,_0x19dc41[_0x4433bb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4433bb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1107cc(_0x5551a9){const _0x27ebc0=_0x1ca94a();_0x19dc41[_0x27ebc0]=_0x4433bb([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])+_0x5551a9,_0x5551a9!=_0x4433bb([0x56,0x61,0x6c,0x69,0x64])&&_0xa5215();}function _0x1ca94a(){const _0x8bc665=window[_0x4433bb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4433bb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4433bb([0x6e,0x6f,0x77])]())[_0x4433bb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4433bb([0x2e]),'');let _0x43b341=_0x4433bb([0x4e]);for(let _0x53d982=0x0;_0x53d982<_0x8bc665[_0x4433bb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53d982+=0x2){let _0x30f678=window[_0x4433bb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8bc665[_0x4433bb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53d982,_0x53d982+0x2));_0x30f678>=_0x45fa0d[_0x4433bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30f678-=_0x45fa0d[_0x4433bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43b341+=_0x45fa0d[_0x30f678];}return _0x43b341;}function _0x88bf33(){const _0x2abf79=_0x57f196[_0x4433bb([0x73,0x70,0x6c,0x69,0x74])](_0x4433bb([0x2e]));if(0x3!=_0x2abf79[_0x4433bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x18c4c1(_0x2abf79[0x1]);function _0x18c4c1(_0x128422){const _0x4d1b73=_0xf1043(_0x128422);return _0x4d1b73&&_0xadf603()?_0x4d1b73:null;function _0xadf603(){const _0x178e80=_0x4d1b73[_0x4433bb([0x6a,0x74,0x69])],_0x4dcb91=window[_0x4433bb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x178e80[_0x4433bb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x178e80[_0x4433bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26b062={..._0x4d1b73,[_0x4433bb([0x6a,0x74,0x69])]:_0x178e80[_0x4433bb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x178e80[_0x4433bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26b062[_0x4433bb([0x76,0x63])],_0x5b29ad(_0x26b062)==_0x4dcb91;}}}async function _0x153044(){let _0x38af3d=!0x0;try{const _0x470e1c=_0x57f196[_0x4433bb([0x73,0x70,0x6c,0x69,0x74])](_0x4433bb([0x2e])),[_0x124189,_0x5c3d35,_0x54dd1b]=_0x470e1c;return _0x129c99(_0x124189),await _0xf080ab(_0x124189,_0x5c3d35,_0x54dd1b),_0x38af3d;}catch{return!0x1;}function _0x129c99(_0x1b108){const _0x1cab36=_0xf1043(_0x1b108);_0x1cab36&&_0x1cab36[_0x4433bb([0x61,0x6c,0x67])]==_0x4433bb([0x45,0x53,0x32,0x35,0x36])||(_0x38af3d=!0x1);}async function _0xf080ab(_0x301db1,_0x25bc5b,_0x1f4c92){const _0x27c6a1=window[_0x4433bb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4433bb([0x66,0x72,0x6f,0x6d])](_0x33056c(_0x1f4c92),_0x5c2e18=>_0x5c2e18[_0x4433bb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x401ae1=new window[(_0x4433bb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4433bb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x301db1+_0x4433bb([0x2e])+_0x25bc5b),_0x4ca0f5=window[_0x4433bb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4433bb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ca0f5)return;const _0x1159ca=await _0x4ca0f5[_0x4433bb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4433bb([0x6a,0x77,0x6b]),_0x33a6d9,{[_0x4433bb([0x6e,0x61,0x6d,0x65])]:_0x4433bb([0x45,0x43,0x44,0x53,0x41]),[_0x4433bb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4433bb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4433bb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ca0f5[_0x4433bb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4433bb([0x6e,0x61,0x6d,0x65])]:_0x4433bb([0x45,0x43,0x44,0x53,0x41]),[_0x4433bb([0x68,0x61,0x73,0x68])]:{[_0x4433bb([0x6e,0x61,0x6d,0x65])]:_0x4433bb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1159ca,_0x27c6a1,_0x401ae1)||(_0x38af3d=!0x1);}}function _0xf1043(_0xb128f){return _0xb128f[_0x4433bb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4433bb([0x65,0x79]))?JSON[_0x4433bb([0x70,0x61,0x72,0x73,0x65])](_0x33056c(_0xb128f)):null;}function _0x33056c(_0x6adbf5){return window[_0x4433bb([0x61,0x74,0x6f,0x62])](_0x6adbf5[_0x4433bb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4433bb([0x2b]))[_0x4433bb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4433bb([0x2f])));}function _0x5b29ad(_0x23d124){let _0x4965ea=0x1505;function _0x96a0d9(_0x5c7113){for(let _0x23217a=0x0;_0x23217a<_0x5c7113[_0x4433bb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23217a++){const _0x2e61c2=_0x5c7113[_0x4433bb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23217a);_0x4965ea=(_0x4965ea<<0x5)+_0x4965ea+_0x2e61c2,_0x4965ea&=_0x4965ea;}}function _0x1238ad(_0x587a93){Array[_0x4433bb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x587a93)?_0x587a93[_0x4433bb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1238ad):_0x587a93&&typeof _0x587a93==_0x4433bb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4433bb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x587a93)[_0x4433bb([0x73,0x6f,0x72,0x74])]()[_0x4433bb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b71f1,_0x1763eb])=>{_0x96a0d9(_0x3b71f1),_0x1238ad(_0x1763eb);}):_0x96a0d9(window[_0x4433bb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x587a93));}return _0x1238ad(_0x23d124),_0x4965ea>>>0x0;}function _0x153059(_0x151931){return _0x151931[_0x4433bb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4433bb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4433bb([0x30]));}function _0x157194(_0x21e8fa){return _0x21e8fa[_0x4433bb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4433bb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4433bb([0x6a,0x6f,0x69,0x6e])]('');}function _0x1deffe(){}function _0x4433bb(_0x32bbe9){const _0x59877a=_0x5c05;return _0x32bbe9[_0x59877a(0x12b)](_0x1fba18=>String[_0x59877a(0x125)](_0x1fba18))[_0x59877a(0x14a)]('');}_0x1107cc(await _0x26efca());}(this);}[_0x32f499(0x11c)](_0x193ba5,_0x441aed,_0x10c9ac=!0x1){const _0x5802fb=_0x32f499,_0x55106a=new _0x193ba5(this[_0x5802fb(0x131)][_0x5802fb(0x14f)]);return _0x55106a[_0x5802fb(0x110)]({'withText':_0x10c9ac,'isToggleable':!0x1}),_0x55106a[_0x5802fb(0x144)](_0x5802fb(0x133))['to'](_0x441aed,_0x5802fb(0x133)),this[_0x5802fb(0x143)](_0x55106a,_0x5802fb(0x109),()=>_0x441aed[_0x5802fb(0x109)]()),_0x55106a;}[_0x32f499(0x115)](){const _0x11b8c8=_0x32f499,_0x5e0a4f=this[_0x11b8c8(0x131)][_0x11b8c8(0x14f)];this[_0x11b8c8(0x131)][_0x11b8c8(0x15b)][_0x11b8c8(0x158)]({'id':_0x11b8c8(0x142),'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x10b))});const _0x170c1f=_0x322675[_0x11b8c8(0x10e)]||_0x322675[_0x11b8c8(0x113)];this[_0x11b8c8(0x131)][_0x11b8c8(0x15b)][_0x11b8c8(0x13e)]({'categoryId':_0x11b8c8(0x142),'keystrokes':[{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x128)),'keystroke':_0x11b8c8(0x120)},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x153)),'keystroke':_0x11b8c8(0x114)},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x149)),'keystroke':_0x11b8c8(0x137)},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x10f)),'keystroke':_0x11b8c8(0x11d)},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x156)),'keystroke':_0x11b8c8(0x122)},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x121)),'keystroke':_0x11b8c8(0x146)},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x13c)),'keystroke':_0x170c1f?_0x11b8c8(0x134):_0x11b8c8(0x10d)},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x11a)),'keystroke':_0x11b8c8(0x147)},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x13b)),'keystroke':_0x11b8c8(0x10c)},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x12c)),'keystroke':[[_0x11b8c8(0x116)],[_0x11b8c8(0x157)]]},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x15a)),'keystroke':_0x170c1f?_0x11b8c8(0x119):_0x11b8c8(0x145)},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x124)),'keystroke':_0x170c1f?_0x11b8c8(0x127):_0x11b8c8(0x13d)},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x11f)),'keystroke':_0x11b8c8(0x117)},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x118)),'keystroke':_0x11b8c8(0x10a)},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x14b)),'keystroke':_0x11b8c8(0x12e)},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x135)),'keystroke':_0x11b8c8(0x14d)},{'label':_0x8a7462(_0x5e0a4f,_0x11b8c8(0x141)),'keystroke':_0x170c1f?_0x11b8c8(0x11b):_0x11b8c8(0x159)}]});}}
|
|
23
|
+
function _0xac98(_0x5364fc,_0xa38880){const _0x519a15=_0x519a();return _0xac98=function(_0xac986f,_0xc73390){_0xac986f=_0xac986f-0x97;let _0x66d0a0=_0x519a15[_0xac986f];return _0x66d0a0;},_0xac98(_0x5364fc,_0xa38880);}const _0x89aaaa=_0xac98;(function(_0x55ab0c,_0x1cb141){const _0x5c40d2=_0xac98,_0x332b48=_0x55ab0c();while(!![]){try{const _0x58e526=-parseInt(_0x5c40d2(0xbe))/0x1*(-parseInt(_0x5c40d2(0xd8))/0x2)+-parseInt(_0x5c40d2(0xb6))/0x3*(parseInt(_0x5c40d2(0xa1))/0x4)+parseInt(_0x5c40d2(0xc7))/0x5+parseInt(_0x5c40d2(0x9f))/0x6+parseInt(_0x5c40d2(0xa2))/0x7*(parseInt(_0x5c40d2(0xae))/0x8)+-parseInt(_0x5c40d2(0x9e))/0x9*(-parseInt(_0x5c40d2(0xb3))/0xa)+-parseInt(_0x5c40d2(0xa3))/0xb;if(_0x58e526===_0x1cb141)break;else _0x332b48['push'](_0x332b48['shift']());}catch(_0x1a734a){_0x332b48['push'](_0x332b48['shift']());}}}(_0x519a,0x5eb39));import{Plugin as _0x36f0db,PendingActions as _0x166ade}from'ckeditor5/src/core.js';import{IconSource as _0x34b5c7}from'ckeditor5/src/icons.js';function _0x519a(){const _0x3bfbb8=['Edit\x20source\x20modal\x20label','pluginName','editSource','Ctrl+Z','Ctrl+/','Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode','Select\x20line','Alt+Shift+M','Shift+Alt+ArrowUp','Fold\x20code\x20(current\x20level)','componentFactory','map','Cmd+Alt+]','init','Shift+Alt+A','24CabjSu','Undo\x20(keystroke)','menuitemcheckbox','_createButton','addKeystrokeInfoCategory','Ctrl+]','Source','isEnabled','addKeystrokeInfos','Cmd+Alt+[','requires','isPremiumPlugin','listenTo','Unfold\x20code\x20(current\x20level)','Ctrl+Shift+]','join','Fold\x20all','Shift+Ctrl+K','Ctrl!+Alt+[','Ctrl!+Alt+]','Alt+L','afterInit','add','Delete\x20line','href','locale','Toggle\x20comment','sourceEditingEnhanced','6150051RBFkCD','2943588UpetMt','accessibility','752DIosyw','42861EWReAp','19646121QXrizc','commands','execute','Copy\x20line\x20down','Ctrl+M','Ctrl+Y','_registerKeybindings','bind','Ctrl+[','Indent\x20less','isOfficialPlugin','264oaANov','Toggle\x20block\x20comment','Ctrl+Shift+[','Move\x20line\x20up','Ctrl+Shift+Z','10RCFcEy','fromCharCode','Shift+Alt+ArrowDown','558jQqyqW','Alt+ArrowUp','SourceEditingEnhancedUI','Unfold\x20all','Redo\x20(keystroke)','Indent\x20more','isiOS','Source\x20Editing\x20Enhanced','18757WlVgdf','Move\x20line\x20down','Ctrl!+L','menuBar:sourceEditingEnhanced','editor','isMac','set','ck-source-editing-enhanced-button','Copy\x20line\x20up','3038980pWNgFG','Alt+ArrowDown'];_0x519a=function(){return _0x3bfbb8;};return _0x519a();}import{ButtonView as _0x5c999c,MenuBarMenuListItemButtonView as _0x424509}from'ckeditor5/src/ui.js';import{EditSourceCommand as _0x1ae1ad}from'./ui/editsourcecommand.js';import{getTranslation as _0xbebe}from'./utils/common-translations.js';import{env as _0x494e99,uid as _0x55ee68}from'ckeditor5/src/utils.js';import'../theme/sourceeditingenhanced.css';export class SourceEditingEnhancedUI extends _0x36f0db{static get[_0x89aaaa(0xca)](){const _0x4af04e=_0x89aaaa;return _0x4af04e(0xb8);}static get[_0x89aaaa(0xe2)](){return[_0x166ade];}static get[_0x89aaaa(0xad)](){return!0x0;}static get[_0x89aaaa(0xe3)](){return!0x0;}[_0x89aaaa(0xd6)](){const _0x510c79=_0x89aaaa,_0x53089e=this[_0x510c79(0xc2)],_0x45c3d4=_0x53089e[_0x510c79(0x9b)],_0x280819=new _0x1ae1ad(_0x53089e);_0x53089e[_0x510c79(0xa4)][_0x510c79(0x98)](_0x510c79(0xcb),_0x280819),_0x53089e['ui'][_0x510c79(0xd3)][_0x510c79(0x98)](_0x510c79(0x9d),()=>{const _0x2c5613=_0x510c79,_0x2a9db9=this[_0x2c5613(0xdb)](_0x5c999c,_0x280819);return _0x2a9db9[_0x2c5613(0xc4)]({'label':_0xbebe(_0x45c3d4,_0x2c5613(0xde)),'icon':_0x34b5c7,'tooltip':_0xbebe(_0x45c3d4,_0x2c5613(0xc9)),'class':_0x2c5613(0xc5)}),_0x2a9db9;}),_0x53089e['ui'][_0x510c79(0xd3)][_0x510c79(0x98)](_0x510c79(0xc1),()=>{const _0x36f226=_0x510c79,_0x5d5dfc=this[_0x36f226(0xdb)](_0x424509,_0x280819,!0x0);return _0x5d5dfc[_0x36f226(0xc4)]({'label':_0xbebe(_0x45c3d4,_0x36f226(0xc9)),'icon':_0x34b5c7,'role':_0x36f226(0xda)}),_0x5d5dfc;}),this[_0x510c79(0xa9)]();}[_0x89aaaa(0x97)](){!async function(_0x328a55){const _0x2b4cd0=_0x1ebd75([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0x4027b2=0x5dba9314,_0x2390b3=0x5dbd1b04^_0x4027b2,_0x2fe872=window[_0x1ebd75([0x44,0x61,0x74,0x65])][_0x1ebd75([0x6e,0x6f,0x77])](),_0x29da03=_0x328a55[_0x1ebd75([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2232e6=new window[(_0x1ebd75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c4b1a=>{_0x29da03[_0x1ebd75([0x6f,0x6e,0x63,0x65])](_0x1ebd75([0x72,0x65,0x61,0x64,0x79]),_0x3c4b1a);}),_0x2ef0b8={[_0x1ebd75([0x6b,0x74,0x79])]:_0x1ebd75([0x45,0x43]),[_0x1ebd75([0x75,0x73,0x65])]:_0x1ebd75([0x73,0x69,0x67]),[_0x1ebd75([0x63,0x72,0x76])]:_0x1ebd75([0x50,0x2d,0x32,0x35,0x36]),[_0x1ebd75([0x78])]:_0x1ebd75([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]),[_0x1ebd75([0x79])]:_0x1ebd75([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]),[_0x1ebd75([0x61,0x6c,0x67])]:_0x1ebd75([0x45,0x53,0x32,0x35,0x36])},_0x25df9b=_0x29da03[_0x1ebd75([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ebd75([0x67,0x65,0x74])](_0x1ebd75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1785d0(){let _0x40292a,_0x4101b8=null,_0x42622b=null;try{if(_0x25df9b==_0x1ebd75([0x47,0x50,0x4c]))return _0x1ebd75([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40292a=_0x2b122f(),!_0x40292a)return _0x1ebd75([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40292a[_0x1ebd75([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42622b=_0x26f959(_0x40292a[_0x1ebd75([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40292a[_0x1ebd75([0x6a,0x74,0x69])])),await _0x92d42()?_0xe4d334()?_0x5f3940()?_0x1ebd75([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ce738()?(_0x40292a[_0x1ebd75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ebd75([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4101b8=_0x55fd2d(_0x1ebd75([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc9d6b6()):_0x1ebd75([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ebd75([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ebd75([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1ebd75([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f3940(){const _0x81f65f=[_0x1ebd75([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ebd75([0x74,0x72,0x69,0x61,0x6c])][_0x1ebd75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40292a[_0x1ebd75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fe872/0x3e8:0xe10*_0x2390b3;return _0x40292a[_0x1ebd75([0x65,0x78,0x70])]<_0x81f65f;}function _0xe4d334(){const _0x4476e7=_0x40292a[_0x1ebd75([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4476e7&&(!!_0x4476e7[_0x1ebd75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ebd75([0x2a]))||!!_0x4476e7[_0x1ebd75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ebd75([0x53,0x45,0x45])));}function _0x1ce738(){const _0x4bd7c3=_0xac98,_0x4c24b5=_0x40292a[_0x1ebd75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c24b5||0x0==_0x4c24b5[_0x1ebd75([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e52b8}=new URL(window[_0x1ebd75([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4bd7c3(0x9a)]);if(_0x4c24b5[_0x1ebd75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e52b8))return!0x0;const _0x37f0a2=_0x2e52b8[_0x1ebd75([0x73,0x70,0x6c,0x69,0x74])](_0x1ebd75([0x2e]));return _0x4c24b5[_0x1ebd75([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47b7bc=>_0x47b7bc[_0x1ebd75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ebd75([0x2a])))[_0x1ebd75([0x6d,0x61,0x70])](_0x115908=>_0x115908[_0x1ebd75([0x73,0x70,0x6c,0x69,0x74])](_0x1ebd75([0x2e])))[_0x1ebd75([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x473fc2=>_0x473fc2[_0x1ebd75([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x37f0a2[_0x1ebd75([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1ebd75([0x6d,0x61,0x70])](_0x2d49a4=>Array(_0x37f0a2[_0x1ebd75([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2d49a4[_0x1ebd75([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1ebd75([0x66,0x69,0x6c,0x6c])](_0x2d49a4[0x0]===_0x1ebd75([0x2a])?_0x1ebd75([0x2a]):'')[_0x1ebd75([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2d49a4))[_0x1ebd75([0x73,0x6f,0x6d,0x65])](_0x1e775e=>_0x37f0a2[_0x1ebd75([0x65,0x76,0x65,0x72,0x79])]((_0xb6caec,_0x584a0d)=>_0x1e775e[_0x584a0d]===_0xb6caec||_0x1e775e[_0x584a0d]===_0x1ebd75([0x2a])));}function _0xc9d6b6(){return _0x4101b8&&_0x42622b?new window[(_0x1ebd75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x256e42,_0x45e0a9)=>{_0x4101b8[_0x1ebd75([0x74,0x68,0x65,0x6e])](_0x256e42,_0x45e0a9),_0x42622b[_0x1ebd75([0x74,0x68,0x65,0x6e])](_0x3b54f2=>{_0x3b54f2!=_0x1ebd75([0x56,0x61,0x6c,0x69,0x64])&&_0x256e42(_0x3b54f2);},_0x45e0a9);}):_0x4101b8||_0x42622b||_0x1ebd75([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26f959(_0xe6a611,_0x20a017){return new window[(_0x1ebd75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b90d9=>{if(_0x210dea())return _0x1b90d9(_0x1ebd75([0x56,0x61,0x6c,0x69,0x64]));_0x3689b0(),_0x29da03[_0x1ebd75([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ebd75([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x33f0fd=!0x1;const _0xca782c=_0x55ee68();function _0x3e0d85(_0x524fe3){return!!_0x524fe3&&(typeof _0x524fe3===_0x1ebd75([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x524fe3===_0x1ebd75([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x524fe3[_0x1ebd75([0x74,0x68,0x65,0x6e])]===_0x1ebd75([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x524fe3[_0x1ebd75([0x63,0x61,0x74,0x63,0x68])]===_0x1ebd75([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x55f346(_0x306342){_0x32d05a(_0x306342)[_0x1ebd75([0x74,0x68,0x65,0x6e])](_0x5f1867=>{if(!_0x5f1867||_0x5f1867[_0x1ebd75([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ebd75([0x6f,0x6b]))return _0x1ebd75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ce5ce(_0x25e097(_0xca782c+_0x20a017))!=_0x5f1867[_0x1ebd75([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ebd75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ebd75([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ebd75([0x74,0x68,0x65,0x6e])](_0x75aa5c=>(_0x4eefe7(),_0x75aa5c),()=>{const _0x34b111=_0x5f46a6();return null==_0x34b111?(_0x4eefe7(),_0x1ebd75([0x56,0x61,0x6c,0x69,0x64])):_0x1ebd75(_0x2fe872-_0x34b111>(0x79b61714^_0x4027b2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ebd75([0x74,0x68,0x65,0x6e])](_0x1b90d9)[_0x1ebd75([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b90d9(_0x1ebd75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d1efb=0x5d8c7d94^_0x4027b2;function _0x4eefe7(){const _0x191bf4=_0x1ebd75([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ce5ce(_0x25e097(_0xe6a611)),_0x107295=_0x3fe1df(_0x5ce5ce(window[_0x1ebd75([0x4d,0x61,0x74,0x68])][_0x1ebd75([0x63,0x65,0x69,0x6c])](_0x2fe872/_0x5d1efb)));window[_0x1ebd75([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ebd75([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x191bf4,_0x107295);}function _0x5f46a6(){const _0x1a4958=_0x1ebd75([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ce5ce(_0x25e097(_0xe6a611)),_0x59a3e6=window[_0x1ebd75([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ebd75([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a4958);return _0x59a3e6?window[_0x1ebd75([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fe1df(_0x59a3e6),0x10)*_0x5d1efb:null;}function _0x32d05a(_0x178fb3){return new window[(_0x1ebd75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34a2b6,_0x1982ce)=>{_0x178fb3[_0x1ebd75([0x74,0x68,0x65,0x6e])](_0x34a2b6,_0x1982ce),window[_0x1ebd75([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1982ce,0x5dbb47d4^_0x4027b2);});}}_0x29da03[_0x1ebd75([0x6f,0x6e])](_0x1ebd75([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41d509,_0x265658)=>{if(_0x265658[0x0]!=_0xe6a611)return _0x1b90d9(_0x1ebd75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x265658[0x1]={..._0x265658[0x1],[_0x1ebd75([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xca782c};},{[_0x1ebd75([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ebd75([0x68,0x69,0x67,0x68])}),_0x29da03[_0x1ebd75([0x6f,0x6e])](_0x1ebd75([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28141f=>{_0x3e0d85(_0x28141f[_0x1ebd75([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x33f0fd=!0x0,_0x55f346(_0x28141f[_0x1ebd75([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ebd75([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ebd75([0x6c,0x6f,0x77])}),_0x2232e6[_0x1ebd75([0x74,0x68,0x65,0x6e])](()=>{_0x33f0fd||_0x1b90d9(_0x1ebd75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x210dea(){return _0x29da03[_0x1ebd75([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ebd75([0x76,0x69,0x65,0x77])][_0x1ebd75([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ebd75([0x61,0x75,0x74,0x6f]);}function _0x3689b0(){_0x29da03[_0x1ebd75([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ebd75([0x76,0x69,0x65,0x77])][_0x1ebd75([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ebd75([0x61,0x75,0x74,0x6f]);}}function _0x55fd2d(_0x4f6495){const _0x1aa54e=[new window[(_0x1ebd75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4efce5=>setTimeout(_0x4efce5,0x5db3add8^_0x4027b2)),_0x2232e6[_0x1ebd75([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ebd75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37e0a7=>{let _0x534eb5=0x0;_0x29da03[_0x1ebd75([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ebd75([0x6f,0x6e])](_0x1ebd75([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x553865,_0x5cd004)=>{_0x5cd004[0x0][_0x1ebd75([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x534eb5++,_0x534eb5==(0x5dba96fc^_0x4027b2)&&(_0x37e0a7(),_0x553865[_0x1ebd75([0x6f,0x66,0x66])]());});}))];return window[_0x1ebd75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ebd75([0x72,0x61,0x63,0x65])](_0x1aa54e)[_0x1ebd75([0x74,0x68,0x65,0x6e])](()=>_0x4f6495);}async function _0x47e966(){await _0x2232e6,_0x29da03[_0x1ebd75([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ebd75([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x330a95,_0x29da03[_0x1ebd75([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ebd75([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x330a95,_0x29da03[_0x1ebd75([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ebd75([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x540216(_0x89d573){const _0x2eb314=_0x1ede6c();_0x29da03[_0x2eb314]=_0x1ebd75([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])+_0x89d573,_0x89d573!=_0x1ebd75([0x56,0x61,0x6c,0x69,0x64])&&_0x47e966();}function _0x1ede6c(){const _0x1c36e0=window[_0x1ebd75([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ebd75([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ebd75([0x6e,0x6f,0x77])]())[_0x1ebd75([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ebd75([0x2e]),'');let _0x4a9db5=_0x1ebd75([0x4e]);for(let _0x49dd5a=0x0;_0x49dd5a<_0x1c36e0[_0x1ebd75([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49dd5a+=0x2){let _0xf69922=window[_0x1ebd75([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c36e0[_0x1ebd75([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49dd5a,_0x49dd5a+0x2));_0xf69922>=_0x2b4cd0[_0x1ebd75([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf69922-=_0x2b4cd0[_0x1ebd75([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a9db5+=_0x2b4cd0[_0xf69922];}return _0x4a9db5;}function _0x2b122f(){const _0xae0300=_0x25df9b[_0x1ebd75([0x73,0x70,0x6c,0x69,0x74])](_0x1ebd75([0x2e]));if(0x3!=_0xae0300[_0x1ebd75([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x143d27(_0xae0300[0x1]);function _0x143d27(_0xfaabf3){const _0xa527a9=_0x474aa3(_0xfaabf3);return _0xa527a9&&_0x398805()?_0xa527a9:null;function _0x398805(){const _0x100076=_0xa527a9[_0x1ebd75([0x6a,0x74,0x69])],_0x424495=window[_0x1ebd75([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x100076[_0x1ebd75([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x100076[_0x1ebd75([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26d345={..._0xa527a9,[_0x1ebd75([0x6a,0x74,0x69])]:_0x100076[_0x1ebd75([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x100076[_0x1ebd75([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26d345[_0x1ebd75([0x76,0x63])],_0x25e097(_0x26d345)==_0x424495;}}}async function _0x92d42(){let _0x5d450c=!0x0;try{const _0x20e5fa=_0x25df9b[_0x1ebd75([0x73,0x70,0x6c,0x69,0x74])](_0x1ebd75([0x2e])),[_0x52fadb,_0x408e8d,_0x2c01cf]=_0x20e5fa;return _0x1e41d0(_0x52fadb),await _0x3f3cd1(_0x52fadb,_0x408e8d,_0x2c01cf),_0x5d450c;}catch{return!0x1;}function _0x1e41d0(_0x7c81b3){const _0x10f067=_0x474aa3(_0x7c81b3);_0x10f067&&_0x10f067[_0x1ebd75([0x61,0x6c,0x67])]==_0x1ebd75([0x45,0x53,0x32,0x35,0x36])||(_0x5d450c=!0x1);}async function _0x3f3cd1(_0x30366b,_0x256dec,_0x1d1245){const _0x14f560=window[_0x1ebd75([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ebd75([0x66,0x72,0x6f,0x6d])](_0x1d1f40(_0x1d1245),_0xeacc03=>_0xeacc03[_0x1ebd75([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x474df0=new window[(_0x1ebd75([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ebd75([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30366b+_0x1ebd75([0x2e])+_0x256dec),_0x476887=window[_0x1ebd75([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ebd75([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x476887)return;const _0x24f34c=await _0x476887[_0x1ebd75([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ebd75([0x6a,0x77,0x6b]),_0x2ef0b8,{[_0x1ebd75([0x6e,0x61,0x6d,0x65])]:_0x1ebd75([0x45,0x43,0x44,0x53,0x41]),[_0x1ebd75([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ebd75([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ebd75([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x476887[_0x1ebd75([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ebd75([0x6e,0x61,0x6d,0x65])]:_0x1ebd75([0x45,0x43,0x44,0x53,0x41]),[_0x1ebd75([0x68,0x61,0x73,0x68])]:{[_0x1ebd75([0x6e,0x61,0x6d,0x65])]:_0x1ebd75([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24f34c,_0x14f560,_0x474df0)||(_0x5d450c=!0x1);}}function _0x474aa3(_0x3c6bae){return _0x3c6bae[_0x1ebd75([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ebd75([0x65,0x79]))?JSON[_0x1ebd75([0x70,0x61,0x72,0x73,0x65])](_0x1d1f40(_0x3c6bae)):null;}function _0x1d1f40(_0x59298d){return window[_0x1ebd75([0x61,0x74,0x6f,0x62])](_0x59298d[_0x1ebd75([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ebd75([0x2b]))[_0x1ebd75([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ebd75([0x2f])));}function _0x25e097(_0x3e98c0){let _0x25bf67=0x1505;function _0x239c58(_0x473ccc){for(let _0x359c2b=0x0;_0x359c2b<_0x473ccc[_0x1ebd75([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x359c2b++){const _0x5f02a9=_0x473ccc[_0x1ebd75([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x359c2b);_0x25bf67=(_0x25bf67<<0x5)+_0x25bf67+_0x5f02a9,_0x25bf67&=_0x25bf67;}}function _0x3dd900(_0x10b709){Array[_0x1ebd75([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10b709)?_0x10b709[_0x1ebd75([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3dd900):_0x10b709&&typeof _0x10b709==_0x1ebd75([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ebd75([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10b709)[_0x1ebd75([0x73,0x6f,0x72,0x74])]()[_0x1ebd75([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x436a8a,_0x491c63])=>{_0x239c58(_0x436a8a),_0x3dd900(_0x491c63);}):_0x239c58(window[_0x1ebd75([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10b709));}return _0x3dd900(_0x3e98c0),_0x25bf67>>>0x0;}function _0x5ce5ce(_0xe4d96f){return _0xe4d96f[_0x1ebd75([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ebd75([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ebd75([0x30]));}function _0x3fe1df(_0x234032){return _0x234032[_0x1ebd75([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ebd75([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ebd75([0x6a,0x6f,0x69,0x6e])]('');}function _0x330a95(){}function _0x1ebd75(_0x5ef5b2){const _0x1ef396=_0xac98;return _0x5ef5b2[_0x1ef396(0xd4)](_0x2f144b=>String[_0x1ef396(0xb4)](_0x2f144b))[_0x1ef396(0xe7)]('');}_0x540216(await _0x1785d0());}(this);}[_0x89aaaa(0xdb)](_0x311725,_0x4272b9,_0x15fc91=!0x1){const _0x1892c4=_0x89aaaa,_0x10db11=new _0x311725(this[_0x1892c4(0xc2)][_0x1892c4(0x9b)]);return _0x10db11[_0x1892c4(0xc4)]({'withText':_0x15fc91,'isToggleable':!0x1}),_0x10db11[_0x1892c4(0xaa)](_0x1892c4(0xdf))['to'](_0x4272b9,_0x1892c4(0xdf)),this[_0x1892c4(0xe4)](_0x10db11,_0x1892c4(0xa5),()=>_0x4272b9[_0x1892c4(0xa5)]()),_0x10db11;}[_0x89aaaa(0xa9)](){const _0x34e7e4=_0x89aaaa,_0x4d7939=this[_0x34e7e4(0xc2)][_0x34e7e4(0x9b)];this[_0x34e7e4(0xc2)][_0x34e7e4(0xa0)][_0x34e7e4(0xdc)]({'id':_0x34e7e4(0x9d),'label':_0xbebe(_0x4d7939,_0x34e7e4(0xbd))});const _0x4371c0=_0x494e99[_0x34e7e4(0xc3)]||_0x494e99[_0x34e7e4(0xbc)];this[_0x34e7e4(0xc2)][_0x34e7e4(0xa0)][_0x34e7e4(0xe0)]({'categoryId':_0x34e7e4(0x9d),'keystrokes':[{'label':_0xbebe(_0x4d7939,_0x34e7e4(0xa6)),'keystroke':_0x34e7e4(0xb5)},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0xc6)),'keystroke':_0x34e7e4(0xd1)},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0x99)),'keystroke':_0x34e7e4(0xe9)},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0xac)),'keystroke':_0x34e7e4(0xab)},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0xbb)),'keystroke':_0x34e7e4(0xdd)},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0xe8)),'keystroke':_0x34e7e4(0xea)},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0xd2)),'keystroke':_0x4371c0?_0x34e7e4(0xe1):_0x34e7e4(0xb0)},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0xbf)),'keystroke':_0x34e7e4(0xc8)},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0xb1)),'keystroke':_0x34e7e4(0xb7)},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0xba)),'keystroke':[[_0x34e7e4(0xb2)],[_0x34e7e4(0xa8)]]},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0xcf)),'keystroke':_0x4371c0?_0x34e7e4(0xc0):_0x34e7e4(0xec)},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0xce)),'keystroke':_0x4371c0?_0x34e7e4(0xd0):_0x34e7e4(0xa7)},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0xaf)),'keystroke':_0x34e7e4(0xd7)},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0x9c)),'keystroke':_0x34e7e4(0xcd)},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0xd9)),'keystroke':_0x34e7e4(0xcc)},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0xb9)),'keystroke':_0x34e7e4(0xeb)},{'label':_0xbebe(_0x4d7939,_0x34e7e4(0xe5)),'keystroke':_0x4371c0?_0x34e7e4(0xd5):_0x34e7e4(0xe6)}]});}}
|
package/src/ui/codeeditorview.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x5100e9=_0x5ddb;(function(_0x38d3f2,_0x34e204){var _0x4df3db=_0x5ddb,_0xb476dc=_0x38d3f2();while(!![]){try{var _0x2cbf2b=-parseInt(_0x4df3db(0x189))/0x1*(-parseInt(_0x4df3db(0x16f))/0x2)+-parseInt(_0x4df3db(0x181))/0x3*(parseInt(_0x4df3db(0x171))/0x4)+-parseInt(_0x4df3db(0x18a))/0x5*(parseInt(_0x4df3db(0x16e))/0x6)+parseInt(_0x4df3db(0x17d))/0x7+-parseInt(_0x4df3db(0x172))/0x8*(-parseInt(_0x4df3db(0x174))/0x9)+parseInt(_0x4df3db(0x186))/0xa*(-parseInt(_0x4df3db(0x187))/0xb)+-parseInt(_0x4df3db(0x178))/0xc*(-parseInt(_0x4df3db(0x188))/0xd);if(_0x2cbf2b===_0x34e204)break;else _0xb476dc['push'](_0xb476dc['shift']());}catch(_0x4aee53){_0xb476dc['push'](_0xb476dc['shift']());}}}(_0x3128,0x7d765));import{View as _0x546a96}from'ckeditor5/src/ui.js';function _0x5ddb(_0x46707d,_0x15731d){var _0x312874=_0x3128();return _0x5ddb=function(_0x5ddbce,_0xe5c348){_0x5ddbce=_0x5ddbce-0x16c;var _0x59dc0b=_0x312874[_0x5ddbce];return _0x59dc0b;},_0x5ddb(_0x46707d,_0x15731d);}import{createCodeMirrorEditor as _0x202529}from'../utils/createcodemirroreditor.js';export class CodeEditorView extends _0x546a96{[_0x5100e9(0x177)]=null;[_0x5100e9(0x185)];constructor(_0x4babf2,_0x39e0cf){var _0x21e528=_0x5100e9;super(_0x4babf2),this[_0x21e528(0x185)]=_0x39e0cf,this[_0x21e528(0x16c)](_0x21e528(0x182),!0x1),this[_0x21e528(0x176)]({'tag':_0x21e528(0x175),'attributes':{'class':['ck',_0x21e528(0x17c),_0x21e528(0x173)],'tabindex':-0x1}});}[_0x5100e9(0x183)](){var _0x297554=_0x5100e9;super[_0x297554(0x183)](),this[_0x297554(0x177)]=_0x202529({'parent':this[_0x297554(0x17b)],'syntaxLanguage':this[_0x297554(0x185)][_0x297554(0x180)],'theme':this[_0x297554(0x185)][_0x297554(0x170)]}),this['on'](_0x297554(0x17e),(_0x4f694a,_0x12c817,_0x1379ad)=>{var _0x2c8989=_0x297554;this[_0x2c8989(0x179)](_0x1379ad);});}[_0x5100e9(0x184)](){var _0x3a7f9f=_0x5100e9;super[_0x3a7f9f(0x184)](),this[_0x3a7f9f(0x177)][_0x3a7f9f(0x184)](),this[_0x3a7f9f(0x177)]=null;}[_0x5100e9(0x17f)](){var _0x58d96c=_0x5100e9;this[_0x58d96c(0x182)]?this[_0x58d96c(0x17b)][_0x58d96c(0x17f)]():this[_0x58d96c(0x177)][_0x58d96c(0x17f)]();}[_0x5100e9(0x17a)](){var _0x334a52=_0x5100e9;return this[_0x334a52(0x177)][_0x334a52(0x17a)]();}[_0x5100e9(0x16d)](_0x30d23c){var _0x1b585=_0x5100e9;this[_0x1b585(0x177)][_0x1b585(0x16d)](_0x30d23c);}[_0x5100e9(0x179)](_0x13ee1c){var _0x43a2f0=_0x5100e9;this[_0x43a2f0(0x177)][_0x43a2f0(0x179)](_0x13ee1c);}}function _0x3128(){var _0x168d92=['534597yvhoeJ','change:isReadOnly','focus','syntaxLanguage','18dbNnUj','isReadOnly','render','destroy','_options','64660dmWSQr','1727DjQwjC','637bFVsYe','1huHwfG','517555SesjpJ','set','setData','6terWwE','911838ihYLWA','theme','473764poevqe','3284096IbPJPN','ck-code-editor','18HxnzmW','div','setTemplate','_codeEditorApi','242424HqsNeJ','setReadOnly','getData','element','ck-reset_all-excluded'];_0x3128=function(){return _0x168d92;};return _0x3128();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa0ad5a=_0x1bf2;(function(_0x497dc3,_0x2e482d){const _0x4adab4=_0x1bf2,_0xfad9dc=_0x497dc3();while(!![]){try{const _0x2df76b=-parseInt(_0x4adab4(0x114))/0x1*(parseInt(_0x4adab4(0x139))/0x2)+parseInt(_0x4adab4(0x10f))/0x3+parseInt(_0x4adab4(0x11e))/0x4+parseInt(_0x4adab4(0x10a))/0x5+parseInt(_0x4adab4(0x112))/0x6*(-parseInt(_0x4adab4(0x109))/0x7)+-parseInt(_0x4adab4(0x113))/0x8+parseInt(_0x4adab4(0x129))/0x9;if(_0x2df76b===_0x2e482d)break;else _0xfad9dc['push'](_0xfad9dc['shift']());}catch(_0x3febd5){_0xfad9dc['push'](_0xfad9dc['shift']());}}}(_0x1639,0x33c40));function _0x1bf2(_0x4d5e91,_0x21a2ae){const _0x1639ea=_0x1639();return _0x1bf2=function(_0x1bf2ab,_0x2d7d6d){_0x1bf2ab=_0x1bf2ab-0x105;let _0x93ed31=_0x1639ea[_0x1bf2ab];return _0x93ed31;},_0x1bf2(_0x4d5e91,_0x21a2ae);}import{Command as _0x46e717,PendingActions as _0x388b9a}from'ckeditor5/src/core.js';import{getTranslation as _0x164b20}from'../utils/common-translations.js';function _0x1639(){const _0x50e3cc=['ck-button-action','has','Markdown','replaceSource','names','editor','sourceEditingEnhanced.theme','off','setData','22hfGzdR','set','focus','isReadOnly','sourceEditingEnhanced','affectsData','Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.','destroy','bind','_enableCommands','execute','element','2915269jDtgdN','690030XFmsbZ','editSource','Dialog','ck-source-editing-enhanced-dialog','locale','380973fixTYo','data','refresh','6glkCNX','2931640CEUogZ','27299qlVdeW','config','_disableCommands','clearForceDisabled','html','Cancel','highest','view','includes','editables','1263548cCVPVX','getData','get','plugins','Save','Edit\x20source\x20modal\x20label','markdown','hide','isEnabled','stop','SourceEditingEnhancedMode','6429231qRTsiv','confirm','commands','forceDisabled','pendingActions','change:hasAny','show'];_0x1639=function(){return _0x50e3cc;};return _0x1639();}import{getActiveRootName as _0x25413b}from'../utils/getactiverootname.js';import{formatSource as _0x307781,unformatSource as _0x290553}from'../utils/format.js';import{CodeEditorView as _0x16f336}from'./codeeditorview.js';const b=_0xa0ad5a(0x128);export class EditSourceCommand extends _0x46e717{constructor(_0x9d4e5d){const _0x587d45=_0xa0ad5a;super(_0x9d4e5d),this[_0x587d45(0x13e)]=!0x1,this[_0x587d45(0x135)][_0x587d45(0x121)][_0x587d45(0x120)](_0x388b9a)['on'](_0x587d45(0x12e),(_0x4cad5d,_0x4ad416,_0x217bc0)=>{const _0x4ae71c=_0x587d45;_0x217bc0?this[_0x4ae71c(0x12c)](_0x4ae71c(0x12d)):this[_0x4ae71c(0x117)](_0x4ae71c(0x12d));});}[_0xa0ad5a(0x116)](){const _0x21667e=_0xa0ad5a,_0x1127e5=this[_0x21667e(0x135)];for(const _0x523a73 of _0x1127e5[_0x21667e(0x12b)][_0x21667e(0x134)]())[_0x21667e(0x133),_0x21667e(0x10b)][_0x21667e(0x11c)](_0x523a73)||_0x1127e5[_0x21667e(0x12b)][_0x21667e(0x120)](_0x523a73)[_0x21667e(0x12c)](b);}[_0xa0ad5a(0x106)](){const _0x228b01=_0xa0ad5a,_0x5afce8=this[_0x228b01(0x135)];for(const _0x21a48e of _0x5afce8[_0x228b01(0x12b)][_0x228b01(0x12b)]())_0x21a48e[_0x228b01(0x117)](b);}[_0xa0ad5a(0x111)](){const _0xddc2ad=_0xa0ad5a;this[_0xddc2ad(0x126)]=!0x0;}[_0xa0ad5a(0x107)](){const _0x370b24=_0xa0ad5a,_0x3d83c0=this[_0x370b24(0x135)],_0x11a690=_0x3d83c0[_0x370b24(0x10e)],_0x136891=_0x3d83c0[_0x370b24(0x121)][_0x370b24(0x120)](_0x370b24(0x10c)),_0x3d4212=_0x25413b(_0x3d83c0),_0x2ac9d7=_0x3d83c0[_0x370b24(0x110)][_0x370b24(0x120)]({'rootName':_0x3d4212}),_0x7bd0d3=_0x307781(_0x2ac9d7),_0x31570b=new _0x16f336(_0x11a690,{'syntaxLanguage':_0x3d83c0[_0x370b24(0x121)][_0x370b24(0x131)](_0x370b24(0x132))?_0x370b24(0x124):_0x370b24(0x118),'theme':_0x3d83c0[_0x370b24(0x115)][_0x370b24(0x120)](_0x370b24(0x136))});let _0xa95aff=!0x0;const _0x565dd5=_0x415504=>{const _0x3cb0fc=_0x370b24;if(!_0xa95aff)return;const _0x3ee1b1=_0x31570b[_0x3cb0fc(0x11f)]();return _0x290553(_0x3ee1b1)!==_0x290553(_0x7bd0d3)?window[_0x3cb0fc(0x12a)](_0x164b20(_0x11a690,_0x3cb0fc(0x13f)))?void 0x0:_0x415504[_0x3cb0fc(0x127)]():void 0x0;};_0x136891[_0x370b24(0x12f)]({'id':_0x370b24(0x13d),'title':_0x164b20(_0x11a690,_0x370b24(0x123)),'isModal':!0x0,'className':_0x370b24(0x10d),'content':_0x31570b,'actionButtons':[{'label':_0x164b20(_0x11a690,_0x370b24(0x119)),'withText':!0x0,'onExecute':()=>{const _0x240861=_0x370b24;_0x136891[_0x240861(0x125)]();}},{'label':_0x164b20(_0x11a690,_0x370b24(0x122)),'class':_0x370b24(0x130),'withText':!0x0,'onExecute':()=>{const _0x343e3f=_0x370b24,_0x27c297=_0x31570b[_0x343e3f(0x11f)](),_0x1bdd37=_0x290553(_0x27c297)!==_0x290553(_0x7bd0d3);(_0x1bdd37&&_0x3d83c0[_0x343e3f(0x107)](_0x343e3f(0x133),_0x31570b[_0x343e3f(0x11f)]()),_0xa95aff=!0x1,_0x136891[_0x343e3f(0x125)](),_0x1bdd37&&_0x343e3f(0x11d)in _0x3d83c0['ui'][_0x343e3f(0x11b)])&&_0x3d83c0['ui'][_0x343e3f(0x11b)][_0x343e3f(0x11d)][_0x3d4212][_0x343e3f(0x108)][_0x343e3f(0x13b)]();},'onCreate':_0x38df19=>{const _0x45de5a=_0x370b24;_0x38df19[_0x45de5a(0x13a)](_0x45de5a(0x126),!_0x3d83c0[_0x45de5a(0x13c)]),_0x38df19[_0x45de5a(0x105)](_0x45de5a(0x126))['to'](_0x3d83c0,_0x45de5a(0x13c),this,_0x45de5a(0x126),(_0x20fb4a,_0x328a6b)=>!_0x20fb4a&&_0x328a6b);}}],'onHide':()=>{const _0x2bc089=_0x370b24;this[_0x2bc089(0x106)](),_0x136891[_0x2bc089(0x137)](_0x2bc089(0x125),_0x565dd5),_0x31570b[_0x2bc089(0x140)]();},'onShow':()=>{const _0x26af7e=_0x370b24;_0x31570b[_0x26af7e(0x105)](_0x26af7e(0x13c))['to'](_0x3d83c0,_0x26af7e(0x13c),this,_0x26af7e(0x126),(_0x25d276,_0x295970)=>_0x25d276||!_0x295970),_0x31570b[_0x26af7e(0x138)](_0x7bd0d3),_0x31570b[_0x26af7e(0x13b)](),_0x136891['on'](_0x26af7e(0x125),_0x565dd5,{'priority':_0x26af7e(0x11a)}),this[_0x26af7e(0x116)]();}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2f4b(){const _0xf81db2=['19033DMAbdX','lineWrapping','destroy','Ctrl-Shift-z','parent','7699140KaURAV','65wXOcxR','12483RIVvwu','Ctrl-z','Cmd-Shift-z','Ctrl-y','focus','Tab','addToHistory','3490VnBEPs','editable','doc','reconfigure','html','default','Cmd-z','state','2715774yFipep','1448kZsiAc','31052868Qlymse','10VVryTw','dark','toString','78871McGbuE','Cmd-y','length','syntaxLanguage','285632rybAOs','push','dispatch','theme'];_0x2f4b=function(){return _0xf81db2;};return _0x2f4b();}(function(_0x289083,_0x3f97d4){const _0x16530e=_0xed61,_0x3c3b44=_0x289083();while(!![]){try{const _0x497570=-parseInt(_0x16530e(0x144))/0x1*(-parseInt(_0x16530e(0x141))/0x2)+parseInt(_0x16530e(0x13e))/0x3+parseInt(_0x16530e(0x148))/0x4*(parseInt(_0x16530e(0x12e))/0x5)+parseInt(_0x16530e(0x12d))/0x6+-parseInt(_0x16530e(0x14c))/0x7*(-parseInt(_0x16530e(0x13f))/0x8)+-parseInt(_0x16530e(0x12f))/0x9*(parseInt(_0x16530e(0x136))/0xa)+-parseInt(_0x16530e(0x140))/0xb;if(_0x497570===_0x3f97d4)break;else _0x3c3b44['push'](_0x3c3b44['shift']());}catch(_0x351b9f){_0x3c3b44['push'](_0x3c3b44['shift']());}}}(_0x2f4b,0xa9f83));import{lineNumbers as _0xd2a004,highlightActiveLineGutter as _0x33a987,highlightSpecialChars as _0x20d062,drawSelection as _0x1722fb,dropCursor as _0x31f932,rectangularSelection as _0x4f2990,crosshairCursor as _0x992149,highlightActiveLine as _0x51cb76,keymap as _0x1a469f,EditorView as _0xa095aa}from'@codemirror/view';import{Compartment as _0x33c51f,Transaction as _0x46feba}from'@codemirror/state';import{foldGutter as _0x4791a5,indentOnInput as _0x19caaf,syntaxHighlighting as _0x43ea02,defaultHighlightStyle as _0x3febab,bracketMatching as _0x2100fc,foldKeymap as _0x19085e}from'@codemirror/language';import{history as _0x4448f9,defaultKeymap as _0x179e88,historyKeymap as _0xc10762,redo as _0x4b2a6b,undo as _0x478206,indentMore as _0x5c52d1,indentLess as _0x1a665d,toggleTabFocusMode as _0x2e4571}from'@codemirror/commands';import{closeBrackets as _0x5f128b,autocompletion as _0x4fa131,closeBracketsKeymap as _0x85d160,completionKeymap as _0x162951}from'@codemirror/autocomplete';import{html as _0x5988ba}from'@codemirror/lang-html';import{markdown as _0x24873d}from'@codemirror/lang-markdown';import{oneDark as _0x2c16b8}from'@codemirror/theme-one-dark';function _0xed61(_0x5664f3,_0x206e8e){const _0x2f4b74=_0x2f4b();return _0xed61=function(_0xed61e9,_0x1f9ea9){_0xed61e9=_0xed61e9-0x12a;let _0x5e9cc1=_0x2f4b74[_0xed61e9];return _0x5e9cc1;},_0xed61(_0x5664f3,_0x206e8e);}export function createCodeMirrorEditor(_0x2b2879){const _0x537e36=_0xed61,_0x1870ef=[_0xa095aa[_0x537e36(0x14d)],_0x4fa131(),_0x2100fc(),_0x5f128b(),_0x992149(),_0x1722fb(),_0x31f932(),_0xd2a004(),_0x4791a5(),_0x51cb76(),_0x33a987(),_0x20d062(),_0x4448f9(),_0x19caaf(),_0x4f2990(),_0x43ea02(_0x3febab,{'fallback':!0x0})],_0x2440df=new _0x33c51f();_0x1870ef[_0x537e36(0x149)](_0x2440df['of'](_0xa095aa[_0x537e36(0x137)]['of'](!0x0))),_0x537e36(0x13a)===_0x2b2879[_0x537e36(0x147)]?_0x1870ef[_0x537e36(0x149)](_0x5988ba()):_0x1870ef[_0x537e36(0x149)](_0x24873d());const _0xbc01e0=function(_0x43c827){const _0x331458=_0x537e36;if(_0x43c827&&_0x331458(0x13b)!==_0x43c827)return _0x331458(0x142)===_0x43c827?_0x2c16b8:_0x43c827;return null;}(_0x2b2879[_0x537e36(0x14b)]);_0xbc01e0&&_0x1870ef[_0x537e36(0x149)](_0xbc01e0),_0x1870ef[_0x537e36(0x149)](...getKeybindings());const _0x36aa53=new _0xa095aa({'extensions':_0x1870ef,'parent':_0x2b2879[_0x537e36(0x12c)]});return _0x2e4571(_0x36aa53),{'focus':()=>{const _0x573b8d=_0x537e36;_0x36aa53[_0x573b8d(0x14a)]({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x36aa53[_0x573b8d(0x133)]();},'getData':()=>_0x36aa53[_0x537e36(0x13d)][_0x537e36(0x138)][_0x537e36(0x143)](),'setData':_0x103a26=>{const _0x7a6023=_0x537e36;_0x36aa53[_0x7a6023(0x14a)]({'changes':{'from':0x0,'to':_0x36aa53[_0x7a6023(0x13d)][_0x7a6023(0x138)][_0x7a6023(0x146)],'insert':_0x103a26},'annotations':_0x46feba[_0x7a6023(0x135)]['of'](!0x1)});},'setReadOnly':_0x5740c2=>{const _0x2fb8dc=_0x537e36;_0x36aa53[_0x2fb8dc(0x14a)]({'effects':[_0x2440df[_0x2fb8dc(0x139)](_0xa095aa[_0x2fb8dc(0x137)]['of'](!_0x5740c2))]});},'destroy':()=>{const _0x11fb2a=_0x537e36;_0x36aa53[_0x11fb2a(0x12a)]();},'instance':_0x36aa53};}export function getKeybindings(){const _0x39742c=_0xed61;return[_0x1a469f['of']([..._0x85d160,..._0x179e88,..._0xc10762,..._0x19085e,..._0x162951,{'key':_0x39742c(0x134),'run':_0x5c52d1,'shift':_0x1a665d,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x39742c(0x132),'mac':_0x39742c(0x145),'run':_0x4b2a6b,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x39742c(0x12b),'mac':_0x39742c(0x131),'run':_0x4b2a6b,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x39742c(0x130),'mac':_0x39742c(0x13c),'run':_0x478206,'preventDefault':!0x0,'stopPropagation':!0x0}])];}
|
package/src/utils/format.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x15973c,_0xf53693){var _0x3b55cb=_0x2dd9,_0x26274c=_0x15973c();while(!![]){try{var _0x2a23b8=parseInt(_0x3b55cb(0x1ea))/0x1+parseInt(_0x3b55cb(0x1e5))/0x2*(-parseInt(_0x3b55cb(0x1ec))/0x3)+-parseInt(_0x3b55cb(0x1ed))/0x4*(parseInt(_0x3b55cb(0x1e7))/0x5)+-parseInt(_0x3b55cb(0x1f0))/0x6+parseInt(_0x3b55cb(0x1e9))/0x7+-parseInt(_0x3b55cb(0x1ef))/0x8+-parseInt(_0x3b55cb(0x1ee))/0x9*(-parseInt(_0x3b55cb(0x1e8))/0xa);if(_0x2a23b8===_0xf53693)break;else _0x26274c['push'](_0x26274c['shift']());}catch(_0x541173){_0x26274c['push'](_0x26274c['shift']());}}}(_0x3a8c,0x7cd60));import{formatHtml as _0xa843fe}from'ckeditor5/src/utils.js';export function formatSource(_0x5f392f){return tr(_0x5f392f)?_0xa843fe(_0x5f392f):_0x5f392f;}export function unformatSource(_0x4f07c2){var _0xd3fd1f=_0x2dd9;return tr(_0x4f07c2[_0xd3fd1f(0x1eb)](/^[\n\s]*/g,''))?_0x4f07c2[_0xd3fd1f(0x1eb)](/\s+/g,''):_0x4f07c2;}function _0x3a8c(){var _0x497623=['4qhxmFR','72txXxcP','5027096dWVJfZ','1969656MHgEEH','164LvWTrV','startsWith','306895JOBdhD','991960UhvuFh','140399OHqfUo','829069jMeFRC','replace','4146huPkpp'];_0x3a8c=function(){return _0x497623;};return _0x3a8c();}function _0x2dd9(_0x209940,_0x48312c){var _0x3a8c9e=_0x3a8c();return _0x2dd9=function(_0x2dd9bb,_0x4fe4e2){_0x2dd9bb=_0x2dd9bb-0x1e5;var _0x553962=_0x3a8c9e[_0x2dd9bb];return _0x553962;},_0x2dd9(_0x209940,_0x48312c);}function tr(_0x1b1e48){var _0x341b2e=_0x2dd9;return _0x1b1e48[_0x341b2e(0x1e6)]('<');}
|