@ckeditor/ckeditor5-source-editing-enhanced 48.0.0-alpha.3 → 48.0.0-alpha.4

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 _0x2ae89a,PendingActions as _0x475fa4,Plugin as _0x4e9ab9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xed542f,formatHtml as _0x5bacb0,env as _0x251e05,uid as _0x2c85b3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0xdd5b02}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x566d86,ButtonView as _0x48d091,MenuBarMenuListItemButtonView as _0x559eb1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x3b5047,crosshairCursor as _0x5214eb,drawSelection as _0x48525a,dropCursor as _0x118f8d,lineNumbers as _0x141886,highlightActiveLine as _0x929b69,highlightActiveLineGutter as _0x8c1be2,highlightSpecialChars as _0x4ab9c6,rectangularSelection as _0x47e6a0,keymap as _0x1e13da}from'@codemirror/view';import{Compartment as _0x175953,Transaction as _0x27e3c7}from'@codemirror/state';import{bracketMatching as _0x454ae1,foldGutter as _0x4ebadc,indentOnInput as _0x55847f,syntaxHighlighting as _0x3ce9dd,defaultHighlightStyle as _0x4d103f,foldKeymap as _0x9899c5}from'@codemirror/language';import{toggleTabFocusMode as _0x42d50f,history as _0x5913d4,defaultKeymap as _0xcc0748,historyKeymap as _0x373000,indentLess as _0xa2acde,indentMore as _0x519a14,redo as _0x1c2248,undo as _0x5f130c}from'@codemirror/commands';import{autocompletion as _0x51aaea,closeBrackets as _0x320618,closeBracketsKeymap as _0x81ef00,completionKeymap as _0x42f40e}from'@codemirror/autocomplete';import{html as _0x2b11a9}from'@codemirror/lang-html';import{markdown as _0x55fc99}from'@codemirror/lang-markdown';import{oneDark as _0x38b9f4}from'@codemirror/theme-one-dark';function H(_0xaedf58,_0x41a0f1){const t=_0xaedf58['t'];switch(_0x41a0f1){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 _0x41a0f1;}}function V(_0x47519d){const _0x3b690b=_0x47519d['editing']['view']['document']['roots'],_0x23be1d=_0x3b690b['length'];if(0x0===_0x23be1d)throw new _0xed542f('source-editing-enhanced-editor-no-root',_0x47519d);if(0x1===_0x23be1d)return _0x3b690b['first']['rootName'];return Array['from'](_0x47519d['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x17b09c){return J(_0x17b09c['replace'](/^[\n\s]*/g,''))?_0x17b09c['replace'](/\s+/g,''):_0x17b09c;}function J(_0x73194d){return _0x73194d['startsWith']('<');}function G(_0x198873){const _0x5d44ed=[_0x3b5047['lineWrapping'],_0x51aaea(),_0x454ae1(),_0x320618(),_0x5214eb(),_0x48525a(),_0x118f8d(),_0x141886(),_0x4ebadc(),_0x929b69(),_0x8c1be2(),_0x4ab9c6(),_0x5913d4(),_0x55847f(),_0x47e6a0(),_0x3ce9dd(_0x4d103f,{'fallback':!0x0})],_0x9670e9=new _0x175953();_0x5d44ed['push'](_0x9670e9['of'](_0x3b5047['editable']['of'](!0x0))),'html'===_0x198873['syntaxLanguage']?_0x5d44ed['push'](_0x2b11a9()):_0x5d44ed['push'](_0x55fc99());const _0x9fe523=function(_0x1a6fef){if(_0x1a6fef&&'default'!==_0x1a6fef)return'dark'===_0x1a6fef?_0x38b9f4:_0x1a6fef;return null;}(_0x198873['theme']);_0x9fe523&&_0x5d44ed['push'](_0x9fe523),_0x5d44ed['push'](_0x1e13da['of']([..._0x81ef00,..._0xcc0748,..._0x373000,..._0x9899c5,..._0x42f40e,{'key':'Tab','run':_0x519a14,'shift':_0xa2acde,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x1c2248,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x1c2248,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x5f130c,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x262bbc=new _0x3b5047({'extensions':_0x5d44ed,'parent':_0x198873['parent']});return _0x42d50f(_0x262bbc),{'focus':()=>{_0x262bbc['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x262bbc['focus']();},'getData':()=>_0x262bbc['state']['doc']['toString'](),'setData':_0x3ba2e2=>{_0x262bbc['dispatch']({'changes':{'from':0x0,'to':_0x262bbc['state']['doc']['length'],'insert':_0x3ba2e2},'annotations':_0x27e3c7['addToHistory']['of'](!0x1)});},'setReadOnly':_0x149e64=>{_0x262bbc['dispatch']({'effects':[_0x9670e9['reconfigure'](_0x3b5047['editable']['of'](!_0x149e64))]});},'destroy':()=>{_0x262bbc['destroy']();},'instance':_0x262bbc};}class Q extends _0x566d86{['_codeEditorApi']=null;['_options'];constructor(_0x5605d6,_0x1dcb30){super(_0x5605d6),this['_options']=_0x1dcb30,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',(_0x3d4062,_0x3ed9f1,_0x4a0446)=>{this['setReadOnly'](_0x4a0446);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x3738d7){this['_codeEditorApi']['setData'](_0x3738d7);}['setReadOnly'](_0x22e77e){this['_codeEditorApi']['setReadOnly'](_0x22e77e);}}const W='SourceEditingEnhancedMode';class X extends _0x2ae89a{constructor(_0x2b01b7){super(_0x2b01b7),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x475fa4)['on']('change:hasAny',(_0x356481,_0x20b4d4,_0x31d999)=>{_0x31d999?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x46db5c=this['editor'];for(const _0x557d77 of _0x46db5c['commands']['names']())['replaceSource','editSource']['includes'](_0x557d77)||_0x46db5c['commands']['get'](_0x557d77)['forceDisabled'](W);}['_enableCommands'](){const _0x4614f3=this['editor'];for(const _0x2ba39d of _0x4614f3['commands']['commands']())_0x2ba39d['clearForceDisabled'](W);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x130d55=this['editor'],_0x367d41=_0x130d55['locale'],_0x38dfa7=_0x130d55['plugins']['get']('Dialog'),_0x1ccc8e=V(_0x130d55),_0x2f0026=_0x130d55['data']['get']({'rootName':_0x1ccc8e}),_0x4b9b2b=J(_0x20a0d0=_0x2f0026)?_0x5bacb0(_0x20a0d0):_0x20a0d0;var _0x20a0d0;const _0x1640ad=new Q(_0x367d41,{'syntaxLanguage':_0x130d55['plugins']['has']('Markdown')?'markdown':'html','theme':_0x130d55['config']['get']('sourceEditingEnhanced.theme')});let _0x1a8d2e=!0x0;const _0x38c2aa=_0x10c4c5=>{if(!_0x1a8d2e)return;return Z(_0x1640ad['getData']())!==Z(_0x4b9b2b)?window['confirm'](H(_0x367d41,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x10c4c5['stop']():void 0x0;};_0x38dfa7['show']({'id':'sourceEditingEnhanced','title':H(_0x367d41,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x1640ad,'actionButtons':[{'label':H(_0x367d41,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x38dfa7['hide']();}},{'label':H(_0x367d41,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x3bb261=Z(_0x1640ad['getData']())!==Z(_0x4b9b2b);(_0x3bb261&&_0x130d55['execute']('replaceSource',_0x1640ad['getData']()),_0x1a8d2e=!0x1,_0x38dfa7['hide'](),_0x3bb261&&'editables'in _0x130d55['ui']['view'])&&_0x130d55['ui']['view']['editables'][_0x1ccc8e]['element']['focus']();},'onCreate':_0x26b56b=>{_0x26b56b['set']('isEnabled',!_0x130d55['isReadOnly']),_0x26b56b['bind']('isEnabled')['to'](_0x130d55,'isReadOnly',this,'isEnabled',(_0x300358,_0x4f0bac)=>!_0x300358&&_0x4f0bac);}}],'onHide':()=>{this['_enableCommands'](),_0x38dfa7['off']('hide',_0x38c2aa),_0x1640ad['destroy']();},'onShow':()=>{_0x1640ad['bind']('isReadOnly')['to'](_0x130d55,'isReadOnly',this,'isEnabled',(_0x9c35e9,_0x351c15)=>_0x9c35e9||!_0x351c15),_0x1640ad['setData'](_0x4b9b2b),_0x1640ad['focus'](),_0x38dfa7['on']('hide',_0x38c2aa,{'priority':'highest'}),this['_disableCommands']();}});}}class $ extends _0x4e9ab9{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x475fa4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2b4ee6=this['editor'],_0x1cd6cb=_0x2b4ee6['locale'],_0x527a3e=new X(_0x2b4ee6);_0x2b4ee6['commands']['add']('editSource',_0x527a3e),_0x2b4ee6['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x3a7512=this['_createButton'](_0x48d091,_0x527a3e);return _0x3a7512['set']({'label':H(_0x1cd6cb,'Source'),'icon':_0xdd5b02,'tooltip':H(_0x1cd6cb,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x3a7512;}),_0x2b4ee6['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x36f9b6=this['_createButton'](_0x559eb1,_0x527a3e,!0x0);return _0x36f9b6['set']({'label':H(_0x1cd6cb,'Edit\x20source\x20modal\x20label'),'icon':_0xdd5b02,'role':'menuitemcheckbox'}),_0x36f9b6;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x3de974){const _0xa49bec=_0x5d7e7c([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]),_0x33351d=0x5dba9314,_0x125ba0=0x5dbd1604^_0x33351d,_0x1c8905=window[_0x5d7e7c([0x44,0x61,0x74,0x65])][_0x5d7e7c([0x6e,0x6f,0x77])](),_0xb34005=_0x3de974[_0x5d7e7c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3b7e21=new window[(_0x5d7e7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x558572=>{_0xb34005[_0x5d7e7c([0x6f,0x6e,0x63,0x65])](_0x5d7e7c([0x72,0x65,0x61,0x64,0x79]),_0x558572);}),_0x3317ee={[_0x5d7e7c([0x6b,0x74,0x79])]:_0x5d7e7c([0x45,0x43]),[_0x5d7e7c([0x75,0x73,0x65])]:_0x5d7e7c([0x73,0x69,0x67]),[_0x5d7e7c([0x63,0x72,0x76])]:_0x5d7e7c([0x50,0x2d,0x32,0x35,0x36]),[_0x5d7e7c([0x78])]:_0x5d7e7c([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]),[_0x5d7e7c([0x79])]:_0x5d7e7c([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]),[_0x5d7e7c([0x61,0x6c,0x67])]:_0x5d7e7c([0x45,0x53,0x32,0x35,0x36])},_0x150279=_0xb34005[_0x5d7e7c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d7e7c([0x67,0x65,0x74])](_0x5d7e7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x57c445(){let _0x15cf56,_0x39d5fd=null,_0x2ede1f=null;try{if(_0x150279==_0x5d7e7c([0x47,0x50,0x4c]))return _0x5d7e7c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15cf56=_0x3ce721(),!_0x15cf56)return _0x5d7e7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15cf56[_0x5d7e7c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ede1f=_0x35ee26(_0x15cf56[_0x5d7e7c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15cf56[_0x5d7e7c([0x6a,0x74,0x69])])),await _0x5cfd56()?_0x13294f()?_0x388fdd()?_0x5d7e7c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b5773()?(_0x15cf56[_0x5d7e7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d7e7c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39d5fd=_0x4cfa26(_0x5d7e7c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e0b18()):_0x5d7e7c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d7e7c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d7e7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d7e7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x388fdd(){const _0x4a1ade=[_0x5d7e7c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d7e7c([0x74,0x72,0x69,0x61,0x6c])][_0x5d7e7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15cf56[_0x5d7e7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c8905/0x3e8:0xe10*_0x125ba0;return _0x15cf56[_0x5d7e7c([0x65,0x78,0x70])]<_0x4a1ade;}function _0x13294f(){const _0x407d49=_0x15cf56[_0x5d7e7c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x407d49&&(!!_0x407d49[_0x5d7e7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d7e7c([0x2a]))||!!_0x407d49[_0x5d7e7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d7e7c([0x53,0x45,0x45])));}function _0x4b5773(){const _0x1b1071=_0x15cf56[_0x5d7e7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b1071||0x0==_0x1b1071[_0x5d7e7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c2a2c}=new URL(window[_0x5d7e7c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b1071[_0x5d7e7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c2a2c))return!0x0;const _0x59bfe5=_0x2c2a2c[_0x5d7e7c([0x73,0x70,0x6c,0x69,0x74])](_0x5d7e7c([0x2e]));return _0x1b1071[_0x5d7e7c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5eeffd=>_0x5eeffd[_0x5d7e7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d7e7c([0x2a])))[_0x5d7e7c([0x6d,0x61,0x70])](_0x2f403c=>_0x2f403c[_0x5d7e7c([0x73,0x70,0x6c,0x69,0x74])](_0x5d7e7c([0x2e])))[_0x5d7e7c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1fcd87=>_0x1fcd87[_0x5d7e7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x59bfe5[_0x5d7e7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d7e7c([0x6d,0x61,0x70])](_0xfd16a6=>Array(_0x59bfe5[_0x5d7e7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xfd16a6[_0x5d7e7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d7e7c([0x66,0x69,0x6c,0x6c])](_0xfd16a6[0x0]===_0x5d7e7c([0x2a])?_0x5d7e7c([0x2a]):'')[_0x5d7e7c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xfd16a6))[_0x5d7e7c([0x73,0x6f,0x6d,0x65])](_0x576b89=>_0x59bfe5[_0x5d7e7c([0x65,0x76,0x65,0x72,0x79])]((_0x322587,_0x62f3ff)=>_0x576b89[_0x62f3ff]===_0x322587||_0x576b89[_0x62f3ff]===_0x5d7e7c([0x2a])));}function _0x2e0b18(){return _0x39d5fd&&_0x2ede1f?new window[(_0x5d7e7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x396096,_0x1c562f)=>{_0x39d5fd[_0x5d7e7c([0x74,0x68,0x65,0x6e])](_0x396096,_0x1c562f),_0x2ede1f[_0x5d7e7c([0x74,0x68,0x65,0x6e])](_0x1c1ab4=>{_0x1c1ab4!=_0x5d7e7c([0x56,0x61,0x6c,0x69,0x64])&&_0x396096(_0x1c1ab4);},_0x1c562f);}):_0x39d5fd||_0x2ede1f||_0x5d7e7c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x35ee26(_0x564c6a,_0x211a99){return new window[(_0x5d7e7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x385c99=>{if(_0x3f89d5())return _0x385c99(_0x5d7e7c([0x56,0x61,0x6c,0x69,0x64]));_0x5f48ab(),_0xb34005[_0x5d7e7c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d7e7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1af360=!0x1;const _0x37d0c6=_0x2c85b3();function _0x533d94(_0x2d3878){return!!_0x2d3878&&(typeof _0x2d3878===_0x5d7e7c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d3878===_0x5d7e7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d3878[_0x5d7e7c([0x74,0x68,0x65,0x6e])]===_0x5d7e7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d3878[_0x5d7e7c([0x63,0x61,0x74,0x63,0x68])]===_0x5d7e7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1ade4f(_0x4de906){_0x31f5b2(_0x4de906)[_0x5d7e7c([0x74,0x68,0x65,0x6e])](_0x2de773=>{if(!_0x2de773||_0x2de773[_0x5d7e7c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d7e7c([0x6f,0x6b]))return _0x5d7e7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1fc213(_0x16ff70(_0x37d0c6+_0x211a99))!=_0x2de773[_0x5d7e7c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d7e7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d7e7c([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d7e7c([0x74,0x68,0x65,0x6e])](_0x1d53cf=>(_0x19d04e(),_0x1d53cf),()=>{const _0xcd11ea=_0x5d53ed();return null==_0xcd11ea?(_0x19d04e(),_0x5d7e7c([0x56,0x61,0x6c,0x69,0x64])):_0x5d7e7c(_0x1c8905-_0xcd11ea>(0x79b61714^_0x33351d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d7e7c([0x74,0x68,0x65,0x6e])](_0x385c99)[_0x5d7e7c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x385c99(_0x5d7e7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d03fe=0x5d8c7d94^_0x33351d;function _0x19d04e(){const _0x206673=_0x5d7e7c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1fc213(_0x16ff70(_0x564c6a)),_0x466f92=_0xa724f9(_0x1fc213(window[_0x5d7e7c([0x4d,0x61,0x74,0x68])][_0x5d7e7c([0x63,0x65,0x69,0x6c])](_0x1c8905/_0x2d03fe)));window[_0x5d7e7c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d7e7c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x206673,_0x466f92);}function _0x5d53ed(){const _0x24efd6=_0x5d7e7c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1fc213(_0x16ff70(_0x564c6a)),_0x11b91=window[_0x5d7e7c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d7e7c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24efd6);return _0x11b91?window[_0x5d7e7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa724f9(_0x11b91),0x10)*_0x2d03fe:null;}function _0x31f5b2(_0x17bfad){return new window[(_0x5d7e7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e7721,_0x3c90b2)=>{_0x17bfad[_0x5d7e7c([0x74,0x68,0x65,0x6e])](_0x4e7721,_0x3c90b2),window[_0x5d7e7c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c90b2,0x5dbb47d4^_0x33351d);});}}_0xb34005[_0x5d7e7c([0x6f,0x6e])](_0x5d7e7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35caf7,_0x2f78f3)=>{if(_0x2f78f3[0x0]!=_0x564c6a)return _0x385c99(_0x5d7e7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f78f3[0x1]={..._0x2f78f3[0x1],[_0x5d7e7c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37d0c6};},{[_0x5d7e7c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d7e7c([0x68,0x69,0x67,0x68])}),_0xb34005[_0x5d7e7c([0x6f,0x6e])](_0x5d7e7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2002ff=>{_0x533d94(_0x2002ff[_0x5d7e7c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1af360=!0x0,_0x1ade4f(_0x2002ff[_0x5d7e7c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d7e7c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d7e7c([0x6c,0x6f,0x77])}),_0x3b7e21[_0x5d7e7c([0x74,0x68,0x65,0x6e])](()=>{_0x1af360||_0x385c99(_0x5d7e7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f89d5(){return _0xb34005[_0x5d7e7c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d7e7c([0x76,0x69,0x65,0x77])][_0x5d7e7c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d7e7c([0x61,0x75,0x74,0x6f]);}function _0x5f48ab(){_0xb34005[_0x5d7e7c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d7e7c([0x76,0x69,0x65,0x77])][_0x5d7e7c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d7e7c([0x61,0x75,0x74,0x6f]);}}function _0x4cfa26(_0x3ed888){const _0x152fa0=[new window[(_0x5d7e7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dd4c9=>setTimeout(_0x1dd4c9,0x5db3add8^_0x33351d)),_0x3b7e21[_0x5d7e7c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d7e7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x220e83=>{let _0x5eee88=0x0;_0xb34005[_0x5d7e7c([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d7e7c([0x6f,0x6e])](_0x5d7e7c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2e1995,_0x374770)=>{_0x374770[0x0][_0x5d7e7c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5eee88++,_0x5eee88==(0x5dba96fc^_0x33351d)&&(_0x220e83(),_0x2e1995[_0x5d7e7c([0x6f,0x66,0x66])]());});}))];return window[_0x5d7e7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d7e7c([0x72,0x61,0x63,0x65])](_0x152fa0)[_0x5d7e7c([0x74,0x68,0x65,0x6e])](()=>_0x3ed888);}async function _0x9c758a(){await _0x3b7e21,_0xb34005[_0x5d7e7c([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d7e7c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd24595,_0xb34005[_0x5d7e7c([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d7e7c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd24595,_0xb34005[_0x5d7e7c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d7e7c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8d1e79(_0x594e1a){const _0x293ec0=_0x5b1437();_0xb34005[_0x293ec0]=_0x5d7e7c([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])+_0x594e1a,_0x594e1a!=_0x5d7e7c([0x56,0x61,0x6c,0x69,0x64])&&_0x9c758a();}function _0x5b1437(){const _0x2d91eb=window[_0x5d7e7c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d7e7c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d7e7c([0x6e,0x6f,0x77])]())[_0x5d7e7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d7e7c([0x2e]),'');let _0x5ee8ef=_0x5d7e7c([0x4e]);for(let _0x495b8d=0x0;_0x495b8d<_0x2d91eb[_0x5d7e7c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x495b8d+=0x2){let _0x3f594f=window[_0x5d7e7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d91eb[_0x5d7e7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x495b8d,_0x495b8d+0x2));_0x3f594f>=_0xa49bec[_0x5d7e7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f594f-=_0xa49bec[_0x5d7e7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ee8ef+=_0xa49bec[_0x3f594f];}return _0x5ee8ef;}function _0x3ce721(){const _0x1f4dcb=_0x150279[_0x5d7e7c([0x73,0x70,0x6c,0x69,0x74])](_0x5d7e7c([0x2e]));if(0x3!=_0x1f4dcb[_0x5d7e7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1c6ef4(_0x1f4dcb[0x1]);function _0x1c6ef4(_0x3a433c){const _0x36f663=_0x25e846(_0x3a433c);return _0x36f663&&_0x10487a()?_0x36f663:null;function _0x10487a(){const _0x1621fb=_0x36f663[_0x5d7e7c([0x6a,0x74,0x69])],_0x4d8acd=window[_0x5d7e7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1621fb[_0x5d7e7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1621fb[_0x5d7e7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x526e9d={..._0x36f663,[_0x5d7e7c([0x6a,0x74,0x69])]:_0x1621fb[_0x5d7e7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1621fb[_0x5d7e7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x526e9d[_0x5d7e7c([0x76,0x63])],_0x16ff70(_0x526e9d)==_0x4d8acd;}}}async function _0x5cfd56(){let _0x3476c4=!0x0;try{const _0x505adc=_0x150279[_0x5d7e7c([0x73,0x70,0x6c,0x69,0x74])](_0x5d7e7c([0x2e])),[_0x148f5c,_0x6c1e53,_0x40d63c]=_0x505adc;return _0x39ce27(_0x148f5c),await _0x11a82e(_0x148f5c,_0x6c1e53,_0x40d63c),_0x3476c4;}catch{return!0x1;}function _0x39ce27(_0x379842){const _0x102ec7=_0x25e846(_0x379842);_0x102ec7&&_0x102ec7[_0x5d7e7c([0x61,0x6c,0x67])]==_0x5d7e7c([0x45,0x53,0x32,0x35,0x36])||(_0x3476c4=!0x1);}async function _0x11a82e(_0x242758,_0x3eafe2,_0x4c7203){const _0x111e34=window[_0x5d7e7c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d7e7c([0x66,0x72,0x6f,0x6d])](_0x4c3630(_0x4c7203),_0x1b8040=>_0x1b8040[_0x5d7e7c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d6939=new window[(_0x5d7e7c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d7e7c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x242758+_0x5d7e7c([0x2e])+_0x3eafe2),_0x1eb178=window[_0x5d7e7c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d7e7c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1eb178)return;const _0x3aa3c2=await _0x1eb178[_0x5d7e7c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d7e7c([0x6a,0x77,0x6b]),_0x3317ee,{[_0x5d7e7c([0x6e,0x61,0x6d,0x65])]:_0x5d7e7c([0x45,0x43,0x44,0x53,0x41]),[_0x5d7e7c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d7e7c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d7e7c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1eb178[_0x5d7e7c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d7e7c([0x6e,0x61,0x6d,0x65])]:_0x5d7e7c([0x45,0x43,0x44,0x53,0x41]),[_0x5d7e7c([0x68,0x61,0x73,0x68])]:{[_0x5d7e7c([0x6e,0x61,0x6d,0x65])]:_0x5d7e7c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3aa3c2,_0x111e34,_0x2d6939)||(_0x3476c4=!0x1);}}function _0x25e846(_0x26d64f){return _0x26d64f[_0x5d7e7c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d7e7c([0x65,0x79]))?JSON[_0x5d7e7c([0x70,0x61,0x72,0x73,0x65])](_0x4c3630(_0x26d64f)):null;}function _0x4c3630(_0x1bbf7e){return window[_0x5d7e7c([0x61,0x74,0x6f,0x62])](_0x1bbf7e[_0x5d7e7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d7e7c([0x2b]))[_0x5d7e7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d7e7c([0x2f])));}function _0x16ff70(_0x44b3f3){let _0x329801=0x1505;function _0x42cdc2(_0x523f3d){for(let _0x59f5ff=0x0;_0x59f5ff<_0x523f3d[_0x5d7e7c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59f5ff++){const _0x5ab7d5=_0x523f3d[_0x5d7e7c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x59f5ff);_0x329801=(_0x329801<<0x5)+_0x329801+_0x5ab7d5,_0x329801&=_0x329801;}}function _0x451785(_0x3e6e34){Array[_0x5d7e7c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e6e34)?_0x3e6e34[_0x5d7e7c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x451785):_0x3e6e34&&typeof _0x3e6e34==_0x5d7e7c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d7e7c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e6e34)[_0x5d7e7c([0x73,0x6f,0x72,0x74])]()[_0x5d7e7c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x39d5f0,_0x2b0541])=>{_0x42cdc2(_0x39d5f0),_0x451785(_0x2b0541);}):_0x42cdc2(window[_0x5d7e7c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e6e34));}return _0x451785(_0x44b3f3),_0x329801>>>0x0;}function _0x1fc213(_0x32eae0){return _0x32eae0[_0x5d7e7c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d7e7c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d7e7c([0x30]));}function _0xa724f9(_0x33af5b){return _0x33af5b[_0x5d7e7c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d7e7c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d7e7c([0x6a,0x6f,0x69,0x6e])]('');}function _0xd24595(){}function _0x5d7e7c(_0x521fab){return _0x521fab['map'](_0x25e2f5=>String['fromCharCode'](_0x25e2f5))['join']('');}_0x8d1e79(await _0x57c445());}(this);}['_createButton'](_0x3f8667,_0x3646f3,_0x45698a=!0x1){const _0x1d065c=new _0x3f8667(this['editor']['locale']);return _0x1d065c['set']({'withText':_0x45698a,'isToggleable':!0x1}),_0x1d065c['bind']('isEnabled')['to'](_0x3646f3,'isEnabled'),this['listenTo'](_0x1d065c,'execute',()=>_0x3646f3['execute']()),_0x1d065c;}['_registerKeybindings'](){const _0x55e234=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':H(_0x55e234,'Source\x20Editing\x20Enhanced')});const _0x2fc19f=_0x251e05['isMac']||_0x251e05['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':H(_0x55e234,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':H(_0x55e234,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':H(_0x55e234,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':H(_0x55e234,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':H(_0x55e234,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':H(_0x55e234,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':H(_0x55e234,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x2fc19f?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':H(_0x55e234,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':H(_0x55e234,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':H(_0x55e234,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':H(_0x55e234,'Select\x20line'),'keystroke':_0x2fc19f?'Ctrl!+L':'Alt+L'},{'label':H(_0x55e234,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x2fc19f?'Alt+Shift+M':'Ctrl+M'},{'label':H(_0x55e234,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':H(_0x55e234,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':H(_0x55e234,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':H(_0x55e234,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':H(_0x55e234,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x2fc19f?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ee extends _0x2ae89a{constructor(_0x35d05e){super(_0x35d05e),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x4f76d5,_0x3ac530){const _0x6bc3eb=this['editor'],_0xc51829=_0x3ac530?.['rootName']??V(_0x6bc3eb);_0x6bc3eb['data']['set']({[_0xc51829]:_0x4f76d5},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class te extends _0x4e9ab9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[$];}constructor(_0x1aa847){super(_0x1aa847),_0x1aa847['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 _0x93c2a8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1707f4;for(const _0x2bdfab in _0x93c2a8){const _0x297b00=_0x2bdfab,_0x16a3a5=_0x93c2a8[_0x297b00];if('sourceEditingEnhancedLicenseKeyValid'==_0x16a3a5||'sourceEditingEnhancedLicenseKeyInvalid'==_0x16a3a5||'sourceEditingEnhancedLicenseKeyExpired'==_0x16a3a5||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x16a3a5||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x16a3a5||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x16a3a5||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x16a3a5){delete _0x93c2a8[_0x297b00],_0x1707f4=_0x16a3a5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x1707f4&&_0x93c2a8['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x1707f4&&_0x93c2a8['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x1707f4&&_0x93c2a8['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x1707f4&&_0x93c2a8['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x1707f4&&_0x93c2a8['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x1707f4&&_0x93c2a8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x118603=this['editor'],_0x13bb0f=_0x118603['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x13bb0f&&_0x118603['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0xed542f('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x13bb0f&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x15c69f=>_0x118603['plugins']['has'](_0x15c69f))&&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.'),_0x118603['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 _0x520588,PendingActions as _0x26971a,Plugin as _0x138d7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x14785e,formatHtml as _0x2807d6,env as _0x5de25c,uid as _0x30dd6c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x1db177}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x441189,ButtonView as _0x4fcb59,MenuBarMenuListItemButtonView as _0x5db2f7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x18cdc9,crosshairCursor as _0xd459a0,drawSelection as _0x2b0b1c,dropCursor as _0x33834b,lineNumbers as _0xcd552f,highlightActiveLine as _0x266ea7,highlightActiveLineGutter as _0x2ae1ba,highlightSpecialChars as _0x5c9fae,rectangularSelection as _0x295f90,keymap as _0xa808de}from'@codemirror/view';import{Compartment as _0x4c7f15,Transaction as _0xae85a2}from'@codemirror/state';import{bracketMatching as _0x2dac1b,foldGutter as _0x11d871,indentOnInput as _0x363750,syntaxHighlighting as _0x4242c4,defaultHighlightStyle as _0x148848,foldKeymap as _0x475eba}from'@codemirror/language';import{toggleTabFocusMode as _0x5e2f01,history as _0x3b2abc,defaultKeymap as _0x45d722,historyKeymap as _0xb0d129,indentLess as _0xc527b3,indentMore as _0x319483,redo as _0x3d6bca,undo as _0x27b8e9}from'@codemirror/commands';import{autocompletion as _0x13a791,closeBrackets as _0x2ef699,closeBracketsKeymap as _0x585c40,completionKeymap as _0x2f2b9a}from'@codemirror/autocomplete';import{html as _0x4b8bb9}from'@codemirror/lang-html';import{markdown as _0x490ec4}from'@codemirror/lang-markdown';import{oneDark as _0x54b78e}from'@codemirror/theme-one-dark';function H(_0xca70f3,_0x1dc942){const t=_0xca70f3['t'];switch(_0x1dc942){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 _0x1dc942;}}function V(_0x457c27){const _0x41a488=_0x457c27['editing']['view']['document']['roots'],_0x2ba131=_0x41a488['length'];if(0x0===_0x2ba131)throw new _0x14785e('source-editing-enhanced-editor-no-root',_0x457c27);if(0x1===_0x2ba131)return _0x41a488['first']['rootName'];return Array['from'](_0x457c27['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x63b829){return J(_0x63b829['replace'](/^[\n\s]*/g,''))?_0x63b829['replace'](/\s+/g,''):_0x63b829;}function J(_0x10aa97){return _0x10aa97['startsWith']('<');}function G(_0x2434c9){const _0x253cb1=[_0x18cdc9['lineWrapping'],_0x13a791(),_0x2dac1b(),_0x2ef699(),_0xd459a0(),_0x2b0b1c(),_0x33834b(),_0xcd552f(),_0x11d871(),_0x266ea7(),_0x2ae1ba(),_0x5c9fae(),_0x3b2abc(),_0x363750(),_0x295f90(),_0x4242c4(_0x148848,{'fallback':!0x0})],_0x2bbd59=new _0x4c7f15();_0x253cb1['push'](_0x2bbd59['of'](_0x18cdc9['editable']['of'](!0x0))),'html'===_0x2434c9['syntaxLanguage']?_0x253cb1['push'](_0x4b8bb9()):_0x253cb1['push'](_0x490ec4());const _0xf93fef=function(_0x3b49fe){if(_0x3b49fe&&'default'!==_0x3b49fe)return'dark'===_0x3b49fe?_0x54b78e:_0x3b49fe;return null;}(_0x2434c9['theme']);_0xf93fef&&_0x253cb1['push'](_0xf93fef),_0x253cb1['push'](_0xa808de['of']([..._0x585c40,..._0x45d722,..._0xb0d129,..._0x475eba,..._0x2f2b9a,{'key':'Tab','run':_0x319483,'shift':_0xc527b3,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x3d6bca,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x3d6bca,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x27b8e9,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x148095=new _0x18cdc9({'extensions':_0x253cb1,'parent':_0x2434c9['parent']});return _0x5e2f01(_0x148095),{'focus':()=>{_0x148095['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x148095['focus']();},'getData':()=>_0x148095['state']['doc']['toString'](),'setData':_0x429760=>{_0x148095['dispatch']({'changes':{'from':0x0,'to':_0x148095['state']['doc']['length'],'insert':_0x429760},'annotations':_0xae85a2['addToHistory']['of'](!0x1)});},'setReadOnly':_0x2aeef7=>{_0x148095['dispatch']({'effects':[_0x2bbd59['reconfigure'](_0x18cdc9['editable']['of'](!_0x2aeef7))]});},'destroy':()=>{_0x148095['destroy']();},'instance':_0x148095};}class Q extends _0x441189{['_codeEditorApi']=null;['_options'];constructor(_0x318782,_0x29bbb0){super(_0x318782),this['_options']=_0x29bbb0,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',(_0x1ca91e,_0x18316e,_0x2c0ee1)=>{this['setReadOnly'](_0x2c0ee1);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x99a8c9){this['_codeEditorApi']['setData'](_0x99a8c9);}['setReadOnly'](_0x556f7c){this['_codeEditorApi']['setReadOnly'](_0x556f7c);}}const W='SourceEditingEnhancedMode';class X extends _0x520588{constructor(_0x39b12d){super(_0x39b12d),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x26971a)['on']('change:hasAny',(_0x148e7a,_0x4a669b,_0x1453dc)=>{_0x1453dc?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x5eaa80=this['editor'];for(const _0x4d500f of _0x5eaa80['commands']['names']())['replaceSource','editSource']['includes'](_0x4d500f)||_0x5eaa80['commands']['get'](_0x4d500f)['forceDisabled'](W);}['_enableCommands'](){const _0x1e29ee=this['editor'];for(const _0x52cf84 of _0x1e29ee['commands']['commands']())_0x52cf84['clearForceDisabled'](W);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x20228f=this['editor'],_0x58c908=_0x20228f['locale'],_0x58ad8b=_0x20228f['plugins']['get']('Dialog'),_0x4f5c5f=V(_0x20228f),_0x535dc2=_0x20228f['data']['get']({'rootName':_0x4f5c5f}),_0x7035d6=J(_0x4611e3=_0x535dc2)?_0x2807d6(_0x4611e3):_0x4611e3;var _0x4611e3;const _0x1a014a=new Q(_0x58c908,{'syntaxLanguage':_0x20228f['plugins']['has']('Markdown')?'markdown':'html','theme':_0x20228f['config']['get']('sourceEditingEnhanced.theme')});let _0xa7bd12=!0x0;const _0x22cabd=_0x54980d=>{if(!_0xa7bd12)return;return Z(_0x1a014a['getData']())!==Z(_0x7035d6)?window['confirm'](H(_0x58c908,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x54980d['stop']():void 0x0;};_0x58ad8b['show']({'id':'sourceEditingEnhanced','title':H(_0x58c908,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x1a014a,'actionButtons':[{'label':H(_0x58c908,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x58ad8b['hide']();}},{'label':H(_0x58c908,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x42723e=Z(_0x1a014a['getData']())!==Z(_0x7035d6);(_0x42723e&&_0x20228f['execute']('replaceSource',_0x1a014a['getData']()),_0xa7bd12=!0x1,_0x58ad8b['hide'](),_0x42723e&&'editables'in _0x20228f['ui']['view'])&&_0x20228f['ui']['view']['editables'][_0x4f5c5f]['element']['focus']();},'onCreate':_0x1891c8=>{_0x1891c8['set']('isEnabled',!_0x20228f['isReadOnly']),_0x1891c8['bind']('isEnabled')['to'](_0x20228f,'isReadOnly',this,'isEnabled',(_0x405ad1,_0x226768)=>!_0x405ad1&&_0x226768);}}],'onHide':()=>{this['_enableCommands'](),_0x58ad8b['off']('hide',_0x22cabd),_0x1a014a['destroy']();},'onShow':()=>{_0x1a014a['bind']('isReadOnly')['to'](_0x20228f,'isReadOnly',this,'isEnabled',(_0x4a40ce,_0x251cfa)=>_0x4a40ce||!_0x251cfa),_0x1a014a['setData'](_0x7035d6),_0x1a014a['focus'](),_0x58ad8b['on']('hide',_0x22cabd,{'priority':'highest'}),this['_disableCommands']();}});}}class $ extends _0x138d7{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x26971a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x17d911=this['editor'],_0x351f96=_0x17d911['locale'],_0x4608cd=new X(_0x17d911);_0x17d911['commands']['add']('editSource',_0x4608cd),_0x17d911['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x4e6781=this['_createButton'](_0x4fcb59,_0x4608cd);return _0x4e6781['set']({'label':H(_0x351f96,'Source'),'icon':_0x1db177,'tooltip':H(_0x351f96,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x4e6781;}),_0x17d911['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x2526a9=this['_createButton'](_0x5db2f7,_0x4608cd,!0x0);return _0x2526a9['set']({'label':H(_0x351f96,'Edit\x20source\x20modal\x20label'),'icon':_0x1db177,'role':'menuitemcheckbox'}),_0x2526a9;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x5ba744){const _0x592915=_0x1c9afc([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]),_0x21f66d=0x5dba9314,_0x139f0d=0x5dbd163c^_0x21f66d,_0x3f6e5b=window[_0x1c9afc([0x44,0x61,0x74,0x65])][_0x1c9afc([0x6e,0x6f,0x77])](),_0xa69165=_0x5ba744[_0x1c9afc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe581fe=new window[(_0x1c9afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x530cfd=>{_0xa69165[_0x1c9afc([0x6f,0x6e,0x63,0x65])](_0x1c9afc([0x72,0x65,0x61,0x64,0x79]),_0x530cfd);}),_0x50dba6={[_0x1c9afc([0x6b,0x74,0x79])]:_0x1c9afc([0x45,0x43]),[_0x1c9afc([0x75,0x73,0x65])]:_0x1c9afc([0x73,0x69,0x67]),[_0x1c9afc([0x63,0x72,0x76])]:_0x1c9afc([0x50,0x2d,0x32,0x35,0x36]),[_0x1c9afc([0x78])]:_0x1c9afc([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]),[_0x1c9afc([0x79])]:_0x1c9afc([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]),[_0x1c9afc([0x61,0x6c,0x67])]:_0x1c9afc([0x45,0x53,0x32,0x35,0x36])},_0xd77d58=_0xa69165[_0x1c9afc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c9afc([0x67,0x65,0x74])](_0x1c9afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d1c06(){let _0x589e93,_0x29d3a4=null,_0x10f734=null;try{if(_0xd77d58==_0x1c9afc([0x47,0x50,0x4c]))return _0x1c9afc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x589e93=_0x4d6e94(),!_0x589e93)return _0x1c9afc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x589e93[_0x1c9afc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10f734=_0x5a772c(_0x589e93[_0x1c9afc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x589e93[_0x1c9afc([0x6a,0x74,0x69])])),await _0x41ead5()?_0x4314cd()?_0xe4115d()?_0x1c9afc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa2198()?(_0x589e93[_0x1c9afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c9afc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29d3a4=_0x57891f(_0x1c9afc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x41f63e()):_0x1c9afc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c9afc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c9afc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1c9afc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe4115d(){const _0x313b06=[_0x1c9afc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c9afc([0x74,0x72,0x69,0x61,0x6c])][_0x1c9afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x589e93[_0x1c9afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f6e5b/0x3e8:0xe10*_0x139f0d;return _0x589e93[_0x1c9afc([0x65,0x78,0x70])]<_0x313b06;}function _0x4314cd(){const _0x26f2d8=_0x589e93[_0x1c9afc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x26f2d8&&(!!_0x26f2d8[_0x1c9afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c9afc([0x2a]))||!!_0x26f2d8[_0x1c9afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c9afc([0x53,0x45,0x45])));}function _0xa2198(){const _0x542740=_0x589e93[_0x1c9afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x542740||0x0==_0x542740[_0x1c9afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc72c4b}=new URL(window[_0x1c9afc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x542740[_0x1c9afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc72c4b))return!0x0;const _0x47b157=_0xc72c4b[_0x1c9afc([0x73,0x70,0x6c,0x69,0x74])](_0x1c9afc([0x2e]));return _0x542740[_0x1c9afc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e8da1=>_0x5e8da1[_0x1c9afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c9afc([0x2a])))[_0x1c9afc([0x6d,0x61,0x70])](_0x3db84d=>_0x3db84d[_0x1c9afc([0x73,0x70,0x6c,0x69,0x74])](_0x1c9afc([0x2e])))[_0x1c9afc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b6fb2=>_0x3b6fb2[_0x1c9afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47b157[_0x1c9afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c9afc([0x6d,0x61,0x70])](_0x4231c2=>Array(_0x47b157[_0x1c9afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4231c2[_0x1c9afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c9afc([0x66,0x69,0x6c,0x6c])](_0x4231c2[0x0]===_0x1c9afc([0x2a])?_0x1c9afc([0x2a]):'')[_0x1c9afc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4231c2))[_0x1c9afc([0x73,0x6f,0x6d,0x65])](_0x36804e=>_0x47b157[_0x1c9afc([0x65,0x76,0x65,0x72,0x79])]((_0x5d671a,_0x5cf384)=>_0x36804e[_0x5cf384]===_0x5d671a||_0x36804e[_0x5cf384]===_0x1c9afc([0x2a])));}function _0x41f63e(){return _0x29d3a4&&_0x10f734?new window[(_0x1c9afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x331768,_0x283df3)=>{_0x29d3a4[_0x1c9afc([0x74,0x68,0x65,0x6e])](_0x331768,_0x283df3),_0x10f734[_0x1c9afc([0x74,0x68,0x65,0x6e])](_0x3cf887=>{_0x3cf887!=_0x1c9afc([0x56,0x61,0x6c,0x69,0x64])&&_0x331768(_0x3cf887);},_0x283df3);}):_0x29d3a4||_0x10f734||_0x1c9afc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a772c(_0x4e6176,_0x1dcddb){return new window[(_0x1c9afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f2089=>{if(_0x326e0b())return _0x2f2089(_0x1c9afc([0x56,0x61,0x6c,0x69,0x64]));_0x3a601d(),_0xa69165[_0x1c9afc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c9afc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb586c7=!0x1;const _0x436a95=_0x30dd6c();function _0x5662d9(_0x1dfa45){return!!_0x1dfa45&&(typeof _0x1dfa45===_0x1c9afc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1dfa45===_0x1c9afc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1dfa45[_0x1c9afc([0x74,0x68,0x65,0x6e])]===_0x1c9afc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1dfa45[_0x1c9afc([0x63,0x61,0x74,0x63,0x68])]===_0x1c9afc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5dcf85(_0x30eaeb){_0xf6fb31(_0x30eaeb)[_0x1c9afc([0x74,0x68,0x65,0x6e])](_0x48946b=>{if(!_0x48946b||_0x48946b[_0x1c9afc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c9afc([0x6f,0x6b]))return _0x1c9afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29ec60(_0x419c81(_0x436a95+_0x1dcddb))!=_0x48946b[_0x1c9afc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c9afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c9afc([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c9afc([0x74,0x68,0x65,0x6e])](_0x5254d3=>(_0xce2507(),_0x5254d3),()=>{const _0x5ecd97=_0x416925();return null==_0x5ecd97?(_0xce2507(),_0x1c9afc([0x56,0x61,0x6c,0x69,0x64])):_0x1c9afc(_0x3f6e5b-_0x5ecd97>(0x79b61714^_0x21f66d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c9afc([0x74,0x68,0x65,0x6e])](_0x2f2089)[_0x1c9afc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f2089(_0x1c9afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d0123=0x5d8c7d94^_0x21f66d;function _0xce2507(){const _0x54673c=_0x1c9afc([0x6c,0x6c,0x63,0x74,0x2d])+_0x29ec60(_0x419c81(_0x4e6176)),_0x4fcfaf=_0x4d54d9(_0x29ec60(window[_0x1c9afc([0x4d,0x61,0x74,0x68])][_0x1c9afc([0x63,0x65,0x69,0x6c])](_0x3f6e5b/_0x5d0123)));window[_0x1c9afc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c9afc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54673c,_0x4fcfaf);}function _0x416925(){const _0xbcf7b=_0x1c9afc([0x6c,0x6c,0x63,0x74,0x2d])+_0x29ec60(_0x419c81(_0x4e6176)),_0x368bec=window[_0x1c9afc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c9afc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbcf7b);return _0x368bec?window[_0x1c9afc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d54d9(_0x368bec),0x10)*_0x5d0123:null;}function _0xf6fb31(_0x323d51){return new window[(_0x1c9afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d5fa8,_0x16b7be)=>{_0x323d51[_0x1c9afc([0x74,0x68,0x65,0x6e])](_0x5d5fa8,_0x16b7be),window[_0x1c9afc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x16b7be,0x5dbb47d4^_0x21f66d);});}}_0xa69165[_0x1c9afc([0x6f,0x6e])](_0x1c9afc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xef283d,_0x60bf1)=>{if(_0x60bf1[0x0]!=_0x4e6176)return _0x2f2089(_0x1c9afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x60bf1[0x1]={..._0x60bf1[0x1],[_0x1c9afc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x436a95};},{[_0x1c9afc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c9afc([0x68,0x69,0x67,0x68])}),_0xa69165[_0x1c9afc([0x6f,0x6e])](_0x1c9afc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xec06c=>{_0x5662d9(_0xec06c[_0x1c9afc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb586c7=!0x0,_0x5dcf85(_0xec06c[_0x1c9afc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c9afc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c9afc([0x6c,0x6f,0x77])}),_0xe581fe[_0x1c9afc([0x74,0x68,0x65,0x6e])](()=>{_0xb586c7||_0x2f2089(_0x1c9afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x326e0b(){return _0xa69165[_0x1c9afc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c9afc([0x76,0x69,0x65,0x77])][_0x1c9afc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c9afc([0x61,0x75,0x74,0x6f]);}function _0x3a601d(){_0xa69165[_0x1c9afc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c9afc([0x76,0x69,0x65,0x77])][_0x1c9afc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c9afc([0x61,0x75,0x74,0x6f]);}}function _0x57891f(_0x1f7cb2){const _0x3ffbf9=[new window[(_0x1c9afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16f9a2=>setTimeout(_0x16f9a2,0x5db3add8^_0x21f66d)),_0xe581fe[_0x1c9afc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c9afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57bcb7=>{let _0xe3be8c=0x0;_0xa69165[_0x1c9afc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c9afc([0x6f,0x6e])](_0x1c9afc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b9770,_0x4aad8d)=>{_0x4aad8d[0x0][_0x1c9afc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe3be8c++,_0xe3be8c==(0x5dba96fc^_0x21f66d)&&(_0x57bcb7(),_0x1b9770[_0x1c9afc([0x6f,0x66,0x66])]());});}))];return window[_0x1c9afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c9afc([0x72,0x61,0x63,0x65])](_0x3ffbf9)[_0x1c9afc([0x74,0x68,0x65,0x6e])](()=>_0x1f7cb2);}async function _0x111354(){await _0xe581fe,_0xa69165[_0x1c9afc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c9afc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1dec4e,_0xa69165[_0x1c9afc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c9afc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1dec4e,_0xa69165[_0x1c9afc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c9afc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x40622f(_0x40c3e5){const _0x4071e9=_0x4ed354();_0xa69165[_0x4071e9]=_0x1c9afc([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])+_0x40c3e5,_0x40c3e5!=_0x1c9afc([0x56,0x61,0x6c,0x69,0x64])&&_0x111354();}function _0x4ed354(){const _0x3cd455=window[_0x1c9afc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c9afc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c9afc([0x6e,0x6f,0x77])]())[_0x1c9afc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c9afc([0x2e]),'');let _0x3cb7bb=_0x1c9afc([0x4e]);for(let _0x1ae3cf=0x0;_0x1ae3cf<_0x3cd455[_0x1c9afc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ae3cf+=0x2){let _0x5478ee=window[_0x1c9afc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cd455[_0x1c9afc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ae3cf,_0x1ae3cf+0x2));_0x5478ee>=_0x592915[_0x1c9afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5478ee-=_0x592915[_0x1c9afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3cb7bb+=_0x592915[_0x5478ee];}return _0x3cb7bb;}function _0x4d6e94(){const _0x3606a4=_0xd77d58[_0x1c9afc([0x73,0x70,0x6c,0x69,0x74])](_0x1c9afc([0x2e]));if(0x3!=_0x3606a4[_0x1c9afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3796b0(_0x3606a4[0x1]);function _0x3796b0(_0x12fcee){const _0x577a68=_0x3b8053(_0x12fcee);return _0x577a68&&_0x5a78c9()?_0x577a68:null;function _0x5a78c9(){const _0x396b01=_0x577a68[_0x1c9afc([0x6a,0x74,0x69])],_0x20ca6f=window[_0x1c9afc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x396b01[_0x1c9afc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x396b01[_0x1c9afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34157b={..._0x577a68,[_0x1c9afc([0x6a,0x74,0x69])]:_0x396b01[_0x1c9afc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x396b01[_0x1c9afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34157b[_0x1c9afc([0x76,0x63])],_0x419c81(_0x34157b)==_0x20ca6f;}}}async function _0x41ead5(){let _0x23d898=!0x0;try{const _0x3604aa=_0xd77d58[_0x1c9afc([0x73,0x70,0x6c,0x69,0x74])](_0x1c9afc([0x2e])),[_0x23e3e2,_0x2094e8,_0x31149b]=_0x3604aa;return _0x428c43(_0x23e3e2),await _0x21d68a(_0x23e3e2,_0x2094e8,_0x31149b),_0x23d898;}catch{return!0x1;}function _0x428c43(_0x4947a4){const _0x417b6f=_0x3b8053(_0x4947a4);_0x417b6f&&_0x417b6f[_0x1c9afc([0x61,0x6c,0x67])]==_0x1c9afc([0x45,0x53,0x32,0x35,0x36])||(_0x23d898=!0x1);}async function _0x21d68a(_0x209fc7,_0x1d3363,_0x226df3){const _0x5e2068=window[_0x1c9afc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c9afc([0x66,0x72,0x6f,0x6d])](_0x85527d(_0x226df3),_0x3cdbf9=>_0x3cdbf9[_0x1c9afc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c5887=new window[(_0x1c9afc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c9afc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x209fc7+_0x1c9afc([0x2e])+_0x1d3363),_0x2842fc=window[_0x1c9afc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c9afc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2842fc)return;const _0xbcf217=await _0x2842fc[_0x1c9afc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c9afc([0x6a,0x77,0x6b]),_0x50dba6,{[_0x1c9afc([0x6e,0x61,0x6d,0x65])]:_0x1c9afc([0x45,0x43,0x44,0x53,0x41]),[_0x1c9afc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c9afc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c9afc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2842fc[_0x1c9afc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c9afc([0x6e,0x61,0x6d,0x65])]:_0x1c9afc([0x45,0x43,0x44,0x53,0x41]),[_0x1c9afc([0x68,0x61,0x73,0x68])]:{[_0x1c9afc([0x6e,0x61,0x6d,0x65])]:_0x1c9afc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbcf217,_0x5e2068,_0x2c5887)||(_0x23d898=!0x1);}}function _0x3b8053(_0x2aaccd){return _0x2aaccd[_0x1c9afc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c9afc([0x65,0x79]))?JSON[_0x1c9afc([0x70,0x61,0x72,0x73,0x65])](_0x85527d(_0x2aaccd)):null;}function _0x85527d(_0x4cec52){return window[_0x1c9afc([0x61,0x74,0x6f,0x62])](_0x4cec52[_0x1c9afc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c9afc([0x2b]))[_0x1c9afc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c9afc([0x2f])));}function _0x419c81(_0x3d1ace){let _0x41c29c=0x1505;function _0x28b366(_0x594d8d){for(let _0x43d931=0x0;_0x43d931<_0x594d8d[_0x1c9afc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43d931++){const _0x4b7485=_0x594d8d[_0x1c9afc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43d931);_0x41c29c=(_0x41c29c<<0x5)+_0x41c29c+_0x4b7485,_0x41c29c&=_0x41c29c;}}function _0x3d63e1(_0xb7fa32){Array[_0x1c9afc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb7fa32)?_0xb7fa32[_0x1c9afc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d63e1):_0xb7fa32&&typeof _0xb7fa32==_0x1c9afc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c9afc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb7fa32)[_0x1c9afc([0x73,0x6f,0x72,0x74])]()[_0x1c9afc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x15f1e8,_0x2200d4])=>{_0x28b366(_0x15f1e8),_0x3d63e1(_0x2200d4);}):_0x28b366(window[_0x1c9afc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb7fa32));}return _0x3d63e1(_0x3d1ace),_0x41c29c>>>0x0;}function _0x29ec60(_0x3bf9ee){return _0x3bf9ee[_0x1c9afc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c9afc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c9afc([0x30]));}function _0x4d54d9(_0x142e62){return _0x142e62[_0x1c9afc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c9afc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c9afc([0x6a,0x6f,0x69,0x6e])]('');}function _0x1dec4e(){}function _0x1c9afc(_0x1e5540){return _0x1e5540['map'](_0x32a417=>String['fromCharCode'](_0x32a417))['join']('');}_0x40622f(await _0x1d1c06());}(this);}['_createButton'](_0x33ddcd,_0x2dc0c3,_0x46c6ef=!0x1){const _0x45afe6=new _0x33ddcd(this['editor']['locale']);return _0x45afe6['set']({'withText':_0x46c6ef,'isToggleable':!0x1}),_0x45afe6['bind']('isEnabled')['to'](_0x2dc0c3,'isEnabled'),this['listenTo'](_0x45afe6,'execute',()=>_0x2dc0c3['execute']()),_0x45afe6;}['_registerKeybindings'](){const _0x3e757d=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':H(_0x3e757d,'Source\x20Editing\x20Enhanced')});const _0xc0f1e4=_0x5de25c['isMac']||_0x5de25c['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':H(_0x3e757d,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':H(_0x3e757d,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':H(_0x3e757d,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':H(_0x3e757d,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':H(_0x3e757d,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':H(_0x3e757d,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':H(_0x3e757d,'Fold\x20code\x20(current\x20level)'),'keystroke':_0xc0f1e4?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':H(_0x3e757d,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':H(_0x3e757d,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':H(_0x3e757d,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':H(_0x3e757d,'Select\x20line'),'keystroke':_0xc0f1e4?'Ctrl!+L':'Alt+L'},{'label':H(_0x3e757d,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0xc0f1e4?'Alt+Shift+M':'Ctrl+M'},{'label':H(_0x3e757d,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':H(_0x3e757d,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':H(_0x3e757d,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':H(_0x3e757d,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':H(_0x3e757d,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0xc0f1e4?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ee extends _0x520588{constructor(_0x16f563){super(_0x16f563),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x470266,_0x11e633){const _0x29c082=this['editor'],_0x14ec02=_0x11e633?.['rootName']??V(_0x29c082);_0x29c082['data']['set']({[_0x14ec02]:_0x470266},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class te extends _0x138d7{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[$];}constructor(_0x47cb79){super(_0x47cb79),_0x47cb79['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 _0x2b4e98=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x824dd1;for(const _0x27b3fd in _0x2b4e98){const _0x595237=_0x27b3fd,_0x492aa7=_0x2b4e98[_0x595237];if('sourceEditingEnhancedLicenseKeyValid'==_0x492aa7||'sourceEditingEnhancedLicenseKeyInvalid'==_0x492aa7||'sourceEditingEnhancedLicenseKeyExpired'==_0x492aa7||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x492aa7||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x492aa7||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x492aa7||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x492aa7){delete _0x2b4e98[_0x595237],_0x824dd1=_0x492aa7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x824dd1&&_0x2b4e98['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x824dd1&&_0x2b4e98['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x824dd1&&_0x2b4e98['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x824dd1&&_0x2b4e98['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x824dd1&&_0x2b4e98['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x824dd1&&_0x2b4e98['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x266f38=this['editor'],_0x4fda90=_0x266f38['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x4fda90&&_0x266f38['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x14785e('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x4fda90&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x5c2082=>_0x266f38['plugins']['has'](_0x5c2082))&&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.'),_0x266f38['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.0.0-alpha.3",
3
+ "version": "48.0.0-alpha.4",
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.0.0-alpha.3",
29
- "@ckeditor/ckeditor5-engine": "48.0.0-alpha.3",
30
- "@ckeditor/ckeditor5-icons": "48.0.0-alpha.3",
31
- "@ckeditor/ckeditor5-ui": "48.0.0-alpha.3",
32
- "@ckeditor/ckeditor5-utils": "48.0.0-alpha.3",
28
+ "@ckeditor/ckeditor5-core": "48.0.0-alpha.4",
29
+ "@ckeditor/ckeditor5-engine": "48.0.0-alpha.4",
30
+ "@ckeditor/ckeditor5-icons": "48.0.0-alpha.4",
31
+ "@ckeditor/ckeditor5-ui": "48.0.0-alpha.4",
32
+ "@ckeditor/ckeditor5-utils": "48.0.0-alpha.4",
33
33
  "@codemirror/autocomplete": "^6.7.1",
34
34
  "@codemirror/commands": "6.8.1",
35
35
  "@codemirror/lang-html": "^6.0.0",