@ckeditor/ckeditor5-source-editing-enhanced 48.1.0-alpha.4 → 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 _0x9d1ce8,PendingActions as _0x246140,Plugin as _0x38621c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x17a76c,formatHtml as _0xde0a48,env as _0x297549,uid as _0x243abc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0xa33907}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x44937d,ButtonView as _0x5313b0,MenuBarMenuListItemButtonView as _0x22162b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x174743,crosshairCursor as _0x497196,drawSelection as _0x14ad0a,dropCursor as _0xdff6ab,lineNumbers as _0x58c944,highlightActiveLine as _0x222a38,highlightActiveLineGutter as _0x54a6e0,highlightSpecialChars as _0x4519cb,rectangularSelection as _0x190d87,keymap as _0x4a1c16}from'@codemirror/view';import{Compartment as _0x48b29b,Transaction as _0x4e6bcd}from'@codemirror/state';import{bracketMatching as _0x497a0b,foldGutter as _0x5e90e8,indentOnInput as _0x5265d8,syntaxHighlighting as _0x46a8fa,defaultHighlightStyle as _0x2b80f7,foldKeymap as _0x270c78}from'@codemirror/language';import{toggleTabFocusMode as _0x1bb3c8,history as _0x598212,defaultKeymap as _0x481771,historyKeymap as _0x470c37,indentLess as _0x2d721a,indentMore as _0x1230bd,redo as _0xd7d84,undo as _0x51b40d}from'@codemirror/commands';import{autocompletion as _0x11d488,closeBrackets as _0x37c87d,closeBracketsKeymap as _0x221ac0,completionKeymap as _0xac54fb}from'@codemirror/autocomplete';import{html as _0x5613b1}from'@codemirror/lang-html';import{markdown as _0x2def80}from'@codemirror/lang-markdown';import{oneDark as _0x5bbc73}from'@codemirror/theme-one-dark';function H(_0x1abf66,_0x5f0e5a){const t=_0x1abf66['t'];switch(_0x5f0e5a){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 _0x5f0e5a;}}function V(_0x5488a4){const _0x13ce20=_0x5488a4['editing']['view']['document']['roots'],_0xc17fed=_0x13ce20['length'];if(0x0===_0xc17fed)throw new _0x17a76c('source-editing-enhanced-editor-no-root',_0x5488a4);if(0x1===_0xc17fed)return _0x13ce20['first']['rootName'];return Array['from'](_0x5488a4['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x364afc){return J(_0x364afc['replace'](/^[\n\s]*/g,''))?_0x364afc['replace'](/\s+/g,''):_0x364afc;}function J(_0x2517e7){return _0x2517e7['startsWith']('<');}function G(_0x5e4ea6){const _0x358cd2=[_0x174743['lineWrapping'],_0x11d488(),_0x497a0b(),_0x37c87d(),_0x497196(),_0x14ad0a(),_0xdff6ab(),_0x58c944(),_0x5e90e8(),_0x222a38(),_0x54a6e0(),_0x4519cb(),_0x598212(),_0x5265d8(),_0x190d87(),_0x46a8fa(_0x2b80f7,{'fallback':!0x0})],_0x1d01b3=new _0x48b29b();_0x358cd2['push'](_0x1d01b3['of'](_0x174743['editable']['of'](!0x0))),'html'===_0x5e4ea6['syntaxLanguage']?_0x358cd2['push'](_0x5613b1()):_0x358cd2['push'](_0x2def80());const _0x2a453b=function(_0x124f15){if(_0x124f15&&'default'!==_0x124f15)return'dark'===_0x124f15?_0x5bbc73:_0x124f15;return null;}(_0x5e4ea6['theme']);_0x2a453b&&_0x358cd2['push'](_0x2a453b),_0x358cd2['push'](_0x4a1c16['of']([..._0x221ac0,..._0x481771,..._0x470c37,..._0x270c78,..._0xac54fb,{'key':'Tab','run':_0x1230bd,'shift':_0x2d721a,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0xd7d84,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0xd7d84,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x51b40d,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x35d56f=new _0x174743({'extensions':_0x358cd2,'parent':_0x5e4ea6['parent']});return _0x1bb3c8(_0x35d56f),{'focus':()=>{_0x35d56f['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x35d56f['focus']();},'getData':()=>_0x35d56f['state']['doc']['toString'](),'setData':_0x39c02f=>{_0x35d56f['dispatch']({'changes':{'from':0x0,'to':_0x35d56f['state']['doc']['length'],'insert':_0x39c02f},'annotations':_0x4e6bcd['addToHistory']['of'](!0x1)});},'setReadOnly':_0x4e8fed=>{_0x35d56f['dispatch']({'effects':[_0x1d01b3['reconfigure'](_0x174743['editable']['of'](!_0x4e8fed))]});},'destroy':()=>{_0x35d56f['destroy']();},'instance':_0x35d56f};}class Q extends _0x44937d{['_codeEditorApi']=null;['_options'];constructor(_0x4a3391,_0x414375){super(_0x4a3391),this['_options']=_0x414375,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',(_0x4ec24c,_0x2ba33e,_0x2f6fdb)=>{this['setReadOnly'](_0x2f6fdb);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x2d3cd8){this['_codeEditorApi']['setData'](_0x2d3cd8);}['setReadOnly'](_0x3cdc4c){this['_codeEditorApi']['setReadOnly'](_0x3cdc4c);}}const W='SourceEditingEnhancedMode';class X extends _0x9d1ce8{constructor(_0xc859b1){super(_0xc859b1),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x246140)['on']('change:hasAny',(_0x3f7685,_0x2da425,_0x1e5957)=>{_0x1e5957?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x590aea=this['editor'];for(const _0x9ee7fc of _0x590aea['commands']['names']())['replaceSource','editSource']['includes'](_0x9ee7fc)||_0x590aea['commands']['get'](_0x9ee7fc)['forceDisabled'](W);}['_enableCommands'](){const _0xcf19e4=this['editor'];for(const _0x4e9557 of _0xcf19e4['commands']['commands']())_0x4e9557['clearForceDisabled'](W);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1e559e=this['editor'],_0x3934a5=_0x1e559e['locale'],_0x432c07=_0x1e559e['plugins']['get']('Dialog'),_0x3467e3=V(_0x1e559e),_0x570164=_0x1e559e['data']['get']({'rootName':_0x3467e3}),_0x3e3891=J(_0x12836a=_0x570164)?_0xde0a48(_0x12836a):_0x12836a;var _0x12836a;const _0x1adceb=new Q(_0x3934a5,{'syntaxLanguage':_0x1e559e['plugins']['has']('Markdown')?'markdown':'html','theme':_0x1e559e['config']['get']('sourceEditingEnhanced.theme')});let _0x2ff5d8=!0x0;const _0x4d34c2=_0x5e9409=>{if(!_0x2ff5d8)return;return Z(_0x1adceb['getData']())!==Z(_0x3e3891)?window['confirm'](H(_0x3934a5,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x5e9409['stop']():void 0x0;};_0x432c07['show']({'id':'sourceEditingEnhanced','title':H(_0x3934a5,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x1adceb,'actionButtons':[{'label':H(_0x3934a5,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x432c07['hide']();}},{'label':H(_0x3934a5,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x2bc3ac=Z(_0x1adceb['getData']())!==Z(_0x3e3891);(_0x2bc3ac&&_0x1e559e['execute']('replaceSource',_0x1adceb['getData']()),_0x2ff5d8=!0x1,_0x432c07['hide'](),_0x2bc3ac&&'editables'in _0x1e559e['ui']['view'])&&_0x1e559e['ui']['view']['editables'][_0x3467e3]['element']['focus']();},'onCreate':_0x24e79f=>{_0x24e79f['set']('isEnabled',!_0x1e559e['isReadOnly']),_0x24e79f['bind']('isEnabled')['to'](_0x1e559e,'isReadOnly',this,'isEnabled',(_0x5843df,_0x5cd1e0)=>!_0x5843df&&_0x5cd1e0);}}],'onHide':()=>{this['_enableCommands'](),_0x432c07['off']('hide',_0x4d34c2),_0x1adceb['destroy']();},'onShow':()=>{_0x1adceb['bind']('isReadOnly')['to'](_0x1e559e,'isReadOnly',this,'isEnabled',(_0x1e3e68,_0x1d65a6)=>_0x1e3e68||!_0x1d65a6),_0x1adceb['setData'](_0x3e3891),_0x1adceb['focus'](),_0x432c07['on']('hide',_0x4d34c2,{'priority':'highest'}),this['_disableCommands']();}});}}class $ extends _0x38621c{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x246140];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x365dce=this['editor'],_0x19420d=_0x365dce['locale'],_0x55f700=new X(_0x365dce);_0x365dce['commands']['add']('editSource',_0x55f700),_0x365dce['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x349cfb=this['_createButton'](_0x5313b0,_0x55f700);return _0x349cfb['set']({'label':H(_0x19420d,'Source'),'icon':_0xa33907,'tooltip':H(_0x19420d,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x349cfb;}),_0x365dce['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x5d4192=this['_createButton'](_0x22162b,_0x55f700,!0x0);return _0x5d4192['set']({'label':H(_0x19420d,'Edit\x20source\x20modal\x20label'),'icon':_0xa33907,'role':'menuitemcheckbox'}),_0x5d4192;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x3e0e99){const _0x2aa12e=_0x219440([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]),_0xf727f3=0x5dba9314,_0x46d2d7=0x5dbd1abc^_0xf727f3,_0x51adfe=window[_0x219440([0x44,0x61,0x74,0x65])][_0x219440([0x6e,0x6f,0x77])](),_0xd6df78=_0x3e0e99[_0x219440([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5cdcc9=new window[(_0x219440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4164af=>{_0xd6df78[_0x219440([0x6f,0x6e,0x63,0x65])](_0x219440([0x72,0x65,0x61,0x64,0x79]),_0x4164af);}),_0x4c81ed={[_0x219440([0x6b,0x74,0x79])]:_0x219440([0x45,0x43]),[_0x219440([0x75,0x73,0x65])]:_0x219440([0x73,0x69,0x67]),[_0x219440([0x63,0x72,0x76])]:_0x219440([0x50,0x2d,0x32,0x35,0x36]),[_0x219440([0x78])]:_0x219440([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]),[_0x219440([0x79])]:_0x219440([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]),[_0x219440([0x61,0x6c,0x67])]:_0x219440([0x45,0x53,0x32,0x35,0x36])},_0x2b23bd=_0xd6df78[_0x219440([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x219440([0x67,0x65,0x74])](_0x219440([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xcbb291(){let _0x9704bc,_0x542bc4=null,_0x2c10d0=null;try{if(_0x2b23bd==_0x219440([0x47,0x50,0x4c]))return _0x219440([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9704bc=_0x563f97(),!_0x9704bc)return _0x219440([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9704bc[_0x219440([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c10d0=_0x2e8bf1(_0x9704bc[_0x219440([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9704bc[_0x219440([0x6a,0x74,0x69])])),await _0x2e747f()?_0x11e7e3()?_0x2352f4()?_0x219440([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x57a52b()?(_0x9704bc[_0x219440([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x219440([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x542bc4=_0x388631(_0x219440([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf939e7()):_0x219440([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x219440([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x219440([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x219440([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2352f4(){const _0x30c45e=[_0x219440([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x219440([0x74,0x72,0x69,0x61,0x6c])][_0x219440([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9704bc[_0x219440([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51adfe/0x3e8:0xe10*_0x46d2d7;return _0x9704bc[_0x219440([0x65,0x78,0x70])]<_0x30c45e;}function _0x11e7e3(){const _0x3f5d71=_0x9704bc[_0x219440([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3f5d71&&(!!_0x3f5d71[_0x219440([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x219440([0x2a]))||!!_0x3f5d71[_0x219440([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x219440([0x53,0x45,0x45])));}function _0x57a52b(){const _0x151c15=_0x9704bc[_0x219440([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x151c15||0x0==_0x151c15[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10b01c}=new URL(window[_0x219440([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x151c15[_0x219440([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10b01c))return!0x0;const _0x2f153b=_0x10b01c[_0x219440([0x73,0x70,0x6c,0x69,0x74])](_0x219440([0x2e]));return _0x151c15[_0x219440([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x547233=>_0x547233[_0x219440([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x219440([0x2a])))[_0x219440([0x6d,0x61,0x70])](_0x1fbb2f=>_0x1fbb2f[_0x219440([0x73,0x70,0x6c,0x69,0x74])](_0x219440([0x2e])))[_0x219440([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x528731=>_0x528731[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2f153b[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x219440([0x6d,0x61,0x70])](_0x1cfcc2=>Array(_0x2f153b[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1cfcc2[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x219440([0x66,0x69,0x6c,0x6c])](_0x1cfcc2[0x0]===_0x219440([0x2a])?_0x219440([0x2a]):'')[_0x219440([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1cfcc2))[_0x219440([0x73,0x6f,0x6d,0x65])](_0x36525c=>_0x2f153b[_0x219440([0x65,0x76,0x65,0x72,0x79])]((_0x5d5311,_0x2073bf)=>_0x36525c[_0x2073bf]===_0x5d5311||_0x36525c[_0x2073bf]===_0x219440([0x2a])));}function _0xf939e7(){return _0x542bc4&&_0x2c10d0?new window[(_0x219440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ad0b3,_0x43ac14)=>{_0x542bc4[_0x219440([0x74,0x68,0x65,0x6e])](_0x5ad0b3,_0x43ac14),_0x2c10d0[_0x219440([0x74,0x68,0x65,0x6e])](_0x1b1195=>{_0x1b1195!=_0x219440([0x56,0x61,0x6c,0x69,0x64])&&_0x5ad0b3(_0x1b1195);},_0x43ac14);}):_0x542bc4||_0x2c10d0||_0x219440([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e8bf1(_0x26a2e2,_0x3f62e6){return new window[(_0x219440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3eb9e1=>{if(_0x1545b9())return _0x3eb9e1(_0x219440([0x56,0x61,0x6c,0x69,0x64]));_0x5442e6(),_0xd6df78[_0x219440([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x219440([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c2a8d=!0x1;const _0x3536ab=_0x243abc();function _0x295d8a(_0x1b7eb9){return!!_0x1b7eb9&&(typeof _0x1b7eb9===_0x219440([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b7eb9===_0x219440([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b7eb9[_0x219440([0x74,0x68,0x65,0x6e])]===_0x219440([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b7eb9[_0x219440([0x63,0x61,0x74,0x63,0x68])]===_0x219440([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11a337(_0x49ebc0){_0x29bf6f(_0x49ebc0)[_0x219440([0x74,0x68,0x65,0x6e])](_0x1ca954=>{if(!_0x1ca954||_0x1ca954[_0x219440([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x219440([0x6f,0x6b]))return _0x219440([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43091d(_0x25c9c3(_0x3536ab+_0x3f62e6))!=_0x1ca954[_0x219440([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x219440([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x219440([0x56,0x61,0x6c,0x69,0x64]);})[_0x219440([0x74,0x68,0x65,0x6e])](_0x313146=>(_0x47c04d(),_0x313146),()=>{const _0x321d77=_0x250d2();return null==_0x321d77?(_0x47c04d(),_0x219440([0x56,0x61,0x6c,0x69,0x64])):_0x219440(_0x51adfe-_0x321d77>(0x79b61714^_0xf727f3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x219440([0x74,0x68,0x65,0x6e])](_0x3eb9e1)[_0x219440([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3eb9e1(_0x219440([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e13ff=0x5d8c7d94^_0xf727f3;function _0x47c04d(){const _0x362fc8=_0x219440([0x6c,0x6c,0x63,0x74,0x2d])+_0x43091d(_0x25c9c3(_0x26a2e2)),_0x1dd33c=_0x4a7e99(_0x43091d(window[_0x219440([0x4d,0x61,0x74,0x68])][_0x219440([0x63,0x65,0x69,0x6c])](_0x51adfe/_0x1e13ff)));window[_0x219440([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x219440([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x362fc8,_0x1dd33c);}function _0x250d2(){const _0x45edee=_0x219440([0x6c,0x6c,0x63,0x74,0x2d])+_0x43091d(_0x25c9c3(_0x26a2e2)),_0x9f4c65=window[_0x219440([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x219440([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45edee);return _0x9f4c65?window[_0x219440([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a7e99(_0x9f4c65),0x10)*_0x1e13ff:null;}function _0x29bf6f(_0x4b9d0f){return new window[(_0x219440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59c5e5,_0x5c915c)=>{_0x4b9d0f[_0x219440([0x74,0x68,0x65,0x6e])](_0x59c5e5,_0x5c915c),window[_0x219440([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c915c,0x5dbb47d4^_0xf727f3);});}}_0xd6df78[_0x219440([0x6f,0x6e])](_0x219440([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x702d9f,_0x2c9844)=>{if(_0x2c9844[0x0]!=_0x26a2e2)return _0x3eb9e1(_0x219440([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c9844[0x1]={..._0x2c9844[0x1],[_0x219440([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3536ab};},{[_0x219440([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x219440([0x68,0x69,0x67,0x68])}),_0xd6df78[_0x219440([0x6f,0x6e])](_0x219440([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xfe78b0=>{_0x295d8a(_0xfe78b0[_0x219440([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c2a8d=!0x0,_0x11a337(_0xfe78b0[_0x219440([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x219440([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x219440([0x6c,0x6f,0x77])}),_0x5cdcc9[_0x219440([0x74,0x68,0x65,0x6e])](()=>{_0x2c2a8d||_0x3eb9e1(_0x219440([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1545b9(){return _0xd6df78[_0x219440([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x219440([0x76,0x69,0x65,0x77])][_0x219440([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x219440([0x61,0x75,0x74,0x6f]);}function _0x5442e6(){_0xd6df78[_0x219440([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x219440([0x76,0x69,0x65,0x77])][_0x219440([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x219440([0x61,0x75,0x74,0x6f]);}}function _0x388631(_0x1d8936){const _0x1bcd27=[new window[(_0x219440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cf0ac=>setTimeout(_0x4cf0ac,0x5db3add8^_0xf727f3)),_0x5cdcc9[_0x219440([0x74,0x68,0x65,0x6e])](()=>new window[(_0x219440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x79b5cc=>{let _0x1ef8ff=0x0;_0xd6df78[_0x219440([0x6d,0x6f,0x64,0x65,0x6c])][_0x219440([0x6f,0x6e])](_0x219440([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x279636,_0x3b5288)=>{_0x3b5288[0x0][_0x219440([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ef8ff++,_0x1ef8ff==(0x5dba96fc^_0xf727f3)&&(_0x79b5cc(),_0x279636[_0x219440([0x6f,0x66,0x66])]());});}))];return window[_0x219440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x219440([0x72,0x61,0x63,0x65])](_0x1bcd27)[_0x219440([0x74,0x68,0x65,0x6e])](()=>_0x1d8936);}async function _0x179b28(){await _0x5cdcc9,_0xd6df78[_0x219440([0x6d,0x6f,0x64,0x65,0x6c])][_0x219440([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e13e8,_0xd6df78[_0x219440([0x6d,0x6f,0x64,0x65,0x6c])][_0x219440([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e13e8,_0xd6df78[_0x219440([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x219440([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x515715(_0x591e41){const _0x2ad4e6=_0x3dc808();_0xd6df78[_0x2ad4e6]=_0x219440([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])+_0x591e41,_0x591e41!=_0x219440([0x56,0x61,0x6c,0x69,0x64])&&_0x179b28();}function _0x3dc808(){const _0x56a7e5=window[_0x219440([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x219440([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x219440([0x6e,0x6f,0x77])]())[_0x219440([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x219440([0x2e]),'');let _0x55993b=_0x219440([0x4e]);for(let _0x35af54=0x0;_0x35af54<_0x56a7e5[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35af54+=0x2){let _0x19106a=window[_0x219440([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56a7e5[_0x219440([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35af54,_0x35af54+0x2));_0x19106a>=_0x2aa12e[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19106a-=_0x2aa12e[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55993b+=_0x2aa12e[_0x19106a];}return _0x55993b;}function _0x563f97(){const _0x55c28e=_0x2b23bd[_0x219440([0x73,0x70,0x6c,0x69,0x74])](_0x219440([0x2e]));if(0x3!=_0x55c28e[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x33205d(_0x55c28e[0x1]);function _0x33205d(_0x4c5b20){const _0x528a75=_0x246137(_0x4c5b20);return _0x528a75&&_0x2588ff()?_0x528a75:null;function _0x2588ff(){const _0x4d179d=_0x528a75[_0x219440([0x6a,0x74,0x69])],_0x10b93c=window[_0x219440([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d179d[_0x219440([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d179d[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5bfdff={..._0x528a75,[_0x219440([0x6a,0x74,0x69])]:_0x4d179d[_0x219440([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d179d[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5bfdff[_0x219440([0x76,0x63])],_0x25c9c3(_0x5bfdff)==_0x10b93c;}}}async function _0x2e747f(){let _0x57954e=!0x0;try{const _0x504f9d=_0x2b23bd[_0x219440([0x73,0x70,0x6c,0x69,0x74])](_0x219440([0x2e])),[_0x2cc2fd,_0x4eab08,_0x3abf76]=_0x504f9d;return _0x2c0665(_0x2cc2fd),await _0x4c8aa1(_0x2cc2fd,_0x4eab08,_0x3abf76),_0x57954e;}catch{return!0x1;}function _0x2c0665(_0x1d0738){const _0x5c1e73=_0x246137(_0x1d0738);_0x5c1e73&&_0x5c1e73[_0x219440([0x61,0x6c,0x67])]==_0x219440([0x45,0x53,0x32,0x35,0x36])||(_0x57954e=!0x1);}async function _0x4c8aa1(_0x310b53,_0x26d67f,_0x2cf849){const _0x14f055=window[_0x219440([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x219440([0x66,0x72,0x6f,0x6d])](_0x20d193(_0x2cf849),_0x3ba7b8=>_0x3ba7b8[_0x219440([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c1e89=new window[(_0x219440([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x219440([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x310b53+_0x219440([0x2e])+_0x26d67f),_0x286e93=window[_0x219440([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x219440([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x286e93)return;const _0x2db2f5=await _0x286e93[_0x219440([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x219440([0x6a,0x77,0x6b]),_0x4c81ed,{[_0x219440([0x6e,0x61,0x6d,0x65])]:_0x219440([0x45,0x43,0x44,0x53,0x41]),[_0x219440([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x219440([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x219440([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x286e93[_0x219440([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x219440([0x6e,0x61,0x6d,0x65])]:_0x219440([0x45,0x43,0x44,0x53,0x41]),[_0x219440([0x68,0x61,0x73,0x68])]:{[_0x219440([0x6e,0x61,0x6d,0x65])]:_0x219440([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2db2f5,_0x14f055,_0x4c1e89)||(_0x57954e=!0x1);}}function _0x246137(_0x32cf40){return _0x32cf40[_0x219440([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x219440([0x65,0x79]))?JSON[_0x219440([0x70,0x61,0x72,0x73,0x65])](_0x20d193(_0x32cf40)):null;}function _0x20d193(_0x3e0e5b){return window[_0x219440([0x61,0x74,0x6f,0x62])](_0x3e0e5b[_0x219440([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x219440([0x2b]))[_0x219440([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x219440([0x2f])));}function _0x25c9c3(_0x39ad78){let _0x75ecb2=0x1505;function _0x127aa6(_0x149584){for(let _0x3519a2=0x0;_0x3519a2<_0x149584[_0x219440([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3519a2++){const _0x5917da=_0x149584[_0x219440([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3519a2);_0x75ecb2=(_0x75ecb2<<0x5)+_0x75ecb2+_0x5917da,_0x75ecb2&=_0x75ecb2;}}function _0x31319b(_0x3e8f48){Array[_0x219440([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e8f48)?_0x3e8f48[_0x219440([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31319b):_0x3e8f48&&typeof _0x3e8f48==_0x219440([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x219440([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e8f48)[_0x219440([0x73,0x6f,0x72,0x74])]()[_0x219440([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x633643,_0x19537e])=>{_0x127aa6(_0x633643),_0x31319b(_0x19537e);}):_0x127aa6(window[_0x219440([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e8f48));}return _0x31319b(_0x39ad78),_0x75ecb2>>>0x0;}function _0x43091d(_0x5ea1be){return _0x5ea1be[_0x219440([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x219440([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x219440([0x30]));}function _0x4a7e99(_0x5157b0){return _0x5157b0[_0x219440([0x73,0x70,0x6c,0x69,0x74])]('')[_0x219440([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x219440([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e13e8(){}function _0x219440(_0x3ccecc){return _0x3ccecc['map'](_0x1b1b47=>String['fromCharCode'](_0x1b1b47))['join']('');}_0x515715(await _0xcbb291());}(this);}['_createButton'](_0x36e1cf,_0x2e4201,_0x5f4c75=!0x1){const _0x77aa5d=new _0x36e1cf(this['editor']['locale']);return _0x77aa5d['set']({'withText':_0x5f4c75,'isToggleable':!0x1}),_0x77aa5d['bind']('isEnabled')['to'](_0x2e4201,'isEnabled'),this['listenTo'](_0x77aa5d,'execute',()=>_0x2e4201['execute']()),_0x77aa5d;}['_registerKeybindings'](){const _0x421dc6=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':H(_0x421dc6,'Source\x20Editing\x20Enhanced')});const _0x6fae86=_0x297549['isMac']||_0x297549['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':H(_0x421dc6,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':H(_0x421dc6,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':H(_0x421dc6,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':H(_0x421dc6,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':H(_0x421dc6,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':H(_0x421dc6,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':H(_0x421dc6,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x6fae86?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':H(_0x421dc6,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':H(_0x421dc6,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':H(_0x421dc6,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':H(_0x421dc6,'Select\x20line'),'keystroke':_0x6fae86?'Ctrl!+L':'Alt+L'},{'label':H(_0x421dc6,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x6fae86?'Alt+Shift+M':'Ctrl+M'},{'label':H(_0x421dc6,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':H(_0x421dc6,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':H(_0x421dc6,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':H(_0x421dc6,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':H(_0x421dc6,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x6fae86?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ee extends _0x9d1ce8{constructor(_0x1e28ed){super(_0x1e28ed),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x470eea,_0x3f1fbe){const _0x190da7=this['editor'],_0x4b9bcd=_0x3f1fbe?.['rootName']??V(_0x190da7);_0x190da7['data']['set']({[_0x4b9bcd]:_0x470eea},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class te extends _0x38621c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[$];}constructor(_0x31677c){super(_0x31677c),_0x31677c['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 _0xce5fca=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x147de2;for(const _0x138e5c in _0xce5fca){const _0x4ccd2f=_0x138e5c,_0x4c4c53=_0xce5fca[_0x4ccd2f];if('sourceEditingEnhancedLicenseKeyValid'==_0x4c4c53||'sourceEditingEnhancedLicenseKeyInvalid'==_0x4c4c53||'sourceEditingEnhancedLicenseKeyExpired'==_0x4c4c53||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x4c4c53||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x4c4c53||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x4c4c53||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x4c4c53){delete _0xce5fca[_0x4ccd2f],_0x147de2=_0x4c4c53,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x147de2&&_0xce5fca['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x147de2&&_0xce5fca['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x147de2&&_0xce5fca['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x147de2&&_0xce5fca['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x147de2&&_0xce5fca['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x147de2&&_0xce5fca['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x1ff38e=this['editor'],_0x49c3b4=_0x1ff38e['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x49c3b4&&_0x1ff38e['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x17a76c('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x49c3b4&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x3ea1af=>_0x1ff38e['plugins']['has'](_0x3ea1af))&&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.'),_0x1ff38e['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.4",
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.4",
29
- "@ckeditor/ckeditor5-engine": "48.1.0-alpha.4",
30
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.4",
31
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.4",
32
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.4",
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",