@ckeditor/ckeditor5-paste-from-office-enhanced 48.2.0-alpha.5 → 48.2.0-alpha.7
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{Plugin as _0x21c965}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0xdd7199,PasteFromOffice as _0x2de44a}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0xcf9abb,uid as _0x572d6c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x3b0055,ViewDocument as _0x1c1e13,ViewDomConverter as _0xc43e17}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x5bdc81){return a['test'](_0x5bdc81);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x1cf78e,_0x5bd87a){const _0x44f291=new Map();for(const [_0x126da1,_0x5867bd]of _0x5bd87a){if(!_0x126da1['tagName']&&!_0x126da1['className'])continue;const _0x4d1e5a=!_0x126da1['tagName']||_0x1cf78e['name']===_0x126da1['tagName'],_0xdf0592=!_0x126da1['className']||_0x1cf78e['hasClass'](_0x126da1['className']);_0x4d1e5a&&_0xdf0592&&_0x44f291['set'](_0x126da1,_0x5867bd);}return _0x44f291;}function w(_0x224241){const _0x5c821a={};for(let _0x431d0b=0x0;_0x431d0b<_0x224241['length'];_0x431d0b++){const _0x57a613=_0x224241[_0x431d0b],_0x269352=_0x224241['getPropertyValue'](_0x57a613);'initial'!==_0x269352&&(_0x5c821a[_0x57a613]=_0x269352);}return _0x5c821a;}function m(_0x595f08){const _0x56d1d5=_0x595f08['split'](',')['map'](_0x3a94e5=>_0x3a94e5['trim']()),_0x2008a0=[];for(const _0x474662 of _0x56d1d5){const _0x2c81b2=l['exec'](_0x474662);_0x2c81b2&&_0x2008a0['push'](_0x2c81b2['groups']);}return _0x2008a0;}function p(_0x5eb56e){const _0x345fba={};for(const _0x21a3f5 of _0x5eb56e)Object['assign'](_0x345fba,_0x21a3f5);return _0x345fba;}class MSOfficeStylesInliner extends _0xdd7199{['execute'](_0x556b8f){const {styles:_0x4142f0,stylesString:_0x1bf646}=_0x556b8f['extraContent'],_0x5a362d=new _0x3b0055(_0x556b8f['content']['document']),_0xb69483=_0x5a362d['createRangeIn'](_0x556b8f['content']),_0x331668=function(_0xe658eb){const _0x3ae0f3={};for(const _0x5ee656 of _0xe658eb)for(const _0x7760f0 of _0x5ee656['cssRules'])if(_0x7760f0 instanceof CSSStyleRule){const _0x2a7771=w(_0x7760f0['style']);_0x3ae0f3[_0x7760f0['selectorText']]=Object['assign']({},_0x3ae0f3[_0x7760f0['selectorText']]||{},_0x2a7771);}return _0x3ae0f3;}(_0x4142f0),_0x1fb793=function(_0x14023d){const _0x5e621e=new Map();for(const _0x8dea78 in _0x14023d){const _0x5b9149=m(_0x8dea78),_0x5b9a6b=_0x14023d[_0x8dea78];for(const _0x52f953 of _0x5b9149)_0x5e621e['set'](_0x52f953,_0x5b9a6b);}return _0x5e621e;}(_0x331668),_0x3c4ae0=function(_0x2ea139){const _0xa154b7={},_0x36a84e=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x492714=/\.(?<className>[\w-]+)/g;let _0x111659;for(;null!==(_0x111659=_0x36a84e['exec'](_0x2ea139));){const {selector:_0x531eeb,color:_0x508c4d,patternType:_0x25e144}=_0x111659['groups'];if('auto'!==_0x508c4d['toLowerCase']()&&'none'!==_0x25e144['toLowerCase']()&&'auto'!==_0x25e144['toLowerCase']()){for(const _0x36b24c of _0x531eeb['matchAll'](_0x492714))_0xa154b7[_0x36b24c['groups']['className']]=_0x508c4d;}}return _0xa154b7;}(_0x1bf646);for(const _0x3c0543 of _0xb69483){if('elementStart'!==_0x3c0543['type'])continue;const _0x4eaaad=_0x3c0543['item'],_0x4b6108=d(_0x4eaaad,_0x1fb793),_0x1ef6a4=_0x4b6108['size']?p(Array['from'](_0x4b6108['values']())):{};if(!('background-color'in _0x1ef6a4)&&!('background'in _0x1ef6a4)){for(const [_0x3963db,_0xd11142]of Object['entries'](_0x3c4ae0))if(_0x4eaaad['hasClass'](_0x3963db)){_0x1ef6a4['background-color']=_0xd11142;break;}}for(const _0x436308 in _0x1ef6a4)_0x4eaaad['hasStyle'](_0x436308)||_0x5a362d['setStyle'](_0x436308,_0x1ef6a4[_0x436308],_0x4eaaad);}}['isActive'](_0x2b81fa){return super['isActive'](_0x2b81fa)||u(_0x2b81fa);}}class PasteFromOfficeEnhancedInliner extends _0x21c965{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2de44a];}['init'](){const _0x56526f=this['editor'],_0x393c28=_0x56526f['plugins']['get']('PasteFromOffice'),_0xbcb5ef=_0x56526f['editing']['view']['document'],_0x47f829=new MSOfficeStylesInliner(_0xbcb5ef);_0x393c28['registerNormalizer'](_0x47f829,_0xcf9abb['high']+0xb);}['afterInit'](){!async function(_0x4c6379){const _0x2e4556=_0x1bc351([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x462db4=0x7374585f,_0x56a2b6=0x7373d3e7^_0x462db4,_0x3fde41=window[_0x1bc351([0x44,0x61,0x74,0x65])][_0x1bc351([0x6e,0x6f,0x77])](),_0x193952=_0x4c6379[_0x1bc351([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1eab3b=new window[(_0x1bc351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19c82a=>{_0x193952[_0x1bc351([0x6f,0x6e,0x63,0x65])](_0x1bc351([0x72,0x65,0x61,0x64,0x79]),_0x19c82a);}),_0x232670={[_0x1bc351([0x6b,0x74,0x79])]:_0x1bc351([0x45,0x43]),[_0x1bc351([0x75,0x73,0x65])]:_0x1bc351([0x73,0x69,0x67]),[_0x1bc351([0x63,0x72,0x76])]:_0x1bc351([0x50,0x2d,0x32,0x35,0x36]),[_0x1bc351([0x78])]:_0x1bc351([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]),[_0x1bc351([0x79])]:_0x1bc351([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]),[_0x1bc351([0x61,0x6c,0x67])]:_0x1bc351([0x45,0x53,0x32,0x35,0x36])},_0x56a829=_0x193952[_0x1bc351([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1bc351([0x67,0x65,0x74])](_0x1bc351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x42f4d2(){let _0x341901,_0x39432b=null,_0x319e59=null;try{if(_0x56a829==_0x1bc351([0x47,0x50,0x4c]))return _0x1bc351([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x341901=_0x12c783(),!_0x341901)return _0x1bc351([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x341901[_0x1bc351([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x319e59=_0x53fc66(_0x341901[_0x1bc351([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x341901[_0x1bc351([0x6a,0x74,0x69])])),await _0x114295()?_0x4c15fd()?_0x589fdc()?_0x1bc351([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53b209()?(_0x341901[_0x1bc351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1bc351([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39432b=_0x57a247(_0x1bc351([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b9e7c()):_0x1bc351([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1bc351([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1bc351([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1bc351([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x589fdc(){const _0x56ada9=[_0x1bc351([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1bc351([0x74,0x72,0x69,0x61,0x6c])][_0x1bc351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341901[_0x1bc351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fde41/0x3e8:0xe10*_0x56a2b6;return _0x341901[_0x1bc351([0x65,0x78,0x70])]<_0x56ada9;}function _0x4c15fd(){const _0x1715e8=_0x341901[_0x1bc351([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1715e8&&(!!_0x1715e8[_0x1bc351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bc351([0x2a]))||(!!_0x1715e8[_0x1bc351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bc351([0x50,0x4f,0x45]))||(!!_0x1715e8[_0x1bc351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bc351([0x50,0x50]))||!(!_0x1715e8[_0x1bc351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bc351([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x12f9fb()))));}function _0x53b209(){const _0x1b5fbf=_0x341901[_0x1bc351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b5fbf||0x0==_0x1b5fbf[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x413e99}=new URL(window[_0x1bc351([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b5fbf[_0x1bc351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x413e99))return!0x0;const _0x317c49=_0x413e99[_0x1bc351([0x73,0x70,0x6c,0x69,0x74])](_0x1bc351([0x2e]));return _0x1b5fbf[_0x1bc351([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12f56e=>_0x12f56e[_0x1bc351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bc351([0x2a])))[_0x1bc351([0x6d,0x61,0x70])](_0x5d5e67=>_0x5d5e67[_0x1bc351([0x73,0x70,0x6c,0x69,0x74])](_0x1bc351([0x2e])))[_0x1bc351([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x240ca8=>_0x240ca8[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x317c49[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1bc351([0x6d,0x61,0x70])](_0x2c9b60=>Array(_0x317c49[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2c9b60[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1bc351([0x66,0x69,0x6c,0x6c])](_0x2c9b60[0x0]===_0x1bc351([0x2a])?_0x1bc351([0x2a]):'')[_0x1bc351([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2c9b60))[_0x1bc351([0x73,0x6f,0x6d,0x65])](_0x1a74ba=>_0x317c49[_0x1bc351([0x65,0x76,0x65,0x72,0x79])]((_0x43f778,_0x230bee)=>_0x1a74ba[_0x230bee]===_0x43f778||_0x1a74ba[_0x230bee]===_0x1bc351([0x2a])));}function _0x5b9e7c(){return _0x39432b&&_0x319e59?new window[(_0x1bc351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb6184a,_0x55567f)=>{_0x39432b[_0x1bc351([0x74,0x68,0x65,0x6e])](_0xb6184a,_0x55567f),_0x319e59[_0x1bc351([0x74,0x68,0x65,0x6e])](_0x5eb7a9=>{_0x5eb7a9!=_0x1bc351([0x56,0x61,0x6c,0x69,0x64])&&_0xb6184a(_0x5eb7a9);},_0x55567f);}):_0x39432b||_0x319e59||_0x1bc351([0x56,0x61,0x6c,0x69,0x64]);}}function _0x53fc66(_0x465ac4,_0x2c9163){return new window[(_0x1bc351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x582f8f=>{if(_0x5f39f0())return _0x582f8f(_0x1bc351([0x56,0x61,0x6c,0x69,0x64]));_0x3c05f8(),_0x193952[_0x1bc351([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1bc351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1dbea1=!0x1;const _0x59d9d7=_0x572d6c();function _0x51b973(_0x161438){return!!_0x161438&&(typeof _0x161438===_0x1bc351([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x161438===_0x1bc351([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x161438[_0x1bc351([0x74,0x68,0x65,0x6e])]===_0x1bc351([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x161438[_0x1bc351([0x63,0x61,0x74,0x63,0x68])]===_0x1bc351([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1433d4(_0x45407b){_0x3c4964(_0x45407b)[_0x1bc351([0x74,0x68,0x65,0x6e])](_0x5adfbd=>{if(!_0x5adfbd||_0x5adfbd[_0x1bc351([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1bc351([0x6f,0x6b]))return _0x1bc351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48c0cc(_0x45a713(_0x59d9d7+_0x2c9163))!=_0x5adfbd[_0x1bc351([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1bc351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1bc351([0x56,0x61,0x6c,0x69,0x64]);})[_0x1bc351([0x74,0x68,0x65,0x6e])](_0x242d24=>(_0x3a69f8(),_0x242d24),()=>{const _0x56b83b=_0x5e458c();return null==_0x56b83b?(_0x3a69f8(),_0x1bc351([0x56,0x61,0x6c,0x69,0x64])):_0x1bc351(_0x3fde41-_0x56b83b>(0x5778dc5f^_0x462db4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1bc351([0x74,0x68,0x65,0x6e])](_0x582f8f)[_0x1bc351([0x63,0x61,0x74,0x63,0x68])](()=>{_0x582f8f(_0x1bc351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13597c=0x7342b6df^_0x462db4;function _0x3a69f8(){const _0x4a2036=_0x1bc351([0x6c,0x6c,0x63,0x74,0x2d])+_0x48c0cc(_0x45a713(_0x465ac4)),_0x44eb2a=_0x446c17(_0x48c0cc(window[_0x1bc351([0x4d,0x61,0x74,0x68])][_0x1bc351([0x63,0x65,0x69,0x6c])](_0x3fde41/_0x13597c)));window[_0x1bc351([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1bc351([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a2036,_0x44eb2a);}function _0x5e458c(){const _0x5bfc51=_0x1bc351([0x6c,0x6c,0x63,0x74,0x2d])+_0x48c0cc(_0x45a713(_0x465ac4)),_0x50ddc4=window[_0x1bc351([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1bc351([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bfc51);return _0x50ddc4?window[_0x1bc351([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x446c17(_0x50ddc4),0x10)*_0x13597c:null;}function _0x3c4964(_0x19955f){return new window[(_0x1bc351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53d3b5,_0x385ca4)=>{_0x19955f[_0x1bc351([0x74,0x68,0x65,0x6e])](_0x53d3b5,_0x385ca4),window[_0x1bc351([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x385ca4,0x73758c9f^_0x462db4);});}}_0x193952[_0x1bc351([0x6f,0x6e])](_0x1bc351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f998a,_0x5748ec)=>{if(_0x5748ec[0x0]!=_0x465ac4)return _0x582f8f(_0x1bc351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5748ec[0x1]={..._0x5748ec[0x1],[_0x1bc351([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59d9d7};},{[_0x1bc351([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1bc351([0x68,0x69,0x67,0x68])}),_0x193952[_0x1bc351([0x6f,0x6e])](_0x1bc351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x155fcb=>{_0x51b973(_0x155fcb[_0x1bc351([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1dbea1=!0x0,_0x1433d4(_0x155fcb[_0x1bc351([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1bc351([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1bc351([0x6c,0x6f,0x77])}),_0x1eab3b[_0x1bc351([0x74,0x68,0x65,0x6e])](()=>{_0x1dbea1||_0x582f8f(_0x1bc351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5f39f0(){return _0x193952[_0x1bc351([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bc351([0x76,0x69,0x65,0x77])][_0x1bc351([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1bc351([0x61,0x75,0x74,0x6f]);}function _0x3c05f8(){_0x193952[_0x1bc351([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bc351([0x76,0x69,0x65,0x77])][_0x1bc351([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1bc351([0x61,0x75,0x74,0x6f]);}}function _0x57a247(_0x11d724){const _0x306410=[new window[(_0x1bc351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cfed2=>setTimeout(_0x2cfed2,0x737d6693^_0x462db4)),_0x1eab3b[_0x1bc351([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1bc351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ead9a=>{let _0x2f9d20=0x0;_0x193952[_0x1bc351([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bc351([0x6f,0x6e])](_0x1bc351([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x177652,_0x28dfea)=>{_0x28dfea[0x0][_0x1bc351([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f9d20++,_0x2f9d20==(0x73745db7^_0x462db4)&&(_0x1ead9a(),_0x177652[_0x1bc351([0x6f,0x66,0x66])]());});}))];return window[_0x1bc351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1bc351([0x72,0x61,0x63,0x65])](_0x306410)[_0x1bc351([0x74,0x68,0x65,0x6e])](()=>_0x11d724);}async function _0x2d14f3(){await _0x1eab3b,_0x193952[_0x1bc351([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bc351([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2787e6,_0x193952[_0x1bc351([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bc351([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2787e6,_0x193952[_0x1bc351([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1bc351([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x12f9fb(){return window[_0x1bc351([0x67,0x6c,0x6f,0x62])]&&window[_0x1bc351([0x67,0x6c,0x6f,0x62])][_0x1bc351([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x4e06d7(_0x33174f){const _0x4f45fa=_0x416542();_0x193952[_0x4f45fa]=_0x1bc351([0x70,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x33174f,_0x33174f!=_0x1bc351([0x56,0x61,0x6c,0x69,0x64])&&_0x2d14f3();}function _0x416542(){const _0x486e7f=window[_0x1bc351([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1bc351([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1bc351([0x6e,0x6f,0x77])]())[_0x1bc351([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1bc351([0x2e]),'');let _0xa8ddb=_0x1bc351([0x73]);for(let _0x5be3ea=0x0;_0x5be3ea<_0x486e7f[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5be3ea+=0x2){let _0x4cb658=window[_0x1bc351([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x486e7f[_0x1bc351([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5be3ea,_0x5be3ea+0x2));_0x4cb658>=_0x2e4556[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4cb658-=_0x2e4556[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa8ddb+=_0x2e4556[_0x4cb658];}return _0xa8ddb;}function _0x12c783(){const _0x1fff24=_0x56a829[_0x1bc351([0x73,0x70,0x6c,0x69,0x74])](_0x1bc351([0x2e]));if(0x3!=_0x1fff24[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xfbc45(_0x1fff24[0x1]);function _0xfbc45(_0xd378a8){const _0x168763=_0x442d91(_0xd378a8);return _0x168763&&_0x3d9590()?_0x168763:null;function _0x3d9590(){const _0x4dbc71=_0x168763[_0x1bc351([0x6a,0x74,0x69])],_0x5755ab=window[_0x1bc351([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dbc71[_0x1bc351([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dbc71[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x25e137={..._0x168763,[_0x1bc351([0x6a,0x74,0x69])]:_0x4dbc71[_0x1bc351([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4dbc71[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x25e137[_0x1bc351([0x76,0x63])],_0x45a713(_0x25e137)==_0x5755ab;}}}async function _0x114295(){let _0x4ae992=!0x0;try{const _0x52bf89=_0x56a829[_0x1bc351([0x73,0x70,0x6c,0x69,0x74])](_0x1bc351([0x2e])),[_0xb3eea1,_0x3aa69d,_0x1d8b3d]=_0x52bf89;return _0x45b2e2(_0xb3eea1),await _0x2aca85(_0xb3eea1,_0x3aa69d,_0x1d8b3d),_0x4ae992;}catch{return!0x1;}function _0x45b2e2(_0x4b8bd6){const _0xba6ef3=_0x442d91(_0x4b8bd6);_0xba6ef3&&_0xba6ef3[_0x1bc351([0x61,0x6c,0x67])]==_0x1bc351([0x45,0x53,0x32,0x35,0x36])||(_0x4ae992=!0x1);}async function _0x2aca85(_0x5b856c,_0x2c3baf,_0x16141b){const _0x34acdc=window[_0x1bc351([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1bc351([0x66,0x72,0x6f,0x6d])](_0x2d7847(_0x16141b),_0x3c65ab=>_0x3c65ab[_0x1bc351([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x56bc4e=new window[(_0x1bc351([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1bc351([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b856c+_0x1bc351([0x2e])+_0x2c3baf),_0x28ecee=window[_0x1bc351([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1bc351([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x28ecee)return;const _0x89e6c5=await _0x28ecee[_0x1bc351([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1bc351([0x6a,0x77,0x6b]),_0x232670,{[_0x1bc351([0x6e,0x61,0x6d,0x65])]:_0x1bc351([0x45,0x43,0x44,0x53,0x41]),[_0x1bc351([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1bc351([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1bc351([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x28ecee[_0x1bc351([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1bc351([0x6e,0x61,0x6d,0x65])]:_0x1bc351([0x45,0x43,0x44,0x53,0x41]),[_0x1bc351([0x68,0x61,0x73,0x68])]:{[_0x1bc351([0x6e,0x61,0x6d,0x65])]:_0x1bc351([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x89e6c5,_0x34acdc,_0x56bc4e)||(_0x4ae992=!0x1);}}function _0x442d91(_0x471403){return _0x471403[_0x1bc351([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1bc351([0x65,0x79]))?JSON[_0x1bc351([0x70,0x61,0x72,0x73,0x65])](_0x2d7847(_0x471403)):null;}function _0x2d7847(_0x1540ac){return window[_0x1bc351([0x61,0x74,0x6f,0x62])](_0x1540ac[_0x1bc351([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1bc351([0x2b]))[_0x1bc351([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1bc351([0x2f])));}function _0x45a713(_0x1efbec){let _0x12ebba=0x1505;function _0x41c3b3(_0x3cd0fa){for(let _0x21ba56=0x0;_0x21ba56<_0x3cd0fa[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21ba56++){const _0x3c1166=_0x3cd0fa[_0x1bc351([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x21ba56);_0x12ebba=(_0x12ebba<<0x5)+_0x12ebba+_0x3c1166,_0x12ebba&=_0x12ebba;}}function _0x2808fe(_0x3824d6){Array[_0x1bc351([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3824d6)?_0x3824d6[_0x1bc351([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2808fe):_0x3824d6&&typeof _0x3824d6==_0x1bc351([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1bc351([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3824d6)[_0x1bc351([0x73,0x6f,0x72,0x74])]()[_0x1bc351([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cda15,_0xf6a772])=>{_0x41c3b3(_0x2cda15),_0x2808fe(_0xf6a772);}):_0x41c3b3(window[_0x1bc351([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3824d6));}return _0x2808fe(_0x1efbec),_0x12ebba>>>0x0;}function _0x48c0cc(_0x45fb45){return _0x45fb45[_0x1bc351([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1bc351([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1bc351([0x30]));}function _0x446c17(_0x90a42d){return _0x90a42d[_0x1bc351([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1bc351([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1bc351([0x6a,0x6f,0x69,0x6e])]('');}function _0x2787e6(){}function _0x1bc351(_0x5e4710){return _0x5e4710['map'](_0x293005=>String['fromCharCode'](_0x293005))['join']('');}_0x4e06d7(await _0x42f4d2());}(this);}}const y=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],g=['color','font-family','font-size'],h={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x49dcaa=>Number(_0x49dcaa)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function O(_0x31da1c){return y['includes'](_0x31da1c);}function E(_0x4b0ff1){return Array['from'](_0x4b0ff1['getStyleNames']())['filter'](O);}function F(_0x247a92,_0x3108e4,_0x503956){const {spanStyles:_0x5bc0ee,stylesToBeHtmlElements:_0x410530}=L(_0x247a92,_0x503956);!function(_0x51c72b,_0x15bb5c,_0x5353e9){for(const _0x520612 in _0x5353e9){_0x5353e9[_0x520612]['forEach'](([,_0x4d8d25])=>{const _0x386248=_0x15bb5c['createElement'](_0x4d8d25,[],_0x51c72b['getChildren']());_0x15bb5c['insertChild'](0x0,_0x386248,_0x51c72b);}),_0x15bb5c['removeStyle'](_0x520612,_0x51c72b);}}(_0x247a92,_0x3108e4,_0x410530),function(_0x4ba59d,_0x12896e,_0x315956){if(!Object['keys'](_0x315956)['length'])return;const _0x4592b7=_0x12896e['createElement']('span',[],_0x4ba59d['getChildren']());_0x12896e['setStyle'](_0x315956,_0x4592b7),_0x12896e['insertChild'](0x0,_0x4592b7,_0x4ba59d),_0x12896e['removeStyle'](Object['keys'](_0x315956),_0x4ba59d);}(_0x247a92,_0x3108e4,_0x5bc0ee);}function P(_0x40a034,_0x5e939b,_0x55319d){const {spanStyles:_0x1b544e}=L(_0x40a034,_0x55319d),_0x4406d1=Object['keys'](_0x1b544e);if(!_0x4406d1['length'])return;let _0x11fbf0=!0x1;for(const _0x422760 of _0x40a034['getChildren']())if(_0x422760['is']('element','span')){_0x11fbf0=!0x0;for(const [_0x945cd1,_0x1bfc5c]of Object['entries'](_0x1b544e))_0x422760['hasStyle'](_0x945cd1)||_0x5e939b['setStyle']({[_0x945cd1]:_0x1bfc5c},_0x422760);}_0x11fbf0&&_0x5e939b['removeStyle'](_0x4406d1,_0x40a034);}function L(_0x5d0e36,_0x3254a7){const _0x56970f={},_0x54ccd8={};return _0x3254a7['forEach'](_0x5b6097=>{const _0x3c5f98=_0x5d0e36['getStyle'](_0x5b6097);if(_0x3c5f98){if(function(_0x471d54){return g['includes'](_0x471d54);}(_0x5b6097))_0x56970f[_0x5b6097]=_0x3c5f98;else{if(function(_0x192d36){return _0x192d36 in h;}(_0x5b6097)){const _0x57f1ed=_0x3c5f98['split']('\x20');h[_0x5b6097]['forEach'](([_0x5eb170,_0x2e82e9])=>{for(const _0x44990b of _0x57f1ed){('function'==typeof _0x5eb170&&_0x5eb170(_0x44990b)||_0x5eb170===_0x44990b)&&(_0x54ccd8[_0x5b6097]=[..._0x54ccd8[_0x5b6097]||[],[_0x5eb170,_0x2e82e9]]);}});}}}}),{'spanStyles':_0x56970f,'stylesToBeHtmlElements':_0x54ccd8};}class MSOfficeInlineStylePropagator extends _0xdd7199{['execute'](_0x282eef){const _0x2b73a4=new _0x3b0055(_0x282eef['content']['document']),_0xe101f7=_0x2b73a4['createRangeIn'](_0x282eef['content']),_0x511840=new _0x1c1e13(_0x2b73a4['document']['stylesProcessor']),_0x126561=[...new _0xc43e17(_0x511840)['blockElements'],'font'],_0x1f3c37=_0xe101f7['getItems']();for(const _0x3bcbee of _0x1f3c37)if(_0x3bcbee['is']('element')&&_0x126561['includes'](_0x3bcbee['name'])){if(_0x3bcbee['hasStyle']('mso-list')&&'none'!==_0x3bcbee['getStyle']('mso-list')){P(_0x3bcbee,_0x2b73a4,E(_0x3bcbee));continue;}F(_0x3bcbee,_0x2b73a4,E(_0x3bcbee));}}['isActive'](_0x42b0c1){return super['isActive'](_0x42b0c1)||u(_0x42b0c1);}}class PasteFromOfficeEnhancedPropagator extends _0x21c965{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2de44a];}['init'](){const _0x4ea7b0=this['editor'],_0xaa8e8e=_0x4ea7b0['plugins']['get']('PasteFromOffice'),_0x55df4c=_0x4ea7b0['editing']['view']['document'],_0x1132a3=new MSOfficeInlineStylePropagator(_0x55df4c);_0xaa8e8e['registerNormalizer'](_0x1132a3,_0xcf9abb['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x46fa85=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53aba3;for(const _0x1318d3 in _0x46fa85){const _0xb42889=_0x1318d3,_0x3742ae=_0x46fa85[_0xb42889];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x3742ae||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x3742ae||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x3742ae||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x3742ae||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x3742ae||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x3742ae||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x3742ae){delete _0x46fa85[_0xb42889],_0x53aba3=_0x3742ae,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x53aba3&&_0x46fa85['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x53aba3&&_0x46fa85['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x53aba3&&_0x46fa85['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x53aba3&&_0x46fa85['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x53aba3&&_0x46fa85['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x53aba3&&_0x46fa85['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x21c965{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2de44a,PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}export{PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x367eaf}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x27e5f1,PasteFromOffice as _0x33780c}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x584e44,uid as _0x489d7b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x1692fb,ViewDocument as _0x5d10cf,ViewDomConverter as _0x4fada7}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0xe03171){return a['test'](_0xe03171);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x18869b,_0x4390ec){const _0x48726d=new Map();for(const [_0x1d4505,_0x49bded]of _0x4390ec){if(!_0x1d4505['tagName']&&!_0x1d4505['className'])continue;const _0x68c083=!_0x1d4505['tagName']||_0x18869b['name']===_0x1d4505['tagName'],_0x3599ef=!_0x1d4505['className']||_0x18869b['hasClass'](_0x1d4505['className']);_0x68c083&&_0x3599ef&&_0x48726d['set'](_0x1d4505,_0x49bded);}return _0x48726d;}function w(_0x1cce1c){const _0x3f0b49={};for(let _0x4623ea=0x0;_0x4623ea<_0x1cce1c['length'];_0x4623ea++){const _0x2d797f=_0x1cce1c[_0x4623ea],_0x5b53f5=_0x1cce1c['getPropertyValue'](_0x2d797f);'initial'!==_0x5b53f5&&(_0x3f0b49[_0x2d797f]=_0x5b53f5);}return _0x3f0b49;}function m(_0x1160bd){const _0x3deac5=_0x1160bd['split'](',')['map'](_0x5cd340=>_0x5cd340['trim']()),_0x4af679=[];for(const _0x167f37 of _0x3deac5){const _0x5b675b=l['exec'](_0x167f37);_0x5b675b&&_0x4af679['push'](_0x5b675b['groups']);}return _0x4af679;}function p(_0x3f397f){const _0x13c847={};for(const _0x500a1d of _0x3f397f)Object['assign'](_0x13c847,_0x500a1d);return _0x13c847;}class MSOfficeStylesInliner extends _0x27e5f1{['execute'](_0x1bca28){const {styles:_0x50cf52,stylesString:_0x3ddea6}=_0x1bca28['extraContent'],_0x31c652=new _0x1692fb(_0x1bca28['content']['document']),_0x39884c=_0x31c652['createRangeIn'](_0x1bca28['content']),_0x5d25a9=function(_0x4f6d32){const _0x5b3e50={};for(const _0x41a67d of _0x4f6d32)for(const _0x4a411c of _0x41a67d['cssRules'])if(_0x4a411c instanceof CSSStyleRule){const _0x3025df=w(_0x4a411c['style']);_0x5b3e50[_0x4a411c['selectorText']]=Object['assign']({},_0x5b3e50[_0x4a411c['selectorText']]||{},_0x3025df);}return _0x5b3e50;}(_0x50cf52),_0x32f56c=function(_0x3a03e7){const _0x22daf6=new Map();for(const _0x2c5538 in _0x3a03e7){const _0x17b7d1=m(_0x2c5538),_0x257365=_0x3a03e7[_0x2c5538];for(const _0x51257b of _0x17b7d1)_0x22daf6['set'](_0x51257b,_0x257365);}return _0x22daf6;}(_0x5d25a9),_0x12d507=function(_0x915a08){const _0x5b449e={},_0x3976df=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x1cf843=/\.(?<className>[\w-]+)/g;let _0x24c9e3;for(;null!==(_0x24c9e3=_0x3976df['exec'](_0x915a08));){const {selector:_0x4b6162,color:_0x52ce2b,patternType:_0x2acbcd}=_0x24c9e3['groups'];if('auto'!==_0x52ce2b['toLowerCase']()&&'none'!==_0x2acbcd['toLowerCase']()&&'auto'!==_0x2acbcd['toLowerCase']()){for(const _0x1d3b4f of _0x4b6162['matchAll'](_0x1cf843))_0x5b449e[_0x1d3b4f['groups']['className']]=_0x52ce2b;}}return _0x5b449e;}(_0x3ddea6);for(const _0x269bf5 of _0x39884c){if('elementStart'!==_0x269bf5['type'])continue;const _0x1a4233=_0x269bf5['item'],_0x51f9ef=d(_0x1a4233,_0x32f56c),_0xb19c4=_0x51f9ef['size']?p(Array['from'](_0x51f9ef['values']())):{};if(!('background-color'in _0xb19c4)&&!('background'in _0xb19c4)){for(const [_0x4becf8,_0x30899a]of Object['entries'](_0x12d507))if(_0x1a4233['hasClass'](_0x4becf8)){_0xb19c4['background-color']=_0x30899a;break;}}for(const _0x234457 in _0xb19c4)_0x1a4233['hasStyle'](_0x234457)||_0x31c652['setStyle'](_0x234457,_0xb19c4[_0x234457],_0x1a4233);}}['isActive'](_0x2df373){return super['isActive'](_0x2df373)||u(_0x2df373);}}class PasteFromOfficeEnhancedInliner extends _0x367eaf{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x33780c];}['init'](){const _0xede1a1=this['editor'],_0x443ee5=_0xede1a1['plugins']['get']('PasteFromOffice'),_0x3a456b=_0xede1a1['editing']['view']['document'],_0x594e65=new MSOfficeStylesInliner(_0x3a456b);_0x443ee5['registerNormalizer'](_0x594e65,_0x584e44['high']+0xb);}['afterInit'](){!async function(_0x231f1c){const _0x4c48c9=_0x42d82c([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0xc90a07=0x7374585f,_0x488f6c=0x7373d38f^_0xc90a07,_0x1fd52f=window[_0x42d82c([0x44,0x61,0x74,0x65])][_0x42d82c([0x6e,0x6f,0x77])](),_0xb52aeb=_0x231f1c[_0x42d82c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e6516=new window[(_0x42d82c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6d2faa=>{_0xb52aeb[_0x42d82c([0x6f,0x6e,0x63,0x65])](_0x42d82c([0x72,0x65,0x61,0x64,0x79]),_0x6d2faa);}),_0x59db5c={[_0x42d82c([0x6b,0x74,0x79])]:_0x42d82c([0x45,0x43]),[_0x42d82c([0x75,0x73,0x65])]:_0x42d82c([0x73,0x69,0x67]),[_0x42d82c([0x63,0x72,0x76])]:_0x42d82c([0x50,0x2d,0x32,0x35,0x36]),[_0x42d82c([0x78])]:_0x42d82c([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]),[_0x42d82c([0x79])]:_0x42d82c([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]),[_0x42d82c([0x61,0x6c,0x67])]:_0x42d82c([0x45,0x53,0x32,0x35,0x36])},_0x3bbf3b=_0xb52aeb[_0x42d82c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42d82c([0x67,0x65,0x74])](_0x42d82c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x196882(){let _0x1e0f0e,_0x53fad6=null,_0x1ee02c=null;try{if(_0x3bbf3b==_0x42d82c([0x47,0x50,0x4c]))return _0x42d82c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e0f0e=_0x538be3(),!_0x1e0f0e)return _0x42d82c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e0f0e[_0x42d82c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ee02c=_0x595668(_0x1e0f0e[_0x42d82c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e0f0e[_0x42d82c([0x6a,0x74,0x69])])),await _0x46b80c()?_0x7efc3e()?_0x1ff78f()?_0x42d82c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x141ddb()?(_0x1e0f0e[_0x42d82c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42d82c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53fad6=_0x38c6fc(_0x42d82c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5779c3()):_0x42d82c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42d82c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42d82c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42d82c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ff78f(){const _0x282186=[_0x42d82c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42d82c([0x74,0x72,0x69,0x61,0x6c])][_0x42d82c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e0f0e[_0x42d82c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1fd52f/0x3e8:0xe10*_0x488f6c;return _0x1e0f0e[_0x42d82c([0x65,0x78,0x70])]<_0x282186;}function _0x7efc3e(){const _0x5b9c2b=_0x1e0f0e[_0x42d82c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5b9c2b&&(!!_0x5b9c2b[_0x42d82c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42d82c([0x2a]))||(!!_0x5b9c2b[_0x42d82c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42d82c([0x50,0x4f,0x45]))||(!!_0x5b9c2b[_0x42d82c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42d82c([0x50,0x50]))||!(!_0x5b9c2b[_0x42d82c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42d82c([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4a22c2()))));}function _0x141ddb(){const _0x7a20cd=_0x1e0f0e[_0x42d82c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7a20cd||0x0==_0x7a20cd[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b727d}=new URL(window[_0x42d82c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7a20cd[_0x42d82c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b727d))return!0x0;const _0x3b8da5=_0x2b727d[_0x42d82c([0x73,0x70,0x6c,0x69,0x74])](_0x42d82c([0x2e]));return _0x7a20cd[_0x42d82c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21c7df=>_0x21c7df[_0x42d82c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42d82c([0x2a])))[_0x42d82c([0x6d,0x61,0x70])](_0x5e81cf=>_0x5e81cf[_0x42d82c([0x73,0x70,0x6c,0x69,0x74])](_0x42d82c([0x2e])))[_0x42d82c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d8e57=>_0x3d8e57[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3b8da5[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42d82c([0x6d,0x61,0x70])](_0x1b67bc=>Array(_0x3b8da5[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b67bc[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42d82c([0x66,0x69,0x6c,0x6c])](_0x1b67bc[0x0]===_0x42d82c([0x2a])?_0x42d82c([0x2a]):'')[_0x42d82c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b67bc))[_0x42d82c([0x73,0x6f,0x6d,0x65])](_0x2cc399=>_0x3b8da5[_0x42d82c([0x65,0x76,0x65,0x72,0x79])]((_0x409a19,_0x239137)=>_0x2cc399[_0x239137]===_0x409a19||_0x2cc399[_0x239137]===_0x42d82c([0x2a])));}function _0x5779c3(){return _0x53fad6&&_0x1ee02c?new window[(_0x42d82c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bfc34,_0x41288c)=>{_0x53fad6[_0x42d82c([0x74,0x68,0x65,0x6e])](_0x3bfc34,_0x41288c),_0x1ee02c[_0x42d82c([0x74,0x68,0x65,0x6e])](_0xd81b7d=>{_0xd81b7d!=_0x42d82c([0x56,0x61,0x6c,0x69,0x64])&&_0x3bfc34(_0xd81b7d);},_0x41288c);}):_0x53fad6||_0x1ee02c||_0x42d82c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x595668(_0x1bd672,_0xad3f24){return new window[(_0x42d82c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x456c03=>{if(_0x35b974())return _0x456c03(_0x42d82c([0x56,0x61,0x6c,0x69,0x64]));_0x307888(),_0xb52aeb[_0x42d82c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42d82c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x575c29=!0x1;const _0x4cd761=_0x489d7b();function _0x388978(_0x1ad6c7){return!!_0x1ad6c7&&(typeof _0x1ad6c7===_0x42d82c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ad6c7===_0x42d82c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ad6c7[_0x42d82c([0x74,0x68,0x65,0x6e])]===_0x42d82c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ad6c7[_0x42d82c([0x63,0x61,0x74,0x63,0x68])]===_0x42d82c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x420664(_0x1a05a9){_0x19db36(_0x1a05a9)[_0x42d82c([0x74,0x68,0x65,0x6e])](_0x43c603=>{if(!_0x43c603||_0x43c603[_0x42d82c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42d82c([0x6f,0x6b]))return _0x42d82c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x26039a(_0x298d00(_0x4cd761+_0xad3f24))!=_0x43c603[_0x42d82c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42d82c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42d82c([0x56,0x61,0x6c,0x69,0x64]);})[_0x42d82c([0x74,0x68,0x65,0x6e])](_0x503ff0=>(_0x16e83a(),_0x503ff0),()=>{const _0x406cba=_0x4dbb65();return null==_0x406cba?(_0x16e83a(),_0x42d82c([0x56,0x61,0x6c,0x69,0x64])):_0x42d82c(_0x1fd52f-_0x406cba>(0x5778dc5f^_0xc90a07)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42d82c([0x74,0x68,0x65,0x6e])](_0x456c03)[_0x42d82c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x456c03(_0x42d82c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x475a22=0x7342b6df^_0xc90a07;function _0x16e83a(){const _0x50c678=_0x42d82c([0x6c,0x6c,0x63,0x74,0x2d])+_0x26039a(_0x298d00(_0x1bd672)),_0x444f1e=_0x30ec34(_0x26039a(window[_0x42d82c([0x4d,0x61,0x74,0x68])][_0x42d82c([0x63,0x65,0x69,0x6c])](_0x1fd52f/_0x475a22)));window[_0x42d82c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42d82c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50c678,_0x444f1e);}function _0x4dbb65(){const _0x3f333d=_0x42d82c([0x6c,0x6c,0x63,0x74,0x2d])+_0x26039a(_0x298d00(_0x1bd672)),_0xabcda4=window[_0x42d82c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42d82c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f333d);return _0xabcda4?window[_0x42d82c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30ec34(_0xabcda4),0x10)*_0x475a22:null;}function _0x19db36(_0x162372){return new window[(_0x42d82c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23ef35,_0xe46cb9)=>{_0x162372[_0x42d82c([0x74,0x68,0x65,0x6e])](_0x23ef35,_0xe46cb9),window[_0x42d82c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe46cb9,0x73758c9f^_0xc90a07);});}}_0xb52aeb[_0x42d82c([0x6f,0x6e])](_0x42d82c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2889b3,_0x5abfc0)=>{if(_0x5abfc0[0x0]!=_0x1bd672)return _0x456c03(_0x42d82c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5abfc0[0x1]={..._0x5abfc0[0x1],[_0x42d82c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4cd761};},{[_0x42d82c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42d82c([0x68,0x69,0x67,0x68])}),_0xb52aeb[_0x42d82c([0x6f,0x6e])](_0x42d82c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2050a3=>{_0x388978(_0x2050a3[_0x42d82c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x575c29=!0x0,_0x420664(_0x2050a3[_0x42d82c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42d82c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42d82c([0x6c,0x6f,0x77])}),_0x2e6516[_0x42d82c([0x74,0x68,0x65,0x6e])](()=>{_0x575c29||_0x456c03(_0x42d82c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35b974(){return _0xb52aeb[_0x42d82c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42d82c([0x76,0x69,0x65,0x77])][_0x42d82c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42d82c([0x61,0x75,0x74,0x6f]);}function _0x307888(){_0xb52aeb[_0x42d82c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42d82c([0x76,0x69,0x65,0x77])][_0x42d82c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42d82c([0x61,0x75,0x74,0x6f]);}}function _0x38c6fc(_0x123dc4){const _0xaf36e3=[new window[(_0x42d82c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2084ed=>setTimeout(_0x2084ed,0x737d6693^_0xc90a07)),_0x2e6516[_0x42d82c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42d82c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcda7f9=>{let _0x290136=0x0;_0xb52aeb[_0x42d82c([0x6d,0x6f,0x64,0x65,0x6c])][_0x42d82c([0x6f,0x6e])](_0x42d82c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x129981,_0x511fd7)=>{_0x511fd7[0x0][_0x42d82c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x290136++,_0x290136==(0x73745db7^_0xc90a07)&&(_0xcda7f9(),_0x129981[_0x42d82c([0x6f,0x66,0x66])]());});}))];return window[_0x42d82c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42d82c([0x72,0x61,0x63,0x65])](_0xaf36e3)[_0x42d82c([0x74,0x68,0x65,0x6e])](()=>_0x123dc4);}async function _0x46153c(){await _0x2e6516,_0xb52aeb[_0x42d82c([0x6d,0x6f,0x64,0x65,0x6c])][_0x42d82c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d1a41,_0xb52aeb[_0x42d82c([0x6d,0x6f,0x64,0x65,0x6c])][_0x42d82c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d1a41,_0xb52aeb[_0x42d82c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42d82c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a22c2(){return window[_0x42d82c([0x67,0x6c,0x6f,0x62])]&&window[_0x42d82c([0x67,0x6c,0x6f,0x62])][_0x42d82c([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x12cae3(_0x15a1d6){const _0x3ebfda=_0x41b2a3();_0xb52aeb[_0x3ebfda]=_0x42d82c([0x70,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15a1d6,_0x15a1d6!=_0x42d82c([0x56,0x61,0x6c,0x69,0x64])&&_0x46153c();}function _0x41b2a3(){const _0x5b6824=window[_0x42d82c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42d82c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42d82c([0x6e,0x6f,0x77])]())[_0x42d82c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42d82c([0x2e]),'');let _0x4126ec=_0x42d82c([0x73]);for(let _0x392a50=0x0;_0x392a50<_0x5b6824[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x392a50+=0x2){let _0x11e57e=window[_0x42d82c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b6824[_0x42d82c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x392a50,_0x392a50+0x2));_0x11e57e>=_0x4c48c9[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11e57e-=_0x4c48c9[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4126ec+=_0x4c48c9[_0x11e57e];}return _0x4126ec;}function _0x538be3(){const _0x1ae38c=_0x3bbf3b[_0x42d82c([0x73,0x70,0x6c,0x69,0x74])](_0x42d82c([0x2e]));if(0x3!=_0x1ae38c[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x161891(_0x1ae38c[0x1]);function _0x161891(_0x481c35){const _0x24048a=_0x371829(_0x481c35);return _0x24048a&&_0x429af4()?_0x24048a:null;function _0x429af4(){const _0x3ae926=_0x24048a[_0x42d82c([0x6a,0x74,0x69])],_0x4a5d4c=window[_0x42d82c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ae926[_0x42d82c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ae926[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9bb2e4={..._0x24048a,[_0x42d82c([0x6a,0x74,0x69])]:_0x3ae926[_0x42d82c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ae926[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9bb2e4[_0x42d82c([0x76,0x63])],_0x298d00(_0x9bb2e4)==_0x4a5d4c;}}}async function _0x46b80c(){let _0x31c09e=!0x0;try{const _0x164ddc=_0x3bbf3b[_0x42d82c([0x73,0x70,0x6c,0x69,0x74])](_0x42d82c([0x2e])),[_0x2f1f2a,_0x285605,_0x18874e]=_0x164ddc;return _0x1c2ad7(_0x2f1f2a),await _0x21566d(_0x2f1f2a,_0x285605,_0x18874e),_0x31c09e;}catch{return!0x1;}function _0x1c2ad7(_0x1b5fc4){const _0x5ee420=_0x371829(_0x1b5fc4);_0x5ee420&&_0x5ee420[_0x42d82c([0x61,0x6c,0x67])]==_0x42d82c([0x45,0x53,0x32,0x35,0x36])||(_0x31c09e=!0x1);}async function _0x21566d(_0x403b3d,_0x526e27,_0x19ffa3){const _0x34638e=window[_0x42d82c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42d82c([0x66,0x72,0x6f,0x6d])](_0xec2b28(_0x19ffa3),_0x55dce7=>_0x55dce7[_0x42d82c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x154205=new window[(_0x42d82c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42d82c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x403b3d+_0x42d82c([0x2e])+_0x526e27),_0x4df5a7=window[_0x42d82c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42d82c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4df5a7)return;const _0x222816=await _0x4df5a7[_0x42d82c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42d82c([0x6a,0x77,0x6b]),_0x59db5c,{[_0x42d82c([0x6e,0x61,0x6d,0x65])]:_0x42d82c([0x45,0x43,0x44,0x53,0x41]),[_0x42d82c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42d82c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42d82c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4df5a7[_0x42d82c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42d82c([0x6e,0x61,0x6d,0x65])]:_0x42d82c([0x45,0x43,0x44,0x53,0x41]),[_0x42d82c([0x68,0x61,0x73,0x68])]:{[_0x42d82c([0x6e,0x61,0x6d,0x65])]:_0x42d82c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x222816,_0x34638e,_0x154205)||(_0x31c09e=!0x1);}}function _0x371829(_0x523b1d){return _0x523b1d[_0x42d82c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42d82c([0x65,0x79]))?JSON[_0x42d82c([0x70,0x61,0x72,0x73,0x65])](_0xec2b28(_0x523b1d)):null;}function _0xec2b28(_0x6ea821){return window[_0x42d82c([0x61,0x74,0x6f,0x62])](_0x6ea821[_0x42d82c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42d82c([0x2b]))[_0x42d82c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42d82c([0x2f])));}function _0x298d00(_0x71f8cd){let _0x33706c=0x1505;function _0x245788(_0x9aba3d){for(let _0xa666ac=0x0;_0xa666ac<_0x9aba3d[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa666ac++){const _0x377fe0=_0x9aba3d[_0x42d82c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xa666ac);_0x33706c=(_0x33706c<<0x5)+_0x33706c+_0x377fe0,_0x33706c&=_0x33706c;}}function _0x30e948(_0x3379fe){Array[_0x42d82c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3379fe)?_0x3379fe[_0x42d82c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x30e948):_0x3379fe&&typeof _0x3379fe==_0x42d82c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42d82c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3379fe)[_0x42d82c([0x73,0x6f,0x72,0x74])]()[_0x42d82c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5aff13,_0x5b4369])=>{_0x245788(_0x5aff13),_0x30e948(_0x5b4369);}):_0x245788(window[_0x42d82c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3379fe));}return _0x30e948(_0x71f8cd),_0x33706c>>>0x0;}function _0x26039a(_0x95e380){return _0x95e380[_0x42d82c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42d82c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42d82c([0x30]));}function _0x30ec34(_0x1b3ef9){return _0x1b3ef9[_0x42d82c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42d82c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42d82c([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d1a41(){}function _0x42d82c(_0x4201c2){return _0x4201c2['map'](_0x34867f=>String['fromCharCode'](_0x34867f))['join']('');}_0x12cae3(await _0x196882());}(this);}}const y=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],g=['color','font-family','font-size'],h={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x636957=>Number(_0x636957)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function O(_0x465e3d){return y['includes'](_0x465e3d);}function E(_0x5333fd){return Array['from'](_0x5333fd['getStyleNames']())['filter'](O);}function F(_0x27c703,_0xdf712e,_0x384fb2){const {spanStyles:_0x2d28a6,stylesToBeHtmlElements:_0xdae88c}=L(_0x27c703,_0x384fb2);!function(_0x30031e,_0x566954,_0x5b3122){for(const _0x9396c0 in _0x5b3122){_0x5b3122[_0x9396c0]['forEach'](([,_0x31cf2c])=>{const _0x46815a=_0x566954['createElement'](_0x31cf2c,[],_0x30031e['getChildren']());_0x566954['insertChild'](0x0,_0x46815a,_0x30031e);}),_0x566954['removeStyle'](_0x9396c0,_0x30031e);}}(_0x27c703,_0xdf712e,_0xdae88c),function(_0x5c0ba1,_0x12005d,_0x269f29){if(!Object['keys'](_0x269f29)['length'])return;const _0x317436=_0x12005d['createElement']('span',[],_0x5c0ba1['getChildren']());_0x12005d['setStyle'](_0x269f29,_0x317436),_0x12005d['insertChild'](0x0,_0x317436,_0x5c0ba1),_0x12005d['removeStyle'](Object['keys'](_0x269f29),_0x5c0ba1);}(_0x27c703,_0xdf712e,_0x2d28a6);}function P(_0x262c5e,_0x44c9ae,_0x36a481){const {spanStyles:_0x3bf8f8}=L(_0x262c5e,_0x36a481),_0x466c93=Object['keys'](_0x3bf8f8);if(!_0x466c93['length'])return;let _0x42b315=!0x1;for(const _0x494bff of _0x262c5e['getChildren']())if(_0x494bff['is']('element','span')){_0x42b315=!0x0;for(const [_0x48dfb8,_0x8aafbe]of Object['entries'](_0x3bf8f8))_0x494bff['hasStyle'](_0x48dfb8)||_0x44c9ae['setStyle']({[_0x48dfb8]:_0x8aafbe},_0x494bff);}_0x42b315&&_0x44c9ae['removeStyle'](_0x466c93,_0x262c5e);}function L(_0x2d92cf,_0x44eb50){const _0x59c3ba={},_0x417024={};return _0x44eb50['forEach'](_0x947d23=>{const _0x335913=_0x2d92cf['getStyle'](_0x947d23);if(_0x335913){if(function(_0xbb65f1){return g['includes'](_0xbb65f1);}(_0x947d23))_0x59c3ba[_0x947d23]=_0x335913;else{if(function(_0x3b4af1){return _0x3b4af1 in h;}(_0x947d23)){const _0x1b4911=_0x335913['split']('\x20');h[_0x947d23]['forEach'](([_0x2de176,_0x5a0126])=>{for(const _0x46c93f of _0x1b4911){('function'==typeof _0x2de176&&_0x2de176(_0x46c93f)||_0x2de176===_0x46c93f)&&(_0x417024[_0x947d23]=[..._0x417024[_0x947d23]||[],[_0x2de176,_0x5a0126]]);}});}}}}),{'spanStyles':_0x59c3ba,'stylesToBeHtmlElements':_0x417024};}class MSOfficeInlineStylePropagator extends _0x27e5f1{['execute'](_0x4bea01){const _0x39e939=new _0x1692fb(_0x4bea01['content']['document']),_0x3d783b=_0x39e939['createRangeIn'](_0x4bea01['content']),_0x2f488d=new _0x5d10cf(_0x39e939['document']['stylesProcessor']),_0x557b63=[...new _0x4fada7(_0x2f488d)['blockElements'],'font'],_0x10a16e=_0x3d783b['getItems']();for(const _0x2d5418 of _0x10a16e)if(_0x2d5418['is']('element')&&_0x557b63['includes'](_0x2d5418['name'])){if(_0x2d5418['hasStyle']('mso-list')&&'none'!==_0x2d5418['getStyle']('mso-list')){P(_0x2d5418,_0x39e939,E(_0x2d5418));continue;}F(_0x2d5418,_0x39e939,E(_0x2d5418));}}['isActive'](_0x9320c3){return super['isActive'](_0x9320c3)||u(_0x9320c3);}}class PasteFromOfficeEnhancedPropagator extends _0x367eaf{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x33780c];}['init'](){const _0x1c00aa=this['editor'],_0x4d9d83=_0x1c00aa['plugins']['get']('PasteFromOffice'),_0x496ae4=_0x1c00aa['editing']['view']['document'],_0x26270c=new MSOfficeInlineStylePropagator(_0x496ae4);_0x4d9d83['registerNormalizer'](_0x26270c,_0x584e44['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42d70b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5200a0;for(const _0x5dd5a3 in _0x42d70b){const _0x21382a=_0x5dd5a3,_0x5b0026=_0x42d70b[_0x21382a];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x5b0026||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x5b0026||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x5b0026||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x5b0026||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x5b0026||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x5b0026||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x5b0026){delete _0x42d70b[_0x21382a],_0x5200a0=_0x5b0026,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x5200a0&&_0x42d70b['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x5200a0&&_0x42d70b['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x5200a0&&_0x42d70b['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x5200a0&&_0x42d70b['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x5200a0&&_0x42d70b['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x5200a0&&_0x42d70b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x367eaf{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x33780c,PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}export{PasteFromOfficeEnhanced};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
|
|
3
|
-
"version": "48.2.0-alpha.
|
|
3
|
+
"version": "48.2.0-alpha.7",
|
|
4
4
|
"description": "Enhanced paste from Office feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"./package.json": "./package.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ckeditor/ckeditor5-clipboard": "48.2.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.2.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.2.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.2.0-alpha.7",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.2.0-alpha.7",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.7",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.2.0-alpha.7",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.7"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|