@ckeditor/ckeditor5-case-change 48.8.1-alpha.1 → 48.8.1-alpha.3

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 _0x516b6b,Plugin as _0x1d678f}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x4e2784,Collection as _0x3c2c72}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x5a6e6c,MenuBarMenuListView as _0x5b8430,MenuBarMenuListItemView as _0x2e0d88,MenuBarMenuListItemButtonView as _0xe9f8dd,createDropdown as _0x1683f1,addListToDropdown as _0x2b2ecc,UIModel as _0x2e1396}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x3dd34d}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0x516b6b{['_transformCallback'];constructor(_0x472178,_0xd812ec){super(_0x472178),this['_transformCallback']=_0xd812ec;}['execute'](){const _0xa0fb68=this['editor']['model'],_0x5bd0b3=Array['from'](this['_getAffectedRanges']()),_0x4c2141=Array['from'](_0xa0fb68['document']['selection']['getRanges']());_0xa0fb68['change'](_0x4b32a1=>{for(const _0x1158d3 of _0x5bd0b3)this['_modifyContent'](_0x1158d3,_0x4b32a1);_0x4b32a1['setSelection'](_0x4c2141);});}['refresh'](){for(const _0x37690 of this['_getAffectedRanges']())for(const _0x4e7537 of _0x37690)if(_0x4e7537['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x590f73=this['editor']['model'],_0x560e22=_0x590f73['document']['selection'];if(_0x560e22['isCollapsed']){const _0x41582c=this['_findAncestorTextBlock'](_0x560e22['getFirstPosition']()['parent']);return _0x41582c?[_0x590f73['createRangeIn'](_0x41582c)]:[];}return _0x560e22['getRanges']();}['_modifyContent'](_0x4c2962,_0x1366cd){for(const _0xd5fd4e of this['_getElementsAllowingText'](_0x4c2962)){const _0x4673ff=this['_getElementTextContent'](_0xd5fd4e),_0x4e3528=this['_transformCallback'](_0x4673ff);for(const _0x336768 of this['_getTextNodesRangeLimited'](_0xd5fd4e,_0x4c2962))this['_replaceTextNodeData'](_0x336768,_0x4e3528,_0x1366cd);}}['_findAncestorTextBlock'](_0x5a7a40){const _0xc8426d=this['editor']['model']['schema'];if(_0x5a7a40['is']('element')&&_0xc8426d['checkChild'](_0x5a7a40,'$text'))return _0x5a7a40;const _0x3aebd8=_0x5a7a40['parent'];return!_0x3aebd8||_0xc8426d['isLimit'](_0x5a7a40)?null:this['_findAncestorTextBlock'](_0x3aebd8);}*['_getElementsAllowingText'](_0x55401b){const _0x4c51f9=new Set();for(const {item:_0x23e2f4}of _0x55401b['getWalker']()){const _0x16ca11=this['_findAncestorTextBlock'](_0x23e2f4);_0x16ca11&&!_0x4c51f9['has'](_0x16ca11)&&(_0x4c51f9['add'](_0x16ca11),yield _0x16ca11);}}['_getElementTextContent'](_0x23ff77){return Array['from'](_0x23ff77['getChildren']())['reduce']((_0x1ac310,_0x2fe142)=>_0x1ac310+(_0x2fe142['is']('$text')?_0x2fe142['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0xdcfaf6,_0x5fcf2e){const _0x474294=_0x5fcf2e['getIntersection'](this['editor']['model']['createRangeIn'](_0xdcfaf6));if(_0x474294){for(const _0x2e586c of _0x474294['getItems']())_0x2e586c['is']('$textProxy')&&_0x2e586c['parent']==_0xdcfaf6&&(yield _0x2e586c);}}['_replaceTextNodeData'](_0x1cd7f4,_0x5ead51,_0x1640f7){const _0x3f3ecd=_0x5ead51['substring'](_0x1cd7f4['startOffset'],_0x1cd7f4['endOffset']);if(_0x3f3ecd===_0x1cd7f4['data'])return;const _0x4bc0c3=_0x1cd7f4['getAttributes']();this['editor']['model']['insertContent'](_0x1640f7['createText'](_0x3f3ecd,_0x4bc0c3),_0x1640f7['createSelection'](_0x1640f7['createRangeOn'](_0x1cd7f4)));}}function d(_0x1e5c83,_0x884001,..._0x2d642d){const t=_0x1e5c83['t'];switch(_0x884001){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',..._0x2d642d);default:return _0x884001;}}class CaseChangeEditing extends _0x1d678f{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x48878d=this['editor'],_0xbbaf02=_0x48878d['locale']['contentLanguage'],_0x1c2412=function(_0x3ba736=[]){return'function'==typeof _0x3ba736?_0x3ba736:(_0x1e9e8c,{wordIndex:_0x209e85})=>_0x209e85>0x0&&_0x3ba736['includes'](_0x1e9e8c);}(_0x48878d['config']['get']('caseChange.titleCase.excludeWords')),_0x225bb0={'changeCaseUpper':new CaseChangeCommand(_0x48878d,_0x2ea3e7=>_0x2ea3e7['toLocaleUpperCase'](_0xbbaf02)),'changeCaseLower':new CaseChangeCommand(_0x48878d,_0x5d2c88=>_0x5d2c88['toLocaleLowerCase'](_0xbbaf02)),'changeCaseTitle':new CaseChangeCommand(_0x48878d,_0x37656d=>function(_0x4d4601,_0x428f5c,_0x16b035){return function(_0x2ec872,_0x226802){let _0x1a59cd='',_0x2aff88=0x0,_0x495046=0x0;for(const _0x193eac of _0x2ec872['matchAll'](/ +/g)){const _0x15aced=_0x193eac['index'],_0x1cdab1=_0x2ec872['substring'](_0x2aff88,_0x15aced);_0x1cdab1['length']&&(_0x1a59cd+=_0x226802(_0x1cdab1,_0x2aff88,_0x495046++)),_0x1a59cd+=_0x193eac[0x0],_0x2aff88=_0x15aced+_0x193eac[0x0]['length'];}const _0x356793=_0x2ec872['substring'](_0x2aff88);return _0x356793['length']&&(_0x1a59cd+=_0x226802(_0x356793,_0x2aff88,_0x495046)),_0x1a59cd;}(_0x4d4601,(_0x276d37,_0x19e8ed,_0x335736)=>{const _0x58a7ea=_0x276d37['toLocaleLowerCase'](_0x16b035);return _0x428f5c(_0x58a7ea,{'charOffset':_0x19e8ed,'wordIndex':_0x335736,'blockText':_0x4d4601})?_0x58a7ea:_0x58a7ea['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x54d629=>_0x54d629['toLocaleUpperCase'](_0x16b035));});}(_0x37656d,_0x1c2412,_0xbbaf02))};for(const [_0x16b733,_0x180248]of Object['entries'](_0x225bb0))_0x48878d['commands']['add'](_0x16b733,_0x180248),_0x180248['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x16b733);});this['listenTo'](_0x48878d['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x48878d['keystrokes']['set']('shift+f3',(_0x5a1038,_0x904283)=>{const _0x179d6f=g(this['editor']['locale']),_0x246cc3=_0x179d6f[this['_currentCommandIndex']%_0x179d6f['length']]['commandName'];_0x48878d['execute'](_0x246cc3),this['_currentCommandIndex']++,_0x904283();});}['afterInit'](){!async function(_0x13d703){const _0x44ac10=_0x35ac9c([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]),_0x149759=0x334129cd,_0x434e59=0x3346a3f5^_0x149759,_0x25b83c=window[_0x35ac9c([0x44,0x61,0x74,0x65])][_0x35ac9c([0x6e,0x6f,0x77])](),_0xde5e8d=_0x13d703[_0x35ac9c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ac334=new window[(_0x35ac9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfcc679=>{_0xde5e8d[_0x35ac9c([0x6f,0x6e,0x63,0x65])](_0x35ac9c([0x72,0x65,0x61,0x64,0x79]),_0xfcc679);}),_0x5c614b={[_0x35ac9c([0x6b,0x74,0x79])]:_0x35ac9c([0x45,0x43]),[_0x35ac9c([0x75,0x73,0x65])]:_0x35ac9c([0x73,0x69,0x67]),[_0x35ac9c([0x63,0x72,0x76])]:_0x35ac9c([0x50,0x2d,0x32,0x35,0x36]),[_0x35ac9c([0x78])]:_0x35ac9c([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]),[_0x35ac9c([0x79])]:_0x35ac9c([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]),[_0x35ac9c([0x61,0x6c,0x67])]:_0x35ac9c([0x45,0x53,0x32,0x35,0x36])},_0x140bff=_0xde5e8d[_0x35ac9c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x35ac9c([0x67,0x65,0x74])](_0x35ac9c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24079a(){let _0x353e10,_0x427b4f=null,_0x87a89a=null;try{if(_0x140bff==_0x35ac9c([0x47,0x50,0x4c]))return _0x35ac9c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x353e10=_0x4093e2(),!_0x353e10)return _0x35ac9c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x353e10[_0x35ac9c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x87a89a=_0x9d35ee(_0x353e10[_0x35ac9c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x353e10[_0x35ac9c([0x6a,0x74,0x69])])),await _0x44d1d3()?_0x11949b()?_0x3b1167()?_0x35ac9c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x32a4ec()?(_0x353e10[_0x35ac9c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35ac9c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x427b4f=_0x29d950(_0x35ac9c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x41776b()):_0x35ac9c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x35ac9c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x35ac9c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x35ac9c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b1167(){const _0xd66a28=[_0x35ac9c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x35ac9c([0x74,0x72,0x69,0x61,0x6c])][_0x35ac9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x353e10[_0x35ac9c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25b83c/0x3e8:0xe10*_0x434e59;return _0x353e10[_0x35ac9c([0x65,0x78,0x70])]<_0xd66a28;}function _0x11949b(){const _0x143423=_0x353e10[_0x35ac9c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x143423&&(!!_0x143423[_0x35ac9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35ac9c([0x2a]))||(!!_0x143423[_0x35ac9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35ac9c([0x43,0x43]))||!!_0x143423[_0x35ac9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35ac9c([0x50,0x50]))));}function _0x32a4ec(){const _0x5c8f4f=_0x353e10[_0x35ac9c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c8f4f||0x0==_0x5c8f4f[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e055c}=new URL(window[_0x35ac9c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c8f4f[_0x35ac9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e055c))return!0x0;const _0x21b036=_0x2e055c[_0x35ac9c([0x73,0x70,0x6c,0x69,0x74])](_0x35ac9c([0x2e]));return _0x5c8f4f[_0x35ac9c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc8f429=>_0xc8f429[_0x35ac9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35ac9c([0x2a])))[_0x35ac9c([0x6d,0x61,0x70])](_0x1cff02=>_0x1cff02[_0x35ac9c([0x73,0x70,0x6c,0x69,0x74])](_0x35ac9c([0x2e])))[_0x35ac9c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53a9b7=>_0x53a9b7[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x21b036[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35ac9c([0x6d,0x61,0x70])](_0x147888=>Array(_0x21b036[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x147888[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35ac9c([0x66,0x69,0x6c,0x6c])](_0x147888[0x0]===_0x35ac9c([0x2a])?_0x35ac9c([0x2a]):'')[_0x35ac9c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x147888))[_0x35ac9c([0x73,0x6f,0x6d,0x65])](_0x2e57d7=>_0x21b036[_0x35ac9c([0x65,0x76,0x65,0x72,0x79])]((_0x389fba,_0x2347ad)=>_0x2e57d7[_0x2347ad]===_0x389fba||_0x2e57d7[_0x2347ad]===_0x35ac9c([0x2a])));}function _0x41776b(){return _0x427b4f&&_0x87a89a?new window[(_0x35ac9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5378bd,_0x1a286b)=>{_0x427b4f[_0x35ac9c([0x74,0x68,0x65,0x6e])](_0x5378bd,_0x1a286b),_0x87a89a[_0x35ac9c([0x74,0x68,0x65,0x6e])](_0x37166e=>{_0x37166e!=_0x35ac9c([0x56,0x61,0x6c,0x69,0x64])&&_0x5378bd(_0x37166e);},_0x1a286b);}):_0x427b4f||_0x87a89a||_0x35ac9c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9d35ee(_0x501e51,_0x38f7fa){return new window[(_0x35ac9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8229ce=>{if(_0x83c06c())return _0x8229ce(_0x35ac9c([0x56,0x61,0x6c,0x69,0x64]));_0x14f6fc(),_0xde5e8d[_0x35ac9c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x35ac9c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3fe8cf=!0x1;const _0x45e47e=_0x4e2784();function _0x11715e(_0x1d3523){return!!_0x1d3523&&(typeof _0x1d3523===_0x35ac9c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d3523===_0x35ac9c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d3523[_0x35ac9c([0x74,0x68,0x65,0x6e])]===_0x35ac9c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d3523[_0x35ac9c([0x63,0x61,0x74,0x63,0x68])]===_0x35ac9c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x15ee67(_0x296a8f){_0xbb4ddf(_0x296a8f)[_0x35ac9c([0x74,0x68,0x65,0x6e])](_0x185fa4=>{if(!_0x185fa4||_0x185fa4[_0x35ac9c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x35ac9c([0x6f,0x6b]))return _0x35ac9c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ddded(_0x594cc6(_0x45e47e+_0x38f7fa))!=_0x185fa4[_0x35ac9c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x35ac9c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x35ac9c([0x56,0x61,0x6c,0x69,0x64]);})[_0x35ac9c([0x74,0x68,0x65,0x6e])](_0x24212f=>(_0x4a6a01(),_0x24212f),()=>{const _0x22eeca=_0x1abbc3();return null==_0x22eeca?(_0x4a6a01(),_0x35ac9c([0x56,0x61,0x6c,0x69,0x64])):_0x35ac9c(_0x25b83c-_0x22eeca>(0x174dadcd^_0x149759)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x35ac9c([0x74,0x68,0x65,0x6e])](_0x8229ce)[_0x35ac9c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x8229ce(_0x35ac9c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e0df5=0x3377c74d^_0x149759;function _0x4a6a01(){const _0x1c2046=_0x35ac9c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ddded(_0x594cc6(_0x501e51)),_0xd2d4be=_0x459d29(_0x5ddded(window[_0x35ac9c([0x4d,0x61,0x74,0x68])][_0x35ac9c([0x63,0x65,0x69,0x6c])](_0x25b83c/_0x3e0df5)));window[_0x35ac9c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35ac9c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c2046,_0xd2d4be);}function _0x1abbc3(){const _0x57301f=_0x35ac9c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ddded(_0x594cc6(_0x501e51)),_0x1bd9e8=window[_0x35ac9c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35ac9c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57301f);return _0x1bd9e8?window[_0x35ac9c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x459d29(_0x1bd9e8),0x10)*_0x3e0df5:null;}function _0xbb4ddf(_0xb8f940){return new window[(_0x35ac9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dde9c,_0x29c6ec)=>{_0xb8f940[_0x35ac9c([0x74,0x68,0x65,0x6e])](_0x1dde9c,_0x29c6ec),window[_0x35ac9c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29c6ec,0x3340fd0d^_0x149759);});}}_0xde5e8d[_0x35ac9c([0x6f,0x6e])](_0x35ac9c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d85f0,_0x44c186)=>{if(_0x44c186[0x0]!=_0x501e51)return _0x8229ce(_0x35ac9c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44c186[0x1]={..._0x44c186[0x1],[_0x35ac9c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45e47e};},{[_0x35ac9c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35ac9c([0x68,0x69,0x67,0x68])}),_0xde5e8d[_0x35ac9c([0x6f,0x6e])](_0x35ac9c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b4496=>{_0x11715e(_0x3b4496[_0x35ac9c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3fe8cf=!0x0,_0x15ee67(_0x3b4496[_0x35ac9c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x35ac9c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35ac9c([0x6c,0x6f,0x77])}),_0x5ac334[_0x35ac9c([0x74,0x68,0x65,0x6e])](()=>{_0x3fe8cf||_0x8229ce(_0x35ac9c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x83c06c(){return _0xde5e8d[_0x35ac9c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35ac9c([0x76,0x69,0x65,0x77])][_0x35ac9c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x35ac9c([0x61,0x75,0x74,0x6f]);}function _0x14f6fc(){_0xde5e8d[_0x35ac9c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35ac9c([0x76,0x69,0x65,0x77])][_0x35ac9c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35ac9c([0x61,0x75,0x74,0x6f]);}}function _0x29d950(_0x528000){const _0x5af44d=[new window[(_0x35ac9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d9b0d=>setTimeout(_0x3d9b0d,0x33481701^_0x149759)),_0x5ac334[_0x35ac9c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x35ac9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x351f98=>{let _0x32bcaa=0x0;_0xde5e8d[_0x35ac9c([0x6d,0x6f,0x64,0x65,0x6c])][_0x35ac9c([0x6f,0x6e])](_0x35ac9c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x8b9289,_0x8956eb)=>{_0x8956eb[0x0][_0x35ac9c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x32bcaa++,_0x32bcaa==(0x33412c25^_0x149759)&&(_0x351f98(),_0x8b9289[_0x35ac9c([0x6f,0x66,0x66])]());});}))];return window[_0x35ac9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35ac9c([0x72,0x61,0x63,0x65])](_0x5af44d)[_0x35ac9c([0x74,0x68,0x65,0x6e])](()=>_0x528000);}async function _0x2ab8ef(){await _0x5ac334,_0xde5e8d[_0x35ac9c([0x6d,0x6f,0x64,0x65,0x6c])][_0x35ac9c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39621a,_0xde5e8d[_0x35ac9c([0x6d,0x6f,0x64,0x65,0x6c])][_0x35ac9c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39621a,_0xde5e8d[_0x35ac9c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x35ac9c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x235460(_0x9ef730){const _0x2254e7=_0x49f99d();_0xde5e8d[_0x2254e7]=_0x35ac9c([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x9ef730,_0x9ef730!=_0x35ac9c([0x56,0x61,0x6c,0x69,0x64])&&_0x2ab8ef();}function _0x49f99d(){const _0x13b2de=window[_0x35ac9c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x35ac9c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x35ac9c([0x6e,0x6f,0x77])]())[_0x35ac9c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x35ac9c([0x2e]),'');let _0x2aa89c=_0x35ac9c([0x45]);for(let _0x5ca2da=0x0;_0x5ca2da<_0x13b2de[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ca2da+=0x2){let _0x3839bd=window[_0x35ac9c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13b2de[_0x35ac9c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ca2da,_0x5ca2da+0x2));_0x3839bd>=_0x44ac10[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3839bd-=_0x44ac10[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2aa89c+=_0x44ac10[_0x3839bd];}return _0x2aa89c;}function _0x4093e2(){const _0x5a6681=_0x140bff[_0x35ac9c([0x73,0x70,0x6c,0x69,0x74])](_0x35ac9c([0x2e]));if(0x3!=_0x5a6681[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x134fde(_0x5a6681[0x1]);function _0x134fde(_0x2c66de){const _0x5396d4=_0xcd2b0d(_0x2c66de);return _0x5396d4&&_0x23ac6c()?_0x5396d4:null;function _0x23ac6c(){const _0x35b0fd=_0x5396d4[_0x35ac9c([0x6a,0x74,0x69])],_0x5ca4fc=window[_0x35ac9c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35b0fd[_0x35ac9c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35b0fd[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xfd3ea5={..._0x5396d4,[_0x35ac9c([0x6a,0x74,0x69])]:_0x35b0fd[_0x35ac9c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x35b0fd[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xfd3ea5[_0x35ac9c([0x76,0x63])],_0x594cc6(_0xfd3ea5)==_0x5ca4fc;}}}async function _0x44d1d3(){let _0x150082=!0x0;try{const _0x47b93f=_0x140bff[_0x35ac9c([0x73,0x70,0x6c,0x69,0x74])](_0x35ac9c([0x2e])),[_0x400cd6,_0x3e2ec9,_0xb51fa9]=_0x47b93f;return _0x31fdc3(_0x400cd6),await _0x1440ba(_0x400cd6,_0x3e2ec9,_0xb51fa9),_0x150082;}catch{return!0x1;}function _0x31fdc3(_0x37190d){const _0x1cb3e5=_0xcd2b0d(_0x37190d);_0x1cb3e5&&_0x1cb3e5[_0x35ac9c([0x61,0x6c,0x67])]==_0x35ac9c([0x45,0x53,0x32,0x35,0x36])||(_0x150082=!0x1);}async function _0x1440ba(_0x3a2697,_0x7353ca,_0x361582){const _0x517ea5=window[_0x35ac9c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x35ac9c([0x66,0x72,0x6f,0x6d])](_0x137c79(_0x361582),_0x5ad385=>_0x5ad385[_0x35ac9c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5809f4=new window[(_0x35ac9c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x35ac9c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a2697+_0x35ac9c([0x2e])+_0x7353ca),_0x316aa7=window[_0x35ac9c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x35ac9c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x316aa7)return;const _0x2b220e=await _0x316aa7[_0x35ac9c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x35ac9c([0x6a,0x77,0x6b]),_0x5c614b,{[_0x35ac9c([0x6e,0x61,0x6d,0x65])]:_0x35ac9c([0x45,0x43,0x44,0x53,0x41]),[_0x35ac9c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x35ac9c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x35ac9c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x316aa7[_0x35ac9c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x35ac9c([0x6e,0x61,0x6d,0x65])]:_0x35ac9c([0x45,0x43,0x44,0x53,0x41]),[_0x35ac9c([0x68,0x61,0x73,0x68])]:{[_0x35ac9c([0x6e,0x61,0x6d,0x65])]:_0x35ac9c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b220e,_0x517ea5,_0x5809f4)||(_0x150082=!0x1);}}function _0xcd2b0d(_0x46ed57){return _0x46ed57[_0x35ac9c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x35ac9c([0x65,0x79]))?JSON[_0x35ac9c([0x70,0x61,0x72,0x73,0x65])](_0x137c79(_0x46ed57)):null;}function _0x137c79(_0x361288){return window[_0x35ac9c([0x61,0x74,0x6f,0x62])](_0x361288[_0x35ac9c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x35ac9c([0x2b]))[_0x35ac9c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x35ac9c([0x2f])));}function _0x594cc6(_0x3b7346){let _0x19d1fb=0x1505;function _0x20a931(_0x1214a){for(let _0x316278=0x0;_0x316278<_0x1214a[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x316278++){const _0x124c89=_0x1214a[_0x35ac9c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x316278);_0x19d1fb=(_0x19d1fb<<0x5)+_0x19d1fb+_0x124c89,_0x19d1fb&=_0x19d1fb;}}function _0x378330(_0x380d7c){Array[_0x35ac9c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x380d7c)?_0x380d7c[_0x35ac9c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x378330):_0x380d7c&&typeof _0x380d7c==_0x35ac9c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x35ac9c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x380d7c)[_0x35ac9c([0x73,0x6f,0x72,0x74])]()[_0x35ac9c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b6318,_0x23cba9])=>{_0x20a931(_0x4b6318),_0x378330(_0x23cba9);}):_0x20a931(window[_0x35ac9c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x380d7c));}return _0x378330(_0x3b7346),_0x19d1fb>>>0x0;}function _0x5ddded(_0x3379a6){return _0x3379a6[_0x35ac9c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x35ac9c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x35ac9c([0x30]));}function _0x459d29(_0x4bd2a8){return _0x4bd2a8[_0x35ac9c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x35ac9c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x35ac9c([0x6a,0x6f,0x69,0x6e])]('');}function _0x39621a(){}function _0x35ac9c(_0x4aec54){return _0x4aec54['map'](_0x34a082=>String['fromCharCode'](_0x34a082))['join']('');}_0x235460(await _0x24079a());}(this);}['_announceCaseChangeOperation'](_0x4d3727){const {ui:_0x1e54aa,locale:_0x1d3ff5}=this['editor'],_0x4c1493=g(_0x1d3ff5)['find'](_0x407cda=>_0x407cda['commandName']===_0x4d3727)['label']['toLowerCase']();_0x1e54aa['ariaLiveAnnouncer']['announce'](d(_0x1d3ff5,'Changed\x20case\x20to\x20%0',_0x4c1493));}}function g(_0x2f06bb){return[{'label':d(_0x2f06bb,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0x2f06bb,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0x2f06bb,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0x1d678f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2a09a3=this['editor'];this['_registerComponents'](),_0x2a09a3['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x2a09a3['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x356c05=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xce43a6;for(const _0x33a425 in _0x356c05){const _0x3fe624=_0x33a425,_0x5d3cf8=_0x356c05[_0x3fe624];if('caseChangeLicenseKeyValid'==_0x5d3cf8||'caseChangeLicenseKeyInvalid'==_0x5d3cf8||'caseChangeLicenseKeyExpired'==_0x5d3cf8||'caseChangeLicenseKeyDomainLimit'==_0x5d3cf8||'caseChangeLicenseKeyNotAllowed'==_0x5d3cf8||'caseChangeLicenseKeyEvaluationLimit'==_0x5d3cf8||'caseChangeLicenseKeyUsageLimit'==_0x5d3cf8){delete _0x356c05[_0x3fe624],_0xce43a6=_0x5d3cf8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0xce43a6&&_0x356c05['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0xce43a6&&_0x356c05['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0xce43a6&&_0x356c05['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0xce43a6&&_0x356c05['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0xce43a6&&_0x356c05['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0xce43a6&&_0x356c05['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x44d58a=this['editor'],{itemDefinitions:_0x218c52,commands:_0x3f7597}=this['_getListItemDefinitionsAndCommands']();_0x44d58a['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x218c52,_0x3f7597)),_0x44d58a['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x218c52,_0x3f7597));}['_createMenuBarMenuView'](_0x41d48f,_0x170dd4){const _0x304e95=this['editor'],_0x1df01e=_0x304e95['locale'],_0x18a6f2=new _0x5a6e6c(_0x1df01e),_0x1d508c=new _0x5b8430(_0x1df01e);_0x1d508c['set']({'ariaLabel':d(_0x1df01e,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x18a6f2['buttonView']),_0x18a6f2['bind']('isEnabled')['toMany'](_0x170dd4,'isEnabled',(..._0x3aac89)=>_0x3aac89['some'](_0x1ccbfa=>_0x1ccbfa));for(const _0x3ac095 of _0x41d48f){const _0x271003=new _0x2e0d88(_0x1df01e,_0x18a6f2),_0x44ee02=new _0xe9f8dd(_0x1df01e);_0x44ee02['delegate']('execute')['to'](_0x18a6f2),_0x44ee02['bind'](...Object['keys'](_0x3ac095['model']))['to'](_0x3ac095['model']),_0x44ee02['on']('execute',()=>{_0x304e95['execute'](_0x3ac095['model']['commandName']),_0x304e95['editing']['view']['focus']();}),_0x271003['children']['add'](_0x44ee02),_0x1d508c['items']['add'](_0x271003);}return _0x18a6f2['panelView']['children']['add'](_0x1d508c),_0x18a6f2;}['_createDropdownView'](_0xa635b1,_0x51ce6d){const _0x276a53=this['editor'],_0xe1bf95=_0x1683f1(_0x276a53['locale']);return this['_setButtonProperties'](_0xe1bf95['buttonView']),_0xe1bf95['buttonView']['set']({'tooltip':!0x0}),_0xe1bf95['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x2b2ecc(_0xe1bf95,_0xa635b1,{'ariaLabel':d(_0x276a53['locale'],'Case\x20change'),'role':'menu'}),_0xe1bf95['bind']('isEnabled')['toMany'](_0x51ce6d,'isEnabled',(..._0x41f635)=>_0x41f635['some'](_0x2eed8c=>_0x2eed8c)),this['listenTo'](_0xe1bf95,'execute',_0x5bbc12=>{_0x276a53['execute'](_0x5bbc12['source']['commandName']),_0x276a53['editing']['view']['focus']();}),_0xe1bf95;}['_setButtonProperties'](_0x1ce123){const _0x4dc5a2=this['editor'];_0x1ce123['set']({'label':d(_0x4dc5a2['locale'],'Case\x20change'),'icon':_0x3dd34d,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x5ab3c6=new _0x3c2c72(),_0x4027f5=[];for(const _0x568b82 of g(this['editor']['locale'])){const _0x51edde=this['editor']['commands']['get'](_0x568b82['commandName']),_0x3b42c1=new _0x2e1396({'commandName':_0x568b82['commandName'],'label':_0x568b82['label'],'role':'menuitemradio','withText':!0x0});_0x3b42c1['bind']('isEnabled')['to'](_0x51edde,'isEnabled'),_0x5ab3c6['add']({'type':'button','model':_0x3b42c1}),_0x4027f5['push'](_0x51edde);}return{'itemDefinitions':_0x5ab3c6,'commands':_0x4027f5};}}class CaseChange extends _0x1d678f{static get['requires'](){return[CaseChangeEditing,CaseChangeUI];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{CaseChange,CaseChangeCommand,CaseChangeEditing,CaseChangeUI};
23
+ import{Command as _0x2f0700,Plugin as _0x2efece}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x2aa0f2,Collection as _0x4fc361}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x485b44,MenuBarMenuListView as _0x138a18,MenuBarMenuListItemView as _0x112305,MenuBarMenuListItemButtonView as _0xf802ef,createDropdown as _0xb053ba,addListToDropdown as _0x50ec5f,UIModel as _0x14f5a5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x44ac38}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0x2f0700{['_transformCallback'];constructor(_0xcca3b7,_0x1fede2){super(_0xcca3b7),this['_transformCallback']=_0x1fede2;}['execute'](){const _0x32199d=this['editor']['model'],_0x18d188=Array['from'](this['_getAffectedRanges']()),_0x3f0cfc=Array['from'](_0x32199d['document']['selection']['getRanges']());_0x32199d['change'](_0x1e2c88=>{for(const _0x3518b6 of _0x18d188)this['_modifyContent'](_0x3518b6,_0x1e2c88);_0x1e2c88['setSelection'](_0x3f0cfc);});}['refresh'](){for(const _0x2ff0e5 of this['_getAffectedRanges']())for(const _0x95ab6a of _0x2ff0e5)if(_0x95ab6a['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x1b3fe3=this['editor']['model'],_0x3e6520=_0x1b3fe3['document']['selection'];if(_0x3e6520['isCollapsed']){const _0x456937=this['_findAncestorTextBlock'](_0x3e6520['getFirstPosition']()['parent']);return _0x456937?[_0x1b3fe3['createRangeIn'](_0x456937)]:[];}return _0x3e6520['getRanges']();}['_modifyContent'](_0x4e3a77,_0xa47332){for(const _0x1d9a00 of this['_getElementsAllowingText'](_0x4e3a77)){const _0x5d0807=this['_getElementTextContent'](_0x1d9a00),_0x2bdec9=this['_transformCallback'](_0x5d0807);for(const _0x3a4c04 of this['_getTextNodesRangeLimited'](_0x1d9a00,_0x4e3a77))this['_replaceTextNodeData'](_0x3a4c04,_0x2bdec9,_0xa47332);}}['_findAncestorTextBlock'](_0xb2fa59){const _0x4620e5=this['editor']['model']['schema'];if(_0xb2fa59['is']('element')&&_0x4620e5['checkChild'](_0xb2fa59,'$text'))return _0xb2fa59;const _0x2f03bb=_0xb2fa59['parent'];return!_0x2f03bb||_0x4620e5['isLimit'](_0xb2fa59)?null:this['_findAncestorTextBlock'](_0x2f03bb);}*['_getElementsAllowingText'](_0x11e460){const _0x39744a=new Set();for(const {item:_0x5626be}of _0x11e460['getWalker']()){const _0x49895f=this['_findAncestorTextBlock'](_0x5626be);_0x49895f&&!_0x39744a['has'](_0x49895f)&&(_0x39744a['add'](_0x49895f),yield _0x49895f);}}['_getElementTextContent'](_0x22ee92){return Array['from'](_0x22ee92['getChildren']())['reduce']((_0x279cb3,_0x2559b9)=>_0x279cb3+(_0x2559b9['is']('$text')?_0x2559b9['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x3f5c21,_0x1fc8d3){const _0x365846=_0x1fc8d3['getIntersection'](this['editor']['model']['createRangeIn'](_0x3f5c21));if(_0x365846){for(const _0x42c9ea of _0x365846['getItems']())_0x42c9ea['is']('$textProxy')&&_0x42c9ea['parent']==_0x3f5c21&&(yield _0x42c9ea);}}['_replaceTextNodeData'](_0x11e5f6,_0x4e1001,_0x59a46d){const _0x3b84f2=_0x4e1001['substring'](_0x11e5f6['startOffset'],_0x11e5f6['endOffset']);if(_0x3b84f2===_0x11e5f6['data'])return;const _0x147a19=_0x11e5f6['getAttributes']();this['editor']['model']['insertContent'](_0x59a46d['createText'](_0x3b84f2,_0x147a19),_0x59a46d['createSelection'](_0x59a46d['createRangeOn'](_0x11e5f6)));}}function d(_0x3d3183,_0x202cf7,..._0x174ae1){const t=_0x3d3183['t'];switch(_0x202cf7){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',..._0x174ae1);default:return _0x202cf7;}}class CaseChangeEditing extends _0x2efece{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4a5164=this['editor'],_0x332c9d=_0x4a5164['locale']['contentLanguage'],_0x25acd=function(_0x1d2896=[]){return'function'==typeof _0x1d2896?_0x1d2896:(_0x4d23a0,{wordIndex:_0x45a999})=>_0x45a999>0x0&&_0x1d2896['includes'](_0x4d23a0);}(_0x4a5164['config']['get']('caseChange.titleCase.excludeWords')),_0xcac48b={'changeCaseUpper':new CaseChangeCommand(_0x4a5164,_0x4d9641=>_0x4d9641['toLocaleUpperCase'](_0x332c9d)),'changeCaseLower':new CaseChangeCommand(_0x4a5164,_0x193f38=>_0x193f38['toLocaleLowerCase'](_0x332c9d)),'changeCaseTitle':new CaseChangeCommand(_0x4a5164,_0x1bdf54=>function(_0x1cdab0,_0x2288dd,_0x328a8a){return function(_0xc988da,_0x216a57){let _0xe8c4bb='',_0x291dba=0x0,_0x355d5d=0x0;for(const _0x440c3d of _0xc988da['matchAll'](/ +/g)){const _0x5c41cb=_0x440c3d['index'],_0x2796ed=_0xc988da['substring'](_0x291dba,_0x5c41cb);_0x2796ed['length']&&(_0xe8c4bb+=_0x216a57(_0x2796ed,_0x291dba,_0x355d5d++)),_0xe8c4bb+=_0x440c3d[0x0],_0x291dba=_0x5c41cb+_0x440c3d[0x0]['length'];}const _0x213e43=_0xc988da['substring'](_0x291dba);return _0x213e43['length']&&(_0xe8c4bb+=_0x216a57(_0x213e43,_0x291dba,_0x355d5d)),_0xe8c4bb;}(_0x1cdab0,(_0x3b6b4f,_0x1dac3c,_0x47fd16)=>{const _0x19f8a9=_0x3b6b4f['toLocaleLowerCase'](_0x328a8a);return _0x2288dd(_0x19f8a9,{'charOffset':_0x1dac3c,'wordIndex':_0x47fd16,'blockText':_0x1cdab0})?_0x19f8a9:_0x19f8a9['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x27c903=>_0x27c903['toLocaleUpperCase'](_0x328a8a));});}(_0x1bdf54,_0x25acd,_0x332c9d))};for(const [_0x13b50c,_0x22f4d2]of Object['entries'](_0xcac48b))_0x4a5164['commands']['add'](_0x13b50c,_0x22f4d2),_0x22f4d2['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x13b50c);});this['listenTo'](_0x4a5164['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x4a5164['keystrokes']['set']('shift+f3',(_0x5141f9,_0x58dc0b)=>{const _0x3599ee=g(this['editor']['locale']),_0x60eb2d=_0x3599ee[this['_currentCommandIndex']%_0x3599ee['length']]['commandName'];_0x4a5164['execute'](_0x60eb2d),this['_currentCommandIndex']++,_0x58dc0b();});}['afterInit'](){!async function(_0x480112){const _0x333a23=_0x59837c([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]),_0xf83e51=0x334129cd,_0x29c6d3=0x3346a3a5^_0xf83e51,_0x3eaf0b=window[_0x59837c([0x44,0x61,0x74,0x65])][_0x59837c([0x6e,0x6f,0x77])](),_0x22e275=_0x480112[_0x59837c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x316c9a=new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17739f=>{_0x22e275[_0x59837c([0x6f,0x6e,0x63,0x65])](_0x59837c([0x72,0x65,0x61,0x64,0x79]),_0x17739f);}),_0x375118={[_0x59837c([0x6b,0x74,0x79])]:_0x59837c([0x45,0x43]),[_0x59837c([0x75,0x73,0x65])]:_0x59837c([0x73,0x69,0x67]),[_0x59837c([0x63,0x72,0x76])]:_0x59837c([0x50,0x2d,0x32,0x35,0x36]),[_0x59837c([0x78])]:_0x59837c([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]),[_0x59837c([0x79])]:_0x59837c([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]),[_0x59837c([0x61,0x6c,0x67])]:_0x59837c([0x45,0x53,0x32,0x35,0x36])},_0x38a36a=_0x22e275[_0x59837c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59837c([0x67,0x65,0x74])](_0x59837c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x447cfa(){let _0x2baddf,_0x5a02f8=null,_0x1d86b7=null;try{if(_0x38a36a==_0x59837c([0x47,0x50,0x4c]))return _0x59837c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2baddf=_0x314b17(),!_0x2baddf)return _0x59837c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2baddf[_0x59837c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d86b7=_0x408ab2(_0x2baddf[_0x59837c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2baddf[_0x59837c([0x6a,0x74,0x69])])),await _0x56a6b()?_0x3e2940()?_0x3e1196()?_0x59837c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25fe0f()?(_0x2baddf[_0x59837c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59837c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a02f8=_0x280dec(_0x59837c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12b6ea()):_0x59837c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59837c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59837c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x59837c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3e1196(){const _0x9d1587=[_0x59837c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59837c([0x74,0x72,0x69,0x61,0x6c])][_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2baddf[_0x59837c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3eaf0b/0x3e8:0xe10*_0x29c6d3;return _0x2baddf[_0x59837c([0x65,0x78,0x70])]<_0x9d1587;}function _0x3e2940(){const _0x60b2f9=_0x2baddf[_0x59837c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x60b2f9&&(!!_0x60b2f9[_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59837c([0x2a]))||(!!_0x60b2f9[_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59837c([0x43,0x43]))||!!_0x60b2f9[_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59837c([0x50,0x50]))));}function _0x25fe0f(){const _0x33adcd=_0x2baddf[_0x59837c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33adcd||0x0==_0x33adcd[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59ac06}=new URL(window[_0x59837c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33adcd[_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59ac06))return!0x0;const _0x135b5d=_0x59ac06[_0x59837c([0x73,0x70,0x6c,0x69,0x74])](_0x59837c([0x2e]));return _0x33adcd[_0x59837c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32b0d6=>_0x32b0d6[_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59837c([0x2a])))[_0x59837c([0x6d,0x61,0x70])](_0x2bd818=>_0x2bd818[_0x59837c([0x73,0x70,0x6c,0x69,0x74])](_0x59837c([0x2e])))[_0x59837c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x145635=>_0x145635[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x135b5d[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59837c([0x6d,0x61,0x70])](_0x414a0e=>Array(_0x135b5d[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x414a0e[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59837c([0x66,0x69,0x6c,0x6c])](_0x414a0e[0x0]===_0x59837c([0x2a])?_0x59837c([0x2a]):'')[_0x59837c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x414a0e))[_0x59837c([0x73,0x6f,0x6d,0x65])](_0x34d553=>_0x135b5d[_0x59837c([0x65,0x76,0x65,0x72,0x79])]((_0x29dbe3,_0x39b58b)=>_0x34d553[_0x39b58b]===_0x29dbe3||_0x34d553[_0x39b58b]===_0x59837c([0x2a])));}function _0x12b6ea(){return _0x5a02f8&&_0x1d86b7?new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f2300,_0x1181d1)=>{_0x5a02f8[_0x59837c([0x74,0x68,0x65,0x6e])](_0x1f2300,_0x1181d1),_0x1d86b7[_0x59837c([0x74,0x68,0x65,0x6e])](_0x30654d=>{_0x30654d!=_0x59837c([0x56,0x61,0x6c,0x69,0x64])&&_0x1f2300(_0x30654d);},_0x1181d1);}):_0x5a02f8||_0x1d86b7||_0x59837c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x408ab2(_0x45fc58,_0x1ebe36){return new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e0805=>{if(_0x8fe657())return _0x4e0805(_0x59837c([0x56,0x61,0x6c,0x69,0x64]));_0x222005(),_0x22e275[_0x59837c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59837c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ec4c6=!0x1;const _0x2a125d=_0x2aa0f2();function _0x3b0c33(_0x133d6b){return!!_0x133d6b&&(typeof _0x133d6b===_0x59837c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x133d6b===_0x59837c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x133d6b[_0x59837c([0x74,0x68,0x65,0x6e])]===_0x59837c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x133d6b[_0x59837c([0x63,0x61,0x74,0x63,0x68])]===_0x59837c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29781a(_0x41323b){_0x57683e(_0x41323b)[_0x59837c([0x74,0x68,0x65,0x6e])](_0x5c83ae=>{if(!_0x5c83ae||_0x5c83ae[_0x59837c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59837c([0x6f,0x6b]))return _0x59837c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1465bc(_0x51b44f(_0x2a125d+_0x1ebe36))!=_0x5c83ae[_0x59837c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59837c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59837c([0x56,0x61,0x6c,0x69,0x64]);})[_0x59837c([0x74,0x68,0x65,0x6e])](_0xd1ebdf=>(_0x3dc7a8(),_0xd1ebdf),()=>{const _0x25de39=_0x43b758();return null==_0x25de39?(_0x3dc7a8(),_0x59837c([0x56,0x61,0x6c,0x69,0x64])):_0x59837c(_0x3eaf0b-_0x25de39>(0x174dadcd^_0xf83e51)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59837c([0x74,0x68,0x65,0x6e])](_0x4e0805)[_0x59837c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e0805(_0x59837c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41dbcf=0x3377c74d^_0xf83e51;function _0x3dc7a8(){const _0x426bc4=_0x59837c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1465bc(_0x51b44f(_0x45fc58)),_0xc5cbe5=_0x47541a(_0x1465bc(window[_0x59837c([0x4d,0x61,0x74,0x68])][_0x59837c([0x63,0x65,0x69,0x6c])](_0x3eaf0b/_0x41dbcf)));window[_0x59837c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59837c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x426bc4,_0xc5cbe5);}function _0x43b758(){const _0x5d8c6c=_0x59837c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1465bc(_0x51b44f(_0x45fc58)),_0x1a9bac=window[_0x59837c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59837c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d8c6c);return _0x1a9bac?window[_0x59837c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47541a(_0x1a9bac),0x10)*_0x41dbcf:null;}function _0x57683e(_0x4a2a39){return new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18056b,_0x4b4968)=>{_0x4a2a39[_0x59837c([0x74,0x68,0x65,0x6e])](_0x18056b,_0x4b4968),window[_0x59837c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b4968,0x3340fd0d^_0xf83e51);});}}_0x22e275[_0x59837c([0x6f,0x6e])](_0x59837c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14e8dc,_0x40e408)=>{if(_0x40e408[0x0]!=_0x45fc58)return _0x4e0805(_0x59837c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40e408[0x1]={..._0x40e408[0x1],[_0x59837c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a125d};},{[_0x59837c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59837c([0x68,0x69,0x67,0x68])}),_0x22e275[_0x59837c([0x6f,0x6e])](_0x59837c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f7ad5=>{_0x3b0c33(_0x4f7ad5[_0x59837c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ec4c6=!0x0,_0x29781a(_0x4f7ad5[_0x59837c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59837c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59837c([0x6c,0x6f,0x77])}),_0x316c9a[_0x59837c([0x74,0x68,0x65,0x6e])](()=>{_0x2ec4c6||_0x4e0805(_0x59837c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8fe657(){return _0x22e275[_0x59837c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59837c([0x76,0x69,0x65,0x77])][_0x59837c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59837c([0x61,0x75,0x74,0x6f]);}function _0x222005(){_0x22e275[_0x59837c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59837c([0x76,0x69,0x65,0x77])][_0x59837c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59837c([0x61,0x75,0x74,0x6f]);}}function _0x280dec(_0x3116e0){const _0xa8801f=[new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1425c1=>setTimeout(_0x1425c1,0x33481701^_0xf83e51)),_0x316c9a[_0x59837c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57b1bc=>{let _0x2a4d5f=0x0;_0x22e275[_0x59837c([0x6d,0x6f,0x64,0x65,0x6c])][_0x59837c([0x6f,0x6e])](_0x59837c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35d56d,_0x42a1d9)=>{_0x42a1d9[0x0][_0x59837c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a4d5f++,_0x2a4d5f==(0x33412c25^_0xf83e51)&&(_0x57b1bc(),_0x35d56d[_0x59837c([0x6f,0x66,0x66])]());});}))];return window[_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59837c([0x72,0x61,0x63,0x65])](_0xa8801f)[_0x59837c([0x74,0x68,0x65,0x6e])](()=>_0x3116e0);}async function _0xd1cdd(){await _0x316c9a,_0x22e275[_0x59837c([0x6d,0x6f,0x64,0x65,0x6c])][_0x59837c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x222234,_0x22e275[_0x59837c([0x6d,0x6f,0x64,0x65,0x6c])][_0x59837c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x222234,_0x22e275[_0x59837c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59837c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e4b5d(_0x49670a){const _0x5e9a4a=_0x219334();_0x22e275[_0x5e9a4a]=_0x59837c([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49670a,_0x49670a!=_0x59837c([0x56,0x61,0x6c,0x69,0x64])&&_0xd1cdd();}function _0x219334(){const _0x53d149=window[_0x59837c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59837c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59837c([0x6e,0x6f,0x77])]())[_0x59837c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59837c([0x2e]),'');let _0x3e1790=_0x59837c([0x45]);for(let _0x591eda=0x0;_0x591eda<_0x53d149[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x591eda+=0x2){let _0x38c049=window[_0x59837c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53d149[_0x59837c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x591eda,_0x591eda+0x2));_0x38c049>=_0x333a23[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x38c049-=_0x333a23[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e1790+=_0x333a23[_0x38c049];}return _0x3e1790;}function _0x314b17(){const _0x4552e8=_0x38a36a[_0x59837c([0x73,0x70,0x6c,0x69,0x74])](_0x59837c([0x2e]));if(0x3!=_0x4552e8[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35c48e(_0x4552e8[0x1]);function _0x35c48e(_0x8b93ea){const _0x5d6847=_0x5982c4(_0x8b93ea);return _0x5d6847&&_0x1fb92d()?_0x5d6847:null;function _0x1fb92d(){const _0x44da70=_0x5d6847[_0x59837c([0x6a,0x74,0x69])],_0x1fdaf7=window[_0x59837c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44da70[_0x59837c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44da70[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1bbb25={..._0x5d6847,[_0x59837c([0x6a,0x74,0x69])]:_0x44da70[_0x59837c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44da70[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1bbb25[_0x59837c([0x76,0x63])],_0x51b44f(_0x1bbb25)==_0x1fdaf7;}}}async function _0x56a6b(){let _0x183ea8=!0x0;try{const _0x4d144f=_0x38a36a[_0x59837c([0x73,0x70,0x6c,0x69,0x74])](_0x59837c([0x2e])),[_0x42314b,_0x17ffb5,_0x4c1001]=_0x4d144f;return _0x3d517b(_0x42314b),await _0x2db613(_0x42314b,_0x17ffb5,_0x4c1001),_0x183ea8;}catch{return!0x1;}function _0x3d517b(_0x3e3fc7){const _0x17ea98=_0x5982c4(_0x3e3fc7);_0x17ea98&&_0x17ea98[_0x59837c([0x61,0x6c,0x67])]==_0x59837c([0x45,0x53,0x32,0x35,0x36])||(_0x183ea8=!0x1);}async function _0x2db613(_0x5d203d,_0x24367a,_0x1da1e5){const _0x4ea720=window[_0x59837c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59837c([0x66,0x72,0x6f,0x6d])](_0x5f2666(_0x1da1e5),_0x170663=>_0x170663[_0x59837c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x135923=new window[(_0x59837c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59837c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d203d+_0x59837c([0x2e])+_0x24367a),_0x190316=window[_0x59837c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59837c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x190316)return;const _0x160b5e=await _0x190316[_0x59837c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59837c([0x6a,0x77,0x6b]),_0x375118,{[_0x59837c([0x6e,0x61,0x6d,0x65])]:_0x59837c([0x45,0x43,0x44,0x53,0x41]),[_0x59837c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59837c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59837c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x190316[_0x59837c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59837c([0x6e,0x61,0x6d,0x65])]:_0x59837c([0x45,0x43,0x44,0x53,0x41]),[_0x59837c([0x68,0x61,0x73,0x68])]:{[_0x59837c([0x6e,0x61,0x6d,0x65])]:_0x59837c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x160b5e,_0x4ea720,_0x135923)||(_0x183ea8=!0x1);}}function _0x5982c4(_0x244a45){return _0x244a45[_0x59837c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59837c([0x65,0x79]))?JSON[_0x59837c([0x70,0x61,0x72,0x73,0x65])](_0x5f2666(_0x244a45)):null;}function _0x5f2666(_0xdad89f){return window[_0x59837c([0x61,0x74,0x6f,0x62])](_0xdad89f[_0x59837c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59837c([0x2b]))[_0x59837c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59837c([0x2f])));}function _0x51b44f(_0x37d6ef){let _0x3be0b7=0x1505;function _0x56eefb(_0xb78546){for(let _0x4ebdad=0x0;_0x4ebdad<_0xb78546[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ebdad++){const _0x251dc6=_0xb78546[_0x59837c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ebdad);_0x3be0b7=(_0x3be0b7<<0x5)+_0x3be0b7+_0x251dc6,_0x3be0b7&=_0x3be0b7;}}function _0x4467f7(_0x48645c){Array[_0x59837c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48645c)?_0x48645c[_0x59837c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4467f7):_0x48645c&&typeof _0x48645c==_0x59837c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59837c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48645c)[_0x59837c([0x73,0x6f,0x72,0x74])]()[_0x59837c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cdd41,_0x3eb2c8])=>{_0x56eefb(_0x2cdd41),_0x4467f7(_0x3eb2c8);}):_0x56eefb(window[_0x59837c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48645c));}return _0x4467f7(_0x37d6ef),_0x3be0b7>>>0x0;}function _0x1465bc(_0x1b8b4d){return _0x1b8b4d[_0x59837c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59837c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59837c([0x30]));}function _0x47541a(_0x52326e){return _0x52326e[_0x59837c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59837c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59837c([0x6a,0x6f,0x69,0x6e])]('');}function _0x222234(){}function _0x59837c(_0x1777d5){return _0x1777d5['map'](_0x3d2e04=>String['fromCharCode'](_0x3d2e04))['join']('');}_0x4e4b5d(await _0x447cfa());}(this);}['_announceCaseChangeOperation'](_0x2978d3){const {ui:_0x6ea01,locale:_0xfa960b}=this['editor'],_0xaa7994=g(_0xfa960b)['find'](_0x288dff=>_0x288dff['commandName']===_0x2978d3)['label']['toLowerCase']();_0x6ea01['ariaLiveAnnouncer']['announce'](d(_0xfa960b,'Changed\x20case\x20to\x20%0',_0xaa7994));}}function g(_0x33fc7b){return[{'label':d(_0x33fc7b,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0x33fc7b,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0x33fc7b,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0x2efece{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4a1e43=this['editor'];this['_registerComponents'](),_0x4a1e43['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x4a1e43['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5077fd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x31e0c4;for(const _0x578904 in _0x5077fd){const _0x4eb881=_0x578904,_0x65491b=_0x5077fd[_0x4eb881];if('caseChangeLicenseKeyValid'==_0x65491b||'caseChangeLicenseKeyInvalid'==_0x65491b||'caseChangeLicenseKeyExpired'==_0x65491b||'caseChangeLicenseKeyDomainLimit'==_0x65491b||'caseChangeLicenseKeyNotAllowed'==_0x65491b||'caseChangeLicenseKeyEvaluationLimit'==_0x65491b||'caseChangeLicenseKeyUsageLimit'==_0x65491b){delete _0x5077fd[_0x4eb881],_0x31e0c4=_0x65491b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x31e0c4&&_0x5077fd['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x31e0c4&&_0x5077fd['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x31e0c4&&_0x5077fd['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x31e0c4&&_0x5077fd['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x31e0c4&&_0x5077fd['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x31e0c4&&_0x5077fd['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x2d5e60=this['editor'],{itemDefinitions:_0x37f281,commands:_0x24afb0}=this['_getListItemDefinitionsAndCommands']();_0x2d5e60['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x37f281,_0x24afb0)),_0x2d5e60['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x37f281,_0x24afb0));}['_createMenuBarMenuView'](_0x2a697c,_0x1381c1){const _0x40bb26=this['editor'],_0x91bf2=_0x40bb26['locale'],_0x30f96a=new _0x485b44(_0x91bf2),_0xe75de6=new _0x138a18(_0x91bf2);_0xe75de6['set']({'ariaLabel':d(_0x91bf2,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x30f96a['buttonView']),_0x30f96a['bind']('isEnabled')['toMany'](_0x1381c1,'isEnabled',(..._0x31975d)=>_0x31975d['some'](_0x38f480=>_0x38f480));for(const _0x183621 of _0x2a697c){const _0x4ec433=new _0x112305(_0x91bf2,_0x30f96a),_0x5efc32=new _0xf802ef(_0x91bf2);_0x5efc32['delegate']('execute')['to'](_0x30f96a),_0x5efc32['bind'](...Object['keys'](_0x183621['model']))['to'](_0x183621['model']),_0x5efc32['on']('execute',()=>{_0x40bb26['execute'](_0x183621['model']['commandName']),_0x40bb26['editing']['view']['focus']();}),_0x4ec433['children']['add'](_0x5efc32),_0xe75de6['items']['add'](_0x4ec433);}return _0x30f96a['panelView']['children']['add'](_0xe75de6),_0x30f96a;}['_createDropdownView'](_0x4fcd2e,_0xbce458){const _0xb6fb75=this['editor'],_0x297d94=_0xb053ba(_0xb6fb75['locale']);return this['_setButtonProperties'](_0x297d94['buttonView']),_0x297d94['buttonView']['set']({'tooltip':!0x0}),_0x297d94['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x50ec5f(_0x297d94,_0x4fcd2e,{'ariaLabel':d(_0xb6fb75['locale'],'Case\x20change'),'role':'menu'}),_0x297d94['bind']('isEnabled')['toMany'](_0xbce458,'isEnabled',(..._0x35c921)=>_0x35c921['some'](_0x4557e5=>_0x4557e5)),this['listenTo'](_0x297d94,'execute',_0x313aae=>{_0xb6fb75['execute'](_0x313aae['source']['commandName']),_0xb6fb75['editing']['view']['focus']();}),_0x297d94;}['_setButtonProperties'](_0x245cf8){const _0x326205=this['editor'];_0x245cf8['set']({'label':d(_0x326205['locale'],'Case\x20change'),'icon':_0x44ac38,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x324015=new _0x4fc361(),_0x4a067a=[];for(const _0x3463ac of g(this['editor']['locale'])){const _0x3a4146=this['editor']['commands']['get'](_0x3463ac['commandName']),_0x237f97=new _0x14f5a5({'commandName':_0x3463ac['commandName'],'label':_0x3463ac['label'],'role':'menuitemradio','withText':!0x0});_0x237f97['bind']('isEnabled')['to'](_0x3a4146,'isEnabled'),_0x324015['add']({'type':'button','model':_0x237f97}),_0x4a067a['push'](_0x3a4146);}return{'itemDefinitions':_0x324015,'commands':_0x4a067a};}}class CaseChange extends _0x2efece{static get['requires'](){return[CaseChangeEditing,CaseChangeUI];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{CaseChange,CaseChangeCommand,CaseChangeEditing,CaseChangeUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-case-change",
3
- "version": "48.8.1-alpha.1",
3
+ "version": "48.8.1-alpha.3",
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.8.1-alpha.1",
40
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.1",
41
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.1",
42
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.1",
43
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.1"
39
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.3",
40
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.3",
41
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.3",
42
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.3",
43
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.3"
44
44
  },
45
45
  "files": [
46
46
  "dist",