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

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 _0x5080a4,Plugin as _0x2596fc}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x18e358,Collection as _0x18d6f8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x33f1ae,MenuBarMenuListView as _0x242f5e,MenuBarMenuListItemView as _0x58b395,MenuBarMenuListItemButtonView as _0x1209ff,createDropdown as _0x41164e,addListToDropdown as _0x11d036,UIModel as _0x395f24}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x2438bf}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0x5080a4{['_transformCallback'];constructor(_0x3b8926,_0x349d0d){super(_0x3b8926),this['_transformCallback']=_0x349d0d;}['execute'](){const _0x145e57=this['editor']['model'],_0x5f3f19=Array['from'](this['_getAffectedRanges']()),_0x283554=Array['from'](_0x145e57['document']['selection']['getRanges']());_0x145e57['change'](_0x2534e4=>{for(const _0x399994 of _0x5f3f19)this['_modifyContent'](_0x399994,_0x2534e4);_0x2534e4['setSelection'](_0x283554);});}['refresh'](){for(const _0x12ff72 of this['_getAffectedRanges']())for(const _0x8f4a87 of _0x12ff72)if(_0x8f4a87['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0xb84304=this['editor']['model'],_0x2252b3=_0xb84304['document']['selection'];if(_0x2252b3['isCollapsed']){const _0x5ad2aa=this['_findAncestorTextBlock'](_0x2252b3['getFirstPosition']()['parent']);return _0x5ad2aa?[_0xb84304['createRangeIn'](_0x5ad2aa)]:[];}return _0x2252b3['getRanges']();}['_modifyContent'](_0x13ab65,_0x2321b7){for(const _0x3c6b53 of this['_getElementsAllowingText'](_0x13ab65)){const _0x285e08=this['_getElementTextContent'](_0x3c6b53),_0x42990c=this['_transformCallback'](_0x285e08);for(const _0x1d5236 of this['_getTextNodesRangeLimited'](_0x3c6b53,_0x13ab65))this['_replaceTextNodeData'](_0x1d5236,_0x42990c,_0x2321b7);}}['_findAncestorTextBlock'](_0x4fdba6){const _0x407aa9=this['editor']['model']['schema'];if(_0x4fdba6['is']('element')&&_0x407aa9['checkChild'](_0x4fdba6,'$text'))return _0x4fdba6;const _0x2bb390=_0x4fdba6['parent'];return!_0x2bb390||_0x407aa9['isLimit'](_0x4fdba6)?null:this['_findAncestorTextBlock'](_0x2bb390);}*['_getElementsAllowingText'](_0x3a7278){const _0x382c95=new Set();for(const {item:_0x431a7f}of _0x3a7278['getWalker']()){const _0x72fa8c=this['_findAncestorTextBlock'](_0x431a7f);_0x72fa8c&&!_0x382c95['has'](_0x72fa8c)&&(_0x382c95['add'](_0x72fa8c),yield _0x72fa8c);}}['_getElementTextContent'](_0x3a826c){return Array['from'](_0x3a826c['getChildren']())['reduce']((_0x41bf35,_0x2b9e9b)=>_0x41bf35+(_0x2b9e9b['is']('$text')?_0x2b9e9b['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x35fa9f,_0x1704a4){const _0x56839f=_0x1704a4['getIntersection'](this['editor']['model']['createRangeIn'](_0x35fa9f));if(_0x56839f){for(const _0xe9165e of _0x56839f['getItems']())_0xe9165e['is']('$textProxy')&&_0xe9165e['parent']==_0x35fa9f&&(yield _0xe9165e);}}['_replaceTextNodeData'](_0x3752c7,_0x35a33a,_0x3fd450){const _0x198443=_0x35a33a['substring'](_0x3752c7['startOffset'],_0x3752c7['endOffset']);if(_0x198443===_0x3752c7['data'])return;const _0x2c5d37=_0x3752c7['getAttributes']();this['editor']['model']['insertContent'](_0x3fd450['createText'](_0x198443,_0x2c5d37),_0x3fd450['createSelection'](_0x3fd450['createRangeOn'](_0x3752c7)));}}function d(_0x213063,_0x554a83,..._0x3bc61c){const t=_0x213063['t'];switch(_0x554a83){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',..._0x3bc61c);default:return _0x554a83;}}class CaseChangeEditing extends _0x2596fc{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4e84ed=this['editor'],_0x31599a=_0x4e84ed['locale']['contentLanguage'],_0x23a102=function(_0x381796=[]){return'function'==typeof _0x381796?_0x381796:(_0x3686fb,{wordIndex:_0x13bebe})=>_0x13bebe>0x0&&_0x381796['includes'](_0x3686fb);}(_0x4e84ed['config']['get']('caseChange.titleCase.excludeWords')),_0x2586a8={'changeCaseUpper':new CaseChangeCommand(_0x4e84ed,_0x563909=>_0x563909['toLocaleUpperCase'](_0x31599a)),'changeCaseLower':new CaseChangeCommand(_0x4e84ed,_0x4972f3=>_0x4972f3['toLocaleLowerCase'](_0x31599a)),'changeCaseTitle':new CaseChangeCommand(_0x4e84ed,_0x48a466=>function(_0x5e0ce6,_0xe9732d,_0xf2d0ce){return function(_0x252afe,_0xe90e9){let _0x14410d='',_0x21f5c5=0x0,_0x4388ff=0x0;for(const _0x16d80c of _0x252afe['matchAll'](/ +/g)){const _0x257666=_0x16d80c['index'],_0x1248f0=_0x252afe['substring'](_0x21f5c5,_0x257666);_0x1248f0['length']&&(_0x14410d+=_0xe90e9(_0x1248f0,_0x21f5c5,_0x4388ff++)),_0x14410d+=_0x16d80c[0x0],_0x21f5c5=_0x257666+_0x16d80c[0x0]['length'];}const _0xd8ba77=_0x252afe['substring'](_0x21f5c5);return _0xd8ba77['length']&&(_0x14410d+=_0xe90e9(_0xd8ba77,_0x21f5c5,_0x4388ff)),_0x14410d;}(_0x5e0ce6,(_0x4e337b,_0x8e8430,_0x3c6a3d)=>{const _0xf4ce8=_0x4e337b['toLocaleLowerCase'](_0xf2d0ce);return _0xe9732d(_0xf4ce8,{'charOffset':_0x8e8430,'wordIndex':_0x3c6a3d,'blockText':_0x5e0ce6})?_0xf4ce8:_0xf4ce8['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x5df48f=>_0x5df48f['toLocaleUpperCase'](_0xf2d0ce));});}(_0x48a466,_0x23a102,_0x31599a))};for(const [_0x1eb2bc,_0x2028eb]of Object['entries'](_0x2586a8))_0x4e84ed['commands']['add'](_0x1eb2bc,_0x2028eb),_0x2028eb['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x1eb2bc);});this['listenTo'](_0x4e84ed['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x4e84ed['keystrokes']['set']('shift+f3',(_0x2194fb,_0x127ab4)=>{const _0xdac243=g(this['editor']['locale']),_0x550033=_0xdac243[this['_currentCommandIndex']%_0xdac243['length']]['commandName'];_0x4e84ed['execute'](_0x550033),this['_currentCommandIndex']++,_0x127ab4();});}['afterInit'](){!async function(_0x4f292e){const _0x1b92aa=_0x5af351([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]),_0x3a4420=0x334129cd,_0x55170c=0x3346a39d^_0x3a4420,_0x36d647=window[_0x5af351([0x44,0x61,0x74,0x65])][_0x5af351([0x6e,0x6f,0x77])](),_0xbe9728=_0x4f292e[_0x5af351([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a25c0=new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x528d17=>{_0xbe9728[_0x5af351([0x6f,0x6e,0x63,0x65])](_0x5af351([0x72,0x65,0x61,0x64,0x79]),_0x528d17);}),_0x33a525={[_0x5af351([0x6b,0x74,0x79])]:_0x5af351([0x45,0x43]),[_0x5af351([0x75,0x73,0x65])]:_0x5af351([0x73,0x69,0x67]),[_0x5af351([0x63,0x72,0x76])]:_0x5af351([0x50,0x2d,0x32,0x35,0x36]),[_0x5af351([0x78])]:_0x5af351([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]),[_0x5af351([0x79])]:_0x5af351([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]),[_0x5af351([0x61,0x6c,0x67])]:_0x5af351([0x45,0x53,0x32,0x35,0x36])},_0x42961f=_0xbe9728[_0x5af351([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5af351([0x67,0x65,0x74])](_0x5af351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1df860(){let _0x2b13ba,_0x403f71=null,_0x1505d8=null;try{if(_0x42961f==_0x5af351([0x47,0x50,0x4c]))return _0x5af351([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b13ba=_0x40b634(),!_0x2b13ba)return _0x5af351([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b13ba[_0x5af351([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1505d8=_0x480ee5(_0x2b13ba[_0x5af351([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b13ba[_0x5af351([0x6a,0x74,0x69])])),await _0x2a4b37()?_0x4c79e1()?_0x441413()?_0x5af351([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x253b06()?(_0x2b13ba[_0x5af351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5af351([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x403f71=_0x4f63d4(_0x5af351([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3343b9()):_0x5af351([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5af351([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5af351([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5af351([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x441413(){const _0xcf4462=[_0x5af351([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5af351([0x74,0x72,0x69,0x61,0x6c])][_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b13ba[_0x5af351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36d647/0x3e8:0xe10*_0x55170c;return _0x2b13ba[_0x5af351([0x65,0x78,0x70])]<_0xcf4462;}function _0x4c79e1(){const _0x5daa2b=_0x2b13ba[_0x5af351([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5daa2b&&(!!_0x5daa2b[_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5af351([0x2a]))||(!!_0x5daa2b[_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5af351([0x43,0x43]))||!!_0x5daa2b[_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5af351([0x50,0x50]))));}function _0x253b06(){const _0x321057=_0x2b13ba[_0x5af351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x321057||0x0==_0x321057[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a9f0b}=new URL(window[_0x5af351([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x321057[_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a9f0b))return!0x0;const _0x9e04f4=_0x2a9f0b[_0x5af351([0x73,0x70,0x6c,0x69,0x74])](_0x5af351([0x2e]));return _0x321057[_0x5af351([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cd87d=>_0x5cd87d[_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5af351([0x2a])))[_0x5af351([0x6d,0x61,0x70])](_0x1cf37a=>_0x1cf37a[_0x5af351([0x73,0x70,0x6c,0x69,0x74])](_0x5af351([0x2e])))[_0x5af351([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a9ad5=>_0x5a9ad5[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x9e04f4[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5af351([0x6d,0x61,0x70])](_0x406668=>Array(_0x9e04f4[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x406668[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5af351([0x66,0x69,0x6c,0x6c])](_0x406668[0x0]===_0x5af351([0x2a])?_0x5af351([0x2a]):'')[_0x5af351([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x406668))[_0x5af351([0x73,0x6f,0x6d,0x65])](_0xdec466=>_0x9e04f4[_0x5af351([0x65,0x76,0x65,0x72,0x79])]((_0x42abc9,_0x25f25a)=>_0xdec466[_0x25f25a]===_0x42abc9||_0xdec466[_0x25f25a]===_0x5af351([0x2a])));}function _0x3343b9(){return _0x403f71&&_0x1505d8?new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1188b5,_0x385fc8)=>{_0x403f71[_0x5af351([0x74,0x68,0x65,0x6e])](_0x1188b5,_0x385fc8),_0x1505d8[_0x5af351([0x74,0x68,0x65,0x6e])](_0x1a641f=>{_0x1a641f!=_0x5af351([0x56,0x61,0x6c,0x69,0x64])&&_0x1188b5(_0x1a641f);},_0x385fc8);}):_0x403f71||_0x1505d8||_0x5af351([0x56,0x61,0x6c,0x69,0x64]);}}function _0x480ee5(_0x152fda,_0x21a7be){return new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bbdbc=>{if(_0x1f9b43())return _0x4bbdbc(_0x5af351([0x56,0x61,0x6c,0x69,0x64]));_0xbc9a0f(),_0xbe9728[_0x5af351([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5af351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5bb795=!0x1;const _0x7962fb=_0x18e358();function _0x1414a8(_0x4e7868){return!!_0x4e7868&&(typeof _0x4e7868===_0x5af351([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e7868===_0x5af351([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e7868[_0x5af351([0x74,0x68,0x65,0x6e])]===_0x5af351([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e7868[_0x5af351([0x63,0x61,0x74,0x63,0x68])]===_0x5af351([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4873c8(_0x36c867){_0x1b9406(_0x36c867)[_0x5af351([0x74,0x68,0x65,0x6e])](_0x384afc=>{if(!_0x384afc||_0x384afc[_0x5af351([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5af351([0x6f,0x6b]))return _0x5af351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f78a8(_0x42403(_0x7962fb+_0x21a7be))!=_0x384afc[_0x5af351([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5af351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5af351([0x56,0x61,0x6c,0x69,0x64]);})[_0x5af351([0x74,0x68,0x65,0x6e])](_0x16a69a=>(_0x51bd82(),_0x16a69a),()=>{const _0x24a580=_0x30e7f3();return null==_0x24a580?(_0x51bd82(),_0x5af351([0x56,0x61,0x6c,0x69,0x64])):_0x5af351(_0x36d647-_0x24a580>(0x174dadcd^_0x3a4420)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5af351([0x74,0x68,0x65,0x6e])](_0x4bbdbc)[_0x5af351([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4bbdbc(_0x5af351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x209a77=0x3377c74d^_0x3a4420;function _0x51bd82(){const _0x1a866a=_0x5af351([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f78a8(_0x42403(_0x152fda)),_0x5bfd33=_0x5ce050(_0x2f78a8(window[_0x5af351([0x4d,0x61,0x74,0x68])][_0x5af351([0x63,0x65,0x69,0x6c])](_0x36d647/_0x209a77)));window[_0x5af351([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5af351([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a866a,_0x5bfd33);}function _0x30e7f3(){const _0x484c72=_0x5af351([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f78a8(_0x42403(_0x152fda)),_0x1009a9=window[_0x5af351([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5af351([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x484c72);return _0x1009a9?window[_0x5af351([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ce050(_0x1009a9),0x10)*_0x209a77:null;}function _0x1b9406(_0x5ec9bb){return new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bf41b,_0x1d01dd)=>{_0x5ec9bb[_0x5af351([0x74,0x68,0x65,0x6e])](_0x3bf41b,_0x1d01dd),window[_0x5af351([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d01dd,0x3340fd0d^_0x3a4420);});}}_0xbe9728[_0x5af351([0x6f,0x6e])](_0x5af351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x177fbc,_0x20dadb)=>{if(_0x20dadb[0x0]!=_0x152fda)return _0x4bbdbc(_0x5af351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20dadb[0x1]={..._0x20dadb[0x1],[_0x5af351([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7962fb};},{[_0x5af351([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5af351([0x68,0x69,0x67,0x68])}),_0xbe9728[_0x5af351([0x6f,0x6e])](_0x5af351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x417c18=>{_0x1414a8(_0x417c18[_0x5af351([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5bb795=!0x0,_0x4873c8(_0x417c18[_0x5af351([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5af351([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5af351([0x6c,0x6f,0x77])}),_0x1a25c0[_0x5af351([0x74,0x68,0x65,0x6e])](()=>{_0x5bb795||_0x4bbdbc(_0x5af351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f9b43(){return _0xbe9728[_0x5af351([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5af351([0x76,0x69,0x65,0x77])][_0x5af351([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5af351([0x61,0x75,0x74,0x6f]);}function _0xbc9a0f(){_0xbe9728[_0x5af351([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5af351([0x76,0x69,0x65,0x77])][_0x5af351([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5af351([0x61,0x75,0x74,0x6f]);}}function _0x4f63d4(_0x566b45){const _0x1d9073=[new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b2cff=>setTimeout(_0x5b2cff,0x33481701^_0x3a4420)),_0x1a25c0[_0x5af351([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ea0d9=>{let _0x5f0a4f=0x0;_0xbe9728[_0x5af351([0x6d,0x6f,0x64,0x65,0x6c])][_0x5af351([0x6f,0x6e])](_0x5af351([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x403676,_0x1a99ce)=>{_0x1a99ce[0x0][_0x5af351([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5f0a4f++,_0x5f0a4f==(0x33412c25^_0x3a4420)&&(_0x3ea0d9(),_0x403676[_0x5af351([0x6f,0x66,0x66])]());});}))];return window[_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5af351([0x72,0x61,0x63,0x65])](_0x1d9073)[_0x5af351([0x74,0x68,0x65,0x6e])](()=>_0x566b45);}async function _0x478d5b(){await _0x1a25c0,_0xbe9728[_0x5af351([0x6d,0x6f,0x64,0x65,0x6c])][_0x5af351([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe75095,_0xbe9728[_0x5af351([0x6d,0x6f,0x64,0x65,0x6c])][_0x5af351([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe75095,_0xbe9728[_0x5af351([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5af351([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1eac32(_0x1e6629){const _0x11044e=_0x331da5();_0xbe9728[_0x11044e]=_0x5af351([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e6629,_0x1e6629!=_0x5af351([0x56,0x61,0x6c,0x69,0x64])&&_0x478d5b();}function _0x331da5(){const _0x326417=window[_0x5af351([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5af351([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5af351([0x6e,0x6f,0x77])]())[_0x5af351([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5af351([0x2e]),'');let _0x232d61=_0x5af351([0x45]);for(let _0x3042fc=0x0;_0x3042fc<_0x326417[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3042fc+=0x2){let _0x1e7e13=window[_0x5af351([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x326417[_0x5af351([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3042fc,_0x3042fc+0x2));_0x1e7e13>=_0x1b92aa[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e7e13-=_0x1b92aa[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x232d61+=_0x1b92aa[_0x1e7e13];}return _0x232d61;}function _0x40b634(){const _0x2791cc=_0x42961f[_0x5af351([0x73,0x70,0x6c,0x69,0x74])](_0x5af351([0x2e]));if(0x3!=_0x2791cc[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ef606(_0x2791cc[0x1]);function _0x5ef606(_0xc67b2){const _0x55f48e=_0x50bce3(_0xc67b2);return _0x55f48e&&_0x5ec707()?_0x55f48e:null;function _0x5ec707(){const _0x3d3f40=_0x55f48e[_0x5af351([0x6a,0x74,0x69])],_0x4c9578=window[_0x5af351([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d3f40[_0x5af351([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d3f40[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3da812={..._0x55f48e,[_0x5af351([0x6a,0x74,0x69])]:_0x3d3f40[_0x5af351([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3d3f40[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3da812[_0x5af351([0x76,0x63])],_0x42403(_0x3da812)==_0x4c9578;}}}async function _0x2a4b37(){let _0x1cb1ca=!0x0;try{const _0xfe050b=_0x42961f[_0x5af351([0x73,0x70,0x6c,0x69,0x74])](_0x5af351([0x2e])),[_0x310a7b,_0x57e9f9,_0x3d83a7]=_0xfe050b;return _0x50a158(_0x310a7b),await _0x1262bd(_0x310a7b,_0x57e9f9,_0x3d83a7),_0x1cb1ca;}catch{return!0x1;}function _0x50a158(_0x1f1397){const _0x390320=_0x50bce3(_0x1f1397);_0x390320&&_0x390320[_0x5af351([0x61,0x6c,0x67])]==_0x5af351([0x45,0x53,0x32,0x35,0x36])||(_0x1cb1ca=!0x1);}async function _0x1262bd(_0x13dce3,_0x147328,_0x360f68){const _0x3bfa35=window[_0x5af351([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5af351([0x66,0x72,0x6f,0x6d])](_0x21c74b(_0x360f68),_0x86dc2e=>_0x86dc2e[_0x5af351([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x226be8=new window[(_0x5af351([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5af351([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13dce3+_0x5af351([0x2e])+_0x147328),_0x3fa3bf=window[_0x5af351([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5af351([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3fa3bf)return;const _0xf2c898=await _0x3fa3bf[_0x5af351([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5af351([0x6a,0x77,0x6b]),_0x33a525,{[_0x5af351([0x6e,0x61,0x6d,0x65])]:_0x5af351([0x45,0x43,0x44,0x53,0x41]),[_0x5af351([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5af351([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5af351([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3fa3bf[_0x5af351([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5af351([0x6e,0x61,0x6d,0x65])]:_0x5af351([0x45,0x43,0x44,0x53,0x41]),[_0x5af351([0x68,0x61,0x73,0x68])]:{[_0x5af351([0x6e,0x61,0x6d,0x65])]:_0x5af351([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf2c898,_0x3bfa35,_0x226be8)||(_0x1cb1ca=!0x1);}}function _0x50bce3(_0x24a8ad){return _0x24a8ad[_0x5af351([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5af351([0x65,0x79]))?JSON[_0x5af351([0x70,0x61,0x72,0x73,0x65])](_0x21c74b(_0x24a8ad)):null;}function _0x21c74b(_0x20c7ac){return window[_0x5af351([0x61,0x74,0x6f,0x62])](_0x20c7ac[_0x5af351([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5af351([0x2b]))[_0x5af351([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5af351([0x2f])));}function _0x42403(_0x40bfd6){let _0x12b214=0x1505;function _0x31811(_0x56a6ce){for(let _0x5161c0=0x0;_0x5161c0<_0x56a6ce[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5161c0++){const _0x461b94=_0x56a6ce[_0x5af351([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5161c0);_0x12b214=(_0x12b214<<0x5)+_0x12b214+_0x461b94,_0x12b214&=_0x12b214;}}function _0x996ed5(_0x2a4773){Array[_0x5af351([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a4773)?_0x2a4773[_0x5af351([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x996ed5):_0x2a4773&&typeof _0x2a4773==_0x5af351([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5af351([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a4773)[_0x5af351([0x73,0x6f,0x72,0x74])]()[_0x5af351([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x66888f,_0x135ea4])=>{_0x31811(_0x66888f),_0x996ed5(_0x135ea4);}):_0x31811(window[_0x5af351([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a4773));}return _0x996ed5(_0x40bfd6),_0x12b214>>>0x0;}function _0x2f78a8(_0x38c0f4){return _0x38c0f4[_0x5af351([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5af351([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5af351([0x30]));}function _0x5ce050(_0x455241){return _0x455241[_0x5af351([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5af351([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5af351([0x6a,0x6f,0x69,0x6e])]('');}function _0xe75095(){}function _0x5af351(_0x4811f1){return _0x4811f1['map'](_0x44693f=>String['fromCharCode'](_0x44693f))['join']('');}_0x1eac32(await _0x1df860());}(this);}['_announceCaseChangeOperation'](_0x145533){const {ui:_0x215c1a,locale:_0xb0bd37}=this['editor'],_0x213a30=g(_0xb0bd37)['find'](_0x84119d=>_0x84119d['commandName']===_0x145533)['label']['toLowerCase']();_0x215c1a['ariaLiveAnnouncer']['announce'](d(_0xb0bd37,'Changed\x20case\x20to\x20%0',_0x213a30));}}function g(_0x39f67a){return[{'label':d(_0x39f67a,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0x39f67a,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0x39f67a,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0x2596fc{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x6ea8b0=this['editor'];this['_registerComponents'](),_0x6ea8b0['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x6ea8b0['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x57acf5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2996ff;for(const _0x1878c1 in _0x57acf5){const _0x400ed9=_0x1878c1,_0x3370ce=_0x57acf5[_0x400ed9];if('caseChangeLicenseKeyValid'==_0x3370ce||'caseChangeLicenseKeyInvalid'==_0x3370ce||'caseChangeLicenseKeyExpired'==_0x3370ce||'caseChangeLicenseKeyDomainLimit'==_0x3370ce||'caseChangeLicenseKeyNotAllowed'==_0x3370ce||'caseChangeLicenseKeyEvaluationLimit'==_0x3370ce||'caseChangeLicenseKeyUsageLimit'==_0x3370ce){delete _0x57acf5[_0x400ed9],_0x2996ff=_0x3370ce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x2996ff&&_0x57acf5['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x2996ff&&_0x57acf5['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x2996ff&&_0x57acf5['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x2996ff&&_0x57acf5['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x2996ff&&_0x57acf5['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x2996ff&&_0x57acf5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x5ab654=this['editor'],{itemDefinitions:_0x56fc36,commands:_0x433ce2}=this['_getListItemDefinitionsAndCommands']();_0x5ab654['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x56fc36,_0x433ce2)),_0x5ab654['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x56fc36,_0x433ce2));}['_createMenuBarMenuView'](_0x4bbbc0,_0x5eb768){const _0x3379cd=this['editor'],_0x124534=_0x3379cd['locale'],_0x453aaf=new _0x33f1ae(_0x124534),_0x467a59=new _0x242f5e(_0x124534);_0x467a59['set']({'ariaLabel':d(_0x124534,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x453aaf['buttonView']),_0x453aaf['bind']('isEnabled')['toMany'](_0x5eb768,'isEnabled',(..._0x4ca819)=>_0x4ca819['some'](_0x4190b8=>_0x4190b8));for(const _0x1994e9 of _0x4bbbc0){const _0x52a631=new _0x58b395(_0x124534,_0x453aaf),_0x20e54f=new _0x1209ff(_0x124534);_0x20e54f['delegate']('execute')['to'](_0x453aaf),_0x20e54f['bind'](...Object['keys'](_0x1994e9['model']))['to'](_0x1994e9['model']),_0x20e54f['on']('execute',()=>{_0x3379cd['execute'](_0x1994e9['model']['commandName']),_0x3379cd['editing']['view']['focus']();}),_0x52a631['children']['add'](_0x20e54f),_0x467a59['items']['add'](_0x52a631);}return _0x453aaf['panelView']['children']['add'](_0x467a59),_0x453aaf;}['_createDropdownView'](_0x4befe1,_0x4b5020){const _0x56bdd7=this['editor'],_0x3dd81=_0x41164e(_0x56bdd7['locale']);return this['_setButtonProperties'](_0x3dd81['buttonView']),_0x3dd81['buttonView']['set']({'tooltip':!0x0}),_0x3dd81['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x11d036(_0x3dd81,_0x4befe1,{'ariaLabel':d(_0x56bdd7['locale'],'Case\x20change'),'role':'menu'}),_0x3dd81['bind']('isEnabled')['toMany'](_0x4b5020,'isEnabled',(..._0x6f8fd0)=>_0x6f8fd0['some'](_0x20f0ba=>_0x20f0ba)),this['listenTo'](_0x3dd81,'execute',_0x1b3ad6=>{_0x56bdd7['execute'](_0x1b3ad6['source']['commandName']),_0x56bdd7['editing']['view']['focus']();}),_0x3dd81;}['_setButtonProperties'](_0x32a889){const _0x6fa9f2=this['editor'];_0x32a889['set']({'label':d(_0x6fa9f2['locale'],'Case\x20change'),'icon':_0x2438bf,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x40f788=new _0x18d6f8(),_0x28ce5a=[];for(const _0x5bfe0a of g(this['editor']['locale'])){const _0x2d0f02=this['editor']['commands']['get'](_0x5bfe0a['commandName']),_0x4c80c4=new _0x395f24({'commandName':_0x5bfe0a['commandName'],'label':_0x5bfe0a['label'],'role':'menuitemradio','withText':!0x0});_0x4c80c4['bind']('isEnabled')['to'](_0x2d0f02,'isEnabled'),_0x40f788['add']({'type':'button','model':_0x4c80c4}),_0x28ce5a['push'](_0x2d0f02);}return{'itemDefinitions':_0x40f788,'commands':_0x28ce5a};}}class CaseChange extends _0x2596fc{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.2",
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.2",
40
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.2",
41
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.2",
42
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.2",
43
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.2"
44
44
  },
45
45
  "files": [
46
46
  "dist",