@ckeditor/ckeditor5-paste-from-office-enhanced 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{Plugin as _0x5242e3}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x447a08,PasteFromOffice as _0x4d2a1b}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x245a22,uid as _0x282cb5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x643c1d,ViewDocument as _0x574e8d,ViewDomConverter as _0x73054f}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x75d5d6){return a['test'](_0x75d5d6);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x41b5e4,_0x2c8518){const _0x1dd133=new Map();for(const [_0xfec508,_0x4acff8]of _0x2c8518){if(!_0xfec508['tagName']&&!_0xfec508['className'])continue;const _0x196695=!_0xfec508['tagName']||_0x41b5e4['name']===_0xfec508['tagName'],_0x44854b=!_0xfec508['className']||_0x41b5e4['hasClass'](_0xfec508['className']);_0x196695&&_0x44854b&&_0x1dd133['set'](_0xfec508,_0x4acff8);}return _0x1dd133;}function w(_0x4f74c1){const _0x12e126={};for(let _0x126a6e=0x0;_0x126a6e<_0x4f74c1['length'];_0x126a6e++){const _0x34524c=_0x4f74c1[_0x126a6e],_0x1b09bc=_0x4f74c1['getPropertyValue'](_0x34524c);'initial'!==_0x1b09bc&&(_0x12e126[_0x34524c]=_0x1b09bc);}return _0x12e126;}function m(_0x2a7efe){const _0x2c2317=_0x2a7efe['split'](',')['map'](_0x1217c2=>_0x1217c2['trim']()),_0x48a745=[];for(const _0xa3864 of _0x2c2317){const _0x50f744=l['exec'](_0xa3864);_0x50f744&&_0x48a745['push'](_0x50f744['groups']);}return _0x48a745;}function p(_0x1cdc6b){const _0x439df6={};for(const _0x3d081d of _0x1cdc6b)Object['assign'](_0x439df6,_0x3d081d);return _0x439df6;}class MSOfficeStylesInliner extends _0x447a08{['execute'](_0x16eb65){const {styles:_0x50b666,stylesString:_0x134b02}=_0x16eb65['extraContent'],_0x419b53=new _0x643c1d(_0x16eb65['content']['document']),_0x212ebb=_0x419b53['createRangeIn'](_0x16eb65['content']),_0x162a38=function(_0x39a38f){const _0xbd01c0={};for(const _0x4ec253 of _0x39a38f)for(const _0x40c5cb of _0x4ec253['cssRules'])if(_0x40c5cb instanceof CSSStyleRule){const _0x420ba2=w(_0x40c5cb['style']);_0xbd01c0[_0x40c5cb['selectorText']]=Object['assign']({},_0xbd01c0[_0x40c5cb['selectorText']]||{},_0x420ba2);}return _0xbd01c0;}(_0x50b666),_0x38a9ba=function(_0x3f5b1f){const _0x2e9127=new Map();for(const _0x2fbabd in _0x3f5b1f){const _0x586549=m(_0x2fbabd),_0xc14b64=_0x3f5b1f[_0x2fbabd];for(const _0x20ba69 of _0x586549)_0x2e9127['set'](_0x20ba69,_0xc14b64);}return _0x2e9127;}(_0x162a38),_0x70ae64=function(_0xdcb7d9){const _0x36fea7={},_0x2d1260=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x3b02c0=/\.(?<className>[\w-]+)/g;let _0x46643b;for(;null!==(_0x46643b=_0x2d1260['exec'](_0xdcb7d9));){const {selector:_0x32698b,color:_0x119df4,patternType:_0x4cc1af}=_0x46643b['groups'];if('auto'!==_0x119df4['toLowerCase']()&&'none'!==_0x4cc1af['toLowerCase']()&&'auto'!==_0x4cc1af['toLowerCase']()){for(const _0x350816 of _0x32698b['matchAll'](_0x3b02c0))_0x36fea7[_0x350816['groups']['className']]=_0x119df4;}}return _0x36fea7;}(_0x134b02);for(const _0x5ce79d of _0x212ebb){if('elementStart'!==_0x5ce79d['type'])continue;const _0x58a07c=_0x5ce79d['item'],_0x55407e=d(_0x58a07c,_0x38a9ba),_0xddb176=_0x55407e['size']?p(Array['from'](_0x55407e['values']())):{};if(!('background-color'in _0xddb176)&&!('background'in _0xddb176)){for(const [_0x5c54bf,_0xaee72b]of Object['entries'](_0x70ae64))if(_0x58a07c['hasClass'](_0x5c54bf)){_0xddb176['background-color']=_0xaee72b;break;}}for(const _0x415ead in _0xddb176)_0x58a07c['hasStyle'](_0x415ead)||_0x419b53['setStyle'](_0x415ead,_0xddb176[_0x415ead],_0x58a07c);}}['isActive'](_0x3c8836){return super['isActive'](_0x3c8836)||u(_0x3c8836);}}class PasteFromOfficeEnhancedInliner extends _0x5242e3{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4d2a1b];}['init'](){const _0x27ad01=this['editor'],_0x5a416d=_0x27ad01['plugins']['get']('PasteFromOffice'),_0x53dd4c=_0x27ad01['editing']['view']['document'],_0x21b670=new MSOfficeStylesInliner(_0x53dd4c);_0x5a416d['registerNormalizer'](_0x21b670,_0x245a22['high']+0xb);}['afterInit'](){!async function(_0x35862f){const _0x3330e9=_0x356001([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]),_0x4c55e9=0x7374585f,_0x57f258=0x7373d3d7^_0x4c55e9,_0x567af4=window[_0x356001([0x44,0x61,0x74,0x65])][_0x356001([0x6e,0x6f,0x77])](),_0x11ed0f=_0x35862f[_0x356001([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x884525=new window[(_0x356001([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x106493=>{_0x11ed0f[_0x356001([0x6f,0x6e,0x63,0x65])](_0x356001([0x72,0x65,0x61,0x64,0x79]),_0x106493);}),_0x344365={[_0x356001([0x6b,0x74,0x79])]:_0x356001([0x45,0x43]),[_0x356001([0x75,0x73,0x65])]:_0x356001([0x73,0x69,0x67]),[_0x356001([0x63,0x72,0x76])]:_0x356001([0x50,0x2d,0x32,0x35,0x36]),[_0x356001([0x78])]:_0x356001([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]),[_0x356001([0x79])]:_0x356001([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]),[_0x356001([0x61,0x6c,0x67])]:_0x356001([0x45,0x53,0x32,0x35,0x36])},_0x2b45b3=_0x11ed0f[_0x356001([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x356001([0x67,0x65,0x74])](_0x356001([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47647d(){let _0x1e711b,_0x579949=null,_0x533de0=null;try{if(_0x2b45b3==_0x356001([0x47,0x50,0x4c]))return _0x356001([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e711b=_0x28097f(),!_0x1e711b)return _0x356001([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e711b[_0x356001([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x533de0=_0x3ee1d6(_0x1e711b[_0x356001([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e711b[_0x356001([0x6a,0x74,0x69])])),await _0x5608b8()?_0x4b78bd()?_0x2bb065()?_0x356001([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48b54f()?(_0x1e711b[_0x356001([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x356001([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x579949=_0x11e023(_0x356001([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d1771()):_0x356001([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x356001([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x356001([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x356001([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2bb065(){const _0x10dd3c=[_0x356001([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x356001([0x74,0x72,0x69,0x61,0x6c])][_0x356001([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e711b[_0x356001([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x567af4/0x3e8:0xe10*_0x57f258;return _0x1e711b[_0x356001([0x65,0x78,0x70])]<_0x10dd3c;}function _0x4b78bd(){const _0x446b3e=_0x1e711b[_0x356001([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x446b3e&&(!!_0x446b3e[_0x356001([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x356001([0x2a]))||(!!_0x446b3e[_0x356001([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x356001([0x50,0x4f,0x45]))||(!!_0x446b3e[_0x356001([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x356001([0x50,0x50]))||!(!_0x446b3e[_0x356001([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x356001([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x1081ba()))));}function _0x48b54f(){const _0x1b3aef=_0x1e711b[_0x356001([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b3aef||0x0==_0x1b3aef[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x498591}=new URL(window[_0x356001([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b3aef[_0x356001([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498591))return!0x0;const _0xea27b=_0x498591[_0x356001([0x73,0x70,0x6c,0x69,0x74])](_0x356001([0x2e]));return _0x1b3aef[_0x356001([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e1d6a=>_0x5e1d6a[_0x356001([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x356001([0x2a])))[_0x356001([0x6d,0x61,0x70])](_0x462baa=>_0x462baa[_0x356001([0x73,0x70,0x6c,0x69,0x74])](_0x356001([0x2e])))[_0x356001([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x302047=>_0x302047[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xea27b[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x356001([0x6d,0x61,0x70])](_0x8036d5=>Array(_0xea27b[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x8036d5[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x356001([0x66,0x69,0x6c,0x6c])](_0x8036d5[0x0]===_0x356001([0x2a])?_0x356001([0x2a]):'')[_0x356001([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x8036d5))[_0x356001([0x73,0x6f,0x6d,0x65])](_0x581772=>_0xea27b[_0x356001([0x65,0x76,0x65,0x72,0x79])]((_0x5a23b0,_0x344fff)=>_0x581772[_0x344fff]===_0x5a23b0||_0x581772[_0x344fff]===_0x356001([0x2a])));}function _0x4d1771(){return _0x579949&&_0x533de0?new window[(_0x356001([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29db4e,_0x5b0588)=>{_0x579949[_0x356001([0x74,0x68,0x65,0x6e])](_0x29db4e,_0x5b0588),_0x533de0[_0x356001([0x74,0x68,0x65,0x6e])](_0x183bef=>{_0x183bef!=_0x356001([0x56,0x61,0x6c,0x69,0x64])&&_0x29db4e(_0x183bef);},_0x5b0588);}):_0x579949||_0x533de0||_0x356001([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ee1d6(_0x1b287f,_0x5dbecc){return new window[(_0x356001([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bed6c=>{if(_0xacfa3b())return _0x2bed6c(_0x356001([0x56,0x61,0x6c,0x69,0x64]));_0x1ac5b1(),_0x11ed0f[_0x356001([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x356001([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c9735=!0x1;const _0x449cf5=_0x282cb5();function _0x545f18(_0x2d99f6){return!!_0x2d99f6&&(typeof _0x2d99f6===_0x356001([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d99f6===_0x356001([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d99f6[_0x356001([0x74,0x68,0x65,0x6e])]===_0x356001([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d99f6[_0x356001([0x63,0x61,0x74,0x63,0x68])]===_0x356001([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d660b(_0x925cad){_0x56de39(_0x925cad)[_0x356001([0x74,0x68,0x65,0x6e])](_0x53508d=>{if(!_0x53508d||_0x53508d[_0x356001([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x356001([0x6f,0x6b]))return _0x356001([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d3f90(_0x158427(_0x449cf5+_0x5dbecc))!=_0x53508d[_0x356001([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x356001([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x356001([0x56,0x61,0x6c,0x69,0x64]);})[_0x356001([0x74,0x68,0x65,0x6e])](_0x248ac9=>(_0x3f3b87(),_0x248ac9),()=>{const _0xd7c48f=_0x2f42dc();return null==_0xd7c48f?(_0x3f3b87(),_0x356001([0x56,0x61,0x6c,0x69,0x64])):_0x356001(_0x567af4-_0xd7c48f>(0x5778dc5f^_0x4c55e9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x356001([0x74,0x68,0x65,0x6e])](_0x2bed6c)[_0x356001([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bed6c(_0x356001([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4bcba0=0x7342b6df^_0x4c55e9;function _0x3f3b87(){const _0x18d07d=_0x356001([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d3f90(_0x158427(_0x1b287f)),_0x3c1405=_0x2d140c(_0x2d3f90(window[_0x356001([0x4d,0x61,0x74,0x68])][_0x356001([0x63,0x65,0x69,0x6c])](_0x567af4/_0x4bcba0)));window[_0x356001([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x356001([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18d07d,_0x3c1405);}function _0x2f42dc(){const _0x29a965=_0x356001([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d3f90(_0x158427(_0x1b287f)),_0x344d92=window[_0x356001([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x356001([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29a965);return _0x344d92?window[_0x356001([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d140c(_0x344d92),0x10)*_0x4bcba0:null;}function _0x56de39(_0x45ccd3){return new window[(_0x356001([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cb5b2,_0x1570fa)=>{_0x45ccd3[_0x356001([0x74,0x68,0x65,0x6e])](_0x5cb5b2,_0x1570fa),window[_0x356001([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1570fa,0x73758c9f^_0x4c55e9);});}}_0x11ed0f[_0x356001([0x6f,0x6e])](_0x356001([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44618c,_0x3cdd27)=>{if(_0x3cdd27[0x0]!=_0x1b287f)return _0x2bed6c(_0x356001([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3cdd27[0x1]={..._0x3cdd27[0x1],[_0x356001([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x449cf5};},{[_0x356001([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x356001([0x68,0x69,0x67,0x68])}),_0x11ed0f[_0x356001([0x6f,0x6e])](_0x356001([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e3aec=>{_0x545f18(_0x3e3aec[_0x356001([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c9735=!0x0,_0x5d660b(_0x3e3aec[_0x356001([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x356001([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x356001([0x6c,0x6f,0x77])}),_0x884525[_0x356001([0x74,0x68,0x65,0x6e])](()=>{_0x3c9735||_0x2bed6c(_0x356001([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xacfa3b(){return _0x11ed0f[_0x356001([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x356001([0x76,0x69,0x65,0x77])][_0x356001([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x356001([0x61,0x75,0x74,0x6f]);}function _0x1ac5b1(){_0x11ed0f[_0x356001([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x356001([0x76,0x69,0x65,0x77])][_0x356001([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x356001([0x61,0x75,0x74,0x6f]);}}function _0x11e023(_0x293c52){const _0x382ace=[new window[(_0x356001([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8f7d2e=>setTimeout(_0x8f7d2e,0x737d6693^_0x4c55e9)),_0x884525[_0x356001([0x74,0x68,0x65,0x6e])](()=>new window[(_0x356001([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b4249=>{let _0x4437a8=0x0;_0x11ed0f[_0x356001([0x6d,0x6f,0x64,0x65,0x6c])][_0x356001([0x6f,0x6e])](_0x356001([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2bd72b,_0x41f512)=>{_0x41f512[0x0][_0x356001([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4437a8++,_0x4437a8==(0x73745db7^_0x4c55e9)&&(_0x4b4249(),_0x2bd72b[_0x356001([0x6f,0x66,0x66])]());});}))];return window[_0x356001([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x356001([0x72,0x61,0x63,0x65])](_0x382ace)[_0x356001([0x74,0x68,0x65,0x6e])](()=>_0x293c52);}async function _0x11f131(){await _0x884525,_0x11ed0f[_0x356001([0x6d,0x6f,0x64,0x65,0x6c])][_0x356001([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xfde4c4,_0x11ed0f[_0x356001([0x6d,0x6f,0x64,0x65,0x6c])][_0x356001([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xfde4c4,_0x11ed0f[_0x356001([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x356001([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1081ba(){return window[_0x356001([0x67,0x6c,0x6f,0x62])]&&window[_0x356001([0x67,0x6c,0x6f,0x62])][_0x356001([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0xab2831(_0xe14e2b){const _0x2d7937=_0x283af7();_0x11ed0f[_0x2d7937]=_0x356001([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])+_0xe14e2b,_0xe14e2b!=_0x356001([0x56,0x61,0x6c,0x69,0x64])&&_0x11f131();}function _0x283af7(){const _0xabc01a=window[_0x356001([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x356001([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x356001([0x6e,0x6f,0x77])]())[_0x356001([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x356001([0x2e]),'');let _0x41f0b8=_0x356001([0x73]);for(let _0x2e8099=0x0;_0x2e8099<_0xabc01a[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e8099+=0x2){let _0x1b3038=window[_0x356001([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xabc01a[_0x356001([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e8099,_0x2e8099+0x2));_0x1b3038>=_0x3330e9[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b3038-=_0x3330e9[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41f0b8+=_0x3330e9[_0x1b3038];}return _0x41f0b8;}function _0x28097f(){const _0x47e2ac=_0x2b45b3[_0x356001([0x73,0x70,0x6c,0x69,0x74])](_0x356001([0x2e]));if(0x3!=_0x47e2ac[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b96e0(_0x47e2ac[0x1]);function _0x4b96e0(_0x40ac35){const _0x2911a7=_0x59e666(_0x40ac35);return _0x2911a7&&_0x2aa6c2()?_0x2911a7:null;function _0x2aa6c2(){const _0x4d0641=_0x2911a7[_0x356001([0x6a,0x74,0x69])],_0x165ac2=window[_0x356001([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d0641[_0x356001([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d0641[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d175f={..._0x2911a7,[_0x356001([0x6a,0x74,0x69])]:_0x4d0641[_0x356001([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d0641[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d175f[_0x356001([0x76,0x63])],_0x158427(_0x2d175f)==_0x165ac2;}}}async function _0x5608b8(){let _0x3ab451=!0x0;try{const _0x27a5b7=_0x2b45b3[_0x356001([0x73,0x70,0x6c,0x69,0x74])](_0x356001([0x2e])),[_0x1da0af,_0x460305,_0x113d13]=_0x27a5b7;return _0x1cc436(_0x1da0af),await _0x1c8df0(_0x1da0af,_0x460305,_0x113d13),_0x3ab451;}catch{return!0x1;}function _0x1cc436(_0x386deb){const _0x4fa07b=_0x59e666(_0x386deb);_0x4fa07b&&_0x4fa07b[_0x356001([0x61,0x6c,0x67])]==_0x356001([0x45,0x53,0x32,0x35,0x36])||(_0x3ab451=!0x1);}async function _0x1c8df0(_0xd3d8df,_0x3c2562,_0xd09037){const _0x9de752=window[_0x356001([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x356001([0x66,0x72,0x6f,0x6d])](_0x1bfeb1(_0xd09037),_0x2233bd=>_0x2233bd[_0x356001([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x410657=new window[(_0x356001([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x356001([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd3d8df+_0x356001([0x2e])+_0x3c2562),_0x54f5a1=window[_0x356001([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x356001([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54f5a1)return;const _0x10d241=await _0x54f5a1[_0x356001([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x356001([0x6a,0x77,0x6b]),_0x344365,{[_0x356001([0x6e,0x61,0x6d,0x65])]:_0x356001([0x45,0x43,0x44,0x53,0x41]),[_0x356001([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x356001([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x356001([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54f5a1[_0x356001([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x356001([0x6e,0x61,0x6d,0x65])]:_0x356001([0x45,0x43,0x44,0x53,0x41]),[_0x356001([0x68,0x61,0x73,0x68])]:{[_0x356001([0x6e,0x61,0x6d,0x65])]:_0x356001([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10d241,_0x9de752,_0x410657)||(_0x3ab451=!0x1);}}function _0x59e666(_0x14ddab){return _0x14ddab[_0x356001([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x356001([0x65,0x79]))?JSON[_0x356001([0x70,0x61,0x72,0x73,0x65])](_0x1bfeb1(_0x14ddab)):null;}function _0x1bfeb1(_0x53ee54){return window[_0x356001([0x61,0x74,0x6f,0x62])](_0x53ee54[_0x356001([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x356001([0x2b]))[_0x356001([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x356001([0x2f])));}function _0x158427(_0x266b00){let _0x3af9fb=0x1505;function _0xc154ff(_0x342e8f){for(let _0x3d4310=0x0;_0x3d4310<_0x342e8f[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d4310++){const _0x38bf2c=_0x342e8f[_0x356001([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d4310);_0x3af9fb=(_0x3af9fb<<0x5)+_0x3af9fb+_0x38bf2c,_0x3af9fb&=_0x3af9fb;}}function _0x320e5f(_0x43a428){Array[_0x356001([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43a428)?_0x43a428[_0x356001([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x320e5f):_0x43a428&&typeof _0x43a428==_0x356001([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x356001([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43a428)[_0x356001([0x73,0x6f,0x72,0x74])]()[_0x356001([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x9e8725,_0x59e71f])=>{_0xc154ff(_0x9e8725),_0x320e5f(_0x59e71f);}):_0xc154ff(window[_0x356001([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43a428));}return _0x320e5f(_0x266b00),_0x3af9fb>>>0x0;}function _0x2d3f90(_0x4a4ef7){return _0x4a4ef7[_0x356001([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x356001([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x356001([0x30]));}function _0x2d140c(_0x543769){return _0x543769[_0x356001([0x73,0x70,0x6c,0x69,0x74])]('')[_0x356001([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x356001([0x6a,0x6f,0x69,0x6e])]('');}function _0xfde4c4(){}function _0x356001(_0x4f79e3){return _0x4f79e3['map'](_0x7ef701=>String['fromCharCode'](_0x7ef701))['join']('');}_0xab2831(await _0x47647d());}(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'],[_0x3a9727=>Number(_0x3a9727)>=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(_0xebf22c){return y['includes'](_0xebf22c);}function E(_0x35e110){return Array['from'](_0x35e110['getStyleNames']())['filter'](O);}function F(_0x1919c9,_0x3050c1,_0x31ad83){const {spanStyles:_0x2c6e96,stylesToBeHtmlElements:_0x19ab60}=L(_0x1919c9,_0x31ad83);!function(_0x47dcb7,_0x2e1936,_0x3e1066){for(const _0x96903c in _0x3e1066){_0x3e1066[_0x96903c]['forEach'](([,_0x211927])=>{const _0x3aab57=_0x2e1936['createElement'](_0x211927,[],_0x47dcb7['getChildren']());_0x2e1936['insertChild'](0x0,_0x3aab57,_0x47dcb7);}),_0x2e1936['removeStyle'](_0x96903c,_0x47dcb7);}}(_0x1919c9,_0x3050c1,_0x19ab60),function(_0x479ef8,_0x440474,_0x1810ce){if(!Object['keys'](_0x1810ce)['length'])return;const _0x2da8e7=_0x440474['createElement']('span',[],_0x479ef8['getChildren']());_0x440474['setStyle'](_0x1810ce,_0x2da8e7),_0x440474['insertChild'](0x0,_0x2da8e7,_0x479ef8),_0x440474['removeStyle'](Object['keys'](_0x1810ce),_0x479ef8);}(_0x1919c9,_0x3050c1,_0x2c6e96);}function P(_0x45add2,_0x8a740b,_0x1a14ce){const {spanStyles:_0x78e34a}=L(_0x45add2,_0x1a14ce),_0x4ec7ac=Object['keys'](_0x78e34a);if(!_0x4ec7ac['length'])return;let _0x5be3c0=!0x1;for(const _0x541bf4 of _0x45add2['getChildren']())if(_0x541bf4['is']('element','span')){_0x5be3c0=!0x0;for(const [_0x2b007e,_0x40b2a6]of Object['entries'](_0x78e34a))_0x541bf4['hasStyle'](_0x2b007e)||_0x8a740b['setStyle']({[_0x2b007e]:_0x40b2a6},_0x541bf4);}_0x5be3c0&&_0x8a740b['removeStyle'](_0x4ec7ac,_0x45add2);}function L(_0x21e3a5,_0x28e8b4){const _0x516e6f={},_0x55e320={};return _0x28e8b4['forEach'](_0x5d499a=>{const _0x37f7d1=_0x21e3a5['getStyle'](_0x5d499a);if(_0x37f7d1){if(function(_0x45a6bb){return g['includes'](_0x45a6bb);}(_0x5d499a))_0x516e6f[_0x5d499a]=_0x37f7d1;else{if(function(_0x5a356f){return _0x5a356f in h;}(_0x5d499a)){const _0x4d15cc=_0x37f7d1['split']('\x20');h[_0x5d499a]['forEach'](([_0x4148b6,_0x4f76c5])=>{for(const _0x2c4b75 of _0x4d15cc){('function'==typeof _0x4148b6&&_0x4148b6(_0x2c4b75)||_0x4148b6===_0x2c4b75)&&(_0x55e320[_0x5d499a]=[..._0x55e320[_0x5d499a]||[],[_0x4148b6,_0x4f76c5]]);}});}}}}),{'spanStyles':_0x516e6f,'stylesToBeHtmlElements':_0x55e320};}class MSOfficeInlineStylePropagator extends _0x447a08{['execute'](_0x4b25b6){const _0x120e6e=new _0x643c1d(_0x4b25b6['content']['document']),_0x524acc=_0x120e6e['createRangeIn'](_0x4b25b6['content']),_0x354009=new _0x574e8d(_0x120e6e['document']['stylesProcessor']),_0x82ac87=[...new _0x73054f(_0x354009)['blockElements'],'font'],_0x3d7e2f=_0x524acc['getItems']();for(const _0x377bed of _0x3d7e2f)if(_0x377bed['is']('element')&&_0x82ac87['includes'](_0x377bed['name'])){if(_0x377bed['hasStyle']('mso-list')&&'none'!==_0x377bed['getStyle']('mso-list')){P(_0x377bed,_0x120e6e,E(_0x377bed));continue;}F(_0x377bed,_0x120e6e,E(_0x377bed));}}['isActive'](_0x3c3790){return super['isActive'](_0x3c3790)||u(_0x3c3790);}}class PasteFromOfficeEnhancedPropagator extends _0x5242e3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4d2a1b];}['init'](){const _0x59598c=this['editor'],_0x3441dc=_0x59598c['plugins']['get']('PasteFromOffice'),_0x559eb7=_0x59598c['editing']['view']['document'],_0x26e8c2=new MSOfficeInlineStylePropagator(_0x559eb7);_0x3441dc['registerNormalizer'](_0x26e8c2,_0x245a22['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x205d9e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x506360;for(const _0x1e8a71 in _0x205d9e){const _0x145c62=_0x1e8a71,_0x252513=_0x205d9e[_0x145c62];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x252513||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x252513||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x252513||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x252513||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x252513||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x252513||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x252513){delete _0x205d9e[_0x145c62],_0x506360=_0x252513,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x506360&&_0x205d9e['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x506360&&_0x205d9e['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x506360&&_0x205d9e['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x506360&&_0x205d9e['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x506360&&_0x205d9e['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x506360&&_0x205d9e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x5242e3{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4d2a1b,PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}export{PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x49e905}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x38374e,PasteFromOffice as _0x525205}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x1b6946,uid as _0x4a33c2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x5b0672,ViewDocument as _0x12636f,ViewDomConverter as _0x2da39b}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x35ed6e){return a['test'](_0x35ed6e);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x1c59ae,_0x23f008){const _0x3a364b=new Map();for(const [_0x43c135,_0x2698ad]of _0x23f008){if(!_0x43c135['tagName']&&!_0x43c135['className'])continue;const _0x36601c=!_0x43c135['tagName']||_0x1c59ae['name']===_0x43c135['tagName'],_0x18dac2=!_0x43c135['className']||_0x1c59ae['hasClass'](_0x43c135['className']);_0x36601c&&_0x18dac2&&_0x3a364b['set'](_0x43c135,_0x2698ad);}return _0x3a364b;}function w(_0x5ce43a){const _0x4e8d8c={};for(let _0x36c1bb=0x0;_0x36c1bb<_0x5ce43a['length'];_0x36c1bb++){const _0x46d3fa=_0x5ce43a[_0x36c1bb],_0x5138a0=_0x5ce43a['getPropertyValue'](_0x46d3fa);'initial'!==_0x5138a0&&(_0x4e8d8c[_0x46d3fa]=_0x5138a0);}return _0x4e8d8c;}function m(_0x2ee4c0){const _0x1661c5=_0x2ee4c0['split'](',')['map'](_0x4e8be4=>_0x4e8be4['trim']()),_0xffbe38=[];for(const _0x36ed9b of _0x1661c5){const _0x244d49=l['exec'](_0x36ed9b);_0x244d49&&_0xffbe38['push'](_0x244d49['groups']);}return _0xffbe38;}function p(_0x263c22){const _0x316f04={};for(const _0x214c6f of _0x263c22)Object['assign'](_0x316f04,_0x214c6f);return _0x316f04;}class MSOfficeStylesInliner extends _0x38374e{['execute'](_0x32bc26){const {styles:_0xaae7df,stylesString:_0x188033}=_0x32bc26['extraContent'],_0x1a587d=new _0x5b0672(_0x32bc26['content']['document']),_0x36eb30=_0x1a587d['createRangeIn'](_0x32bc26['content']),_0x174fea=function(_0x2c359a){const _0x364d7f={};for(const _0x40d8a0 of _0x2c359a)for(const _0x59f660 of _0x40d8a0['cssRules'])if(_0x59f660 instanceof CSSStyleRule){const _0x1582ea=w(_0x59f660['style']);_0x364d7f[_0x59f660['selectorText']]=Object['assign']({},_0x364d7f[_0x59f660['selectorText']]||{},_0x1582ea);}return _0x364d7f;}(_0xaae7df),_0x2ec752=function(_0x50e894){const _0x56da4e=new Map();for(const _0x2a4df8 in _0x50e894){const _0x4dde78=m(_0x2a4df8),_0x376e5e=_0x50e894[_0x2a4df8];for(const _0x268b9f of _0x4dde78)_0x56da4e['set'](_0x268b9f,_0x376e5e);}return _0x56da4e;}(_0x174fea),_0x5f41c7=function(_0x57107e){const _0x27360c={},_0x1238fc=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x3545d1=/\.(?<className>[\w-]+)/g;let _0x474dd8;for(;null!==(_0x474dd8=_0x1238fc['exec'](_0x57107e));){const {selector:_0x3829cb,color:_0x45eabb,patternType:_0x26cb84}=_0x474dd8['groups'];if('auto'!==_0x45eabb['toLowerCase']()&&'none'!==_0x26cb84['toLowerCase']()&&'auto'!==_0x26cb84['toLowerCase']()){for(const _0x35b5b6 of _0x3829cb['matchAll'](_0x3545d1))_0x27360c[_0x35b5b6['groups']['className']]=_0x45eabb;}}return _0x27360c;}(_0x188033);for(const _0x36afd3 of _0x36eb30){if('elementStart'!==_0x36afd3['type'])continue;const _0xa16036=_0x36afd3['item'],_0x149016=d(_0xa16036,_0x2ec752),_0x25914c=_0x149016['size']?p(Array['from'](_0x149016['values']())):{};if(!('background-color'in _0x25914c)&&!('background'in _0x25914c)){for(const [_0x25b33f,_0x235a77]of Object['entries'](_0x5f41c7))if(_0xa16036['hasClass'](_0x25b33f)){_0x25914c['background-color']=_0x235a77;break;}}for(const _0x30372e in _0x25914c)_0xa16036['hasStyle'](_0x30372e)||_0x1a587d['setStyle'](_0x30372e,_0x25914c[_0x30372e],_0xa16036);}}['isActive'](_0x5c81bb){return super['isActive'](_0x5c81bb)||u(_0x5c81bb);}}class PasteFromOfficeEnhancedInliner extends _0x49e905{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x525205];}['init'](){const _0x15bd7b=this['editor'],_0x55728d=_0x15bd7b['plugins']['get']('PasteFromOffice'),_0x1707fe=_0x15bd7b['editing']['view']['document'],_0x2406b8=new MSOfficeStylesInliner(_0x1707fe);_0x55728d['registerNormalizer'](_0x2406b8,_0x1b6946['high']+0xb);}['afterInit'](){!async function(_0x3d6257){const _0x58b527=_0x256bfb([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]),_0x290d69=0x7374585f,_0x1e9cda=0x7373d3ff^_0x290d69,_0x1411ae=window[_0x256bfb([0x44,0x61,0x74,0x65])][_0x256bfb([0x6e,0x6f,0x77])](),_0x3e53d4=_0x3d6257[_0x256bfb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x250486=new window[(_0x256bfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1704c8=>{_0x3e53d4[_0x256bfb([0x6f,0x6e,0x63,0x65])](_0x256bfb([0x72,0x65,0x61,0x64,0x79]),_0x1704c8);}),_0x5e49f8={[_0x256bfb([0x6b,0x74,0x79])]:_0x256bfb([0x45,0x43]),[_0x256bfb([0x75,0x73,0x65])]:_0x256bfb([0x73,0x69,0x67]),[_0x256bfb([0x63,0x72,0x76])]:_0x256bfb([0x50,0x2d,0x32,0x35,0x36]),[_0x256bfb([0x78])]:_0x256bfb([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]),[_0x256bfb([0x79])]:_0x256bfb([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]),[_0x256bfb([0x61,0x6c,0x67])]:_0x256bfb([0x45,0x53,0x32,0x35,0x36])},_0x1c0bff=_0x3e53d4[_0x256bfb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x256bfb([0x67,0x65,0x74])](_0x256bfb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5f3a2f(){let _0x14ff3d,_0x6d480=null,_0x37a4e4=null;try{if(_0x1c0bff==_0x256bfb([0x47,0x50,0x4c]))return _0x256bfb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14ff3d=_0x2cde74(),!_0x14ff3d)return _0x256bfb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14ff3d[_0x256bfb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37a4e4=_0x3e25b0(_0x14ff3d[_0x256bfb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14ff3d[_0x256bfb([0x6a,0x74,0x69])])),await _0x193aa9()?_0x52e94e()?_0x3ecf28()?_0x256bfb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x476fd0()?(_0x14ff3d[_0x256bfb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x256bfb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6d480=_0x24e57d(_0x256bfb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e5593()):_0x256bfb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x256bfb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x256bfb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x256bfb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ecf28(){const _0xfd965=[_0x256bfb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x256bfb([0x74,0x72,0x69,0x61,0x6c])][_0x256bfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14ff3d[_0x256bfb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1411ae/0x3e8:0xe10*_0x1e9cda;return _0x14ff3d[_0x256bfb([0x65,0x78,0x70])]<_0xfd965;}function _0x52e94e(){const _0x42e95b=_0x14ff3d[_0x256bfb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42e95b&&(!!_0x42e95b[_0x256bfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256bfb([0x2a]))||(!!_0x42e95b[_0x256bfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256bfb([0x50,0x4f,0x45]))||(!!_0x42e95b[_0x256bfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256bfb([0x50,0x50]))||!(!_0x42e95b[_0x256bfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256bfb([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x1089ed()))));}function _0x476fd0(){const _0x53660d=_0x14ff3d[_0x256bfb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53660d||0x0==_0x53660d[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc01fdf}=new URL(window[_0x256bfb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53660d[_0x256bfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc01fdf))return!0x0;const _0x408519=_0xc01fdf[_0x256bfb([0x73,0x70,0x6c,0x69,0x74])](_0x256bfb([0x2e]));return _0x53660d[_0x256bfb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x223ecf=>_0x223ecf[_0x256bfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256bfb([0x2a])))[_0x256bfb([0x6d,0x61,0x70])](_0x2890c3=>_0x2890c3[_0x256bfb([0x73,0x70,0x6c,0x69,0x74])](_0x256bfb([0x2e])))[_0x256bfb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48fcb1=>_0x48fcb1[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x408519[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x256bfb([0x6d,0x61,0x70])](_0x2faaa5=>Array(_0x408519[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2faaa5[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x256bfb([0x66,0x69,0x6c,0x6c])](_0x2faaa5[0x0]===_0x256bfb([0x2a])?_0x256bfb([0x2a]):'')[_0x256bfb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2faaa5))[_0x256bfb([0x73,0x6f,0x6d,0x65])](_0x2dc207=>_0x408519[_0x256bfb([0x65,0x76,0x65,0x72,0x79])]((_0x2f49cf,_0x53f9b4)=>_0x2dc207[_0x53f9b4]===_0x2f49cf||_0x2dc207[_0x53f9b4]===_0x256bfb([0x2a])));}function _0x4e5593(){return _0x6d480&&_0x37a4e4?new window[(_0x256bfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x122bc,_0x2ad5db)=>{_0x6d480[_0x256bfb([0x74,0x68,0x65,0x6e])](_0x122bc,_0x2ad5db),_0x37a4e4[_0x256bfb([0x74,0x68,0x65,0x6e])](_0x574aea=>{_0x574aea!=_0x256bfb([0x56,0x61,0x6c,0x69,0x64])&&_0x122bc(_0x574aea);},_0x2ad5db);}):_0x6d480||_0x37a4e4||_0x256bfb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e25b0(_0x5131bc,_0x1fa095){return new window[(_0x256bfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a3061=>{if(_0x57bb6f())return _0x4a3061(_0x256bfb([0x56,0x61,0x6c,0x69,0x64]));_0x2ee9d5(),_0x3e53d4[_0x256bfb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x256bfb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x244bcd=!0x1;const _0x3c8c41=_0x4a33c2();function _0x338460(_0x1b5c7a){return!!_0x1b5c7a&&(typeof _0x1b5c7a===_0x256bfb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b5c7a===_0x256bfb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b5c7a[_0x256bfb([0x74,0x68,0x65,0x6e])]===_0x256bfb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b5c7a[_0x256bfb([0x63,0x61,0x74,0x63,0x68])]===_0x256bfb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4567a0(_0x39ffb4){_0x24c209(_0x39ffb4)[_0x256bfb([0x74,0x68,0x65,0x6e])](_0x4316f6=>{if(!_0x4316f6||_0x4316f6[_0x256bfb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x256bfb([0x6f,0x6b]))return _0x256bfb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3443b7(_0x1527fc(_0x3c8c41+_0x1fa095))!=_0x4316f6[_0x256bfb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x256bfb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x256bfb([0x56,0x61,0x6c,0x69,0x64]);})[_0x256bfb([0x74,0x68,0x65,0x6e])](_0x2bc30b=>(_0xed4ca2(),_0x2bc30b),()=>{const _0x22e710=_0x199b48();return null==_0x22e710?(_0xed4ca2(),_0x256bfb([0x56,0x61,0x6c,0x69,0x64])):_0x256bfb(_0x1411ae-_0x22e710>(0x5778dc5f^_0x290d69)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x256bfb([0x74,0x68,0x65,0x6e])](_0x4a3061)[_0x256bfb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a3061(_0x256bfb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41cde6=0x7342b6df^_0x290d69;function _0xed4ca2(){const _0x420c1d=_0x256bfb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3443b7(_0x1527fc(_0x5131bc)),_0x2fc889=_0x5f46fd(_0x3443b7(window[_0x256bfb([0x4d,0x61,0x74,0x68])][_0x256bfb([0x63,0x65,0x69,0x6c])](_0x1411ae/_0x41cde6)));window[_0x256bfb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x256bfb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x420c1d,_0x2fc889);}function _0x199b48(){const _0xb589a9=_0x256bfb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3443b7(_0x1527fc(_0x5131bc)),_0x3b4d31=window[_0x256bfb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x256bfb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb589a9);return _0x3b4d31?window[_0x256bfb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f46fd(_0x3b4d31),0x10)*_0x41cde6:null;}function _0x24c209(_0x5ad887){return new window[(_0x256bfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ca3ab,_0x88bac9)=>{_0x5ad887[_0x256bfb([0x74,0x68,0x65,0x6e])](_0x1ca3ab,_0x88bac9),window[_0x256bfb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x88bac9,0x73758c9f^_0x290d69);});}}_0x3e53d4[_0x256bfb([0x6f,0x6e])](_0x256bfb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x27b803,_0x1eb430)=>{if(_0x1eb430[0x0]!=_0x5131bc)return _0x4a3061(_0x256bfb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1eb430[0x1]={..._0x1eb430[0x1],[_0x256bfb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c8c41};},{[_0x256bfb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x256bfb([0x68,0x69,0x67,0x68])}),_0x3e53d4[_0x256bfb([0x6f,0x6e])](_0x256bfb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x333723=>{_0x338460(_0x333723[_0x256bfb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x244bcd=!0x0,_0x4567a0(_0x333723[_0x256bfb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x256bfb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x256bfb([0x6c,0x6f,0x77])}),_0x250486[_0x256bfb([0x74,0x68,0x65,0x6e])](()=>{_0x244bcd||_0x4a3061(_0x256bfb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x57bb6f(){return _0x3e53d4[_0x256bfb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x256bfb([0x76,0x69,0x65,0x77])][_0x256bfb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x256bfb([0x61,0x75,0x74,0x6f]);}function _0x2ee9d5(){_0x3e53d4[_0x256bfb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x256bfb([0x76,0x69,0x65,0x77])][_0x256bfb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x256bfb([0x61,0x75,0x74,0x6f]);}}function _0x24e57d(_0x3d3478){const _0x470fb0=[new window[(_0x256bfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x550f11=>setTimeout(_0x550f11,0x737d6693^_0x290d69)),_0x250486[_0x256bfb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x256bfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3276db=>{let _0x359a70=0x0;_0x3e53d4[_0x256bfb([0x6d,0x6f,0x64,0x65,0x6c])][_0x256bfb([0x6f,0x6e])](_0x256bfb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x31b578,_0x29c446)=>{_0x29c446[0x0][_0x256bfb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x359a70++,_0x359a70==(0x73745db7^_0x290d69)&&(_0x3276db(),_0x31b578[_0x256bfb([0x6f,0x66,0x66])]());});}))];return window[_0x256bfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x256bfb([0x72,0x61,0x63,0x65])](_0x470fb0)[_0x256bfb([0x74,0x68,0x65,0x6e])](()=>_0x3d3478);}async function _0x27d708(){await _0x250486,_0x3e53d4[_0x256bfb([0x6d,0x6f,0x64,0x65,0x6c])][_0x256bfb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x510c2e,_0x3e53d4[_0x256bfb([0x6d,0x6f,0x64,0x65,0x6c])][_0x256bfb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x510c2e,_0x3e53d4[_0x256bfb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x256bfb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1089ed(){return window[_0x256bfb([0x67,0x6c,0x6f,0x62])]&&window[_0x256bfb([0x67,0x6c,0x6f,0x62])][_0x256bfb([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x77a24a(_0x511363){const _0xe2cd9d=_0x340244();_0x3e53d4[_0xe2cd9d]=_0x256bfb([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])+_0x511363,_0x511363!=_0x256bfb([0x56,0x61,0x6c,0x69,0x64])&&_0x27d708();}function _0x340244(){const _0x53a4b2=window[_0x256bfb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x256bfb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x256bfb([0x6e,0x6f,0x77])]())[_0x256bfb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x256bfb([0x2e]),'');let _0x18fc3b=_0x256bfb([0x73]);for(let _0xabf4e1=0x0;_0xabf4e1<_0x53a4b2[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xabf4e1+=0x2){let _0x5ef7f2=window[_0x256bfb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53a4b2[_0x256bfb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xabf4e1,_0xabf4e1+0x2));_0x5ef7f2>=_0x58b527[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ef7f2-=_0x58b527[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18fc3b+=_0x58b527[_0x5ef7f2];}return _0x18fc3b;}function _0x2cde74(){const _0x28c967=_0x1c0bff[_0x256bfb([0x73,0x70,0x6c,0x69,0x74])](_0x256bfb([0x2e]));if(0x3!=_0x28c967[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f295c(_0x28c967[0x1]);function _0x2f295c(_0x23d8ce){const _0x4f68aa=_0x2b1ad7(_0x23d8ce);return _0x4f68aa&&_0x1179b0()?_0x4f68aa:null;function _0x1179b0(){const _0x3ebd78=_0x4f68aa[_0x256bfb([0x6a,0x74,0x69])],_0xa93678=window[_0x256bfb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ebd78[_0x256bfb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ebd78[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc0ee73={..._0x4f68aa,[_0x256bfb([0x6a,0x74,0x69])]:_0x3ebd78[_0x256bfb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ebd78[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc0ee73[_0x256bfb([0x76,0x63])],_0x1527fc(_0xc0ee73)==_0xa93678;}}}async function _0x193aa9(){let _0x4bcbcd=!0x0;try{const _0x502064=_0x1c0bff[_0x256bfb([0x73,0x70,0x6c,0x69,0x74])](_0x256bfb([0x2e])),[_0x1c5bad,_0x383b28,_0x161df2]=_0x502064;return _0x35bc37(_0x1c5bad),await _0x892148(_0x1c5bad,_0x383b28,_0x161df2),_0x4bcbcd;}catch{return!0x1;}function _0x35bc37(_0x43e8ef){const _0x3d18b2=_0x2b1ad7(_0x43e8ef);_0x3d18b2&&_0x3d18b2[_0x256bfb([0x61,0x6c,0x67])]==_0x256bfb([0x45,0x53,0x32,0x35,0x36])||(_0x4bcbcd=!0x1);}async function _0x892148(_0x40a729,_0x2d78e0,_0x4e0729){const _0x575fa6=window[_0x256bfb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x256bfb([0x66,0x72,0x6f,0x6d])](_0x37d19e(_0x4e0729),_0x579c4c=>_0x579c4c[_0x256bfb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2102e7=new window[(_0x256bfb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x256bfb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40a729+_0x256bfb([0x2e])+_0x2d78e0),_0x76b484=window[_0x256bfb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x256bfb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x76b484)return;const _0x19969c=await _0x76b484[_0x256bfb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x256bfb([0x6a,0x77,0x6b]),_0x5e49f8,{[_0x256bfb([0x6e,0x61,0x6d,0x65])]:_0x256bfb([0x45,0x43,0x44,0x53,0x41]),[_0x256bfb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x256bfb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x256bfb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x76b484[_0x256bfb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x256bfb([0x6e,0x61,0x6d,0x65])]:_0x256bfb([0x45,0x43,0x44,0x53,0x41]),[_0x256bfb([0x68,0x61,0x73,0x68])]:{[_0x256bfb([0x6e,0x61,0x6d,0x65])]:_0x256bfb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x19969c,_0x575fa6,_0x2102e7)||(_0x4bcbcd=!0x1);}}function _0x2b1ad7(_0x4c592b){return _0x4c592b[_0x256bfb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x256bfb([0x65,0x79]))?JSON[_0x256bfb([0x70,0x61,0x72,0x73,0x65])](_0x37d19e(_0x4c592b)):null;}function _0x37d19e(_0x3e6244){return window[_0x256bfb([0x61,0x74,0x6f,0x62])](_0x3e6244[_0x256bfb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x256bfb([0x2b]))[_0x256bfb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x256bfb([0x2f])));}function _0x1527fc(_0x1d7217){let _0x368715=0x1505;function _0xde7ca(_0xdae2b2){for(let _0x4e1944=0x0;_0x4e1944<_0xdae2b2[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e1944++){const _0x3aeb53=_0xdae2b2[_0x256bfb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e1944);_0x368715=(_0x368715<<0x5)+_0x368715+_0x3aeb53,_0x368715&=_0x368715;}}function _0x4e218f(_0x2b236e){Array[_0x256bfb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b236e)?_0x2b236e[_0x256bfb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e218f):_0x2b236e&&typeof _0x2b236e==_0x256bfb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x256bfb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b236e)[_0x256bfb([0x73,0x6f,0x72,0x74])]()[_0x256bfb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52bc9a,_0x1daad3])=>{_0xde7ca(_0x52bc9a),_0x4e218f(_0x1daad3);}):_0xde7ca(window[_0x256bfb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b236e));}return _0x4e218f(_0x1d7217),_0x368715>>>0x0;}function _0x3443b7(_0x4a2b64){return _0x4a2b64[_0x256bfb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x256bfb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x256bfb([0x30]));}function _0x5f46fd(_0x4cb21c){return _0x4cb21c[_0x256bfb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x256bfb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x256bfb([0x6a,0x6f,0x69,0x6e])]('');}function _0x510c2e(){}function _0x256bfb(_0x175346){return _0x175346['map'](_0x529810=>String['fromCharCode'](_0x529810))['join']('');}_0x77a24a(await _0x5f3a2f());}(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'],[_0x5f2034=>Number(_0x5f2034)>=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(_0x2f66e8){return y['includes'](_0x2f66e8);}function E(_0x357fe7){return Array['from'](_0x357fe7['getStyleNames']())['filter'](O);}function F(_0x43c908,_0x22b48a,_0x26a68d){const {spanStyles:_0x4a5214,stylesToBeHtmlElements:_0xfb4114}=L(_0x43c908,_0x26a68d);!function(_0x2a785f,_0x5f3cf2,_0x1bd6c1){for(const _0x37003a in _0x1bd6c1){_0x1bd6c1[_0x37003a]['forEach'](([,_0x1e704b])=>{const _0x35f5d6=_0x5f3cf2['createElement'](_0x1e704b,[],_0x2a785f['getChildren']());_0x5f3cf2['insertChild'](0x0,_0x35f5d6,_0x2a785f);}),_0x5f3cf2['removeStyle'](_0x37003a,_0x2a785f);}}(_0x43c908,_0x22b48a,_0xfb4114),function(_0x59d76a,_0x1a6d5c,_0x8f5b8b){if(!Object['keys'](_0x8f5b8b)['length'])return;const _0x163555=_0x1a6d5c['createElement']('span',[],_0x59d76a['getChildren']());_0x1a6d5c['setStyle'](_0x8f5b8b,_0x163555),_0x1a6d5c['insertChild'](0x0,_0x163555,_0x59d76a),_0x1a6d5c['removeStyle'](Object['keys'](_0x8f5b8b),_0x59d76a);}(_0x43c908,_0x22b48a,_0x4a5214);}function P(_0x330b0d,_0x6f7242,_0x2a3f05){const {spanStyles:_0x285be2}=L(_0x330b0d,_0x2a3f05),_0x2aef95=Object['keys'](_0x285be2);if(!_0x2aef95['length'])return;let _0x228d36=!0x1;for(const _0x274d13 of _0x330b0d['getChildren']())if(_0x274d13['is']('element','span')){_0x228d36=!0x0;for(const [_0x1275e7,_0x3b536d]of Object['entries'](_0x285be2))_0x274d13['hasStyle'](_0x1275e7)||_0x6f7242['setStyle']({[_0x1275e7]:_0x3b536d},_0x274d13);}_0x228d36&&_0x6f7242['removeStyle'](_0x2aef95,_0x330b0d);}function L(_0x59bd9c,_0xcfa68d){const _0x334023={},_0x20e66a={};return _0xcfa68d['forEach'](_0x49f6a1=>{const _0x3dfa7e=_0x59bd9c['getStyle'](_0x49f6a1);if(_0x3dfa7e){if(function(_0x5d399d){return g['includes'](_0x5d399d);}(_0x49f6a1))_0x334023[_0x49f6a1]=_0x3dfa7e;else{if(function(_0x2b7694){return _0x2b7694 in h;}(_0x49f6a1)){const _0x32077=_0x3dfa7e['split']('\x20');h[_0x49f6a1]['forEach'](([_0x56f4e8,_0x1abf02])=>{for(const _0x442e7d of _0x32077){('function'==typeof _0x56f4e8&&_0x56f4e8(_0x442e7d)||_0x56f4e8===_0x442e7d)&&(_0x20e66a[_0x49f6a1]=[..._0x20e66a[_0x49f6a1]||[],[_0x56f4e8,_0x1abf02]]);}});}}}}),{'spanStyles':_0x334023,'stylesToBeHtmlElements':_0x20e66a};}class MSOfficeInlineStylePropagator extends _0x38374e{['execute'](_0x55bb68){const _0x2c51b0=new _0x5b0672(_0x55bb68['content']['document']),_0x56f55a=_0x2c51b0['createRangeIn'](_0x55bb68['content']),_0x2516a2=new _0x12636f(_0x2c51b0['document']['stylesProcessor']),_0x523578=[...new _0x2da39b(_0x2516a2)['blockElements'],'font'],_0x3c22b5=_0x56f55a['getItems']();for(const _0x26d347 of _0x3c22b5)if(_0x26d347['is']('element')&&_0x523578['includes'](_0x26d347['name'])){if(_0x26d347['hasStyle']('mso-list')&&'none'!==_0x26d347['getStyle']('mso-list')){P(_0x26d347,_0x2c51b0,E(_0x26d347));continue;}F(_0x26d347,_0x2c51b0,E(_0x26d347));}}['isActive'](_0x4e1c37){return super['isActive'](_0x4e1c37)||u(_0x4e1c37);}}class PasteFromOfficeEnhancedPropagator extends _0x49e905{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x525205];}['init'](){const _0x1adb8c=this['editor'],_0x2a68bc=_0x1adb8c['plugins']['get']('PasteFromOffice'),_0x5a5a0a=_0x1adb8c['editing']['view']['document'],_0x565981=new MSOfficeInlineStylePropagator(_0x5a5a0a);_0x2a68bc['registerNormalizer'](_0x565981,_0x1b6946['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4eaefa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x372582;for(const _0x441444 in _0x4eaefa){const _0x595121=_0x441444,_0x488fdf=_0x4eaefa[_0x595121];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x488fdf||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x488fdf||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x488fdf||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x488fdf||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x488fdf||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x488fdf||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x488fdf){delete _0x4eaefa[_0x595121],_0x372582=_0x488fdf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x372582&&_0x4eaefa['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x372582&&_0x4eaefa['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x372582&&_0x4eaefa['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x372582&&_0x4eaefa['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x372582&&_0x4eaefa['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x372582&&_0x4eaefa['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x49e905{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x525205,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.4",
|
|
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.4",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.2.0-alpha.4",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.4",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.2.0-alpha.4",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.4"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|