@ckeditor/ckeditor5-source-editing-enhanced 48.1.0-alpha.3 → 48.1.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x3a9a0e,PendingActions as _0x552e53,Plugin as _0x5d082f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3fa971,formatHtml as _0x44ef9c,env as _0x1fd41f,uid as _0x2ee657}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0xe93b31}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3e61bf,ButtonView as _0x4bf664,MenuBarMenuListItemButtonView as _0x289b2d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x4a1776,crosshairCursor as _0x5e99fc,drawSelection as _0x506624,dropCursor as _0x452dcf,lineNumbers as _0x4c3c32,highlightActiveLine as _0xc1e156,highlightActiveLineGutter as _0x83052e,highlightSpecialChars as _0x1c6a5c,rectangularSelection as _0x3b6bcc,keymap as _0x4c8e4a}from'@codemirror/view';import{Compartment as _0x626692,Transaction as _0x25f689}from'@codemirror/state';import{bracketMatching as _0x555b9e,foldGutter as _0x2db502,indentOnInput as _0x54e6ac,syntaxHighlighting as _0x54f0f8,defaultHighlightStyle as _0x2927b5,foldKeymap as _0x33532f}from'@codemirror/language';import{toggleTabFocusMode as _0x26693e,history as _0x2e8f65,defaultKeymap as _0x11ceac,historyKeymap as _0x36decd,indentLess as _0x16fbf6,indentMore as _0x5d36c7,redo as _0x592536,undo as _0x496980}from'@codemirror/commands';import{autocompletion as _0x4fb824,closeBrackets as _0x3a9286,closeBracketsKeymap as _0x2f6bde,completionKeymap as _0x17426d}from'@codemirror/autocomplete';import{html as _0x1affd8}from'@codemirror/lang-html';import{markdown as _0x5dfd24}from'@codemirror/lang-markdown';import{oneDark as _0x2445d7}from'@codemirror/theme-one-dark';function H(_0x248552,_0x55257d){const t=_0x248552['t'];switch(_0x55257d){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 _0x55257d;}}function V(_0x6f5687){const _0x202341=_0x6f5687['editing']['view']['document']['roots'],_0x227d56=_0x202341['length'];if(0x0===_0x227d56)throw new _0x3fa971('source-editing-enhanced-editor-no-root',_0x6f5687);if(0x1===_0x227d56)return _0x202341['first']['rootName'];return Array['from'](_0x6f5687['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x26235f){return J(_0x26235f['replace'](/^[\n\s]*/g,''))?_0x26235f['replace'](/\s+/g,''):_0x26235f;}function J(_0x3febe6){return _0x3febe6['startsWith']('<');}function G(_0x477ea4){const _0xb8b2f4=[_0x4a1776['lineWrapping'],_0x4fb824(),_0x555b9e(),_0x3a9286(),_0x5e99fc(),_0x506624(),_0x452dcf(),_0x4c3c32(),_0x2db502(),_0xc1e156(),_0x83052e(),_0x1c6a5c(),_0x2e8f65(),_0x54e6ac(),_0x3b6bcc(),_0x54f0f8(_0x2927b5,{'fallback':!0x0})],_0x2e34f5=new _0x626692();_0xb8b2f4['push'](_0x2e34f5['of'](_0x4a1776['editable']['of'](!0x0))),'html'===_0x477ea4['syntaxLanguage']?_0xb8b2f4['push'](_0x1affd8()):_0xb8b2f4['push'](_0x5dfd24());const _0x220614=function(_0x23f9ce){if(_0x23f9ce&&'default'!==_0x23f9ce)return'dark'===_0x23f9ce?_0x2445d7:_0x23f9ce;return null;}(_0x477ea4['theme']);_0x220614&&_0xb8b2f4['push'](_0x220614),_0xb8b2f4['push'](_0x4c8e4a['of']([..._0x2f6bde,..._0x11ceac,..._0x36decd,..._0x33532f,..._0x17426d,{'key':'Tab','run':_0x5d36c7,'shift':_0x16fbf6,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x592536,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x592536,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x496980,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x3f978f=new _0x4a1776({'extensions':_0xb8b2f4,'parent':_0x477ea4['parent']});return _0x26693e(_0x3f978f),{'focus':()=>{_0x3f978f['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x3f978f['focus']();},'getData':()=>_0x3f978f['state']['doc']['toString'](),'setData':_0x3d7cb5=>{_0x3f978f['dispatch']({'changes':{'from':0x0,'to':_0x3f978f['state']['doc']['length'],'insert':_0x3d7cb5},'annotations':_0x25f689['addToHistory']['of'](!0x1)});},'setReadOnly':_0x46f06e=>{_0x3f978f['dispatch']({'effects':[_0x2e34f5['reconfigure'](_0x4a1776['editable']['of'](!_0x46f06e))]});},'destroy':()=>{_0x3f978f['destroy']();},'instance':_0x3f978f};}class Q extends _0x3e61bf{['_codeEditorApi']=null;['_options'];constructor(_0x5c89c5,_0x13b237){super(_0x5c89c5),this['_options']=_0x13b237,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',(_0x142507,_0x1e15e1,_0x238bc3)=>{this['setReadOnly'](_0x238bc3);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x27796b){this['_codeEditorApi']['setData'](_0x27796b);}['setReadOnly'](_0x1f1b6a){this['_codeEditorApi']['setReadOnly'](_0x1f1b6a);}}const W='SourceEditingEnhancedMode';class X extends _0x3a9a0e{constructor(_0x11e587){super(_0x11e587),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x552e53)['on']('change:hasAny',(_0xbc9834,_0x3f7a95,_0x3d6c5a)=>{_0x3d6c5a?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x2dbf4b=this['editor'];for(const _0x54dd6a of _0x2dbf4b['commands']['names']())['replaceSource','editSource']['includes'](_0x54dd6a)||_0x2dbf4b['commands']['get'](_0x54dd6a)['forceDisabled'](W);}['_enableCommands'](){const _0x3243ab=this['editor'];for(const _0x2b3f6e of _0x3243ab['commands']['commands']())_0x2b3f6e['clearForceDisabled'](W);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2b706f=this['editor'],_0x204439=_0x2b706f['locale'],_0x311654=_0x2b706f['plugins']['get']('Dialog'),_0x1b3682=V(_0x2b706f),_0x4a0f38=_0x2b706f['data']['get']({'rootName':_0x1b3682}),_0x2f1109=J(_0x458fd8=_0x4a0f38)?_0x44ef9c(_0x458fd8):_0x458fd8;var _0x458fd8;const _0x14014a=new Q(_0x204439,{'syntaxLanguage':_0x2b706f['plugins']['has']('Markdown')?'markdown':'html','theme':_0x2b706f['config']['get']('sourceEditingEnhanced.theme')});let _0x30311a=!0x0;const _0x2f53ff=_0x2d6731=>{if(!_0x30311a)return;return Z(_0x14014a['getData']())!==Z(_0x2f1109)?window['confirm'](H(_0x204439,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x2d6731['stop']():void 0x0;};_0x311654['show']({'id':'sourceEditingEnhanced','title':H(_0x204439,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x14014a,'actionButtons':[{'label':H(_0x204439,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x311654['hide']();}},{'label':H(_0x204439,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x396c90=Z(_0x14014a['getData']())!==Z(_0x2f1109);(_0x396c90&&_0x2b706f['execute']('replaceSource',_0x14014a['getData']()),_0x30311a=!0x1,_0x311654['hide'](),_0x396c90&&'editables'in _0x2b706f['ui']['view'])&&_0x2b706f['ui']['view']['editables'][_0x1b3682]['element']['focus']();},'onCreate':_0x208fda=>{_0x208fda['set']('isEnabled',!_0x2b706f['isReadOnly']),_0x208fda['bind']('isEnabled')['to'](_0x2b706f,'isReadOnly',this,'isEnabled',(_0x472173,_0x1856a9)=>!_0x472173&&_0x1856a9);}}],'onHide':()=>{this['_enableCommands'](),_0x311654['off']('hide',_0x2f53ff),_0x14014a['destroy']();},'onShow':()=>{_0x14014a['bind']('isReadOnly')['to'](_0x2b706f,'isReadOnly',this,'isEnabled',(_0x3ecb71,_0x128387)=>_0x3ecb71||!_0x128387),_0x14014a['setData'](_0x2f1109),_0x14014a['focus'](),_0x311654['on']('hide',_0x2f53ff,{'priority':'highest'}),this['_disableCommands']();}});}}class $ extends _0x5d082f{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x552e53];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2b81a4=this['editor'],_0x35cfca=_0x2b81a4['locale'],_0x30d183=new X(_0x2b81a4);_0x2b81a4['commands']['add']('editSource',_0x30d183),_0x2b81a4['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x475596=this['_createButton'](_0x4bf664,_0x30d183);return _0x475596['set']({'label':H(_0x35cfca,'Source'),'icon':_0xe93b31,'tooltip':H(_0x35cfca,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x475596;}),_0x2b81a4['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x998e04=this['_createButton'](_0x289b2d,_0x30d183,!0x0);return _0x998e04['set']({'label':H(_0x35cfca,'Edit\x20source\x20modal\x20label'),'icon':_0xe93b31,'role':'menuitemcheckbox'}),_0x998e04;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x2f026b){const _0x28452e=_0x51a380([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]),_0x245620=0x5dba9314,_0x3a3328=0x5dbd1a84^_0x245620,_0x49e734=window[_0x51a380([0x44,0x61,0x74,0x65])][_0x51a380([0x6e,0x6f,0x77])](),_0x354171=_0x2f026b[_0x51a380([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xbc8a04=new window[(_0x51a380([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e712a=>{_0x354171[_0x51a380([0x6f,0x6e,0x63,0x65])](_0x51a380([0x72,0x65,0x61,0x64,0x79]),_0x5e712a);}),_0x185389={[_0x51a380([0x6b,0x74,0x79])]:_0x51a380([0x45,0x43]),[_0x51a380([0x75,0x73,0x65])]:_0x51a380([0x73,0x69,0x67]),[_0x51a380([0x63,0x72,0x76])]:_0x51a380([0x50,0x2d,0x32,0x35,0x36]),[_0x51a380([0x78])]:_0x51a380([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]),[_0x51a380([0x79])]:_0x51a380([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]),[_0x51a380([0x61,0x6c,0x67])]:_0x51a380([0x45,0x53,0x32,0x35,0x36])},_0x24a254=_0x354171[_0x51a380([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51a380([0x67,0x65,0x74])](_0x51a380([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x217e56(){let _0xdde920,_0x3a10ea=null,_0x25114a=null;try{if(_0x24a254==_0x51a380([0x47,0x50,0x4c]))return _0x51a380([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdde920=_0x163d19(),!_0xdde920)return _0x51a380([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdde920[_0x51a380([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25114a=_0x27b573(_0xdde920[_0x51a380([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdde920[_0x51a380([0x6a,0x74,0x69])])),await _0xebfe08()?_0x5df672()?_0x3a8613()?_0x51a380([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18457e()?(_0xdde920[_0x51a380([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51a380([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a10ea=_0x44511c(_0x51a380([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c1c32()):_0x51a380([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51a380([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51a380([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51a380([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a8613(){const _0x2561ae=[_0x51a380([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51a380([0x74,0x72,0x69,0x61,0x6c])][_0x51a380([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdde920[_0x51a380([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49e734/0x3e8:0xe10*_0x3a3328;return _0xdde920[_0x51a380([0x65,0x78,0x70])]<_0x2561ae;}function _0x5df672(){const _0x1fcb78=_0xdde920[_0x51a380([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1fcb78&&(!!_0x1fcb78[_0x51a380([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51a380([0x2a]))||!!_0x1fcb78[_0x51a380([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51a380([0x53,0x45,0x45])));}function _0x18457e(){const _0x4da66c=_0xdde920[_0x51a380([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4da66c||0x0==_0x4da66c[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ea920}=new URL(window[_0x51a380([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4da66c[_0x51a380([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ea920))return!0x0;const _0x40268f=_0x3ea920[_0x51a380([0x73,0x70,0x6c,0x69,0x74])](_0x51a380([0x2e]));return _0x4da66c[_0x51a380([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1aa21e=>_0x1aa21e[_0x51a380([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51a380([0x2a])))[_0x51a380([0x6d,0x61,0x70])](_0x82bb2b=>_0x82bb2b[_0x51a380([0x73,0x70,0x6c,0x69,0x74])](_0x51a380([0x2e])))[_0x51a380([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1bf96c=>_0x1bf96c[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40268f[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51a380([0x6d,0x61,0x70])](_0x35a4fc=>Array(_0x40268f[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x35a4fc[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51a380([0x66,0x69,0x6c,0x6c])](_0x35a4fc[0x0]===_0x51a380([0x2a])?_0x51a380([0x2a]):'')[_0x51a380([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x35a4fc))[_0x51a380([0x73,0x6f,0x6d,0x65])](_0x2fd276=>_0x40268f[_0x51a380([0x65,0x76,0x65,0x72,0x79])]((_0x422b37,_0x424b54)=>_0x2fd276[_0x424b54]===_0x422b37||_0x2fd276[_0x424b54]===_0x51a380([0x2a])));}function _0x3c1c32(){return _0x3a10ea&&_0x25114a?new window[(_0x51a380([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x563d2f,_0x53dd79)=>{_0x3a10ea[_0x51a380([0x74,0x68,0x65,0x6e])](_0x563d2f,_0x53dd79),_0x25114a[_0x51a380([0x74,0x68,0x65,0x6e])](_0x25cf8c=>{_0x25cf8c!=_0x51a380([0x56,0x61,0x6c,0x69,0x64])&&_0x563d2f(_0x25cf8c);},_0x53dd79);}):_0x3a10ea||_0x25114a||_0x51a380([0x56,0x61,0x6c,0x69,0x64]);}}function _0x27b573(_0x1141cf,_0x1e3a4f){return new window[(_0x51a380([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39d1fb=>{if(_0x4b5f70())return _0x39d1fb(_0x51a380([0x56,0x61,0x6c,0x69,0x64]));_0x16572a(),_0x354171[_0x51a380([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51a380([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x580657=!0x1;const _0x25cf46=_0x2ee657();function _0x1005c0(_0x5265a8){return!!_0x5265a8&&(typeof _0x5265a8===_0x51a380([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5265a8===_0x51a380([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5265a8[_0x51a380([0x74,0x68,0x65,0x6e])]===_0x51a380([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5265a8[_0x51a380([0x63,0x61,0x74,0x63,0x68])]===_0x51a380([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2bb5fe(_0x3214d8){_0x24cab0(_0x3214d8)[_0x51a380([0x74,0x68,0x65,0x6e])](_0x381ee5=>{if(!_0x381ee5||_0x381ee5[_0x51a380([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51a380([0x6f,0x6b]))return _0x51a380([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x308530(_0x1321f7(_0x25cf46+_0x1e3a4f))!=_0x381ee5[_0x51a380([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51a380([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51a380([0x56,0x61,0x6c,0x69,0x64]);})[_0x51a380([0x74,0x68,0x65,0x6e])](_0x707226=>(_0xef460a(),_0x707226),()=>{const _0x5efb99=_0x432ebe();return null==_0x5efb99?(_0xef460a(),_0x51a380([0x56,0x61,0x6c,0x69,0x64])):_0x51a380(_0x49e734-_0x5efb99>(0x79b61714^_0x245620)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51a380([0x74,0x68,0x65,0x6e])](_0x39d1fb)[_0x51a380([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39d1fb(_0x51a380([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f3f57=0x5d8c7d94^_0x245620;function _0xef460a(){const _0x3cf8a3=_0x51a380([0x6c,0x6c,0x63,0x74,0x2d])+_0x308530(_0x1321f7(_0x1141cf)),_0x3e32b6=_0x4d70bc(_0x308530(window[_0x51a380([0x4d,0x61,0x74,0x68])][_0x51a380([0x63,0x65,0x69,0x6c])](_0x49e734/_0x4f3f57)));window[_0x51a380([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51a380([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cf8a3,_0x3e32b6);}function _0x432ebe(){const _0x2f5bc1=_0x51a380([0x6c,0x6c,0x63,0x74,0x2d])+_0x308530(_0x1321f7(_0x1141cf)),_0x1f05ab=window[_0x51a380([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51a380([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f5bc1);return _0x1f05ab?window[_0x51a380([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d70bc(_0x1f05ab),0x10)*_0x4f3f57:null;}function _0x24cab0(_0xd4f082){return new window[(_0x51a380([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3763db,_0x5e283f)=>{_0xd4f082[_0x51a380([0x74,0x68,0x65,0x6e])](_0x3763db,_0x5e283f),window[_0x51a380([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5e283f,0x5dbb47d4^_0x245620);});}}_0x354171[_0x51a380([0x6f,0x6e])](_0x51a380([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26e7dc,_0x47e2f7)=>{if(_0x47e2f7[0x0]!=_0x1141cf)return _0x39d1fb(_0x51a380([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47e2f7[0x1]={..._0x47e2f7[0x1],[_0x51a380([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x25cf46};},{[_0x51a380([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51a380([0x68,0x69,0x67,0x68])}),_0x354171[_0x51a380([0x6f,0x6e])](_0x51a380([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x423000=>{_0x1005c0(_0x423000[_0x51a380([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x580657=!0x0,_0x2bb5fe(_0x423000[_0x51a380([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51a380([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51a380([0x6c,0x6f,0x77])}),_0xbc8a04[_0x51a380([0x74,0x68,0x65,0x6e])](()=>{_0x580657||_0x39d1fb(_0x51a380([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b5f70(){return _0x354171[_0x51a380([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51a380([0x76,0x69,0x65,0x77])][_0x51a380([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51a380([0x61,0x75,0x74,0x6f]);}function _0x16572a(){_0x354171[_0x51a380([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51a380([0x76,0x69,0x65,0x77])][_0x51a380([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51a380([0x61,0x75,0x74,0x6f]);}}function _0x44511c(_0x12cd94){const _0x3a9696=[new window[(_0x51a380([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24f098=>setTimeout(_0x24f098,0x5db3add8^_0x245620)),_0xbc8a04[_0x51a380([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51a380([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2372a2=>{let _0x938cfa=0x0;_0x354171[_0x51a380([0x6d,0x6f,0x64,0x65,0x6c])][_0x51a380([0x6f,0x6e])](_0x51a380([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x15fc55,_0x4a445a)=>{_0x4a445a[0x0][_0x51a380([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x938cfa++,_0x938cfa==(0x5dba96fc^_0x245620)&&(_0x2372a2(),_0x15fc55[_0x51a380([0x6f,0x66,0x66])]());});}))];return window[_0x51a380([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51a380([0x72,0x61,0x63,0x65])](_0x3a9696)[_0x51a380([0x74,0x68,0x65,0x6e])](()=>_0x12cd94);}async function _0x1dc863(){await _0xbc8a04,_0x354171[_0x51a380([0x6d,0x6f,0x64,0x65,0x6c])][_0x51a380([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53d9c9,_0x354171[_0x51a380([0x6d,0x6f,0x64,0x65,0x6c])][_0x51a380([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53d9c9,_0x354171[_0x51a380([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51a380([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x186576(_0x4fd090){const _0x3ea01d=_0x1e6974();_0x354171[_0x3ea01d]=_0x51a380([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])+_0x4fd090,_0x4fd090!=_0x51a380([0x56,0x61,0x6c,0x69,0x64])&&_0x1dc863();}function _0x1e6974(){const _0x4d9bb1=window[_0x51a380([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51a380([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51a380([0x6e,0x6f,0x77])]())[_0x51a380([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51a380([0x2e]),'');let _0x3a4496=_0x51a380([0x4e]);for(let _0x2da6c8=0x0;_0x2da6c8<_0x4d9bb1[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2da6c8+=0x2){let _0x504f30=window[_0x51a380([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d9bb1[_0x51a380([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2da6c8,_0x2da6c8+0x2));_0x504f30>=_0x28452e[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x504f30-=_0x28452e[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a4496+=_0x28452e[_0x504f30];}return _0x3a4496;}function _0x163d19(){const _0x2586dd=_0x24a254[_0x51a380([0x73,0x70,0x6c,0x69,0x74])](_0x51a380([0x2e]));if(0x3!=_0x2586dd[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x9cfa8e(_0x2586dd[0x1]);function _0x9cfa8e(_0x47e09f){const _0x154746=_0x4dec91(_0x47e09f);return _0x154746&&_0x17e496()?_0x154746:null;function _0x17e496(){const _0x29a16a=_0x154746[_0x51a380([0x6a,0x74,0x69])],_0x7998cb=window[_0x51a380([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29a16a[_0x51a380([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29a16a[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37ddd1={..._0x154746,[_0x51a380([0x6a,0x74,0x69])]:_0x29a16a[_0x51a380([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29a16a[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37ddd1[_0x51a380([0x76,0x63])],_0x1321f7(_0x37ddd1)==_0x7998cb;}}}async function _0xebfe08(){let _0x13a6f1=!0x0;try{const _0x3f61b6=_0x24a254[_0x51a380([0x73,0x70,0x6c,0x69,0x74])](_0x51a380([0x2e])),[_0x32368e,_0x5d57a7,_0x106f36]=_0x3f61b6;return _0x41256d(_0x32368e),await _0x4772af(_0x32368e,_0x5d57a7,_0x106f36),_0x13a6f1;}catch{return!0x1;}function _0x41256d(_0x23d57f){const _0x4c8a65=_0x4dec91(_0x23d57f);_0x4c8a65&&_0x4c8a65[_0x51a380([0x61,0x6c,0x67])]==_0x51a380([0x45,0x53,0x32,0x35,0x36])||(_0x13a6f1=!0x1);}async function _0x4772af(_0x2f6463,_0x255c4a,_0x461e4b){const _0x37f078=window[_0x51a380([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51a380([0x66,0x72,0x6f,0x6d])](_0x3dcbce(_0x461e4b),_0xffe993=>_0xffe993[_0x51a380([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x249242=new window[(_0x51a380([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51a380([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f6463+_0x51a380([0x2e])+_0x255c4a),_0x144276=window[_0x51a380([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51a380([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x144276)return;const _0x22ef7a=await _0x144276[_0x51a380([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51a380([0x6a,0x77,0x6b]),_0x185389,{[_0x51a380([0x6e,0x61,0x6d,0x65])]:_0x51a380([0x45,0x43,0x44,0x53,0x41]),[_0x51a380([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51a380([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51a380([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x144276[_0x51a380([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51a380([0x6e,0x61,0x6d,0x65])]:_0x51a380([0x45,0x43,0x44,0x53,0x41]),[_0x51a380([0x68,0x61,0x73,0x68])]:{[_0x51a380([0x6e,0x61,0x6d,0x65])]:_0x51a380([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22ef7a,_0x37f078,_0x249242)||(_0x13a6f1=!0x1);}}function _0x4dec91(_0x32f926){return _0x32f926[_0x51a380([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51a380([0x65,0x79]))?JSON[_0x51a380([0x70,0x61,0x72,0x73,0x65])](_0x3dcbce(_0x32f926)):null;}function _0x3dcbce(_0x25802d){return window[_0x51a380([0x61,0x74,0x6f,0x62])](_0x25802d[_0x51a380([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51a380([0x2b]))[_0x51a380([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51a380([0x2f])));}function _0x1321f7(_0x3fc369){let _0x1f7037=0x1505;function _0x384880(_0xb79dd0){for(let _0x520658=0x0;_0x520658<_0xb79dd0[_0x51a380([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x520658++){const _0x586ca2=_0xb79dd0[_0x51a380([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x520658);_0x1f7037=(_0x1f7037<<0x5)+_0x1f7037+_0x586ca2,_0x1f7037&=_0x1f7037;}}function _0x47ae16(_0x12db67){Array[_0x51a380([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x12db67)?_0x12db67[_0x51a380([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47ae16):_0x12db67&&typeof _0x12db67==_0x51a380([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51a380([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x12db67)[_0x51a380([0x73,0x6f,0x72,0x74])]()[_0x51a380([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e5be7,_0x132445])=>{_0x384880(_0x5e5be7),_0x47ae16(_0x132445);}):_0x384880(window[_0x51a380([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x12db67));}return _0x47ae16(_0x3fc369),_0x1f7037>>>0x0;}function _0x308530(_0x110a91){return _0x110a91[_0x51a380([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51a380([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51a380([0x30]));}function _0x4d70bc(_0x2ad6d4){return _0x2ad6d4[_0x51a380([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51a380([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51a380([0x6a,0x6f,0x69,0x6e])]('');}function _0x53d9c9(){}function _0x51a380(_0x2f5269){return _0x2f5269['map'](_0x449c05=>String['fromCharCode'](_0x449c05))['join']('');}_0x186576(await _0x217e56());}(this);}['_createButton'](_0x4c5f0a,_0x5ce8d7,_0x2616df=!0x1){const _0x40218f=new _0x4c5f0a(this['editor']['locale']);return _0x40218f['set']({'withText':_0x2616df,'isToggleable':!0x1}),_0x40218f['bind']('isEnabled')['to'](_0x5ce8d7,'isEnabled'),this['listenTo'](_0x40218f,'execute',()=>_0x5ce8d7['execute']()),_0x40218f;}['_registerKeybindings'](){const _0x22d913=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':H(_0x22d913,'Source\x20Editing\x20Enhanced')});const _0x7d575d=_0x1fd41f['isMac']||_0x1fd41f['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':H(_0x22d913,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':H(_0x22d913,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':H(_0x22d913,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':H(_0x22d913,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':H(_0x22d913,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':H(_0x22d913,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':H(_0x22d913,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x7d575d?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':H(_0x22d913,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':H(_0x22d913,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':H(_0x22d913,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':H(_0x22d913,'Select\x20line'),'keystroke':_0x7d575d?'Ctrl!+L':'Alt+L'},{'label':H(_0x22d913,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x7d575d?'Alt+Shift+M':'Ctrl+M'},{'label':H(_0x22d913,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':H(_0x22d913,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':H(_0x22d913,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':H(_0x22d913,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':H(_0x22d913,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x7d575d?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ee extends _0x3a9a0e{constructor(_0x45220f){super(_0x45220f),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x4125ca,_0x2b82ae){const _0x698eeb=this['editor'],_0x554335=_0x2b82ae?.['rootName']??V(_0x698eeb);_0x698eeb['data']['set']({[_0x554335]:_0x4125ca},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class te extends _0x5d082f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[$];}constructor(_0x2cbb46){super(_0x2cbb46),_0x2cbb46['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ee(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x303802=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa36570;for(const _0x128838 in _0x303802){const _0x4007d9=_0x128838,_0x9d6917=_0x303802[_0x4007d9];if('sourceEditingEnhancedLicenseKeyValid'==_0x9d6917||'sourceEditingEnhancedLicenseKeyInvalid'==_0x9d6917||'sourceEditingEnhancedLicenseKeyExpired'==_0x9d6917||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x9d6917||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x9d6917||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x9d6917||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x9d6917){delete _0x303802[_0x4007d9],_0xa36570=_0x9d6917,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0xa36570&&_0x303802['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0xa36570&&_0x303802['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0xa36570&&_0x303802['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0xa36570&&_0x303802['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0xa36570&&_0x303802['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0xa36570&&_0x303802['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x5daf51=this['editor'],_0x5bd1d4=_0x5daf51['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x5bd1d4&&_0x5daf51['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x3fa971('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x5bd1d4&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x3feb57=>_0x5daf51['plugins']['has'](_0x3feb57))&&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.'),_0x5daf51['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{X as EditSourceCommand,ee as ReplaceSourceCommand,te as SourceEditingEnhanced};
23
+ import{Command as _0x14fb79,PendingActions as _0x430b89,Plugin as _0x16f4e3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x50fdf3,formatHtml as _0xfecdad,env as _0x30c5b7,uid as _0x3caf34}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x4cb09b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x114df0,ButtonView as _0x3be227,MenuBarMenuListItemButtonView as _0x4d5b16}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x5bbee3,crosshairCursor as _0x81ad54,drawSelection as _0x3f3106,dropCursor as _0x4f546a,lineNumbers as _0x327b39,highlightActiveLine as _0x15adf8,highlightActiveLineGutter as _0xe497b3,highlightSpecialChars as _0x1272b5,rectangularSelection as _0x3a20f3,keymap as _0x2d4560}from'@codemirror/view';import{Compartment as _0x10bfac,Transaction as _0x457340}from'@codemirror/state';import{bracketMatching as _0x592c4c,foldGutter as _0x447c61,indentOnInput as _0x585d58,syntaxHighlighting as _0x53b0b2,defaultHighlightStyle as _0x170c73,foldKeymap as _0x9a3a58}from'@codemirror/language';import{toggleTabFocusMode as _0x539554,history as _0x5f5951,defaultKeymap as _0x46aa98,historyKeymap as _0x3f39f3,indentLess as _0x3dab7a,indentMore as _0x45a08c,redo as _0x37b21e,undo as _0x367adc}from'@codemirror/commands';import{autocompletion as _0x32d675,closeBrackets as _0x1b92c8,closeBracketsKeymap as _0x28c7b4,completionKeymap as _0x31ff24}from'@codemirror/autocomplete';import{html as _0x428118}from'@codemirror/lang-html';import{markdown as _0x2c69fb}from'@codemirror/lang-markdown';import{oneDark as _0x2ae214}from'@codemirror/theme-one-dark';function H(_0xcabe4b,_0x3390b7){const t=_0xcabe4b['t'];switch(_0x3390b7){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 _0x3390b7;}}function V(_0x1fb72e){const _0x3f922f=_0x1fb72e['editing']['view']['document']['roots'],_0x5ee01c=_0x3f922f['length'];if(0x0===_0x5ee01c)throw new _0x50fdf3('source-editing-enhanced-editor-no-root',_0x1fb72e);if(0x1===_0x5ee01c)return _0x3f922f['first']['rootName'];return Array['from'](_0x1fb72e['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x5de863){return J(_0x5de863['replace'](/^[\n\s]*/g,''))?_0x5de863['replace'](/\s+/g,''):_0x5de863;}function J(_0x1898af){return _0x1898af['startsWith']('<');}function G(_0xd60f4a){const _0x555fb4=[_0x5bbee3['lineWrapping'],_0x32d675(),_0x592c4c(),_0x1b92c8(),_0x81ad54(),_0x3f3106(),_0x4f546a(),_0x327b39(),_0x447c61(),_0x15adf8(),_0xe497b3(),_0x1272b5(),_0x5f5951(),_0x585d58(),_0x3a20f3(),_0x53b0b2(_0x170c73,{'fallback':!0x0})],_0x327085=new _0x10bfac();_0x555fb4['push'](_0x327085['of'](_0x5bbee3['editable']['of'](!0x0))),'html'===_0xd60f4a['syntaxLanguage']?_0x555fb4['push'](_0x428118()):_0x555fb4['push'](_0x2c69fb());const _0x563669=function(_0x4bee75){if(_0x4bee75&&'default'!==_0x4bee75)return'dark'===_0x4bee75?_0x2ae214:_0x4bee75;return null;}(_0xd60f4a['theme']);_0x563669&&_0x555fb4['push'](_0x563669),_0x555fb4['push'](_0x2d4560['of']([..._0x28c7b4,..._0x46aa98,..._0x3f39f3,..._0x9a3a58,..._0x31ff24,{'key':'Tab','run':_0x45a08c,'shift':_0x3dab7a,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x37b21e,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x37b21e,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x367adc,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0xd7c73c=new _0x5bbee3({'extensions':_0x555fb4,'parent':_0xd60f4a['parent']});return _0x539554(_0xd7c73c),{'focus':()=>{_0xd7c73c['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0xd7c73c['focus']();},'getData':()=>_0xd7c73c['state']['doc']['toString'](),'setData':_0x4c6933=>{_0xd7c73c['dispatch']({'changes':{'from':0x0,'to':_0xd7c73c['state']['doc']['length'],'insert':_0x4c6933},'annotations':_0x457340['addToHistory']['of'](!0x1)});},'setReadOnly':_0x42e9bb=>{_0xd7c73c['dispatch']({'effects':[_0x327085['reconfigure'](_0x5bbee3['editable']['of'](!_0x42e9bb))]});},'destroy':()=>{_0xd7c73c['destroy']();},'instance':_0xd7c73c};}class Q extends _0x114df0{['_codeEditorApi']=null;['_options'];constructor(_0x1b8113,_0x41f40f){super(_0x1b8113),this['_options']=_0x41f40f,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',(_0x458efa,_0x38fcaa,_0x5255a2)=>{this['setReadOnly'](_0x5255a2);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x46a42a){this['_codeEditorApi']['setData'](_0x46a42a);}['setReadOnly'](_0x10cfad){this['_codeEditorApi']['setReadOnly'](_0x10cfad);}}const W='SourceEditingEnhancedMode';class X extends _0x14fb79{constructor(_0x3c38cd){super(_0x3c38cd),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x430b89)['on']('change:hasAny',(_0x4381c7,_0x260927,_0x43d560)=>{_0x43d560?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x4c9a2d=this['editor'];for(const _0x48bf46 of _0x4c9a2d['commands']['names']())['replaceSource','editSource']['includes'](_0x48bf46)||_0x4c9a2d['commands']['get'](_0x48bf46)['forceDisabled'](W);}['_enableCommands'](){const _0x1d4691=this['editor'];for(const _0x5a86f7 of _0x1d4691['commands']['commands']())_0x5a86f7['clearForceDisabled'](W);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3b5579=this['editor'],_0x3c6e38=_0x3b5579['locale'],_0x19f49f=_0x3b5579['plugins']['get']('Dialog'),_0x4fa6db=V(_0x3b5579),_0x11d013=_0x3b5579['data']['get']({'rootName':_0x4fa6db}),_0x212bb7=J(_0x41b974=_0x11d013)?_0xfecdad(_0x41b974):_0x41b974;var _0x41b974;const _0x345d26=new Q(_0x3c6e38,{'syntaxLanguage':_0x3b5579['plugins']['has']('Markdown')?'markdown':'html','theme':_0x3b5579['config']['get']('sourceEditingEnhanced.theme')});let _0x27a4a2=!0x0;const _0x1a7ef2=_0x5b540f=>{if(!_0x27a4a2)return;return Z(_0x345d26['getData']())!==Z(_0x212bb7)?window['confirm'](H(_0x3c6e38,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x5b540f['stop']():void 0x0;};_0x19f49f['show']({'id':'sourceEditingEnhanced','title':H(_0x3c6e38,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x345d26,'actionButtons':[{'label':H(_0x3c6e38,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x19f49f['hide']();}},{'label':H(_0x3c6e38,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x14392b=Z(_0x345d26['getData']())!==Z(_0x212bb7);(_0x14392b&&_0x3b5579['execute']('replaceSource',_0x345d26['getData']()),_0x27a4a2=!0x1,_0x19f49f['hide'](),_0x14392b&&'editables'in _0x3b5579['ui']['view'])&&_0x3b5579['ui']['view']['editables'][_0x4fa6db]['element']['focus']();},'onCreate':_0x9e08dc=>{_0x9e08dc['set']('isEnabled',!_0x3b5579['isReadOnly']),_0x9e08dc['bind']('isEnabled')['to'](_0x3b5579,'isReadOnly',this,'isEnabled',(_0x47b49d,_0x41d8aa)=>!_0x47b49d&&_0x41d8aa);}}],'onHide':()=>{this['_enableCommands'](),_0x19f49f['off']('hide',_0x1a7ef2),_0x345d26['destroy']();},'onShow':()=>{_0x345d26['bind']('isReadOnly')['to'](_0x3b5579,'isReadOnly',this,'isEnabled',(_0x1ad90c,_0x1ecca5)=>_0x1ad90c||!_0x1ecca5),_0x345d26['setData'](_0x212bb7),_0x345d26['focus'](),_0x19f49f['on']('hide',_0x1a7ef2,{'priority':'highest'}),this['_disableCommands']();}});}}class $ extends _0x16f4e3{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x430b89];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xc1d7fc=this['editor'],_0x552976=_0xc1d7fc['locale'],_0x3aef79=new X(_0xc1d7fc);_0xc1d7fc['commands']['add']('editSource',_0x3aef79),_0xc1d7fc['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x527017=this['_createButton'](_0x3be227,_0x3aef79);return _0x527017['set']({'label':H(_0x552976,'Source'),'icon':_0x4cb09b,'tooltip':H(_0x552976,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x527017;}),_0xc1d7fc['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x111e81=this['_createButton'](_0x4d5b16,_0x3aef79,!0x0);return _0x111e81['set']({'label':H(_0x552976,'Edit\x20source\x20modal\x20label'),'icon':_0x4cb09b,'role':'menuitemcheckbox'}),_0x111e81;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x298b03){const _0x1e16a7=_0x388085([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]),_0x728346=0x5dba9314,_0x343250=0x5dbd1ad4^_0x728346,_0x59a24e=window[_0x388085([0x44,0x61,0x74,0x65])][_0x388085([0x6e,0x6f,0x77])](),_0x49348d=_0x298b03[_0x388085([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c3c6d=new window[(_0x388085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45e00c=>{_0x49348d[_0x388085([0x6f,0x6e,0x63,0x65])](_0x388085([0x72,0x65,0x61,0x64,0x79]),_0x45e00c);}),_0x3654cc={[_0x388085([0x6b,0x74,0x79])]:_0x388085([0x45,0x43]),[_0x388085([0x75,0x73,0x65])]:_0x388085([0x73,0x69,0x67]),[_0x388085([0x63,0x72,0x76])]:_0x388085([0x50,0x2d,0x32,0x35,0x36]),[_0x388085([0x78])]:_0x388085([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]),[_0x388085([0x79])]:_0x388085([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]),[_0x388085([0x61,0x6c,0x67])]:_0x388085([0x45,0x53,0x32,0x35,0x36])},_0x450a=_0x49348d[_0x388085([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x388085([0x67,0x65,0x74])](_0x388085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x27e583(){let _0xa76bd9,_0x2caf25=null,_0x1a09dc=null;try{if(_0x450a==_0x388085([0x47,0x50,0x4c]))return _0x388085([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa76bd9=_0x40494b(),!_0xa76bd9)return _0x388085([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa76bd9[_0x388085([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a09dc=_0xefd06f(_0xa76bd9[_0x388085([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa76bd9[_0x388085([0x6a,0x74,0x69])])),await _0x563ca1()?_0x500a8d()?_0xb7720e()?_0x388085([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3abc01()?(_0xa76bd9[_0x388085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x388085([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2caf25=_0x5d42fb(_0x388085([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb4b585()):_0x388085([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x388085([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x388085([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x388085([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb7720e(){const _0xcecdc6=[_0x388085([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x388085([0x74,0x72,0x69,0x61,0x6c])][_0x388085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa76bd9[_0x388085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59a24e/0x3e8:0xe10*_0x343250;return _0xa76bd9[_0x388085([0x65,0x78,0x70])]<_0xcecdc6;}function _0x500a8d(){const _0xa51756=_0xa76bd9[_0x388085([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa51756&&(!!_0xa51756[_0x388085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x388085([0x2a]))||!!_0xa51756[_0x388085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x388085([0x53,0x45,0x45])));}function _0x3abc01(){const _0x2e4c37=_0xa76bd9[_0x388085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e4c37||0x0==_0x2e4c37[_0x388085([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x241985}=new URL(window[_0x388085([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2e4c37[_0x388085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x241985))return!0x0;const _0x54613b=_0x241985[_0x388085([0x73,0x70,0x6c,0x69,0x74])](_0x388085([0x2e]));return _0x2e4c37[_0x388085([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xaf85ae=>_0xaf85ae[_0x388085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x388085([0x2a])))[_0x388085([0x6d,0x61,0x70])](_0x3ccd1d=>_0x3ccd1d[_0x388085([0x73,0x70,0x6c,0x69,0x74])](_0x388085([0x2e])))[_0x388085([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x447bd2=>_0x447bd2[_0x388085([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x54613b[_0x388085([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x388085([0x6d,0x61,0x70])](_0x5439d9=>Array(_0x54613b[_0x388085([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5439d9[_0x388085([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x388085([0x66,0x69,0x6c,0x6c])](_0x5439d9[0x0]===_0x388085([0x2a])?_0x388085([0x2a]):'')[_0x388085([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5439d9))[_0x388085([0x73,0x6f,0x6d,0x65])](_0x1dc344=>_0x54613b[_0x388085([0x65,0x76,0x65,0x72,0x79])]((_0x331eea,_0x513c35)=>_0x1dc344[_0x513c35]===_0x331eea||_0x1dc344[_0x513c35]===_0x388085([0x2a])));}function _0xb4b585(){return _0x2caf25&&_0x1a09dc?new window[(_0x388085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d6459,_0x2a5968)=>{_0x2caf25[_0x388085([0x74,0x68,0x65,0x6e])](_0x2d6459,_0x2a5968),_0x1a09dc[_0x388085([0x74,0x68,0x65,0x6e])](_0x161c8d=>{_0x161c8d!=_0x388085([0x56,0x61,0x6c,0x69,0x64])&&_0x2d6459(_0x161c8d);},_0x2a5968);}):_0x2caf25||_0x1a09dc||_0x388085([0x56,0x61,0x6c,0x69,0x64]);}}function _0xefd06f(_0xf5761b,_0x5edb7){return new window[(_0x388085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x457d0d=>{if(_0x5bb8ab())return _0x457d0d(_0x388085([0x56,0x61,0x6c,0x69,0x64]));_0x15a351(),_0x49348d[_0x388085([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x388085([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2cd001=!0x1;const _0x5583aa=_0x3caf34();function _0x56059d(_0x7ef1a8){return!!_0x7ef1a8&&(typeof _0x7ef1a8===_0x388085([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7ef1a8===_0x388085([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7ef1a8[_0x388085([0x74,0x68,0x65,0x6e])]===_0x388085([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7ef1a8[_0x388085([0x63,0x61,0x74,0x63,0x68])]===_0x388085([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46a089(_0x2ae014){_0x749c1e(_0x2ae014)[_0x388085([0x74,0x68,0x65,0x6e])](_0x457677=>{if(!_0x457677||_0x457677[_0x388085([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x388085([0x6f,0x6b]))return _0x388085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x16f71a(_0x260161(_0x5583aa+_0x5edb7))!=_0x457677[_0x388085([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x388085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x388085([0x56,0x61,0x6c,0x69,0x64]);})[_0x388085([0x74,0x68,0x65,0x6e])](_0x154cfe=>(_0x5a48d4(),_0x154cfe),()=>{const _0x152457=_0x5f3d42();return null==_0x152457?(_0x5a48d4(),_0x388085([0x56,0x61,0x6c,0x69,0x64])):_0x388085(_0x59a24e-_0x152457>(0x79b61714^_0x728346)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x388085([0x74,0x68,0x65,0x6e])](_0x457d0d)[_0x388085([0x63,0x61,0x74,0x63,0x68])](()=>{_0x457d0d(_0x388085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x471b2c=0x5d8c7d94^_0x728346;function _0x5a48d4(){const _0x31fb80=_0x388085([0x6c,0x6c,0x63,0x74,0x2d])+_0x16f71a(_0x260161(_0xf5761b)),_0x3fae4c=_0x88590c(_0x16f71a(window[_0x388085([0x4d,0x61,0x74,0x68])][_0x388085([0x63,0x65,0x69,0x6c])](_0x59a24e/_0x471b2c)));window[_0x388085([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x388085([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31fb80,_0x3fae4c);}function _0x5f3d42(){const _0x27da1c=_0x388085([0x6c,0x6c,0x63,0x74,0x2d])+_0x16f71a(_0x260161(_0xf5761b)),_0x1f4bac=window[_0x388085([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x388085([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27da1c);return _0x1f4bac?window[_0x388085([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x88590c(_0x1f4bac),0x10)*_0x471b2c:null;}function _0x749c1e(_0x286e40){return new window[(_0x388085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2871ef,_0x465604)=>{_0x286e40[_0x388085([0x74,0x68,0x65,0x6e])](_0x2871ef,_0x465604),window[_0x388085([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x465604,0x5dbb47d4^_0x728346);});}}_0x49348d[_0x388085([0x6f,0x6e])](_0x388085([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3bc928,_0x1ef19a)=>{if(_0x1ef19a[0x0]!=_0xf5761b)return _0x457d0d(_0x388085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ef19a[0x1]={..._0x1ef19a[0x1],[_0x388085([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5583aa};},{[_0x388085([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x388085([0x68,0x69,0x67,0x68])}),_0x49348d[_0x388085([0x6f,0x6e])](_0x388085([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3f43b7=>{_0x56059d(_0x3f43b7[_0x388085([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2cd001=!0x0,_0x46a089(_0x3f43b7[_0x388085([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x388085([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x388085([0x6c,0x6f,0x77])}),_0x3c3c6d[_0x388085([0x74,0x68,0x65,0x6e])](()=>{_0x2cd001||_0x457d0d(_0x388085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5bb8ab(){return _0x49348d[_0x388085([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x388085([0x76,0x69,0x65,0x77])][_0x388085([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x388085([0x61,0x75,0x74,0x6f]);}function _0x15a351(){_0x49348d[_0x388085([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x388085([0x76,0x69,0x65,0x77])][_0x388085([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x388085([0x61,0x75,0x74,0x6f]);}}function _0x5d42fb(_0x11b1b0){const _0x65c1a=[new window[(_0x388085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x353b96=>setTimeout(_0x353b96,0x5db3add8^_0x728346)),_0x3c3c6d[_0x388085([0x74,0x68,0x65,0x6e])](()=>new window[(_0x388085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39493c=>{let _0x5dc18e=0x0;_0x49348d[_0x388085([0x6d,0x6f,0x64,0x65,0x6c])][_0x388085([0x6f,0x6e])](_0x388085([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1cbdc8,_0x534f5a)=>{_0x534f5a[0x0][_0x388085([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5dc18e++,_0x5dc18e==(0x5dba96fc^_0x728346)&&(_0x39493c(),_0x1cbdc8[_0x388085([0x6f,0x66,0x66])]());});}))];return window[_0x388085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x388085([0x72,0x61,0x63,0x65])](_0x65c1a)[_0x388085([0x74,0x68,0x65,0x6e])](()=>_0x11b1b0);}async function _0x21e9e5(){await _0x3c3c6d,_0x49348d[_0x388085([0x6d,0x6f,0x64,0x65,0x6c])][_0x388085([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x437ea8,_0x49348d[_0x388085([0x6d,0x6f,0x64,0x65,0x6c])][_0x388085([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x437ea8,_0x49348d[_0x388085([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x388085([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1cbd2d(_0x314b78){const _0x589f81=_0x380df5();_0x49348d[_0x589f81]=_0x388085([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])+_0x314b78,_0x314b78!=_0x388085([0x56,0x61,0x6c,0x69,0x64])&&_0x21e9e5();}function _0x380df5(){const _0x181adc=window[_0x388085([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x388085([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x388085([0x6e,0x6f,0x77])]())[_0x388085([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x388085([0x2e]),'');let _0x31d783=_0x388085([0x4e]);for(let _0x5e05fb=0x0;_0x5e05fb<_0x181adc[_0x388085([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e05fb+=0x2){let _0x4c6fb2=window[_0x388085([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x181adc[_0x388085([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e05fb,_0x5e05fb+0x2));_0x4c6fb2>=_0x1e16a7[_0x388085([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c6fb2-=_0x1e16a7[_0x388085([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x31d783+=_0x1e16a7[_0x4c6fb2];}return _0x31d783;}function _0x40494b(){const _0x1a49cf=_0x450a[_0x388085([0x73,0x70,0x6c,0x69,0x74])](_0x388085([0x2e]));if(0x3!=_0x1a49cf[_0x388085([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4149d8(_0x1a49cf[0x1]);function _0x4149d8(_0x12a505){const _0x33fe26=_0x322cff(_0x12a505);return _0x33fe26&&_0x35d8d2()?_0x33fe26:null;function _0x35d8d2(){const _0x4a3935=_0x33fe26[_0x388085([0x6a,0x74,0x69])],_0x53d9fd=window[_0x388085([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a3935[_0x388085([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a3935[_0x388085([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42b959={..._0x33fe26,[_0x388085([0x6a,0x74,0x69])]:_0x4a3935[_0x388085([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a3935[_0x388085([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42b959[_0x388085([0x76,0x63])],_0x260161(_0x42b959)==_0x53d9fd;}}}async function _0x563ca1(){let _0x16db8e=!0x0;try{const _0x310951=_0x450a[_0x388085([0x73,0x70,0x6c,0x69,0x74])](_0x388085([0x2e])),[_0x245d79,_0x12332b,_0x3b7414]=_0x310951;return _0x358519(_0x245d79),await _0x33f1c4(_0x245d79,_0x12332b,_0x3b7414),_0x16db8e;}catch{return!0x1;}function _0x358519(_0x29ae39){const _0x580a80=_0x322cff(_0x29ae39);_0x580a80&&_0x580a80[_0x388085([0x61,0x6c,0x67])]==_0x388085([0x45,0x53,0x32,0x35,0x36])||(_0x16db8e=!0x1);}async function _0x33f1c4(_0x3f0567,_0x11a326,_0x242251){const _0x182d44=window[_0x388085([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x388085([0x66,0x72,0x6f,0x6d])](_0x1d7ce7(_0x242251),_0x1e5317=>_0x1e5317[_0x388085([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c99c7=new window[(_0x388085([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x388085([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f0567+_0x388085([0x2e])+_0x11a326),_0x5a7911=window[_0x388085([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x388085([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a7911)return;const _0xfe730b=await _0x5a7911[_0x388085([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x388085([0x6a,0x77,0x6b]),_0x3654cc,{[_0x388085([0x6e,0x61,0x6d,0x65])]:_0x388085([0x45,0x43,0x44,0x53,0x41]),[_0x388085([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x388085([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x388085([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a7911[_0x388085([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x388085([0x6e,0x61,0x6d,0x65])]:_0x388085([0x45,0x43,0x44,0x53,0x41]),[_0x388085([0x68,0x61,0x73,0x68])]:{[_0x388085([0x6e,0x61,0x6d,0x65])]:_0x388085([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xfe730b,_0x182d44,_0x4c99c7)||(_0x16db8e=!0x1);}}function _0x322cff(_0x22d0f2){return _0x22d0f2[_0x388085([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x388085([0x65,0x79]))?JSON[_0x388085([0x70,0x61,0x72,0x73,0x65])](_0x1d7ce7(_0x22d0f2)):null;}function _0x1d7ce7(_0x46c5f5){return window[_0x388085([0x61,0x74,0x6f,0x62])](_0x46c5f5[_0x388085([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x388085([0x2b]))[_0x388085([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x388085([0x2f])));}function _0x260161(_0x50ae86){let _0x313832=0x1505;function _0xe8aa7(_0x332769){for(let _0x296f3d=0x0;_0x296f3d<_0x332769[_0x388085([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x296f3d++){const _0x171559=_0x332769[_0x388085([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x296f3d);_0x313832=(_0x313832<<0x5)+_0x313832+_0x171559,_0x313832&=_0x313832;}}function _0x14990a(_0x2e5d01){Array[_0x388085([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e5d01)?_0x2e5d01[_0x388085([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14990a):_0x2e5d01&&typeof _0x2e5d01==_0x388085([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x388085([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e5d01)[_0x388085([0x73,0x6f,0x72,0x74])]()[_0x388085([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x34acec,_0x3022b1])=>{_0xe8aa7(_0x34acec),_0x14990a(_0x3022b1);}):_0xe8aa7(window[_0x388085([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e5d01));}return _0x14990a(_0x50ae86),_0x313832>>>0x0;}function _0x16f71a(_0x2b7fd8){return _0x2b7fd8[_0x388085([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x388085([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x388085([0x30]));}function _0x88590c(_0x1192fb){return _0x1192fb[_0x388085([0x73,0x70,0x6c,0x69,0x74])]('')[_0x388085([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x388085([0x6a,0x6f,0x69,0x6e])]('');}function _0x437ea8(){}function _0x388085(_0x5b4dad){return _0x5b4dad['map'](_0x1edc13=>String['fromCharCode'](_0x1edc13))['join']('');}_0x1cbd2d(await _0x27e583());}(this);}['_createButton'](_0x202ea5,_0x3e7dea,_0x24cc45=!0x1){const _0x260031=new _0x202ea5(this['editor']['locale']);return _0x260031['set']({'withText':_0x24cc45,'isToggleable':!0x1}),_0x260031['bind']('isEnabled')['to'](_0x3e7dea,'isEnabled'),this['listenTo'](_0x260031,'execute',()=>_0x3e7dea['execute']()),_0x260031;}['_registerKeybindings'](){const _0x4a4069=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':H(_0x4a4069,'Source\x20Editing\x20Enhanced')});const _0xaf965d=_0x30c5b7['isMac']||_0x30c5b7['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':H(_0x4a4069,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':H(_0x4a4069,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':H(_0x4a4069,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':H(_0x4a4069,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':H(_0x4a4069,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':H(_0x4a4069,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':H(_0x4a4069,'Fold\x20code\x20(current\x20level)'),'keystroke':_0xaf965d?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':H(_0x4a4069,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':H(_0x4a4069,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':H(_0x4a4069,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':H(_0x4a4069,'Select\x20line'),'keystroke':_0xaf965d?'Ctrl!+L':'Alt+L'},{'label':H(_0x4a4069,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0xaf965d?'Alt+Shift+M':'Ctrl+M'},{'label':H(_0x4a4069,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':H(_0x4a4069,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':H(_0x4a4069,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':H(_0x4a4069,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':H(_0x4a4069,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0xaf965d?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ee extends _0x14fb79{constructor(_0x51f96c){super(_0x51f96c),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x5ee6b2,_0x401be2){const _0x4615a4=this['editor'],_0x11b1d8=_0x401be2?.['rootName']??V(_0x4615a4);_0x4615a4['data']['set']({[_0x11b1d8]:_0x5ee6b2},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class te extends _0x16f4e3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[$];}constructor(_0x40cc33){super(_0x40cc33),_0x40cc33['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ee(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x58ee1e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2dc0ce;for(const _0x3b4558 in _0x58ee1e){const _0x6139ab=_0x3b4558,_0x539f18=_0x58ee1e[_0x6139ab];if('sourceEditingEnhancedLicenseKeyValid'==_0x539f18||'sourceEditingEnhancedLicenseKeyInvalid'==_0x539f18||'sourceEditingEnhancedLicenseKeyExpired'==_0x539f18||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x539f18||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x539f18||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x539f18||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x539f18){delete _0x58ee1e[_0x6139ab],_0x2dc0ce=_0x539f18,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x2dc0ce&&_0x58ee1e['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x2dc0ce&&_0x58ee1e['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x2dc0ce&&_0x58ee1e['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x2dc0ce&&_0x58ee1e['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x2dc0ce&&_0x58ee1e['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x2dc0ce&&_0x58ee1e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x15b098=this['editor'],_0x363a28=_0x15b098['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x363a28&&_0x15b098['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x50fdf3('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x363a28&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x127cd7=>_0x15b098['plugins']['has'](_0x127cd7))&&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.'),_0x15b098['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{X as EditSourceCommand,ee as ReplaceSourceCommand,te as SourceEditingEnhanced};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-source-editing-enhanced",
3
- "version": "48.1.0-alpha.3",
3
+ "version": "48.1.0-alpha.5",
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.1.0-alpha.3",
29
- "@ckeditor/ckeditor5-engine": "48.1.0-alpha.3",
30
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.3",
31
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.3",
32
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.3",
28
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.5",
29
+ "@ckeditor/ckeditor5-engine": "48.1.0-alpha.5",
30
+ "@ckeditor/ckeditor5-icons": "48.1.0-alpha.5",
31
+ "@ckeditor/ckeditor5-ui": "48.1.0-alpha.5",
32
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.5",
33
33
  "@codemirror/autocomplete": "^6.7.1",
34
34
  "@codemirror/commands": "6.8.1",
35
35
  "@codemirror/lang-html": "^6.0.0",