@ckeditor/ckeditor5-paste-from-office-enhanced 48.8.1-alpha.2 → 48.8.1-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 _0x3db8bf}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x5217e6,PasteFromOffice as _0x3d52bf,parsePasteOfficeHtml as _0x8af402}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x51a50b,uid as _0x3aa23b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x331cd5,ViewDocument as _0x365043,ViewDomConverter as _0x2be185}from'@ckeditor/ckeditor5-engine/dist/index.js';const u=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x536a1a){return u['test'](_0x536a1a);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x487d4b,_0x5c6e1d){const _0x367c12=new Map();for(const [_0x790465,_0x3dccb3]of _0x5c6e1d){if(!_0x790465['tagName']&&!_0x790465['className'])continue;const _0x2f4490=!_0x790465['tagName']||_0x487d4b['name']===_0x790465['tagName'],_0xb78c62=!_0x790465['className']||_0x487d4b['hasClass'](_0x790465['className']);_0x2f4490&&_0xb78c62&&_0x367c12['set'](_0x790465,_0x3dccb3);}return _0x367c12;}function m(_0x16bdc4){const _0x323dbb={};for(let _0x565967=0x0;_0x565967<_0x16bdc4['length'];_0x565967++){const _0x11c351=_0x16bdc4[_0x565967],_0x3eff2e=_0x16bdc4['getPropertyValue'](_0x11c351);'initial'!==_0x3eff2e&&(_0x323dbb[_0x11c351]=_0x3eff2e);}return _0x323dbb;}function p(_0x33b3df){const _0x53c683=_0x33b3df['split'](',')['map'](_0x119df9=>_0x119df9['trim']()),_0x1d49a4=[];for(const _0x3fdc56 of _0x53c683){const _0x5837ee=d['exec'](_0x3fdc56);_0x5837ee&&_0x1d49a4['push'](_0x5837ee['groups']);}return _0x1d49a4;}function y(_0x24ddd4){const _0x3ee7b5={};for(const _0x1c0890 of _0x24ddd4)Object['assign'](_0x3ee7b5,_0x1c0890);return _0x3ee7b5;}class MSOfficeStylesInliner extends _0x5217e6{['execute'](_0x239021){const {body:_0x1fcf48,styles:_0x184f6c,stylesString:_0x18d2d1}=_0x239021['_parsedData'],_0x5df4b8=new _0x331cd5(_0x1fcf48['document']),_0x6fb57f=_0x5df4b8['createRangeIn'](_0x1fcf48),_0x36aca6=function(_0x3a9957){const _0x4d4869={};for(const _0x21db28 of _0x3a9957)for(const _0x31d23c of _0x21db28['cssRules'])if(_0x31d23c instanceof CSSStyleRule){const _0xfa4944=m(_0x31d23c['style']);_0x4d4869[_0x31d23c['selectorText']]=Object['assign']({},_0x4d4869[_0x31d23c['selectorText']]||{},_0xfa4944);}return _0x4d4869;}(_0x184f6c),_0x12f57a=function(_0x43430a){const _0x41c2f6=new Map();for(const _0x7a2ed7 in _0x43430a){const _0x171b3d=p(_0x7a2ed7),_0x1b9491=_0x43430a[_0x7a2ed7];for(const _0x5c8e6c of _0x171b3d)_0x41c2f6['set'](_0x5c8e6c,_0x1b9491);}return _0x41c2f6;}(_0x36aca6),_0x1aca48=function(_0x1febce){const _0x5c2e5d={},_0xe5b92a=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x414e85=/\.(?<className>[\w-]+)/g;let _0x483797;for(;null!==(_0x483797=_0xe5b92a['exec'](_0x1febce));){const {selector:_0x315e4e,color:_0x3d2e07,patternType:_0x589383}=_0x483797['groups'];if('auto'!==_0x3d2e07['toLowerCase']()&&'none'!==_0x589383['toLowerCase']()&&'auto'!==_0x589383['toLowerCase']()){for(const _0x1a1e14 of _0x315e4e['matchAll'](_0x414e85))_0x5c2e5d[_0x1a1e14['groups']['className']]=_0x3d2e07;}}return _0x5c2e5d;}(_0x18d2d1);for(const _0x5dee72 of _0x6fb57f){if('elementStart'!==_0x5dee72['type'])continue;const _0x15da7c=_0x5dee72['item'],_0x1c8bdb=w(_0x15da7c,_0x12f57a),_0x3f9e8c=_0x1c8bdb['size']?y(Array['from'](_0x1c8bdb['values']())):{};if(!('background-color'in _0x3f9e8c)&&!('background'in _0x3f9e8c)){for(const [_0x494f3a,_0xada5d0]of Object['entries'](_0x1aca48))if(_0x15da7c['hasClass'](_0x494f3a)){_0x3f9e8c['background-color']=_0xada5d0;break;}}for(const _0x43090e in _0x3f9e8c)_0x15da7c['hasStyle'](_0x43090e)||_0x5df4b8['setStyle'](_0x43090e,_0x3f9e8c[_0x43090e],_0x15da7c);}_0x239021['content']=_0x1fcf48;}['isActive'](_0x5432aa){return super['isActive'](_0x5432aa)||l(_0x5432aa);}}class PasteFromOfficeEnhancedInliner extends _0x3db8bf{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3d52bf];}['init'](){const _0x3ee4ed=this['editor'],_0x22e22c=_0x3ee4ed['plugins']['get']('ClipboardPipeline'),_0x260e60=_0x3ee4ed['editing']['view']['document'],_0x1db158=new MSOfficeStylesInliner(_0x260e60);_0x22e22c['on']('inputTransformation',(_0x1d4813,_0x24466a)=>{const _0x537819=_0x24466a['dataTransfer']['getData']('text/html');_0x1db158['isActive'](_0x537819)&&(_0x24466a['_parsedData']||(_0x24466a['_parsedData']=_0x8af402(_0x537819,_0x260e60['stylesProcessor'])),_0x1db158['execute'](_0x24466a));},{'priority':_0x51a50b['get']('high')+0xb});}['afterInit'](){!async function(_0x95f194){const _0x503000=_0x4517be([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]),_0x5ec48f=0x7374585f,_0x318723=0x7373d20f^_0x5ec48f,_0x129b91=window[_0x4517be([0x44,0x61,0x74,0x65])][_0x4517be([0x6e,0x6f,0x77])](),_0x9c864c=_0x95f194[_0x4517be([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x42f3dc=new window[(_0x4517be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x502a93=>{_0x9c864c[_0x4517be([0x6f,0x6e,0x63,0x65])](_0x4517be([0x72,0x65,0x61,0x64,0x79]),_0x502a93);}),_0x8b9cf9={[_0x4517be([0x6b,0x74,0x79])]:_0x4517be([0x45,0x43]),[_0x4517be([0x75,0x73,0x65])]:_0x4517be([0x73,0x69,0x67]),[_0x4517be([0x63,0x72,0x76])]:_0x4517be([0x50,0x2d,0x32,0x35,0x36]),[_0x4517be([0x78])]:_0x4517be([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]),[_0x4517be([0x79])]:_0x4517be([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]),[_0x4517be([0x61,0x6c,0x67])]:_0x4517be([0x45,0x53,0x32,0x35,0x36])},_0x4faeda=_0x9c864c[_0x4517be([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4517be([0x67,0x65,0x74])](_0x4517be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x457e9a(){let _0x31d90b,_0x1e1d4d=null,_0x2af546=null;try{if(_0x4faeda==_0x4517be([0x47,0x50,0x4c]))return _0x4517be([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31d90b=_0x286757(),!_0x31d90b)return _0x4517be([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31d90b[_0x4517be([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2af546=_0x1fab29(_0x31d90b[_0x4517be([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31d90b[_0x4517be([0x6a,0x74,0x69])])),await _0x27d4e2()?_0x15871a()?_0x4876c1()?_0x4517be([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x546747()?(_0x31d90b[_0x4517be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4517be([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e1d4d=_0x23e57e(_0x4517be([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ac32e()):_0x4517be([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4517be([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4517be([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4517be([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4876c1(){const _0x5e1b58=[_0x4517be([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4517be([0x74,0x72,0x69,0x61,0x6c])][_0x4517be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31d90b[_0x4517be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x129b91/0x3e8:0xe10*_0x318723;return _0x31d90b[_0x4517be([0x65,0x78,0x70])]<_0x5e1b58;}function _0x15871a(){const _0x73a65=_0x31d90b[_0x4517be([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x73a65&&(!!_0x73a65[_0x4517be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4517be([0x2a]))||(!!_0x73a65[_0x4517be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4517be([0x50,0x4f,0x45]))||(!!_0x73a65[_0x4517be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4517be([0x50,0x50]))||!(!_0x73a65[_0x4517be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4517be([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x294e5d()))));}function _0x546747(){const _0x47c58d=_0x31d90b[_0x4517be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47c58d||0x0==_0x47c58d[_0x4517be([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x389760}=new URL(window[_0x4517be([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47c58d[_0x4517be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389760))return!0x0;const _0x3a3559=_0x389760[_0x4517be([0x73,0x70,0x6c,0x69,0x74])](_0x4517be([0x2e]));return _0x47c58d[_0x4517be([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c35c6=>_0x5c35c6[_0x4517be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4517be([0x2a])))[_0x4517be([0x6d,0x61,0x70])](_0x4a3a59=>_0x4a3a59[_0x4517be([0x73,0x70,0x6c,0x69,0x74])](_0x4517be([0x2e])))[_0x4517be([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43d927=>_0x43d927[_0x4517be([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3a3559[_0x4517be([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4517be([0x6d,0x61,0x70])](_0x897e37=>Array(_0x3a3559[_0x4517be([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x897e37[_0x4517be([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4517be([0x66,0x69,0x6c,0x6c])](_0x897e37[0x0]===_0x4517be([0x2a])?_0x4517be([0x2a]):'')[_0x4517be([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x897e37))[_0x4517be([0x73,0x6f,0x6d,0x65])](_0xef55d=>_0x3a3559[_0x4517be([0x65,0x76,0x65,0x72,0x79])]((_0x579252,_0x3e2ac2)=>_0xef55d[_0x3e2ac2]===_0x579252||_0xef55d[_0x3e2ac2]===_0x4517be([0x2a])));}function _0x4ac32e(){return _0x1e1d4d&&_0x2af546?new window[(_0x4517be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e094b,_0x34b86f)=>{_0x1e1d4d[_0x4517be([0x74,0x68,0x65,0x6e])](_0x5e094b,_0x34b86f),_0x2af546[_0x4517be([0x74,0x68,0x65,0x6e])](_0x1ca241=>{_0x1ca241!=_0x4517be([0x56,0x61,0x6c,0x69,0x64])&&_0x5e094b(_0x1ca241);},_0x34b86f);}):_0x1e1d4d||_0x2af546||_0x4517be([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1fab29(_0x1c33d2,_0x526309){return new window[(_0x4517be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51d3c5=>{if(_0x266636())return _0x51d3c5(_0x4517be([0x56,0x61,0x6c,0x69,0x64]));_0x29f57d(),_0x9c864c[_0x4517be([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4517be([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xaddd91=!0x1;const _0x212768=_0x3aa23b();function _0x475727(_0x1b08e9){return!!_0x1b08e9&&(typeof _0x1b08e9===_0x4517be([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b08e9===_0x4517be([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b08e9[_0x4517be([0x74,0x68,0x65,0x6e])]===_0x4517be([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b08e9[_0x4517be([0x63,0x61,0x74,0x63,0x68])]===_0x4517be([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5aa0d4(_0x569c13){_0x5cd01f(_0x569c13)[_0x4517be([0x74,0x68,0x65,0x6e])](_0x59f193=>{if(!_0x59f193||_0x59f193[_0x4517be([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4517be([0x6f,0x6b]))return _0x4517be([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1388bf(_0x1bfafa(_0x212768+_0x526309))!=_0x59f193[_0x4517be([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4517be([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4517be([0x56,0x61,0x6c,0x69,0x64]);})[_0x4517be([0x74,0x68,0x65,0x6e])](_0x4cb001=>(_0x17062c(),_0x4cb001),()=>{const _0x13a1c0=_0x4c6ded();return null==_0x13a1c0?(_0x17062c(),_0x4517be([0x56,0x61,0x6c,0x69,0x64])):_0x4517be(_0x129b91-_0x13a1c0>(0x5778dc5f^_0x5ec48f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4517be([0x74,0x68,0x65,0x6e])](_0x51d3c5)[_0x4517be([0x63,0x61,0x74,0x63,0x68])](()=>{_0x51d3c5(_0x4517be([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5c311d=0x7342b6df^_0x5ec48f;function _0x17062c(){const _0x1b966c=_0x4517be([0x6c,0x6c,0x63,0x74,0x2d])+_0x1388bf(_0x1bfafa(_0x1c33d2)),_0x2fff64=_0x5a3f9b(_0x1388bf(window[_0x4517be([0x4d,0x61,0x74,0x68])][_0x4517be([0x63,0x65,0x69,0x6c])](_0x129b91/_0x5c311d)));window[_0x4517be([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4517be([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b966c,_0x2fff64);}function _0x4c6ded(){const _0x28e44f=_0x4517be([0x6c,0x6c,0x63,0x74,0x2d])+_0x1388bf(_0x1bfafa(_0x1c33d2)),_0x23cc80=window[_0x4517be([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4517be([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28e44f);return _0x23cc80?window[_0x4517be([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a3f9b(_0x23cc80),0x10)*_0x5c311d:null;}function _0x5cd01f(_0x589085){return new window[(_0x4517be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13419d,_0x41a580)=>{_0x589085[_0x4517be([0x74,0x68,0x65,0x6e])](_0x13419d,_0x41a580),window[_0x4517be([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x41a580,0x73758c9f^_0x5ec48f);});}}_0x9c864c[_0x4517be([0x6f,0x6e])](_0x4517be([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x412140,_0xbcdee0)=>{if(_0xbcdee0[0x0]!=_0x1c33d2)return _0x51d3c5(_0x4517be([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbcdee0[0x1]={..._0xbcdee0[0x1],[_0x4517be([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x212768};},{[_0x4517be([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4517be([0x68,0x69,0x67,0x68])}),_0x9c864c[_0x4517be([0x6f,0x6e])](_0x4517be([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34a6f0=>{_0x475727(_0x34a6f0[_0x4517be([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xaddd91=!0x0,_0x5aa0d4(_0x34a6f0[_0x4517be([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4517be([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4517be([0x6c,0x6f,0x77])}),_0x42f3dc[_0x4517be([0x74,0x68,0x65,0x6e])](()=>{_0xaddd91||_0x51d3c5(_0x4517be([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x266636(){return _0x9c864c[_0x4517be([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4517be([0x76,0x69,0x65,0x77])][_0x4517be([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4517be([0x61,0x75,0x74,0x6f]);}function _0x29f57d(){_0x9c864c[_0x4517be([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4517be([0x76,0x69,0x65,0x77])][_0x4517be([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4517be([0x61,0x75,0x74,0x6f]);}}function _0x23e57e(_0x3b525a){const _0x2fcc5a=[new window[(_0x4517be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a4412=>setTimeout(_0x4a4412,0x737d6693^_0x5ec48f)),_0x42f3dc[_0x4517be([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4517be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33a4b0=>{let _0x5387d6=0x0;_0x9c864c[_0x4517be([0x6d,0x6f,0x64,0x65,0x6c])][_0x4517be([0x6f,0x6e])](_0x4517be([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5ca7ec,_0x329361)=>{_0x329361[0x0][_0x4517be([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5387d6++,_0x5387d6==(0x73745db7^_0x5ec48f)&&(_0x33a4b0(),_0x5ca7ec[_0x4517be([0x6f,0x66,0x66])]());});}))];return window[_0x4517be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4517be([0x72,0x61,0x63,0x65])](_0x2fcc5a)[_0x4517be([0x74,0x68,0x65,0x6e])](()=>_0x3b525a);}async function _0x3ba763(){await _0x42f3dc,_0x9c864c[_0x4517be([0x6d,0x6f,0x64,0x65,0x6c])][_0x4517be([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49c16a,_0x9c864c[_0x4517be([0x6d,0x6f,0x64,0x65,0x6c])][_0x4517be([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49c16a,_0x9c864c[_0x4517be([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4517be([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x294e5d(){return window[_0x4517be([0x67,0x6c,0x6f,0x62])]&&window[_0x4517be([0x67,0x6c,0x6f,0x62])][_0x4517be([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x5b3367(_0x1ffb77){const _0x4b200b=_0xf097d1();_0x9c864c[_0x4b200b]=_0x4517be([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])+_0x1ffb77,_0x1ffb77!=_0x4517be([0x56,0x61,0x6c,0x69,0x64])&&_0x3ba763();}function _0xf097d1(){const _0x426f0c=window[_0x4517be([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4517be([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4517be([0x6e,0x6f,0x77])]())[_0x4517be([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4517be([0x2e]),'');let _0x538733=_0x4517be([0x73]);for(let _0x2b987c=0x0;_0x2b987c<_0x426f0c[_0x4517be([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b987c+=0x2){let _0x12e5e8=window[_0x4517be([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x426f0c[_0x4517be([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b987c,_0x2b987c+0x2));_0x12e5e8>=_0x503000[_0x4517be([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12e5e8-=_0x503000[_0x4517be([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x538733+=_0x503000[_0x12e5e8];}return _0x538733;}function _0x286757(){const _0x5482ad=_0x4faeda[_0x4517be([0x73,0x70,0x6c,0x69,0x74])](_0x4517be([0x2e]));if(0x3!=_0x5482ad[_0x4517be([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e220e(_0x5482ad[0x1]);function _0x1e220e(_0x68a770){const _0x72fa2c=_0x5e6a63(_0x68a770);return _0x72fa2c&&_0x505919()?_0x72fa2c:null;function _0x505919(){const _0x543a99=_0x72fa2c[_0x4517be([0x6a,0x74,0x69])],_0x19302a=window[_0x4517be([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x543a99[_0x4517be([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x543a99[_0x4517be([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5cb3f0={..._0x72fa2c,[_0x4517be([0x6a,0x74,0x69])]:_0x543a99[_0x4517be([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x543a99[_0x4517be([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5cb3f0[_0x4517be([0x76,0x63])],_0x1bfafa(_0x5cb3f0)==_0x19302a;}}}async function _0x27d4e2(){let _0x195e3b=!0x0;try{const _0x5dd31c=_0x4faeda[_0x4517be([0x73,0x70,0x6c,0x69,0x74])](_0x4517be([0x2e])),[_0x108adc,_0x5814f2,_0x3243fc]=_0x5dd31c;return _0x2ed305(_0x108adc),await _0x3e1a75(_0x108adc,_0x5814f2,_0x3243fc),_0x195e3b;}catch{return!0x1;}function _0x2ed305(_0x25f3bd){const _0x15b378=_0x5e6a63(_0x25f3bd);_0x15b378&&_0x15b378[_0x4517be([0x61,0x6c,0x67])]==_0x4517be([0x45,0x53,0x32,0x35,0x36])||(_0x195e3b=!0x1);}async function _0x3e1a75(_0x1e48bc,_0x59a3ca,_0x24fdbb){const _0x4cf3d3=window[_0x4517be([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4517be([0x66,0x72,0x6f,0x6d])](_0x3944d3(_0x24fdbb),_0x3dd266=>_0x3dd266[_0x4517be([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57bfad=new window[(_0x4517be([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4517be([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e48bc+_0x4517be([0x2e])+_0x59a3ca),_0xde2e92=window[_0x4517be([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4517be([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xde2e92)return;const _0x2e885c=await _0xde2e92[_0x4517be([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4517be([0x6a,0x77,0x6b]),_0x8b9cf9,{[_0x4517be([0x6e,0x61,0x6d,0x65])]:_0x4517be([0x45,0x43,0x44,0x53,0x41]),[_0x4517be([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4517be([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4517be([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xde2e92[_0x4517be([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4517be([0x6e,0x61,0x6d,0x65])]:_0x4517be([0x45,0x43,0x44,0x53,0x41]),[_0x4517be([0x68,0x61,0x73,0x68])]:{[_0x4517be([0x6e,0x61,0x6d,0x65])]:_0x4517be([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e885c,_0x4cf3d3,_0x57bfad)||(_0x195e3b=!0x1);}}function _0x5e6a63(_0x483c93){return _0x483c93[_0x4517be([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4517be([0x65,0x79]))?JSON[_0x4517be([0x70,0x61,0x72,0x73,0x65])](_0x3944d3(_0x483c93)):null;}function _0x3944d3(_0x5020dd){return window[_0x4517be([0x61,0x74,0x6f,0x62])](_0x5020dd[_0x4517be([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4517be([0x2b]))[_0x4517be([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4517be([0x2f])));}function _0x1bfafa(_0x4fc867){let _0x4a5acb=0x1505;function _0xb8ff0f(_0x11a4f2){for(let _0x79197b=0x0;_0x79197b<_0x11a4f2[_0x4517be([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x79197b++){const _0x45f6cb=_0x11a4f2[_0x4517be([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x79197b);_0x4a5acb=(_0x4a5acb<<0x5)+_0x4a5acb+_0x45f6cb,_0x4a5acb&=_0x4a5acb;}}function _0xd849d8(_0xe82d15){Array[_0x4517be([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xe82d15)?_0xe82d15[_0x4517be([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd849d8):_0xe82d15&&typeof _0xe82d15==_0x4517be([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4517be([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xe82d15)[_0x4517be([0x73,0x6f,0x72,0x74])]()[_0x4517be([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x591e92,_0xc25e85])=>{_0xb8ff0f(_0x591e92),_0xd849d8(_0xc25e85);}):_0xb8ff0f(window[_0x4517be([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xe82d15));}return _0xd849d8(_0x4fc867),_0x4a5acb>>>0x0;}function _0x1388bf(_0x4bc1cd){return _0x4bc1cd[_0x4517be([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4517be([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4517be([0x30]));}function _0x5a3f9b(_0x56e30e){return _0x56e30e[_0x4517be([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4517be([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4517be([0x6a,0x6f,0x69,0x6e])]('');}function _0x49c16a(){}function _0x4517be(_0x4844c0){return _0x4844c0['map'](_0x110f73=>String['fromCharCode'](_0x110f73))['join']('');}_0x5b3367(await _0x457e9a());}(this);}}const g=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],h=['color','font-family','font-size'],O={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x23949d=>Number(_0x23949d)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function E(_0x6c6f4f){return g['includes'](_0x6c6f4f);}function P(_0x2d2375){return Array['from'](_0x2d2375['getStyleNames']())['filter'](E);}function F(_0x141632,_0x4a17ed,_0x4d6b99){const {spanStyles:_0x2396e5,stylesToBeHtmlElements:_0x4e096d}=x(_0x141632,_0x4d6b99);!function(_0x159b5a,_0x5e7397,_0x4d6966){for(const _0xbeb215 in _0x4d6966){_0x4d6966[_0xbeb215]['forEach'](([,_0x473f5c])=>{const _0x58a790=_0x5e7397['createElement'](_0x473f5c,[],_0x159b5a['getChildren']());_0x5e7397['insertChild'](0x0,_0x58a790,_0x159b5a);}),_0x5e7397['removeStyle'](_0xbeb215,_0x159b5a);}}(_0x141632,_0x4a17ed,_0x4e096d),function(_0x4559a9,_0x169b3a,_0x47fb3d){if(!Object['keys'](_0x47fb3d)['length'])return;const _0x16171c=_0x169b3a['createElement']('span',[],_0x4559a9['getChildren']());_0x169b3a['setStyle'](_0x47fb3d,_0x16171c),_0x169b3a['insertChild'](0x0,_0x16171c,_0x4559a9),_0x169b3a['removeStyle'](Object['keys'](_0x47fb3d),_0x4559a9);}(_0x141632,_0x4a17ed,_0x2396e5);}function L(_0x9c01ae,_0x512058,_0x1cfc50){const {spanStyles:_0x1328b7}=x(_0x9c01ae,_0x1cfc50),_0x404b34=Object['keys'](_0x1328b7);if(!_0x404b34['length'])return;let _0x194a8d=!0x1;for(const _0x4754a0 of _0x9c01ae['getChildren']())if(_0x4754a0['is']('element','span')){_0x194a8d=!0x0;for(const [_0x569709,_0x45fc35]of Object['entries'](_0x1328b7))_0x4754a0['hasStyle'](_0x569709)||_0x512058['setStyle']({[_0x569709]:_0x45fc35},_0x4754a0);}_0x194a8d&&_0x512058['removeStyle'](_0x404b34,_0x9c01ae);}function x(_0x55f88e,_0x305f64){const _0x27f6c7={},_0x12766f={};return _0x305f64['forEach'](_0x18715f=>{const _0x1dc586=_0x55f88e['getStyle'](_0x18715f);if(_0x1dc586){if(function(_0x5f30f8){return h['includes'](_0x5f30f8);}(_0x18715f))_0x27f6c7[_0x18715f]=_0x1dc586;else{if(function(_0x5a02f7){return _0x5a02f7 in O;}(_0x18715f)){const _0x555b28=_0x1dc586['split']('\x20');O[_0x18715f]['forEach'](([_0x6f35de,_0x646382])=>{for(const _0x1f4827 of _0x555b28){('function'==typeof _0x6f35de&&_0x6f35de(_0x1f4827)||_0x6f35de===_0x1f4827)&&(_0x12766f[_0x18715f]=[..._0x12766f[_0x18715f]||[],[_0x6f35de,_0x646382]]);}});}}}}),{'spanStyles':_0x27f6c7,'stylesToBeHtmlElements':_0x12766f};}class MSOfficeInlineStylePropagator extends _0x5217e6{['execute'](_0x47d2cd){const {body:_0x40a0f1}=_0x47d2cd['_parsedData'],_0x17726=new _0x331cd5(_0x40a0f1['document']),_0x4f5f98=_0x17726['createRangeIn'](_0x40a0f1),_0x127c86=new _0x365043(_0x17726['document']['stylesProcessor']),_0x5b87a3=[...new _0x2be185(_0x127c86)['blockElements'],'font'],_0xc1095c=_0x4f5f98['getItems']();for(const _0x3752d3 of _0xc1095c)if(_0x3752d3['is']('element')&&_0x5b87a3['includes'](_0x3752d3['name'])){if(_0x3752d3['hasStyle']('mso-list')&&'none'!==_0x3752d3['getStyle']('mso-list')){L(_0x3752d3,_0x17726,P(_0x3752d3));continue;}F(_0x3752d3,_0x17726,P(_0x3752d3));}_0x47d2cd['content']=_0x40a0f1;}['isActive'](_0x1fc993){return super['isActive'](_0x1fc993)||l(_0x1fc993);}}class PasteFromOfficeEnhancedPropagator extends _0x3db8bf{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3d52bf];}['init'](){const _0x34df48=this['editor'],_0x2e301b=_0x34df48['plugins']['get']('ClipboardPipeline'),_0xedd548=_0x34df48['editing']['view']['document'],_0xa4dc6e=new MSOfficeInlineStylePropagator(_0xedd548);_0x2e301b['on']('inputTransformation',(_0x33cca4,_0x3fb4ed)=>{const _0x42cf26=_0x3fb4ed['dataTransfer']['getData']('text/html');_0xa4dc6e['isActive'](_0x42cf26)&&(_0x3fb4ed['_parsedData']||(_0x3fb4ed['_parsedData']=_0x8af402(_0x42cf26,_0xedd548['stylesProcessor'])),_0xa4dc6e['execute'](_0x3fb4ed));},{'priority':_0x51a50b['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x518490=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ed500;for(const _0x57523c in _0x518490){const _0x4ad195=_0x57523c,_0x435a7f=_0x518490[_0x4ad195];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x435a7f||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x435a7f||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x435a7f||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x435a7f||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x435a7f||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x435a7f||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x435a7f){delete _0x518490[_0x4ad195],_0x4ed500=_0x435a7f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4ed500&&_0x518490['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4ed500&&_0x518490['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4ed500&&_0x518490['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4ed500&&_0x518490['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4ed500&&_0x518490['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4ed500&&_0x518490['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x3db8bf{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3d52bf,PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}export{PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x222a13}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x531cc5,PasteFromOffice as _0x138f84,parsePasteOfficeHtml as _0x23183b}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x139688,uid as _0x343d20}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x319d19,ViewDocument as _0x26a59f,ViewDomConverter as _0x2f4628}from'@ckeditor/ckeditor5-engine/dist/index.js';const u=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x425678){return u['test'](_0x425678);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x332267,_0x42248b){const _0x32c7b0=new Map();for(const [_0x4bdf37,_0x58c455]of _0x42248b){if(!_0x4bdf37['tagName']&&!_0x4bdf37['className'])continue;const _0x19d6b1=!_0x4bdf37['tagName']||_0x332267['name']===_0x4bdf37['tagName'],_0x28d358=!_0x4bdf37['className']||_0x332267['hasClass'](_0x4bdf37['className']);_0x19d6b1&&_0x28d358&&_0x32c7b0['set'](_0x4bdf37,_0x58c455);}return _0x32c7b0;}function m(_0x31f84c){const _0x2db30b={};for(let _0x5e0552=0x0;_0x5e0552<_0x31f84c['length'];_0x5e0552++){const _0x2b4242=_0x31f84c[_0x5e0552],_0x5ca6ca=_0x31f84c['getPropertyValue'](_0x2b4242);'initial'!==_0x5ca6ca&&(_0x2db30b[_0x2b4242]=_0x5ca6ca);}return _0x2db30b;}function p(_0x163b72){const _0xa6680=_0x163b72['split'](',')['map'](_0x4f9305=>_0x4f9305['trim']()),_0x19eb06=[];for(const _0x3c762f of _0xa6680){const _0x472d58=d['exec'](_0x3c762f);_0x472d58&&_0x19eb06['push'](_0x472d58['groups']);}return _0x19eb06;}function y(_0x3f6595){const _0x274cfb={};for(const _0x36d778 of _0x3f6595)Object['assign'](_0x274cfb,_0x36d778);return _0x274cfb;}class MSOfficeStylesInliner extends _0x531cc5{['execute'](_0xb19e6a){const {body:_0x54da10,styles:_0xc5c6aa,stylesString:_0x491a94}=_0xb19e6a['_parsedData'],_0x35505a=new _0x319d19(_0x54da10['document']),_0x22e92b=_0x35505a['createRangeIn'](_0x54da10),_0x3d2786=function(_0x3555fb){const _0x154835={};for(const _0x4e0615 of _0x3555fb)for(const _0xbf748d of _0x4e0615['cssRules'])if(_0xbf748d instanceof CSSStyleRule){const _0x1bd59d=m(_0xbf748d['style']);_0x154835[_0xbf748d['selectorText']]=Object['assign']({},_0x154835[_0xbf748d['selectorText']]||{},_0x1bd59d);}return _0x154835;}(_0xc5c6aa),_0x2e057f=function(_0x21d845){const _0x163934=new Map();for(const _0x587150 in _0x21d845){const _0x673e56=p(_0x587150),_0x1d33f0=_0x21d845[_0x587150];for(const _0x2d1477 of _0x673e56)_0x163934['set'](_0x2d1477,_0x1d33f0);}return _0x163934;}(_0x3d2786),_0x2ce339=function(_0x302b4e){const _0x116a2c={},_0x4ea818=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x322785=/\.(?<className>[\w-]+)/g;let _0x59ef4a;for(;null!==(_0x59ef4a=_0x4ea818['exec'](_0x302b4e));){const {selector:_0x51326e,color:_0x3f6721,patternType:_0x4c45f5}=_0x59ef4a['groups'];if('auto'!==_0x3f6721['toLowerCase']()&&'none'!==_0x4c45f5['toLowerCase']()&&'auto'!==_0x4c45f5['toLowerCase']()){for(const _0x1b3c58 of _0x51326e['matchAll'](_0x322785))_0x116a2c[_0x1b3c58['groups']['className']]=_0x3f6721;}}return _0x116a2c;}(_0x491a94);for(const _0x123b78 of _0x22e92b){if('elementStart'!==_0x123b78['type'])continue;const _0x439d34=_0x123b78['item'],_0x31a56a=w(_0x439d34,_0x2e057f),_0x360aa3=_0x31a56a['size']?y(Array['from'](_0x31a56a['values']())):{};if(!('background-color'in _0x360aa3)&&!('background'in _0x360aa3)){for(const [_0x4e980e,_0xbdaa21]of Object['entries'](_0x2ce339))if(_0x439d34['hasClass'](_0x4e980e)){_0x360aa3['background-color']=_0xbdaa21;break;}}for(const _0x2ab733 in _0x360aa3)_0x439d34['hasStyle'](_0x2ab733)||_0x35505a['setStyle'](_0x2ab733,_0x360aa3[_0x2ab733],_0x439d34);}_0xb19e6a['content']=_0x54da10;}['isActive'](_0x48c387){return super['isActive'](_0x48c387)||l(_0x48c387);}}class PasteFromOfficeEnhancedInliner extends _0x222a13{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x138f84];}['init'](){const _0xaec99b=this['editor'],_0x1a1fbb=_0xaec99b['plugins']['get']('ClipboardPipeline'),_0x5cf026=_0xaec99b['editing']['view']['document'],_0x46e0d3=new MSOfficeStylesInliner(_0x5cf026);_0x1a1fbb['on']('inputTransformation',(_0x1e989b,_0x44d148)=>{const _0x43c289=_0x44d148['dataTransfer']['getData']('text/html');_0x46e0d3['isActive'](_0x43c289)&&(_0x44d148['_parsedData']||(_0x44d148['_parsedData']=_0x23183b(_0x43c289,_0x5cf026['stylesProcessor'])),_0x46e0d3['execute'](_0x44d148));},{'priority':_0x139688['get']('high')+0xb});}['afterInit'](){!async function(_0x4931b0){const _0x6a0743=_0x213f37([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]),_0x3da863=0x7374585f,_0x2c6221=0x7373d2df^_0x3da863,_0x1fee3d=window[_0x213f37([0x44,0x61,0x74,0x65])][_0x213f37([0x6e,0x6f,0x77])](),_0x38cb84=_0x4931b0[_0x213f37([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x42bbc9=new window[(_0x213f37([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53729d=>{_0x38cb84[_0x213f37([0x6f,0x6e,0x63,0x65])](_0x213f37([0x72,0x65,0x61,0x64,0x79]),_0x53729d);}),_0x24b858={[_0x213f37([0x6b,0x74,0x79])]:_0x213f37([0x45,0x43]),[_0x213f37([0x75,0x73,0x65])]:_0x213f37([0x73,0x69,0x67]),[_0x213f37([0x63,0x72,0x76])]:_0x213f37([0x50,0x2d,0x32,0x35,0x36]),[_0x213f37([0x78])]:_0x213f37([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]),[_0x213f37([0x79])]:_0x213f37([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]),[_0x213f37([0x61,0x6c,0x67])]:_0x213f37([0x45,0x53,0x32,0x35,0x36])},_0x4ca719=_0x38cb84[_0x213f37([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x213f37([0x67,0x65,0x74])](_0x213f37([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34d2f1(){let _0x51e9e4,_0x373087=null,_0x2a6f42=null;try{if(_0x4ca719==_0x213f37([0x47,0x50,0x4c]))return _0x213f37([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51e9e4=_0x555668(),!_0x51e9e4)return _0x213f37([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51e9e4[_0x213f37([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a6f42=_0x258ae3(_0x51e9e4[_0x213f37([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51e9e4[_0x213f37([0x6a,0x74,0x69])])),await _0xb8ed66()?_0x2918af()?_0x17c8f8()?_0x213f37([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b814d()?(_0x51e9e4[_0x213f37([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x213f37([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x373087=_0x211198(_0x213f37([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x40b8e6()):_0x213f37([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x213f37([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x213f37([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x213f37([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x17c8f8(){const _0x153b78=[_0x213f37([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x213f37([0x74,0x72,0x69,0x61,0x6c])][_0x213f37([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51e9e4[_0x213f37([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1fee3d/0x3e8:0xe10*_0x2c6221;return _0x51e9e4[_0x213f37([0x65,0x78,0x70])]<_0x153b78;}function _0x2918af(){const _0x8d9ed3=_0x51e9e4[_0x213f37([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x8d9ed3&&(!!_0x8d9ed3[_0x213f37([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213f37([0x2a]))||(!!_0x8d9ed3[_0x213f37([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213f37([0x50,0x4f,0x45]))||(!!_0x8d9ed3[_0x213f37([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213f37([0x50,0x50]))||!(!_0x8d9ed3[_0x213f37([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213f37([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0xe2258e()))));}function _0x5b814d(){const _0x46523c=_0x51e9e4[_0x213f37([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46523c||0x0==_0x46523c[_0x213f37([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x718895}=new URL(window[_0x213f37([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x46523c[_0x213f37([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x718895))return!0x0;const _0x33854f=_0x718895[_0x213f37([0x73,0x70,0x6c,0x69,0x74])](_0x213f37([0x2e]));return _0x46523c[_0x213f37([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x377657=>_0x377657[_0x213f37([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213f37([0x2a])))[_0x213f37([0x6d,0x61,0x70])](_0x5ac8a5=>_0x5ac8a5[_0x213f37([0x73,0x70,0x6c,0x69,0x74])](_0x213f37([0x2e])))[_0x213f37([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1414d4=>_0x1414d4[_0x213f37([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x33854f[_0x213f37([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x213f37([0x6d,0x61,0x70])](_0x1736c4=>Array(_0x33854f[_0x213f37([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1736c4[_0x213f37([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x213f37([0x66,0x69,0x6c,0x6c])](_0x1736c4[0x0]===_0x213f37([0x2a])?_0x213f37([0x2a]):'')[_0x213f37([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1736c4))[_0x213f37([0x73,0x6f,0x6d,0x65])](_0x195583=>_0x33854f[_0x213f37([0x65,0x76,0x65,0x72,0x79])]((_0x121dba,_0x4ebf34)=>_0x195583[_0x4ebf34]===_0x121dba||_0x195583[_0x4ebf34]===_0x213f37([0x2a])));}function _0x40b8e6(){return _0x373087&&_0x2a6f42?new window[(_0x213f37([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a0967,_0x2525d3)=>{_0x373087[_0x213f37([0x74,0x68,0x65,0x6e])](_0x4a0967,_0x2525d3),_0x2a6f42[_0x213f37([0x74,0x68,0x65,0x6e])](_0x190123=>{_0x190123!=_0x213f37([0x56,0x61,0x6c,0x69,0x64])&&_0x4a0967(_0x190123);},_0x2525d3);}):_0x373087||_0x2a6f42||_0x213f37([0x56,0x61,0x6c,0x69,0x64]);}}function _0x258ae3(_0x59ae79,_0x1538bd){return new window[(_0x213f37([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d3710=>{if(_0x1b1d61())return _0x3d3710(_0x213f37([0x56,0x61,0x6c,0x69,0x64]));_0x16c5e4(),_0x38cb84[_0x213f37([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x213f37([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a9949=!0x1;const _0x5e6b6d=_0x343d20();function _0x5050e8(_0x57c60b){return!!_0x57c60b&&(typeof _0x57c60b===_0x213f37([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57c60b===_0x213f37([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57c60b[_0x213f37([0x74,0x68,0x65,0x6e])]===_0x213f37([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57c60b[_0x213f37([0x63,0x61,0x74,0x63,0x68])]===_0x213f37([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x172834(_0x6a003a){_0xbc7d52(_0x6a003a)[_0x213f37([0x74,0x68,0x65,0x6e])](_0x53e156=>{if(!_0x53e156||_0x53e156[_0x213f37([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x213f37([0x6f,0x6b]))return _0x213f37([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x386904(_0x1e1d78(_0x5e6b6d+_0x1538bd))!=_0x53e156[_0x213f37([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x213f37([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x213f37([0x56,0x61,0x6c,0x69,0x64]);})[_0x213f37([0x74,0x68,0x65,0x6e])](_0x3c619b=>(_0x2e76d2(),_0x3c619b),()=>{const _0x1ec6b2=_0x3f3d35();return null==_0x1ec6b2?(_0x2e76d2(),_0x213f37([0x56,0x61,0x6c,0x69,0x64])):_0x213f37(_0x1fee3d-_0x1ec6b2>(0x5778dc5f^_0x3da863)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x213f37([0x74,0x68,0x65,0x6e])](_0x3d3710)[_0x213f37([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d3710(_0x213f37([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e0dea=0x7342b6df^_0x3da863;function _0x2e76d2(){const _0x4dc2cd=_0x213f37([0x6c,0x6c,0x63,0x74,0x2d])+_0x386904(_0x1e1d78(_0x59ae79)),_0x25b505=_0x37fa2e(_0x386904(window[_0x213f37([0x4d,0x61,0x74,0x68])][_0x213f37([0x63,0x65,0x69,0x6c])](_0x1fee3d/_0x3e0dea)));window[_0x213f37([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x213f37([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dc2cd,_0x25b505);}function _0x3f3d35(){const _0x5394e6=_0x213f37([0x6c,0x6c,0x63,0x74,0x2d])+_0x386904(_0x1e1d78(_0x59ae79)),_0x379594=window[_0x213f37([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x213f37([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5394e6);return _0x379594?window[_0x213f37([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37fa2e(_0x379594),0x10)*_0x3e0dea:null;}function _0xbc7d52(_0x52f457){return new window[(_0x213f37([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6ea71b,_0x23968d)=>{_0x52f457[_0x213f37([0x74,0x68,0x65,0x6e])](_0x6ea71b,_0x23968d),window[_0x213f37([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x23968d,0x73758c9f^_0x3da863);});}}_0x38cb84[_0x213f37([0x6f,0x6e])](_0x213f37([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a7867,_0x2cb178)=>{if(_0x2cb178[0x0]!=_0x59ae79)return _0x3d3710(_0x213f37([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2cb178[0x1]={..._0x2cb178[0x1],[_0x213f37([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5e6b6d};},{[_0x213f37([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x213f37([0x68,0x69,0x67,0x68])}),_0x38cb84[_0x213f37([0x6f,0x6e])](_0x213f37([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17f530=>{_0x5050e8(_0x17f530[_0x213f37([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a9949=!0x0,_0x172834(_0x17f530[_0x213f37([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x213f37([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x213f37([0x6c,0x6f,0x77])}),_0x42bbc9[_0x213f37([0x74,0x68,0x65,0x6e])](()=>{_0x1a9949||_0x3d3710(_0x213f37([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b1d61(){return _0x38cb84[_0x213f37([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x213f37([0x76,0x69,0x65,0x77])][_0x213f37([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x213f37([0x61,0x75,0x74,0x6f]);}function _0x16c5e4(){_0x38cb84[_0x213f37([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x213f37([0x76,0x69,0x65,0x77])][_0x213f37([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x213f37([0x61,0x75,0x74,0x6f]);}}function _0x211198(_0x364bc1){const _0x2f97f0=[new window[(_0x213f37([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7cc2b6=>setTimeout(_0x7cc2b6,0x737d6693^_0x3da863)),_0x42bbc9[_0x213f37([0x74,0x68,0x65,0x6e])](()=>new window[(_0x213f37([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d55b6=>{let _0x4fcd1e=0x0;_0x38cb84[_0x213f37([0x6d,0x6f,0x64,0x65,0x6c])][_0x213f37([0x6f,0x6e])](_0x213f37([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x235544,_0x565425)=>{_0x565425[0x0][_0x213f37([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4fcd1e++,_0x4fcd1e==(0x73745db7^_0x3da863)&&(_0x5d55b6(),_0x235544[_0x213f37([0x6f,0x66,0x66])]());});}))];return window[_0x213f37([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x213f37([0x72,0x61,0x63,0x65])](_0x2f97f0)[_0x213f37([0x74,0x68,0x65,0x6e])](()=>_0x364bc1);}async function _0x8ee6bd(){await _0x42bbc9,_0x38cb84[_0x213f37([0x6d,0x6f,0x64,0x65,0x6c])][_0x213f37([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33c314,_0x38cb84[_0x213f37([0x6d,0x6f,0x64,0x65,0x6c])][_0x213f37([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33c314,_0x38cb84[_0x213f37([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x213f37([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xe2258e(){return window[_0x213f37([0x67,0x6c,0x6f,0x62])]&&window[_0x213f37([0x67,0x6c,0x6f,0x62])][_0x213f37([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1a5cdf(_0x3c1aa2){const _0x2637bb=_0x291b2d();_0x38cb84[_0x2637bb]=_0x213f37([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])+_0x3c1aa2,_0x3c1aa2!=_0x213f37([0x56,0x61,0x6c,0x69,0x64])&&_0x8ee6bd();}function _0x291b2d(){const _0x568cd9=window[_0x213f37([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x213f37([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x213f37([0x6e,0x6f,0x77])]())[_0x213f37([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x213f37([0x2e]),'');let _0x2d4abd=_0x213f37([0x73]);for(let _0x3bc2b0=0x0;_0x3bc2b0<_0x568cd9[_0x213f37([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3bc2b0+=0x2){let _0x355fd6=window[_0x213f37([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x568cd9[_0x213f37([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3bc2b0,_0x3bc2b0+0x2));_0x355fd6>=_0x6a0743[_0x213f37([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x355fd6-=_0x6a0743[_0x213f37([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d4abd+=_0x6a0743[_0x355fd6];}return _0x2d4abd;}function _0x555668(){const _0x2cf696=_0x4ca719[_0x213f37([0x73,0x70,0x6c,0x69,0x74])](_0x213f37([0x2e]));if(0x3!=_0x2cf696[_0x213f37([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x36d387(_0x2cf696[0x1]);function _0x36d387(_0x391750){const _0x2d4168=_0x190ac2(_0x391750);return _0x2d4168&&_0x24c252()?_0x2d4168:null;function _0x24c252(){const _0x437be6=_0x2d4168[_0x213f37([0x6a,0x74,0x69])],_0x2fdc8f=window[_0x213f37([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x437be6[_0x213f37([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x437be6[_0x213f37([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x19df89={..._0x2d4168,[_0x213f37([0x6a,0x74,0x69])]:_0x437be6[_0x213f37([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x437be6[_0x213f37([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x19df89[_0x213f37([0x76,0x63])],_0x1e1d78(_0x19df89)==_0x2fdc8f;}}}async function _0xb8ed66(){let _0x9836f8=!0x0;try{const _0x6f12de=_0x4ca719[_0x213f37([0x73,0x70,0x6c,0x69,0x74])](_0x213f37([0x2e])),[_0x115f81,_0x3055a9,_0x5217a9]=_0x6f12de;return _0x506dbe(_0x115f81),await _0x58ac9d(_0x115f81,_0x3055a9,_0x5217a9),_0x9836f8;}catch{return!0x1;}function _0x506dbe(_0x552b9e){const _0x413430=_0x190ac2(_0x552b9e);_0x413430&&_0x413430[_0x213f37([0x61,0x6c,0x67])]==_0x213f37([0x45,0x53,0x32,0x35,0x36])||(_0x9836f8=!0x1);}async function _0x58ac9d(_0x182a2d,_0x12ea6c,_0x476d71){const _0x522cdb=window[_0x213f37([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x213f37([0x66,0x72,0x6f,0x6d])](_0x558610(_0x476d71),_0x3ff166=>_0x3ff166[_0x213f37([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x400a1e=new window[(_0x213f37([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x213f37([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x182a2d+_0x213f37([0x2e])+_0x12ea6c),_0x238678=window[_0x213f37([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x213f37([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x238678)return;const _0x557ff1=await _0x238678[_0x213f37([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x213f37([0x6a,0x77,0x6b]),_0x24b858,{[_0x213f37([0x6e,0x61,0x6d,0x65])]:_0x213f37([0x45,0x43,0x44,0x53,0x41]),[_0x213f37([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x213f37([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x213f37([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x238678[_0x213f37([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x213f37([0x6e,0x61,0x6d,0x65])]:_0x213f37([0x45,0x43,0x44,0x53,0x41]),[_0x213f37([0x68,0x61,0x73,0x68])]:{[_0x213f37([0x6e,0x61,0x6d,0x65])]:_0x213f37([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x557ff1,_0x522cdb,_0x400a1e)||(_0x9836f8=!0x1);}}function _0x190ac2(_0x53fc78){return _0x53fc78[_0x213f37([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x213f37([0x65,0x79]))?JSON[_0x213f37([0x70,0x61,0x72,0x73,0x65])](_0x558610(_0x53fc78)):null;}function _0x558610(_0x37049b){return window[_0x213f37([0x61,0x74,0x6f,0x62])](_0x37049b[_0x213f37([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x213f37([0x2b]))[_0x213f37([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x213f37([0x2f])));}function _0x1e1d78(_0x297edb){let _0x4d8eb5=0x1505;function _0x19e8dc(_0x105bc8){for(let _0x1076d4=0x0;_0x1076d4<_0x105bc8[_0x213f37([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1076d4++){const _0x3ffff2=_0x105bc8[_0x213f37([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1076d4);_0x4d8eb5=(_0x4d8eb5<<0x5)+_0x4d8eb5+_0x3ffff2,_0x4d8eb5&=_0x4d8eb5;}}function _0x5dae30(_0x2c0f47){Array[_0x213f37([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2c0f47)?_0x2c0f47[_0x213f37([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5dae30):_0x2c0f47&&typeof _0x2c0f47==_0x213f37([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x213f37([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2c0f47)[_0x213f37([0x73,0x6f,0x72,0x74])]()[_0x213f37([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b6005,_0x4c1d21])=>{_0x19e8dc(_0x2b6005),_0x5dae30(_0x4c1d21);}):_0x19e8dc(window[_0x213f37([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2c0f47));}return _0x5dae30(_0x297edb),_0x4d8eb5>>>0x0;}function _0x386904(_0x2efcd3){return _0x2efcd3[_0x213f37([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x213f37([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x213f37([0x30]));}function _0x37fa2e(_0x536b8f){return _0x536b8f[_0x213f37([0x73,0x70,0x6c,0x69,0x74])]('')[_0x213f37([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x213f37([0x6a,0x6f,0x69,0x6e])]('');}function _0x33c314(){}function _0x213f37(_0x4c9153){return _0x4c9153['map'](_0x1d7570=>String['fromCharCode'](_0x1d7570))['join']('');}_0x1a5cdf(await _0x34d2f1());}(this);}}const g=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],h=['color','font-family','font-size'],O={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x48461b=>Number(_0x48461b)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function E(_0x4c5a9b){return g['includes'](_0x4c5a9b);}function P(_0x3927d9){return Array['from'](_0x3927d9['getStyleNames']())['filter'](E);}function F(_0x336891,_0x3edb0f,_0xd0bc6b){const {spanStyles:_0x135da3,stylesToBeHtmlElements:_0x30881a}=x(_0x336891,_0xd0bc6b);!function(_0x3dc8fc,_0x20a446,_0x3074b4){for(const _0x42bef9 in _0x3074b4){_0x3074b4[_0x42bef9]['forEach'](([,_0x936e05])=>{const _0x501110=_0x20a446['createElement'](_0x936e05,[],_0x3dc8fc['getChildren']());_0x20a446['insertChild'](0x0,_0x501110,_0x3dc8fc);}),_0x20a446['removeStyle'](_0x42bef9,_0x3dc8fc);}}(_0x336891,_0x3edb0f,_0x30881a),function(_0x9d0a13,_0x270ed6,_0x1a2111){if(!Object['keys'](_0x1a2111)['length'])return;const _0x30104e=_0x270ed6['createElement']('span',[],_0x9d0a13['getChildren']());_0x270ed6['setStyle'](_0x1a2111,_0x30104e),_0x270ed6['insertChild'](0x0,_0x30104e,_0x9d0a13),_0x270ed6['removeStyle'](Object['keys'](_0x1a2111),_0x9d0a13);}(_0x336891,_0x3edb0f,_0x135da3);}function L(_0x123686,_0x3778eb,_0x904ae4){const {spanStyles:_0x57d980}=x(_0x123686,_0x904ae4),_0x25b218=Object['keys'](_0x57d980);if(!_0x25b218['length'])return;let _0x38c37b=!0x1;for(const _0x498623 of _0x123686['getChildren']())if(_0x498623['is']('element','span')){_0x38c37b=!0x0;for(const [_0x439f2d,_0x424f83]of Object['entries'](_0x57d980))_0x498623['hasStyle'](_0x439f2d)||_0x3778eb['setStyle']({[_0x439f2d]:_0x424f83},_0x498623);}_0x38c37b&&_0x3778eb['removeStyle'](_0x25b218,_0x123686);}function x(_0x44b9a0,_0x3ab251){const _0xc6626={},_0x4e15c1={};return _0x3ab251['forEach'](_0x21de33=>{const _0xd52ed8=_0x44b9a0['getStyle'](_0x21de33);if(_0xd52ed8){if(function(_0x47a184){return h['includes'](_0x47a184);}(_0x21de33))_0xc6626[_0x21de33]=_0xd52ed8;else{if(function(_0x5724c4){return _0x5724c4 in O;}(_0x21de33)){const _0x275612=_0xd52ed8['split']('\x20');O[_0x21de33]['forEach'](([_0x3e6979,_0xaa87a5])=>{for(const _0x1aee2b of _0x275612){('function'==typeof _0x3e6979&&_0x3e6979(_0x1aee2b)||_0x3e6979===_0x1aee2b)&&(_0x4e15c1[_0x21de33]=[..._0x4e15c1[_0x21de33]||[],[_0x3e6979,_0xaa87a5]]);}});}}}}),{'spanStyles':_0xc6626,'stylesToBeHtmlElements':_0x4e15c1};}class MSOfficeInlineStylePropagator extends _0x531cc5{['execute'](_0x18da0c){const {body:_0x81eeee}=_0x18da0c['_parsedData'],_0x147b19=new _0x319d19(_0x81eeee['document']),_0x3a7581=_0x147b19['createRangeIn'](_0x81eeee),_0x240215=new _0x26a59f(_0x147b19['document']['stylesProcessor']),_0x4e51ba=[...new _0x2f4628(_0x240215)['blockElements'],'font'],_0x364237=_0x3a7581['getItems']();for(const _0x3d30f9 of _0x364237)if(_0x3d30f9['is']('element')&&_0x4e51ba['includes'](_0x3d30f9['name'])){if(_0x3d30f9['hasStyle']('mso-list')&&'none'!==_0x3d30f9['getStyle']('mso-list')){L(_0x3d30f9,_0x147b19,P(_0x3d30f9));continue;}F(_0x3d30f9,_0x147b19,P(_0x3d30f9));}_0x18da0c['content']=_0x81eeee;}['isActive'](_0x19869a){return super['isActive'](_0x19869a)||l(_0x19869a);}}class PasteFromOfficeEnhancedPropagator extends _0x222a13{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x138f84];}['init'](){const _0x11a624=this['editor'],_0x4becc2=_0x11a624['plugins']['get']('ClipboardPipeline'),_0x46a920=_0x11a624['editing']['view']['document'],_0xab3137=new MSOfficeInlineStylePropagator(_0x46a920);_0x4becc2['on']('inputTransformation',(_0x663202,_0x37d6da)=>{const _0x46d7b3=_0x37d6da['dataTransfer']['getData']('text/html');_0xab3137['isActive'](_0x46d7b3)&&(_0x37d6da['_parsedData']||(_0x37d6da['_parsedData']=_0x23183b(_0x46d7b3,_0x46a920['stylesProcessor'])),_0xab3137['execute'](_0x37d6da));},{'priority':_0x139688['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x272499=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2d45b0;for(const _0xfe084e in _0x272499){const _0x49c830=_0xfe084e,_0x5d5a37=_0x272499[_0x49c830];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x5d5a37||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x5d5a37||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x5d5a37||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x5d5a37||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x5d5a37||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x5d5a37||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x5d5a37){delete _0x272499[_0x49c830],_0x2d45b0=_0x5d5a37,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x2d45b0&&_0x272499['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x2d45b0&&_0x272499['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x2d45b0&&_0x272499['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x2d45b0&&_0x272499['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x2d45b0&&_0x272499['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x2d45b0&&_0x272499['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x222a13{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x138f84,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.8.1-alpha.
|
|
3
|
+
"version": "48.8.1-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.8.1-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.8.1-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.8.1-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.8.1-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.8.1-alpha.4",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.8.1-alpha.4",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.8.1-alpha.4",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.8.1-alpha.4",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.4"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|