@ckeditor/ckeditor5-source-editing-enhanced 48.1.0-alpha.7 → 48.1.0-alpha.8

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 _0x4fc1a6,PendingActions as _0x42b2dc,Plugin as _0x2c697b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xb64cf6,formatHtml as _0x54bba8,env as _0x3a95f8,uid as _0x5435ce}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0xf502c7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x225ace,ButtonView as _0x54bbd1,MenuBarMenuListItemButtonView as _0x36c9ab}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x4dfd32,crosshairCursor as _0x3c5386,drawSelection as _0xafe06e,dropCursor as _0x19b4eb,lineNumbers as _0xf01294,highlightActiveLine as _0xca38a,highlightActiveLineGutter as _0x32ddad,highlightSpecialChars as _0x38307f,rectangularSelection as _0x5df616,keymap as _0x1fc070}from'@codemirror/view';import{Compartment as _0x3de21d,Transaction as _0x1a014f}from'@codemirror/state';import{bracketMatching as _0x4d7d5e,foldGutter as _0x297fc7,indentOnInput as _0x1f1fe4,syntaxHighlighting as _0x2c5691,defaultHighlightStyle as _0x2832bd,foldKeymap as _0x50c605}from'@codemirror/language';import{toggleTabFocusMode as _0x5df7d5,history as _0x43f5f7,defaultKeymap as _0x37a52e,historyKeymap as _0x38bc43,indentLess as _0x4265b3,indentMore as _0x333d70,redo as _0x52de1f,undo as _0x4191fc}from'@codemirror/commands';import{autocompletion as _0x944681,closeBrackets as _0x4f38ae,closeBracketsKeymap as _0x130f67,completionKeymap as _0x182143}from'@codemirror/autocomplete';import{html as _0x536e12}from'@codemirror/lang-html';import{markdown as _0x35490e}from'@codemirror/lang-markdown';import{oneDark as _0x485512}from'@codemirror/theme-one-dark';function H(_0x15549f,_0x2f6bd6){const t=_0x15549f['t'];switch(_0x2f6bd6){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 _0x2f6bd6;}}function V(_0x97cc52){const _0x2b43ae=_0x97cc52['editing']['view']['document']['roots'],_0x38afa9=_0x2b43ae['length'];if(0x0===_0x38afa9)throw new _0xb64cf6('source-editing-enhanced-editor-no-root',_0x97cc52);if(0x1===_0x38afa9)return _0x2b43ae['first']['rootName'];return Array['from'](_0x97cc52['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x15afbf){return J(_0x15afbf['replace'](/^[\n\s]*/g,''))?_0x15afbf['replace'](/\s+/g,''):_0x15afbf;}function J(_0x715ddd){return _0x715ddd['startsWith']('<');}function G(_0x17d5d3){const _0x245aa9=[_0x4dfd32['lineWrapping'],_0x944681(),_0x4d7d5e(),_0x4f38ae(),_0x3c5386(),_0xafe06e(),_0x19b4eb(),_0xf01294(),_0x297fc7(),_0xca38a(),_0x32ddad(),_0x38307f(),_0x43f5f7(),_0x1f1fe4(),_0x5df616(),_0x2c5691(_0x2832bd,{'fallback':!0x0})],_0x4d9837=new _0x3de21d();_0x245aa9['push'](_0x4d9837['of'](_0x4dfd32['editable']['of'](!0x0))),'html'===_0x17d5d3['syntaxLanguage']?_0x245aa9['push'](_0x536e12()):_0x245aa9['push'](_0x35490e());const _0x5ee9f3=function(_0x3dd8ba){if(_0x3dd8ba&&'default'!==_0x3dd8ba)return'dark'===_0x3dd8ba?_0x485512:_0x3dd8ba;return null;}(_0x17d5d3['theme']);_0x5ee9f3&&_0x245aa9['push'](_0x5ee9f3),_0x245aa9['push'](_0x1fc070['of']([..._0x130f67,..._0x37a52e,..._0x38bc43,..._0x50c605,..._0x182143,{'key':'Tab','run':_0x333d70,'shift':_0x4265b3,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x52de1f,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x52de1f,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x4191fc,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x40b4a0=new _0x4dfd32({'extensions':_0x245aa9,'parent':_0x17d5d3['parent']});return _0x5df7d5(_0x40b4a0),{'focus':()=>{_0x40b4a0['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x40b4a0['focus']();},'getData':()=>_0x40b4a0['state']['doc']['toString'](),'setData':_0x186f33=>{_0x40b4a0['dispatch']({'changes':{'from':0x0,'to':_0x40b4a0['state']['doc']['length'],'insert':_0x186f33},'annotations':_0x1a014f['addToHistory']['of'](!0x1)});},'setReadOnly':_0x4fdaee=>{_0x40b4a0['dispatch']({'effects':[_0x4d9837['reconfigure'](_0x4dfd32['editable']['of'](!_0x4fdaee))]});},'destroy':()=>{_0x40b4a0['destroy']();},'instance':_0x40b4a0};}class Q extends _0x225ace{['_codeEditorApi']=null;['_options'];constructor(_0xf47658,_0x45972d){super(_0xf47658),this['_options']=_0x45972d,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',(_0x548e4f,_0xd34dea,_0xd7801f)=>{this['setReadOnly'](_0xd7801f);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x570fd7){this['_codeEditorApi']['setData'](_0x570fd7);}['setReadOnly'](_0x22b7c0){this['_codeEditorApi']['setReadOnly'](_0x22b7c0);}}const W='SourceEditingEnhancedMode';class X extends _0x4fc1a6{constructor(_0x410675){super(_0x410675),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x42b2dc)['on']('change:hasAny',(_0x3cd0af,_0x1cd2d3,_0x29daf0)=>{_0x29daf0?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x127c64=this['editor'];for(const _0x456f4d of _0x127c64['commands']['names']())['replaceSource','editSource']['includes'](_0x456f4d)||_0x127c64['commands']['get'](_0x456f4d)['forceDisabled'](W);}['_enableCommands'](){const _0x509087=this['editor'];for(const _0x16f5e0 of _0x509087['commands']['commands']())_0x16f5e0['clearForceDisabled'](W);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1cc4f3=this['editor'],_0x2171a3=_0x1cc4f3['locale'],_0x4e608a=_0x1cc4f3['plugins']['get']('Dialog'),_0x36b736=V(_0x1cc4f3),_0x3ba841=_0x1cc4f3['data']['get']({'rootName':_0x36b736}),_0x933329=J(_0x33f047=_0x3ba841)?_0x54bba8(_0x33f047):_0x33f047;var _0x33f047;const _0x19fc6b=new Q(_0x2171a3,{'syntaxLanguage':_0x1cc4f3['plugins']['has']('Markdown')?'markdown':'html','theme':_0x1cc4f3['config']['get']('sourceEditingEnhanced.theme')});let _0x123dbe=!0x0;const _0x1e78a7=_0x3c9c28=>{if(!_0x123dbe)return;return Z(_0x19fc6b['getData']())!==Z(_0x933329)?window['confirm'](H(_0x2171a3,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x3c9c28['stop']():void 0x0;};_0x4e608a['show']({'id':'sourceEditingEnhanced','title':H(_0x2171a3,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x19fc6b,'actionButtons':[{'label':H(_0x2171a3,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x4e608a['hide']();}},{'label':H(_0x2171a3,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x509232=Z(_0x19fc6b['getData']())!==Z(_0x933329);(_0x509232&&_0x1cc4f3['execute']('replaceSource',_0x19fc6b['getData']()),_0x123dbe=!0x1,_0x4e608a['hide'](),_0x509232&&'editables'in _0x1cc4f3['ui']['view'])&&_0x1cc4f3['ui']['view']['editables'][_0x36b736]['element']['focus']();},'onCreate':_0x9098e1=>{_0x9098e1['set']('isEnabled',!_0x1cc4f3['isReadOnly']),_0x9098e1['bind']('isEnabled')['to'](_0x1cc4f3,'isReadOnly',this,'isEnabled',(_0x3b72a8,_0x273d62)=>!_0x3b72a8&&_0x273d62);}}],'onHide':()=>{this['_enableCommands'](),_0x4e608a['off']('hide',_0x1e78a7),_0x19fc6b['destroy']();},'onShow':()=>{_0x19fc6b['bind']('isReadOnly')['to'](_0x1cc4f3,'isReadOnly',this,'isEnabled',(_0x626cd6,_0x3b0055)=>_0x626cd6||!_0x3b0055),_0x19fc6b['setData'](_0x933329),_0x19fc6b['focus'](),_0x4e608a['on']('hide',_0x1e78a7,{'priority':'highest'}),this['_disableCommands']();}});}}class $ extends _0x2c697b{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x42b2dc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x557807=this['editor'],_0xf0d527=_0x557807['locale'],_0x119c66=new X(_0x557807);_0x557807['commands']['add']('editSource',_0x119c66),_0x557807['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x36defe=this['_createButton'](_0x54bbd1,_0x119c66);return _0x36defe['set']({'label':H(_0xf0d527,'Source'),'icon':_0xf502c7,'tooltip':H(_0xf0d527,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x36defe;}),_0x557807['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x2b6eae=this['_createButton'](_0x36c9ab,_0x119c66,!0x0);return _0x2b6eae['set']({'label':H(_0xf0d527,'Edit\x20source\x20modal\x20label'),'icon':_0xf502c7,'role':'menuitemcheckbox'}),_0x2b6eae;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x2d3e8a){const _0x37c002=_0x23e7f0([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]),_0x5052a1=0x5dba9314,_0x44a726=0x5dbd1acc^_0x5052a1,_0x7f4d4b=window[_0x23e7f0([0x44,0x61,0x74,0x65])][_0x23e7f0([0x6e,0x6f,0x77])](),_0x55b496=_0x2d3e8a[_0x23e7f0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3477a1=new window[(_0x23e7f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c94e8=>{_0x55b496[_0x23e7f0([0x6f,0x6e,0x63,0x65])](_0x23e7f0([0x72,0x65,0x61,0x64,0x79]),_0x1c94e8);}),_0x39490c={[_0x23e7f0([0x6b,0x74,0x79])]:_0x23e7f0([0x45,0x43]),[_0x23e7f0([0x75,0x73,0x65])]:_0x23e7f0([0x73,0x69,0x67]),[_0x23e7f0([0x63,0x72,0x76])]:_0x23e7f0([0x50,0x2d,0x32,0x35,0x36]),[_0x23e7f0([0x78])]:_0x23e7f0([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]),[_0x23e7f0([0x79])]:_0x23e7f0([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]),[_0x23e7f0([0x61,0x6c,0x67])]:_0x23e7f0([0x45,0x53,0x32,0x35,0x36])},_0x185a96=_0x55b496[_0x23e7f0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23e7f0([0x67,0x65,0x74])](_0x23e7f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x570c44(){let _0x210dc6,_0x25267b=null,_0x414da4=null;try{if(_0x185a96==_0x23e7f0([0x47,0x50,0x4c]))return _0x23e7f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x210dc6=_0x34cf3d(),!_0x210dc6)return _0x23e7f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x210dc6[_0x23e7f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x414da4=_0x22f5d8(_0x210dc6[_0x23e7f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x210dc6[_0x23e7f0([0x6a,0x74,0x69])])),await _0x959d9a()?_0x47edab()?_0x53250c()?_0x23e7f0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9dd9f8()?(_0x210dc6[_0x23e7f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23e7f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25267b=_0x5f5cb8(_0x23e7f0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xbbec61()):_0x23e7f0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23e7f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23e7f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23e7f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x53250c(){const _0x413325=[_0x23e7f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23e7f0([0x74,0x72,0x69,0x61,0x6c])][_0x23e7f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x210dc6[_0x23e7f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7f4d4b/0x3e8:0xe10*_0x44a726;return _0x210dc6[_0x23e7f0([0x65,0x78,0x70])]<_0x413325;}function _0x47edab(){const _0x155971=_0x210dc6[_0x23e7f0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x155971&&(!!_0x155971[_0x23e7f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23e7f0([0x2a]))||!!_0x155971[_0x23e7f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23e7f0([0x53,0x45,0x45])));}function _0x9dd9f8(){const _0x448220=_0x210dc6[_0x23e7f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x448220||0x0==_0x448220[_0x23e7f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xef3b0a}=new URL(window[_0x23e7f0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x448220[_0x23e7f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xef3b0a))return!0x0;const _0x36188b=_0xef3b0a[_0x23e7f0([0x73,0x70,0x6c,0x69,0x74])](_0x23e7f0([0x2e]));return _0x448220[_0x23e7f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4611a8=>_0x4611a8[_0x23e7f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23e7f0([0x2a])))[_0x23e7f0([0x6d,0x61,0x70])](_0x1b6800=>_0x1b6800[_0x23e7f0([0x73,0x70,0x6c,0x69,0x74])](_0x23e7f0([0x2e])))[_0x23e7f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21331e=>_0x21331e[_0x23e7f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x36188b[_0x23e7f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23e7f0([0x6d,0x61,0x70])](_0x554c71=>Array(_0x36188b[_0x23e7f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x554c71[_0x23e7f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23e7f0([0x66,0x69,0x6c,0x6c])](_0x554c71[0x0]===_0x23e7f0([0x2a])?_0x23e7f0([0x2a]):'')[_0x23e7f0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x554c71))[_0x23e7f0([0x73,0x6f,0x6d,0x65])](_0x30d073=>_0x36188b[_0x23e7f0([0x65,0x76,0x65,0x72,0x79])]((_0x1071ed,_0x32d510)=>_0x30d073[_0x32d510]===_0x1071ed||_0x30d073[_0x32d510]===_0x23e7f0([0x2a])));}function _0xbbec61(){return _0x25267b&&_0x414da4?new window[(_0x23e7f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ca582,_0x352efb)=>{_0x25267b[_0x23e7f0([0x74,0x68,0x65,0x6e])](_0x2ca582,_0x352efb),_0x414da4[_0x23e7f0([0x74,0x68,0x65,0x6e])](_0x107259=>{_0x107259!=_0x23e7f0([0x56,0x61,0x6c,0x69,0x64])&&_0x2ca582(_0x107259);},_0x352efb);}):_0x25267b||_0x414da4||_0x23e7f0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x22f5d8(_0x319ca5,_0x40272e){return new window[(_0x23e7f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x128118=>{if(_0x3c2401())return _0x128118(_0x23e7f0([0x56,0x61,0x6c,0x69,0x64]));_0x25c879(),_0x55b496[_0x23e7f0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23e7f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x518956=!0x1;const _0x161d04=_0x5435ce();function _0x5bead3(_0x4bd276){return!!_0x4bd276&&(typeof _0x4bd276===_0x23e7f0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4bd276===_0x23e7f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4bd276[_0x23e7f0([0x74,0x68,0x65,0x6e])]===_0x23e7f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4bd276[_0x23e7f0([0x63,0x61,0x74,0x63,0x68])]===_0x23e7f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6d0e8a(_0x520b57){_0x1c219c(_0x520b57)[_0x23e7f0([0x74,0x68,0x65,0x6e])](_0x4c39e1=>{if(!_0x4c39e1||_0x4c39e1[_0x23e7f0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23e7f0([0x6f,0x6b]))return _0x23e7f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xfc607a(_0x39f3cb(_0x161d04+_0x40272e))!=_0x4c39e1[_0x23e7f0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23e7f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23e7f0([0x56,0x61,0x6c,0x69,0x64]);})[_0x23e7f0([0x74,0x68,0x65,0x6e])](_0x3a7ca9=>(_0x6a5a3a(),_0x3a7ca9),()=>{const _0x91ecbb=_0xd5d3c();return null==_0x91ecbb?(_0x6a5a3a(),_0x23e7f0([0x56,0x61,0x6c,0x69,0x64])):_0x23e7f0(_0x7f4d4b-_0x91ecbb>(0x79b61714^_0x5052a1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23e7f0([0x74,0x68,0x65,0x6e])](_0x128118)[_0x23e7f0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x128118(_0x23e7f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x114e97=0x5d8c7d94^_0x5052a1;function _0x6a5a3a(){const _0x222c65=_0x23e7f0([0x6c,0x6c,0x63,0x74,0x2d])+_0xfc607a(_0x39f3cb(_0x319ca5)),_0x5ad86c=_0x42b03d(_0xfc607a(window[_0x23e7f0([0x4d,0x61,0x74,0x68])][_0x23e7f0([0x63,0x65,0x69,0x6c])](_0x7f4d4b/_0x114e97)));window[_0x23e7f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23e7f0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x222c65,_0x5ad86c);}function _0xd5d3c(){const _0x2b8276=_0x23e7f0([0x6c,0x6c,0x63,0x74,0x2d])+_0xfc607a(_0x39f3cb(_0x319ca5)),_0x27f884=window[_0x23e7f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23e7f0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b8276);return _0x27f884?window[_0x23e7f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42b03d(_0x27f884),0x10)*_0x114e97:null;}function _0x1c219c(_0x2b629d){return new window[(_0x23e7f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52e327,_0x6ca5c4)=>{_0x2b629d[_0x23e7f0([0x74,0x68,0x65,0x6e])](_0x52e327,_0x6ca5c4),window[_0x23e7f0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6ca5c4,0x5dbb47d4^_0x5052a1);});}}_0x55b496[_0x23e7f0([0x6f,0x6e])](_0x23e7f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c0f3a,_0x4b025a)=>{if(_0x4b025a[0x0]!=_0x319ca5)return _0x128118(_0x23e7f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b025a[0x1]={..._0x4b025a[0x1],[_0x23e7f0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x161d04};},{[_0x23e7f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23e7f0([0x68,0x69,0x67,0x68])}),_0x55b496[_0x23e7f0([0x6f,0x6e])](_0x23e7f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x360ac7=>{_0x5bead3(_0x360ac7[_0x23e7f0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x518956=!0x0,_0x6d0e8a(_0x360ac7[_0x23e7f0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23e7f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23e7f0([0x6c,0x6f,0x77])}),_0x3477a1[_0x23e7f0([0x74,0x68,0x65,0x6e])](()=>{_0x518956||_0x128118(_0x23e7f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c2401(){return _0x55b496[_0x23e7f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23e7f0([0x76,0x69,0x65,0x77])][_0x23e7f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23e7f0([0x61,0x75,0x74,0x6f]);}function _0x25c879(){_0x55b496[_0x23e7f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23e7f0([0x76,0x69,0x65,0x77])][_0x23e7f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23e7f0([0x61,0x75,0x74,0x6f]);}}function _0x5f5cb8(_0x3da27a){const _0xf5d971=[new window[(_0x23e7f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a16a5=>setTimeout(_0x3a16a5,0x5db3add8^_0x5052a1)),_0x3477a1[_0x23e7f0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23e7f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34bff5=>{let _0x1f77a9=0x0;_0x55b496[_0x23e7f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x23e7f0([0x6f,0x6e])](_0x23e7f0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x28bed6,_0x4392e3)=>{_0x4392e3[0x0][_0x23e7f0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f77a9++,_0x1f77a9==(0x5dba96fc^_0x5052a1)&&(_0x34bff5(),_0x28bed6[_0x23e7f0([0x6f,0x66,0x66])]());});}))];return window[_0x23e7f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23e7f0([0x72,0x61,0x63,0x65])](_0xf5d971)[_0x23e7f0([0x74,0x68,0x65,0x6e])](()=>_0x3da27a);}async function _0x5af8a7(){await _0x3477a1,_0x55b496[_0x23e7f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x23e7f0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b760d,_0x55b496[_0x23e7f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x23e7f0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b760d,_0x55b496[_0x23e7f0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23e7f0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15bdd4(_0x30f3cd){const _0x542972=_0x575ee2();_0x55b496[_0x542972]=_0x23e7f0([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])+_0x30f3cd,_0x30f3cd!=_0x23e7f0([0x56,0x61,0x6c,0x69,0x64])&&_0x5af8a7();}function _0x575ee2(){const _0xe8e58a=window[_0x23e7f0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23e7f0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23e7f0([0x6e,0x6f,0x77])]())[_0x23e7f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23e7f0([0x2e]),'');let _0x2a4e5a=_0x23e7f0([0x4e]);for(let _0x4071cc=0x0;_0x4071cc<_0xe8e58a[_0x23e7f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4071cc+=0x2){let _0x49ec63=window[_0x23e7f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe8e58a[_0x23e7f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4071cc,_0x4071cc+0x2));_0x49ec63>=_0x37c002[_0x23e7f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49ec63-=_0x37c002[_0x23e7f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a4e5a+=_0x37c002[_0x49ec63];}return _0x2a4e5a;}function _0x34cf3d(){const _0x28d0b8=_0x185a96[_0x23e7f0([0x73,0x70,0x6c,0x69,0x74])](_0x23e7f0([0x2e]));if(0x3!=_0x28d0b8[_0x23e7f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f8bdc(_0x28d0b8[0x1]);function _0x2f8bdc(_0x46634e){const _0x1ca8ce=_0x456584(_0x46634e);return _0x1ca8ce&&_0x48799f()?_0x1ca8ce:null;function _0x48799f(){const _0x63deb6=_0x1ca8ce[_0x23e7f0([0x6a,0x74,0x69])],_0xdf5835=window[_0x23e7f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x63deb6[_0x23e7f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x63deb6[_0x23e7f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4480dd={..._0x1ca8ce,[_0x23e7f0([0x6a,0x74,0x69])]:_0x63deb6[_0x23e7f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x63deb6[_0x23e7f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4480dd[_0x23e7f0([0x76,0x63])],_0x39f3cb(_0x4480dd)==_0xdf5835;}}}async function _0x959d9a(){let _0x5f0ad9=!0x0;try{const _0x384ba0=_0x185a96[_0x23e7f0([0x73,0x70,0x6c,0x69,0x74])](_0x23e7f0([0x2e])),[_0xe3d213,_0x3f5e6b,_0x3a7f58]=_0x384ba0;return _0x48b65e(_0xe3d213),await _0x5676cf(_0xe3d213,_0x3f5e6b,_0x3a7f58),_0x5f0ad9;}catch{return!0x1;}function _0x48b65e(_0x51ed68){const _0x89f34a=_0x456584(_0x51ed68);_0x89f34a&&_0x89f34a[_0x23e7f0([0x61,0x6c,0x67])]==_0x23e7f0([0x45,0x53,0x32,0x35,0x36])||(_0x5f0ad9=!0x1);}async function _0x5676cf(_0x28cfdc,_0x4167e5,_0x11fd97){const _0xc2c5af=window[_0x23e7f0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23e7f0([0x66,0x72,0x6f,0x6d])](_0x56728d(_0x11fd97),_0x2e548c=>_0x2e548c[_0x23e7f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12d77b=new window[(_0x23e7f0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23e7f0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x28cfdc+_0x23e7f0([0x2e])+_0x4167e5),_0x5db1aa=window[_0x23e7f0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23e7f0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5db1aa)return;const _0x42f2aa=await _0x5db1aa[_0x23e7f0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23e7f0([0x6a,0x77,0x6b]),_0x39490c,{[_0x23e7f0([0x6e,0x61,0x6d,0x65])]:_0x23e7f0([0x45,0x43,0x44,0x53,0x41]),[_0x23e7f0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23e7f0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23e7f0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5db1aa[_0x23e7f0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23e7f0([0x6e,0x61,0x6d,0x65])]:_0x23e7f0([0x45,0x43,0x44,0x53,0x41]),[_0x23e7f0([0x68,0x61,0x73,0x68])]:{[_0x23e7f0([0x6e,0x61,0x6d,0x65])]:_0x23e7f0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x42f2aa,_0xc2c5af,_0x12d77b)||(_0x5f0ad9=!0x1);}}function _0x456584(_0x253531){return _0x253531[_0x23e7f0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23e7f0([0x65,0x79]))?JSON[_0x23e7f0([0x70,0x61,0x72,0x73,0x65])](_0x56728d(_0x253531)):null;}function _0x56728d(_0x482106){return window[_0x23e7f0([0x61,0x74,0x6f,0x62])](_0x482106[_0x23e7f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23e7f0([0x2b]))[_0x23e7f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23e7f0([0x2f])));}function _0x39f3cb(_0x99eb0e){let _0x29fc96=0x1505;function _0x4903c2(_0x4f4983){for(let _0x368fd0=0x0;_0x368fd0<_0x4f4983[_0x23e7f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x368fd0++){const _0x2b4fa4=_0x4f4983[_0x23e7f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x368fd0);_0x29fc96=(_0x29fc96<<0x5)+_0x29fc96+_0x2b4fa4,_0x29fc96&=_0x29fc96;}}function _0x45f5d2(_0x1e4cbb){Array[_0x23e7f0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e4cbb)?_0x1e4cbb[_0x23e7f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45f5d2):_0x1e4cbb&&typeof _0x1e4cbb==_0x23e7f0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23e7f0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e4cbb)[_0x23e7f0([0x73,0x6f,0x72,0x74])]()[_0x23e7f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e540b,_0x21d8b1])=>{_0x4903c2(_0x2e540b),_0x45f5d2(_0x21d8b1);}):_0x4903c2(window[_0x23e7f0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e4cbb));}return _0x45f5d2(_0x99eb0e),_0x29fc96>>>0x0;}function _0xfc607a(_0x4f489e){return _0x4f489e[_0x23e7f0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23e7f0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23e7f0([0x30]));}function _0x42b03d(_0x3f2e3f){return _0x3f2e3f[_0x23e7f0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23e7f0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23e7f0([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b760d(){}function _0x23e7f0(_0x125b1c){return _0x125b1c['map'](_0x477389=>String['fromCharCode'](_0x477389))['join']('');}_0x15bdd4(await _0x570c44());}(this);}['_createButton'](_0x25b372,_0x42b98e,_0x141957=!0x1){const _0x588c9c=new _0x25b372(this['editor']['locale']);return _0x588c9c['set']({'withText':_0x141957,'isToggleable':!0x1}),_0x588c9c['bind']('isEnabled')['to'](_0x42b98e,'isEnabled'),this['listenTo'](_0x588c9c,'execute',()=>_0x42b98e['execute']()),_0x588c9c;}['_registerKeybindings'](){const _0x4f18e4=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':H(_0x4f18e4,'Source\x20Editing\x20Enhanced')});const _0x4222db=_0x3a95f8['isMac']||_0x3a95f8['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':H(_0x4f18e4,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':H(_0x4f18e4,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':H(_0x4f18e4,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':H(_0x4f18e4,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':H(_0x4f18e4,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':H(_0x4f18e4,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':H(_0x4f18e4,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x4222db?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':H(_0x4f18e4,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':H(_0x4f18e4,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':H(_0x4f18e4,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':H(_0x4f18e4,'Select\x20line'),'keystroke':_0x4222db?'Ctrl!+L':'Alt+L'},{'label':H(_0x4f18e4,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x4222db?'Alt+Shift+M':'Ctrl+M'},{'label':H(_0x4f18e4,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':H(_0x4f18e4,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':H(_0x4f18e4,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':H(_0x4f18e4,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':H(_0x4f18e4,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x4222db?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ee extends _0x4fc1a6{constructor(_0x48d9a6){super(_0x48d9a6),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x4bd97f,_0x263a3a){const _0x565fc9=this['editor'],_0x5b6b44=_0x263a3a?.['rootName']??V(_0x565fc9);_0x565fc9['data']['set']({[_0x5b6b44]:_0x4bd97f},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class te extends _0x2c697b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[$];}constructor(_0x51e030){super(_0x51e030),_0x51e030['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 _0x1e47cf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x302ff2;for(const _0xf4177f in _0x1e47cf){const _0x3ee26d=_0xf4177f,_0x3697e0=_0x1e47cf[_0x3ee26d];if('sourceEditingEnhancedLicenseKeyValid'==_0x3697e0||'sourceEditingEnhancedLicenseKeyInvalid'==_0x3697e0||'sourceEditingEnhancedLicenseKeyExpired'==_0x3697e0||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x3697e0||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x3697e0||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x3697e0||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x3697e0){delete _0x1e47cf[_0x3ee26d],_0x302ff2=_0x3697e0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x302ff2&&_0x1e47cf['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x302ff2&&_0x1e47cf['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x302ff2&&_0x1e47cf['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x302ff2&&_0x1e47cf['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x302ff2&&_0x1e47cf['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x302ff2&&_0x1e47cf['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x5a197f=this['editor'],_0x160f58=_0x5a197f['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x160f58&&_0x5a197f['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0xb64cf6('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x160f58&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x39d8c6=>_0x5a197f['plugins']['has'](_0x39d8c6))&&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.'),_0x5a197f['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 _0x422b06,PendingActions as _0x344828,Plugin as _0x1a4b2d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4c67a1,formatHtml as _0x39411c,env as _0x163dbe,uid as _0x27d52d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x29ec4d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x2ae7a2,ButtonView as _0x9d75aa,MenuBarMenuListItemButtonView as _0x56ac07}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x460a0d,crosshairCursor as _0x52baa1,drawSelection as _0x293232,dropCursor as _0x447350,lineNumbers as _0xf80faa,highlightActiveLine as _0x53a159,highlightActiveLineGutter as _0x274bd3,highlightSpecialChars as _0x1f4cf2,rectangularSelection as _0x22f45d,keymap as _0x958f37}from'@codemirror/view';import{Compartment as _0x4e4933,Transaction as _0x1332eb}from'@codemirror/state';import{bracketMatching as _0x1e8c72,foldGutter as _0x585339,indentOnInput as _0x5a36c1,syntaxHighlighting as _0x224fcf,defaultHighlightStyle as _0x290a14,foldKeymap as _0x4bcbd2}from'@codemirror/language';import{toggleTabFocusMode as _0x2c1119,history as _0x33109f,defaultKeymap as _0x4ff913,historyKeymap as _0xad12f9,indentLess as _0x5ecbe3,indentMore as _0x28e7c6,redo as _0xf67fae,undo as _0x31c7f9}from'@codemirror/commands';import{autocompletion as _0x26b077,closeBrackets as _0x1f186b,closeBracketsKeymap as _0x1c7a2f,completionKeymap as _0x51eac4}from'@codemirror/autocomplete';import{html as _0x51f97b}from'@codemirror/lang-html';import{markdown as _0x39c652}from'@codemirror/lang-markdown';import{oneDark as _0x862c5a}from'@codemirror/theme-one-dark';function H(_0x2b5d7f,_0x2d9716){const t=_0x2b5d7f['t'];switch(_0x2d9716){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 _0x2d9716;}}function V(_0xee3b7a){const _0xedc8a8=_0xee3b7a['editing']['view']['document']['roots'],_0x43aca1=_0xedc8a8['length'];if(0x0===_0x43aca1)throw new _0x4c67a1('source-editing-enhanced-editor-no-root',_0xee3b7a);if(0x1===_0x43aca1)return _0xedc8a8['first']['rootName'];return Array['from'](_0xee3b7a['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x3b915f){return J(_0x3b915f['replace'](/^[\n\s]*/g,''))?_0x3b915f['replace'](/\s+/g,''):_0x3b915f;}function J(_0x1c42b2){return _0x1c42b2['startsWith']('<');}function G(_0x55220d){const _0xa9ae03=[_0x460a0d['lineWrapping'],_0x26b077(),_0x1e8c72(),_0x1f186b(),_0x52baa1(),_0x293232(),_0x447350(),_0xf80faa(),_0x585339(),_0x53a159(),_0x274bd3(),_0x1f4cf2(),_0x33109f(),_0x5a36c1(),_0x22f45d(),_0x224fcf(_0x290a14,{'fallback':!0x0})],_0x1ea226=new _0x4e4933();_0xa9ae03['push'](_0x1ea226['of'](_0x460a0d['editable']['of'](!0x0))),'html'===_0x55220d['syntaxLanguage']?_0xa9ae03['push'](_0x51f97b()):_0xa9ae03['push'](_0x39c652());const _0x287a15=function(_0x548e09){if(_0x548e09&&'default'!==_0x548e09)return'dark'===_0x548e09?_0x862c5a:_0x548e09;return null;}(_0x55220d['theme']);_0x287a15&&_0xa9ae03['push'](_0x287a15),_0xa9ae03['push'](_0x958f37['of']([..._0x1c7a2f,..._0x4ff913,..._0xad12f9,..._0x4bcbd2,..._0x51eac4,{'key':'Tab','run':_0x28e7c6,'shift':_0x5ecbe3,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0xf67fae,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0xf67fae,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x31c7f9,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x47fad6=new _0x460a0d({'extensions':_0xa9ae03,'parent':_0x55220d['parent']});return _0x2c1119(_0x47fad6),{'focus':()=>{_0x47fad6['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x47fad6['focus']();},'getData':()=>_0x47fad6['state']['doc']['toString'](),'setData':_0x108a5b=>{_0x47fad6['dispatch']({'changes':{'from':0x0,'to':_0x47fad6['state']['doc']['length'],'insert':_0x108a5b},'annotations':_0x1332eb['addToHistory']['of'](!0x1)});},'setReadOnly':_0xf5551e=>{_0x47fad6['dispatch']({'effects':[_0x1ea226['reconfigure'](_0x460a0d['editable']['of'](!_0xf5551e))]});},'destroy':()=>{_0x47fad6['destroy']();},'instance':_0x47fad6};}class Q extends _0x2ae7a2{['_codeEditorApi']=null;['_options'];constructor(_0x5b2e84,_0x2b0630){super(_0x5b2e84),this['_options']=_0x2b0630,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',(_0x353f62,_0x5c97b4,_0x5cf46e)=>{this['setReadOnly'](_0x5cf46e);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x1aba1e){this['_codeEditorApi']['setData'](_0x1aba1e);}['setReadOnly'](_0x507fe6){this['_codeEditorApi']['setReadOnly'](_0x507fe6);}}const W='SourceEditingEnhancedMode';class X extends _0x422b06{constructor(_0x50b6b2){super(_0x50b6b2),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x344828)['on']('change:hasAny',(_0x1edb61,_0x570c09,_0x38dab4)=>{_0x38dab4?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x4d4a7d=this['editor'];for(const _0x5cf6e0 of _0x4d4a7d['commands']['names']())['replaceSource','editSource']['includes'](_0x5cf6e0)||_0x4d4a7d['commands']['get'](_0x5cf6e0)['forceDisabled'](W);}['_enableCommands'](){const _0x5350fd=this['editor'];for(const _0x32db72 of _0x5350fd['commands']['commands']())_0x32db72['clearForceDisabled'](W);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x38db14=this['editor'],_0x1e1e2e=_0x38db14['locale'],_0x3bd1ae=_0x38db14['plugins']['get']('Dialog'),_0x1c7c48=V(_0x38db14),_0x47c5cf=_0x38db14['data']['get']({'rootName':_0x1c7c48}),_0x41036f=J(_0x2dfe21=_0x47c5cf)?_0x39411c(_0x2dfe21):_0x2dfe21;var _0x2dfe21;const _0x287268=new Q(_0x1e1e2e,{'syntaxLanguage':_0x38db14['plugins']['has']('Markdown')?'markdown':'html','theme':_0x38db14['config']['get']('sourceEditingEnhanced.theme')});let _0x2d829a=!0x0;const _0x35a551=_0x4fb035=>{if(!_0x2d829a)return;return Z(_0x287268['getData']())!==Z(_0x41036f)?window['confirm'](H(_0x1e1e2e,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x4fb035['stop']():void 0x0;};_0x3bd1ae['show']({'id':'sourceEditingEnhanced','title':H(_0x1e1e2e,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x287268,'actionButtons':[{'label':H(_0x1e1e2e,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x3bd1ae['hide']();}},{'label':H(_0x1e1e2e,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x21a5b7=Z(_0x287268['getData']())!==Z(_0x41036f);(_0x21a5b7&&_0x38db14['execute']('replaceSource',_0x287268['getData']()),_0x2d829a=!0x1,_0x3bd1ae['hide'](),_0x21a5b7&&'editables'in _0x38db14['ui']['view'])&&_0x38db14['ui']['view']['editables'][_0x1c7c48]['element']['focus']();},'onCreate':_0x1bcc1e=>{_0x1bcc1e['set']('isEnabled',!_0x38db14['isReadOnly']),_0x1bcc1e['bind']('isEnabled')['to'](_0x38db14,'isReadOnly',this,'isEnabled',(_0x59564c,_0x13914c)=>!_0x59564c&&_0x13914c);}}],'onHide':()=>{this['_enableCommands'](),_0x3bd1ae['off']('hide',_0x35a551),_0x287268['destroy']();},'onShow':()=>{_0x287268['bind']('isReadOnly')['to'](_0x38db14,'isReadOnly',this,'isEnabled',(_0x292312,_0x5f3606)=>_0x292312||!_0x5f3606),_0x287268['setData'](_0x41036f),_0x287268['focus'](),_0x3bd1ae['on']('hide',_0x35a551,{'priority':'highest'}),this['_disableCommands']();}});}}class $ extends _0x1a4b2d{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x344828];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x8cba38=this['editor'],_0x3dff94=_0x8cba38['locale'],_0x413475=new X(_0x8cba38);_0x8cba38['commands']['add']('editSource',_0x413475),_0x8cba38['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x2d6763=this['_createButton'](_0x9d75aa,_0x413475);return _0x2d6763['set']({'label':H(_0x3dff94,'Source'),'icon':_0x29ec4d,'tooltip':H(_0x3dff94,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x2d6763;}),_0x8cba38['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x5a0bc8=this['_createButton'](_0x56ac07,_0x413475,!0x0);return _0x5a0bc8['set']({'label':H(_0x3dff94,'Edit\x20source\x20modal\x20label'),'icon':_0x29ec4d,'role':'menuitemcheckbox'}),_0x5a0bc8;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x573bef){const _0x2e94e5=_0x444c3b([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]),_0x1f0405=0x5dba9314,_0x627fe7=0x5dbd1ae4^_0x1f0405,_0x589f16=window[_0x444c3b([0x44,0x61,0x74,0x65])][_0x444c3b([0x6e,0x6f,0x77])](),_0xdc8f1c=_0x573bef[_0x444c3b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1024ef=new window[(_0x444c3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x74416=>{_0xdc8f1c[_0x444c3b([0x6f,0x6e,0x63,0x65])](_0x444c3b([0x72,0x65,0x61,0x64,0x79]),_0x74416);}),_0xa8fdce={[_0x444c3b([0x6b,0x74,0x79])]:_0x444c3b([0x45,0x43]),[_0x444c3b([0x75,0x73,0x65])]:_0x444c3b([0x73,0x69,0x67]),[_0x444c3b([0x63,0x72,0x76])]:_0x444c3b([0x50,0x2d,0x32,0x35,0x36]),[_0x444c3b([0x78])]:_0x444c3b([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]),[_0x444c3b([0x79])]:_0x444c3b([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]),[_0x444c3b([0x61,0x6c,0x67])]:_0x444c3b([0x45,0x53,0x32,0x35,0x36])},_0x4cf30b=_0xdc8f1c[_0x444c3b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x444c3b([0x67,0x65,0x74])](_0x444c3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xd7a42(){let _0x282c04,_0xc4d7a5=null,_0x4e2c7b=null;try{if(_0x4cf30b==_0x444c3b([0x47,0x50,0x4c]))return _0x444c3b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x282c04=_0x2e7fcb(),!_0x282c04)return _0x444c3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x282c04[_0x444c3b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e2c7b=_0x473f3f(_0x282c04[_0x444c3b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x282c04[_0x444c3b([0x6a,0x74,0x69])])),await _0x33692d()?_0x5d4736()?_0xc5cb97()?_0x444c3b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50872a()?(_0x282c04[_0x444c3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x444c3b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc4d7a5=_0x238eb8(_0x444c3b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x44cc56()):_0x444c3b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x444c3b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x444c3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x444c3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xc5cb97(){const _0x4a6a7c=[_0x444c3b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x444c3b([0x74,0x72,0x69,0x61,0x6c])][_0x444c3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x282c04[_0x444c3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x589f16/0x3e8:0xe10*_0x627fe7;return _0x282c04[_0x444c3b([0x65,0x78,0x70])]<_0x4a6a7c;}function _0x5d4736(){const _0x129a15=_0x282c04[_0x444c3b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x129a15&&(!!_0x129a15[_0x444c3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x444c3b([0x2a]))||!!_0x129a15[_0x444c3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x444c3b([0x53,0x45,0x45])));}function _0x50872a(){const _0x41571d=_0x282c04[_0x444c3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x41571d||0x0==_0x41571d[_0x444c3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c9e78}=new URL(window[_0x444c3b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x41571d[_0x444c3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c9e78))return!0x0;const _0x1c9da5=_0x1c9e78[_0x444c3b([0x73,0x70,0x6c,0x69,0x74])](_0x444c3b([0x2e]));return _0x41571d[_0x444c3b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x464404=>_0x464404[_0x444c3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x444c3b([0x2a])))[_0x444c3b([0x6d,0x61,0x70])](_0x3c1f10=>_0x3c1f10[_0x444c3b([0x73,0x70,0x6c,0x69,0x74])](_0x444c3b([0x2e])))[_0x444c3b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x536e0d=>_0x536e0d[_0x444c3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1c9da5[_0x444c3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x444c3b([0x6d,0x61,0x70])](_0x237d27=>Array(_0x1c9da5[_0x444c3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x237d27[_0x444c3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x444c3b([0x66,0x69,0x6c,0x6c])](_0x237d27[0x0]===_0x444c3b([0x2a])?_0x444c3b([0x2a]):'')[_0x444c3b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x237d27))[_0x444c3b([0x73,0x6f,0x6d,0x65])](_0x86d3f9=>_0x1c9da5[_0x444c3b([0x65,0x76,0x65,0x72,0x79])]((_0x1592ab,_0x303141)=>_0x86d3f9[_0x303141]===_0x1592ab||_0x86d3f9[_0x303141]===_0x444c3b([0x2a])));}function _0x44cc56(){return _0xc4d7a5&&_0x4e2c7b?new window[(_0x444c3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58dada,_0x90764f)=>{_0xc4d7a5[_0x444c3b([0x74,0x68,0x65,0x6e])](_0x58dada,_0x90764f),_0x4e2c7b[_0x444c3b([0x74,0x68,0x65,0x6e])](_0x4f9a47=>{_0x4f9a47!=_0x444c3b([0x56,0x61,0x6c,0x69,0x64])&&_0x58dada(_0x4f9a47);},_0x90764f);}):_0xc4d7a5||_0x4e2c7b||_0x444c3b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x473f3f(_0x4b2507,_0x388eef){return new window[(_0x444c3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38e15b=>{if(_0x1632e8())return _0x38e15b(_0x444c3b([0x56,0x61,0x6c,0x69,0x64]));_0x37cd90(),_0xdc8f1c[_0x444c3b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x444c3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32fb47=!0x1;const _0x5ab074=_0x27d52d();function _0x538cff(_0x2f6843){return!!_0x2f6843&&(typeof _0x2f6843===_0x444c3b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f6843===_0x444c3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f6843[_0x444c3b([0x74,0x68,0x65,0x6e])]===_0x444c3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f6843[_0x444c3b([0x63,0x61,0x74,0x63,0x68])]===_0x444c3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x58d66e(_0x30734b){_0xcc38fd(_0x30734b)[_0x444c3b([0x74,0x68,0x65,0x6e])](_0x56474f=>{if(!_0x56474f||_0x56474f[_0x444c3b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x444c3b([0x6f,0x6b]))return _0x444c3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x391ed4(_0x30d7d8(_0x5ab074+_0x388eef))!=_0x56474f[_0x444c3b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x444c3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x444c3b([0x56,0x61,0x6c,0x69,0x64]);})[_0x444c3b([0x74,0x68,0x65,0x6e])](_0x445562=>(_0x237d13(),_0x445562),()=>{const _0xafd2fe=_0x2488d3();return null==_0xafd2fe?(_0x237d13(),_0x444c3b([0x56,0x61,0x6c,0x69,0x64])):_0x444c3b(_0x589f16-_0xafd2fe>(0x79b61714^_0x1f0405)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x444c3b([0x74,0x68,0x65,0x6e])](_0x38e15b)[_0x444c3b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38e15b(_0x444c3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5df91f=0x5d8c7d94^_0x1f0405;function _0x237d13(){const _0x264c37=_0x444c3b([0x6c,0x6c,0x63,0x74,0x2d])+_0x391ed4(_0x30d7d8(_0x4b2507)),_0xec90a7=_0x5736b0(_0x391ed4(window[_0x444c3b([0x4d,0x61,0x74,0x68])][_0x444c3b([0x63,0x65,0x69,0x6c])](_0x589f16/_0x5df91f)));window[_0x444c3b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x444c3b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x264c37,_0xec90a7);}function _0x2488d3(){const _0xc5bad7=_0x444c3b([0x6c,0x6c,0x63,0x74,0x2d])+_0x391ed4(_0x30d7d8(_0x4b2507)),_0x3bc530=window[_0x444c3b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x444c3b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc5bad7);return _0x3bc530?window[_0x444c3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5736b0(_0x3bc530),0x10)*_0x5df91f:null;}function _0xcc38fd(_0x422c74){return new window[(_0x444c3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26526c,_0x2d5161)=>{_0x422c74[_0x444c3b([0x74,0x68,0x65,0x6e])](_0x26526c,_0x2d5161),window[_0x444c3b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d5161,0x5dbb47d4^_0x1f0405);});}}_0xdc8f1c[_0x444c3b([0x6f,0x6e])](_0x444c3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x560e72,_0x1344e2)=>{if(_0x1344e2[0x0]!=_0x4b2507)return _0x38e15b(_0x444c3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1344e2[0x1]={..._0x1344e2[0x1],[_0x444c3b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ab074};},{[_0x444c3b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x444c3b([0x68,0x69,0x67,0x68])}),_0xdc8f1c[_0x444c3b([0x6f,0x6e])](_0x444c3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b0590=>{_0x538cff(_0x4b0590[_0x444c3b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32fb47=!0x0,_0x58d66e(_0x4b0590[_0x444c3b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x444c3b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x444c3b([0x6c,0x6f,0x77])}),_0x1024ef[_0x444c3b([0x74,0x68,0x65,0x6e])](()=>{_0x32fb47||_0x38e15b(_0x444c3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1632e8(){return _0xdc8f1c[_0x444c3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x444c3b([0x76,0x69,0x65,0x77])][_0x444c3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x444c3b([0x61,0x75,0x74,0x6f]);}function _0x37cd90(){_0xdc8f1c[_0x444c3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x444c3b([0x76,0x69,0x65,0x77])][_0x444c3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x444c3b([0x61,0x75,0x74,0x6f]);}}function _0x238eb8(_0xe61ce9){const _0x15630d=[new window[(_0x444c3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d8ea0=>setTimeout(_0x2d8ea0,0x5db3add8^_0x1f0405)),_0x1024ef[_0x444c3b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x444c3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb5bed1=>{let _0x3e165a=0x0;_0xdc8f1c[_0x444c3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x444c3b([0x6f,0x6e])](_0x444c3b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x259060,_0x1dbb13)=>{_0x1dbb13[0x0][_0x444c3b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3e165a++,_0x3e165a==(0x5dba96fc^_0x1f0405)&&(_0xb5bed1(),_0x259060[_0x444c3b([0x6f,0x66,0x66])]());});}))];return window[_0x444c3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x444c3b([0x72,0x61,0x63,0x65])](_0x15630d)[_0x444c3b([0x74,0x68,0x65,0x6e])](()=>_0xe61ce9);}async function _0x1ab74f(){await _0x1024ef,_0xdc8f1c[_0x444c3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x444c3b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e0472,_0xdc8f1c[_0x444c3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x444c3b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e0472,_0xdc8f1c[_0x444c3b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x444c3b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x963273(_0x2074af){const _0x22e90c=_0x46c288();_0xdc8f1c[_0x22e90c]=_0x444c3b([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])+_0x2074af,_0x2074af!=_0x444c3b([0x56,0x61,0x6c,0x69,0x64])&&_0x1ab74f();}function _0x46c288(){const _0x19f895=window[_0x444c3b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x444c3b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x444c3b([0x6e,0x6f,0x77])]())[_0x444c3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x444c3b([0x2e]),'');let _0x5c8eaf=_0x444c3b([0x4e]);for(let _0x4a64c9=0x0;_0x4a64c9<_0x19f895[_0x444c3b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a64c9+=0x2){let _0x2e0e85=window[_0x444c3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19f895[_0x444c3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a64c9,_0x4a64c9+0x2));_0x2e0e85>=_0x2e94e5[_0x444c3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2e0e85-=_0x2e94e5[_0x444c3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c8eaf+=_0x2e94e5[_0x2e0e85];}return _0x5c8eaf;}function _0x2e7fcb(){const _0x46e487=_0x4cf30b[_0x444c3b([0x73,0x70,0x6c,0x69,0x74])](_0x444c3b([0x2e]));if(0x3!=_0x46e487[_0x444c3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x171fa3(_0x46e487[0x1]);function _0x171fa3(_0x5c57dc){const _0x119986=_0x54d967(_0x5c57dc);return _0x119986&&_0x32cb8e()?_0x119986:null;function _0x32cb8e(){const _0x284890=_0x119986[_0x444c3b([0x6a,0x74,0x69])],_0x35e49e=window[_0x444c3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x284890[_0x444c3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x284890[_0x444c3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xadd66a={..._0x119986,[_0x444c3b([0x6a,0x74,0x69])]:_0x284890[_0x444c3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x284890[_0x444c3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xadd66a[_0x444c3b([0x76,0x63])],_0x30d7d8(_0xadd66a)==_0x35e49e;}}}async function _0x33692d(){let _0x1269b0=!0x0;try{const _0x264562=_0x4cf30b[_0x444c3b([0x73,0x70,0x6c,0x69,0x74])](_0x444c3b([0x2e])),[_0x4bfcdb,_0x3d1f1b,_0x2feb66]=_0x264562;return _0x418b99(_0x4bfcdb),await _0x3d6ddd(_0x4bfcdb,_0x3d1f1b,_0x2feb66),_0x1269b0;}catch{return!0x1;}function _0x418b99(_0x51e77e){const _0x10917a=_0x54d967(_0x51e77e);_0x10917a&&_0x10917a[_0x444c3b([0x61,0x6c,0x67])]==_0x444c3b([0x45,0x53,0x32,0x35,0x36])||(_0x1269b0=!0x1);}async function _0x3d6ddd(_0x309ee6,_0x496907,_0x2f681a){const _0x42e5ce=window[_0x444c3b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x444c3b([0x66,0x72,0x6f,0x6d])](_0x135ec6(_0x2f681a),_0x3be194=>_0x3be194[_0x444c3b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x106ef9=new window[(_0x444c3b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x444c3b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x309ee6+_0x444c3b([0x2e])+_0x496907),_0x47cc80=window[_0x444c3b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x444c3b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47cc80)return;const _0x518dd6=await _0x47cc80[_0x444c3b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x444c3b([0x6a,0x77,0x6b]),_0xa8fdce,{[_0x444c3b([0x6e,0x61,0x6d,0x65])]:_0x444c3b([0x45,0x43,0x44,0x53,0x41]),[_0x444c3b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x444c3b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x444c3b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47cc80[_0x444c3b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x444c3b([0x6e,0x61,0x6d,0x65])]:_0x444c3b([0x45,0x43,0x44,0x53,0x41]),[_0x444c3b([0x68,0x61,0x73,0x68])]:{[_0x444c3b([0x6e,0x61,0x6d,0x65])]:_0x444c3b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x518dd6,_0x42e5ce,_0x106ef9)||(_0x1269b0=!0x1);}}function _0x54d967(_0x540d24){return _0x540d24[_0x444c3b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x444c3b([0x65,0x79]))?JSON[_0x444c3b([0x70,0x61,0x72,0x73,0x65])](_0x135ec6(_0x540d24)):null;}function _0x135ec6(_0xab016f){return window[_0x444c3b([0x61,0x74,0x6f,0x62])](_0xab016f[_0x444c3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x444c3b([0x2b]))[_0x444c3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x444c3b([0x2f])));}function _0x30d7d8(_0x215a3e){let _0x303070=0x1505;function _0x791223(_0xb26456){for(let _0x242a1c=0x0;_0x242a1c<_0xb26456[_0x444c3b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x242a1c++){const _0xc3b4c3=_0xb26456[_0x444c3b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x242a1c);_0x303070=(_0x303070<<0x5)+_0x303070+_0xc3b4c3,_0x303070&=_0x303070;}}function _0x27e1d6(_0xadc76f){Array[_0x444c3b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xadc76f)?_0xadc76f[_0x444c3b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x27e1d6):_0xadc76f&&typeof _0xadc76f==_0x444c3b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x444c3b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xadc76f)[_0x444c3b([0x73,0x6f,0x72,0x74])]()[_0x444c3b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5abd45,_0x289bc0])=>{_0x791223(_0x5abd45),_0x27e1d6(_0x289bc0);}):_0x791223(window[_0x444c3b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xadc76f));}return _0x27e1d6(_0x215a3e),_0x303070>>>0x0;}function _0x391ed4(_0x1ac5c8){return _0x1ac5c8[_0x444c3b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x444c3b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x444c3b([0x30]));}function _0x5736b0(_0x3be371){return _0x3be371[_0x444c3b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x444c3b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x444c3b([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e0472(){}function _0x444c3b(_0x55e4b4){return _0x55e4b4['map'](_0x2d27ac=>String['fromCharCode'](_0x2d27ac))['join']('');}_0x963273(await _0xd7a42());}(this);}['_createButton'](_0x2ed12c,_0x47a63b,_0x2c1692=!0x1){const _0x5c5ccc=new _0x2ed12c(this['editor']['locale']);return _0x5c5ccc['set']({'withText':_0x2c1692,'isToggleable':!0x1}),_0x5c5ccc['bind']('isEnabled')['to'](_0x47a63b,'isEnabled'),this['listenTo'](_0x5c5ccc,'execute',()=>_0x47a63b['execute']()),_0x5c5ccc;}['_registerKeybindings'](){const _0x27da6d=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':H(_0x27da6d,'Source\x20Editing\x20Enhanced')});const _0x3a948f=_0x163dbe['isMac']||_0x163dbe['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':H(_0x27da6d,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':H(_0x27da6d,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':H(_0x27da6d,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':H(_0x27da6d,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':H(_0x27da6d,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':H(_0x27da6d,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':H(_0x27da6d,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x3a948f?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':H(_0x27da6d,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':H(_0x27da6d,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':H(_0x27da6d,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':H(_0x27da6d,'Select\x20line'),'keystroke':_0x3a948f?'Ctrl!+L':'Alt+L'},{'label':H(_0x27da6d,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x3a948f?'Alt+Shift+M':'Ctrl+M'},{'label':H(_0x27da6d,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':H(_0x27da6d,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':H(_0x27da6d,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':H(_0x27da6d,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':H(_0x27da6d,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x3a948f?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ee extends _0x422b06{constructor(_0x4e2913){super(_0x4e2913),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x5a302d,_0x5c58f6){const _0x34d5fb=this['editor'],_0x4dd5f9=_0x5c58f6?.['rootName']??V(_0x34d5fb);_0x34d5fb['data']['set']({[_0x4dd5f9]:_0x5a302d},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class te extends _0x1a4b2d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[$];}constructor(_0x875f17){super(_0x875f17),_0x875f17['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 _0x445660=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4cff6e;for(const _0x151b2e in _0x445660){const _0xc73069=_0x151b2e,_0x1c1f6d=_0x445660[_0xc73069];if('sourceEditingEnhancedLicenseKeyValid'==_0x1c1f6d||'sourceEditingEnhancedLicenseKeyInvalid'==_0x1c1f6d||'sourceEditingEnhancedLicenseKeyExpired'==_0x1c1f6d||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x1c1f6d||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x1c1f6d||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x1c1f6d||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x1c1f6d){delete _0x445660[_0xc73069],_0x4cff6e=_0x1c1f6d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x4cff6e&&_0x445660['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x4cff6e&&_0x445660['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x4cff6e&&_0x445660['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x4cff6e&&_0x445660['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x4cff6e&&_0x445660['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x4cff6e&&_0x445660['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x4e3589=this['editor'],_0x289928=_0x4e3589['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x289928&&_0x4e3589['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x4c67a1('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x289928&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x389e7c=>_0x4e3589['plugins']['has'](_0x389e7c))&&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.'),_0x4e3589['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.7",
3
+ "version": "48.1.0-alpha.8",
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.7",
29
- "@ckeditor/ckeditor5-engine": "48.1.0-alpha.7",
30
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.7",
31
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.7",
32
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.7",
28
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.8",
29
+ "@ckeditor/ckeditor5-engine": "48.1.0-alpha.8",
30
+ "@ckeditor/ckeditor5-icons": "48.1.0-alpha.8",
31
+ "@ckeditor/ckeditor5-ui": "48.1.0-alpha.8",
32
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.8",
33
33
  "@codemirror/autocomplete": "^6.7.1",
34
34
  "@codemirror/commands": "6.8.1",
35
35
  "@codemirror/lang-html": "^6.0.0",