@ckeditor/ckeditor5-source-editing-enhanced 47.1.0-alpha.2 → 47.1.0
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.
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x4cfc0a,PendingActions as _0xeeb707,Plugin as _0x4fb4c3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x527dec,formatHtml as _0x5b731f,env as _0x3569c8,uid as _0xfef166}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x2fa1e0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x273321,ButtonView as _0x45b0ef,MenuBarMenuListItemButtonView as _0x58c1f6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x4001aa,crosshairCursor as _0x27bd27,drawSelection as _0x4fd1f3,dropCursor as _0x4aeb42,lineNumbers as _0x1348f1,highlightActiveLine as _0x2a5bf9,highlightActiveLineGutter as _0x2b8f01,highlightSpecialChars as _0xc731d6,rectangularSelection as _0x5c8fed,keymap as _0x33ee64}from'@codemirror/view';import{Compartment as _0x58af3e,Transaction as _0x39af34}from'@codemirror/state';import{bracketMatching as _0x50fb74,foldGutter as _0x27af19,indentOnInput as _0x3b3c16,syntaxHighlighting as _0x5f29d6,defaultHighlightStyle as _0x236bf8,foldKeymap as _0x1837b5}from'@codemirror/language';import{toggleTabFocusMode as _0xdab519,history as _0x466194,defaultKeymap as _0x438f3b,historyKeymap as _0x3068e2,indentLess as _0x17d837,indentMore as _0x4f7351,redo as _0x3eff4a,undo as _0xaaf2da}from'@codemirror/commands';import{autocompletion as _0x57030e,closeBrackets as _0x23dff7,closeBracketsKeymap as _0x490001,completionKeymap as _0x965e2}from'@codemirror/autocomplete';import{html as _0x3681e8}from'@codemirror/lang-html';import{markdown as _0x32ec83}from'@codemirror/lang-markdown';import{oneDark as _0x3c284a}from'@codemirror/theme-one-dark';function w(_0xf7f368,_0x294dac){const t=_0xf7f368['t'];switch(_0x294dac){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 _0x294dac;}}function r(_0x313d48){const _0x3f70e9=_0x313d48['editing']['view']['document']['roots'],_0x2d980d=_0x3f70e9['length'];if(0x0===_0x2d980d)throw new _0x527dec('source-editing-enhanced-editor-no-root',_0x313d48);if(0x1===_0x2d980d)return _0x3f70e9['first']['rootName'];return Array['from'](_0x313d48['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function g(_0x317d6c){return tr(_0x317d6c['replace'](/^[\n\s]*/g,''))?_0x317d6c['replace'](/\s+/g,''):_0x317d6c;}function tr(_0x51403c){return _0x51403c['startsWith']('<');}function p(_0x2f6962){const _0x25c0ad=[_0x4001aa['lineWrapping'],_0x57030e(),_0x50fb74(),_0x23dff7(),_0x27bd27(),_0x4fd1f3(),_0x4aeb42(),_0x1348f1(),_0x27af19(),_0x2a5bf9(),_0x2b8f01(),_0xc731d6(),_0x466194(),_0x3b3c16(),_0x5c8fed(),_0x5f29d6(_0x236bf8,{'fallback':!0x0})],_0x303b7b=new _0x58af3e();_0x25c0ad['push'](_0x303b7b['of'](_0x4001aa['editable']['of'](!0x0))),'html'===_0x2f6962['syntaxLanguage']?_0x25c0ad['push'](_0x3681e8()):_0x25c0ad['push'](_0x32ec83());const _0x120211=function(_0xc6c1b9){if(_0xc6c1b9&&'default'!==_0xc6c1b9)return'dark'===_0xc6c1b9?_0x3c284a:_0xc6c1b9;return null;}(_0x2f6962['theme']);_0x120211&&_0x25c0ad['push'](_0x120211),_0x25c0ad['push'](_0x33ee64['of']([..._0x490001,..._0x438f3b,..._0x3068e2,..._0x1837b5,..._0x965e2,{'key':'Tab','run':_0x4f7351,'shift':_0x17d837,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x3eff4a,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x3eff4a,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0xaaf2da,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x350217=new _0x4001aa({'extensions':_0x25c0ad,'parent':_0x2f6962['parent']});return _0xdab519(_0x350217),{'focus':()=>{_0x350217['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x350217['focus']();},'getData':()=>_0x350217['state']['doc']['toString'](),'setData':_0x259726=>{_0x350217['dispatch']({'changes':{'from':0x0,'to':_0x350217['state']['doc']['length'],'insert':_0x259726},'annotations':_0x39af34['addToHistory']['of'](!0x1)});},'setReadOnly':_0x417bc7=>{_0x350217['dispatch']({'effects':[_0x303b7b['reconfigure'](_0x4001aa['editable']['of'](!_0x417bc7))]});},'destroy':()=>{_0x350217['destroy']();},'instance':_0x350217};}class E extends _0x273321{['_codeEditorApi']=null;['_options'];constructor(_0x4c35ab,_0x4307e4){super(_0x4c35ab),this['_options']=_0x4307e4,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']=p({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x46043c,_0xa7c6ee,_0x45bd45)=>{this['setReadOnly'](_0x45bd45);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x15ead4){this['_codeEditorApi']['setData'](_0x15ead4);}['setReadOnly'](_0x573229){this['_codeEditorApi']['setReadOnly'](_0x573229);}}const b='SourceEditingEnhancedMode';class d extends _0x4cfc0a{constructor(_0x1d8974){super(_0x1d8974),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0xeeb707)['on']('change:hasAny',(_0x205ff6,_0x1feff5,_0x3aab5e)=>{_0x3aab5e?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0xcf6461=this['editor'];for(const _0x4d1fa0 of _0xcf6461['commands']['names']())['replaceSource','editSource']['includes'](_0x4d1fa0)||_0xcf6461['commands']['get'](_0x4d1fa0)['forceDisabled'](b);}['_enableCommands'](){const _0x12f65f=this['editor'];for(const _0x2356ab of _0x12f65f['commands']['commands']())_0x2356ab['clearForceDisabled'](b);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3e64be=this['editor'],_0x404f62=_0x3e64be['locale'],_0x211c88=_0x3e64be['plugins']['get']('Dialog'),_0x3afb18=r(_0x3e64be),_0x35d0da=_0x3e64be['data']['get']({'rootName':_0x3afb18}),_0x293353=tr(_0x2c2428=_0x35d0da)?_0x5b731f(_0x2c2428):_0x2c2428;var _0x2c2428;const _0x1fee4f=new E(_0x404f62,{'syntaxLanguage':_0x3e64be['plugins']['has']('Markdown')?'markdown':'html','theme':_0x3e64be['config']['get']('sourceEditingEnhanced.theme')});let _0x4a6bfc=!0x0;const _0x7ad6b4=_0x398a1f=>{if(!_0x4a6bfc)return;return g(_0x1fee4f['getData']())!==g(_0x293353)?window['confirm'](w(_0x404f62,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x398a1f['stop']():void 0x0;};_0x211c88['show']({'id':'sourceEditingEnhanced','title':w(_0x404f62,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x1fee4f,'actionButtons':[{'label':w(_0x404f62,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x211c88['hide']();}},{'label':w(_0x404f62,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x545a9f=g(_0x1fee4f['getData']())!==g(_0x293353);(_0x545a9f&&_0x3e64be['execute']('replaceSource',_0x1fee4f['getData']()),_0x4a6bfc=!0x1,_0x211c88['hide'](),_0x545a9f&&'editables'in _0x3e64be['ui']['view'])&&_0x3e64be['ui']['view']['editables'][_0x3afb18]['element']['focus']();},'onCreate':_0xed3d03=>{_0xed3d03['set']('isEnabled',!_0x3e64be['isReadOnly']),_0xed3d03['bind']('isEnabled')['to'](_0x3e64be,'isReadOnly',this,'isEnabled',(_0x4e1423,_0x35f18f)=>!_0x4e1423&&_0x35f18f);}}],'onHide':()=>{this['_enableCommands'](),_0x211c88['off']('hide',_0x7ad6b4),_0x1fee4f['destroy']();},'onShow':()=>{_0x1fee4f['bind']('isReadOnly')['to'](_0x3e64be,'isReadOnly',this,'isEnabled',(_0x31c755,_0x53780c)=>_0x31c755||!_0x53780c),_0x1fee4f['setData'](_0x293353),_0x1fee4f['focus'](),_0x211c88['on']('hide',_0x7ad6b4,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0x4fb4c3{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0xeeb707];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4c0f39=this['editor'],_0x3caef4=_0x4c0f39['locale'],_0x488d2e=new d(_0x4c0f39);_0x4c0f39['commands']['add']('editSource',_0x488d2e),_0x4c0f39['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x5a897d=this['_createButton'](_0x45b0ef,_0x488d2e);return _0x5a897d['set']({'label':w(_0x3caef4,'Source'),'icon':_0x2fa1e0,'tooltip':w(_0x3caef4,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x5a897d;}),_0x4c0f39['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x3129fc=this['_createButton'](_0x58c1f6,_0x488d2e,!0x0);return _0x3129fc['set']({'label':w(_0x3caef4,'Edit\x20source\x20modal\x20label'),'icon':_0x2fa1e0,'role':'menuitemcheckbox'}),_0x3129fc;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0xc56c9d){const _0x42b700=_0x1b7697([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0x1d700f=0x305505ed,_0x2e38b2=0x305273b5^_0x1d700f,_0x49bf49=window[_0x1b7697([0x44,0x61,0x74,0x65])][_0x1b7697([0x6e,0x6f,0x77])](),_0x30bf69=_0xc56c9d[_0x1b7697([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f0634=new window[(_0x1b7697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42c095=>{_0x30bf69[_0x1b7697([0x6f,0x6e,0x63,0x65])](_0x1b7697([0x72,0x65,0x61,0x64,0x79]),_0x42c095);}),_0x12958d={[_0x1b7697([0x6b,0x74,0x79])]:_0x1b7697([0x45,0x43]),[_0x1b7697([0x75,0x73,0x65])]:_0x1b7697([0x73,0x69,0x67]),[_0x1b7697([0x63,0x72,0x76])]:_0x1b7697([0x50,0x2d,0x32,0x35,0x36]),[_0x1b7697([0x78])]:_0x1b7697([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]),[_0x1b7697([0x79])]:_0x1b7697([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]),[_0x1b7697([0x61,0x6c,0x67])]:_0x1b7697([0x45,0x53,0x32,0x35,0x36])},_0x280af4=_0x30bf69[_0x1b7697([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1b7697([0x67,0x65,0x74])](_0x1b7697([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a791b(){let _0x5c4e8b,_0x1d05f1=null,_0x4bbc68=null;try{if(_0x280af4==_0x1b7697([0x47,0x50,0x4c]))return _0x1b7697([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c4e8b=_0x1d67f9(),!_0x5c4e8b)return _0x1b7697([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c4e8b[_0x1b7697([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4bbc68=_0xd0bc74(_0x5c4e8b[_0x1b7697([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c4e8b[_0x1b7697([0x6a,0x74,0x69])])),await _0x578ce2()?_0x5ef0e3()?_0x11edeb()?_0x1b7697([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x57788f()?(_0x5c4e8b[_0x1b7697([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b7697([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d05f1=_0x26b7dc(_0x1b7697([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5c4e8b[_0x1b7697([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b7697([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d05f1=_0x26b7dc(_0x1b7697([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2ec709()):_0x1b7697([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1b7697([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1b7697([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1b7697([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x11edeb(){const _0x1238b3=[_0x1b7697([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1b7697([0x74,0x72,0x69,0x61,0x6c])][_0x1b7697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c4e8b[_0x1b7697([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49bf49/0x3e8:0xe10*_0x2e38b2;return _0x5c4e8b[_0x1b7697([0x65,0x78,0x70])]<_0x1238b3;}function _0x5ef0e3(){const _0x544ab6=_0x5c4e8b[_0x1b7697([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x544ab6&&(!!_0x544ab6[_0x1b7697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b7697([0x2a]))||!!_0x544ab6[_0x1b7697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b7697([0x53,0x45,0x45])));}function _0x57788f(){const _0x3b592a=_0x5c4e8b[_0x1b7697([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b592a||0x0==_0x3b592a[_0x1b7697([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xbca50f}=new URL(window[_0x1b7697([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b592a[_0x1b7697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbca50f))return!0x0;const _0x4fa24f=_0xbca50f[_0x1b7697([0x73,0x70,0x6c,0x69,0x74])](_0x1b7697([0x2e]));return _0x3b592a[_0x1b7697([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xed4a83=>_0xed4a83[_0x1b7697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b7697([0x2a])))[_0x1b7697([0x6d,0x61,0x70])](_0x4a8392=>_0x4a8392[_0x1b7697([0x73,0x70,0x6c,0x69,0x74])](_0x1b7697([0x2e])))[_0x1b7697([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c3323=>_0x1c3323[_0x1b7697([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4fa24f[_0x1b7697([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b7697([0x6d,0x61,0x70])](_0xbf95b7=>Array(_0x4fa24f[_0x1b7697([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xbf95b7[_0x1b7697([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b7697([0x66,0x69,0x6c,0x6c])](_0xbf95b7[0x0]===_0x1b7697([0x2a])?_0x1b7697([0x2a]):'')[_0x1b7697([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xbf95b7))[_0x1b7697([0x73,0x6f,0x6d,0x65])](_0x32b962=>_0x4fa24f[_0x1b7697([0x65,0x76,0x65,0x72,0x79])]((_0x7dcb12,_0x6fde74)=>_0x32b962[_0x6fde74]===_0x7dcb12||_0x32b962[_0x6fde74]===_0x1b7697([0x2a])));}function _0x2ec709(){return _0x1d05f1&&_0x4bbc68?new window[(_0x1b7697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27e1dc,_0x23a7cd)=>{_0x1d05f1[_0x1b7697([0x74,0x68,0x65,0x6e])](_0x27e1dc,_0x23a7cd),_0x4bbc68[_0x1b7697([0x74,0x68,0x65,0x6e])](_0x37b99d=>{_0x37b99d!=_0x1b7697([0x56,0x61,0x6c,0x69,0x64])&&_0x27e1dc(_0x37b99d);},_0x23a7cd);}):_0x1d05f1||_0x4bbc68||_0x1b7697([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd0bc74(_0x9132ee,_0x222cfd){return new window[(_0x1b7697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x231b4c=>{if(_0x4b08af())return _0x231b4c(_0x1b7697([0x56,0x61,0x6c,0x69,0x64]));_0x1cd617(),_0x30bf69[_0x1b7697([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1b7697([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x55572d=!0x1;const _0x37651a=_0xfef166();function _0x89324e(_0x2d0817){return!!_0x2d0817&&(typeof _0x2d0817===_0x1b7697([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d0817===_0x1b7697([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d0817[_0x1b7697([0x74,0x68,0x65,0x6e])]===_0x1b7697([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d0817[_0x1b7697([0x63,0x61,0x74,0x63,0x68])]===_0x1b7697([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c0f10(_0x595918){_0x4633c0(_0x595918)[_0x1b7697([0x74,0x68,0x65,0x6e])](_0x4cdf71=>{if(!_0x4cdf71||_0x4cdf71[_0x1b7697([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1b7697([0x6f,0x6b]))return _0x1b7697([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x365e9e(_0x11bdc3(_0x37651a+_0x222cfd))!=_0x4cdf71[_0x1b7697([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1b7697([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1b7697([0x56,0x61,0x6c,0x69,0x64]);})[_0x1b7697([0x74,0x68,0x65,0x6e])](_0x467fc3=>(_0x4f1a58(),_0x467fc3),()=>{const _0x480c8d=_0x57c7ef();return null==_0x480c8d?(_0x4f1a58(),_0x1b7697([0x56,0x61,0x6c,0x69,0x64])):_0x1b7697(_0x49bf49-_0x480c8d>(0x145981ed^_0x1d700f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1b7697([0x74,0x68,0x65,0x6e])](_0x231b4c)[_0x1b7697([0x63,0x61,0x74,0x63,0x68])](()=>{_0x231b4c(_0x1b7697([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b0756=0x3063eb6d^_0x1d700f;function _0x4f1a58(){const _0x5b79d7=_0x1b7697([0x6c,0x6c,0x63,0x74,0x2d])+_0x365e9e(_0x11bdc3(_0x9132ee)),_0x285469=_0x57958e(_0x365e9e(window[_0x1b7697([0x4d,0x61,0x74,0x68])][_0x1b7697([0x63,0x65,0x69,0x6c])](_0x49bf49/_0x3b0756)));window[_0x1b7697([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b7697([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b79d7,_0x285469);}function _0x57c7ef(){const _0x2643f5=_0x1b7697([0x6c,0x6c,0x63,0x74,0x2d])+_0x365e9e(_0x11bdc3(_0x9132ee)),_0x3525e6=window[_0x1b7697([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b7697([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2643f5);return _0x3525e6?window[_0x1b7697([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57958e(_0x3525e6),0x10)*_0x3b0756:null;}function _0x4633c0(_0x2cb328){return new window[(_0x1b7697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x810b3b,_0x46514f)=>{_0x2cb328[_0x1b7697([0x74,0x68,0x65,0x6e])](_0x810b3b,_0x46514f),window[_0x1b7697([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46514f,0x3054d12d^_0x1d700f);});}}_0x30bf69[_0x1b7697([0x6f,0x6e])](_0x1b7697([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1cdab2,_0xd20256)=>{if(_0xd20256[0x0]!=_0x9132ee)return _0x231b4c(_0x1b7697([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd20256[0x1]={..._0xd20256[0x1],[_0x1b7697([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37651a};},{[_0x1b7697([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b7697([0x68,0x69,0x67,0x68])}),_0x30bf69[_0x1b7697([0x6f,0x6e])](_0x1b7697([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b073a=>{_0x89324e(_0x2b073a[_0x1b7697([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x55572d=!0x0,_0x4c0f10(_0x2b073a[_0x1b7697([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1b7697([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b7697([0x6c,0x6f,0x77])}),_0x4f0634[_0x1b7697([0x74,0x68,0x65,0x6e])](()=>{_0x55572d||_0x231b4c(_0x1b7697([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b08af(){return _0x30bf69[_0x1b7697([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b7697([0x76,0x69,0x65,0x77])][_0x1b7697([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1b7697([0x61,0x75,0x74,0x6f]);}function _0x1cd617(){_0x30bf69[_0x1b7697([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b7697([0x76,0x69,0x65,0x77])][_0x1b7697([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b7697([0x61,0x75,0x74,0x6f]);}}function _0x26b7dc(_0x3ddafd){const _0x3716dd=[new window[(_0x1b7697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40c845=>setTimeout(_0x40c845,0x305c3b21^_0x1d700f)),_0x4f0634[_0x1b7697([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1b7697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f3888=>{let _0x4ad457=0x0;_0x30bf69[_0x1b7697([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b7697([0x6f,0x6e])](_0x1b7697([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d7584,_0x133886)=>{_0x133886[0x0][_0x1b7697([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4ad457++,_0x4ad457==(0x30550415^_0x1d700f)&&(_0x4f3888(),_0x1d7584[_0x1b7697([0x6f,0x66,0x66])]());});}))];return window[_0x1b7697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b7697([0x72,0x61,0x63,0x65])](_0x3716dd)[_0x1b7697([0x74,0x68,0x65,0x6e])](()=>_0x3ddafd);}async function _0x4f5036(){await _0x4f0634,_0x30bf69[_0x1b7697([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b7697([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x14fe8b,_0x30bf69[_0x1b7697([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b7697([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x14fe8b,_0x30bf69[_0x1b7697([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b7697([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e8956(_0x52b0b8){const _0x5df473=_0x4fb035();_0x30bf69[_0x5df473]=_0x1b7697([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])+_0x52b0b8,_0x52b0b8!=_0x1b7697([0x56,0x61,0x6c,0x69,0x64])&&_0x4f5036();}function _0x4fb035(){const _0x793971=window[_0x1b7697([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1b7697([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b7697([0x6e,0x6f,0x77])]())[_0x1b7697([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b7697([0x2e]),'');let _0x63381e=_0x1b7697([0x75]);for(let _0x18cf6a=0x0;_0x18cf6a<_0x793971[_0x1b7697([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18cf6a+=0x2){let _0x4d2354=window[_0x1b7697([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x793971[_0x1b7697([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18cf6a,_0x18cf6a+0x2));_0x4d2354>=_0x42b700[_0x1b7697([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d2354-=_0x42b700[_0x1b7697([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x63381e+=_0x42b700[_0x4d2354];}return _0x63381e;}function _0x1d67f9(){const _0x176a5d=_0x280af4[_0x1b7697([0x73,0x70,0x6c,0x69,0x74])](_0x1b7697([0x2e]));if(0x3!=_0x176a5d[_0x1b7697([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x371706(_0x176a5d[0x1]);function _0x371706(_0x562d44){const _0x4aa11d=_0x973fdd(_0x562d44);return _0x4aa11d&&_0x3bf7ad()?_0x4aa11d:null;function _0x3bf7ad(){const _0x5d60ba=_0x4aa11d[_0x1b7697([0x6a,0x74,0x69])],_0x18f423=window[_0x1b7697([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d60ba[_0x1b7697([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d60ba[_0x1b7697([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1bf05c={..._0x4aa11d,[_0x1b7697([0x6a,0x74,0x69])]:_0x5d60ba[_0x1b7697([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d60ba[_0x1b7697([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1bf05c[_0x1b7697([0x76,0x63])],_0x11bdc3(_0x1bf05c)==_0x18f423;}}}async function _0x578ce2(){let _0x5b7d76=!0x0;try{const _0x150274=_0x280af4[_0x1b7697([0x73,0x70,0x6c,0x69,0x74])](_0x1b7697([0x2e])),[_0x3d7ac2,_0x418dfc,_0x18054f]=_0x150274;return _0x1b6204(_0x3d7ac2),await _0x6c2e2c(_0x3d7ac2,_0x418dfc,_0x18054f),_0x5b7d76;}catch{return!0x1;}function _0x1b6204(_0x592d80){const _0x57f593=_0x973fdd(_0x592d80);_0x57f593&&_0x57f593[_0x1b7697([0x61,0x6c,0x67])]==_0x1b7697([0x45,0x53,0x32,0x35,0x36])||(_0x5b7d76=!0x1);}async function _0x6c2e2c(_0x2270db,_0x29cee7,_0x372e3c){const _0x824e76=window[_0x1b7697([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1b7697([0x66,0x72,0x6f,0x6d])](_0x1ada2d(_0x372e3c),_0x43a963=>_0x43a963[_0x1b7697([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1394d2=new window[(_0x1b7697([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1b7697([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2270db+_0x1b7697([0x2e])+_0x29cee7),_0x2225f4=window[_0x1b7697([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1b7697([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2225f4)return;const _0x3e47d2=await _0x2225f4[_0x1b7697([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1b7697([0x6a,0x77,0x6b]),_0x12958d,{[_0x1b7697([0x6e,0x61,0x6d,0x65])]:_0x1b7697([0x45,0x43,0x44,0x53,0x41]),[_0x1b7697([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1b7697([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1b7697([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2225f4[_0x1b7697([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1b7697([0x6e,0x61,0x6d,0x65])]:_0x1b7697([0x45,0x43,0x44,0x53,0x41]),[_0x1b7697([0x68,0x61,0x73,0x68])]:{[_0x1b7697([0x6e,0x61,0x6d,0x65])]:_0x1b7697([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e47d2,_0x824e76,_0x1394d2)||(_0x5b7d76=!0x1);}}function _0x973fdd(_0x26b198){return _0x26b198[_0x1b7697([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1b7697([0x65,0x79]))?JSON[_0x1b7697([0x70,0x61,0x72,0x73,0x65])](_0x1ada2d(_0x26b198)):null;}function _0x1ada2d(_0x56909a){return window[_0x1b7697([0x61,0x74,0x6f,0x62])](_0x56909a[_0x1b7697([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1b7697([0x2b]))[_0x1b7697([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1b7697([0x2f])));}function _0x11bdc3(_0x5ca06a){let _0x4dc177=0x1505;function _0xcadb73(_0x1b2e15){for(let _0x2a08c5=0x0;_0x2a08c5<_0x1b2e15[_0x1b7697([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a08c5++){const _0x20710f=_0x1b2e15[_0x1b7697([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2a08c5);_0x4dc177=(_0x4dc177<<0x5)+_0x4dc177+_0x20710f,_0x4dc177&=_0x4dc177;}}function _0x4d1ee8(_0x484c3c){Array[_0x1b7697([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x484c3c)?_0x484c3c[_0x1b7697([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4d1ee8):_0x484c3c&&typeof _0x484c3c==_0x1b7697([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1b7697([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x484c3c)[_0x1b7697([0x73,0x6f,0x72,0x74])]()[_0x1b7697([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1fd03b,_0x524623])=>{_0xcadb73(_0x1fd03b),_0x4d1ee8(_0x524623);}):_0xcadb73(window[_0x1b7697([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x484c3c));}return _0x4d1ee8(_0x5ca06a),_0x4dc177>>>0x0;}function _0x365e9e(_0x2517cd){return _0x2517cd[_0x1b7697([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1b7697([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1b7697([0x30]));}function _0x57958e(_0x3d5930){return _0x3d5930[_0x1b7697([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1b7697([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1b7697([0x6a,0x6f,0x69,0x6e])]('');}function _0x14fe8b(){}function _0x1b7697(_0x1210f2){return _0x1210f2['map'](_0x4e14f1=>String['fromCharCode'](_0x4e14f1))['join']('');}_0x4e8956(await _0x2a791b());}(this);}['_createButton'](_0x14da9e,_0x33b6d6,_0x5dbf5b=!0x1){const _0x4e76a9=new _0x14da9e(this['editor']['locale']);return _0x4e76a9['set']({'withText':_0x5dbf5b,'isToggleable':!0x1}),_0x4e76a9['bind']('isEnabled')['to'](_0x33b6d6,'isEnabled'),this['listenTo'](_0x4e76a9,'execute',()=>_0x33b6d6['execute']()),_0x4e76a9;}['_registerKeybindings'](){const _0x5f1aad=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x5f1aad,'Source\x20Editing\x20Enhanced')});const _0x2719d1=_0x3569c8['isMac']||_0x3569c8['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x5f1aad,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x5f1aad,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x5f1aad,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x5f1aad,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x5f1aad,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x5f1aad,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x5f1aad,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x2719d1?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x5f1aad,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x5f1aad,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x5f1aad,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x5f1aad,'Select\x20line'),'keystroke':_0x2719d1?'Ctrl!+L':'Alt+L'},{'label':w(_0x5f1aad,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x2719d1?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x5f1aad,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x5f1aad,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x5f1aad,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x5f1aad,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x5f1aad,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x2719d1?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0x4cfc0a{constructor(_0x3da611){super(_0x3da611),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x2fb44c,_0x303d3c){const _0x6ffdbe=this['editor'],_0x1395c1=_0x303d3c?.['rootName']??r(_0x6ffdbe);_0x6ffdbe['data']['set']({[_0x1395c1]:_0x2fb44c},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ee extends _0x4fb4c3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x32fb07){super(_0x32fb07),_0x32fb07['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new c(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x40f6ac=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x38c60e;for(const _0x16c33a in _0x40f6ac){const _0x3788d1=_0x16c33a,_0x269ebd=_0x40f6ac[_0x3788d1];if('sourceEditingEnhancedLicenseKeyValid'==_0x269ebd||'sourceEditingEnhancedLicenseKeyInvalid'==_0x269ebd||'sourceEditingEnhancedLicenseKeyExpired'==_0x269ebd||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x269ebd||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x269ebd||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x269ebd||'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x269ebd||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x269ebd){delete _0x40f6ac[_0x3788d1],_0x38c60e=_0x269ebd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x38c60e&&_0x40f6ac['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x38c60e&&_0x40f6ac['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x38c60e&&_0x40f6ac['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x38c60e&&_0x40f6ac['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x38c60e&&_0x40f6ac['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x38c60e&&_0x40f6ac['_showLicenseError']('trialLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x38c60e&&_0x40f6ac['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x5a1700=this['editor'],_0x35edae=_0x5a1700['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x35edae&&_0x5a1700['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x527dec('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x35edae&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x2e904d=>_0x5a1700['plugins']['has'](_0x2e904d))&&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.'),_0x5a1700['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{d as EditSourceCommand,c as ReplaceSourceCommand,ee as SourceEditingEnhanced};
|
|
23
|
+
import{Command as _0x44b47f,PendingActions as _0xd453f4,Plugin as _0x480d85}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x42cae8,formatHtml as _0xdc81f4,env as _0x13051c,uid as _0x4d10da}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x1c7661}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3d506b,ButtonView as _0x5bb54a,MenuBarMenuListItemButtonView as _0x55be60}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x19a1c8,crosshairCursor as _0x4ec94b,drawSelection as _0x1689ce,dropCursor as _0x1c406e,lineNumbers as _0xe7db39,highlightActiveLine as _0x5e1433,highlightActiveLineGutter as _0x32162b,highlightSpecialChars as _0x5047c6,rectangularSelection as _0x3bce9e,keymap as _0x18a7e8}from'@codemirror/view';import{Compartment as _0x360160,Transaction as _0x56ada7}from'@codemirror/state';import{bracketMatching as _0x252eff,foldGutter as _0x204095,indentOnInput as _0x59edfc,syntaxHighlighting as _0x3f609a,defaultHighlightStyle as _0x1fe2a8,foldKeymap as _0x5a52e7}from'@codemirror/language';import{toggleTabFocusMode as _0x281eff,history as _0x1d7db5,defaultKeymap as _0x20b798,historyKeymap as _0x47653d,indentLess as _0x3cae3a,indentMore as _0x499873,redo as _0x461305,undo as _0x4e62f6}from'@codemirror/commands';import{autocompletion as _0x4cc5b0,closeBrackets as _0x3a70b9,closeBracketsKeymap as _0x659ddb,completionKeymap as _0x4288a2}from'@codemirror/autocomplete';import{html as _0x43cb8f}from'@codemirror/lang-html';import{markdown as _0x390d50}from'@codemirror/lang-markdown';import{oneDark as _0x2e91fc}from'@codemirror/theme-one-dark';function w(_0x2c7c28,_0x109be2){const t=_0x2c7c28['t'];switch(_0x109be2){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 _0x109be2;}}function r(_0x47ef6f){const _0x30958e=_0x47ef6f['editing']['view']['document']['roots'],_0x57697d=_0x30958e['length'];if(0x0===_0x57697d)throw new _0x42cae8('source-editing-enhanced-editor-no-root',_0x47ef6f);if(0x1===_0x57697d)return _0x30958e['first']['rootName'];return Array['from'](_0x47ef6f['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function $(_0x21b117){return X(_0x21b117['replace'](/^[\n\s]*/g,''))?_0x21b117['replace'](/\s+/g,''):_0x21b117;}function X(_0x2c03eb){return _0x2c03eb['startsWith']('<');}function Y(_0x42736e){const _0x29c17b=[_0x19a1c8['lineWrapping'],_0x4cc5b0(),_0x252eff(),_0x3a70b9(),_0x4ec94b(),_0x1689ce(),_0x1c406e(),_0xe7db39(),_0x204095(),_0x5e1433(),_0x32162b(),_0x5047c6(),_0x1d7db5(),_0x59edfc(),_0x3bce9e(),_0x3f609a(_0x1fe2a8,{'fallback':!0x0})],_0x57950d=new _0x360160();_0x29c17b['push'](_0x57950d['of'](_0x19a1c8['editable']['of'](!0x0))),'html'===_0x42736e['syntaxLanguage']?_0x29c17b['push'](_0x43cb8f()):_0x29c17b['push'](_0x390d50());const _0x2f9b19=function(_0x1c0452){if(_0x1c0452&&'default'!==_0x1c0452)return'dark'===_0x1c0452?_0x2e91fc:_0x1c0452;return null;}(_0x42736e['theme']);_0x2f9b19&&_0x29c17b['push'](_0x2f9b19),_0x29c17b['push'](_0x18a7e8['of']([..._0x659ddb,..._0x20b798,..._0x47653d,..._0x5a52e7,..._0x4288a2,{'key':'Tab','run':_0x499873,'shift':_0x3cae3a,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x461305,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x461305,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x4e62f6,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x449dad=new _0x19a1c8({'extensions':_0x29c17b,'parent':_0x42736e['parent']});return _0x281eff(_0x449dad),{'focus':()=>{_0x449dad['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x449dad['focus']();},'getData':()=>_0x449dad['state']['doc']['toString'](),'setData':_0x2ce6cf=>{_0x449dad['dispatch']({'changes':{'from':0x0,'to':_0x449dad['state']['doc']['length'],'insert':_0x2ce6cf},'annotations':_0x56ada7['addToHistory']['of'](!0x1)});},'setReadOnly':_0x27f0b6=>{_0x449dad['dispatch']({'effects':[_0x57950d['reconfigure'](_0x19a1c8['editable']['of'](!_0x27f0b6))]});},'destroy':()=>{_0x449dad['destroy']();},'instance':_0x449dad};}class ee extends _0x3d506b{['_codeEditorApi']=null;['_options'];constructor(_0x12c4a0,_0x2ddd07){super(_0x12c4a0),this['_options']=_0x2ddd07,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']=Y({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x4f7b2c,_0x377f59,_0x559f8d)=>{this['setReadOnly'](_0x559f8d);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x2f3a9d){this['_codeEditorApi']['setData'](_0x2f3a9d);}['setReadOnly'](_0x7720c2){this['_codeEditorApi']['setReadOnly'](_0x7720c2);}}const te='SourceEditingEnhancedMode';class d extends _0x44b47f{constructor(_0x447605){super(_0x447605),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0xd453f4)['on']('change:hasAny',(_0x258156,_0x3b1eca,_0x1c5f62)=>{_0x1c5f62?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x1abeea=this['editor'];for(const _0x25d2d8 of _0x1abeea['commands']['names']())['replaceSource','editSource']['includes'](_0x25d2d8)||_0x1abeea['commands']['get'](_0x25d2d8)['forceDisabled'](te);}['_enableCommands'](){const _0x139741=this['editor'];for(const _0x6468ef of _0x139741['commands']['commands']())_0x6468ef['clearForceDisabled'](te);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x30b7a3=this['editor'],_0x5e5d0d=_0x30b7a3['locale'],_0x2ef23f=_0x30b7a3['plugins']['get']('Dialog'),_0x5cb20a=r(_0x30b7a3),_0x5525af=_0x30b7a3['data']['get']({'rootName':_0x5cb20a}),_0x5ed9a5=X(_0x219b88=_0x5525af)?_0xdc81f4(_0x219b88):_0x219b88;var _0x219b88;const _0x17aa73=new ee(_0x5e5d0d,{'syntaxLanguage':_0x30b7a3['plugins']['has']('Markdown')?'markdown':'html','theme':_0x30b7a3['config']['get']('sourceEditingEnhanced.theme')});let _0x2b6c2b=!0x0;const _0x2a337a=_0x1b993c=>{if(!_0x2b6c2b)return;return $(_0x17aa73['getData']())!==$(_0x5ed9a5)?window['confirm'](w(_0x5e5d0d,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x1b993c['stop']():void 0x0;};_0x2ef23f['show']({'id':'sourceEditingEnhanced','title':w(_0x5e5d0d,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x17aa73,'actionButtons':[{'label':w(_0x5e5d0d,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x2ef23f['hide']();}},{'label':w(_0x5e5d0d,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x88fa77=$(_0x17aa73['getData']())!==$(_0x5ed9a5);(_0x88fa77&&_0x30b7a3['execute']('replaceSource',_0x17aa73['getData']()),_0x2b6c2b=!0x1,_0x2ef23f['hide'](),_0x88fa77&&'editables'in _0x30b7a3['ui']['view'])&&_0x30b7a3['ui']['view']['editables'][_0x5cb20a]['element']['focus']();},'onCreate':_0x519150=>{_0x519150['set']('isEnabled',!_0x30b7a3['isReadOnly']),_0x519150['bind']('isEnabled')['to'](_0x30b7a3,'isReadOnly',this,'isEnabled',(_0x51aa08,_0x1d3ee2)=>!_0x51aa08&&_0x1d3ee2);}}],'onHide':()=>{this['_enableCommands'](),_0x2ef23f['off']('hide',_0x2a337a),_0x17aa73['destroy']();},'onShow':()=>{_0x17aa73['bind']('isReadOnly')['to'](_0x30b7a3,'isReadOnly',this,'isEnabled',(_0x1a858e,_0x59196c)=>_0x1a858e||!_0x59196c),_0x17aa73['setData'](_0x5ed9a5),_0x17aa73['focus'](),_0x2ef23f['on']('hide',_0x2a337a,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0x480d85{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0xd453f4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2c36be=this['editor'],_0x55a2cd=_0x2c36be['locale'],_0x57158f=new d(_0x2c36be);_0x2c36be['commands']['add']('editSource',_0x57158f),_0x2c36be['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x5becb2=this['_createButton'](_0x5bb54a,_0x57158f);return _0x5becb2['set']({'label':w(_0x55a2cd,'Source'),'icon':_0x1c7661,'tooltip':w(_0x55a2cd,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x5becb2;}),_0x2c36be['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x595157=this['_createButton'](_0x55be60,_0x57158f,!0x0);return _0x595157['set']({'label':w(_0x55a2cd,'Edit\x20source\x20modal\x20label'),'icon':_0x1c7661,'role':'menuitemcheckbox'}),_0x595157;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x3e71df){const _0xe29322=_0x4b274f([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0x54efea=0x305505ed,_0x34acab=0x305273b5^_0x54efea,_0xc0bf0d=window[_0x4b274f([0x44,0x61,0x74,0x65])][_0x4b274f([0x6e,0x6f,0x77])](),_0x10217a=_0x3e71df[_0x4b274f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ecd54=new window[(_0x4b274f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ab0b2=>{_0x10217a[_0x4b274f([0x6f,0x6e,0x63,0x65])](_0x4b274f([0x72,0x65,0x61,0x64,0x79]),_0x1ab0b2);}),_0xa7abed={[_0x4b274f([0x6b,0x74,0x79])]:_0x4b274f([0x45,0x43]),[_0x4b274f([0x75,0x73,0x65])]:_0x4b274f([0x73,0x69,0x67]),[_0x4b274f([0x63,0x72,0x76])]:_0x4b274f([0x50,0x2d,0x32,0x35,0x36]),[_0x4b274f([0x78])]:_0x4b274f([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]),[_0x4b274f([0x79])]:_0x4b274f([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]),[_0x4b274f([0x61,0x6c,0x67])]:_0x4b274f([0x45,0x53,0x32,0x35,0x36])},_0x2a19d9=_0x10217a[_0x4b274f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b274f([0x67,0x65,0x74])](_0x4b274f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x49c3d4(){let _0x36ef1d,_0x161b0b=null,_0x147c03=null;try{if(_0x2a19d9==_0x4b274f([0x47,0x50,0x4c]))return _0x4b274f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36ef1d=_0x1d4ede(),!_0x36ef1d)return _0x4b274f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36ef1d[_0x4b274f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x147c03=_0x484123(_0x36ef1d[_0x4b274f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36ef1d[_0x4b274f([0x6a,0x74,0x69])])),await _0x347357()?_0xbb3388()?_0x4e94fa()?_0x4b274f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5327eb()?(_0x36ef1d[_0x4b274f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b274f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x161b0b=_0x1e87d2(_0x4b274f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x36ef1d[_0x4b274f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b274f([0x74,0x72,0x69,0x61,0x6c])&&(_0x161b0b=_0x1e87d2(_0x4b274f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x391e98()):_0x4b274f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b274f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b274f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4b274f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e94fa(){const _0x4409b5=[_0x4b274f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b274f([0x74,0x72,0x69,0x61,0x6c])][_0x4b274f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36ef1d[_0x4b274f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc0bf0d/0x3e8:0xe10*_0x34acab;return _0x36ef1d[_0x4b274f([0x65,0x78,0x70])]<_0x4409b5;}function _0xbb3388(){const _0x378edc=_0x36ef1d[_0x4b274f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x378edc&&(!!_0x378edc[_0x4b274f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b274f([0x2a]))||!!_0x378edc[_0x4b274f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b274f([0x53,0x45,0x45])));}function _0x5327eb(){const _0x55b7f5=_0x36ef1d[_0x4b274f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x55b7f5||0x0==_0x55b7f5[_0x4b274f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36010e}=new URL(window[_0x4b274f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x55b7f5[_0x4b274f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36010e))return!0x0;const _0x40ada2=_0x36010e[_0x4b274f([0x73,0x70,0x6c,0x69,0x74])](_0x4b274f([0x2e]));return _0x55b7f5[_0x4b274f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15f3d8=>_0x15f3d8[_0x4b274f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b274f([0x2a])))[_0x4b274f([0x6d,0x61,0x70])](_0x5dce4b=>_0x5dce4b[_0x4b274f([0x73,0x70,0x6c,0x69,0x74])](_0x4b274f([0x2e])))[_0x4b274f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ed5f5=>_0x2ed5f5[_0x4b274f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40ada2[_0x4b274f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b274f([0x6d,0x61,0x70])](_0x333ba7=>Array(_0x40ada2[_0x4b274f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x333ba7[_0x4b274f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b274f([0x66,0x69,0x6c,0x6c])](_0x333ba7[0x0]===_0x4b274f([0x2a])?_0x4b274f([0x2a]):'')[_0x4b274f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x333ba7))[_0x4b274f([0x73,0x6f,0x6d,0x65])](_0x2fa3a0=>_0x40ada2[_0x4b274f([0x65,0x76,0x65,0x72,0x79])]((_0x1f27f9,_0x370caf)=>_0x2fa3a0[_0x370caf]===_0x1f27f9||_0x2fa3a0[_0x370caf]===_0x4b274f([0x2a])));}function _0x391e98(){return _0x161b0b&&_0x147c03?new window[(_0x4b274f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43a3b7,_0x40969e)=>{_0x161b0b[_0x4b274f([0x74,0x68,0x65,0x6e])](_0x43a3b7,_0x40969e),_0x147c03[_0x4b274f([0x74,0x68,0x65,0x6e])](_0x39e55c=>{_0x39e55c!=_0x4b274f([0x56,0x61,0x6c,0x69,0x64])&&_0x43a3b7(_0x39e55c);},_0x40969e);}):_0x161b0b||_0x147c03||_0x4b274f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x484123(_0x3cfcf2,_0x41e95){return new window[(_0x4b274f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b039c=>{if(_0x1f48dc())return _0x4b039c(_0x4b274f([0x56,0x61,0x6c,0x69,0x64]));_0xf86c85(),_0x10217a[_0x4b274f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b274f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b914d=!0x1;const _0x2843fb=_0x4d10da();function _0x29890a(_0x4131be){return!!_0x4131be&&(typeof _0x4131be===_0x4b274f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4131be===_0x4b274f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4131be[_0x4b274f([0x74,0x68,0x65,0x6e])]===_0x4b274f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4131be[_0x4b274f([0x63,0x61,0x74,0x63,0x68])]===_0x4b274f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x44de3e(_0x198510){_0x583641(_0x198510)[_0x4b274f([0x74,0x68,0x65,0x6e])](_0x20910a=>{if(!_0x20910a||_0x20910a[_0x4b274f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b274f([0x6f,0x6b]))return _0x4b274f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x53776d(_0xd35941(_0x2843fb+_0x41e95))!=_0x20910a[_0x4b274f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b274f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b274f([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b274f([0x74,0x68,0x65,0x6e])](_0x45a1f1=>(_0x42e3d7(),_0x45a1f1),()=>{const _0x2eeca6=_0x2643cf();return null==_0x2eeca6?(_0x42e3d7(),_0x4b274f([0x56,0x61,0x6c,0x69,0x64])):_0x4b274f(_0xc0bf0d-_0x2eeca6>(0x145981ed^_0x54efea)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b274f([0x74,0x68,0x65,0x6e])](_0x4b039c)[_0x4b274f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b039c(_0x4b274f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d07ac=0x3063eb6d^_0x54efea;function _0x42e3d7(){const _0x2089fa=_0x4b274f([0x6c,0x6c,0x63,0x74,0x2d])+_0x53776d(_0xd35941(_0x3cfcf2)),_0x39c9a8=_0x1ad03f(_0x53776d(window[_0x4b274f([0x4d,0x61,0x74,0x68])][_0x4b274f([0x63,0x65,0x69,0x6c])](_0xc0bf0d/_0x5d07ac)));window[_0x4b274f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b274f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2089fa,_0x39c9a8);}function _0x2643cf(){const _0x33aa34=_0x4b274f([0x6c,0x6c,0x63,0x74,0x2d])+_0x53776d(_0xd35941(_0x3cfcf2)),_0x7a7f54=window[_0x4b274f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b274f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33aa34);return _0x7a7f54?window[_0x4b274f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ad03f(_0x7a7f54),0x10)*_0x5d07ac:null;}function _0x583641(_0x279185){return new window[(_0x4b274f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x223d51,_0x4f036d)=>{_0x279185[_0x4b274f([0x74,0x68,0x65,0x6e])](_0x223d51,_0x4f036d),window[_0x4b274f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f036d,0x3054d12d^_0x54efea);});}}_0x10217a[_0x4b274f([0x6f,0x6e])](_0x4b274f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7a66c1,_0x24770c)=>{if(_0x24770c[0x0]!=_0x3cfcf2)return _0x4b039c(_0x4b274f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x24770c[0x1]={..._0x24770c[0x1],[_0x4b274f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2843fb};},{[_0x4b274f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b274f([0x68,0x69,0x67,0x68])}),_0x10217a[_0x4b274f([0x6f,0x6e])](_0x4b274f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42543f=>{_0x29890a(_0x42543f[_0x4b274f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b914d=!0x0,_0x44de3e(_0x42543f[_0x4b274f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b274f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b274f([0x6c,0x6f,0x77])}),_0x5ecd54[_0x4b274f([0x74,0x68,0x65,0x6e])](()=>{_0x2b914d||_0x4b039c(_0x4b274f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f48dc(){return _0x10217a[_0x4b274f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b274f([0x76,0x69,0x65,0x77])][_0x4b274f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b274f([0x61,0x75,0x74,0x6f]);}function _0xf86c85(){_0x10217a[_0x4b274f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b274f([0x76,0x69,0x65,0x77])][_0x4b274f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b274f([0x61,0x75,0x74,0x6f]);}}function _0x1e87d2(_0x2a8964){const _0x521b2a=[new window[(_0x4b274f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4de49f=>setTimeout(_0x4de49f,0x305c3b21^_0x54efea)),_0x5ecd54[_0x4b274f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b274f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e91d4=>{let _0x29e04d=0x0;_0x10217a[_0x4b274f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b274f([0x6f,0x6e])](_0x4b274f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x95cd2f,_0x44b67f)=>{_0x44b67f[0x0][_0x4b274f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29e04d++,_0x29e04d==(0x30550415^_0x54efea)&&(_0x4e91d4(),_0x95cd2f[_0x4b274f([0x6f,0x66,0x66])]());});}))];return window[_0x4b274f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b274f([0x72,0x61,0x63,0x65])](_0x521b2a)[_0x4b274f([0x74,0x68,0x65,0x6e])](()=>_0x2a8964);}async function _0x36381c(){await _0x5ecd54,_0x10217a[_0x4b274f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b274f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x808aa0,_0x10217a[_0x4b274f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b274f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x808aa0,_0x10217a[_0x4b274f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b274f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3fab83(_0x205882){const _0x313e16=_0x4e4f10();_0x10217a[_0x313e16]=_0x4b274f([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])+_0x205882,_0x205882!=_0x4b274f([0x56,0x61,0x6c,0x69,0x64])&&_0x36381c();}function _0x4e4f10(){const _0x1acb1b=window[_0x4b274f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b274f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b274f([0x6e,0x6f,0x77])]())[_0x4b274f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b274f([0x2e]),'');let _0x134bb2=_0x4b274f([0x75]);for(let _0x260267=0x0;_0x260267<_0x1acb1b[_0x4b274f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x260267+=0x2){let _0x46996b=window[_0x4b274f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1acb1b[_0x4b274f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x260267,_0x260267+0x2));_0x46996b>=_0xe29322[_0x4b274f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46996b-=_0xe29322[_0x4b274f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x134bb2+=_0xe29322[_0x46996b];}return _0x134bb2;}function _0x1d4ede(){const _0xf8d116=_0x2a19d9[_0x4b274f([0x73,0x70,0x6c,0x69,0x74])](_0x4b274f([0x2e]));if(0x3!=_0xf8d116[_0x4b274f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x14343d(_0xf8d116[0x1]);function _0x14343d(_0x50a0ff){const _0x27aa59=_0x4ea0b4(_0x50a0ff);return _0x27aa59&&_0x413e0f()?_0x27aa59:null;function _0x413e0f(){const _0x4bd75e=_0x27aa59[_0x4b274f([0x6a,0x74,0x69])],_0x5054fd=window[_0x4b274f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bd75e[_0x4b274f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bd75e[_0x4b274f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x529b8d={..._0x27aa59,[_0x4b274f([0x6a,0x74,0x69])]:_0x4bd75e[_0x4b274f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4bd75e[_0x4b274f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x529b8d[_0x4b274f([0x76,0x63])],_0xd35941(_0x529b8d)==_0x5054fd;}}}async function _0x347357(){let _0x2d72f3=!0x0;try{const _0x53e405=_0x2a19d9[_0x4b274f([0x73,0x70,0x6c,0x69,0x74])](_0x4b274f([0x2e])),[_0x314886,_0x2d7a5e,_0xb44ffd]=_0x53e405;return _0x2d0170(_0x314886),await _0x1c69cf(_0x314886,_0x2d7a5e,_0xb44ffd),_0x2d72f3;}catch{return!0x1;}function _0x2d0170(_0x12c1ed){const _0x3512ae=_0x4ea0b4(_0x12c1ed);_0x3512ae&&_0x3512ae[_0x4b274f([0x61,0x6c,0x67])]==_0x4b274f([0x45,0x53,0x32,0x35,0x36])||(_0x2d72f3=!0x1);}async function _0x1c69cf(_0x27c2b8,_0x25b019,_0x57023f){const _0x17684c=window[_0x4b274f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b274f([0x66,0x72,0x6f,0x6d])](_0x397f95(_0x57023f),_0xf9cb46=>_0xf9cb46[_0x4b274f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xf73c2=new window[(_0x4b274f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b274f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27c2b8+_0x4b274f([0x2e])+_0x25b019),_0x5df5bd=window[_0x4b274f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b274f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5df5bd)return;const _0x9bdf58=await _0x5df5bd[_0x4b274f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b274f([0x6a,0x77,0x6b]),_0xa7abed,{[_0x4b274f([0x6e,0x61,0x6d,0x65])]:_0x4b274f([0x45,0x43,0x44,0x53,0x41]),[_0x4b274f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b274f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b274f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5df5bd[_0x4b274f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b274f([0x6e,0x61,0x6d,0x65])]:_0x4b274f([0x45,0x43,0x44,0x53,0x41]),[_0x4b274f([0x68,0x61,0x73,0x68])]:{[_0x4b274f([0x6e,0x61,0x6d,0x65])]:_0x4b274f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9bdf58,_0x17684c,_0xf73c2)||(_0x2d72f3=!0x1);}}function _0x4ea0b4(_0x54c648){return _0x54c648[_0x4b274f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b274f([0x65,0x79]))?JSON[_0x4b274f([0x70,0x61,0x72,0x73,0x65])](_0x397f95(_0x54c648)):null;}function _0x397f95(_0x36299f){return window[_0x4b274f([0x61,0x74,0x6f,0x62])](_0x36299f[_0x4b274f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b274f([0x2b]))[_0x4b274f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b274f([0x2f])));}function _0xd35941(_0x5c8c8d){let _0x56068d=0x1505;function _0x3c4278(_0x1b80fa){for(let _0x1c601e=0x0;_0x1c601e<_0x1b80fa[_0x4b274f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c601e++){const _0x18bf8c=_0x1b80fa[_0x4b274f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1c601e);_0x56068d=(_0x56068d<<0x5)+_0x56068d+_0x18bf8c,_0x56068d&=_0x56068d;}}function _0x451180(_0x9d20b){Array[_0x4b274f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9d20b)?_0x9d20b[_0x4b274f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x451180):_0x9d20b&&typeof _0x9d20b==_0x4b274f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b274f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9d20b)[_0x4b274f([0x73,0x6f,0x72,0x74])]()[_0x4b274f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x446824,_0x22cb3f])=>{_0x3c4278(_0x446824),_0x451180(_0x22cb3f);}):_0x3c4278(window[_0x4b274f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9d20b));}return _0x451180(_0x5c8c8d),_0x56068d>>>0x0;}function _0x53776d(_0x312cd0){return _0x312cd0[_0x4b274f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b274f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b274f([0x30]));}function _0x1ad03f(_0x47c714){return _0x47c714[_0x4b274f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b274f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b274f([0x6a,0x6f,0x69,0x6e])]('');}function _0x808aa0(){}function _0x4b274f(_0xc437ae){return _0xc437ae['map'](_0x278351=>String['fromCharCode'](_0x278351))['join']('');}_0x3fab83(await _0x49c3d4());}(this);}['_createButton'](_0x4e5507,_0xe3c577,_0x46382d=!0x1){const _0x15ecba=new _0x4e5507(this['editor']['locale']);return _0x15ecba['set']({'withText':_0x46382d,'isToggleable':!0x1}),_0x15ecba['bind']('isEnabled')['to'](_0xe3c577,'isEnabled'),this['listenTo'](_0x15ecba,'execute',()=>_0xe3c577['execute']()),_0x15ecba;}['_registerKeybindings'](){const _0x2b0efa=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x2b0efa,'Source\x20Editing\x20Enhanced')});const _0xf9b58=_0x13051c['isMac']||_0x13051c['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x2b0efa,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x2b0efa,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x2b0efa,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x2b0efa,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x2b0efa,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x2b0efa,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x2b0efa,'Fold\x20code\x20(current\x20level)'),'keystroke':_0xf9b58?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x2b0efa,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x2b0efa,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x2b0efa,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x2b0efa,'Select\x20line'),'keystroke':_0xf9b58?'Ctrl!+L':'Alt+L'},{'label':w(_0x2b0efa,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0xf9b58?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x2b0efa,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x2b0efa,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x2b0efa,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x2b0efa,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x2b0efa,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0xf9b58?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0x44b47f{constructor(_0x456ead){super(_0x456ead),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x245531,_0x2e55e6){const _0xea4744=this['editor'],_0x2febf0=_0x2e55e6?.['rootName']??r(_0xea4744);_0xea4744['data']['set']({[_0x2febf0]:_0x245531},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ne extends _0x480d85{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x269ae1){super(_0x269ae1),_0x269ae1['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new c(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x29b87d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x532b23;for(const _0x6809 in _0x29b87d){const _0x28b96f=_0x6809,_0x4b7583=_0x29b87d[_0x28b96f];if('sourceEditingEnhancedLicenseKeyValid'==_0x4b7583||'sourceEditingEnhancedLicenseKeyInvalid'==_0x4b7583||'sourceEditingEnhancedLicenseKeyExpired'==_0x4b7583||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x4b7583||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x4b7583||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x4b7583||'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x4b7583||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x4b7583){delete _0x29b87d[_0x28b96f],_0x532b23=_0x4b7583,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x532b23&&_0x29b87d['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x532b23&&_0x29b87d['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x532b23&&_0x29b87d['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x532b23&&_0x29b87d['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x532b23&&_0x29b87d['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x532b23&&_0x29b87d['_showLicenseError']('trialLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x532b23&&_0x29b87d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x5afa02=this['editor'],_0x1caaa8=_0x5afa02['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x1caaa8&&_0x5afa02['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x42cae8('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x1caaa8&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x4fb120=>_0x5afa02['plugins']['has'](_0x4fb120))&&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.'),_0x5afa02['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{d as EditSourceCommand,c as ReplaceSourceCommand,ne as SourceEditingEnhanced};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-source-editing-enhanced",
|
|
3
|
-
"version": "47.1.0
|
|
3
|
+
"version": "47.1.0",
|
|
4
4
|
"description": "Source editing enhanced feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"type": "module",
|
|
19
19
|
"main": "src/index.js",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@ckeditor/ckeditor5-core": "47.1.0
|
|
22
|
-
"@ckeditor/ckeditor5-icons": "47.1.0
|
|
23
|
-
"@ckeditor/ckeditor5-theme-lark": "47.1.0
|
|
24
|
-
"@ckeditor/ckeditor5-ui": "47.1.0
|
|
25
|
-
"@ckeditor/ckeditor5-utils": "47.1.0
|
|
21
|
+
"@ckeditor/ckeditor5-core": "47.1.0",
|
|
22
|
+
"@ckeditor/ckeditor5-icons": "47.1.0",
|
|
23
|
+
"@ckeditor/ckeditor5-theme-lark": "47.1.0",
|
|
24
|
+
"@ckeditor/ckeditor5-ui": "47.1.0",
|
|
25
|
+
"@ckeditor/ckeditor5-utils": "47.1.0",
|
|
26
26
|
"@codemirror/autocomplete": "^6.7.1",
|
|
27
27
|
"@codemirror/commands": "6.8.1",
|
|
28
28
|
"@codemirror/lang-html": "^6.0.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@codemirror/state": "^6.5.0",
|
|
32
32
|
"@codemirror/theme-one-dark": "^6.1.2",
|
|
33
33
|
"@codemirror/view": "^6.35.0",
|
|
34
|
-
"ckeditor5": "47.1.0
|
|
34
|
+
"ckeditor5": "47.1.0"
|
|
35
35
|
},
|
|
36
36
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
37
37
|
"author": "CKSource (http://cksource.com/)",
|
package/src/ui/codeeditorview.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1fa4e8=_0x1a30;(function(_0xd41cc4,_0x578301){var _0x18d02d=_0x1a30,_0x7cf1c=_0xd41cc4();while(!![]){try{var _0xc3b611=-parseInt(_0x18d02d(0x1be))/0x1+-parseInt(_0x18d02d(0x1ca))/0x2*(parseInt(_0x18d02d(0x1ba))/0x3)+-parseInt(_0x18d02d(0x1c4))/0x4+parseInt(_0x18d02d(0x1cf))/0x5*(parseInt(_0x18d02d(0x1bf))/0x6)+-parseInt(_0x18d02d(0x1c7))/0x7+-parseInt(_0x18d02d(0x1c3))/0x8+parseInt(_0x18d02d(0x1c5))/0x9;if(_0xc3b611===_0x578301)break;else _0x7cf1c['push'](_0x7cf1c['shift']());}catch(_0x335708){_0x7cf1c['push'](_0x7cf1c['shift']());}}}(_0xfb3b,0x8e743));import{View as _0x15a5aa}from'ckeditor5/src/ui.js';function _0x1a30(_0x509b50,_0x3d9ce2){var _0xfb3b0c=_0xfb3b();return _0x1a30=function(_0x1a3059,_0x131759){_0x1a3059=_0x1a3059-0x1b9;var _0x2317ac=_0xfb3b0c[_0x1a3059];return _0x2317ac;},_0x1a30(_0x509b50,_0x3d9ce2);}function _0xfb3b(){var _0x19d411=['getData','destroy','ck-reset_all-excluded','set','412835DTBRyC','change:isReadOnly','setReadOnly','_options','setData','ck-code-editor','39QKgRcC','render','_codeEditorApi','theme','164357ayrVPt','12gmBaaP','isReadOnly','focus','syntaxLanguage','5395592jADGAA','3813024ncjqjN','28346103uXMofk','element','3378753joDIcf','setTemplate','div','70226CwrdDz'];_0xfb3b=function(){return _0x19d411;};return _0xfb3b();}import{createCodeMirrorEditor as _0x2a2e25}from'../utils/createcodemirroreditor.js';export class CodeEditorView extends _0x15a5aa{[_0x1fa4e8(0x1bc)]=null;[_0x1fa4e8(0x1d2)];constructor(_0x589597,_0x287476){var _0x55cdb9=_0x1fa4e8;super(_0x589597),this[_0x55cdb9(0x1d2)]=_0x287476,this[_0x55cdb9(0x1ce)](_0x55cdb9(0x1c0),!0x1),this[_0x55cdb9(0x1c8)]({'tag':_0x55cdb9(0x1c9),'attributes':{'class':['ck',_0x55cdb9(0x1cd),_0x55cdb9(0x1b9)],'tabindex':-0x1}});}[_0x1fa4e8(0x1bb)](){var _0x869325=_0x1fa4e8;super[_0x869325(0x1bb)](),this[_0x869325(0x1bc)]=_0x2a2e25({'parent':this[_0x869325(0x1c6)],'syntaxLanguage':this[_0x869325(0x1d2)][_0x869325(0x1c2)],'theme':this[_0x869325(0x1d2)][_0x869325(0x1bd)]}),this['on'](_0x869325(0x1d0),(_0x1e38b0,_0x2d8b20,_0x59227a)=>{var _0xd5d505=_0x869325;this[_0xd5d505(0x1d1)](_0x59227a);});}[_0x1fa4e8(0x1cc)](){var _0x5a84c5=_0x1fa4e8;super[_0x5a84c5(0x1cc)](),this[_0x5a84c5(0x1bc)][_0x5a84c5(0x1cc)](),this[_0x5a84c5(0x1bc)]=null;}[_0x1fa4e8(0x1c1)](){var _0x21e918=_0x1fa4e8;this[_0x21e918(0x1c0)]?this[_0x21e918(0x1c6)][_0x21e918(0x1c1)]():this[_0x21e918(0x1bc)][_0x21e918(0x1c1)]();}[_0x1fa4e8(0x1cb)](){var _0x412001=_0x1fa4e8;return this[_0x412001(0x1bc)][_0x412001(0x1cb)]();}[_0x1fa4e8(0x1d3)](_0x32208b){var _0x5cee00=_0x1fa4e8;this[_0x5cee00(0x1bc)][_0x5cee00(0x1d3)](_0x32208b);}[_0x1fa4e8(0x1d1)](_0x43a120){var _0x11562b=_0x1fa4e8;this[_0x11562b(0x1bc)][_0x11562b(0x1d1)](_0x43a120);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x498f(){const _0x7df0d4=['names','focus','222461UvWxEs','3269uADneF','editor','includes','_enableCommands','get','3190990fCjuEs','show','refresh','Markdown','highest','sourceEditingEnhanced.theme','10728IHLhgp','Cancel','locale','639alRyyR','change:hasAny','view','plugins','config','sourceEditingEnhanced','60UJWfxE','169359DPKtPt','ck-source-editing-enhanced-dialog','off','pendingActions','commands','Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.','14jxgBSt','isEnabled','clearForceDisabled','610BsNrML','stop','Save','setData','editables','set','markdown','1539500BZnecP','_disableCommands','49230pNjKkT','ck-button-action','affectsData','html','element','has','data','hide','getData','replaceSource','destroy','bind','execute','editSource','forceDisabled','SourceEditingEnhancedMode','14502EYweYz','confirm','Dialog','isReadOnly','Edit\x20source\x20modal\x20label'];_0x498f=function(){return _0x7df0d4;};return _0x498f();}const _0x30eb58=_0x1aec;(function(_0x356a93,_0x4e3e95){const _0x3d1a54=_0x1aec,_0x440519=_0x356a93();while(!![]){try{const _0xe084ea=parseInt(_0x3d1a54(0x12e))/0x1+-parseInt(_0x3d1a54(0x14a))/0x2*(parseInt(_0x3d1a54(0x144))/0x3)+-parseInt(_0x3d1a54(0x154))/0x4+parseInt(_0x3d1a54(0x14d))/0x5*(-parseInt(_0x3d1a54(0x127))/0x6)+-parseInt(_0x3d1a54(0x12f))/0x7*(parseInt(_0x3d1a54(0x13a))/0x8)+parseInt(_0x3d1a54(0x13d))/0x9*(parseInt(_0x3d1a54(0x156))/0xa)+-parseInt(_0x3d1a54(0x134))/0xb*(-parseInt(_0x3d1a54(0x143))/0xc);if(_0xe084ea===_0x4e3e95)break;else _0x440519['push'](_0x440519['shift']());}catch(_0x1cbd00){_0x440519['push'](_0x440519['shift']());}}}(_0x498f,0x4e6fd));import{Command as _0x2597ef,PendingActions as _0x68a9bc}from'ckeditor5/src/core.js';import{getTranslation as _0x1f654e}from'../utils/common-translations.js';import{getActiveRootName as _0x2e4635}from'../utils/getactiverootname.js';import{formatSource as _0x33d71b,unformatSource as _0x4d2d0f}from'../utils/format.js';function _0x1aec(_0x4ce023,_0x31df51){const _0x498f82=_0x498f();return _0x1aec=function(_0x1aec63,_0x1830db){_0x1aec63=_0x1aec63-0x127;let _0x470a74=_0x498f82[_0x1aec63];return _0x470a74;},_0x1aec(_0x4ce023,_0x31df51);}import{CodeEditorView as _0x4cbf91}from'./codeeditorview.js';const te=_0x30eb58(0x165);export class EditSourceCommand extends _0x2597ef{constructor(_0x47f256){const _0x4f3532=_0x30eb58;super(_0x47f256),this[_0x4f3532(0x158)]=!0x1,this[_0x4f3532(0x130)][_0x4f3532(0x140)][_0x4f3532(0x133)](_0x68a9bc)['on'](_0x4f3532(0x13e),(_0x4cfb8f,_0x3524d7,_0x4e5d8a)=>{const _0x273d4b=_0x4f3532;_0x4e5d8a?this[_0x273d4b(0x164)](_0x273d4b(0x147)):this[_0x273d4b(0x14c)](_0x273d4b(0x147));});}[_0x30eb58(0x155)](){const _0x385ce6=_0x30eb58,_0x307edf=this[_0x385ce6(0x130)];for(const _0x34d4fe of _0x307edf[_0x385ce6(0x148)][_0x385ce6(0x12c)]())[_0x385ce6(0x15f),_0x385ce6(0x163)][_0x385ce6(0x131)](_0x34d4fe)||_0x307edf[_0x385ce6(0x148)][_0x385ce6(0x133)](_0x34d4fe)[_0x385ce6(0x164)](te);}[_0x30eb58(0x132)](){const _0x52c996=_0x30eb58,_0xecf3e8=this[_0x52c996(0x130)];for(const _0x56f548 of _0xecf3e8[_0x52c996(0x148)][_0x52c996(0x148)]())_0x56f548[_0x52c996(0x14c)](te);}[_0x30eb58(0x136)](){const _0x16fdf6=_0x30eb58;this[_0x16fdf6(0x14b)]=!0x0;}[_0x30eb58(0x162)](){const _0x46c387=_0x30eb58,_0x3cf94a=this[_0x46c387(0x130)],_0x369ca7=_0x3cf94a[_0x46c387(0x13c)],_0x395a90=_0x3cf94a[_0x46c387(0x140)][_0x46c387(0x133)](_0x46c387(0x129)),_0x3e3f47=_0x2e4635(_0x3cf94a),_0x4a7147=_0x3cf94a[_0x46c387(0x15c)][_0x46c387(0x133)]({'rootName':_0x3e3f47}),_0x326546=_0x33d71b(_0x4a7147),_0x32cd61=new _0x4cbf91(_0x369ca7,{'syntaxLanguage':_0x3cf94a[_0x46c387(0x140)][_0x46c387(0x15b)](_0x46c387(0x137))?_0x46c387(0x153):_0x46c387(0x159),'theme':_0x3cf94a[_0x46c387(0x141)][_0x46c387(0x133)](_0x46c387(0x139))});let _0x1be495=!0x0;const _0x163233=_0x35cd3c=>{const _0x28ee7a=_0x46c387;if(!_0x1be495)return;const _0x39c376=_0x32cd61[_0x28ee7a(0x15e)]();return _0x4d2d0f(_0x39c376)!==_0x4d2d0f(_0x326546)?window[_0x28ee7a(0x128)](_0x1f654e(_0x369ca7,_0x28ee7a(0x149)))?void 0x0:_0x35cd3c[_0x28ee7a(0x14e)]():void 0x0;};_0x395a90[_0x46c387(0x135)]({'id':_0x46c387(0x142),'title':_0x1f654e(_0x369ca7,_0x46c387(0x12b)),'isModal':!0x0,'className':_0x46c387(0x145),'content':_0x32cd61,'actionButtons':[{'label':_0x1f654e(_0x369ca7,_0x46c387(0x13b)),'withText':!0x0,'onExecute':()=>{const _0x598a25=_0x46c387;_0x395a90[_0x598a25(0x15d)]();}},{'label':_0x1f654e(_0x369ca7,_0x46c387(0x14f)),'class':_0x46c387(0x157),'withText':!0x0,'onExecute':()=>{const _0x4423ea=_0x46c387,_0x4f60c9=_0x32cd61[_0x4423ea(0x15e)](),_0x497258=_0x4d2d0f(_0x4f60c9)!==_0x4d2d0f(_0x326546);(_0x497258&&_0x3cf94a[_0x4423ea(0x162)](_0x4423ea(0x15f),_0x32cd61[_0x4423ea(0x15e)]()),_0x1be495=!0x1,_0x395a90[_0x4423ea(0x15d)](),_0x497258&&_0x4423ea(0x151)in _0x3cf94a['ui'][_0x4423ea(0x13f)])&&_0x3cf94a['ui'][_0x4423ea(0x13f)][_0x4423ea(0x151)][_0x3e3f47][_0x4423ea(0x15a)][_0x4423ea(0x12d)]();},'onCreate':_0x3cdab2=>{const _0x22c1d6=_0x46c387;_0x3cdab2[_0x22c1d6(0x152)](_0x22c1d6(0x14b),!_0x3cf94a[_0x22c1d6(0x12a)]),_0x3cdab2[_0x22c1d6(0x161)](_0x22c1d6(0x14b))['to'](_0x3cf94a,_0x22c1d6(0x12a),this,_0x22c1d6(0x14b),(_0x1dd999,_0x13b381)=>!_0x1dd999&&_0x13b381);}}],'onHide':()=>{const _0x1ecf12=_0x46c387;this[_0x1ecf12(0x132)](),_0x395a90[_0x1ecf12(0x146)](_0x1ecf12(0x15d),_0x163233),_0x32cd61[_0x1ecf12(0x160)]();},'onShow':()=>{const _0x1405aa=_0x46c387;_0x32cd61[_0x1405aa(0x161)](_0x1405aa(0x12a))['to'](_0x3cf94a,_0x1405aa(0x12a),this,_0x1405aa(0x14b),(_0x216ce0,_0x42906f)=>_0x216ce0||!_0x42906f),_0x32cd61[_0x1405aa(0x150)](_0x326546),_0x32cd61[_0x1405aa(0x12d)](),_0x395a90['on'](_0x1405aa(0x15d),_0x163233,{'priority':_0x1405aa(0x138)}),this[_0x1405aa(0x155)]();}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1b27e2,_0x1a5181){const _0x2979ce=_0x3f9b,_0x22104b=_0x1b27e2();while(!![]){try{const _0x4c2e88=parseInt(_0x2979ce(0x1d8))/0x1+-parseInt(_0x2979ce(0x1bf))/0x2*(-parseInt(_0x2979ce(0x1bb))/0x3)+parseInt(_0x2979ce(0x1c6))/0x4*(-parseInt(_0x2979ce(0x1c3))/0x5)+-parseInt(_0x2979ce(0x1ba))/0x6+-parseInt(_0x2979ce(0x1d4))/0x7+parseInt(_0x2979ce(0x1c0))/0x8+-parseInt(_0x2979ce(0x1cd))/0x9;if(_0x4c2e88===_0x1a5181)break;else _0x22104b['push'](_0x22104b['shift']());}catch(_0x1b3818){_0x22104b['push'](_0x22104b['shift']());}}}(_0x7962,0x853a7));import{lineNumbers as _0x2901c2,highlightActiveLineGutter as _0xa71fa4,highlightSpecialChars as _0xdbcd50,drawSelection as _0x582af0,dropCursor as _0x571cf2,rectangularSelection as _0x82d506,crosshairCursor as _0x1a9690,highlightActiveLine as _0x2417ef,keymap as _0x152bb3,EditorView as _0x459286}from'@codemirror/view';import{Compartment as _0x5d3bae,Transaction as _0x503190}from'@codemirror/state';import{foldGutter as _0x57131f,indentOnInput as _0x55a030,syntaxHighlighting as _0x1bed35,defaultHighlightStyle as _0x4d0cf5,bracketMatching as _0x1b65b4,foldKeymap as _0xfb0f50}from'@codemirror/language';import{history as _0x2dd188,defaultKeymap as _0x150ce8,historyKeymap as _0x28cfd3,redo as _0x44a42e,undo as _0x5d4347,indentMore as _0xc5c98,indentLess as _0x370365,toggleTabFocusMode as _0x17317a}from'@codemirror/commands';import{closeBrackets as _0x2e9bc9,autocompletion as _0x5bcb44,closeBracketsKeymap as _0x465a23,completionKeymap as _0x93bae7}from'@codemirror/autocomplete';import{html as _0x2dbb46}from'@codemirror/lang-html';import{markdown as _0x4e31ce}from'@codemirror/lang-markdown';function _0x7962(){const _0x4230a6=['Tab','Cmd-z','905100SNgVtv','16551dWymZo','state','doc','reconfigure','178VjjrLj','3649504uyBAfw','length','default','50bcJasb','focus','dark','223016GuNOLy','editable','html','push','Ctrl-Shift-z','addToHistory','toString','55764XafduA','syntaxLanguage','dispatch','lineWrapping','Ctrl-y','theme','Cmd-Shift-z','844319tUFaIF','Cmd-y','Ctrl-z','parent','433705wqTEUZ','destroy'];_0x7962=function(){return _0x4230a6;};return _0x7962();}function _0x3f9b(_0x59c7c4,_0x5cef27){const _0x79626=_0x7962();return _0x3f9b=function(_0x3f9b28,_0x5f497f){_0x3f9b28=_0x3f9b28-0x1b7;let _0x35d185=_0x79626[_0x3f9b28];return _0x35d185;},_0x3f9b(_0x59c7c4,_0x5cef27);}import{oneDark as _0xb47ca9}from'@codemirror/theme-one-dark';export function createCodeMirrorEditor(_0x21eea5){const _0x183a9a=_0x3f9b,_0xe896fa=[_0x459286[_0x183a9a(0x1d0)],_0x5bcb44(),_0x1b65b4(),_0x2e9bc9(),_0x1a9690(),_0x582af0(),_0x571cf2(),_0x2901c2(),_0x57131f(),_0x2417ef(),_0xa71fa4(),_0xdbcd50(),_0x2dd188(),_0x55a030(),_0x82d506(),_0x1bed35(_0x4d0cf5,{'fallback':!0x0})],_0x39e8ea=new _0x5d3bae();_0xe896fa[_0x183a9a(0x1c9)](_0x39e8ea['of'](_0x459286[_0x183a9a(0x1c7)]['of'](!0x0))),_0x183a9a(0x1c8)===_0x21eea5[_0x183a9a(0x1ce)]?_0xe896fa[_0x183a9a(0x1c9)](_0x2dbb46()):_0xe896fa[_0x183a9a(0x1c9)](_0x4e31ce());const _0x250b33=function(_0xf86b2c){const _0x160457=_0x183a9a;if(_0xf86b2c&&_0x160457(0x1c2)!==_0xf86b2c)return _0x160457(0x1c5)===_0xf86b2c?_0xb47ca9:_0xf86b2c;return null;}(_0x21eea5[_0x183a9a(0x1d2)]);_0x250b33&&_0xe896fa[_0x183a9a(0x1c9)](_0x250b33),_0xe896fa[_0x183a9a(0x1c9)](...getKeybindings());const _0xd1f463=new _0x459286({'extensions':_0xe896fa,'parent':_0x21eea5[_0x183a9a(0x1d7)]});return _0x17317a(_0xd1f463),{'focus':()=>{const _0x3539c7=_0x183a9a;_0xd1f463[_0x3539c7(0x1cf)]({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0xd1f463[_0x3539c7(0x1c4)]();},'getData':()=>_0xd1f463[_0x183a9a(0x1bc)][_0x183a9a(0x1bd)][_0x183a9a(0x1cc)](),'setData':_0x19f676=>{const _0xfaa213=_0x183a9a;_0xd1f463[_0xfaa213(0x1cf)]({'changes':{'from':0x0,'to':_0xd1f463[_0xfaa213(0x1bc)][_0xfaa213(0x1bd)][_0xfaa213(0x1c1)],'insert':_0x19f676},'annotations':_0x503190[_0xfaa213(0x1cb)]['of'](!0x1)});},'setReadOnly':_0x4ee419=>{const _0x5a5529=_0x183a9a;_0xd1f463[_0x5a5529(0x1cf)]({'effects':[_0x39e8ea[_0x5a5529(0x1be)](_0x459286[_0x5a5529(0x1c7)]['of'](!_0x4ee419))]});},'destroy':()=>{const _0x23892f=_0x183a9a;_0xd1f463[_0x23892f(0x1b7)]();},'instance':_0xd1f463};}export function getKeybindings(){const _0x37f41f=_0x3f9b;return[_0x152bb3['of']([..._0x465a23,..._0x150ce8,..._0x28cfd3,..._0xfb0f50,..._0x93bae7,{'key':_0x37f41f(0x1b8),'run':_0xc5c98,'shift':_0x370365,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x37f41f(0x1d1),'mac':_0x37f41f(0x1d5),'run':_0x44a42e,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x37f41f(0x1ca),'mac':_0x37f41f(0x1d3),'run':_0x44a42e,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x37f41f(0x1d6),'mac':_0x37f41f(0x1b9),'run':_0x5d4347,'preventDefault':!0x0,'stopPropagation':!0x0}])];}
|
package/src/utils/format.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xf6360c,_0x4b6102){var _0x8b4202=_0x1323,_0x13be9f=_0xf6360c();while(!![]){try{var _0x2f5d5a=-parseInt(_0x8b4202(0xe6))/0x1*(parseInt(_0x8b4202(0xf1))/0x2)+-parseInt(_0x8b4202(0xeb))/0x3+parseInt(_0x8b4202(0xec))/0x4*(-parseInt(_0x8b4202(0xea))/0x5)+parseInt(_0x8b4202(0xef))/0x6+-parseInt(_0x8b4202(0xee))/0x7*(parseInt(_0x8b4202(0xed))/0x8)+parseInt(_0x8b4202(0xe9))/0x9+parseInt(_0x8b4202(0xe7))/0xa*(parseInt(_0x8b4202(0xf0))/0xb);if(_0x2f5d5a===_0x4b6102)break;else _0x13be9f['push'](_0x13be9f['shift']());}catch(_0x35f55d){_0x13be9f['push'](_0x13be9f['shift']());}}}(_0x2160,0x645d1));import{formatHtml as _0x543655}from'ckeditor5/src/utils.js';function _0x1323(_0x317372,_0xd39ec4){var _0x21605a=_0x2160();return _0x1323=function(_0x13239e,_0x11782b){_0x13239e=_0x13239e-0xe6;var _0x3112a1=_0x21605a[_0x13239e];return _0x3112a1;},_0x1323(_0x317372,_0xd39ec4);}export function formatSource(_0x3185eb){return X(_0x3185eb)?_0x543655(_0x3185eb):_0x3185eb;}function _0x2160(){var _0xc3a582=['1286427JWgifb','4kNVkzJ','8SvQkCQ','4858497NYkZDe','4436958fkZrYV','11DjSHyA','83092PBCqGl','startsWith','14basxEQ','16012530yPAmgS','replace','4036554lWKbZY','3368195lohPjA'];_0x2160=function(){return _0xc3a582;};return _0x2160();}export function unformatSource(_0x36e76a){var _0x4697a4=_0x1323;return X(_0x36e76a[_0x4697a4(0xe8)](/^[\n\s]*/g,''))?_0x36e76a[_0x4697a4(0xe8)](/\s+/g,''):_0x36e76a;}function X(_0x54ffaf){var _0x5d4ece=_0x1323;return _0x54ffaf[_0x5d4ece(0xf2)]('<');}
|