@ckeditor/ckeditor5-case-change 48.2.0-alpha.3 → 48.2.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x339b1c,Plugin as _0x148a01}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x1845b4,Collection as _0x17eda8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x35735b,MenuBarMenuListView as _0x2b30f3,MenuBarMenuListItemView as _0x38e0c5,MenuBarMenuListItemButtonView as _0x428ab6,createDropdown as _0x5b9271,addListToDropdown as _0x36bfc5,UIModel as _0x1c95d5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x2e03f6}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0x339b1c{['_transformCallback'];constructor(_0x1464cf,_0x214cce){super(_0x1464cf),this['_transformCallback']=_0x214cce;}['execute'](){const _0xdad493=this['editor']['model'],_0x38b889=Array['from'](this['_getAffectedRanges']()),_0x3c42e2=Array['from'](_0xdad493['document']['selection']['getRanges']());_0xdad493['change'](_0x365e24=>{for(const _0x5f0183 of _0x38b889)this['_modifyContent'](_0x5f0183,_0x365e24);_0x365e24['setSelection'](_0x3c42e2);});}['refresh'](){for(const _0x4a297b of this['_getAffectedRanges']())for(const _0x3b7438 of _0x4a297b)if(_0x3b7438['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x4714e9=this['editor']['model'],_0x1b3e95=_0x4714e9['document']['selection'];if(_0x1b3e95['isCollapsed']){const _0x496a56=this['_findAncestorTextBlock'](_0x1b3e95['getFirstPosition']()['parent']);return _0x496a56?[_0x4714e9['createRangeIn'](_0x496a56)]:[];}return _0x1b3e95['getRanges']();}['_modifyContent'](_0x4ffa1d,_0x2a06ad){for(const _0x1a3568 of this['_getElementsAllowingText'](_0x4ffa1d)){const _0xf26aa9=this['_getElementTextContent'](_0x1a3568),_0x1c1465=this['_transformCallback'](_0xf26aa9);for(const _0x48d635 of this['_getTextNodesRangeLimited'](_0x1a3568,_0x4ffa1d))this['_replaceTextNodeData'](_0x48d635,_0x1c1465,_0x2a06ad);}}['_findAncestorTextBlock'](_0x4102fe){const _0x44d0a2=this['editor']['model']['schema'];if(_0x4102fe['is']('element')&&_0x44d0a2['checkChild'](_0x4102fe,'$text'))return _0x4102fe;const _0x77a728=_0x4102fe['parent'];return!_0x77a728||_0x44d0a2['isLimit'](_0x4102fe)?null:this['_findAncestorTextBlock'](_0x77a728);}*['_getElementsAllowingText'](_0x57d6eb){const _0x228ed2=new Set();for(const {item:_0x4eaf95}of _0x57d6eb['getWalker']()){const _0x1b2abb=this['_findAncestorTextBlock'](_0x4eaf95);_0x1b2abb&&!_0x228ed2['has'](_0x1b2abb)&&(_0x228ed2['add'](_0x1b2abb),yield _0x1b2abb);}}['_getElementTextContent'](_0x30f5fa){return Array['from'](_0x30f5fa['getChildren']())['reduce']((_0x2e764b,_0x56acec)=>_0x2e764b+(_0x56acec['is']('$text')?_0x56acec['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x1311d0,_0x5e14e3){const _0x597d5e=_0x5e14e3['getIntersection'](this['editor']['model']['createRangeIn'](_0x1311d0));if(_0x597d5e){for(const _0x36638f of _0x597d5e['getItems']())_0x36638f['is']('$textProxy')&&_0x36638f['parent']==_0x1311d0&&(yield _0x36638f);}}['_replaceTextNodeData'](_0x41718e,_0x3d6072,_0xb243a1){const _0x343a3f=_0x3d6072['substring'](_0x41718e['startOffset'],_0x41718e['endOffset']);if(_0x343a3f===_0x41718e['data'])return;const _0x769552=_0x41718e['getAttributes']();this['editor']['model']['insertContent'](_0xb243a1['createText'](_0x343a3f,_0x769552),_0xb243a1['createSelection'](_0xb243a1['createRangeOn'](_0x41718e)));}}function d(_0x55b3fa,_0x582925,..._0x582392){const t=_0x55b3fa['t'];switch(_0x582925){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',..._0x582392);default:return _0x582925;}}class CaseChangeEditing extends _0x148a01{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5858b5=this['editor'],_0x496759=_0x5858b5['locale']['contentLanguage'],_0x1a41f1=function(_0x49b52a=[]){return'function'==typeof _0x49b52a?_0x49b52a:(_0x3d497a,{wordIndex:_0x2d4f4f})=>_0x2d4f4f>0x0&&_0x49b52a['includes'](_0x3d497a);}(_0x5858b5['config']['get']('caseChange.titleCase.excludeWords')),_0x419097={'changeCaseUpper':new CaseChangeCommand(_0x5858b5,_0x1bacec=>_0x1bacec['toLocaleUpperCase'](_0x496759)),'changeCaseLower':new CaseChangeCommand(_0x5858b5,_0x34c3ba=>_0x34c3ba['toLocaleLowerCase'](_0x496759)),'changeCaseTitle':new CaseChangeCommand(_0x5858b5,_0x548823=>function(_0x87acb1,_0x2fe7e7,_0x89382e){return function(_0x2cd2ae,_0x7cb412){let _0x3e8da2='',_0x1b88d9=0x0,_0x2fe3dd=0x0;for(const _0x275bd6 of _0x2cd2ae['matchAll'](/ +/g)){const _0x20b5b1=_0x275bd6['index'],_0x34e9cf=_0x2cd2ae['substring'](_0x1b88d9,_0x20b5b1);_0x34e9cf['length']&&(_0x3e8da2+=_0x7cb412(_0x34e9cf,_0x1b88d9,_0x2fe3dd++)),_0x3e8da2+=_0x275bd6[0x0],_0x1b88d9=_0x20b5b1+_0x275bd6[0x0]['length'];}const _0x5f27af=_0x2cd2ae['substring'](_0x1b88d9);return _0x5f27af['length']&&(_0x3e8da2+=_0x7cb412(_0x5f27af,_0x1b88d9,_0x2fe3dd)),_0x3e8da2;}(_0x87acb1,(_0x2c3ef2,_0x393abe,_0x4f8557)=>{const _0x460fc6=_0x2c3ef2['toLocaleLowerCase'](_0x89382e);return _0x2fe7e7(_0x460fc6,{'charOffset':_0x393abe,'wordIndex':_0x4f8557,'blockText':_0x87acb1})?_0x460fc6:_0x460fc6['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x1a5ff2=>_0x1a5ff2['toLocaleUpperCase'](_0x89382e));});}(_0x548823,_0x1a41f1,_0x496759))};for(const [_0x525ea8,_0x357541]of Object['entries'](_0x419097))_0x5858b5['commands']['add'](_0x525ea8,_0x357541),_0x357541['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x525ea8);});this['listenTo'](_0x5858b5['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x5858b5['keystrokes']['set']('shift+f3',(_0x2d39dd,_0x57d8ff)=>{const _0x2fed41=g(this['editor']['locale']),_0x5c869a=_0x2fed41[this['_currentCommandIndex']%_0x2fed41['length']]['commandName'];_0x5858b5['execute'](_0x5c869a),this['_currentCommandIndex']++,_0x57d8ff();});}['afterInit'](){!async function(_0x414f09){const _0x1220cd=_0x3a8174([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]),_0x2b7b63=0x334129cd,_0x17fbaa=0x3346a245^_0x2b7b63,_0x139ab6=window[_0x3a8174([0x44,0x61,0x74,0x65])][_0x3a8174([0x6e,0x6f,0x77])](),_0xf4b875=_0x414f09[_0x3a8174([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3b41da=new window[(_0x3a8174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bbda2=>{_0xf4b875[_0x3a8174([0x6f,0x6e,0x63,0x65])](_0x3a8174([0x72,0x65,0x61,0x64,0x79]),_0x4bbda2);}),_0x4e4d51={[_0x3a8174([0x6b,0x74,0x79])]:_0x3a8174([0x45,0x43]),[_0x3a8174([0x75,0x73,0x65])]:_0x3a8174([0x73,0x69,0x67]),[_0x3a8174([0x63,0x72,0x76])]:_0x3a8174([0x50,0x2d,0x32,0x35,0x36]),[_0x3a8174([0x78])]:_0x3a8174([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]),[_0x3a8174([0x79])]:_0x3a8174([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]),[_0x3a8174([0x61,0x6c,0x67])]:_0x3a8174([0x45,0x53,0x32,0x35,0x36])},_0x53ab61=_0xf4b875[_0x3a8174([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3a8174([0x67,0x65,0x74])](_0x3a8174([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b5f1b(){let _0x505eb6,_0xaa2790=null,_0x2c47cf=null;try{if(_0x53ab61==_0x3a8174([0x47,0x50,0x4c]))return _0x3a8174([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x505eb6=_0x1e9587(),!_0x505eb6)return _0x3a8174([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x505eb6[_0x3a8174([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c47cf=_0x4ca156(_0x505eb6[_0x3a8174([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x505eb6[_0x3a8174([0x6a,0x74,0x69])])),await _0x293d85()?_0x4809ff()?_0x4e3c2f()?_0x3a8174([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18d68c()?(_0x505eb6[_0x3a8174([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a8174([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xaa2790=_0x23b681(_0x3a8174([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x19132f()):_0x3a8174([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3a8174([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3a8174([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3a8174([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e3c2f(){const _0x232f48=[_0x3a8174([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3a8174([0x74,0x72,0x69,0x61,0x6c])][_0x3a8174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x505eb6[_0x3a8174([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x139ab6/0x3e8:0xe10*_0x17fbaa;return _0x505eb6[_0x3a8174([0x65,0x78,0x70])]<_0x232f48;}function _0x4809ff(){const _0x18b441=_0x505eb6[_0x3a8174([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x18b441&&(!!_0x18b441[_0x3a8174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a8174([0x2a]))||(!!_0x18b441[_0x3a8174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a8174([0x43,0x43]))||!!_0x18b441[_0x3a8174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a8174([0x50,0x50]))));}function _0x18d68c(){const _0x15c2f8=_0x505eb6[_0x3a8174([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x15c2f8||0x0==_0x15c2f8[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x11fb2c}=new URL(window[_0x3a8174([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x15c2f8[_0x3a8174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11fb2c))return!0x0;const _0x4642ab=_0x11fb2c[_0x3a8174([0x73,0x70,0x6c,0x69,0x74])](_0x3a8174([0x2e]));return _0x15c2f8[_0x3a8174([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b6e7a=>_0x3b6e7a[_0x3a8174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a8174([0x2a])))[_0x3a8174([0x6d,0x61,0x70])](_0x16c0c6=>_0x16c0c6[_0x3a8174([0x73,0x70,0x6c,0x69,0x74])](_0x3a8174([0x2e])))[_0x3a8174([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e8224=>_0x2e8224[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4642ab[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a8174([0x6d,0x61,0x70])](_0x13b52c=>Array(_0x4642ab[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x13b52c[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a8174([0x66,0x69,0x6c,0x6c])](_0x13b52c[0x0]===_0x3a8174([0x2a])?_0x3a8174([0x2a]):'')[_0x3a8174([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x13b52c))[_0x3a8174([0x73,0x6f,0x6d,0x65])](_0x196281=>_0x4642ab[_0x3a8174([0x65,0x76,0x65,0x72,0x79])]((_0x37c489,_0x3000f2)=>_0x196281[_0x3000f2]===_0x37c489||_0x196281[_0x3000f2]===_0x3a8174([0x2a])));}function _0x19132f(){return _0xaa2790&&_0x2c47cf?new window[(_0x3a8174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d34c0,_0x22adea)=>{_0xaa2790[_0x3a8174([0x74,0x68,0x65,0x6e])](_0x5d34c0,_0x22adea),_0x2c47cf[_0x3a8174([0x74,0x68,0x65,0x6e])](_0x4d1baa=>{_0x4d1baa!=_0x3a8174([0x56,0x61,0x6c,0x69,0x64])&&_0x5d34c0(_0x4d1baa);},_0x22adea);}):_0xaa2790||_0x2c47cf||_0x3a8174([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4ca156(_0x3c66fc,_0x177aa0){return new window[(_0x3a8174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49459b=>{if(_0x131217())return _0x49459b(_0x3a8174([0x56,0x61,0x6c,0x69,0x64]));_0x2e6081(),_0xf4b875[_0x3a8174([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3a8174([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c6d6e=!0x1;const _0x2947a0=_0x1845b4();function _0x52e69e(_0x2e3a1f){return!!_0x2e3a1f&&(typeof _0x2e3a1f===_0x3a8174([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e3a1f===_0x3a8174([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e3a1f[_0x3a8174([0x74,0x68,0x65,0x6e])]===_0x3a8174([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e3a1f[_0x3a8174([0x63,0x61,0x74,0x63,0x68])]===_0x3a8174([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28eb7b(_0x3b48da){_0x195f0a(_0x3b48da)[_0x3a8174([0x74,0x68,0x65,0x6e])](_0x46cba1=>{if(!_0x46cba1||_0x46cba1[_0x3a8174([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3a8174([0x6f,0x6b]))return _0x3a8174([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x407f2f(_0x233d6f(_0x2947a0+_0x177aa0))!=_0x46cba1[_0x3a8174([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3a8174([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3a8174([0x56,0x61,0x6c,0x69,0x64]);})[_0x3a8174([0x74,0x68,0x65,0x6e])](_0x2e7c76=>(_0x16d266(),_0x2e7c76),()=>{const _0x4196ab=_0xae4f18();return null==_0x4196ab?(_0x16d266(),_0x3a8174([0x56,0x61,0x6c,0x69,0x64])):_0x3a8174(_0x139ab6-_0x4196ab>(0x174dadcd^_0x2b7b63)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3a8174([0x74,0x68,0x65,0x6e])](_0x49459b)[_0x3a8174([0x63,0x61,0x74,0x63,0x68])](()=>{_0x49459b(_0x3a8174([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47543c=0x3377c74d^_0x2b7b63;function _0x16d266(){const _0x39472a=_0x3a8174([0x6c,0x6c,0x63,0x74,0x2d])+_0x407f2f(_0x233d6f(_0x3c66fc)),_0x32c160=_0x55cf25(_0x407f2f(window[_0x3a8174([0x4d,0x61,0x74,0x68])][_0x3a8174([0x63,0x65,0x69,0x6c])](_0x139ab6/_0x47543c)));window[_0x3a8174([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a8174([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39472a,_0x32c160);}function _0xae4f18(){const _0x4d4908=_0x3a8174([0x6c,0x6c,0x63,0x74,0x2d])+_0x407f2f(_0x233d6f(_0x3c66fc)),_0x1f12f8=window[_0x3a8174([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a8174([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d4908);return _0x1f12f8?window[_0x3a8174([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55cf25(_0x1f12f8),0x10)*_0x47543c:null;}function _0x195f0a(_0x386ef2){return new window[(_0x3a8174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x509a12,_0x73d170)=>{_0x386ef2[_0x3a8174([0x74,0x68,0x65,0x6e])](_0x509a12,_0x73d170),window[_0x3a8174([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x73d170,0x3340fd0d^_0x2b7b63);});}}_0xf4b875[_0x3a8174([0x6f,0x6e])](_0x3a8174([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d4120,_0x5c8542)=>{if(_0x5c8542[0x0]!=_0x3c66fc)return _0x49459b(_0x3a8174([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c8542[0x1]={..._0x5c8542[0x1],[_0x3a8174([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2947a0};},{[_0x3a8174([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a8174([0x68,0x69,0x67,0x68])}),_0xf4b875[_0x3a8174([0x6f,0x6e])](_0x3a8174([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2030c1=>{_0x52e69e(_0x2030c1[_0x3a8174([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c6d6e=!0x0,_0x28eb7b(_0x2030c1[_0x3a8174([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3a8174([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a8174([0x6c,0x6f,0x77])}),_0x3b41da[_0x3a8174([0x74,0x68,0x65,0x6e])](()=>{_0x4c6d6e||_0x49459b(_0x3a8174([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x131217(){return _0xf4b875[_0x3a8174([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a8174([0x76,0x69,0x65,0x77])][_0x3a8174([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3a8174([0x61,0x75,0x74,0x6f]);}function _0x2e6081(){_0xf4b875[_0x3a8174([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a8174([0x76,0x69,0x65,0x77])][_0x3a8174([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a8174([0x61,0x75,0x74,0x6f]);}}function _0x23b681(_0x123603){const _0x51e922=[new window[(_0x3a8174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bc05c=>setTimeout(_0x4bc05c,0x33481701^_0x2b7b63)),_0x3b41da[_0x3a8174([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3a8174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ecf79=>{let _0x37e35a=0x0;_0xf4b875[_0x3a8174([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a8174([0x6f,0x6e])](_0x3a8174([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a95ed,_0x2cbcff)=>{_0x2cbcff[0x0][_0x3a8174([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x37e35a++,_0x37e35a==(0x33412c25^_0x2b7b63)&&(_0x4ecf79(),_0x4a95ed[_0x3a8174([0x6f,0x66,0x66])]());});}))];return window[_0x3a8174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a8174([0x72,0x61,0x63,0x65])](_0x51e922)[_0x3a8174([0x74,0x68,0x65,0x6e])](()=>_0x123603);}async function _0x178aa0(){await _0x3b41da,_0xf4b875[_0x3a8174([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a8174([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x6d70af,_0xf4b875[_0x3a8174([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a8174([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x6d70af,_0xf4b875[_0x3a8174([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3a8174([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa2eab3(_0x50645a){const _0x1fe21c=_0x3ec019();_0xf4b875[_0x1fe21c]=_0x3a8174([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x50645a,_0x50645a!=_0x3a8174([0x56,0x61,0x6c,0x69,0x64])&&_0x178aa0();}function _0x3ec019(){const _0x2efbd7=window[_0x3a8174([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3a8174([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3a8174([0x6e,0x6f,0x77])]())[_0x3a8174([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3a8174([0x2e]),'');let _0x20f360=_0x3a8174([0x45]);for(let _0x297955=0x0;_0x297955<_0x2efbd7[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x297955+=0x2){let _0x376b2c=window[_0x3a8174([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2efbd7[_0x3a8174([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x297955,_0x297955+0x2));_0x376b2c>=_0x1220cd[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x376b2c-=_0x1220cd[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x20f360+=_0x1220cd[_0x376b2c];}return _0x20f360;}function _0x1e9587(){const _0x2c1f81=_0x53ab61[_0x3a8174([0x73,0x70,0x6c,0x69,0x74])](_0x3a8174([0x2e]));if(0x3!=_0x2c1f81[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x253f58(_0x2c1f81[0x1]);function _0x253f58(_0x39e9fa){const _0xa1480b=_0xf38547(_0x39e9fa);return _0xa1480b&&_0x43c208()?_0xa1480b:null;function _0x43c208(){const _0x8df3ca=_0xa1480b[_0x3a8174([0x6a,0x74,0x69])],_0x590081=window[_0x3a8174([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8df3ca[_0x3a8174([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8df3ca[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x80e8cd={..._0xa1480b,[_0x3a8174([0x6a,0x74,0x69])]:_0x8df3ca[_0x3a8174([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8df3ca[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x80e8cd[_0x3a8174([0x76,0x63])],_0x233d6f(_0x80e8cd)==_0x590081;}}}async function _0x293d85(){let _0xc6f93f=!0x0;try{const _0x4cfbaf=_0x53ab61[_0x3a8174([0x73,0x70,0x6c,0x69,0x74])](_0x3a8174([0x2e])),[_0x457418,_0x330bd8,_0x27f000]=_0x4cfbaf;return _0x184e50(_0x457418),await _0x50946e(_0x457418,_0x330bd8,_0x27f000),_0xc6f93f;}catch{return!0x1;}function _0x184e50(_0x231844){const _0x13bd9f=_0xf38547(_0x231844);_0x13bd9f&&_0x13bd9f[_0x3a8174([0x61,0x6c,0x67])]==_0x3a8174([0x45,0x53,0x32,0x35,0x36])||(_0xc6f93f=!0x1);}async function _0x50946e(_0x4904dc,_0x51f677,_0xe7f722){const _0x3d9ef6=window[_0x3a8174([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3a8174([0x66,0x72,0x6f,0x6d])](_0x382e32(_0xe7f722),_0x1fd622=>_0x1fd622[_0x3a8174([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x61e38e=new window[(_0x3a8174([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3a8174([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4904dc+_0x3a8174([0x2e])+_0x51f677),_0x49ed25=window[_0x3a8174([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3a8174([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x49ed25)return;const _0x1ed5bd=await _0x49ed25[_0x3a8174([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3a8174([0x6a,0x77,0x6b]),_0x4e4d51,{[_0x3a8174([0x6e,0x61,0x6d,0x65])]:_0x3a8174([0x45,0x43,0x44,0x53,0x41]),[_0x3a8174([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3a8174([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3a8174([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x49ed25[_0x3a8174([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3a8174([0x6e,0x61,0x6d,0x65])]:_0x3a8174([0x45,0x43,0x44,0x53,0x41]),[_0x3a8174([0x68,0x61,0x73,0x68])]:{[_0x3a8174([0x6e,0x61,0x6d,0x65])]:_0x3a8174([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ed5bd,_0x3d9ef6,_0x61e38e)||(_0xc6f93f=!0x1);}}function _0xf38547(_0x42e5ed){return _0x42e5ed[_0x3a8174([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3a8174([0x65,0x79]))?JSON[_0x3a8174([0x70,0x61,0x72,0x73,0x65])](_0x382e32(_0x42e5ed)):null;}function _0x382e32(_0x3b7416){return window[_0x3a8174([0x61,0x74,0x6f,0x62])](_0x3b7416[_0x3a8174([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3a8174([0x2b]))[_0x3a8174([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3a8174([0x2f])));}function _0x233d6f(_0x26634e){let _0x244286=0x1505;function _0x43348b(_0x1731ee){for(let _0x1bedb8=0x0;_0x1bedb8<_0x1731ee[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bedb8++){const _0x563d67=_0x1731ee[_0x3a8174([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1bedb8);_0x244286=(_0x244286<<0x5)+_0x244286+_0x563d67,_0x244286&=_0x244286;}}function _0x3aee08(_0x10a153){Array[_0x3a8174([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10a153)?_0x10a153[_0x3a8174([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3aee08):_0x10a153&&typeof _0x10a153==_0x3a8174([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3a8174([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10a153)[_0x3a8174([0x73,0x6f,0x72,0x74])]()[_0x3a8174([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e831b,_0x2185bf])=>{_0x43348b(_0x2e831b),_0x3aee08(_0x2185bf);}):_0x43348b(window[_0x3a8174([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10a153));}return _0x3aee08(_0x26634e),_0x244286>>>0x0;}function _0x407f2f(_0x9d1e87){return _0x9d1e87[_0x3a8174([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3a8174([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3a8174([0x30]));}function _0x55cf25(_0x603aa2){return _0x603aa2[_0x3a8174([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3a8174([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3a8174([0x6a,0x6f,0x69,0x6e])]('');}function _0x6d70af(){}function _0x3a8174(_0x2ca28d){return _0x2ca28d['map'](_0xd3fb35=>String['fromCharCode'](_0xd3fb35))['join']('');}_0xa2eab3(await _0x3b5f1b());}(this);}['_announceCaseChangeOperation'](_0x537196){const {ui:_0x13f746,locale:_0x411917}=this['editor'],_0x3ee4dd=g(_0x411917)['find'](_0x467ddf=>_0x467ddf['commandName']===_0x537196)['label']['toLowerCase']();_0x13f746['ariaLiveAnnouncer']['announce'](d(_0x411917,'Changed\x20case\x20to\x20%0',_0x3ee4dd));}}function g(_0x19a8c7){return[{'label':d(_0x19a8c7,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0x19a8c7,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0x19a8c7,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0x148a01{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5d5d5f=this['editor'];this['_registerComponents'](),_0x5d5d5f['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x5d5d5f['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x134d8e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b9836;for(const _0x286c35 in _0x134d8e){const _0x5b0d3c=_0x286c35,_0x314360=_0x134d8e[_0x5b0d3c];if('caseChangeLicenseKeyValid'==_0x314360||'caseChangeLicenseKeyInvalid'==_0x314360||'caseChangeLicenseKeyExpired'==_0x314360||'caseChangeLicenseKeyDomainLimit'==_0x314360||'caseChangeLicenseKeyNotAllowed'==_0x314360||'caseChangeLicenseKeyEvaluationLimit'==_0x314360||'caseChangeLicenseKeyUsageLimit'==_0x314360){delete _0x134d8e[_0x5b0d3c],_0x4b9836=_0x314360,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x4b9836&&_0x134d8e['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x4b9836&&_0x134d8e['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x4b9836&&_0x134d8e['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x4b9836&&_0x134d8e['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x4b9836&&_0x134d8e['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x4b9836&&_0x134d8e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x534c92=this['editor'],{itemDefinitions:_0x5b656d,commands:_0x4eade7}=this['_getListItemDefinitionsAndCommands']();_0x534c92['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x5b656d,_0x4eade7)),_0x534c92['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x5b656d,_0x4eade7));}['_createMenuBarMenuView'](_0x4ccec1,_0x2de68f){const _0xa93b90=this['editor'],_0xedaafa=_0xa93b90['locale'],_0x5c8095=new _0x35735b(_0xedaafa),_0x14c0ab=new _0x2b30f3(_0xedaafa);_0x14c0ab['set']({'ariaLabel':d(_0xedaafa,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x5c8095['buttonView']),_0x5c8095['bind']('isEnabled')['toMany'](_0x2de68f,'isEnabled',(..._0x2ee787)=>_0x2ee787['some'](_0x14e86c=>_0x14e86c));for(const _0x5c6c7e of _0x4ccec1){const _0x3b5a1e=new _0x38e0c5(_0xedaafa,_0x5c8095),_0x1d2a11=new _0x428ab6(_0xedaafa);_0x1d2a11['delegate']('execute')['to'](_0x5c8095),_0x1d2a11['bind'](...Object['keys'](_0x5c6c7e['model']))['to'](_0x5c6c7e['model']),_0x1d2a11['on']('execute',()=>{_0xa93b90['execute'](_0x5c6c7e['model']['commandName']),_0xa93b90['editing']['view']['focus']();}),_0x3b5a1e['children']['add'](_0x1d2a11),_0x14c0ab['items']['add'](_0x3b5a1e);}return _0x5c8095['panelView']['children']['add'](_0x14c0ab),_0x5c8095;}['_createDropdownView'](_0x33652f,_0x3f7fc4){const _0x27d621=this['editor'],_0x3335dc=_0x5b9271(_0x27d621['locale']);return this['_setButtonProperties'](_0x3335dc['buttonView']),_0x3335dc['buttonView']['set']({'tooltip':!0x0}),_0x3335dc['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x36bfc5(_0x3335dc,_0x33652f,{'ariaLabel':d(_0x27d621['locale'],'Case\x20change'),'role':'menu'}),_0x3335dc['bind']('isEnabled')['toMany'](_0x3f7fc4,'isEnabled',(..._0x122737)=>_0x122737['some'](_0x110e1f=>_0x110e1f)),this['listenTo'](_0x3335dc,'execute',_0x323d53=>{_0x27d621['execute'](_0x323d53['source']['commandName']),_0x27d621['editing']['view']['focus']();}),_0x3335dc;}['_setButtonProperties'](_0x2679cc){const _0x2591a4=this['editor'];_0x2679cc['set']({'label':d(_0x2591a4['locale'],'Case\x20change'),'icon':_0x2e03f6,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x57c1e8=new _0x17eda8(),_0x2ea10b=[];for(const _0xbbdd1e of g(this['editor']['locale'])){const _0x2e8a52=this['editor']['commands']['get'](_0xbbdd1e['commandName']),_0x1be920=new _0x1c95d5({'commandName':_0xbbdd1e['commandName'],'label':_0xbbdd1e['label'],'role':'menuitemradio','withText':!0x0});_0x1be920['bind']('isEnabled')['to'](_0x2e8a52,'isEnabled'),_0x57c1e8['add']({'type':'button','model':_0x1be920}),_0x2ea10b['push'](_0x2e8a52);}return{'itemDefinitions':_0x57c1e8,'commands':_0x2ea10b};}}class CaseChange extends _0x148a01{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 _0xeecfa5,Plugin as _0x59d0ba}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x35ca07,Collection as _0xd09cd9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x43f71e,MenuBarMenuListView as _0x132d06,MenuBarMenuListItemView as _0x418331,MenuBarMenuListItemButtonView as _0x5143d7,createDropdown as _0x783005,addListToDropdown as _0x5a2f77,UIModel as _0x4efd67}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x124807}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0xeecfa5{['_transformCallback'];constructor(_0x51905c,_0x3faf78){super(_0x51905c),this['_transformCallback']=_0x3faf78;}['execute'](){const _0x998232=this['editor']['model'],_0x2eed5b=Array['from'](this['_getAffectedRanges']()),_0xb3ac2b=Array['from'](_0x998232['document']['selection']['getRanges']());_0x998232['change'](_0x1aa821=>{for(const _0x26347c of _0x2eed5b)this['_modifyContent'](_0x26347c,_0x1aa821);_0x1aa821['setSelection'](_0xb3ac2b);});}['refresh'](){for(const _0x1a54f7 of this['_getAffectedRanges']())for(const _0x2782fb of _0x1a54f7)if(_0x2782fb['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0xec9ba5=this['editor']['model'],_0x16a741=_0xec9ba5['document']['selection'];if(_0x16a741['isCollapsed']){const _0x3ec918=this['_findAncestorTextBlock'](_0x16a741['getFirstPosition']()['parent']);return _0x3ec918?[_0xec9ba5['createRangeIn'](_0x3ec918)]:[];}return _0x16a741['getRanges']();}['_modifyContent'](_0xa1f52d,_0x28d39e){for(const _0xdb8164 of this['_getElementsAllowingText'](_0xa1f52d)){const _0x1e21e5=this['_getElementTextContent'](_0xdb8164),_0x4cb83a=this['_transformCallback'](_0x1e21e5);for(const _0x186253 of this['_getTextNodesRangeLimited'](_0xdb8164,_0xa1f52d))this['_replaceTextNodeData'](_0x186253,_0x4cb83a,_0x28d39e);}}['_findAncestorTextBlock'](_0x9c9d3b){const _0x272fbb=this['editor']['model']['schema'];if(_0x9c9d3b['is']('element')&&_0x272fbb['checkChild'](_0x9c9d3b,'$text'))return _0x9c9d3b;const _0x42f237=_0x9c9d3b['parent'];return!_0x42f237||_0x272fbb['isLimit'](_0x9c9d3b)?null:this['_findAncestorTextBlock'](_0x42f237);}*['_getElementsAllowingText'](_0x5ca027){const _0x4125e6=new Set();for(const {item:_0x3a615e}of _0x5ca027['getWalker']()){const _0x53bb3e=this['_findAncestorTextBlock'](_0x3a615e);_0x53bb3e&&!_0x4125e6['has'](_0x53bb3e)&&(_0x4125e6['add'](_0x53bb3e),yield _0x53bb3e);}}['_getElementTextContent'](_0x58372e){return Array['from'](_0x58372e['getChildren']())['reduce']((_0x526887,_0x1e03e4)=>_0x526887+(_0x1e03e4['is']('$text')?_0x1e03e4['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x42e04d,_0x2d71d3){const _0x2ba78b=_0x2d71d3['getIntersection'](this['editor']['model']['createRangeIn'](_0x42e04d));if(_0x2ba78b){for(const _0x2d1ea1 of _0x2ba78b['getItems']())_0x2d1ea1['is']('$textProxy')&&_0x2d1ea1['parent']==_0x42e04d&&(yield _0x2d1ea1);}}['_replaceTextNodeData'](_0x43e892,_0xf90cb4,_0x5776e6){const _0x29d907=_0xf90cb4['substring'](_0x43e892['startOffset'],_0x43e892['endOffset']);if(_0x29d907===_0x43e892['data'])return;const _0x14b5d7=_0x43e892['getAttributes']();this['editor']['model']['insertContent'](_0x5776e6['createText'](_0x29d907,_0x14b5d7),_0x5776e6['createSelection'](_0x5776e6['createRangeOn'](_0x43e892)));}}function d(_0x538ae3,_0x2059ec,..._0x433c59){const t=_0x538ae3['t'];switch(_0x2059ec){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',..._0x433c59);default:return _0x2059ec;}}class CaseChangeEditing extends _0x59d0ba{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x16b126=this['editor'],_0x3d5322=_0x16b126['locale']['contentLanguage'],_0x5cf239=function(_0x2fd5eb=[]){return'function'==typeof _0x2fd5eb?_0x2fd5eb:(_0x5d25ba,{wordIndex:_0x3a67c1})=>_0x3a67c1>0x0&&_0x2fd5eb['includes'](_0x5d25ba);}(_0x16b126['config']['get']('caseChange.titleCase.excludeWords')),_0x19b36b={'changeCaseUpper':new CaseChangeCommand(_0x16b126,_0xb8f9b9=>_0xb8f9b9['toLocaleUpperCase'](_0x3d5322)),'changeCaseLower':new CaseChangeCommand(_0x16b126,_0x5657d8=>_0x5657d8['toLocaleLowerCase'](_0x3d5322)),'changeCaseTitle':new CaseChangeCommand(_0x16b126,_0x2b88a2=>function(_0x2d228d,_0x558dde,_0x2711cd){return function(_0x2a0c63,_0x11091c){let _0x5cd7b5='',_0x4e459d=0x0,_0x48d684=0x0;for(const _0x461d37 of _0x2a0c63['matchAll'](/ +/g)){const _0x1aa9b5=_0x461d37['index'],_0x973255=_0x2a0c63['substring'](_0x4e459d,_0x1aa9b5);_0x973255['length']&&(_0x5cd7b5+=_0x11091c(_0x973255,_0x4e459d,_0x48d684++)),_0x5cd7b5+=_0x461d37[0x0],_0x4e459d=_0x1aa9b5+_0x461d37[0x0]['length'];}const _0x4787ad=_0x2a0c63['substring'](_0x4e459d);return _0x4787ad['length']&&(_0x5cd7b5+=_0x11091c(_0x4787ad,_0x4e459d,_0x48d684)),_0x5cd7b5;}(_0x2d228d,(_0x1abdb7,_0x341962,_0x5a064c)=>{const _0x18eae1=_0x1abdb7['toLocaleLowerCase'](_0x2711cd);return _0x558dde(_0x18eae1,{'charOffset':_0x341962,'wordIndex':_0x5a064c,'blockText':_0x2d228d})?_0x18eae1:_0x18eae1['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x44fe49=>_0x44fe49['toLocaleUpperCase'](_0x2711cd));});}(_0x2b88a2,_0x5cf239,_0x3d5322))};for(const [_0x3895ab,_0x5da3f7]of Object['entries'](_0x19b36b))_0x16b126['commands']['add'](_0x3895ab,_0x5da3f7),_0x5da3f7['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x3895ab);});this['listenTo'](_0x16b126['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x16b126['keystrokes']['set']('shift+f3',(_0x5ab92c,_0x3c95a4)=>{const _0x11a115=g(this['editor']['locale']),_0xfc7d7d=_0x11a115[this['_currentCommandIndex']%_0x11a115['length']]['commandName'];_0x16b126['execute'](_0xfc7d7d),this['_currentCommandIndex']++,_0x3c95a4();});}['afterInit'](){!async function(_0x396479){const _0x4d4466=_0x3c4b4f([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]),_0x30c187=0x334129cd,_0x4e0082=0x3346a26d^_0x30c187,_0x4c38fc=window[_0x3c4b4f([0x44,0x61,0x74,0x65])][_0x3c4b4f([0x6e,0x6f,0x77])](),_0x57ecfb=_0x396479[_0x3c4b4f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x27907d=new window[(_0x3c4b4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25589d=>{_0x57ecfb[_0x3c4b4f([0x6f,0x6e,0x63,0x65])](_0x3c4b4f([0x72,0x65,0x61,0x64,0x79]),_0x25589d);}),_0x389b33={[_0x3c4b4f([0x6b,0x74,0x79])]:_0x3c4b4f([0x45,0x43]),[_0x3c4b4f([0x75,0x73,0x65])]:_0x3c4b4f([0x73,0x69,0x67]),[_0x3c4b4f([0x63,0x72,0x76])]:_0x3c4b4f([0x50,0x2d,0x32,0x35,0x36]),[_0x3c4b4f([0x78])]:_0x3c4b4f([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]),[_0x3c4b4f([0x79])]:_0x3c4b4f([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]),[_0x3c4b4f([0x61,0x6c,0x67])]:_0x3c4b4f([0x45,0x53,0x32,0x35,0x36])},_0xb9a247=_0x57ecfb[_0x3c4b4f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c4b4f([0x67,0x65,0x74])](_0x3c4b4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x594c8b(){let _0x25787d,_0x72f73f=null,_0x5c2b26=null;try{if(_0xb9a247==_0x3c4b4f([0x47,0x50,0x4c]))return _0x3c4b4f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x25787d=_0x3013af(),!_0x25787d)return _0x3c4b4f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x25787d[_0x3c4b4f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c2b26=_0x195007(_0x25787d[_0x3c4b4f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x25787d[_0x3c4b4f([0x6a,0x74,0x69])])),await _0x14229e()?_0xed4803()?_0xd14695()?_0x3c4b4f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5699a6()?(_0x25787d[_0x3c4b4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c4b4f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x72f73f=_0x36f3bc(_0x3c4b4f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x307073()):_0x3c4b4f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c4b4f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c4b4f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3c4b4f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd14695(){const _0x1ddc08=[_0x3c4b4f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c4b4f([0x74,0x72,0x69,0x61,0x6c])][_0x3c4b4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25787d[_0x3c4b4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c38fc/0x3e8:0xe10*_0x4e0082;return _0x25787d[_0x3c4b4f([0x65,0x78,0x70])]<_0x1ddc08;}function _0xed4803(){const _0x350a24=_0x25787d[_0x3c4b4f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x350a24&&(!!_0x350a24[_0x3c4b4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c4b4f([0x2a]))||(!!_0x350a24[_0x3c4b4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c4b4f([0x43,0x43]))||!!_0x350a24[_0x3c4b4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c4b4f([0x50,0x50]))));}function _0x5699a6(){const _0x3347b6=_0x25787d[_0x3c4b4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3347b6||0x0==_0x3347b6[_0x3c4b4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ef1bb}=new URL(window[_0x3c4b4f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3347b6[_0x3c4b4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ef1bb))return!0x0;const _0x5ad4c2=_0x5ef1bb[_0x3c4b4f([0x73,0x70,0x6c,0x69,0x74])](_0x3c4b4f([0x2e]));return _0x3347b6[_0x3c4b4f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1027ee=>_0x1027ee[_0x3c4b4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c4b4f([0x2a])))[_0x3c4b4f([0x6d,0x61,0x70])](_0x41129b=>_0x41129b[_0x3c4b4f([0x73,0x70,0x6c,0x69,0x74])](_0x3c4b4f([0x2e])))[_0x3c4b4f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d6869=>_0x4d6869[_0x3c4b4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ad4c2[_0x3c4b4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c4b4f([0x6d,0x61,0x70])](_0x147e8b=>Array(_0x5ad4c2[_0x3c4b4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x147e8b[_0x3c4b4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c4b4f([0x66,0x69,0x6c,0x6c])](_0x147e8b[0x0]===_0x3c4b4f([0x2a])?_0x3c4b4f([0x2a]):'')[_0x3c4b4f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x147e8b))[_0x3c4b4f([0x73,0x6f,0x6d,0x65])](_0x508afc=>_0x5ad4c2[_0x3c4b4f([0x65,0x76,0x65,0x72,0x79])]((_0x94ebae,_0x10f9d8)=>_0x508afc[_0x10f9d8]===_0x94ebae||_0x508afc[_0x10f9d8]===_0x3c4b4f([0x2a])));}function _0x307073(){return _0x72f73f&&_0x5c2b26?new window[(_0x3c4b4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x429efb,_0x5b8978)=>{_0x72f73f[_0x3c4b4f([0x74,0x68,0x65,0x6e])](_0x429efb,_0x5b8978),_0x5c2b26[_0x3c4b4f([0x74,0x68,0x65,0x6e])](_0x1bc961=>{_0x1bc961!=_0x3c4b4f([0x56,0x61,0x6c,0x69,0x64])&&_0x429efb(_0x1bc961);},_0x5b8978);}):_0x72f73f||_0x5c2b26||_0x3c4b4f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x195007(_0x8df14d,_0x434dde){return new window[(_0x3c4b4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x137a74=>{if(_0x2bc498())return _0x137a74(_0x3c4b4f([0x56,0x61,0x6c,0x69,0x64]));_0x382bbc(),_0x57ecfb[_0x3c4b4f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c4b4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd98ea4=!0x1;const _0x3f8637=_0x35ca07();function _0x5f1f3a(_0x2a278f){return!!_0x2a278f&&(typeof _0x2a278f===_0x3c4b4f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a278f===_0x3c4b4f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a278f[_0x3c4b4f([0x74,0x68,0x65,0x6e])]===_0x3c4b4f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a278f[_0x3c4b4f([0x63,0x61,0x74,0x63,0x68])]===_0x3c4b4f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x470427(_0x310e67){_0x5e0741(_0x310e67)[_0x3c4b4f([0x74,0x68,0x65,0x6e])](_0xe0d025=>{if(!_0xe0d025||_0xe0d025[_0x3c4b4f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c4b4f([0x6f,0x6b]))return _0x3c4b4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5d6974(_0x3b1073(_0x3f8637+_0x434dde))!=_0xe0d025[_0x3c4b4f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c4b4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c4b4f([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c4b4f([0x74,0x68,0x65,0x6e])](_0x5b5e84=>(_0xdc5ccf(),_0x5b5e84),()=>{const _0x155868=_0x139c61();return null==_0x155868?(_0xdc5ccf(),_0x3c4b4f([0x56,0x61,0x6c,0x69,0x64])):_0x3c4b4f(_0x4c38fc-_0x155868>(0x174dadcd^_0x30c187)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c4b4f([0x74,0x68,0x65,0x6e])](_0x137a74)[_0x3c4b4f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x137a74(_0x3c4b4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5872cf=0x3377c74d^_0x30c187;function _0xdc5ccf(){const _0x2dc15a=_0x3c4b4f([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d6974(_0x3b1073(_0x8df14d)),_0x2f4b50=_0x44c3f7(_0x5d6974(window[_0x3c4b4f([0x4d,0x61,0x74,0x68])][_0x3c4b4f([0x63,0x65,0x69,0x6c])](_0x4c38fc/_0x5872cf)));window[_0x3c4b4f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c4b4f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dc15a,_0x2f4b50);}function _0x139c61(){const _0xb7d637=_0x3c4b4f([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d6974(_0x3b1073(_0x8df14d)),_0x16b2e5=window[_0x3c4b4f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c4b4f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb7d637);return _0x16b2e5?window[_0x3c4b4f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44c3f7(_0x16b2e5),0x10)*_0x5872cf:null;}function _0x5e0741(_0x2a522a){return new window[(_0x3c4b4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x422e91,_0x19064a)=>{_0x2a522a[_0x3c4b4f([0x74,0x68,0x65,0x6e])](_0x422e91,_0x19064a),window[_0x3c4b4f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19064a,0x3340fd0d^_0x30c187);});}}_0x57ecfb[_0x3c4b4f([0x6f,0x6e])](_0x3c4b4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41fe62,_0x5a09d3)=>{if(_0x5a09d3[0x0]!=_0x8df14d)return _0x137a74(_0x3c4b4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a09d3[0x1]={..._0x5a09d3[0x1],[_0x3c4b4f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f8637};},{[_0x3c4b4f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c4b4f([0x68,0x69,0x67,0x68])}),_0x57ecfb[_0x3c4b4f([0x6f,0x6e])](_0x3c4b4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1d89c7=>{_0x5f1f3a(_0x1d89c7[_0x3c4b4f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd98ea4=!0x0,_0x470427(_0x1d89c7[_0x3c4b4f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c4b4f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c4b4f([0x6c,0x6f,0x77])}),_0x27907d[_0x3c4b4f([0x74,0x68,0x65,0x6e])](()=>{_0xd98ea4||_0x137a74(_0x3c4b4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2bc498(){return _0x57ecfb[_0x3c4b4f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c4b4f([0x76,0x69,0x65,0x77])][_0x3c4b4f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c4b4f([0x61,0x75,0x74,0x6f]);}function _0x382bbc(){_0x57ecfb[_0x3c4b4f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c4b4f([0x76,0x69,0x65,0x77])][_0x3c4b4f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c4b4f([0x61,0x75,0x74,0x6f]);}}function _0x36f3bc(_0x491d98){const _0x5d0ba8=[new window[(_0x3c4b4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50294e=>setTimeout(_0x50294e,0x33481701^_0x30c187)),_0x27907d[_0x3c4b4f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c4b4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x440bab=>{let _0x9a536e=0x0;_0x57ecfb[_0x3c4b4f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c4b4f([0x6f,0x6e])](_0x3c4b4f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ec063,_0x1dbfa4)=>{_0x1dbfa4[0x0][_0x3c4b4f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9a536e++,_0x9a536e==(0x33412c25^_0x30c187)&&(_0x440bab(),_0x1ec063[_0x3c4b4f([0x6f,0x66,0x66])]());});}))];return window[_0x3c4b4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c4b4f([0x72,0x61,0x63,0x65])](_0x5d0ba8)[_0x3c4b4f([0x74,0x68,0x65,0x6e])](()=>_0x491d98);}async function _0x135a3f(){await _0x27907d,_0x57ecfb[_0x3c4b4f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c4b4f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x581861,_0x57ecfb[_0x3c4b4f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c4b4f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x581861,_0x57ecfb[_0x3c4b4f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c4b4f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2789e1(_0x3312af){const _0x5cb746=_0x19c8de();_0x57ecfb[_0x5cb746]=_0x3c4b4f([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3312af,_0x3312af!=_0x3c4b4f([0x56,0x61,0x6c,0x69,0x64])&&_0x135a3f();}function _0x19c8de(){const _0x2049cb=window[_0x3c4b4f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c4b4f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c4b4f([0x6e,0x6f,0x77])]())[_0x3c4b4f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c4b4f([0x2e]),'');let _0x31da17=_0x3c4b4f([0x45]);for(let _0x623f13=0x0;_0x623f13<_0x2049cb[_0x3c4b4f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x623f13+=0x2){let _0x304f85=window[_0x3c4b4f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2049cb[_0x3c4b4f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x623f13,_0x623f13+0x2));_0x304f85>=_0x4d4466[_0x3c4b4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x304f85-=_0x4d4466[_0x3c4b4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x31da17+=_0x4d4466[_0x304f85];}return _0x31da17;}function _0x3013af(){const _0x504c7c=_0xb9a247[_0x3c4b4f([0x73,0x70,0x6c,0x69,0x74])](_0x3c4b4f([0x2e]));if(0x3!=_0x504c7c[_0x3c4b4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x52f09b(_0x504c7c[0x1]);function _0x52f09b(_0x4b0851){const _0x4124c1=_0x1bce7a(_0x4b0851);return _0x4124c1&&_0x445a77()?_0x4124c1:null;function _0x445a77(){const _0x5130e4=_0x4124c1[_0x3c4b4f([0x6a,0x74,0x69])],_0x302dbc=window[_0x3c4b4f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5130e4[_0x3c4b4f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5130e4[_0x3c4b4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd6699b={..._0x4124c1,[_0x3c4b4f([0x6a,0x74,0x69])]:_0x5130e4[_0x3c4b4f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5130e4[_0x3c4b4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd6699b[_0x3c4b4f([0x76,0x63])],_0x3b1073(_0xd6699b)==_0x302dbc;}}}async function _0x14229e(){let _0x176b57=!0x0;try{const _0x1ffc82=_0xb9a247[_0x3c4b4f([0x73,0x70,0x6c,0x69,0x74])](_0x3c4b4f([0x2e])),[_0x49e51a,_0x2ab284,_0x235b29]=_0x1ffc82;return _0x29504a(_0x49e51a),await _0xf91e53(_0x49e51a,_0x2ab284,_0x235b29),_0x176b57;}catch{return!0x1;}function _0x29504a(_0x1dbc42){const _0x262246=_0x1bce7a(_0x1dbc42);_0x262246&&_0x262246[_0x3c4b4f([0x61,0x6c,0x67])]==_0x3c4b4f([0x45,0x53,0x32,0x35,0x36])||(_0x176b57=!0x1);}async function _0xf91e53(_0x1937bc,_0x1f475f,_0x365104){const _0x2375c4=window[_0x3c4b4f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c4b4f([0x66,0x72,0x6f,0x6d])](_0x1b182a(_0x365104),_0x1de47e=>_0x1de47e[_0x3c4b4f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28827a=new window[(_0x3c4b4f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c4b4f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1937bc+_0x3c4b4f([0x2e])+_0x1f475f),_0x3f9cc=window[_0x3c4b4f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c4b4f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f9cc)return;const _0x128230=await _0x3f9cc[_0x3c4b4f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c4b4f([0x6a,0x77,0x6b]),_0x389b33,{[_0x3c4b4f([0x6e,0x61,0x6d,0x65])]:_0x3c4b4f([0x45,0x43,0x44,0x53,0x41]),[_0x3c4b4f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c4b4f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c4b4f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f9cc[_0x3c4b4f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c4b4f([0x6e,0x61,0x6d,0x65])]:_0x3c4b4f([0x45,0x43,0x44,0x53,0x41]),[_0x3c4b4f([0x68,0x61,0x73,0x68])]:{[_0x3c4b4f([0x6e,0x61,0x6d,0x65])]:_0x3c4b4f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x128230,_0x2375c4,_0x28827a)||(_0x176b57=!0x1);}}function _0x1bce7a(_0x493741){return _0x493741[_0x3c4b4f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c4b4f([0x65,0x79]))?JSON[_0x3c4b4f([0x70,0x61,0x72,0x73,0x65])](_0x1b182a(_0x493741)):null;}function _0x1b182a(_0x54e80c){return window[_0x3c4b4f([0x61,0x74,0x6f,0x62])](_0x54e80c[_0x3c4b4f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c4b4f([0x2b]))[_0x3c4b4f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c4b4f([0x2f])));}function _0x3b1073(_0x3d3dfd){let _0x1cd0fd=0x1505;function _0x723ece(_0x17129c){for(let _0x5b8c7b=0x0;_0x5b8c7b<_0x17129c[_0x3c4b4f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b8c7b++){const _0x4d2dfe=_0x17129c[_0x3c4b4f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b8c7b);_0x1cd0fd=(_0x1cd0fd<<0x5)+_0x1cd0fd+_0x4d2dfe,_0x1cd0fd&=_0x1cd0fd;}}function _0x12f788(_0x41cf5f){Array[_0x3c4b4f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41cf5f)?_0x41cf5f[_0x3c4b4f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x12f788):_0x41cf5f&&typeof _0x41cf5f==_0x3c4b4f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c4b4f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41cf5f)[_0x3c4b4f([0x73,0x6f,0x72,0x74])]()[_0x3c4b4f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x414a42,_0x8ed178])=>{_0x723ece(_0x414a42),_0x12f788(_0x8ed178);}):_0x723ece(window[_0x3c4b4f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41cf5f));}return _0x12f788(_0x3d3dfd),_0x1cd0fd>>>0x0;}function _0x5d6974(_0x21b396){return _0x21b396[_0x3c4b4f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c4b4f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c4b4f([0x30]));}function _0x44c3f7(_0x1fb024){return _0x1fb024[_0x3c4b4f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c4b4f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c4b4f([0x6a,0x6f,0x69,0x6e])]('');}function _0x581861(){}function _0x3c4b4f(_0x4665fc){return _0x4665fc['map'](_0x47d2d7=>String['fromCharCode'](_0x47d2d7))['join']('');}_0x2789e1(await _0x594c8b());}(this);}['_announceCaseChangeOperation'](_0x4ab2d6){const {ui:_0x34171d,locale:_0x42a851}=this['editor'],_0x2fb845=g(_0x42a851)['find'](_0xf65f2f=>_0xf65f2f['commandName']===_0x4ab2d6)['label']['toLowerCase']();_0x34171d['ariaLiveAnnouncer']['announce'](d(_0x42a851,'Changed\x20case\x20to\x20%0',_0x2fb845));}}function g(_0x1fe115){return[{'label':d(_0x1fe115,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0x1fe115,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0x1fe115,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0x59d0ba{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x48dd3e=this['editor'];this['_registerComponents'](),_0x48dd3e['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x48dd3e['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x594022=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xfa1890;for(const _0x3a01f1 in _0x594022){const _0x21648f=_0x3a01f1,_0x1300de=_0x594022[_0x21648f];if('caseChangeLicenseKeyValid'==_0x1300de||'caseChangeLicenseKeyInvalid'==_0x1300de||'caseChangeLicenseKeyExpired'==_0x1300de||'caseChangeLicenseKeyDomainLimit'==_0x1300de||'caseChangeLicenseKeyNotAllowed'==_0x1300de||'caseChangeLicenseKeyEvaluationLimit'==_0x1300de||'caseChangeLicenseKeyUsageLimit'==_0x1300de){delete _0x594022[_0x21648f],_0xfa1890=_0x1300de,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0xfa1890&&_0x594022['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0xfa1890&&_0x594022['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0xfa1890&&_0x594022['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0xfa1890&&_0x594022['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0xfa1890&&_0x594022['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0xfa1890&&_0x594022['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x447f4e=this['editor'],{itemDefinitions:_0x56e13f,commands:_0x37f469}=this['_getListItemDefinitionsAndCommands']();_0x447f4e['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x56e13f,_0x37f469)),_0x447f4e['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x56e13f,_0x37f469));}['_createMenuBarMenuView'](_0x345016,_0x3a42e3){const _0x308e71=this['editor'],_0x4943bb=_0x308e71['locale'],_0xc6e842=new _0x43f71e(_0x4943bb),_0x2e3053=new _0x132d06(_0x4943bb);_0x2e3053['set']({'ariaLabel':d(_0x4943bb,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0xc6e842['buttonView']),_0xc6e842['bind']('isEnabled')['toMany'](_0x3a42e3,'isEnabled',(..._0x2205a6)=>_0x2205a6['some'](_0x37e7dd=>_0x37e7dd));for(const _0x4f609f of _0x345016){const _0xb0869c=new _0x418331(_0x4943bb,_0xc6e842),_0x35bc1a=new _0x5143d7(_0x4943bb);_0x35bc1a['delegate']('execute')['to'](_0xc6e842),_0x35bc1a['bind'](...Object['keys'](_0x4f609f['model']))['to'](_0x4f609f['model']),_0x35bc1a['on']('execute',()=>{_0x308e71['execute'](_0x4f609f['model']['commandName']),_0x308e71['editing']['view']['focus']();}),_0xb0869c['children']['add'](_0x35bc1a),_0x2e3053['items']['add'](_0xb0869c);}return _0xc6e842['panelView']['children']['add'](_0x2e3053),_0xc6e842;}['_createDropdownView'](_0x4ac73c,_0x57549c){const _0x32a9df=this['editor'],_0x3ff98f=_0x783005(_0x32a9df['locale']);return this['_setButtonProperties'](_0x3ff98f['buttonView']),_0x3ff98f['buttonView']['set']({'tooltip':!0x0}),_0x3ff98f['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x5a2f77(_0x3ff98f,_0x4ac73c,{'ariaLabel':d(_0x32a9df['locale'],'Case\x20change'),'role':'menu'}),_0x3ff98f['bind']('isEnabled')['toMany'](_0x57549c,'isEnabled',(..._0xce0140)=>_0xce0140['some'](_0x3a0b4d=>_0x3a0b4d)),this['listenTo'](_0x3ff98f,'execute',_0x52aeea=>{_0x32a9df['execute'](_0x52aeea['source']['commandName']),_0x32a9df['editing']['view']['focus']();}),_0x3ff98f;}['_setButtonProperties'](_0x2c10fb){const _0x1f36b3=this['editor'];_0x2c10fb['set']({'label':d(_0x1f36b3['locale'],'Case\x20change'),'icon':_0x124807,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x332922=new _0xd09cd9(),_0x52b35a=[];for(const _0x575cc0 of g(this['editor']['locale'])){const _0x2faec3=this['editor']['commands']['get'](_0x575cc0['commandName']),_0x563a04=new _0x4efd67({'commandName':_0x575cc0['commandName'],'label':_0x575cc0['label'],'role':'menuitemradio','withText':!0x0});_0x563a04['bind']('isEnabled')['to'](_0x2faec3,'isEnabled'),_0x332922['add']({'type':'button','model':_0x563a04}),_0x52b35a['push'](_0x2faec3);}return{'itemDefinitions':_0x332922,'commands':_0x52b35a};}}class CaseChange extends _0x59d0ba{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.2.0-alpha.
|
|
3
|
+
"version": "48.2.0-alpha.4",
|
|
4
4
|
"description": "Case change feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"./package.json": "./package.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@ckeditor/ckeditor5-core": "48.2.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.
|
|
42
|
-
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.
|
|
43
|
-
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.
|
|
39
|
+
"@ckeditor/ckeditor5-core": "48.2.0-alpha.4",
|
|
40
|
+
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.4",
|
|
41
|
+
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.4",
|
|
42
|
+
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.4",
|
|
43
|
+
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.4"
|
|
44
44
|
},
|
|
45
45
|
"files": [
|
|
46
46
|
"dist",
|