@ckeditor/ckeditor5-source-editing-enhanced 48.8.1-alpha.1 → 48.8.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x2848c0,PendingActions as _0x267c18,Plugin as _0x2faf23}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x313882,formatHtml as _0x773197,env as _0x41e7ef,uid as _0x17f982}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x247aef}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3a82e6,ButtonView as _0x58ebc0,MenuBarMenuListItemButtonView as _0x19aec6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x5f3f57,crosshairCursor as _0x339298,drawSelection as _0xdc0fda,dropCursor as _0x1dfc11,lineNumbers as _0x6028b5,highlightActiveLine as _0x21e51d,highlightActiveLineGutter as _0xf523c2,highlightSpecialChars as _0x1a541b,rectangularSelection as _0x21277e,keymap as _0x5d81ba}from'@codemirror/view';import{Compartment as _0xff87b4,Transaction as _0x489ba6}from'@codemirror/state';import{bracketMatching as _0xa42894,foldGutter as _0x328ce4,indentOnInput as _0x25454e,syntaxHighlighting as _0x4e9cc3,defaultHighlightStyle as _0x3478a6,foldKeymap as _0x19ca94}from'@codemirror/language';import{toggleTabFocusMode as _0x57a974,history as _0x293ead,defaultKeymap as _0x429e90,historyKeymap as _0x29bf9a,indentLess as _0x3248de,indentMore as _0x23a682,redo as _0x159087,undo as _0x59fe38}from'@codemirror/commands';import{autocompletion as _0x6922c8,closeBrackets as _0x2fe5b1,closeBracketsKeymap as _0x59e2ce,completionKeymap as _0x257855}from'@codemirror/autocomplete';import{html as _0x4b59eb}from'@codemirror/lang-html';import{markdown as _0x4c9c76}from'@codemirror/lang-markdown';import{oneDark as _0x25218e}from'@codemirror/theme-one-dark';function q(_0x3b0944,_0x4075f9){const t=_0x3b0944['t'];switch(_0x4075f9){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 _0x4075f9;}}function H(_0xeb3498){const _0x1a6c4a=_0xeb3498['editing']['view']['document']['roots'],_0x40476d=_0x1a6c4a['length'];if(0x0===_0x40476d)throw new _0x313882('source-editing-enhanced-editor-no-root',_0xeb3498);if(0x1===_0x40476d)return _0x1a6c4a['first']['rootName'];return Array['from'](_0xeb3498['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x189f82){return J(_0x189f82['replace'](/^[\n\s]*/g,''))?_0x189f82['replace'](/\s+/g,''):_0x189f82;}function J(_0x3bd516){return _0x3bd516['startsWith']('<');}function G(_0x49e295){const _0x392e12=[_0x5f3f57['lineWrapping'],_0x6922c8(),_0xa42894(),_0x2fe5b1(),_0x339298(),_0xdc0fda(),_0x1dfc11(),_0x6028b5(),_0x328ce4(),_0x21e51d(),_0xf523c2(),_0x1a541b(),_0x293ead(),_0x25454e(),_0x21277e(),_0x4e9cc3(_0x3478a6,{'fallback':!0x0})],_0x244d31=new _0xff87b4();_0x392e12['push'](_0x244d31['of'](_0x5f3f57['editable']['of'](!0x0))),'html'===_0x49e295['syntaxLanguage']?_0x392e12['push'](_0x4b59eb()):_0x392e12['push'](_0x4c9c76());const _0x590e0f=function(_0x4ed64e){if(_0x4ed64e&&'default'!==_0x4ed64e)return'dark'===_0x4ed64e?_0x25218e:_0x4ed64e;return null;}(_0x49e295['theme']);_0x590e0f&&_0x392e12['push'](_0x590e0f),_0x392e12['push'](_0x5d81ba['of']([..._0x59e2ce,..._0x429e90,..._0x29bf9a,..._0x19ca94,..._0x257855,{'key':'Tab','run':_0x23a682,'shift':_0x3248de,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x159087,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x159087,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x59fe38,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x3e668e=new _0x5f3f57({'extensions':_0x392e12,'parent':_0x49e295['parent']});return _0x57a974(_0x3e668e),{'focus':()=>{_0x3e668e['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x3e668e['focus']();},'getData':()=>_0x3e668e['state']['doc']['toString'](),'setData':_0x909267=>{_0x3e668e['dispatch']({'changes':{'from':0x0,'to':_0x3e668e['state']['doc']['length'],'insert':_0x909267},'annotations':_0x489ba6['addToHistory']['of'](!0x1)});},'setReadOnly':_0x454fa0=>{_0x3e668e['dispatch']({'effects':[_0x244d31['reconfigure'](_0x5f3f57['editable']['of'](!_0x454fa0))]});},'destroy':()=>{_0x3e668e['destroy']();},'instance':_0x3e668e};}class CodeEditorView extends _0x3a82e6{['_codeEditorApi']=null;['_options'];constructor(_0xfd555e,_0xcdb323){super(_0xfd555e),this['_options']=_0xcdb323,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']=G({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x1178e5,_0x3597c6,_0x557e0e)=>{this['setReadOnly'](_0x557e0e);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x347694){this['_codeEditorApi']['setData'](_0x347694);}['setReadOnly'](_0x16d3d5){this['_codeEditorApi']['setReadOnly'](_0x16d3d5);}}const Q='SourceEditingEnhancedMode';class EditSourceCommand extends _0x2848c0{constructor(_0x2d7479){super(_0x2d7479),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x267c18)['on']('change:hasAny',(_0x47d26e,_0x348879,_0x399197)=>{_0x399197?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x412e7c=this['editor'];for(const _0x17c1f4 of _0x412e7c['commands']['names']())['replaceSource','editSource']['includes'](_0x17c1f4)||_0x412e7c['commands']['get'](_0x17c1f4)['forceDisabled'](Q);}['_enableCommands'](){const _0x293a80=this['editor'];for(const _0x5bd29d of _0x293a80['commands']['commands']())_0x5bd29d['clearForceDisabled'](Q);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3d6733=this['editor'],_0x1a8d71=_0x3d6733['locale'],_0x550c22=_0x3d6733['plugins']['get']('Dialog'),_0x530ee5=H(_0x3d6733),_0xeafae3=_0x3d6733['data']['get']({'rootName':_0x530ee5}),_0x17657f=J(_0x4add77=_0xeafae3)?_0x773197(_0x4add77):_0x4add77;var _0x4add77;const _0x3ee15a=new CodeEditorView(_0x1a8d71,{'syntaxLanguage':_0x3d6733['plugins']['has']('Markdown')?'markdown':'html','theme':_0x3d6733['config']['get']('sourceEditingEnhanced.theme')});let _0xa8fb49=!0x0;const _0x403e70=_0x1d52f6=>{if(!_0xa8fb49)return;return Z(_0x3ee15a['getData']())!==Z(_0x17657f)?window['confirm'](q(_0x1a8d71,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x1d52f6['stop']():void 0x0;};_0x550c22['show']({'id':'sourceEditingEnhanced','title':q(_0x1a8d71,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x3ee15a,'actionButtons':[{'label':q(_0x1a8d71,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x550c22['hide']();}},{'label':q(_0x1a8d71,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x179ec6=Z(_0x3ee15a['getData']())!==Z(_0x17657f);(_0x179ec6&&_0x3d6733['execute']('replaceSource',_0x3ee15a['getData']()),_0xa8fb49=!0x1,_0x550c22['hide'](),_0x179ec6&&'editables'in _0x3d6733['ui']['view'])&&_0x3d6733['ui']['view']['editables'][_0x530ee5]['element']['focus']();},'onCreate':_0x42c8cf=>{_0x42c8cf['set']('isEnabled',!_0x3d6733['isReadOnly']),_0x42c8cf['bind']('isEnabled')['to'](_0x3d6733,'isReadOnly',this,'isEnabled',(_0x4349a8,_0x305c22)=>!_0x4349a8&&_0x305c22);}}],'onHide':()=>{this['_enableCommands'](),_0x550c22['off']('hide',_0x403e70),_0x3ee15a['destroy']();},'onShow':()=>{_0x3ee15a['bind']('isReadOnly')['to'](_0x3d6733,'isReadOnly',this,'isEnabled',(_0x47b0a6,_0x479020)=>_0x47b0a6||!_0x479020),_0x3ee15a['setData'](_0x17657f),_0x3ee15a['focus'](),_0x550c22['on']('hide',_0x403e70,{'priority':'highest'}),this['_disableCommands']();}});}}class SourceEditingEnhancedUI extends _0x2faf23{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x267c18];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x185cd9=this['editor'],_0x21e14b=_0x185cd9['locale'],_0x2e8a29=new EditSourceCommand(_0x185cd9);_0x185cd9['commands']['add']('editSource',_0x2e8a29),_0x185cd9['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x1122ab=this['_createButton'](_0x58ebc0,_0x2e8a29);return _0x1122ab['set']({'label':q(_0x21e14b,'Source'),'icon':_0x247aef,'tooltip':q(_0x21e14b,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x1122ab;}),_0x185cd9['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x42c696=this['_createButton'](_0x19aec6,_0x2e8a29,!0x0);return _0x42c696['set']({'label':q(_0x21e14b,'Edit\x20source\x20modal\x20label'),'icon':_0x247aef,'role':'menuitemcheckbox'}),_0x42c696;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x278513){const _0x44fd1d=_0x5856ad([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]),_0x907db=0x5dba9314,_0x42d582=0x5dbd192c^_0x907db,_0x56b54c=window[_0x5856ad([0x44,0x61,0x74,0x65])][_0x5856ad([0x6e,0x6f,0x77])](),_0x28af48=_0x278513[_0x5856ad([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d1891=new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2083c0=>{_0x28af48[_0x5856ad([0x6f,0x6e,0x63,0x65])](_0x5856ad([0x72,0x65,0x61,0x64,0x79]),_0x2083c0);}),_0x1cb619={[_0x5856ad([0x6b,0x74,0x79])]:_0x5856ad([0x45,0x43]),[_0x5856ad([0x75,0x73,0x65])]:_0x5856ad([0x73,0x69,0x67]),[_0x5856ad([0x63,0x72,0x76])]:_0x5856ad([0x50,0x2d,0x32,0x35,0x36]),[_0x5856ad([0x78])]:_0x5856ad([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]),[_0x5856ad([0x79])]:_0x5856ad([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]),[_0x5856ad([0x61,0x6c,0x67])]:_0x5856ad([0x45,0x53,0x32,0x35,0x36])},_0xebb514=_0x28af48[_0x5856ad([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5856ad([0x67,0x65,0x74])](_0x5856ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6bbacd(){let _0x5dac7a,_0x50b2a6=null,_0x51acb6=null;try{if(_0xebb514==_0x5856ad([0x47,0x50,0x4c]))return _0x5856ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5dac7a=_0x59a670(),!_0x5dac7a)return _0x5856ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5dac7a[_0x5856ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x51acb6=_0x2513d5(_0x5dac7a[_0x5856ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5dac7a[_0x5856ad([0x6a,0x74,0x69])])),await _0x168d16()?_0x2e98d4()?_0x3ea6bb()?_0x5856ad([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52836e()?(_0x5dac7a[_0x5856ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5856ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50b2a6=_0xf97bd(_0x5856ad([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4f2188()):_0x5856ad([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5856ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5856ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5856ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ea6bb(){const _0x3f940f=[_0x5856ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5856ad([0x74,0x72,0x69,0x61,0x6c])][_0x5856ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dac7a[_0x5856ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56b54c/0x3e8:0xe10*_0x42d582;return _0x5dac7a[_0x5856ad([0x65,0x78,0x70])]<_0x3f940f;}function _0x2e98d4(){const _0x55ab53=_0x5dac7a[_0x5856ad([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x55ab53&&(!!_0x55ab53[_0x5856ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5856ad([0x2a]))||!!_0x55ab53[_0x5856ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5856ad([0x53,0x45,0x45])));}function _0x52836e(){const _0x25af6e=_0x5dac7a[_0x5856ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x25af6e||0x0==_0x25af6e[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x322fbe}=new URL(window[_0x5856ad([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x25af6e[_0x5856ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x322fbe))return!0x0;const _0x2c9f03=_0x322fbe[_0x5856ad([0x73,0x70,0x6c,0x69,0x74])](_0x5856ad([0x2e]));return _0x25af6e[_0x5856ad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cdae0=>_0x3cdae0[_0x5856ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5856ad([0x2a])))[_0x5856ad([0x6d,0x61,0x70])](_0x404513=>_0x404513[_0x5856ad([0x73,0x70,0x6c,0x69,0x74])](_0x5856ad([0x2e])))[_0x5856ad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cddc3=>_0x3cddc3[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2c9f03[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5856ad([0x6d,0x61,0x70])](_0x11c8cd=>Array(_0x2c9f03[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11c8cd[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5856ad([0x66,0x69,0x6c,0x6c])](_0x11c8cd[0x0]===_0x5856ad([0x2a])?_0x5856ad([0x2a]):'')[_0x5856ad([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11c8cd))[_0x5856ad([0x73,0x6f,0x6d,0x65])](_0x258d9a=>_0x2c9f03[_0x5856ad([0x65,0x76,0x65,0x72,0x79])]((_0x2d26a3,_0x5f3350)=>_0x258d9a[_0x5f3350]===_0x2d26a3||_0x258d9a[_0x5f3350]===_0x5856ad([0x2a])));}function _0x4f2188(){return _0x50b2a6&&_0x51acb6?new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x267f24,_0x22db2e)=>{_0x50b2a6[_0x5856ad([0x74,0x68,0x65,0x6e])](_0x267f24,_0x22db2e),_0x51acb6[_0x5856ad([0x74,0x68,0x65,0x6e])](_0x49f19e=>{_0x49f19e!=_0x5856ad([0x56,0x61,0x6c,0x69,0x64])&&_0x267f24(_0x49f19e);},_0x22db2e);}):_0x50b2a6||_0x51acb6||_0x5856ad([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2513d5(_0x5acad3,_0x1ce3b4){return new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd2f08=>{if(_0x4767d3())return _0xd2f08(_0x5856ad([0x56,0x61,0x6c,0x69,0x64]));_0xd92c97(),_0x28af48[_0x5856ad([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5856ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d8cfd=!0x1;const _0x66112c=_0x17f982();function _0x36ae7c(_0x169e3c){return!!_0x169e3c&&(typeof _0x169e3c===_0x5856ad([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x169e3c===_0x5856ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x169e3c[_0x5856ad([0x74,0x68,0x65,0x6e])]===_0x5856ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x169e3c[_0x5856ad([0x63,0x61,0x74,0x63,0x68])]===_0x5856ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5779e2(_0x1b7626){_0x58654e(_0x1b7626)[_0x5856ad([0x74,0x68,0x65,0x6e])](_0x518434=>{if(!_0x518434||_0x518434[_0x5856ad([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5856ad([0x6f,0x6b]))return _0x5856ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b5499(_0x2f0d9c(_0x66112c+_0x1ce3b4))!=_0x518434[_0x5856ad([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5856ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5856ad([0x56,0x61,0x6c,0x69,0x64]);})[_0x5856ad([0x74,0x68,0x65,0x6e])](_0x2ef3b6=>(_0x521ee8(),_0x2ef3b6),()=>{const _0x4354b4=_0x2c078f();return null==_0x4354b4?(_0x521ee8(),_0x5856ad([0x56,0x61,0x6c,0x69,0x64])):_0x5856ad(_0x56b54c-_0x4354b4>(0x79b61714^_0x907db)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5856ad([0x74,0x68,0x65,0x6e])](_0xd2f08)[_0x5856ad([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd2f08(_0x5856ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x538978=0x5d8c7d94^_0x907db;function _0x521ee8(){const _0x374e43=_0x5856ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b5499(_0x2f0d9c(_0x5acad3)),_0x26cfc2=_0x27b986(_0x1b5499(window[_0x5856ad([0x4d,0x61,0x74,0x68])][_0x5856ad([0x63,0x65,0x69,0x6c])](_0x56b54c/_0x538978)));window[_0x5856ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5856ad([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x374e43,_0x26cfc2);}function _0x2c078f(){const _0x387691=_0x5856ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b5499(_0x2f0d9c(_0x5acad3)),_0x50fa1f=window[_0x5856ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5856ad([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x387691);return _0x50fa1f?window[_0x5856ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27b986(_0x50fa1f),0x10)*_0x538978:null;}function _0x58654e(_0x2050b9){return new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b15ca,_0xe5ec2b)=>{_0x2050b9[_0x5856ad([0x74,0x68,0x65,0x6e])](_0x3b15ca,_0xe5ec2b),window[_0x5856ad([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe5ec2b,0x5dbb47d4^_0x907db);});}}_0x28af48[_0x5856ad([0x6f,0x6e])](_0x5856ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ee66c,_0x36c5cd)=>{if(_0x36c5cd[0x0]!=_0x5acad3)return _0xd2f08(_0x5856ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36c5cd[0x1]={..._0x36c5cd[0x1],[_0x5856ad([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x66112c};},{[_0x5856ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5856ad([0x68,0x69,0x67,0x68])}),_0x28af48[_0x5856ad([0x6f,0x6e])](_0x5856ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3933d2=>{_0x36ae7c(_0x3933d2[_0x5856ad([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d8cfd=!0x0,_0x5779e2(_0x3933d2[_0x5856ad([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5856ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5856ad([0x6c,0x6f,0x77])}),_0x1d1891[_0x5856ad([0x74,0x68,0x65,0x6e])](()=>{_0x4d8cfd||_0xd2f08(_0x5856ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4767d3(){return _0x28af48[_0x5856ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5856ad([0x76,0x69,0x65,0x77])][_0x5856ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5856ad([0x61,0x75,0x74,0x6f]);}function _0xd92c97(){_0x28af48[_0x5856ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5856ad([0x76,0x69,0x65,0x77])][_0x5856ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5856ad([0x61,0x75,0x74,0x6f]);}}function _0xf97bd(_0x19279f){const _0x4ef95f=[new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x61fcfa=>setTimeout(_0x61fcfa,0x5db3add8^_0x907db)),_0x1d1891[_0x5856ad([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dd003=>{let _0x4fa14d=0x0;_0x28af48[_0x5856ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x5856ad([0x6f,0x6e])](_0x5856ad([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42ad81,_0xf0314f)=>{_0xf0314f[0x0][_0x5856ad([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4fa14d++,_0x4fa14d==(0x5dba96fc^_0x907db)&&(_0x3dd003(),_0x42ad81[_0x5856ad([0x6f,0x66,0x66])]());});}))];return window[_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5856ad([0x72,0x61,0x63,0x65])](_0x4ef95f)[_0x5856ad([0x74,0x68,0x65,0x6e])](()=>_0x19279f);}async function _0x1ae69f(){await _0x1d1891,_0x28af48[_0x5856ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x5856ad([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5eb7d1,_0x28af48[_0x5856ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x5856ad([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5eb7d1,_0x28af48[_0x5856ad([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5856ad([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8f3afa(_0x434383){const _0x58ceff=_0xa6f3c0();_0x28af48[_0x58ceff]=_0x5856ad([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])+_0x434383,_0x434383!=_0x5856ad([0x56,0x61,0x6c,0x69,0x64])&&_0x1ae69f();}function _0xa6f3c0(){const _0x2f392d=window[_0x5856ad([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5856ad([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5856ad([0x6e,0x6f,0x77])]())[_0x5856ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5856ad([0x2e]),'');let _0x4839a7=_0x5856ad([0x4e]);for(let _0x50a532=0x0;_0x50a532<_0x2f392d[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50a532+=0x2){let _0x1bbc0f=window[_0x5856ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f392d[_0x5856ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50a532,_0x50a532+0x2));_0x1bbc0f>=_0x44fd1d[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1bbc0f-=_0x44fd1d[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4839a7+=_0x44fd1d[_0x1bbc0f];}return _0x4839a7;}function _0x59a670(){const _0x33b911=_0xebb514[_0x5856ad([0x73,0x70,0x6c,0x69,0x74])](_0x5856ad([0x2e]));if(0x3!=_0x33b911[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43eccd(_0x33b911[0x1]);function _0x43eccd(_0x4f8877){const _0x45b099=_0x537159(_0x4f8877);return _0x45b099&&_0x13bd1a()?_0x45b099:null;function _0x13bd1a(){const _0x53befe=_0x45b099[_0x5856ad([0x6a,0x74,0x69])],_0x1367f5=window[_0x5856ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53befe[_0x5856ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53befe[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c842f={..._0x45b099,[_0x5856ad([0x6a,0x74,0x69])]:_0x53befe[_0x5856ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53befe[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c842f[_0x5856ad([0x76,0x63])],_0x2f0d9c(_0x5c842f)==_0x1367f5;}}}async function _0x168d16(){let _0x320ad5=!0x0;try{const _0x3cccd1=_0xebb514[_0x5856ad([0x73,0x70,0x6c,0x69,0x74])](_0x5856ad([0x2e])),[_0x432ae6,_0x459052,_0x3bc066]=_0x3cccd1;return _0x33fc6d(_0x432ae6),await _0x1079dc(_0x432ae6,_0x459052,_0x3bc066),_0x320ad5;}catch{return!0x1;}function _0x33fc6d(_0xb3b56b){const _0x520583=_0x537159(_0xb3b56b);_0x520583&&_0x520583[_0x5856ad([0x61,0x6c,0x67])]==_0x5856ad([0x45,0x53,0x32,0x35,0x36])||(_0x320ad5=!0x1);}async function _0x1079dc(_0x13a42a,_0x2a0044,_0x16b27b){const _0xd1922a=window[_0x5856ad([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5856ad([0x66,0x72,0x6f,0x6d])](_0x3b6d55(_0x16b27b),_0x2136b9=>_0x2136b9[_0x5856ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1dd562=new window[(_0x5856ad([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5856ad([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13a42a+_0x5856ad([0x2e])+_0x2a0044),_0x3cc900=window[_0x5856ad([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5856ad([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3cc900)return;const _0x34e4f7=await _0x3cc900[_0x5856ad([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5856ad([0x6a,0x77,0x6b]),_0x1cb619,{[_0x5856ad([0x6e,0x61,0x6d,0x65])]:_0x5856ad([0x45,0x43,0x44,0x53,0x41]),[_0x5856ad([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5856ad([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5856ad([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3cc900[_0x5856ad([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5856ad([0x6e,0x61,0x6d,0x65])]:_0x5856ad([0x45,0x43,0x44,0x53,0x41]),[_0x5856ad([0x68,0x61,0x73,0x68])]:{[_0x5856ad([0x6e,0x61,0x6d,0x65])]:_0x5856ad([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34e4f7,_0xd1922a,_0x1dd562)||(_0x320ad5=!0x1);}}function _0x537159(_0xd52524){return _0xd52524[_0x5856ad([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5856ad([0x65,0x79]))?JSON[_0x5856ad([0x70,0x61,0x72,0x73,0x65])](_0x3b6d55(_0xd52524)):null;}function _0x3b6d55(_0x3093f2){return window[_0x5856ad([0x61,0x74,0x6f,0x62])](_0x3093f2[_0x5856ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5856ad([0x2b]))[_0x5856ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5856ad([0x2f])));}function _0x2f0d9c(_0x50d4c4){let _0x52dcaa=0x1505;function _0x29c548(_0x428e82){for(let _0x1d2ffe=0x0;_0x1d2ffe<_0x428e82[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d2ffe++){const _0x106020=_0x428e82[_0x5856ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d2ffe);_0x52dcaa=(_0x52dcaa<<0x5)+_0x52dcaa+_0x106020,_0x52dcaa&=_0x52dcaa;}}function _0x534aee(_0x258639){Array[_0x5856ad([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x258639)?_0x258639[_0x5856ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x534aee):_0x258639&&typeof _0x258639==_0x5856ad([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5856ad([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x258639)[_0x5856ad([0x73,0x6f,0x72,0x74])]()[_0x5856ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xbe56b1,_0x756364])=>{_0x29c548(_0xbe56b1),_0x534aee(_0x756364);}):_0x29c548(window[_0x5856ad([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x258639));}return _0x534aee(_0x50d4c4),_0x52dcaa>>>0x0;}function _0x1b5499(_0x415617){return _0x415617[_0x5856ad([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5856ad([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5856ad([0x30]));}function _0x27b986(_0x409a6e){return _0x409a6e[_0x5856ad([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5856ad([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5856ad([0x6a,0x6f,0x69,0x6e])]('');}function _0x5eb7d1(){}function _0x5856ad(_0x279dd8){return _0x279dd8['map'](_0x2f714a=>String['fromCharCode'](_0x2f714a))['join']('');}_0x8f3afa(await _0x6bbacd());}(this);}['_createButton'](_0x5852f2,_0x28e358,_0x4d5529=!0x1){const _0x4767fc=new _0x5852f2(this['editor']['locale']);return _0x4767fc['set']({'withText':_0x4d5529,'isToggleable':!0x1}),_0x4767fc['bind']('isEnabled')['to'](_0x28e358,'isEnabled'),this['listenTo'](_0x4767fc,'execute',()=>_0x28e358['execute']()),_0x4767fc;}['_registerKeybindings'](){const _0x3e8217=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':q(_0x3e8217,'Source\x20Editing\x20Enhanced')});const _0x395c63=_0x41e7ef['isMac']||_0x41e7ef['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':q(_0x3e8217,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':q(_0x3e8217,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':q(_0x3e8217,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':q(_0x3e8217,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':q(_0x3e8217,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':q(_0x3e8217,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':q(_0x3e8217,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x395c63?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':q(_0x3e8217,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':q(_0x3e8217,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':q(_0x3e8217,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':q(_0x3e8217,'Select\x20line'),'keystroke':_0x395c63?'Ctrl!+L':'Alt+L'},{'label':q(_0x3e8217,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x395c63?'Alt+Shift+M':'Ctrl+M'},{'label':q(_0x3e8217,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':q(_0x3e8217,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':q(_0x3e8217,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':q(_0x3e8217,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':q(_0x3e8217,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x395c63?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ReplaceSourceCommand extends _0x2848c0{constructor(_0x227646){super(_0x227646),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x7d7a4a,_0x31ae49){const _0x1973ba=this['editor'],_0x262bd5=_0x31ae49?.['rootName']??H(_0x1973ba);_0x1973ba['data']['set']({[_0x262bd5]:_0x7d7a4a},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class SourceEditingEnhanced extends _0x2faf23{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SourceEditingEnhancedUI];}constructor(_0x58fed2){super(_0x58fed2),_0x58fed2['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ReplaceSourceCommand(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x41cd33=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x484aa5;for(const _0x582100 in _0x41cd33){const _0x4b8ab4=_0x582100,_0x10db52=_0x41cd33[_0x4b8ab4];if('sourceEditingEnhancedLicenseKeyValid'==_0x10db52||'sourceEditingEnhancedLicenseKeyInvalid'==_0x10db52||'sourceEditingEnhancedLicenseKeyExpired'==_0x10db52||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x10db52||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x10db52||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x10db52||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x10db52){delete _0x41cd33[_0x4b8ab4],_0x484aa5=_0x10db52,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x484aa5&&_0x41cd33['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x484aa5&&_0x41cd33['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x484aa5&&_0x41cd33['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x484aa5&&_0x41cd33['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x484aa5&&_0x41cd33['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x484aa5&&_0x41cd33['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0xae17ac=this['editor'],_0x393b36=_0xae17ac['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x393b36&&_0xae17ac['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x313882('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x393b36&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x49ce31=>_0xae17ac['plugins']['has'](_0x49ce31))&&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.'),_0xae17ac['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{EditSourceCommand,ReplaceSourceCommand,SourceEditingEnhanced};
23
+ import{Command as _0x23f3a1,PendingActions as _0xe17dd5,Plugin as _0x5c7d32}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x10614f,formatHtml as _0x18df81,env as _0xb9d464,uid as _0x182706}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x3b29c9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x1ec2c2,ButtonView as _0x292df5,MenuBarMenuListItemButtonView as _0xaefee6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x5776a8,crosshairCursor as _0x1a3533,drawSelection as _0x4edad8,dropCursor as _0x47e465,lineNumbers as _0x41835b,highlightActiveLine as _0x5683a6,highlightActiveLineGutter as _0x57ec3b,highlightSpecialChars as _0x159946,rectangularSelection as _0x1a603c,keymap as _0x35f87a}from'@codemirror/view';import{Compartment as _0x437dfd,Transaction as _0x36442d}from'@codemirror/state';import{bracketMatching as _0x1b8f43,foldGutter as _0xcf8871,indentOnInput as _0x10881e,syntaxHighlighting as _0x98b7c5,defaultHighlightStyle as _0x296b82,foldKeymap as _0x4b773e}from'@codemirror/language';import{toggleTabFocusMode as _0x485b39,history as _0x18772b,defaultKeymap as _0xa35a13,historyKeymap as _0x5c6c8e,indentLess as _0x1d2e69,indentMore as _0x54a12e,redo as _0x44d841,undo as _0x5658f6}from'@codemirror/commands';import{autocompletion as _0x4e5115,closeBrackets as _0x478826,closeBracketsKeymap as _0xfc39c9,completionKeymap as _0x26f423}from'@codemirror/autocomplete';import{html as _0x126945}from'@codemirror/lang-html';import{markdown as _0x45037c}from'@codemirror/lang-markdown';import{oneDark as _0x24d53c}from'@codemirror/theme-one-dark';function q(_0x4cd953,_0x3a9b64){const t=_0x4cd953['t'];switch(_0x3a9b64){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 _0x3a9b64;}}function H(_0x5230c3){const _0x453308=_0x5230c3['editing']['view']['document']['roots'],_0x5b272b=_0x453308['length'];if(0x0===_0x5b272b)throw new _0x10614f('source-editing-enhanced-editor-no-root',_0x5230c3);if(0x1===_0x5b272b)return _0x453308['first']['rootName'];return Array['from'](_0x5230c3['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x1176e9){return J(_0x1176e9['replace'](/^[\n\s]*/g,''))?_0x1176e9['replace'](/\s+/g,''):_0x1176e9;}function J(_0x231535){return _0x231535['startsWith']('<');}function G(_0x44f27e){const _0x14864e=[_0x5776a8['lineWrapping'],_0x4e5115(),_0x1b8f43(),_0x478826(),_0x1a3533(),_0x4edad8(),_0x47e465(),_0x41835b(),_0xcf8871(),_0x5683a6(),_0x57ec3b(),_0x159946(),_0x18772b(),_0x10881e(),_0x1a603c(),_0x98b7c5(_0x296b82,{'fallback':!0x0})],_0x27372e=new _0x437dfd();_0x14864e['push'](_0x27372e['of'](_0x5776a8['editable']['of'](!0x0))),'html'===_0x44f27e['syntaxLanguage']?_0x14864e['push'](_0x126945()):_0x14864e['push'](_0x45037c());const _0x5cb47e=function(_0x494927){if(_0x494927&&'default'!==_0x494927)return'dark'===_0x494927?_0x24d53c:_0x494927;return null;}(_0x44f27e['theme']);_0x5cb47e&&_0x14864e['push'](_0x5cb47e),_0x14864e['push'](_0x35f87a['of']([..._0xfc39c9,..._0xa35a13,..._0x5c6c8e,..._0x4b773e,..._0x26f423,{'key':'Tab','run':_0x54a12e,'shift':_0x1d2e69,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x44d841,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x44d841,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x5658f6,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x2ef34a=new _0x5776a8({'extensions':_0x14864e,'parent':_0x44f27e['parent']});return _0x485b39(_0x2ef34a),{'focus':()=>{_0x2ef34a['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x2ef34a['focus']();},'getData':()=>_0x2ef34a['state']['doc']['toString'](),'setData':_0x206326=>{_0x2ef34a['dispatch']({'changes':{'from':0x0,'to':_0x2ef34a['state']['doc']['length'],'insert':_0x206326},'annotations':_0x36442d['addToHistory']['of'](!0x1)});},'setReadOnly':_0x56f89c=>{_0x2ef34a['dispatch']({'effects':[_0x27372e['reconfigure'](_0x5776a8['editable']['of'](!_0x56f89c))]});},'destroy':()=>{_0x2ef34a['destroy']();},'instance':_0x2ef34a};}class CodeEditorView extends _0x1ec2c2{['_codeEditorApi']=null;['_options'];constructor(_0x10d2c7,_0x109195){super(_0x10d2c7),this['_options']=_0x109195,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']=G({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x2919ec,_0x4fd6a2,_0x505470)=>{this['setReadOnly'](_0x505470);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x14d01d){this['_codeEditorApi']['setData'](_0x14d01d);}['setReadOnly'](_0x45ef14){this['_codeEditorApi']['setReadOnly'](_0x45ef14);}}const Q='SourceEditingEnhancedMode';class EditSourceCommand extends _0x23f3a1{constructor(_0x532309){super(_0x532309),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0xe17dd5)['on']('change:hasAny',(_0x33bd33,_0x517d71,_0xe100d)=>{_0xe100d?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x2cf8c0=this['editor'];for(const _0x2eeac of _0x2cf8c0['commands']['names']())['replaceSource','editSource']['includes'](_0x2eeac)||_0x2cf8c0['commands']['get'](_0x2eeac)['forceDisabled'](Q);}['_enableCommands'](){const _0x586011=this['editor'];for(const _0xdec5e5 of _0x586011['commands']['commands']())_0xdec5e5['clearForceDisabled'](Q);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x21f758=this['editor'],_0x23b66c=_0x21f758['locale'],_0xd9482f=_0x21f758['plugins']['get']('Dialog'),_0x1c8012=H(_0x21f758),_0xa348c3=_0x21f758['data']['get']({'rootName':_0x1c8012}),_0x569fd5=J(_0x3abf83=_0xa348c3)?_0x18df81(_0x3abf83):_0x3abf83;var _0x3abf83;const _0x500b54=new CodeEditorView(_0x23b66c,{'syntaxLanguage':_0x21f758['plugins']['has']('Markdown')?'markdown':'html','theme':_0x21f758['config']['get']('sourceEditingEnhanced.theme')});let _0xab4fdd=!0x0;const _0x1c0be7=_0x38a26a=>{if(!_0xab4fdd)return;return Z(_0x500b54['getData']())!==Z(_0x569fd5)?window['confirm'](q(_0x23b66c,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x38a26a['stop']():void 0x0;};_0xd9482f['show']({'id':'sourceEditingEnhanced','title':q(_0x23b66c,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x500b54,'actionButtons':[{'label':q(_0x23b66c,'Cancel'),'withText':!0x0,'onExecute':()=>{_0xd9482f['hide']();}},{'label':q(_0x23b66c,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x5e176=Z(_0x500b54['getData']())!==Z(_0x569fd5);(_0x5e176&&_0x21f758['execute']('replaceSource',_0x500b54['getData']()),_0xab4fdd=!0x1,_0xd9482f['hide'](),_0x5e176&&'editables'in _0x21f758['ui']['view'])&&_0x21f758['ui']['view']['editables'][_0x1c8012]['element']['focus']();},'onCreate':_0x13e5be=>{_0x13e5be['set']('isEnabled',!_0x21f758['isReadOnly']),_0x13e5be['bind']('isEnabled')['to'](_0x21f758,'isReadOnly',this,'isEnabled',(_0x4ae1ce,_0x31d7a9)=>!_0x4ae1ce&&_0x31d7a9);}}],'onHide':()=>{this['_enableCommands'](),_0xd9482f['off']('hide',_0x1c0be7),_0x500b54['destroy']();},'onShow':()=>{_0x500b54['bind']('isReadOnly')['to'](_0x21f758,'isReadOnly',this,'isEnabled',(_0x17cd08,_0x306dc2)=>_0x17cd08||!_0x306dc2),_0x500b54['setData'](_0x569fd5),_0x500b54['focus'](),_0xd9482f['on']('hide',_0x1c0be7,{'priority':'highest'}),this['_disableCommands']();}});}}class SourceEditingEnhancedUI extends _0x5c7d32{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0xe17dd5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4b1e03=this['editor'],_0x1527f4=_0x4b1e03['locale'],_0x36d83b=new EditSourceCommand(_0x4b1e03);_0x4b1e03['commands']['add']('editSource',_0x36d83b),_0x4b1e03['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x2c91d5=this['_createButton'](_0x292df5,_0x36d83b);return _0x2c91d5['set']({'label':q(_0x1527f4,'Source'),'icon':_0x3b29c9,'tooltip':q(_0x1527f4,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x2c91d5;}),_0x4b1e03['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x106604=this['_createButton'](_0xaefee6,_0x36d83b,!0x0);return _0x106604['set']({'label':q(_0x1527f4,'Edit\x20source\x20modal\x20label'),'icon':_0x3b29c9,'role':'menuitemcheckbox'}),_0x106604;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x2782ec){const _0x32d3d3=_0x5ddcfe([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]),_0x311953=0x5dba9314,_0x377193=0x5dbd1944^_0x311953,_0x256ae4=window[_0x5ddcfe([0x44,0x61,0x74,0x65])][_0x5ddcfe([0x6e,0x6f,0x77])](),_0x4945c2=_0x2782ec[_0x5ddcfe([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5bed14=new window[(_0x5ddcfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5abcca=>{_0x4945c2[_0x5ddcfe([0x6f,0x6e,0x63,0x65])](_0x5ddcfe([0x72,0x65,0x61,0x64,0x79]),_0x5abcca);}),_0x2fbca1={[_0x5ddcfe([0x6b,0x74,0x79])]:_0x5ddcfe([0x45,0x43]),[_0x5ddcfe([0x75,0x73,0x65])]:_0x5ddcfe([0x73,0x69,0x67]),[_0x5ddcfe([0x63,0x72,0x76])]:_0x5ddcfe([0x50,0x2d,0x32,0x35,0x36]),[_0x5ddcfe([0x78])]:_0x5ddcfe([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]),[_0x5ddcfe([0x79])]:_0x5ddcfe([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]),[_0x5ddcfe([0x61,0x6c,0x67])]:_0x5ddcfe([0x45,0x53,0x32,0x35,0x36])},_0x4819ff=_0x4945c2[_0x5ddcfe([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ddcfe([0x67,0x65,0x74])](_0x5ddcfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5dcdec(){let _0x624446,_0x4b3332=null,_0x580981=null;try{if(_0x4819ff==_0x5ddcfe([0x47,0x50,0x4c]))return _0x5ddcfe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x624446=_0x2bb5b9(),!_0x624446)return _0x5ddcfe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x624446[_0x5ddcfe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x580981=_0x461b83(_0x624446[_0x5ddcfe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x624446[_0x5ddcfe([0x6a,0x74,0x69])])),await _0x24f340()?_0x1231d5()?_0x17172f()?_0x5ddcfe([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x417e35()?(_0x624446[_0x5ddcfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ddcfe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b3332=_0x36fa21(_0x5ddcfe([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x73200a()):_0x5ddcfe([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ddcfe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ddcfe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ddcfe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x17172f(){const _0x5351fc=[_0x5ddcfe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ddcfe([0x74,0x72,0x69,0x61,0x6c])][_0x5ddcfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x624446[_0x5ddcfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x256ae4/0x3e8:0xe10*_0x377193;return _0x624446[_0x5ddcfe([0x65,0x78,0x70])]<_0x5351fc;}function _0x1231d5(){const _0x292cc9=_0x624446[_0x5ddcfe([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x292cc9&&(!!_0x292cc9[_0x5ddcfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ddcfe([0x2a]))||!!_0x292cc9[_0x5ddcfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ddcfe([0x53,0x45,0x45])));}function _0x417e35(){const _0x18f761=_0x624446[_0x5ddcfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18f761||0x0==_0x18f761[_0x5ddcfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e0261}=new URL(window[_0x5ddcfe([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x18f761[_0x5ddcfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e0261))return!0x0;const _0x5ade13=_0x1e0261[_0x5ddcfe([0x73,0x70,0x6c,0x69,0x74])](_0x5ddcfe([0x2e]));return _0x18f761[_0x5ddcfe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16c778=>_0x16c778[_0x5ddcfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ddcfe([0x2a])))[_0x5ddcfe([0x6d,0x61,0x70])](_0x251c01=>_0x251c01[_0x5ddcfe([0x73,0x70,0x6c,0x69,0x74])](_0x5ddcfe([0x2e])))[_0x5ddcfe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d683c=>_0x4d683c[_0x5ddcfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ade13[_0x5ddcfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ddcfe([0x6d,0x61,0x70])](_0x593b27=>Array(_0x5ade13[_0x5ddcfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x593b27[_0x5ddcfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ddcfe([0x66,0x69,0x6c,0x6c])](_0x593b27[0x0]===_0x5ddcfe([0x2a])?_0x5ddcfe([0x2a]):'')[_0x5ddcfe([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x593b27))[_0x5ddcfe([0x73,0x6f,0x6d,0x65])](_0x1500f0=>_0x5ade13[_0x5ddcfe([0x65,0x76,0x65,0x72,0x79])]((_0x488376,_0x214ccd)=>_0x1500f0[_0x214ccd]===_0x488376||_0x1500f0[_0x214ccd]===_0x5ddcfe([0x2a])));}function _0x73200a(){return _0x4b3332&&_0x580981?new window[(_0x5ddcfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e61ec,_0xa68252)=>{_0x4b3332[_0x5ddcfe([0x74,0x68,0x65,0x6e])](_0x3e61ec,_0xa68252),_0x580981[_0x5ddcfe([0x74,0x68,0x65,0x6e])](_0x170d37=>{_0x170d37!=_0x5ddcfe([0x56,0x61,0x6c,0x69,0x64])&&_0x3e61ec(_0x170d37);},_0xa68252);}):_0x4b3332||_0x580981||_0x5ddcfe([0x56,0x61,0x6c,0x69,0x64]);}}function _0x461b83(_0x289283,_0x19c7e8){return new window[(_0x5ddcfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x520bbc=>{if(_0x519267())return _0x520bbc(_0x5ddcfe([0x56,0x61,0x6c,0x69,0x64]));_0x11f105(),_0x4945c2[_0x5ddcfe([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ddcfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3fbc2a=!0x1;const _0xac64c0=_0x182706();function _0xe99e8f(_0x264b98){return!!_0x264b98&&(typeof _0x264b98===_0x5ddcfe([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x264b98===_0x5ddcfe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x264b98[_0x5ddcfe([0x74,0x68,0x65,0x6e])]===_0x5ddcfe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x264b98[_0x5ddcfe([0x63,0x61,0x74,0x63,0x68])]===_0x5ddcfe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3219b6(_0x2b4f34){_0x2edbe3(_0x2b4f34)[_0x5ddcfe([0x74,0x68,0x65,0x6e])](_0x5bea06=>{if(!_0x5bea06||_0x5bea06[_0x5ddcfe([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ddcfe([0x6f,0x6b]))return _0x5ddcfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x451a30(_0x2e33b3(_0xac64c0+_0x19c7e8))!=_0x5bea06[_0x5ddcfe([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ddcfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ddcfe([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ddcfe([0x74,0x68,0x65,0x6e])](_0x3fd205=>(_0x45202f(),_0x3fd205),()=>{const _0x2d1e85=_0x2e15f6();return null==_0x2d1e85?(_0x45202f(),_0x5ddcfe([0x56,0x61,0x6c,0x69,0x64])):_0x5ddcfe(_0x256ae4-_0x2d1e85>(0x79b61714^_0x311953)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ddcfe([0x74,0x68,0x65,0x6e])](_0x520bbc)[_0x5ddcfe([0x63,0x61,0x74,0x63,0x68])](()=>{_0x520bbc(_0x5ddcfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x582bc3=0x5d8c7d94^_0x311953;function _0x45202f(){const _0x3ecbb1=_0x5ddcfe([0x6c,0x6c,0x63,0x74,0x2d])+_0x451a30(_0x2e33b3(_0x289283)),_0x1c2893=_0x8ca177(_0x451a30(window[_0x5ddcfe([0x4d,0x61,0x74,0x68])][_0x5ddcfe([0x63,0x65,0x69,0x6c])](_0x256ae4/_0x582bc3)));window[_0x5ddcfe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ddcfe([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ecbb1,_0x1c2893);}function _0x2e15f6(){const _0x4ff6a1=_0x5ddcfe([0x6c,0x6c,0x63,0x74,0x2d])+_0x451a30(_0x2e33b3(_0x289283)),_0x54c1fb=window[_0x5ddcfe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ddcfe([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ff6a1);return _0x54c1fb?window[_0x5ddcfe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8ca177(_0x54c1fb),0x10)*_0x582bc3:null;}function _0x2edbe3(_0x46947c){return new window[(_0x5ddcfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x231c93,_0x45ef99)=>{_0x46947c[_0x5ddcfe([0x74,0x68,0x65,0x6e])](_0x231c93,_0x45ef99),window[_0x5ddcfe([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x45ef99,0x5dbb47d4^_0x311953);});}}_0x4945c2[_0x5ddcfe([0x6f,0x6e])](_0x5ddcfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4dbe4b,_0x132cf4)=>{if(_0x132cf4[0x0]!=_0x289283)return _0x520bbc(_0x5ddcfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x132cf4[0x1]={..._0x132cf4[0x1],[_0x5ddcfe([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xac64c0};},{[_0x5ddcfe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ddcfe([0x68,0x69,0x67,0x68])}),_0x4945c2[_0x5ddcfe([0x6f,0x6e])](_0x5ddcfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16f5d9=>{_0xe99e8f(_0x16f5d9[_0x5ddcfe([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3fbc2a=!0x0,_0x3219b6(_0x16f5d9[_0x5ddcfe([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ddcfe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ddcfe([0x6c,0x6f,0x77])}),_0x5bed14[_0x5ddcfe([0x74,0x68,0x65,0x6e])](()=>{_0x3fbc2a||_0x520bbc(_0x5ddcfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x519267(){return _0x4945c2[_0x5ddcfe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ddcfe([0x76,0x69,0x65,0x77])][_0x5ddcfe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ddcfe([0x61,0x75,0x74,0x6f]);}function _0x11f105(){_0x4945c2[_0x5ddcfe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ddcfe([0x76,0x69,0x65,0x77])][_0x5ddcfe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ddcfe([0x61,0x75,0x74,0x6f]);}}function _0x36fa21(_0x59683d){const _0x2ebfd5=[new window[(_0x5ddcfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40f663=>setTimeout(_0x40f663,0x5db3add8^_0x311953)),_0x5bed14[_0x5ddcfe([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ddcfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41ad67=>{let _0x4bc06f=0x0;_0x4945c2[_0x5ddcfe([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ddcfe([0x6f,0x6e])](_0x5ddcfe([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x188afa,_0x3167f0)=>{_0x3167f0[0x0][_0x5ddcfe([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4bc06f++,_0x4bc06f==(0x5dba96fc^_0x311953)&&(_0x41ad67(),_0x188afa[_0x5ddcfe([0x6f,0x66,0x66])]());});}))];return window[_0x5ddcfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ddcfe([0x72,0x61,0x63,0x65])](_0x2ebfd5)[_0x5ddcfe([0x74,0x68,0x65,0x6e])](()=>_0x59683d);}async function _0x338769(){await _0x5bed14,_0x4945c2[_0x5ddcfe([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ddcfe([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x316e65,_0x4945c2[_0x5ddcfe([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ddcfe([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x316e65,_0x4945c2[_0x5ddcfe([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ddcfe([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4dc72d(_0x578a37){const _0x1dabe7=_0x4da16e();_0x4945c2[_0x1dabe7]=_0x5ddcfe([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])+_0x578a37,_0x578a37!=_0x5ddcfe([0x56,0x61,0x6c,0x69,0x64])&&_0x338769();}function _0x4da16e(){const _0x3758d9=window[_0x5ddcfe([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ddcfe([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ddcfe([0x6e,0x6f,0x77])]())[_0x5ddcfe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ddcfe([0x2e]),'');let _0x49176d=_0x5ddcfe([0x4e]);for(let _0x241b44=0x0;_0x241b44<_0x3758d9[_0x5ddcfe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x241b44+=0x2){let _0x226c3b=window[_0x5ddcfe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3758d9[_0x5ddcfe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x241b44,_0x241b44+0x2));_0x226c3b>=_0x32d3d3[_0x5ddcfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x226c3b-=_0x32d3d3[_0x5ddcfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x49176d+=_0x32d3d3[_0x226c3b];}return _0x49176d;}function _0x2bb5b9(){const _0x227064=_0x4819ff[_0x5ddcfe([0x73,0x70,0x6c,0x69,0x74])](_0x5ddcfe([0x2e]));if(0x3!=_0x227064[_0x5ddcfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c93ff(_0x227064[0x1]);function _0x5c93ff(_0x44ba23){const _0x42c674=_0x21cf28(_0x44ba23);return _0x42c674&&_0x2bae53()?_0x42c674:null;function _0x2bae53(){const _0x54cbff=_0x42c674[_0x5ddcfe([0x6a,0x74,0x69])],_0x1012c3=window[_0x5ddcfe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54cbff[_0x5ddcfe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54cbff[_0x5ddcfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a8c9e={..._0x42c674,[_0x5ddcfe([0x6a,0x74,0x69])]:_0x54cbff[_0x5ddcfe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x54cbff[_0x5ddcfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a8c9e[_0x5ddcfe([0x76,0x63])],_0x2e33b3(_0x2a8c9e)==_0x1012c3;}}}async function _0x24f340(){let _0xb3b372=!0x0;try{const _0x2d5c8d=_0x4819ff[_0x5ddcfe([0x73,0x70,0x6c,0x69,0x74])](_0x5ddcfe([0x2e])),[_0x57bda1,_0x10dcbc,_0x5d43d9]=_0x2d5c8d;return _0x5617e6(_0x57bda1),await _0x4c05b3(_0x57bda1,_0x10dcbc,_0x5d43d9),_0xb3b372;}catch{return!0x1;}function _0x5617e6(_0x387467){const _0x160941=_0x21cf28(_0x387467);_0x160941&&_0x160941[_0x5ddcfe([0x61,0x6c,0x67])]==_0x5ddcfe([0x45,0x53,0x32,0x35,0x36])||(_0xb3b372=!0x1);}async function _0x4c05b3(_0xea1af8,_0x223544,_0x3ad4d5){const _0x4a814b=window[_0x5ddcfe([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ddcfe([0x66,0x72,0x6f,0x6d])](_0x5d9a34(_0x3ad4d5),_0x4224cc=>_0x4224cc[_0x5ddcfe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x62581f=new window[(_0x5ddcfe([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ddcfe([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xea1af8+_0x5ddcfe([0x2e])+_0x223544),_0x4c0d5a=window[_0x5ddcfe([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ddcfe([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c0d5a)return;const _0x3877d7=await _0x4c0d5a[_0x5ddcfe([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ddcfe([0x6a,0x77,0x6b]),_0x2fbca1,{[_0x5ddcfe([0x6e,0x61,0x6d,0x65])]:_0x5ddcfe([0x45,0x43,0x44,0x53,0x41]),[_0x5ddcfe([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ddcfe([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ddcfe([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c0d5a[_0x5ddcfe([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ddcfe([0x6e,0x61,0x6d,0x65])]:_0x5ddcfe([0x45,0x43,0x44,0x53,0x41]),[_0x5ddcfe([0x68,0x61,0x73,0x68])]:{[_0x5ddcfe([0x6e,0x61,0x6d,0x65])]:_0x5ddcfe([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3877d7,_0x4a814b,_0x62581f)||(_0xb3b372=!0x1);}}function _0x21cf28(_0x16107e){return _0x16107e[_0x5ddcfe([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ddcfe([0x65,0x79]))?JSON[_0x5ddcfe([0x70,0x61,0x72,0x73,0x65])](_0x5d9a34(_0x16107e)):null;}function _0x5d9a34(_0x43f66a){return window[_0x5ddcfe([0x61,0x74,0x6f,0x62])](_0x43f66a[_0x5ddcfe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ddcfe([0x2b]))[_0x5ddcfe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ddcfe([0x2f])));}function _0x2e33b3(_0x359b3e){let _0x3ffa07=0x1505;function _0x3bcdb6(_0x51dd94){for(let _0x492693=0x0;_0x492693<_0x51dd94[_0x5ddcfe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x492693++){const _0x1eb551=_0x51dd94[_0x5ddcfe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x492693);_0x3ffa07=(_0x3ffa07<<0x5)+_0x3ffa07+_0x1eb551,_0x3ffa07&=_0x3ffa07;}}function _0x192478(_0x47412f){Array[_0x5ddcfe([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47412f)?_0x47412f[_0x5ddcfe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x192478):_0x47412f&&typeof _0x47412f==_0x5ddcfe([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ddcfe([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47412f)[_0x5ddcfe([0x73,0x6f,0x72,0x74])]()[_0x5ddcfe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x211a29,_0x3c5b80])=>{_0x3bcdb6(_0x211a29),_0x192478(_0x3c5b80);}):_0x3bcdb6(window[_0x5ddcfe([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47412f));}return _0x192478(_0x359b3e),_0x3ffa07>>>0x0;}function _0x451a30(_0x135106){return _0x135106[_0x5ddcfe([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ddcfe([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ddcfe([0x30]));}function _0x8ca177(_0x280d78){return _0x280d78[_0x5ddcfe([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ddcfe([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ddcfe([0x6a,0x6f,0x69,0x6e])]('');}function _0x316e65(){}function _0x5ddcfe(_0x1cac62){return _0x1cac62['map'](_0x7d4c2b=>String['fromCharCode'](_0x7d4c2b))['join']('');}_0x4dc72d(await _0x5dcdec());}(this);}['_createButton'](_0x5b160f,_0x5bdc02,_0x22e77a=!0x1){const _0x806db6=new _0x5b160f(this['editor']['locale']);return _0x806db6['set']({'withText':_0x22e77a,'isToggleable':!0x1}),_0x806db6['bind']('isEnabled')['to'](_0x5bdc02,'isEnabled'),this['listenTo'](_0x806db6,'execute',()=>_0x5bdc02['execute']()),_0x806db6;}['_registerKeybindings'](){const _0x4cad6c=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':q(_0x4cad6c,'Source\x20Editing\x20Enhanced')});const _0x16d9f8=_0xb9d464['isMac']||_0xb9d464['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':q(_0x4cad6c,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':q(_0x4cad6c,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':q(_0x4cad6c,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':q(_0x4cad6c,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':q(_0x4cad6c,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':q(_0x4cad6c,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':q(_0x4cad6c,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x16d9f8?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':q(_0x4cad6c,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':q(_0x4cad6c,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':q(_0x4cad6c,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':q(_0x4cad6c,'Select\x20line'),'keystroke':_0x16d9f8?'Ctrl!+L':'Alt+L'},{'label':q(_0x4cad6c,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x16d9f8?'Alt+Shift+M':'Ctrl+M'},{'label':q(_0x4cad6c,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':q(_0x4cad6c,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':q(_0x4cad6c,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':q(_0x4cad6c,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':q(_0x4cad6c,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x16d9f8?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ReplaceSourceCommand extends _0x23f3a1{constructor(_0x2133ee){super(_0x2133ee),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x21c241,_0x531fa2){const _0x535d17=this['editor'],_0x4dd363=_0x531fa2?.['rootName']??H(_0x535d17);_0x535d17['data']['set']({[_0x4dd363]:_0x21c241},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class SourceEditingEnhanced extends _0x5c7d32{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SourceEditingEnhancedUI];}constructor(_0x12f7d2){super(_0x12f7d2),_0x12f7d2['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ReplaceSourceCommand(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x158838=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5b1f18;for(const _0x251a55 in _0x158838){const _0x3c03ee=_0x251a55,_0x411736=_0x158838[_0x3c03ee];if('sourceEditingEnhancedLicenseKeyValid'==_0x411736||'sourceEditingEnhancedLicenseKeyInvalid'==_0x411736||'sourceEditingEnhancedLicenseKeyExpired'==_0x411736||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x411736||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x411736||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x411736||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x411736){delete _0x158838[_0x3c03ee],_0x5b1f18=_0x411736,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x5b1f18&&_0x158838['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x5b1f18&&_0x158838['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x5b1f18&&_0x158838['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x5b1f18&&_0x158838['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x5b1f18&&_0x158838['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x5b1f18&&_0x158838['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x3d0883=this['editor'],_0x1a2801=_0x3d0883['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x1a2801&&_0x3d0883['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x10614f('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x1a2801&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x4c0485=>_0x3d0883['plugins']['has'](_0x4c0485))&&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.'),_0x3d0883['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{EditSourceCommand,ReplaceSourceCommand,SourceEditingEnhanced};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-source-editing-enhanced",
3
- "version": "48.8.1-alpha.1",
3
+ "version": "48.8.1-alpha.2",
4
4
  "description": "Source editing enhanced feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -25,11 +25,11 @@
25
25
  "dist/translations/*.umd.js"
26
26
  ],
27
27
  "dependencies": {
28
- "@ckeditor/ckeditor5-core": "48.8.1-alpha.1",
29
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.1",
30
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.1",
31
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.1",
32
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.1",
28
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.2",
29
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.2",
30
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.2",
31
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.2",
32
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.2",
33
33
  "@codemirror/autocomplete": "^6.7.1",
34
34
  "@codemirror/commands": "6.8.1",
35
35
  "@codemirror/lang-html": "^6.0.0",