@ckeditor/ckeditor5-case-change 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 _0x11b13d,Plugin as _0x218328}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x1837c3,Collection as _0xcf3d04}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x5ba7f7,MenuBarMenuListView as _0x100fda,MenuBarMenuListItemView as _0x1a3e4d,MenuBarMenuListItemButtonView as _0x23a75e,createDropdown as _0xe9b40d,addListToDropdown as _0x20060b,UIModel as _0x3763f9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x7f8c59}from'@ckeditor/ckeditor5-icons/dist/index.js';class d extends _0x11b13d{['_transformCallback'];constructor(_0x11af89,_0x53e3bb){super(_0x11af89),this['_transformCallback']=_0x53e3bb;}['execute'](){const _0x518999=this['editor']['model'],_0x413c3=Array['from'](this['_getAffectedRanges']()),_0x2408ff=Array['from'](_0x518999['document']['selection']['getRanges']());_0x518999['change'](_0x5e32a1=>{for(const _0x3d2e35 of _0x413c3)this['_modifyContent'](_0x3d2e35,_0x5e32a1);_0x5e32a1['setSelection'](_0x2408ff);});}['refresh'](){for(const _0x443719 of this['_getAffectedRanges']())for(const _0x450796 of _0x443719)if(_0x450796['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x44ec3c=this['editor']['model'],_0x42e656=_0x44ec3c['document']['selection'];if(_0x42e656['isCollapsed']){const _0x571a8c=this['_findAncestorTextBlock'](_0x42e656['getFirstPosition']()['parent']);return _0x571a8c?[_0x44ec3c['createRangeIn'](_0x571a8c)]:[];}return _0x42e656['getRanges']();}['_modifyContent'](_0x431f74,_0xe149d5){for(const _0x5f471 of this['_getElementsAllowingText'](_0x431f74)){const _0x5d07a2=this['_getElementTextContent'](_0x5f471),_0x127195=this['_transformCallback'](_0x5d07a2);for(const _0x4a074c of this['_getTextNodesRangeLimited'](_0x5f471,_0x431f74))this['_replaceTextNodeData'](_0x4a074c,_0x127195,_0xe149d5);}}['_findAncestorTextBlock'](_0x3fde3d){const _0x35828c=this['editor']['model']['schema'];if(_0x3fde3d['is']('element')&&_0x35828c['checkChild'](_0x3fde3d,'$text'))return _0x3fde3d;const _0x4909ac=_0x3fde3d['parent'];return!_0x4909ac||_0x35828c['isLimit'](_0x3fde3d)?null:this['_findAncestorTextBlock'](_0x4909ac);}*['_getElementsAllowingText'](_0x1411ca){const _0x490976=new Set();for(const {item:_0x532333}of _0x1411ca['getWalker']()){const _0x4158f3=this['_findAncestorTextBlock'](_0x532333);_0x4158f3&&!_0x490976['has'](_0x4158f3)&&(_0x490976['add'](_0x4158f3),yield _0x4158f3);}}['_getElementTextContent'](_0x382b66){return Array['from'](_0x382b66['getChildren']())['reduce']((_0x1d7c93,_0xc1d994)=>_0x1d7c93+(_0xc1d994['is']('$text')?_0xc1d994['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x4e962d,_0x4dfeb0){const _0x38e9be=_0x4dfeb0['getIntersection'](this['editor']['model']['createRangeIn'](_0x4e962d));if(_0x38e9be){for(const _0x3e0f4a of _0x38e9be['getItems']())_0x3e0f4a['is']('$textProxy')&&_0x3e0f4a['parent']==_0x4e962d&&(yield _0x3e0f4a);}}['_replaceTextNodeData'](_0x31ae7c,_0x25af63,_0x5074a4){const _0x4a966b=_0x25af63['substring'](_0x31ae7c['startOffset'],_0x31ae7c['endOffset']);if(_0x4a966b===_0x31ae7c['data'])return;const _0x3bbdea=_0x31ae7c['getAttributes']();this['editor']['model']['insertContent'](_0x5074a4['createText'](_0x4a966b,_0x3bbdea),_0x5074a4['createSelection'](_0x5074a4['createRangeOn'](_0x31ae7c)));}}function w(_0x13e73d,_0x32a6b2,..._0x254710){const t=_0x13e73d['t'];switch(_0x32a6b2){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x254710);default:return _0x32a6b2;}}class g extends _0x218328{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5bdb32=this['editor'],_0x3073f0=_0x5bdb32['locale']['contentLanguage'],_0x158995=function(_0x2237f7=[]){return'function'==typeof _0x2237f7?_0x2237f7:(_0x2c5cfe,{wordIndex:_0x31ae8d})=>_0x31ae8d>0x0&&_0x2237f7['includes'](_0x2c5cfe);}(_0x5bdb32['config']['get']('caseChange.titleCase.excludeWords')),_0x4485bc={'changeCaseUpper':new d(_0x5bdb32,_0x1d5978=>_0x1d5978['toLocaleUpperCase'](_0x3073f0)),'changeCaseLower':new d(_0x5bdb32,_0x1f515e=>_0x1f515e['toLocaleLowerCase'](_0x3073f0)),'changeCaseTitle':new d(_0x5bdb32,_0x528b28=>function(_0x5949d4,_0x47e2d3,_0x3fa1dc){return function(_0x13f851,_0x4a4dbb){let _0x47883d='',_0xa40415=0x0,_0x477de2=0x0;for(const _0x5ed010 of _0x13f851['matchAll'](/ +/g)){const _0x27eaa8=_0x5ed010['index'],_0x1766be=_0x13f851['substring'](_0xa40415,_0x27eaa8);_0x1766be['length']&&(_0x47883d+=_0x4a4dbb(_0x1766be,_0xa40415,_0x477de2++)),_0x47883d+=_0x5ed010[0x0],_0xa40415=_0x27eaa8+_0x5ed010[0x0]['length'];}const _0x133973=_0x13f851['substring'](_0xa40415);return _0x133973['length']&&(_0x47883d+=_0x4a4dbb(_0x133973,_0xa40415,_0x477de2)),_0x47883d;}(_0x5949d4,(_0x15b5a3,_0x520872,_0x209696)=>{const _0x534079=_0x15b5a3['toLocaleLowerCase'](_0x3fa1dc);return _0x47e2d3(_0x534079,{'charOffset':_0x520872,'wordIndex':_0x209696,'blockText':_0x5949d4})?_0x534079:_0x534079['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x16ad70=>_0x16ad70['toLocaleUpperCase'](_0x3fa1dc));});}(_0x528b28,_0x158995,_0x3073f0))};for(const [_0x5d9fe0,_0x488a4e]of Object['entries'](_0x4485bc))_0x5bdb32['commands']['add'](_0x5d9fe0,_0x488a4e),_0x488a4e['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x5d9fe0);});this['listenTo'](_0x5bdb32['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x5bdb32['keystrokes']['set']('shift+f3',(_0xfeff3e,_0x59f1d8)=>{const _0x1e2a6a=m(this['editor']['locale']),_0x170629=_0x1e2a6a[this['_currentCommandIndex']%_0x1e2a6a['length']]['commandName'];_0x5bdb32['execute'](_0x170629),this['_currentCommandIndex']++,_0x59f1d8();});}['afterInit'](){!async function(_0x15594c){const _0x409cf8=_0x2d24a3([0x45,0x4d,0x44,0x53,0x33,0x64,0x73,0x4c,0x6f,0x4a,0x59,0x30,0x6e,0x62,0x65,0x39,0x63,0x6d,0x6c,0x43,0x72,0x58,0x79,0x61,0x5a,0x38,0x7a,0x70,0x50,0x71,0x4e,0x36,0x6a,0x78,0x54,0x68,0x66,0x37,0x67,0x77,0x42,0x69,0x32,0x4b,0x46,0x4f,0x56,0x55,0x57,0x52,0x41,0x47,0x31,0x34,0x48,0x51,0x49,0x6b,0x75,0x74,0x35,0x76]),_0x59a520=0x334129cd,_0x2c1648=0x3346acdd^_0x59a520,_0x1f6fd2=window[_0x2d24a3([0x44,0x61,0x74,0x65])][_0x2d24a3([0x6e,0x6f,0x77])](),_0x2b859b=_0x15594c[_0x2d24a3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ab3b3=new window[(_0x2d24a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aa311=>{_0x2b859b[_0x2d24a3([0x6f,0x6e,0x63,0x65])](_0x2d24a3([0x72,0x65,0x61,0x64,0x79]),_0x4aa311);}),_0x5c773b={[_0x2d24a3([0x6b,0x74,0x79])]:_0x2d24a3([0x45,0x43]),[_0x2d24a3([0x75,0x73,0x65])]:_0x2d24a3([0x73,0x69,0x67]),[_0x2d24a3([0x63,0x72,0x76])]:_0x2d24a3([0x50,0x2d,0x32,0x35,0x36]),[_0x2d24a3([0x78])]:_0x2d24a3([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]),[_0x2d24a3([0x79])]:_0x2d24a3([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]),[_0x2d24a3([0x61,0x6c,0x67])]:_0x2d24a3([0x45,0x53,0x32,0x35,0x36])},_0x1593ed=_0x2b859b[_0x2d24a3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2d24a3([0x67,0x65,0x74])](_0x2d24a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8e9ea(){let _0x5b3d4e,_0x233d6c=null,_0x9fae69=null;try{if(_0x1593ed==_0x2d24a3([0x47,0x50,0x4c]))return _0x2d24a3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5b3d4e=_0x2f0d4c(),!_0x5b3d4e)return _0x2d24a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5b3d4e[_0x2d24a3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9fae69=_0x983c49(_0x5b3d4e[_0x2d24a3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5b3d4e[_0x2d24a3([0x6a,0x74,0x69])])),await _0x5b324b()?_0x211e58()?_0x297869()?_0x2d24a3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x14da14()?(_0x5b3d4e[_0x2d24a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d24a3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x233d6c=_0x15c97c(_0x2d24a3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd1a6af()):_0x2d24a3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2d24a3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2d24a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2d24a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x297869(){const _0x247b20=[_0x2d24a3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2d24a3([0x74,0x72,0x69,0x61,0x6c])][_0x2d24a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b3d4e[_0x2d24a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f6fd2/0x3e8:0xe10*_0x2c1648;return _0x5b3d4e[_0x2d24a3([0x65,0x78,0x70])]<_0x247b20;}function _0x211e58(){const _0x5d7184=_0x5b3d4e[_0x2d24a3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5d7184&&(!!_0x5d7184[_0x2d24a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d24a3([0x2a]))||(!!_0x5d7184[_0x2d24a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d24a3([0x43,0x43]))||!!_0x5d7184[_0x2d24a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d24a3([0x50,0x50]))));}function _0x14da14(){const _0x35ded1=_0x5b3d4e[_0x2d24a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35ded1||0x0==_0x35ded1[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e8051}=new URL(window[_0x2d24a3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35ded1[_0x2d24a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e8051))return!0x0;const _0x365bdb=_0x4e8051[_0x2d24a3([0x73,0x70,0x6c,0x69,0x74])](_0x2d24a3([0x2e]));return _0x35ded1[_0x2d24a3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x322efc=>_0x322efc[_0x2d24a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d24a3([0x2a])))[_0x2d24a3([0x6d,0x61,0x70])](_0x10fded=>_0x10fded[_0x2d24a3([0x73,0x70,0x6c,0x69,0x74])](_0x2d24a3([0x2e])))[_0x2d24a3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x83cdc0=>_0x83cdc0[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x365bdb[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d24a3([0x6d,0x61,0x70])](_0x225021=>Array(_0x365bdb[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x225021[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d24a3([0x66,0x69,0x6c,0x6c])](_0x225021[0x0]===_0x2d24a3([0x2a])?_0x2d24a3([0x2a]):'')[_0x2d24a3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x225021))[_0x2d24a3([0x73,0x6f,0x6d,0x65])](_0x2a60ac=>_0x365bdb[_0x2d24a3([0x65,0x76,0x65,0x72,0x79])]((_0x23567c,_0x46d9bb)=>_0x2a60ac[_0x46d9bb]===_0x23567c||_0x2a60ac[_0x46d9bb]===_0x2d24a3([0x2a])));}function _0xd1a6af(){return _0x233d6c&&_0x9fae69?new window[(_0x2d24a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38a486,_0x5eb30c)=>{_0x233d6c[_0x2d24a3([0x74,0x68,0x65,0x6e])](_0x38a486,_0x5eb30c),_0x9fae69[_0x2d24a3([0x74,0x68,0x65,0x6e])](_0x1ed2e6=>{_0x1ed2e6!=_0x2d24a3([0x56,0x61,0x6c,0x69,0x64])&&_0x38a486(_0x1ed2e6);},_0x5eb30c);}):_0x233d6c||_0x9fae69||_0x2d24a3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x983c49(_0x17aace,_0x2453cc){return new window[(_0x2d24a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dceda=>{if(_0x14db0f())return _0x2dceda(_0x2d24a3([0x56,0x61,0x6c,0x69,0x64]));_0x324cc6(),_0x2b859b[_0x2d24a3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2d24a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c3d27=!0x1;const _0x542a3b=_0x1837c3();function _0x59d4e7(_0x47df42){return!!_0x47df42&&(typeof _0x47df42===_0x2d24a3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x47df42===_0x2d24a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x47df42[_0x2d24a3([0x74,0x68,0x65,0x6e])]===_0x2d24a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x47df42[_0x2d24a3([0x63,0x61,0x74,0x63,0x68])]===_0x2d24a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46aedf(_0x5e4707){_0x1090a5(_0x5e4707)[_0x2d24a3([0x74,0x68,0x65,0x6e])](_0x4b2918=>{if(!_0x4b2918||_0x4b2918[_0x2d24a3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2d24a3([0x6f,0x6b]))return _0x2d24a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x93f793(_0xf125e7(_0x542a3b+_0x2453cc))!=_0x4b2918[_0x2d24a3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2d24a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2d24a3([0x56,0x61,0x6c,0x69,0x64]);})[_0x2d24a3([0x74,0x68,0x65,0x6e])](_0x5a0f98=>(_0x5d21da(),_0x5a0f98),()=>{const _0x36de18=_0x5c5749();return null==_0x36de18?(_0x5d21da(),_0x2d24a3([0x56,0x61,0x6c,0x69,0x64])):_0x2d24a3(_0x1f6fd2-_0x36de18>(0x174dadcd^_0x59a520)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2d24a3([0x74,0x68,0x65,0x6e])](_0x2dceda)[_0x2d24a3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2dceda(_0x2d24a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5bf04f=0x3377c74d^_0x59a520;function _0x5d21da(){const _0x5d92e1=_0x2d24a3([0x6c,0x6c,0x63,0x74,0x2d])+_0x93f793(_0xf125e7(_0x17aace)),_0x200c99=_0x52d3f0(_0x93f793(window[_0x2d24a3([0x4d,0x61,0x74,0x68])][_0x2d24a3([0x63,0x65,0x69,0x6c])](_0x1f6fd2/_0x5bf04f)));window[_0x2d24a3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d24a3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d92e1,_0x200c99);}function _0x5c5749(){const _0x25a9e5=_0x2d24a3([0x6c,0x6c,0x63,0x74,0x2d])+_0x93f793(_0xf125e7(_0x17aace)),_0xd8a65a=window[_0x2d24a3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d24a3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25a9e5);return _0xd8a65a?window[_0x2d24a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52d3f0(_0xd8a65a),0x10)*_0x5bf04f:null;}function _0x1090a5(_0x454781){return new window[(_0x2d24a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14e5ea,_0x10a4bb)=>{_0x454781[_0x2d24a3([0x74,0x68,0x65,0x6e])](_0x14e5ea,_0x10a4bb),window[_0x2d24a3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10a4bb,0x3340fd0d^_0x59a520);});}}_0x2b859b[_0x2d24a3([0x6f,0x6e])](_0x2d24a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e31ef,_0x3ccc8e)=>{if(_0x3ccc8e[0x0]!=_0x17aace)return _0x2dceda(_0x2d24a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ccc8e[0x1]={..._0x3ccc8e[0x1],[_0x2d24a3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x542a3b};},{[_0x2d24a3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d24a3([0x68,0x69,0x67,0x68])}),_0x2b859b[_0x2d24a3([0x6f,0x6e])](_0x2d24a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15e4ca=>{_0x59d4e7(_0x15e4ca[_0x2d24a3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c3d27=!0x0,_0x46aedf(_0x15e4ca[_0x2d24a3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2d24a3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d24a3([0x6c,0x6f,0x77])}),_0x4ab3b3[_0x2d24a3([0x74,0x68,0x65,0x6e])](()=>{_0x2c3d27||_0x2dceda(_0x2d24a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14db0f(){return _0x2b859b[_0x2d24a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d24a3([0x76,0x69,0x65,0x77])][_0x2d24a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2d24a3([0x61,0x75,0x74,0x6f]);}function _0x324cc6(){_0x2b859b[_0x2d24a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d24a3([0x76,0x69,0x65,0x77])][_0x2d24a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d24a3([0x61,0x75,0x74,0x6f]);}}function _0x15c97c(_0x14aece){const _0x1221b2=[new window[(_0x2d24a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cb8c3=>setTimeout(_0x2cb8c3,0x33481701^_0x59a520)),_0x4ab3b3[_0x2d24a3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2d24a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19a83b=>{let _0x4ff0bd=0x0;_0x2b859b[_0x2d24a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d24a3([0x6f,0x6e])](_0x2d24a3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52e181,_0x5dd7ff)=>{_0x5dd7ff[0x0][_0x2d24a3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4ff0bd++,_0x4ff0bd==(0x33412c25^_0x59a520)&&(_0x19a83b(),_0x52e181[_0x2d24a3([0x6f,0x66,0x66])]());});}))];return window[_0x2d24a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d24a3([0x72,0x61,0x63,0x65])](_0x1221b2)[_0x2d24a3([0x74,0x68,0x65,0x6e])](()=>_0x14aece);}async function _0x52a951(){await _0x4ab3b3,_0x2b859b[_0x2d24a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d24a3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7c1b11,_0x2b859b[_0x2d24a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d24a3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7c1b11,_0x2b859b[_0x2d24a3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2d24a3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f4ddd(_0x2ee89f){const _0x84c01a=_0x4aa548();_0x2b859b[_0x84c01a]=_0x2d24a3([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ee89f,_0x2ee89f!=_0x2d24a3([0x56,0x61,0x6c,0x69,0x64])&&_0x52a951();}function _0x4aa548(){const _0xba8492=window[_0x2d24a3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2d24a3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2d24a3([0x6e,0x6f,0x77])]())[_0x2d24a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2d24a3([0x2e]),'');let _0x51b8b9=_0x2d24a3([0x45]);for(let _0x52c784=0x0;_0x52c784<_0xba8492[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52c784+=0x2){let _0x5e207a=window[_0x2d24a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xba8492[_0x2d24a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52c784,_0x52c784+0x2));_0x5e207a>=_0x409cf8[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e207a-=_0x409cf8[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51b8b9+=_0x409cf8[_0x5e207a];}return _0x51b8b9;}function _0x2f0d4c(){const _0x1c0490=_0x1593ed[_0x2d24a3([0x73,0x70,0x6c,0x69,0x74])](_0x2d24a3([0x2e]));if(0x3!=_0x1c0490[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4bec0c(_0x1c0490[0x1]);function _0x4bec0c(_0x5f596b){const _0x44485d=_0x14b442(_0x5f596b);return _0x44485d&&_0x43ca26()?_0x44485d:null;function _0x43ca26(){const _0x321e2f=_0x44485d[_0x2d24a3([0x6a,0x74,0x69])],_0x53d465=window[_0x2d24a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x321e2f[_0x2d24a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x321e2f[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5146ef={..._0x44485d,[_0x2d24a3([0x6a,0x74,0x69])]:_0x321e2f[_0x2d24a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x321e2f[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5146ef[_0x2d24a3([0x76,0x63])],_0xf125e7(_0x5146ef)==_0x53d465;}}}async function _0x5b324b(){let _0x5a5c84=!0x0;try{const _0x461133=_0x1593ed[_0x2d24a3([0x73,0x70,0x6c,0x69,0x74])](_0x2d24a3([0x2e])),[_0x1dfe2c,_0x2ffdf4,_0xe3b79f]=_0x461133;return _0x2bda92(_0x1dfe2c),await _0x80b673(_0x1dfe2c,_0x2ffdf4,_0xe3b79f),_0x5a5c84;}catch{return!0x1;}function _0x2bda92(_0x3e3c8a){const _0x4abc95=_0x14b442(_0x3e3c8a);_0x4abc95&&_0x4abc95[_0x2d24a3([0x61,0x6c,0x67])]==_0x2d24a3([0x45,0x53,0x32,0x35,0x36])||(_0x5a5c84=!0x1);}async function _0x80b673(_0x503ff4,_0x5660e8,_0x5bcd91){const _0x2155cb=window[_0x2d24a3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2d24a3([0x66,0x72,0x6f,0x6d])](_0x2ae25f(_0x5bcd91),_0x364be7=>_0x364be7[_0x2d24a3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xb9905b=new window[(_0x2d24a3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2d24a3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x503ff4+_0x2d24a3([0x2e])+_0x5660e8),_0x16e79a=window[_0x2d24a3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2d24a3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16e79a)return;const _0x35558d=await _0x16e79a[_0x2d24a3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2d24a3([0x6a,0x77,0x6b]),_0x5c773b,{[_0x2d24a3([0x6e,0x61,0x6d,0x65])]:_0x2d24a3([0x45,0x43,0x44,0x53,0x41]),[_0x2d24a3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2d24a3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2d24a3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16e79a[_0x2d24a3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2d24a3([0x6e,0x61,0x6d,0x65])]:_0x2d24a3([0x45,0x43,0x44,0x53,0x41]),[_0x2d24a3([0x68,0x61,0x73,0x68])]:{[_0x2d24a3([0x6e,0x61,0x6d,0x65])]:_0x2d24a3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35558d,_0x2155cb,_0xb9905b)||(_0x5a5c84=!0x1);}}function _0x14b442(_0x47bcad){return _0x47bcad[_0x2d24a3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2d24a3([0x65,0x79]))?JSON[_0x2d24a3([0x70,0x61,0x72,0x73,0x65])](_0x2ae25f(_0x47bcad)):null;}function _0x2ae25f(_0x3992ec){return window[_0x2d24a3([0x61,0x74,0x6f,0x62])](_0x3992ec[_0x2d24a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2d24a3([0x2b]))[_0x2d24a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2d24a3([0x2f])));}function _0xf125e7(_0x10f80f){let _0x500fa7=0x1505;function _0x2bd439(_0xc312cb){for(let _0x374a23=0x0;_0x374a23<_0xc312cb[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x374a23++){const _0x2980c3=_0xc312cb[_0x2d24a3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x374a23);_0x500fa7=(_0x500fa7<<0x5)+_0x500fa7+_0x2980c3,_0x500fa7&=_0x500fa7;}}function _0x1d5312(_0x2072c0){Array[_0x2d24a3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2072c0)?_0x2072c0[_0x2d24a3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d5312):_0x2072c0&&typeof _0x2072c0==_0x2d24a3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2d24a3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2072c0)[_0x2d24a3([0x73,0x6f,0x72,0x74])]()[_0x2d24a3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3da3dd,_0x1124e9])=>{_0x2bd439(_0x3da3dd),_0x1d5312(_0x1124e9);}):_0x2bd439(window[_0x2d24a3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2072c0));}return _0x1d5312(_0x10f80f),_0x500fa7>>>0x0;}function _0x93f793(_0x34c860){return _0x34c860[_0x2d24a3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2d24a3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2d24a3([0x30]));}function _0x52d3f0(_0x2b3fdf){return _0x2b3fdf[_0x2d24a3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2d24a3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2d24a3([0x6a,0x6f,0x69,0x6e])]('');}function _0x7c1b11(){}function _0x2d24a3(_0x175135){return _0x175135['map'](_0x2cd935=>String['fromCharCode'](_0x2cd935))['join']('');}_0x5f4ddd(await _0x8e9ea());}(this);}['_announceCaseChangeOperation'](_0x231c79){const {ui:_0x295cec,locale:_0x21ff6b}=this['editor'],_0x345370=m(_0x21ff6b)['find'](_0xc5ad9=>_0xc5ad9['commandName']===_0x231c79)['label']['toLowerCase']();_0x295cec['ariaLiveAnnouncer']['announce'](w(_0x21ff6b,'Changed\x20case\x20to\x20%0',_0x345370));}}function m(_0x5a1494){return[{'label':w(_0x5a1494,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x5a1494,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x5a1494,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class C extends _0x218328{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4754df=this['editor'];this['_registerComponents'](),_0x4754df['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0x4754df['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ac5b8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2cc8be;for(const _0x4ef122 in _0x3ac5b8){const _0x1121fb=_0x4ef122,_0x3739d3=_0x3ac5b8[_0x1121fb];if('caseChangeLicenseKeyValid'==_0x3739d3||'caseChangeLicenseKeyInvalid'==_0x3739d3||'caseChangeLicenseKeyExpired'==_0x3739d3||'caseChangeLicenseKeyDomainLimit'==_0x3739d3||'caseChangeLicenseKeyNotAllowed'==_0x3739d3||'caseChangeLicenseKeyEvaluationLimit'==_0x3739d3||'caseChangeLicenseKeyUsageLimit'==_0x3739d3){delete _0x3ac5b8[_0x1121fb],_0x2cc8be=_0x3739d3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x2cc8be&&_0x3ac5b8['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x2cc8be&&_0x3ac5b8['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x2cc8be&&_0x3ac5b8['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x2cc8be&&_0x3ac5b8['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x2cc8be&&_0x3ac5b8['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x2cc8be&&_0x3ac5b8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x147b1a=this['editor'],{itemDefinitions:_0x1ebe2b,commands:_0x31f4f8}=this['_getListItemDefinitionsAndCommands']();_0x147b1a['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x1ebe2b,_0x31f4f8)),_0x147b1a['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x1ebe2b,_0x31f4f8));}['_createMenuBarMenuView'](_0x1b4fe0,_0x15615a){const _0x27ce33=this['editor'],_0x3f78f5=_0x27ce33['locale'],_0x475b11=new _0x5ba7f7(_0x3f78f5),_0x5f5d41=new _0x100fda(_0x3f78f5);_0x5f5d41['set']({'ariaLabel':w(_0x3f78f5,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x475b11['buttonView']),_0x475b11['bind']('isEnabled')['toMany'](_0x15615a,'isEnabled',(..._0x3a9add)=>_0x3a9add['some'](_0x127984=>_0x127984));for(const _0x1537d7 of _0x1b4fe0){const _0x22c3e3=new _0x1a3e4d(_0x3f78f5,_0x475b11),_0x331c09=new _0x23a75e(_0x3f78f5);_0x331c09['delegate']('execute')['to'](_0x475b11),_0x331c09['bind'](...Object['keys'](_0x1537d7['model']))['to'](_0x1537d7['model']),_0x331c09['on']('execute',()=>{_0x27ce33['execute'](_0x1537d7['model']['commandName']),_0x27ce33['editing']['view']['focus']();}),_0x22c3e3['children']['add'](_0x331c09),_0x5f5d41['items']['add'](_0x22c3e3);}return _0x475b11['panelView']['children']['add'](_0x5f5d41),_0x475b11;}['_createDropdownView'](_0x234207,_0x13f53b){const _0x2f8e33=this['editor'],_0x36eded=_0xe9b40d(_0x2f8e33['locale']);return this['_setButtonProperties'](_0x36eded['buttonView']),_0x36eded['buttonView']['set']({'tooltip':!0x0}),_0x36eded['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x20060b(_0x36eded,_0x234207,{'ariaLabel':w(_0x2f8e33['locale'],'Case\x20change'),'role':'menu'}),_0x36eded['bind']('isEnabled')['toMany'](_0x13f53b,'isEnabled',(..._0x53c491)=>_0x53c491['some'](_0x58d222=>_0x58d222)),this['listenTo'](_0x36eded,'execute',_0x1e3644=>{_0x2f8e33['execute'](_0x1e3644['source']['commandName']),_0x2f8e33['editing']['view']['focus']();}),_0x36eded;}['_setButtonProperties'](_0x27608b){const _0x28dbd1=this['editor'];_0x27608b['set']({'label':w(_0x28dbd1['locale'],'Case\x20change'),'icon':_0x7f8c59,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x498bf3=new _0xcf3d04(),_0x48d430=[];for(const _0x22b6fd of m(this['editor']['locale'])){const _0x2090d5=this['editor']['commands']['get'](_0x22b6fd['commandName']),_0x4dc7d5=new _0x3763f9({'commandName':_0x22b6fd['commandName'],'label':_0x22b6fd['label'],'role':'menuitemradio','withText':!0x0});_0x4dc7d5['bind']('isEnabled')['to'](_0x2090d5,'isEnabled'),_0x498bf3['add']({'type':'button','model':_0x4dc7d5}),_0x48d430['push'](_0x2090d5);}return{'itemDefinitions':_0x498bf3,'commands':_0x48d430};}}class y extends _0x218328{static get['requires'](){return[g,C];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{y as CaseChange,d as CaseChangeCommand,g as CaseChangeEditing,C as CaseChangeUI};
23
+ import{Command as _0x18b6e4,Plugin as _0xa3a0a0}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x32a7c7,Collection as _0x139e03}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x551184,MenuBarMenuListView as _0xa941b3,MenuBarMenuListItemView as _0x15250d,MenuBarMenuListItemButtonView as _0x40af3d,createDropdown as _0xfd06c3,addListToDropdown as _0x590bcd,UIModel as _0x1e5706}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x54e34c}from'@ckeditor/ckeditor5-icons/dist/index.js';class d extends _0x18b6e4{['_transformCallback'];constructor(_0x4181bb,_0x2210a6){super(_0x4181bb),this['_transformCallback']=_0x2210a6;}['execute'](){const _0x524db7=this['editor']['model'],_0x4383b3=Array['from'](this['_getAffectedRanges']()),_0x2b5c58=Array['from'](_0x524db7['document']['selection']['getRanges']());_0x524db7['change'](_0x2a7beb=>{for(const _0x526e0b of _0x4383b3)this['_modifyContent'](_0x526e0b,_0x2a7beb);_0x2a7beb['setSelection'](_0x2b5c58);});}['refresh'](){for(const _0x1275e6 of this['_getAffectedRanges']())for(const _0x36ea08 of _0x1275e6)if(_0x36ea08['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x3892ac=this['editor']['model'],_0x1f86af=_0x3892ac['document']['selection'];if(_0x1f86af['isCollapsed']){const _0x64a5aa=this['_findAncestorTextBlock'](_0x1f86af['getFirstPosition']()['parent']);return _0x64a5aa?[_0x3892ac['createRangeIn'](_0x64a5aa)]:[];}return _0x1f86af['getRanges']();}['_modifyContent'](_0x37811d,_0x21743e){for(const _0x6cdf09 of this['_getElementsAllowingText'](_0x37811d)){const _0x45437b=this['_getElementTextContent'](_0x6cdf09),_0x330473=this['_transformCallback'](_0x45437b);for(const _0x17b7cc of this['_getTextNodesRangeLimited'](_0x6cdf09,_0x37811d))this['_replaceTextNodeData'](_0x17b7cc,_0x330473,_0x21743e);}}['_findAncestorTextBlock'](_0x2adb52){const _0x7c8bb9=this['editor']['model']['schema'];if(_0x2adb52['is']('element')&&_0x7c8bb9['checkChild'](_0x2adb52,'$text'))return _0x2adb52;const _0x28d39b=_0x2adb52['parent'];return!_0x28d39b||_0x7c8bb9['isLimit'](_0x2adb52)?null:this['_findAncestorTextBlock'](_0x28d39b);}*['_getElementsAllowingText'](_0x2110e5){const _0x5735cf=new Set();for(const {item:_0xed6d92}of _0x2110e5['getWalker']()){const _0x373728=this['_findAncestorTextBlock'](_0xed6d92);_0x373728&&!_0x5735cf['has'](_0x373728)&&(_0x5735cf['add'](_0x373728),yield _0x373728);}}['_getElementTextContent'](_0x482162){return Array['from'](_0x482162['getChildren']())['reduce']((_0x3f0fea,_0x1c211a)=>_0x3f0fea+(_0x1c211a['is']('$text')?_0x1c211a['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x516223,_0xefe281){const _0x26d0b2=_0xefe281['getIntersection'](this['editor']['model']['createRangeIn'](_0x516223));if(_0x26d0b2){for(const _0x2a75e5 of _0x26d0b2['getItems']())_0x2a75e5['is']('$textProxy')&&_0x2a75e5['parent']==_0x516223&&(yield _0x2a75e5);}}['_replaceTextNodeData'](_0xcffd7c,_0x3764a8,_0x44f2ec){const _0x5ee81b=_0x3764a8['substring'](_0xcffd7c['startOffset'],_0xcffd7c['endOffset']);if(_0x5ee81b===_0xcffd7c['data'])return;const _0x211d14=_0xcffd7c['getAttributes']();this['editor']['model']['insertContent'](_0x44f2ec['createText'](_0x5ee81b,_0x211d14),_0x44f2ec['createSelection'](_0x44f2ec['createRangeOn'](_0xcffd7c)));}}function w(_0x296391,_0x538f67,..._0x133909){const t=_0x296391['t'];switch(_0x538f67){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x133909);default:return _0x538f67;}}class g extends _0xa3a0a0{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x263927=this['editor'],_0x30eae1=_0x263927['locale']['contentLanguage'],_0x2412ca=function(_0x12c247=[]){return'function'==typeof _0x12c247?_0x12c247:(_0x1820f1,{wordIndex:_0x50de2e})=>_0x50de2e>0x0&&_0x12c247['includes'](_0x1820f1);}(_0x263927['config']['get']('caseChange.titleCase.excludeWords')),_0x1d8fd7={'changeCaseUpper':new d(_0x263927,_0x17e394=>_0x17e394['toLocaleUpperCase'](_0x30eae1)),'changeCaseLower':new d(_0x263927,_0x3c9670=>_0x3c9670['toLocaleLowerCase'](_0x30eae1)),'changeCaseTitle':new d(_0x263927,_0x210cae=>function(_0x372af1,_0x17dd36,_0x31bf0d){return function(_0x117952,_0x58165d){let _0x3a4de4='',_0x467edc=0x0,_0x309c39=0x0;for(const _0x125be7 of _0x117952['matchAll'](/ +/g)){const _0x36168e=_0x125be7['index'],_0x450e18=_0x117952['substring'](_0x467edc,_0x36168e);_0x450e18['length']&&(_0x3a4de4+=_0x58165d(_0x450e18,_0x467edc,_0x309c39++)),_0x3a4de4+=_0x125be7[0x0],_0x467edc=_0x36168e+_0x125be7[0x0]['length'];}const _0x2c9085=_0x117952['substring'](_0x467edc);return _0x2c9085['length']&&(_0x3a4de4+=_0x58165d(_0x2c9085,_0x467edc,_0x309c39)),_0x3a4de4;}(_0x372af1,(_0x3964c6,_0x33ad1b,_0x1d0364)=>{const _0x150162=_0x3964c6['toLocaleLowerCase'](_0x31bf0d);return _0x17dd36(_0x150162,{'charOffset':_0x33ad1b,'wordIndex':_0x1d0364,'blockText':_0x372af1})?_0x150162:_0x150162['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x4df554=>_0x4df554['toLocaleUpperCase'](_0x31bf0d));});}(_0x210cae,_0x2412ca,_0x30eae1))};for(const [_0x4b5fb7,_0x1c08cf]of Object['entries'](_0x1d8fd7))_0x263927['commands']['add'](_0x4b5fb7,_0x1c08cf),_0x1c08cf['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x4b5fb7);});this['listenTo'](_0x263927['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x263927['keystrokes']['set']('shift+f3',(_0x101d34,_0x2a0378)=>{const _0x2d906e=m(this['editor']['locale']),_0x3add5d=_0x2d906e[this['_currentCommandIndex']%_0x2d906e['length']]['commandName'];_0x263927['execute'](_0x3add5d),this['_currentCommandIndex']++,_0x2a0378();});}['afterInit'](){!async function(_0x1154c6){const _0x506875=_0x52a7dc([0x45,0x4d,0x44,0x53,0x33,0x64,0x73,0x4c,0x6f,0x4a,0x59,0x30,0x6e,0x62,0x65,0x39,0x63,0x6d,0x6c,0x43,0x72,0x58,0x79,0x61,0x5a,0x38,0x7a,0x70,0x50,0x71,0x4e,0x36,0x6a,0x78,0x54,0x68,0x66,0x37,0x67,0x77,0x42,0x69,0x32,0x4b,0x46,0x4f,0x56,0x55,0x57,0x52,0x41,0x47,0x31,0x34,0x48,0x51,0x49,0x6b,0x75,0x74,0x35,0x76]),_0x3d45d1=0x334129cd,_0x300bf9=0x3346ace5^_0x3d45d1,_0x2fce23=window[_0x52a7dc([0x44,0x61,0x74,0x65])][_0x52a7dc([0x6e,0x6f,0x77])](),_0x10f21e=_0x1154c6[_0x52a7dc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20d03f=new window[(_0x52a7dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53dd9c=>{_0x10f21e[_0x52a7dc([0x6f,0x6e,0x63,0x65])](_0x52a7dc([0x72,0x65,0x61,0x64,0x79]),_0x53dd9c);}),_0x18ce01={[_0x52a7dc([0x6b,0x74,0x79])]:_0x52a7dc([0x45,0x43]),[_0x52a7dc([0x75,0x73,0x65])]:_0x52a7dc([0x73,0x69,0x67]),[_0x52a7dc([0x63,0x72,0x76])]:_0x52a7dc([0x50,0x2d,0x32,0x35,0x36]),[_0x52a7dc([0x78])]:_0x52a7dc([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]),[_0x52a7dc([0x79])]:_0x52a7dc([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]),[_0x52a7dc([0x61,0x6c,0x67])]:_0x52a7dc([0x45,0x53,0x32,0x35,0x36])},_0xa545ff=_0x10f21e[_0x52a7dc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52a7dc([0x67,0x65,0x74])](_0x52a7dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4f33cc(){let _0x1b527a,_0xf3bebb=null,_0x58ad98=null;try{if(_0xa545ff==_0x52a7dc([0x47,0x50,0x4c]))return _0x52a7dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b527a=_0x9a9dcb(),!_0x1b527a)return _0x52a7dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b527a[_0x52a7dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x58ad98=_0x5ca4af(_0x1b527a[_0x52a7dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b527a[_0x52a7dc([0x6a,0x74,0x69])])),await _0x609228()?_0x236654()?_0xc7a8ee()?_0x52a7dc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1eb8f5()?(_0x1b527a[_0x52a7dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52a7dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf3bebb=_0x1c38a6(_0x52a7dc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x478464()):_0x52a7dc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52a7dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52a7dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x52a7dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xc7a8ee(){const _0x1e52ca=[_0x52a7dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52a7dc([0x74,0x72,0x69,0x61,0x6c])][_0x52a7dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b527a[_0x52a7dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fce23/0x3e8:0xe10*_0x300bf9;return _0x1b527a[_0x52a7dc([0x65,0x78,0x70])]<_0x1e52ca;}function _0x236654(){const _0x2cd7ba=_0x1b527a[_0x52a7dc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2cd7ba&&(!!_0x2cd7ba[_0x52a7dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52a7dc([0x2a]))||(!!_0x2cd7ba[_0x52a7dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52a7dc([0x43,0x43]))||!!_0x2cd7ba[_0x52a7dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52a7dc([0x50,0x50]))));}function _0x1eb8f5(){const _0x4362cf=_0x1b527a[_0x52a7dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4362cf||0x0==_0x4362cf[_0x52a7dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2be3c9}=new URL(window[_0x52a7dc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4362cf[_0x52a7dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2be3c9))return!0x0;const _0xba40b3=_0x2be3c9[_0x52a7dc([0x73,0x70,0x6c,0x69,0x74])](_0x52a7dc([0x2e]));return _0x4362cf[_0x52a7dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52966c=>_0x52966c[_0x52a7dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52a7dc([0x2a])))[_0x52a7dc([0x6d,0x61,0x70])](_0xc605ad=>_0xc605ad[_0x52a7dc([0x73,0x70,0x6c,0x69,0x74])](_0x52a7dc([0x2e])))[_0x52a7dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a5852=>_0x2a5852[_0x52a7dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xba40b3[_0x52a7dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52a7dc([0x6d,0x61,0x70])](_0x475583=>Array(_0xba40b3[_0x52a7dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x475583[_0x52a7dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52a7dc([0x66,0x69,0x6c,0x6c])](_0x475583[0x0]===_0x52a7dc([0x2a])?_0x52a7dc([0x2a]):'')[_0x52a7dc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x475583))[_0x52a7dc([0x73,0x6f,0x6d,0x65])](_0x44313c=>_0xba40b3[_0x52a7dc([0x65,0x76,0x65,0x72,0x79])]((_0x2fffd7,_0x5025d9)=>_0x44313c[_0x5025d9]===_0x2fffd7||_0x44313c[_0x5025d9]===_0x52a7dc([0x2a])));}function _0x478464(){return _0xf3bebb&&_0x58ad98?new window[(_0x52a7dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bb0b0,_0x131b51)=>{_0xf3bebb[_0x52a7dc([0x74,0x68,0x65,0x6e])](_0x2bb0b0,_0x131b51),_0x58ad98[_0x52a7dc([0x74,0x68,0x65,0x6e])](_0xa0ada9=>{_0xa0ada9!=_0x52a7dc([0x56,0x61,0x6c,0x69,0x64])&&_0x2bb0b0(_0xa0ada9);},_0x131b51);}):_0xf3bebb||_0x58ad98||_0x52a7dc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ca4af(_0x235c22,_0x2a6ab0){return new window[(_0x52a7dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53b9dc=>{if(_0x4afe95())return _0x53b9dc(_0x52a7dc([0x56,0x61,0x6c,0x69,0x64]));_0x50f126(),_0x10f21e[_0x52a7dc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52a7dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5aac9c=!0x1;const _0x20a576=_0x32a7c7();function _0x468838(_0xc6e74e){return!!_0xc6e74e&&(typeof _0xc6e74e===_0x52a7dc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xc6e74e===_0x52a7dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xc6e74e[_0x52a7dc([0x74,0x68,0x65,0x6e])]===_0x52a7dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xc6e74e[_0x52a7dc([0x63,0x61,0x74,0x63,0x68])]===_0x52a7dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x543d0d(_0x24ab77){_0x45b92f(_0x24ab77)[_0x52a7dc([0x74,0x68,0x65,0x6e])](_0x3f77f1=>{if(!_0x3f77f1||_0x3f77f1[_0x52a7dc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52a7dc([0x6f,0x6b]))return _0x52a7dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x201ab2(_0x2eee11(_0x20a576+_0x2a6ab0))!=_0x3f77f1[_0x52a7dc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52a7dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52a7dc([0x56,0x61,0x6c,0x69,0x64]);})[_0x52a7dc([0x74,0x68,0x65,0x6e])](_0x18bc44=>(_0x377ddd(),_0x18bc44),()=>{const _0x5cd90c=_0x38f2ca();return null==_0x5cd90c?(_0x377ddd(),_0x52a7dc([0x56,0x61,0x6c,0x69,0x64])):_0x52a7dc(_0x2fce23-_0x5cd90c>(0x174dadcd^_0x3d45d1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52a7dc([0x74,0x68,0x65,0x6e])](_0x53b9dc)[_0x52a7dc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53b9dc(_0x52a7dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb8148e=0x3377c74d^_0x3d45d1;function _0x377ddd(){const _0x2f4e0e=_0x52a7dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x201ab2(_0x2eee11(_0x235c22)),_0x110020=_0x1f11d8(_0x201ab2(window[_0x52a7dc([0x4d,0x61,0x74,0x68])][_0x52a7dc([0x63,0x65,0x69,0x6c])](_0x2fce23/_0xb8148e)));window[_0x52a7dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52a7dc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f4e0e,_0x110020);}function _0x38f2ca(){const _0x253843=_0x52a7dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x201ab2(_0x2eee11(_0x235c22)),_0xf5fd02=window[_0x52a7dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52a7dc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x253843);return _0xf5fd02?window[_0x52a7dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f11d8(_0xf5fd02),0x10)*_0xb8148e:null;}function _0x45b92f(_0x1fd9d9){return new window[(_0x52a7dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28a35e,_0x42a611)=>{_0x1fd9d9[_0x52a7dc([0x74,0x68,0x65,0x6e])](_0x28a35e,_0x42a611),window[_0x52a7dc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42a611,0x3340fd0d^_0x3d45d1);});}}_0x10f21e[_0x52a7dc([0x6f,0x6e])](_0x52a7dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc8428e,_0x51cbdc)=>{if(_0x51cbdc[0x0]!=_0x235c22)return _0x53b9dc(_0x52a7dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x51cbdc[0x1]={..._0x51cbdc[0x1],[_0x52a7dc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20a576};},{[_0x52a7dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52a7dc([0x68,0x69,0x67,0x68])}),_0x10f21e[_0x52a7dc([0x6f,0x6e])](_0x52a7dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2203ef=>{_0x468838(_0x2203ef[_0x52a7dc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5aac9c=!0x0,_0x543d0d(_0x2203ef[_0x52a7dc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52a7dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52a7dc([0x6c,0x6f,0x77])}),_0x20d03f[_0x52a7dc([0x74,0x68,0x65,0x6e])](()=>{_0x5aac9c||_0x53b9dc(_0x52a7dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4afe95(){return _0x10f21e[_0x52a7dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52a7dc([0x76,0x69,0x65,0x77])][_0x52a7dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52a7dc([0x61,0x75,0x74,0x6f]);}function _0x50f126(){_0x10f21e[_0x52a7dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52a7dc([0x76,0x69,0x65,0x77])][_0x52a7dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52a7dc([0x61,0x75,0x74,0x6f]);}}function _0x1c38a6(_0x85efe9){const _0x18bd1b=[new window[(_0x52a7dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22e1dc=>setTimeout(_0x22e1dc,0x33481701^_0x3d45d1)),_0x20d03f[_0x52a7dc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52a7dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ea553=>{let _0x345d00=0x0;_0x10f21e[_0x52a7dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x52a7dc([0x6f,0x6e])](_0x52a7dc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5dcf0e,_0x29ed83)=>{_0x29ed83[0x0][_0x52a7dc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x345d00++,_0x345d00==(0x33412c25^_0x3d45d1)&&(_0x3ea553(),_0x5dcf0e[_0x52a7dc([0x6f,0x66,0x66])]());});}))];return window[_0x52a7dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52a7dc([0x72,0x61,0x63,0x65])](_0x18bd1b)[_0x52a7dc([0x74,0x68,0x65,0x6e])](()=>_0x85efe9);}async function _0x3d3d67(){await _0x20d03f,_0x10f21e[_0x52a7dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x52a7dc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4554f1,_0x10f21e[_0x52a7dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x52a7dc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4554f1,_0x10f21e[_0x52a7dc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52a7dc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b9e10(_0x5e4441){const _0x1bc538=_0x1030d9();_0x10f21e[_0x1bc538]=_0x52a7dc([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e4441,_0x5e4441!=_0x52a7dc([0x56,0x61,0x6c,0x69,0x64])&&_0x3d3d67();}function _0x1030d9(){const _0x83d918=window[_0x52a7dc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52a7dc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52a7dc([0x6e,0x6f,0x77])]())[_0x52a7dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52a7dc([0x2e]),'');let _0x5cd06c=_0x52a7dc([0x45]);for(let _0x173c60=0x0;_0x173c60<_0x83d918[_0x52a7dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x173c60+=0x2){let _0x436b73=window[_0x52a7dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x83d918[_0x52a7dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x173c60,_0x173c60+0x2));_0x436b73>=_0x506875[_0x52a7dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x436b73-=_0x506875[_0x52a7dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5cd06c+=_0x506875[_0x436b73];}return _0x5cd06c;}function _0x9a9dcb(){const _0x353fab=_0xa545ff[_0x52a7dc([0x73,0x70,0x6c,0x69,0x74])](_0x52a7dc([0x2e]));if(0x3!=_0x353fab[_0x52a7dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4035a3(_0x353fab[0x1]);function _0x4035a3(_0x2bc7c9){const _0xe3a3a8=_0xe94f41(_0x2bc7c9);return _0xe3a3a8&&_0x2f81e5()?_0xe3a3a8:null;function _0x2f81e5(){const _0x2aac01=_0xe3a3a8[_0x52a7dc([0x6a,0x74,0x69])],_0x3326da=window[_0x52a7dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2aac01[_0x52a7dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2aac01[_0x52a7dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x377dc5={..._0xe3a3a8,[_0x52a7dc([0x6a,0x74,0x69])]:_0x2aac01[_0x52a7dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2aac01[_0x52a7dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x377dc5[_0x52a7dc([0x76,0x63])],_0x2eee11(_0x377dc5)==_0x3326da;}}}async function _0x609228(){let _0x433428=!0x0;try{const _0x1b2454=_0xa545ff[_0x52a7dc([0x73,0x70,0x6c,0x69,0x74])](_0x52a7dc([0x2e])),[_0x116976,_0xb53b58,_0x10e4d1]=_0x1b2454;return _0x223bd1(_0x116976),await _0x10132c(_0x116976,_0xb53b58,_0x10e4d1),_0x433428;}catch{return!0x1;}function _0x223bd1(_0x3e6291){const _0x294fa9=_0xe94f41(_0x3e6291);_0x294fa9&&_0x294fa9[_0x52a7dc([0x61,0x6c,0x67])]==_0x52a7dc([0x45,0x53,0x32,0x35,0x36])||(_0x433428=!0x1);}async function _0x10132c(_0x604984,_0x150e33,_0x29e2b8){const _0x191a84=window[_0x52a7dc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52a7dc([0x66,0x72,0x6f,0x6d])](_0x2f1065(_0x29e2b8),_0x25e1b8=>_0x25e1b8[_0x52a7dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52dc9f=new window[(_0x52a7dc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52a7dc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x604984+_0x52a7dc([0x2e])+_0x150e33),_0x37d3dc=window[_0x52a7dc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52a7dc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37d3dc)return;const _0x4eca61=await _0x37d3dc[_0x52a7dc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52a7dc([0x6a,0x77,0x6b]),_0x18ce01,{[_0x52a7dc([0x6e,0x61,0x6d,0x65])]:_0x52a7dc([0x45,0x43,0x44,0x53,0x41]),[_0x52a7dc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52a7dc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52a7dc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37d3dc[_0x52a7dc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52a7dc([0x6e,0x61,0x6d,0x65])]:_0x52a7dc([0x45,0x43,0x44,0x53,0x41]),[_0x52a7dc([0x68,0x61,0x73,0x68])]:{[_0x52a7dc([0x6e,0x61,0x6d,0x65])]:_0x52a7dc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4eca61,_0x191a84,_0x52dc9f)||(_0x433428=!0x1);}}function _0xe94f41(_0x3b5845){return _0x3b5845[_0x52a7dc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52a7dc([0x65,0x79]))?JSON[_0x52a7dc([0x70,0x61,0x72,0x73,0x65])](_0x2f1065(_0x3b5845)):null;}function _0x2f1065(_0x457f11){return window[_0x52a7dc([0x61,0x74,0x6f,0x62])](_0x457f11[_0x52a7dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52a7dc([0x2b]))[_0x52a7dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52a7dc([0x2f])));}function _0x2eee11(_0x2fb5b7){let _0x12fb31=0x1505;function _0x5e8b8b(_0x55cc4e){for(let _0x161ebe=0x0;_0x161ebe<_0x55cc4e[_0x52a7dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x161ebe++){const _0x478778=_0x55cc4e[_0x52a7dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x161ebe);_0x12fb31=(_0x12fb31<<0x5)+_0x12fb31+_0x478778,_0x12fb31&=_0x12fb31;}}function _0x3d5253(_0x513790){Array[_0x52a7dc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x513790)?_0x513790[_0x52a7dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d5253):_0x513790&&typeof _0x513790==_0x52a7dc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52a7dc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x513790)[_0x52a7dc([0x73,0x6f,0x72,0x74])]()[_0x52a7dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6a81d7,_0x145bbc])=>{_0x5e8b8b(_0x6a81d7),_0x3d5253(_0x145bbc);}):_0x5e8b8b(window[_0x52a7dc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x513790));}return _0x3d5253(_0x2fb5b7),_0x12fb31>>>0x0;}function _0x201ab2(_0x3ea230){return _0x3ea230[_0x52a7dc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52a7dc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52a7dc([0x30]));}function _0x1f11d8(_0x421ef4){return _0x421ef4[_0x52a7dc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52a7dc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52a7dc([0x6a,0x6f,0x69,0x6e])]('');}function _0x4554f1(){}function _0x52a7dc(_0x4e8004){return _0x4e8004['map'](_0x14bece=>String['fromCharCode'](_0x14bece))['join']('');}_0x5b9e10(await _0x4f33cc());}(this);}['_announceCaseChangeOperation'](_0x456bd4){const {ui:_0x2f3acf,locale:_0x3f2455}=this['editor'],_0x2b1fd5=m(_0x3f2455)['find'](_0x9eae28=>_0x9eae28['commandName']===_0x456bd4)['label']['toLowerCase']();_0x2f3acf['ariaLiveAnnouncer']['announce'](w(_0x3f2455,'Changed\x20case\x20to\x20%0',_0x2b1fd5));}}function m(_0x396acb){return[{'label':w(_0x396acb,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x396acb,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x396acb,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class C extends _0xa3a0a0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x271c2d=this['editor'];this['_registerComponents'](),_0x271c2d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0x271c2d['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x21c173=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa6fdb6;for(const _0x9e0335 in _0x21c173){const _0x42cffd=_0x9e0335,_0x139167=_0x21c173[_0x42cffd];if('caseChangeLicenseKeyValid'==_0x139167||'caseChangeLicenseKeyInvalid'==_0x139167||'caseChangeLicenseKeyExpired'==_0x139167||'caseChangeLicenseKeyDomainLimit'==_0x139167||'caseChangeLicenseKeyNotAllowed'==_0x139167||'caseChangeLicenseKeyEvaluationLimit'==_0x139167||'caseChangeLicenseKeyUsageLimit'==_0x139167){delete _0x21c173[_0x42cffd],_0xa6fdb6=_0x139167,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0xa6fdb6&&_0x21c173['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0xa6fdb6&&_0x21c173['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0xa6fdb6&&_0x21c173['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0xa6fdb6&&_0x21c173['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0xa6fdb6&&_0x21c173['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0xa6fdb6&&_0x21c173['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x46a945=this['editor'],{itemDefinitions:_0x44a089,commands:_0x2ebaea}=this['_getListItemDefinitionsAndCommands']();_0x46a945['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x44a089,_0x2ebaea)),_0x46a945['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x44a089,_0x2ebaea));}['_createMenuBarMenuView'](_0x5664fc,_0x5c4c2b){const _0x3bdb83=this['editor'],_0x55e9ee=_0x3bdb83['locale'],_0x53cc27=new _0x551184(_0x55e9ee),_0x4e6f74=new _0xa941b3(_0x55e9ee);_0x4e6f74['set']({'ariaLabel':w(_0x55e9ee,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x53cc27['buttonView']),_0x53cc27['bind']('isEnabled')['toMany'](_0x5c4c2b,'isEnabled',(..._0x5beae2)=>_0x5beae2['some'](_0x53d763=>_0x53d763));for(const _0x5af1ad of _0x5664fc){const _0x350ae8=new _0x15250d(_0x55e9ee,_0x53cc27),_0x47d4c9=new _0x40af3d(_0x55e9ee);_0x47d4c9['delegate']('execute')['to'](_0x53cc27),_0x47d4c9['bind'](...Object['keys'](_0x5af1ad['model']))['to'](_0x5af1ad['model']),_0x47d4c9['on']('execute',()=>{_0x3bdb83['execute'](_0x5af1ad['model']['commandName']),_0x3bdb83['editing']['view']['focus']();}),_0x350ae8['children']['add'](_0x47d4c9),_0x4e6f74['items']['add'](_0x350ae8);}return _0x53cc27['panelView']['children']['add'](_0x4e6f74),_0x53cc27;}['_createDropdownView'](_0x3a31fa,_0x3912d2){const _0x455009=this['editor'],_0x504335=_0xfd06c3(_0x455009['locale']);return this['_setButtonProperties'](_0x504335['buttonView']),_0x504335['buttonView']['set']({'tooltip':!0x0}),_0x504335['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x590bcd(_0x504335,_0x3a31fa,{'ariaLabel':w(_0x455009['locale'],'Case\x20change'),'role':'menu'}),_0x504335['bind']('isEnabled')['toMany'](_0x3912d2,'isEnabled',(..._0x114c73)=>_0x114c73['some'](_0x3fc978=>_0x3fc978)),this['listenTo'](_0x504335,'execute',_0x1a7bcf=>{_0x455009['execute'](_0x1a7bcf['source']['commandName']),_0x455009['editing']['view']['focus']();}),_0x504335;}['_setButtonProperties'](_0x5e7730){const _0x23a16=this['editor'];_0x5e7730['set']({'label':w(_0x23a16['locale'],'Case\x20change'),'icon':_0x54e34c,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x175abf=new _0x139e03(),_0x567ed5=[];for(const _0x298d03 of m(this['editor']['locale'])){const _0xc38e62=this['editor']['commands']['get'](_0x298d03['commandName']),_0x40eff9=new _0x1e5706({'commandName':_0x298d03['commandName'],'label':_0x298d03['label'],'role':'menuitemradio','withText':!0x0});_0x40eff9['bind']('isEnabled')['to'](_0xc38e62,'isEnabled'),_0x175abf['add']({'type':'button','model':_0x40eff9}),_0x567ed5['push'](_0xc38e62);}return{'itemDefinitions':_0x175abf,'commands':_0x567ed5};}}class y extends _0xa3a0a0{static get['requires'](){return[g,C];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{y as CaseChange,d as CaseChangeCommand,g as CaseChangeEditing,C as CaseChangeUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-case-change",
3
- "version": "48.0.0-alpha.3",
3
+ "version": "48.0.0-alpha.4",
4
4
  "description": "Case change feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -36,11 +36,11 @@
36
36
  "./package.json": "./package.json"
37
37
  },
38
38
  "dependencies": {
39
- "@ckeditor/ckeditor5-core": "48.0.0-alpha.3",
40
- "@ckeditor/ckeditor5-engine": "48.0.0-alpha.3",
41
- "@ckeditor/ckeditor5-icons": "48.0.0-alpha.3",
42
- "@ckeditor/ckeditor5-ui": "48.0.0-alpha.3",
43
- "@ckeditor/ckeditor5-utils": "48.0.0-alpha.3"
39
+ "@ckeditor/ckeditor5-core": "48.0.0-alpha.4",
40
+ "@ckeditor/ckeditor5-engine": "48.0.0-alpha.4",
41
+ "@ckeditor/ckeditor5-icons": "48.0.0-alpha.4",
42
+ "@ckeditor/ckeditor5-ui": "48.0.0-alpha.4",
43
+ "@ckeditor/ckeditor5-utils": "48.0.0-alpha.4"
44
44
  },
45
45
  "files": [
46
46
  "dist",