@ckeditor/ckeditor5-paste-from-office-enhanced 48.1.0-alpha.2 → 48.1.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 _0x430064}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x1797af,PasteFromOffice as _0x3c618d,parsePasteOfficeHtml as _0x669c49}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x1448d3,uid as _0x44502c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x5d0f03,ViewDocument as _0x381cbf,ViewDomConverter as _0xf604db}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x1762d0){return a['test'](_0x1762d0);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x4504f6,_0x354250){const _0x26f719=new Map();for(const [_0xa41df8,_0x3f263a]of _0x354250){if(!_0xa41df8['tagName']&&!_0xa41df8['className'])continue;const _0x1e1c42=!_0xa41df8['tagName']||_0x4504f6['name']===_0xa41df8['tagName'],_0x2ca430=!_0xa41df8['className']||_0x4504f6['hasClass'](_0xa41df8['className']);_0x1e1c42&&_0x2ca430&&_0x26f719['set'](_0xa41df8,_0x3f263a);}return _0x26f719;}function m(_0x265f4c){const _0x5e20b9={};for(let _0xf5bdc9=0x0;_0xf5bdc9<_0x265f4c['length'];_0xf5bdc9++){const _0x2bddd3=_0x265f4c[_0xf5bdc9],_0x4930b4=_0x265f4c['getPropertyValue'](_0x2bddd3);'initial'!==_0x4930b4&&(_0x5e20b9[_0x2bddd3]=_0x4930b4);}return _0x5e20b9;}function p(_0x545963){const _0x405646=_0x545963['split'](',')['map'](_0xa353b2=>_0xa353b2['trim']()),_0x46b117=[];for(const _0x301606 of _0x405646){const _0x40931e=d['exec'](_0x301606);_0x40931e&&_0x46b117['push'](_0x40931e['groups']);}return _0x46b117;}function y(_0x4f77de){const _0x1326d3={};for(const _0x33343a of _0x4f77de)Object['assign'](_0x1326d3,_0x33343a);return _0x1326d3;}class g extends _0x1797af{['execute'](_0x217629){const {body:_0x4a7163,styles:_0x37f709,stylesString:_0x20e926}=_0x217629['_parsedData'],_0x282768=new _0x5d0f03(_0x4a7163['document']),_0x35cee3=_0x282768['createRangeIn'](_0x4a7163),_0xf7095=function(_0x105897){const _0x379132={};for(const _0x1239c1 of _0x105897)for(const _0x24b087 of _0x1239c1['cssRules'])if(_0x24b087 instanceof CSSStyleRule){const _0x1c9a12=m(_0x24b087['style']);_0x379132[_0x24b087['selectorText']]=Object['assign']({},_0x379132[_0x24b087['selectorText']]||{},_0x1c9a12);}return _0x379132;}(_0x37f709),_0x105ec8=function(_0x3d4f86){const _0x396a75=new Map();for(const _0x31827f in _0x3d4f86){const _0x268b4a=p(_0x31827f),_0x53ec75=_0x3d4f86[_0x31827f];for(const _0x2863af of _0x268b4a)_0x396a75['set'](_0x2863af,_0x53ec75);}return _0x396a75;}(_0xf7095),_0xd6b01b=function(_0x35cabb){const _0xb8ac23={},_0x3001eb=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x3e56d5=/\.(?<className>[\w-]+)/g;let _0x58ff5e;for(;null!==(_0x58ff5e=_0x3001eb['exec'](_0x35cabb));){const {selector:_0x418f83,color:_0x4fe5f5,patternType:_0xdac7e4}=_0x58ff5e['groups'];if('auto'!==_0x4fe5f5['toLowerCase']()&&'none'!==_0xdac7e4['toLowerCase']()&&'auto'!==_0xdac7e4['toLowerCase']()){for(const _0xa9c796 of _0x418f83['matchAll'](_0x3e56d5))_0xb8ac23[_0xa9c796['groups']['className']]=_0x4fe5f5;}}return _0xb8ac23;}(_0x20e926);for(const _0x4bc958 of _0x35cee3){if('elementStart'!==_0x4bc958['type'])continue;const _0x253290=_0x4bc958['item'],_0x51cbe8=w(_0x253290,_0x105ec8),_0x53ed52=_0x51cbe8['size']?y(Array['from'](_0x51cbe8['values']())):{};if(!('background-color'in _0x53ed52)&&!('background'in _0x53ed52)){for(const [_0x247e06,_0x474a4f]of Object['entries'](_0xd6b01b))if(_0x253290['hasClass'](_0x247e06)){_0x53ed52['background-color']=_0x474a4f;break;}}for(const _0xb99e2b in _0x53ed52)_0x253290['hasStyle'](_0xb99e2b)||_0x282768['setStyle'](_0xb99e2b,_0x53ed52[_0xb99e2b],_0x253290);}_0x217629['content']=_0x4a7163;}['isActive'](_0x165b6c){return super['isActive'](_0x165b6c)||l(_0x165b6c);}}class h extends _0x430064{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3c618d];}['init'](){const _0x9934ed=this['editor'],_0x4974de=_0x9934ed['plugins']['get']('ClipboardPipeline'),_0x528cb8=_0x9934ed['editing']['view']['document'],_0x1f2294=new g(_0x528cb8);_0x4974de['on']('inputTransformation',(_0x9e2440,_0x522c0d)=>{const _0x466f4a=_0x522c0d['dataTransfer']['getData']('text/html');_0x1f2294['isActive'](_0x466f4a)&&(_0x522c0d['_parsedData']||(_0x522c0d['_parsedData']=_0x669c49(_0x466f4a,_0x528cb8['stylesProcessor'])),_0x1f2294['execute'](_0x522c0d));},{'priority':_0x1448d3['get']('high')+0xb});}['afterInit'](){!async function(_0x258685){const _0x5e7890=_0x1985ca([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]),_0x25c35d=0x7374585f,_0x102771=0x7373d127^_0x25c35d,_0x6184ca=window[_0x1985ca([0x44,0x61,0x74,0x65])][_0x1985ca([0x6e,0x6f,0x77])](),_0x372407=_0x258685[_0x1985ca([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1148c3=new window[(_0x1985ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d2081=>{_0x372407[_0x1985ca([0x6f,0x6e,0x63,0x65])](_0x1985ca([0x72,0x65,0x61,0x64,0x79]),_0x3d2081);}),_0x52b5cd={[_0x1985ca([0x6b,0x74,0x79])]:_0x1985ca([0x45,0x43]),[_0x1985ca([0x75,0x73,0x65])]:_0x1985ca([0x73,0x69,0x67]),[_0x1985ca([0x63,0x72,0x76])]:_0x1985ca([0x50,0x2d,0x32,0x35,0x36]),[_0x1985ca([0x78])]:_0x1985ca([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]),[_0x1985ca([0x79])]:_0x1985ca([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]),[_0x1985ca([0x61,0x6c,0x67])]:_0x1985ca([0x45,0x53,0x32,0x35,0x36])},_0x345cef=_0x372407[_0x1985ca([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1985ca([0x67,0x65,0x74])](_0x1985ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x486898(){let _0x460f1c,_0x43adbb=null,_0x2f86a4=null;try{if(_0x345cef==_0x1985ca([0x47,0x50,0x4c]))return _0x1985ca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x460f1c=_0x5f71b2(),!_0x460f1c)return _0x1985ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x460f1c[_0x1985ca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f86a4=_0x4afae2(_0x460f1c[_0x1985ca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x460f1c[_0x1985ca([0x6a,0x74,0x69])])),await _0x1e3d82()?_0x421521()?_0x18155d()?_0x1985ca([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x78ab8a()?(_0x460f1c[_0x1985ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1985ca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43adbb=_0x232032(_0x1985ca([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2771e4()):_0x1985ca([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1985ca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1985ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1985ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18155d(){const _0x206c48=[_0x1985ca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1985ca([0x74,0x72,0x69,0x61,0x6c])][_0x1985ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x460f1c[_0x1985ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6184ca/0x3e8:0xe10*_0x102771;return _0x460f1c[_0x1985ca([0x65,0x78,0x70])]<_0x206c48;}function _0x421521(){const _0x17f9e9=_0x460f1c[_0x1985ca([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17f9e9&&(!!_0x17f9e9[_0x1985ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1985ca([0x2a]))||(!!_0x17f9e9[_0x1985ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1985ca([0x50,0x4f,0x45]))||(!!_0x17f9e9[_0x1985ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1985ca([0x50,0x50]))||!(!_0x17f9e9[_0x1985ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1985ca([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x5ba536()))));}function _0x78ab8a(){const _0x11a010=_0x460f1c[_0x1985ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11a010||0x0==_0x11a010[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xb8e946}=new URL(window[_0x1985ca([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11a010[_0x1985ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb8e946))return!0x0;const _0xe0c8ce=_0xb8e946[_0x1985ca([0x73,0x70,0x6c,0x69,0x74])](_0x1985ca([0x2e]));return _0x11a010[_0x1985ca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x75e784=>_0x75e784[_0x1985ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1985ca([0x2a])))[_0x1985ca([0x6d,0x61,0x70])](_0x6f58c6=>_0x6f58c6[_0x1985ca([0x73,0x70,0x6c,0x69,0x74])](_0x1985ca([0x2e])))[_0x1985ca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c2c75=>_0x4c2c75[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe0c8ce[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1985ca([0x6d,0x61,0x70])](_0x476897=>Array(_0xe0c8ce[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x476897[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1985ca([0x66,0x69,0x6c,0x6c])](_0x476897[0x0]===_0x1985ca([0x2a])?_0x1985ca([0x2a]):'')[_0x1985ca([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x476897))[_0x1985ca([0x73,0x6f,0x6d,0x65])](_0x4f6561=>_0xe0c8ce[_0x1985ca([0x65,0x76,0x65,0x72,0x79])]((_0x166b3a,_0x861084)=>_0x4f6561[_0x861084]===_0x166b3a||_0x4f6561[_0x861084]===_0x1985ca([0x2a])));}function _0x2771e4(){return _0x43adbb&&_0x2f86a4?new window[(_0x1985ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3341e8,_0x22bbcf)=>{_0x43adbb[_0x1985ca([0x74,0x68,0x65,0x6e])](_0x3341e8,_0x22bbcf),_0x2f86a4[_0x1985ca([0x74,0x68,0x65,0x6e])](_0x48c240=>{_0x48c240!=_0x1985ca([0x56,0x61,0x6c,0x69,0x64])&&_0x3341e8(_0x48c240);},_0x22bbcf);}):_0x43adbb||_0x2f86a4||_0x1985ca([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4afae2(_0x1683bd,_0x1aa40f){return new window[(_0x1985ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x861ddc=>{if(_0x4b51a6())return _0x861ddc(_0x1985ca([0x56,0x61,0x6c,0x69,0x64]));_0x5cd10f(),_0x372407[_0x1985ca([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1985ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x371610=!0x1;const _0x3e613e=_0x44502c();function _0x29c1cf(_0x429988){return!!_0x429988&&(typeof _0x429988===_0x1985ca([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x429988===_0x1985ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x429988[_0x1985ca([0x74,0x68,0x65,0x6e])]===_0x1985ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x429988[_0x1985ca([0x63,0x61,0x74,0x63,0x68])]===_0x1985ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41c5d4(_0x4e0c10){_0x1528ce(_0x4e0c10)[_0x1985ca([0x74,0x68,0x65,0x6e])](_0x368411=>{if(!_0x368411||_0x368411[_0x1985ca([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1985ca([0x6f,0x6b]))return _0x1985ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x201fa5(_0x5a00da(_0x3e613e+_0x1aa40f))!=_0x368411[_0x1985ca([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1985ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1985ca([0x56,0x61,0x6c,0x69,0x64]);})[_0x1985ca([0x74,0x68,0x65,0x6e])](_0x4c4608=>(_0x26a2e9(),_0x4c4608),()=>{const _0x2ff785=_0x1ea297();return null==_0x2ff785?(_0x26a2e9(),_0x1985ca([0x56,0x61,0x6c,0x69,0x64])):_0x1985ca(_0x6184ca-_0x2ff785>(0x5778dc5f^_0x25c35d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1985ca([0x74,0x68,0x65,0x6e])](_0x861ddc)[_0x1985ca([0x63,0x61,0x74,0x63,0x68])](()=>{_0x861ddc(_0x1985ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4b6058=0x7342b6df^_0x25c35d;function _0x26a2e9(){const _0x1d5412=_0x1985ca([0x6c,0x6c,0x63,0x74,0x2d])+_0x201fa5(_0x5a00da(_0x1683bd)),_0x395e5f=_0x3cd7a1(_0x201fa5(window[_0x1985ca([0x4d,0x61,0x74,0x68])][_0x1985ca([0x63,0x65,0x69,0x6c])](_0x6184ca/_0x4b6058)));window[_0x1985ca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1985ca([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d5412,_0x395e5f);}function _0x1ea297(){const _0x496755=_0x1985ca([0x6c,0x6c,0x63,0x74,0x2d])+_0x201fa5(_0x5a00da(_0x1683bd)),_0x2cb672=window[_0x1985ca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1985ca([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x496755);return _0x2cb672?window[_0x1985ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cd7a1(_0x2cb672),0x10)*_0x4b6058:null;}function _0x1528ce(_0x21099f){return new window[(_0x1985ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x359b91,_0x4d1aa6)=>{_0x21099f[_0x1985ca([0x74,0x68,0x65,0x6e])](_0x359b91,_0x4d1aa6),window[_0x1985ca([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d1aa6,0x73758c9f^_0x25c35d);});}}_0x372407[_0x1985ca([0x6f,0x6e])](_0x1985ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18c323,_0x587843)=>{if(_0x587843[0x0]!=_0x1683bd)return _0x861ddc(_0x1985ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x587843[0x1]={..._0x587843[0x1],[_0x1985ca([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e613e};},{[_0x1985ca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1985ca([0x68,0x69,0x67,0x68])}),_0x372407[_0x1985ca([0x6f,0x6e])](_0x1985ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ce8f1=>{_0x29c1cf(_0x5ce8f1[_0x1985ca([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x371610=!0x0,_0x41c5d4(_0x5ce8f1[_0x1985ca([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1985ca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1985ca([0x6c,0x6f,0x77])}),_0x1148c3[_0x1985ca([0x74,0x68,0x65,0x6e])](()=>{_0x371610||_0x861ddc(_0x1985ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b51a6(){return _0x372407[_0x1985ca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1985ca([0x76,0x69,0x65,0x77])][_0x1985ca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1985ca([0x61,0x75,0x74,0x6f]);}function _0x5cd10f(){_0x372407[_0x1985ca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1985ca([0x76,0x69,0x65,0x77])][_0x1985ca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1985ca([0x61,0x75,0x74,0x6f]);}}function _0x232032(_0x25563c){const _0x58b818=[new window[(_0x1985ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x391906=>setTimeout(_0x391906,0x737d6693^_0x25c35d)),_0x1148c3[_0x1985ca([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1985ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22bdb4=>{let _0x4edd07=0x0;_0x372407[_0x1985ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x1985ca([0x6f,0x6e])](_0x1985ca([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe99d8c,_0x35f6dd)=>{_0x35f6dd[0x0][_0x1985ca([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4edd07++,_0x4edd07==(0x73745db7^_0x25c35d)&&(_0x22bdb4(),_0xe99d8c[_0x1985ca([0x6f,0x66,0x66])]());});}))];return window[_0x1985ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1985ca([0x72,0x61,0x63,0x65])](_0x58b818)[_0x1985ca([0x74,0x68,0x65,0x6e])](()=>_0x25563c);}async function _0x539bb2(){await _0x1148c3,_0x372407[_0x1985ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x1985ca([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a54a3,_0x372407[_0x1985ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x1985ca([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a54a3,_0x372407[_0x1985ca([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1985ca([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ba536(){return window[_0x1985ca([0x67,0x6c,0x6f,0x62])]&&window[_0x1985ca([0x67,0x6c,0x6f,0x62])][_0x1985ca([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x46e460(_0x3ad724){const _0xa86b5e=_0x2b72f2();_0x372407[_0xa86b5e]=_0x1985ca([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])+_0x3ad724,_0x3ad724!=_0x1985ca([0x56,0x61,0x6c,0x69,0x64])&&_0x539bb2();}function _0x2b72f2(){const _0x502bfa=window[_0x1985ca([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1985ca([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1985ca([0x6e,0x6f,0x77])]())[_0x1985ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1985ca([0x2e]),'');let _0x39bd25=_0x1985ca([0x73]);for(let _0x367b3d=0x0;_0x367b3d<_0x502bfa[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x367b3d+=0x2){let _0x222971=window[_0x1985ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x502bfa[_0x1985ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x367b3d,_0x367b3d+0x2));_0x222971>=_0x5e7890[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x222971-=_0x5e7890[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x39bd25+=_0x5e7890[_0x222971];}return _0x39bd25;}function _0x5f71b2(){const _0x1e8176=_0x345cef[_0x1985ca([0x73,0x70,0x6c,0x69,0x74])](_0x1985ca([0x2e]));if(0x3!=_0x1e8176[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x38f783(_0x1e8176[0x1]);function _0x38f783(_0x4e78dc){const _0x420f1a=_0x32b6e4(_0x4e78dc);return _0x420f1a&&_0x4b6ef8()?_0x420f1a:null;function _0x4b6ef8(){const _0x49b381=_0x420f1a[_0x1985ca([0x6a,0x74,0x69])],_0x42fe52=window[_0x1985ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49b381[_0x1985ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49b381[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a8239={..._0x420f1a,[_0x1985ca([0x6a,0x74,0x69])]:_0x49b381[_0x1985ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49b381[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a8239[_0x1985ca([0x76,0x63])],_0x5a00da(_0x2a8239)==_0x42fe52;}}}async function _0x1e3d82(){let _0x59f062=!0x0;try{const _0x46e7a9=_0x345cef[_0x1985ca([0x73,0x70,0x6c,0x69,0x74])](_0x1985ca([0x2e])),[_0x45ac7a,_0x151aac,_0xb54bb7]=_0x46e7a9;return _0x3aa5d8(_0x45ac7a),await _0x45599a(_0x45ac7a,_0x151aac,_0xb54bb7),_0x59f062;}catch{return!0x1;}function _0x3aa5d8(_0x3b81f9){const _0x14e4ab=_0x32b6e4(_0x3b81f9);_0x14e4ab&&_0x14e4ab[_0x1985ca([0x61,0x6c,0x67])]==_0x1985ca([0x45,0x53,0x32,0x35,0x36])||(_0x59f062=!0x1);}async function _0x45599a(_0x519fd0,_0x54efb5,_0x5c8735){const _0x34394b=window[_0x1985ca([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1985ca([0x66,0x72,0x6f,0x6d])](_0x5ae633(_0x5c8735),_0x400764=>_0x400764[_0x1985ca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x22a214=new window[(_0x1985ca([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1985ca([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x519fd0+_0x1985ca([0x2e])+_0x54efb5),_0x5ee4eb=window[_0x1985ca([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1985ca([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ee4eb)return;const _0x2128a0=await _0x5ee4eb[_0x1985ca([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1985ca([0x6a,0x77,0x6b]),_0x52b5cd,{[_0x1985ca([0x6e,0x61,0x6d,0x65])]:_0x1985ca([0x45,0x43,0x44,0x53,0x41]),[_0x1985ca([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1985ca([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1985ca([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ee4eb[_0x1985ca([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1985ca([0x6e,0x61,0x6d,0x65])]:_0x1985ca([0x45,0x43,0x44,0x53,0x41]),[_0x1985ca([0x68,0x61,0x73,0x68])]:{[_0x1985ca([0x6e,0x61,0x6d,0x65])]:_0x1985ca([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2128a0,_0x34394b,_0x22a214)||(_0x59f062=!0x1);}}function _0x32b6e4(_0x1267ac){return _0x1267ac[_0x1985ca([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1985ca([0x65,0x79]))?JSON[_0x1985ca([0x70,0x61,0x72,0x73,0x65])](_0x5ae633(_0x1267ac)):null;}function _0x5ae633(_0x503832){return window[_0x1985ca([0x61,0x74,0x6f,0x62])](_0x503832[_0x1985ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1985ca([0x2b]))[_0x1985ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1985ca([0x2f])));}function _0x5a00da(_0x3b3015){let _0x52fbfa=0x1505;function _0x329148(_0x5ab655){for(let _0x4f24b8=0x0;_0x4f24b8<_0x5ab655[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f24b8++){const _0x49a7c8=_0x5ab655[_0x1985ca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f24b8);_0x52fbfa=(_0x52fbfa<<0x5)+_0x52fbfa+_0x49a7c8,_0x52fbfa&=_0x52fbfa;}}function _0x52e3d1(_0x2d3632){Array[_0x1985ca([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d3632)?_0x2d3632[_0x1985ca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x52e3d1):_0x2d3632&&typeof _0x2d3632==_0x1985ca([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1985ca([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d3632)[_0x1985ca([0x73,0x6f,0x72,0x74])]()[_0x1985ca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24483a,_0x468b7a])=>{_0x329148(_0x24483a),_0x52e3d1(_0x468b7a);}):_0x329148(window[_0x1985ca([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d3632));}return _0x52e3d1(_0x3b3015),_0x52fbfa>>>0x0;}function _0x201fa5(_0x3b48ac){return _0x3b48ac[_0x1985ca([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1985ca([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1985ca([0x30]));}function _0x3cd7a1(_0x1b2846){return _0x1b2846[_0x1985ca([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1985ca([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1985ca([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a54a3(){}function _0x1985ca(_0x508374){return _0x508374['map'](_0x1b0055=>String['fromCharCode'](_0x1b0055))['join']('');}_0x46e460(await _0x486898());}(this);}}const O=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],E=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x4c0355=>Number(_0x4c0355)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function x(_0x29c2eb){return O['includes'](_0x29c2eb);}function b(_0x20e0ae){return Array['from'](_0x20e0ae['getStyleNames']())['filter'](x);}function F(_0x855117,_0x577c4e,_0x55675a){const {spanStyles:_0x282be0,stylesToBeHtmlElements:_0x37ec64}=P(_0x855117,_0x55675a);!function(_0x26807b,_0xae773c,_0x5a2d84){for(const _0x20ee77 in _0x5a2d84){_0x5a2d84[_0x20ee77]['forEach'](([,_0x220bae])=>{const _0x3c9145=_0xae773c['createElement'](_0x220bae,[],_0x26807b['getChildren']());_0xae773c['insertChild'](0x0,_0x3c9145,_0x26807b);}),_0xae773c['removeStyle'](_0x20ee77,_0x26807b);}}(_0x855117,_0x577c4e,_0x37ec64),function(_0x401dd7,_0x366523,_0x5865ff){if(!Object['keys'](_0x5865ff)['length'])return;const _0x103798=_0x366523['createElement']('span',[],_0x401dd7['getChildren']());_0x366523['setStyle'](_0x5865ff,_0x103798),_0x366523['insertChild'](0x0,_0x103798,_0x401dd7),_0x366523['removeStyle'](Object['keys'](_0x5865ff),_0x401dd7);}(_0x855117,_0x577c4e,_0x282be0);}function K(_0x432b89,_0x1e5bdc,_0x52b6c5){const {spanStyles:_0x53025c}=P(_0x432b89,_0x52b6c5),_0x30215b=Object['keys'](_0x53025c);if(!_0x30215b['length'])return;let _0x19f48d=!0x1;for(const _0x4e5367 of _0x432b89['getChildren']())if(_0x4e5367['is']('element','span')){_0x19f48d=!0x0;for(const [_0x339f46,_0x1d96d2]of Object['entries'](_0x53025c))_0x4e5367['hasStyle'](_0x339f46)||_0x1e5bdc['setStyle']({[_0x339f46]:_0x1d96d2},_0x4e5367);}_0x19f48d&&_0x1e5bdc['removeStyle'](_0x30215b,_0x432b89);}function P(_0x48d396,_0xd23c08){const _0x1f511d={},_0x37a9bc={};return _0xd23c08['forEach'](_0x589ce4=>{const _0x290bae=_0x48d396['getStyle'](_0x589ce4);if(_0x290bae){if(function(_0x4f1b4b){return E['includes'](_0x4f1b4b);}(_0x589ce4))_0x1f511d[_0x589ce4]=_0x290bae;else{if(function(_0x37b6ac){return _0x37b6ac in L;}(_0x589ce4)){const _0x107334=_0x290bae['split']('\x20');L[_0x589ce4]['forEach'](([_0x68a3ba,_0xf9fa0b])=>{for(const _0x2feed4 of _0x107334){('function'==typeof _0x68a3ba&&_0x68a3ba(_0x2feed4)||_0x68a3ba===_0x2feed4)&&(_0x37a9bc[_0x589ce4]=[..._0x37a9bc[_0x589ce4]||[],[_0x68a3ba,_0xf9fa0b]]);}});}}}}),{'spanStyles':_0x1f511d,'stylesToBeHtmlElements':_0x37a9bc};}class v extends _0x1797af{['execute'](_0x373988){const {body:_0x5a8e73}=_0x373988['_parsedData'],_0x1489d9=new _0x5d0f03(_0x5a8e73['document']),_0x12324d=_0x1489d9['createRangeIn'](_0x5a8e73),_0x48b8a2=new _0x381cbf(_0x1489d9['document']['stylesProcessor']),_0x935bf8=[...new _0xf604db(_0x48b8a2)['blockElements'],'font'],_0x190ead=_0x12324d['getItems']();for(const _0x4f6240 of _0x190ead)if(_0x4f6240['is']('element')&&_0x935bf8['includes'](_0x4f6240['name'])){if(_0x4f6240['hasStyle']('mso-list')&&'none'!==_0x4f6240['getStyle']('mso-list')){K(_0x4f6240,_0x1489d9,b(_0x4f6240));continue;}F(_0x4f6240,_0x1489d9,b(_0x4f6240));}_0x373988['content']=_0x5a8e73;}['isActive'](_0x528816){return super['isActive'](_0x528816)||l(_0x528816);}}class k extends _0x430064{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3c618d];}['init'](){const _0x391982=this['editor'],_0x249c54=_0x391982['plugins']['get']('ClipboardPipeline'),_0x43b736=_0x391982['editing']['view']['document'],_0x516825=new v(_0x43b736);_0x249c54['on']('inputTransformation',(_0x1fc1d6,_0x2e86e5)=>{const _0x167dd9=_0x2e86e5['dataTransfer']['getData']('text/html');_0x516825['isActive'](_0x167dd9)&&(_0x2e86e5['_parsedData']||(_0x2e86e5['_parsedData']=_0x669c49(_0x167dd9,_0x43b736['stylesProcessor'])),_0x516825['execute'](_0x2e86e5));},{'priority':_0x1448d3['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x598a25=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x361064;for(const _0x5500e4 in _0x598a25){const _0x2452c4=_0x5500e4,_0x1cbf7b=_0x598a25[_0x2452c4];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x1cbf7b||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x1cbf7b||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x1cbf7b||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x1cbf7b||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x1cbf7b||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x1cbf7b||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x1cbf7b){delete _0x598a25[_0x2452c4],_0x361064=_0x1cbf7b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x361064&&_0x598a25['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x361064&&_0x598a25['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x361064&&_0x598a25['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x361064&&_0x598a25['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x361064&&_0x598a25['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x361064&&_0x598a25['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class j extends _0x430064{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3c618d,h,k];}}export{j as PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x385ad9}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x50cda6,PasteFromOffice as _0x4fbf1c,parsePasteOfficeHtml as _0x399554}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x452361,uid as _0x5c49f8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x14b016,ViewDocument as _0x40853a,ViewDomConverter as _0x3d9481}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x2e7429){return a['test'](_0x2e7429);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x14339b,_0x3d32b0){const _0x4bf35b=new Map();for(const [_0x553470,_0x53c719]of _0x3d32b0){if(!_0x553470['tagName']&&!_0x553470['className'])continue;const _0x1b1140=!_0x553470['tagName']||_0x14339b['name']===_0x553470['tagName'],_0x490697=!_0x553470['className']||_0x14339b['hasClass'](_0x553470['className']);_0x1b1140&&_0x490697&&_0x4bf35b['set'](_0x553470,_0x53c719);}return _0x4bf35b;}function m(_0x52f5df){const _0x4148bc={};for(let _0x14d571=0x0;_0x14d571<_0x52f5df['length'];_0x14d571++){const _0x4fe63b=_0x52f5df[_0x14d571],_0x42c572=_0x52f5df['getPropertyValue'](_0x4fe63b);'initial'!==_0x42c572&&(_0x4148bc[_0x4fe63b]=_0x42c572);}return _0x4148bc;}function p(_0x8a4c3b){const _0x3fa011=_0x8a4c3b['split'](',')['map'](_0xa5697f=>_0xa5697f['trim']()),_0x5cf2ec=[];for(const _0x1770b8 of _0x3fa011){const _0x45c250=d['exec'](_0x1770b8);_0x45c250&&_0x5cf2ec['push'](_0x45c250['groups']);}return _0x5cf2ec;}function y(_0x3a5f56){const _0xefaa26={};for(const _0x149e54 of _0x3a5f56)Object['assign'](_0xefaa26,_0x149e54);return _0xefaa26;}class g extends _0x50cda6{['execute'](_0x2fbc4d){const {body:_0x14159f,styles:_0x514c1b,stylesString:_0x9e9897}=_0x2fbc4d['_parsedData'],_0x2f8c9d=new _0x14b016(_0x14159f['document']),_0x20fa3f=_0x2f8c9d['createRangeIn'](_0x14159f),_0x5b4ca5=function(_0x163846){const _0x200463={};for(const _0x5e6128 of _0x163846)for(const _0xf1da42 of _0x5e6128['cssRules'])if(_0xf1da42 instanceof CSSStyleRule){const _0x52c19e=m(_0xf1da42['style']);_0x200463[_0xf1da42['selectorText']]=Object['assign']({},_0x200463[_0xf1da42['selectorText']]||{},_0x52c19e);}return _0x200463;}(_0x514c1b),_0x536bfc=function(_0x15cfc2){const _0x9c8971=new Map();for(const _0x38ef60 in _0x15cfc2){const _0x4b4ff8=p(_0x38ef60),_0x369d05=_0x15cfc2[_0x38ef60];for(const _0x3e14d7 of _0x4b4ff8)_0x9c8971['set'](_0x3e14d7,_0x369d05);}return _0x9c8971;}(_0x5b4ca5),_0x28e26c=function(_0x5c7153){const _0x5df7ba={},_0x7e3c3b=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x2bf027=/\.(?<className>[\w-]+)/g;let _0x12db04;for(;null!==(_0x12db04=_0x7e3c3b['exec'](_0x5c7153));){const {selector:_0x35a237,color:_0xaa764,patternType:_0x2a5691}=_0x12db04['groups'];if('auto'!==_0xaa764['toLowerCase']()&&'none'!==_0x2a5691['toLowerCase']()&&'auto'!==_0x2a5691['toLowerCase']()){for(const _0x318e2d of _0x35a237['matchAll'](_0x2bf027))_0x5df7ba[_0x318e2d['groups']['className']]=_0xaa764;}}return _0x5df7ba;}(_0x9e9897);for(const _0x1ade1c of _0x20fa3f){if('elementStart'!==_0x1ade1c['type'])continue;const _0x50881e=_0x1ade1c['item'],_0x30589a=w(_0x50881e,_0x536bfc),_0x2a267e=_0x30589a['size']?y(Array['from'](_0x30589a['values']())):{};if(!('background-color'in _0x2a267e)&&!('background'in _0x2a267e)){for(const [_0x3840b5,_0x257a6f]of Object['entries'](_0x28e26c))if(_0x50881e['hasClass'](_0x3840b5)){_0x2a267e['background-color']=_0x257a6f;break;}}for(const _0x1078fa in _0x2a267e)_0x50881e['hasStyle'](_0x1078fa)||_0x2f8c9d['setStyle'](_0x1078fa,_0x2a267e[_0x1078fa],_0x50881e);}_0x2fbc4d['content']=_0x14159f;}['isActive'](_0x36dee0){return super['isActive'](_0x36dee0)||l(_0x36dee0);}}class h extends _0x385ad9{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4fbf1c];}['init'](){const _0x25147a=this['editor'],_0x14201c=_0x25147a['plugins']['get']('ClipboardPipeline'),_0x2dec29=_0x25147a['editing']['view']['document'],_0x222d0f=new g(_0x2dec29);_0x14201c['on']('inputTransformation',(_0x21e15a,_0x1e806e)=>{const _0x9342b1=_0x1e806e['dataTransfer']['getData']('text/html');_0x222d0f['isActive'](_0x9342b1)&&(_0x1e806e['_parsedData']||(_0x1e806e['_parsedData']=_0x399554(_0x9342b1,_0x2dec29['stylesProcessor'])),_0x222d0f['execute'](_0x1e806e));},{'priority':_0x452361['get']('high')+0xb});}['afterInit'](){!async function(_0x1c82d7){const _0x336474=_0x2a3108([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]),_0x57f278=0x7374585f,_0x4003da=0x7373d1cf^_0x57f278,_0x52680f=window[_0x2a3108([0x44,0x61,0x74,0x65])][_0x2a3108([0x6e,0x6f,0x77])](),_0x24203c=_0x1c82d7[_0x2a3108([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x337a48=new window[(_0x2a3108([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x450248=>{_0x24203c[_0x2a3108([0x6f,0x6e,0x63,0x65])](_0x2a3108([0x72,0x65,0x61,0x64,0x79]),_0x450248);}),_0x3ac587={[_0x2a3108([0x6b,0x74,0x79])]:_0x2a3108([0x45,0x43]),[_0x2a3108([0x75,0x73,0x65])]:_0x2a3108([0x73,0x69,0x67]),[_0x2a3108([0x63,0x72,0x76])]:_0x2a3108([0x50,0x2d,0x32,0x35,0x36]),[_0x2a3108([0x78])]:_0x2a3108([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]),[_0x2a3108([0x79])]:_0x2a3108([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]),[_0x2a3108([0x61,0x6c,0x67])]:_0x2a3108([0x45,0x53,0x32,0x35,0x36])},_0x22b750=_0x24203c[_0x2a3108([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2a3108([0x67,0x65,0x74])](_0x2a3108([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xd34719(){let _0x3996c9,_0x2ee803=null,_0xf40c90=null;try{if(_0x22b750==_0x2a3108([0x47,0x50,0x4c]))return _0x2a3108([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3996c9=_0x4dd072(),!_0x3996c9)return _0x2a3108([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3996c9[_0x2a3108([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf40c90=_0x50e426(_0x3996c9[_0x2a3108([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3996c9[_0x2a3108([0x6a,0x74,0x69])])),await _0x2d0e69()?_0x3930c9()?_0x2ec746()?_0x2a3108([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x14c575()?(_0x3996c9[_0x2a3108([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a3108([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2ee803=_0x12a467(_0x2a3108([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x113e53()):_0x2a3108([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2a3108([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2a3108([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2a3108([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ec746(){const _0x4a7a39=[_0x2a3108([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2a3108([0x74,0x72,0x69,0x61,0x6c])][_0x2a3108([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3996c9[_0x2a3108([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52680f/0x3e8:0xe10*_0x4003da;return _0x3996c9[_0x2a3108([0x65,0x78,0x70])]<_0x4a7a39;}function _0x3930c9(){const _0x48e81b=_0x3996c9[_0x2a3108([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x48e81b&&(!!_0x48e81b[_0x2a3108([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a3108([0x2a]))||(!!_0x48e81b[_0x2a3108([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a3108([0x50,0x4f,0x45]))||(!!_0x48e81b[_0x2a3108([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a3108([0x50,0x50]))||!(!_0x48e81b[_0x2a3108([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a3108([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x1d055d()))));}function _0x14c575(){const _0x1f21d9=_0x3996c9[_0x2a3108([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1f21d9||0x0==_0x1f21d9[_0x2a3108([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f0e60}=new URL(window[_0x2a3108([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1f21d9[_0x2a3108([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f0e60))return!0x0;const _0x517e6e=_0x4f0e60[_0x2a3108([0x73,0x70,0x6c,0x69,0x74])](_0x2a3108([0x2e]));return _0x1f21d9[_0x2a3108([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32e2da=>_0x32e2da[_0x2a3108([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a3108([0x2a])))[_0x2a3108([0x6d,0x61,0x70])](_0x821443=>_0x821443[_0x2a3108([0x73,0x70,0x6c,0x69,0x74])](_0x2a3108([0x2e])))[_0x2a3108([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f1292=>_0x5f1292[_0x2a3108([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x517e6e[_0x2a3108([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2a3108([0x6d,0x61,0x70])](_0x40e9c3=>Array(_0x517e6e[_0x2a3108([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x40e9c3[_0x2a3108([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2a3108([0x66,0x69,0x6c,0x6c])](_0x40e9c3[0x0]===_0x2a3108([0x2a])?_0x2a3108([0x2a]):'')[_0x2a3108([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x40e9c3))[_0x2a3108([0x73,0x6f,0x6d,0x65])](_0x553d57=>_0x517e6e[_0x2a3108([0x65,0x76,0x65,0x72,0x79])]((_0xcc5134,_0xcd0085)=>_0x553d57[_0xcd0085]===_0xcc5134||_0x553d57[_0xcd0085]===_0x2a3108([0x2a])));}function _0x113e53(){return _0x2ee803&&_0xf40c90?new window[(_0x2a3108([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a5141,_0x1adf8a)=>{_0x2ee803[_0x2a3108([0x74,0x68,0x65,0x6e])](_0x4a5141,_0x1adf8a),_0xf40c90[_0x2a3108([0x74,0x68,0x65,0x6e])](_0x1770f2=>{_0x1770f2!=_0x2a3108([0x56,0x61,0x6c,0x69,0x64])&&_0x4a5141(_0x1770f2);},_0x1adf8a);}):_0x2ee803||_0xf40c90||_0x2a3108([0x56,0x61,0x6c,0x69,0x64]);}}function _0x50e426(_0x3bda28,_0x5733d5){return new window[(_0x2a3108([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b54d8=>{if(_0x4614f4())return _0x4b54d8(_0x2a3108([0x56,0x61,0x6c,0x69,0x64]));_0x19f5e6(),_0x24203c[_0x2a3108([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2a3108([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d0bda=!0x1;const _0x5a7e09=_0x5c49f8();function _0xf10b16(_0x5bc82a){return!!_0x5bc82a&&(typeof _0x5bc82a===_0x2a3108([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5bc82a===_0x2a3108([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5bc82a[_0x2a3108([0x74,0x68,0x65,0x6e])]===_0x2a3108([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5bc82a[_0x2a3108([0x63,0x61,0x74,0x63,0x68])]===_0x2a3108([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x97c72a(_0x4119da){_0x4cd216(_0x4119da)[_0x2a3108([0x74,0x68,0x65,0x6e])](_0x39300d=>{if(!_0x39300d||_0x39300d[_0x2a3108([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2a3108([0x6f,0x6b]))return _0x2a3108([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d4a9d(_0x16f49d(_0x5a7e09+_0x5733d5))!=_0x39300d[_0x2a3108([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2a3108([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2a3108([0x56,0x61,0x6c,0x69,0x64]);})[_0x2a3108([0x74,0x68,0x65,0x6e])](_0x508975=>(_0x3b41de(),_0x508975),()=>{const _0x5d6b6a=_0x10fe94();return null==_0x5d6b6a?(_0x3b41de(),_0x2a3108([0x56,0x61,0x6c,0x69,0x64])):_0x2a3108(_0x52680f-_0x5d6b6a>(0x5778dc5f^_0x57f278)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2a3108([0x74,0x68,0x65,0x6e])](_0x4b54d8)[_0x2a3108([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b54d8(_0x2a3108([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ac916=0x7342b6df^_0x57f278;function _0x3b41de(){const _0x26ce6c=_0x2a3108([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d4a9d(_0x16f49d(_0x3bda28)),_0x5622bc=_0x24fe50(_0x3d4a9d(window[_0x2a3108([0x4d,0x61,0x74,0x68])][_0x2a3108([0x63,0x65,0x69,0x6c])](_0x52680f/_0x1ac916)));window[_0x2a3108([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a3108([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26ce6c,_0x5622bc);}function _0x10fe94(){const _0x298562=_0x2a3108([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d4a9d(_0x16f49d(_0x3bda28)),_0x3c646c=window[_0x2a3108([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a3108([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x298562);return _0x3c646c?window[_0x2a3108([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24fe50(_0x3c646c),0x10)*_0x1ac916:null;}function _0x4cd216(_0x2fdf58){return new window[(_0x2a3108([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x453932,_0x1d2a4c)=>{_0x2fdf58[_0x2a3108([0x74,0x68,0x65,0x6e])](_0x453932,_0x1d2a4c),window[_0x2a3108([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d2a4c,0x73758c9f^_0x57f278);});}}_0x24203c[_0x2a3108([0x6f,0x6e])](_0x2a3108([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x552613,_0x55b421)=>{if(_0x55b421[0x0]!=_0x3bda28)return _0x4b54d8(_0x2a3108([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x55b421[0x1]={..._0x55b421[0x1],[_0x2a3108([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a7e09};},{[_0x2a3108([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a3108([0x68,0x69,0x67,0x68])}),_0x24203c[_0x2a3108([0x6f,0x6e])](_0x2a3108([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x449a7b=>{_0xf10b16(_0x449a7b[_0x2a3108([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d0bda=!0x0,_0x97c72a(_0x449a7b[_0x2a3108([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2a3108([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a3108([0x6c,0x6f,0x77])}),_0x337a48[_0x2a3108([0x74,0x68,0x65,0x6e])](()=>{_0x5d0bda||_0x4b54d8(_0x2a3108([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4614f4(){return _0x24203c[_0x2a3108([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a3108([0x76,0x69,0x65,0x77])][_0x2a3108([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2a3108([0x61,0x75,0x74,0x6f]);}function _0x19f5e6(){_0x24203c[_0x2a3108([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a3108([0x76,0x69,0x65,0x77])][_0x2a3108([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2a3108([0x61,0x75,0x74,0x6f]);}}function _0x12a467(_0x344bf1){const _0x23960c=[new window[(_0x2a3108([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c23f6=>setTimeout(_0x4c23f6,0x737d6693^_0x57f278)),_0x337a48[_0x2a3108([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2a3108([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c00b2=>{let _0x19294d=0x0;_0x24203c[_0x2a3108([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a3108([0x6f,0x6e])](_0x2a3108([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x128eeb,_0x289cd9)=>{_0x289cd9[0x0][_0x2a3108([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x19294d++,_0x19294d==(0x73745db7^_0x57f278)&&(_0x1c00b2(),_0x128eeb[_0x2a3108([0x6f,0x66,0x66])]());});}))];return window[_0x2a3108([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2a3108([0x72,0x61,0x63,0x65])](_0x23960c)[_0x2a3108([0x74,0x68,0x65,0x6e])](()=>_0x344bf1);}async function _0x3be747(){await _0x337a48,_0x24203c[_0x2a3108([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a3108([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d96c0,_0x24203c[_0x2a3108([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a3108([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d96c0,_0x24203c[_0x2a3108([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2a3108([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d055d(){return window[_0x2a3108([0x67,0x6c,0x6f,0x62])]&&window[_0x2a3108([0x67,0x6c,0x6f,0x62])][_0x2a3108([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1cf640(_0x3f3e32){const _0x27e6a3=_0x20e396();_0x24203c[_0x27e6a3]=_0x2a3108([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])+_0x3f3e32,_0x3f3e32!=_0x2a3108([0x56,0x61,0x6c,0x69,0x64])&&_0x3be747();}function _0x20e396(){const _0x3087e7=window[_0x2a3108([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2a3108([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2a3108([0x6e,0x6f,0x77])]())[_0x2a3108([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2a3108([0x2e]),'');let _0x55fc59=_0x2a3108([0x73]);for(let _0x5480b1=0x0;_0x5480b1<_0x3087e7[_0x2a3108([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5480b1+=0x2){let _0xddc83c=window[_0x2a3108([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3087e7[_0x2a3108([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5480b1,_0x5480b1+0x2));_0xddc83c>=_0x336474[_0x2a3108([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xddc83c-=_0x336474[_0x2a3108([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55fc59+=_0x336474[_0xddc83c];}return _0x55fc59;}function _0x4dd072(){const _0x303974=_0x22b750[_0x2a3108([0x73,0x70,0x6c,0x69,0x74])](_0x2a3108([0x2e]));if(0x3!=_0x303974[_0x2a3108([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x589c4e(_0x303974[0x1]);function _0x589c4e(_0x2e8eae){const _0xfd5e12=_0x4b5ea1(_0x2e8eae);return _0xfd5e12&&_0x516cb8()?_0xfd5e12:null;function _0x516cb8(){const _0x419e2d=_0xfd5e12[_0x2a3108([0x6a,0x74,0x69])],_0x3505bb=window[_0x2a3108([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x419e2d[_0x2a3108([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x419e2d[_0x2a3108([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b154a={..._0xfd5e12,[_0x2a3108([0x6a,0x74,0x69])]:_0x419e2d[_0x2a3108([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x419e2d[_0x2a3108([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b154a[_0x2a3108([0x76,0x63])],_0x16f49d(_0x1b154a)==_0x3505bb;}}}async function _0x2d0e69(){let _0x7a9372=!0x0;try{const _0x2b2300=_0x22b750[_0x2a3108([0x73,0x70,0x6c,0x69,0x74])](_0x2a3108([0x2e])),[_0x1c60c3,_0x174e12,_0x4dcbd3]=_0x2b2300;return _0x2ba175(_0x1c60c3),await _0x1e6cda(_0x1c60c3,_0x174e12,_0x4dcbd3),_0x7a9372;}catch{return!0x1;}function _0x2ba175(_0x1a8503){const _0x3376b3=_0x4b5ea1(_0x1a8503);_0x3376b3&&_0x3376b3[_0x2a3108([0x61,0x6c,0x67])]==_0x2a3108([0x45,0x53,0x32,0x35,0x36])||(_0x7a9372=!0x1);}async function _0x1e6cda(_0x1b9cd4,_0x3b85da,_0x16c88b){const _0x4411b0=window[_0x2a3108([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2a3108([0x66,0x72,0x6f,0x6d])](_0x56c8ee(_0x16c88b),_0x544298=>_0x544298[_0x2a3108([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x24aa8a=new window[(_0x2a3108([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2a3108([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b9cd4+_0x2a3108([0x2e])+_0x3b85da),_0x22438b=window[_0x2a3108([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2a3108([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22438b)return;const _0x561d5c=await _0x22438b[_0x2a3108([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2a3108([0x6a,0x77,0x6b]),_0x3ac587,{[_0x2a3108([0x6e,0x61,0x6d,0x65])]:_0x2a3108([0x45,0x43,0x44,0x53,0x41]),[_0x2a3108([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2a3108([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2a3108([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22438b[_0x2a3108([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2a3108([0x6e,0x61,0x6d,0x65])]:_0x2a3108([0x45,0x43,0x44,0x53,0x41]),[_0x2a3108([0x68,0x61,0x73,0x68])]:{[_0x2a3108([0x6e,0x61,0x6d,0x65])]:_0x2a3108([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x561d5c,_0x4411b0,_0x24aa8a)||(_0x7a9372=!0x1);}}function _0x4b5ea1(_0x4dda35){return _0x4dda35[_0x2a3108([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2a3108([0x65,0x79]))?JSON[_0x2a3108([0x70,0x61,0x72,0x73,0x65])](_0x56c8ee(_0x4dda35)):null;}function _0x56c8ee(_0x3d63c3){return window[_0x2a3108([0x61,0x74,0x6f,0x62])](_0x3d63c3[_0x2a3108([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2a3108([0x2b]))[_0x2a3108([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2a3108([0x2f])));}function _0x16f49d(_0x27a584){let _0x2a07aa=0x1505;function _0xa7dbab(_0x3e3fe4){for(let _0x33cb93=0x0;_0x33cb93<_0x3e3fe4[_0x2a3108([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33cb93++){const _0xdddd7b=_0x3e3fe4[_0x2a3108([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33cb93);_0x2a07aa=(_0x2a07aa<<0x5)+_0x2a07aa+_0xdddd7b,_0x2a07aa&=_0x2a07aa;}}function _0x24ae43(_0x309261){Array[_0x2a3108([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x309261)?_0x309261[_0x2a3108([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24ae43):_0x309261&&typeof _0x309261==_0x2a3108([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2a3108([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x309261)[_0x2a3108([0x73,0x6f,0x72,0x74])]()[_0x2a3108([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a628a,_0x43b281])=>{_0xa7dbab(_0x5a628a),_0x24ae43(_0x43b281);}):_0xa7dbab(window[_0x2a3108([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x309261));}return _0x24ae43(_0x27a584),_0x2a07aa>>>0x0;}function _0x3d4a9d(_0x2a7932){return _0x2a7932[_0x2a3108([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2a3108([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2a3108([0x30]));}function _0x24fe50(_0x3cdac2){return _0x3cdac2[_0x2a3108([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2a3108([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2a3108([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d96c0(){}function _0x2a3108(_0x35d781){return _0x35d781['map'](_0x4213ab=>String['fromCharCode'](_0x4213ab))['join']('');}_0x1cf640(await _0xd34719());}(this);}}const O=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],E=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x5499fb=>Number(_0x5499fb)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function x(_0x51e0bf){return O['includes'](_0x51e0bf);}function b(_0x2b16c0){return Array['from'](_0x2b16c0['getStyleNames']())['filter'](x);}function F(_0x57bfd8,_0x577317,_0xa8e178){const {spanStyles:_0x42d0be,stylesToBeHtmlElements:_0x43fe04}=P(_0x57bfd8,_0xa8e178);!function(_0x340735,_0x4a7b50,_0xe158fd){for(const _0x15a1d7 in _0xe158fd){_0xe158fd[_0x15a1d7]['forEach'](([,_0x501476])=>{const _0x365456=_0x4a7b50['createElement'](_0x501476,[],_0x340735['getChildren']());_0x4a7b50['insertChild'](0x0,_0x365456,_0x340735);}),_0x4a7b50['removeStyle'](_0x15a1d7,_0x340735);}}(_0x57bfd8,_0x577317,_0x43fe04),function(_0x2360c3,_0x287b27,_0x2a2a8d){if(!Object['keys'](_0x2a2a8d)['length'])return;const _0x6cb4f3=_0x287b27['createElement']('span',[],_0x2360c3['getChildren']());_0x287b27['setStyle'](_0x2a2a8d,_0x6cb4f3),_0x287b27['insertChild'](0x0,_0x6cb4f3,_0x2360c3),_0x287b27['removeStyle'](Object['keys'](_0x2a2a8d),_0x2360c3);}(_0x57bfd8,_0x577317,_0x42d0be);}function K(_0x211bc5,_0x5f3a78,_0x396b64){const {spanStyles:_0x414ed6}=P(_0x211bc5,_0x396b64),_0x519479=Object['keys'](_0x414ed6);if(!_0x519479['length'])return;let _0x4b6f51=!0x1;for(const _0x2c7c79 of _0x211bc5['getChildren']())if(_0x2c7c79['is']('element','span')){_0x4b6f51=!0x0;for(const [_0x5a21ce,_0x283001]of Object['entries'](_0x414ed6))_0x2c7c79['hasStyle'](_0x5a21ce)||_0x5f3a78['setStyle']({[_0x5a21ce]:_0x283001},_0x2c7c79);}_0x4b6f51&&_0x5f3a78['removeStyle'](_0x519479,_0x211bc5);}function P(_0x27d409,_0x103f2c){const _0x48eb41={},_0x526325={};return _0x103f2c['forEach'](_0x400b78=>{const _0x2ddecd=_0x27d409['getStyle'](_0x400b78);if(_0x2ddecd){if(function(_0x10eb9a){return E['includes'](_0x10eb9a);}(_0x400b78))_0x48eb41[_0x400b78]=_0x2ddecd;else{if(function(_0x878b1c){return _0x878b1c in L;}(_0x400b78)){const _0x2c7b35=_0x2ddecd['split']('\x20');L[_0x400b78]['forEach'](([_0x3787c1,_0x4affef])=>{for(const _0x5eceae of _0x2c7b35){('function'==typeof _0x3787c1&&_0x3787c1(_0x5eceae)||_0x3787c1===_0x5eceae)&&(_0x526325[_0x400b78]=[..._0x526325[_0x400b78]||[],[_0x3787c1,_0x4affef]]);}});}}}}),{'spanStyles':_0x48eb41,'stylesToBeHtmlElements':_0x526325};}class v extends _0x50cda6{['execute'](_0x5d5117){const {body:_0x15b8a0}=_0x5d5117['_parsedData'],_0x8dcca9=new _0x14b016(_0x15b8a0['document']),_0x3a6d79=_0x8dcca9['createRangeIn'](_0x15b8a0),_0xef433=new _0x40853a(_0x8dcca9['document']['stylesProcessor']),_0x3c23ca=[...new _0x3d9481(_0xef433)['blockElements'],'font'],_0x26f9af=_0x3a6d79['getItems']();for(const _0x558f82 of _0x26f9af)if(_0x558f82['is']('element')&&_0x3c23ca['includes'](_0x558f82['name'])){if(_0x558f82['hasStyle']('mso-list')&&'none'!==_0x558f82['getStyle']('mso-list')){K(_0x558f82,_0x8dcca9,b(_0x558f82));continue;}F(_0x558f82,_0x8dcca9,b(_0x558f82));}_0x5d5117['content']=_0x15b8a0;}['isActive'](_0x4d7e49){return super['isActive'](_0x4d7e49)||l(_0x4d7e49);}}class k extends _0x385ad9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4fbf1c];}['init'](){const _0x3b2d12=this['editor'],_0x3e03de=_0x3b2d12['plugins']['get']('ClipboardPipeline'),_0x4ad63e=_0x3b2d12['editing']['view']['document'],_0x2f8596=new v(_0x4ad63e);_0x3e03de['on']('inputTransformation',(_0x553fd2,_0x43facf)=>{const _0x59dcad=_0x43facf['dataTransfer']['getData']('text/html');_0x2f8596['isActive'](_0x59dcad)&&(_0x43facf['_parsedData']||(_0x43facf['_parsedData']=_0x399554(_0x59dcad,_0x4ad63e['stylesProcessor'])),_0x2f8596['execute'](_0x43facf));},{'priority':_0x452361['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4fc4b7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c671b;for(const _0x5bd5eb in _0x4fc4b7){const _0x2ab9f2=_0x5bd5eb,_0x13e8ea=_0x4fc4b7[_0x2ab9f2];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x13e8ea||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x13e8ea||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x13e8ea||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x13e8ea||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x13e8ea||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x13e8ea||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x13e8ea){delete _0x4fc4b7[_0x2ab9f2],_0x4c671b=_0x13e8ea,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4c671b&&_0x4fc4b7['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4c671b&&_0x4fc4b7['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4c671b&&_0x4fc4b7['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4c671b&&_0x4fc4b7['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4c671b&&_0x4fc4b7['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4c671b&&_0x4fc4b7['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class j extends _0x385ad9{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4fbf1c,h,k];}}export{j as PasteFromOfficeEnhanced};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
|
|
3
|
-
"version": "48.1.0-alpha.
|
|
3
|
+
"version": "48.1.0-alpha.3",
|
|
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.1.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.1.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.1.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.1.0-alpha.3",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.1.0-alpha.3",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.3",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.1.0-alpha.3",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.3"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|