@ckeditor/ckeditor5-paste-from-office-enhanced 48.2.0-alpha.2 → 48.2.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5c27bd}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x58a9b3,PasteFromOffice as _0x32903c}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x465571,uid as _0x585255}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x239180,ViewDocument as _0x3e2eb1,ViewDomConverter as _0x1e2b4d}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0xdbd293){return a['test'](_0xdbd293);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x13e4b0,_0x23dc17){const _0x42b5f0=new Map();for(const [_0x55f1af,_0x493df4]of _0x23dc17){if(!_0x55f1af['tagName']&&!_0x55f1af['className'])continue;const _0xaf6717=!_0x55f1af['tagName']||_0x13e4b0['name']===_0x55f1af['tagName'],_0x51f262=!_0x55f1af['className']||_0x13e4b0['hasClass'](_0x55f1af['className']);_0xaf6717&&_0x51f262&&_0x42b5f0['set'](_0x55f1af,_0x493df4);}return _0x42b5f0;}function w(_0x40cda0){const _0x5b7b53={};for(let _0xa3c1ff=0x0;_0xa3c1ff<_0x40cda0['length'];_0xa3c1ff++){const _0x1f4038=_0x40cda0[_0xa3c1ff],_0x2dae7a=_0x40cda0['getPropertyValue'](_0x1f4038);'initial'!==_0x2dae7a&&(_0x5b7b53[_0x1f4038]=_0x2dae7a);}return _0x5b7b53;}function m(_0x53b44d){const _0x48cdc5=_0x53b44d['split'](',')['map'](_0x54c1df=>_0x54c1df['trim']()),_0x4607a3=[];for(const _0x5d7dd9 of _0x48cdc5){const _0x1bca90=l['exec'](_0x5d7dd9);_0x1bca90&&_0x4607a3['push'](_0x1bca90['groups']);}return _0x4607a3;}function p(_0x4dd2c8){const _0x12dcf0={};for(const _0x249f25 of _0x4dd2c8)Object['assign'](_0x12dcf0,_0x249f25);return _0x12dcf0;}class MSOfficeStylesInliner extends _0x58a9b3{['execute'](_0x1b0c1e){const {styles:_0x4b7457,stylesString:_0x581552}=_0x1b0c1e['extraContent'],_0x42d36e=new _0x239180(_0x1b0c1e['content']['document']),_0x544173=_0x42d36e['createRangeIn'](_0x1b0c1e['content']),_0x25042d=function(_0x18ee9e){const _0x1c1f0b={};for(const _0xfb63d5 of _0x18ee9e)for(const _0x3b4d3f of _0xfb63d5['cssRules'])if(_0x3b4d3f instanceof CSSStyleRule){const _0x15a486=w(_0x3b4d3f['style']);_0x1c1f0b[_0x3b4d3f['selectorText']]=Object['assign']({},_0x1c1f0b[_0x3b4d3f['selectorText']]||{},_0x15a486);}return _0x1c1f0b;}(_0x4b7457),_0xb95928=function(_0x21b28b){const _0x89668f=new Map();for(const _0x3cc3ae in _0x21b28b){const _0x414da6=m(_0x3cc3ae),_0x4eb913=_0x21b28b[_0x3cc3ae];for(const _0x20b4eb of _0x414da6)_0x89668f['set'](_0x20b4eb,_0x4eb913);}return _0x89668f;}(_0x25042d),_0x12dc4a=function(_0x2a16f1){const _0xb0ae49={},_0x3cdc81=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0xdfd1b1=/\.(?<className>[\w-]+)/g;let _0x45d49f;for(;null!==(_0x45d49f=_0x3cdc81['exec'](_0x2a16f1));){const {selector:_0x1cec2f,color:_0x96954c,patternType:_0x21b823}=_0x45d49f['groups'];if('auto'!==_0x96954c['toLowerCase']()&&'none'!==_0x21b823['toLowerCase']()&&'auto'!==_0x21b823['toLowerCase']()){for(const _0x37b294 of _0x1cec2f['matchAll'](_0xdfd1b1))_0xb0ae49[_0x37b294['groups']['className']]=_0x96954c;}}return _0xb0ae49;}(_0x581552);for(const _0x4c208a of _0x544173){if('elementStart'!==_0x4c208a['type'])continue;const _0x4e10ba=_0x4c208a['item'],_0x5524cf=d(_0x4e10ba,_0xb95928),_0x26b41e=_0x5524cf['size']?p(Array['from'](_0x5524cf['values']())):{};if(!('background-color'in _0x26b41e)&&!('background'in _0x26b41e)){for(const [_0x5e49f2,_0x23a031]of Object['entries'](_0x12dc4a))if(_0x4e10ba['hasClass'](_0x5e49f2)){_0x26b41e['background-color']=_0x23a031;break;}}for(const _0x569a3a in _0x26b41e)_0x4e10ba['hasStyle'](_0x569a3a)||_0x42d36e['setStyle'](_0x569a3a,_0x26b41e[_0x569a3a],_0x4e10ba);}}['isActive'](_0x77fe5b){return super['isActive'](_0x77fe5b)||u(_0x77fe5b);}}class PasteFromOfficeEnhancedInliner extends _0x5c27bd{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x32903c];}['init'](){const _0x18677d=this['editor'],_0x198b2a=_0x18677d['plugins']['get']('PasteFromOffice'),_0x1d3ce3=_0x18677d['editing']['view']['document'],_0x1ab83d=new MSOfficeStylesInliner(_0x1d3ce3);_0x198b2a['registerNormalizer'](_0x1ab83d,_0x465571['high']+0xb);}['afterInit'](){!async function(_0x14fefe){const _0x1a01fc=_0x1cd73b([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]),_0x16eacd=0x7374585f,_0x103d80=0x7373d32f^_0x16eacd,_0x381df4=window[_0x1cd73b([0x44,0x61,0x74,0x65])][_0x1cd73b([0x6e,0x6f,0x77])](),_0x3ecaf2=_0x14fefe[_0x1cd73b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3bbfca=new window[(_0x1cd73b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c631c=>{_0x3ecaf2[_0x1cd73b([0x6f,0x6e,0x63,0x65])](_0x1cd73b([0x72,0x65,0x61,0x64,0x79]),_0x4c631c);}),_0x512ba0={[_0x1cd73b([0x6b,0x74,0x79])]:_0x1cd73b([0x45,0x43]),[_0x1cd73b([0x75,0x73,0x65])]:_0x1cd73b([0x73,0x69,0x67]),[_0x1cd73b([0x63,0x72,0x76])]:_0x1cd73b([0x50,0x2d,0x32,0x35,0x36]),[_0x1cd73b([0x78])]:_0x1cd73b([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]),[_0x1cd73b([0x79])]:_0x1cd73b([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]),[_0x1cd73b([0x61,0x6c,0x67])]:_0x1cd73b([0x45,0x53,0x32,0x35,0x36])},_0x375e3b=_0x3ecaf2[_0x1cd73b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1cd73b([0x67,0x65,0x74])](_0x1cd73b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x189ad2(){let _0x36830b,_0x231c22=null,_0x22a33f=null;try{if(_0x375e3b==_0x1cd73b([0x47,0x50,0x4c]))return _0x1cd73b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36830b=_0x3aac7b(),!_0x36830b)return _0x1cd73b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36830b[_0x1cd73b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x22a33f=_0x54819e(_0x36830b[_0x1cd73b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36830b[_0x1cd73b([0x6a,0x74,0x69])])),await _0x565026()?_0x489018()?_0x3235d6()?_0x1cd73b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35e8dc()?(_0x36830b[_0x1cd73b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1cd73b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x231c22=_0x15acb7(_0x1cd73b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x532143()):_0x1cd73b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1cd73b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1cd73b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1cd73b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3235d6(){const _0xba229f=[_0x1cd73b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1cd73b([0x74,0x72,0x69,0x61,0x6c])][_0x1cd73b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36830b[_0x1cd73b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x381df4/0x3e8:0xe10*_0x103d80;return _0x36830b[_0x1cd73b([0x65,0x78,0x70])]<_0xba229f;}function _0x489018(){const _0x52f111=_0x36830b[_0x1cd73b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x52f111&&(!!_0x52f111[_0x1cd73b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cd73b([0x2a]))||(!!_0x52f111[_0x1cd73b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cd73b([0x50,0x4f,0x45]))||(!!_0x52f111[_0x1cd73b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cd73b([0x50,0x50]))||!(!_0x52f111[_0x1cd73b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cd73b([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x28f5c4()))));}function _0x35e8dc(){const _0x9e89b0=_0x36830b[_0x1cd73b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9e89b0||0x0==_0x9e89b0[_0x1cd73b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x468e73}=new URL(window[_0x1cd73b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9e89b0[_0x1cd73b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468e73))return!0x0;const _0x4d3fb2=_0x468e73[_0x1cd73b([0x73,0x70,0x6c,0x69,0x74])](_0x1cd73b([0x2e]));return _0x9e89b0[_0x1cd73b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9e7395=>_0x9e7395[_0x1cd73b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cd73b([0x2a])))[_0x1cd73b([0x6d,0x61,0x70])](_0xd49c4a=>_0xd49c4a[_0x1cd73b([0x73,0x70,0x6c,0x69,0x74])](_0x1cd73b([0x2e])))[_0x1cd73b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e3177=>_0x5e3177[_0x1cd73b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d3fb2[_0x1cd73b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1cd73b([0x6d,0x61,0x70])](_0xd3f52d=>Array(_0x4d3fb2[_0x1cd73b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd3f52d[_0x1cd73b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1cd73b([0x66,0x69,0x6c,0x6c])](_0xd3f52d[0x0]===_0x1cd73b([0x2a])?_0x1cd73b([0x2a]):'')[_0x1cd73b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd3f52d))[_0x1cd73b([0x73,0x6f,0x6d,0x65])](_0x4f5386=>_0x4d3fb2[_0x1cd73b([0x65,0x76,0x65,0x72,0x79])]((_0x77043f,_0x37b7f3)=>_0x4f5386[_0x37b7f3]===_0x77043f||_0x4f5386[_0x37b7f3]===_0x1cd73b([0x2a])));}function _0x532143(){return _0x231c22&&_0x22a33f?new window[(_0x1cd73b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d38b7,_0x2e7887)=>{_0x231c22[_0x1cd73b([0x74,0x68,0x65,0x6e])](_0x2d38b7,_0x2e7887),_0x22a33f[_0x1cd73b([0x74,0x68,0x65,0x6e])](_0x355f61=>{_0x355f61!=_0x1cd73b([0x56,0x61,0x6c,0x69,0x64])&&_0x2d38b7(_0x355f61);},_0x2e7887);}):_0x231c22||_0x22a33f||_0x1cd73b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x54819e(_0x5eb1eb,_0x5b7861){return new window[(_0x1cd73b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cb844=>{if(_0x4ffe0c())return _0x4cb844(_0x1cd73b([0x56,0x61,0x6c,0x69,0x64]));_0x2a6dbd(),_0x3ecaf2[_0x1cd73b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1cd73b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b5e8b=!0x1;const _0x5f408e=_0x585255();function _0x2c8cde(_0x1167cc){return!!_0x1167cc&&(typeof _0x1167cc===_0x1cd73b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1167cc===_0x1cd73b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1167cc[_0x1cd73b([0x74,0x68,0x65,0x6e])]===_0x1cd73b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1167cc[_0x1cd73b([0x63,0x61,0x74,0x63,0x68])]===_0x1cd73b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x19095a(_0x576869){_0x4d6a89(_0x576869)[_0x1cd73b([0x74,0x68,0x65,0x6e])](_0x5deb69=>{if(!_0x5deb69||_0x5deb69[_0x1cd73b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1cd73b([0x6f,0x6b]))return _0x1cd73b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x330798(_0x437ac9(_0x5f408e+_0x5b7861))!=_0x5deb69[_0x1cd73b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1cd73b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1cd73b([0x56,0x61,0x6c,0x69,0x64]);})[_0x1cd73b([0x74,0x68,0x65,0x6e])](_0x2648a9=>(_0x246a8a(),_0x2648a9),()=>{const _0xe8da3e=_0x581ea4();return null==_0xe8da3e?(_0x246a8a(),_0x1cd73b([0x56,0x61,0x6c,0x69,0x64])):_0x1cd73b(_0x381df4-_0xe8da3e>(0x5778dc5f^_0x16eacd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1cd73b([0x74,0x68,0x65,0x6e])](_0x4cb844)[_0x1cd73b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cb844(_0x1cd73b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5bd50b=0x7342b6df^_0x16eacd;function _0x246a8a(){const _0x5992d2=_0x1cd73b([0x6c,0x6c,0x63,0x74,0x2d])+_0x330798(_0x437ac9(_0x5eb1eb)),_0x40be5c=_0x52dc59(_0x330798(window[_0x1cd73b([0x4d,0x61,0x74,0x68])][_0x1cd73b([0x63,0x65,0x69,0x6c])](_0x381df4/_0x5bd50b)));window[_0x1cd73b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cd73b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5992d2,_0x40be5c);}function _0x581ea4(){const _0x51af28=_0x1cd73b([0x6c,0x6c,0x63,0x74,0x2d])+_0x330798(_0x437ac9(_0x5eb1eb)),_0x10061d=window[_0x1cd73b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cd73b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51af28);return _0x10061d?window[_0x1cd73b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52dc59(_0x10061d),0x10)*_0x5bd50b:null;}function _0x4d6a89(_0x12836f){return new window[(_0x1cd73b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x422daf,_0x50c6b5)=>{_0x12836f[_0x1cd73b([0x74,0x68,0x65,0x6e])](_0x422daf,_0x50c6b5),window[_0x1cd73b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50c6b5,0x73758c9f^_0x16eacd);});}}_0x3ecaf2[_0x1cd73b([0x6f,0x6e])](_0x1cd73b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x187472,_0x5d3e60)=>{if(_0x5d3e60[0x0]!=_0x5eb1eb)return _0x4cb844(_0x1cd73b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d3e60[0x1]={..._0x5d3e60[0x1],[_0x1cd73b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5f408e};},{[_0x1cd73b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cd73b([0x68,0x69,0x67,0x68])}),_0x3ecaf2[_0x1cd73b([0x6f,0x6e])](_0x1cd73b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44457=>{_0x2c8cde(_0x44457[_0x1cd73b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b5e8b=!0x0,_0x19095a(_0x44457[_0x1cd73b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1cd73b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cd73b([0x6c,0x6f,0x77])}),_0x3bbfca[_0x1cd73b([0x74,0x68,0x65,0x6e])](()=>{_0x2b5e8b||_0x4cb844(_0x1cd73b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ffe0c(){return _0x3ecaf2[_0x1cd73b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cd73b([0x76,0x69,0x65,0x77])][_0x1cd73b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1cd73b([0x61,0x75,0x74,0x6f]);}function _0x2a6dbd(){_0x3ecaf2[_0x1cd73b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cd73b([0x76,0x69,0x65,0x77])][_0x1cd73b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1cd73b([0x61,0x75,0x74,0x6f]);}}function _0x15acb7(_0x5b72a2){const _0x18339f=[new window[(_0x1cd73b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x525443=>setTimeout(_0x525443,0x737d6693^_0x16eacd)),_0x3bbfca[_0x1cd73b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1cd73b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x409f46=>{let _0x5bd611=0x0;_0x3ecaf2[_0x1cd73b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cd73b([0x6f,0x6e])](_0x1cd73b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x44e792,_0xd6c0ad)=>{_0xd6c0ad[0x0][_0x1cd73b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5bd611++,_0x5bd611==(0x73745db7^_0x16eacd)&&(_0x409f46(),_0x44e792[_0x1cd73b([0x6f,0x66,0x66])]());});}))];return window[_0x1cd73b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1cd73b([0x72,0x61,0x63,0x65])](_0x18339f)[_0x1cd73b([0x74,0x68,0x65,0x6e])](()=>_0x5b72a2);}async function _0x4db6a1(){await _0x3bbfca,_0x3ecaf2[_0x1cd73b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cd73b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5f3466,_0x3ecaf2[_0x1cd73b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cd73b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5f3466,_0x3ecaf2[_0x1cd73b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1cd73b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28f5c4(){return window[_0x1cd73b([0x67,0x6c,0x6f,0x62])]&&window[_0x1cd73b([0x67,0x6c,0x6f,0x62])][_0x1cd73b([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x412e0c(_0x4806d0){const _0x5d25d6=_0xcd981();_0x3ecaf2[_0x5d25d6]=_0x1cd73b([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])+_0x4806d0,_0x4806d0!=_0x1cd73b([0x56,0x61,0x6c,0x69,0x64])&&_0x4db6a1();}function _0xcd981(){const _0xd6e684=window[_0x1cd73b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1cd73b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1cd73b([0x6e,0x6f,0x77])]())[_0x1cd73b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1cd73b([0x2e]),'');let _0x4b2d1d=_0x1cd73b([0x73]);for(let _0x366025=0x0;_0x366025<_0xd6e684[_0x1cd73b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x366025+=0x2){let _0x3e7acc=window[_0x1cd73b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd6e684[_0x1cd73b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x366025,_0x366025+0x2));_0x3e7acc>=_0x1a01fc[_0x1cd73b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e7acc-=_0x1a01fc[_0x1cd73b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b2d1d+=_0x1a01fc[_0x3e7acc];}return _0x4b2d1d;}function _0x3aac7b(){const _0xa2685d=_0x375e3b[_0x1cd73b([0x73,0x70,0x6c,0x69,0x74])](_0x1cd73b([0x2e]));if(0x3!=_0xa2685d[_0x1cd73b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1681a4(_0xa2685d[0x1]);function _0x1681a4(_0x49994c){const _0x51837a=_0x2b856b(_0x49994c);return _0x51837a&&_0x52eab8()?_0x51837a:null;function _0x52eab8(){const _0x255ca5=_0x51837a[_0x1cd73b([0x6a,0x74,0x69])],_0x1f9f28=window[_0x1cd73b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x255ca5[_0x1cd73b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x255ca5[_0x1cd73b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x343e23={..._0x51837a,[_0x1cd73b([0x6a,0x74,0x69])]:_0x255ca5[_0x1cd73b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x255ca5[_0x1cd73b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x343e23[_0x1cd73b([0x76,0x63])],_0x437ac9(_0x343e23)==_0x1f9f28;}}}async function _0x565026(){let _0x3184ac=!0x0;try{const _0x557fba=_0x375e3b[_0x1cd73b([0x73,0x70,0x6c,0x69,0x74])](_0x1cd73b([0x2e])),[_0x42f9fc,_0x273a12,_0x47e1b5]=_0x557fba;return _0x31e21e(_0x42f9fc),await _0x468459(_0x42f9fc,_0x273a12,_0x47e1b5),_0x3184ac;}catch{return!0x1;}function _0x31e21e(_0x20d8d3){const _0xeed03=_0x2b856b(_0x20d8d3);_0xeed03&&_0xeed03[_0x1cd73b([0x61,0x6c,0x67])]==_0x1cd73b([0x45,0x53,0x32,0x35,0x36])||(_0x3184ac=!0x1);}async function _0x468459(_0x443216,_0x3326b4,_0x2ca6ac){const _0x4c8141=window[_0x1cd73b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1cd73b([0x66,0x72,0x6f,0x6d])](_0xaddde(_0x2ca6ac),_0x345d9b=>_0x345d9b[_0x1cd73b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc073d6=new window[(_0x1cd73b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1cd73b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x443216+_0x1cd73b([0x2e])+_0x3326b4),_0x4aa2d7=window[_0x1cd73b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1cd73b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4aa2d7)return;const _0x19a0ef=await _0x4aa2d7[_0x1cd73b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1cd73b([0x6a,0x77,0x6b]),_0x512ba0,{[_0x1cd73b([0x6e,0x61,0x6d,0x65])]:_0x1cd73b([0x45,0x43,0x44,0x53,0x41]),[_0x1cd73b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1cd73b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1cd73b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4aa2d7[_0x1cd73b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1cd73b([0x6e,0x61,0x6d,0x65])]:_0x1cd73b([0x45,0x43,0x44,0x53,0x41]),[_0x1cd73b([0x68,0x61,0x73,0x68])]:{[_0x1cd73b([0x6e,0x61,0x6d,0x65])]:_0x1cd73b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x19a0ef,_0x4c8141,_0xc073d6)||(_0x3184ac=!0x1);}}function _0x2b856b(_0xac1996){return _0xac1996[_0x1cd73b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1cd73b([0x65,0x79]))?JSON[_0x1cd73b([0x70,0x61,0x72,0x73,0x65])](_0xaddde(_0xac1996)):null;}function _0xaddde(_0x588536){return window[_0x1cd73b([0x61,0x74,0x6f,0x62])](_0x588536[_0x1cd73b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1cd73b([0x2b]))[_0x1cd73b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1cd73b([0x2f])));}function _0x437ac9(_0x4f2993){let _0x27b3ed=0x1505;function _0x45df58(_0x24853a){for(let _0x34ead4=0x0;_0x34ead4<_0x24853a[_0x1cd73b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34ead4++){const _0x42db8f=_0x24853a[_0x1cd73b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34ead4);_0x27b3ed=(_0x27b3ed<<0x5)+_0x27b3ed+_0x42db8f,_0x27b3ed&=_0x27b3ed;}}function _0x320f3f(_0x3e4226){Array[_0x1cd73b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e4226)?_0x3e4226[_0x1cd73b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x320f3f):_0x3e4226&&typeof _0x3e4226==_0x1cd73b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1cd73b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e4226)[_0x1cd73b([0x73,0x6f,0x72,0x74])]()[_0x1cd73b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10122e,_0x472e1d])=>{_0x45df58(_0x10122e),_0x320f3f(_0x472e1d);}):_0x45df58(window[_0x1cd73b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e4226));}return _0x320f3f(_0x4f2993),_0x27b3ed>>>0x0;}function _0x330798(_0x2d7c1d){return _0x2d7c1d[_0x1cd73b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1cd73b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1cd73b([0x30]));}function _0x52dc59(_0x4ec053){return _0x4ec053[_0x1cd73b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1cd73b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1cd73b([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f3466(){}function _0x1cd73b(_0x2c6cd9){return _0x2c6cd9['map'](_0x50e1d3=>String['fromCharCode'](_0x50e1d3))['join']('');}_0x412e0c(await _0x189ad2());}(this);}}const y=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],g=['color','font-family','font-size'],h={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0xa81581=>Number(_0xa81581)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function O(_0x4bb591){return y['includes'](_0x4bb591);}function E(_0x451db8){return Array['from'](_0x451db8['getStyleNames']())['filter'](O);}function F(_0x4ddda6,_0x11d42f,_0x52b0b3){const {spanStyles:_0x3baa45,stylesToBeHtmlElements:_0x5a7c0a}=L(_0x4ddda6,_0x52b0b3);!function(_0x285134,_0x48f8fe,_0x318302){for(const _0x26b954 in _0x318302){_0x318302[_0x26b954]['forEach'](([,_0x26e70c])=>{const _0x3e6168=_0x48f8fe['createElement'](_0x26e70c,[],_0x285134['getChildren']());_0x48f8fe['insertChild'](0x0,_0x3e6168,_0x285134);}),_0x48f8fe['removeStyle'](_0x26b954,_0x285134);}}(_0x4ddda6,_0x11d42f,_0x5a7c0a),function(_0x49ec95,_0x29af36,_0x516775){if(!Object['keys'](_0x516775)['length'])return;const _0x15021f=_0x29af36['createElement']('span',[],_0x49ec95['getChildren']());_0x29af36['setStyle'](_0x516775,_0x15021f),_0x29af36['insertChild'](0x0,_0x15021f,_0x49ec95),_0x29af36['removeStyle'](Object['keys'](_0x516775),_0x49ec95);}(_0x4ddda6,_0x11d42f,_0x3baa45);}function P(_0x16153c,_0x1ac22c,_0x4a8c74){const {spanStyles:_0x370f62}=L(_0x16153c,_0x4a8c74),_0x581d0d=Object['keys'](_0x370f62);if(!_0x581d0d['length'])return;let _0x591370=!0x1;for(const _0x56b83f of _0x16153c['getChildren']())if(_0x56b83f['is']('element','span')){_0x591370=!0x0;for(const [_0xe6925,_0x1bbf76]of Object['entries'](_0x370f62))_0x56b83f['hasStyle'](_0xe6925)||_0x1ac22c['setStyle']({[_0xe6925]:_0x1bbf76},_0x56b83f);}_0x591370&&_0x1ac22c['removeStyle'](_0x581d0d,_0x16153c);}function L(_0x39a3d2,_0x6c37f6){const _0x4d20ca={},_0x4536e5={};return _0x6c37f6['forEach'](_0xdace79=>{const _0x3a5964=_0x39a3d2['getStyle'](_0xdace79);if(_0x3a5964){if(function(_0x5771d1){return g['includes'](_0x5771d1);}(_0xdace79))_0x4d20ca[_0xdace79]=_0x3a5964;else{if(function(_0x3a8f67){return _0x3a8f67 in h;}(_0xdace79)){const _0xd7efb0=_0x3a5964['split']('\x20');h[_0xdace79]['forEach'](([_0x1b8b86,_0x814297])=>{for(const _0x30a60b of _0xd7efb0){('function'==typeof _0x1b8b86&&_0x1b8b86(_0x30a60b)||_0x1b8b86===_0x30a60b)&&(_0x4536e5[_0xdace79]=[..._0x4536e5[_0xdace79]||[],[_0x1b8b86,_0x814297]]);}});}}}}),{'spanStyles':_0x4d20ca,'stylesToBeHtmlElements':_0x4536e5};}class MSOfficeInlineStylePropagator extends _0x58a9b3{['execute'](_0x4bd1fd){const _0xe62106=new _0x239180(_0x4bd1fd['content']['document']),_0x48b9ae=_0xe62106['createRangeIn'](_0x4bd1fd['content']),_0xd7bf46=new _0x3e2eb1(_0xe62106['document']['stylesProcessor']),_0x12c411=[...new _0x1e2b4d(_0xd7bf46)['blockElements'],'font'],_0x2f7c98=_0x48b9ae['getItems']();for(const _0x5a7893 of _0x2f7c98)if(_0x5a7893['is']('element')&&_0x12c411['includes'](_0x5a7893['name'])){if(_0x5a7893['hasStyle']('mso-list')&&'none'!==_0x5a7893['getStyle']('mso-list')){P(_0x5a7893,_0xe62106,E(_0x5a7893));continue;}F(_0x5a7893,_0xe62106,E(_0x5a7893));}}['isActive'](_0x199068){return super['isActive'](_0x199068)||u(_0x199068);}}class PasteFromOfficeEnhancedPropagator extends _0x5c27bd{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x32903c];}['init'](){const _0x177074=this['editor'],_0x1f5ec7=_0x177074['plugins']['get']('PasteFromOffice'),_0x26ac17=_0x177074['editing']['view']['document'],_0x67c19b=new MSOfficeInlineStylePropagator(_0x26ac17);_0x1f5ec7['registerNormalizer'](_0x67c19b,_0x465571['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x52e9f6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5aa74d;for(const _0x3700e7 in _0x52e9f6){const _0x1e519a=_0x3700e7,_0x3fc72b=_0x52e9f6[_0x1e519a];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x3fc72b||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x3fc72b||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x3fc72b||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x3fc72b||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x3fc72b||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x3fc72b||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x3fc72b){delete _0x52e9f6[_0x1e519a],_0x5aa74d=_0x3fc72b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x5aa74d&&_0x52e9f6['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x5aa74d&&_0x52e9f6['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x5aa74d&&_0x52e9f6['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x5aa74d&&_0x52e9f6['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x5aa74d&&_0x52e9f6['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x5aa74d&&_0x52e9f6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x5c27bd{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x32903c,PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}export{PasteFromOfficeEnhanced};
23
+ import{Plugin as _0x5242e3}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x447a08,PasteFromOffice as _0x4d2a1b}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x245a22,uid as _0x282cb5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x643c1d,ViewDocument as _0x574e8d,ViewDomConverter as _0x73054f}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x75d5d6){return a['test'](_0x75d5d6);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x41b5e4,_0x2c8518){const _0x1dd133=new Map();for(const [_0xfec508,_0x4acff8]of _0x2c8518){if(!_0xfec508['tagName']&&!_0xfec508['className'])continue;const _0x196695=!_0xfec508['tagName']||_0x41b5e4['name']===_0xfec508['tagName'],_0x44854b=!_0xfec508['className']||_0x41b5e4['hasClass'](_0xfec508['className']);_0x196695&&_0x44854b&&_0x1dd133['set'](_0xfec508,_0x4acff8);}return _0x1dd133;}function w(_0x4f74c1){const _0x12e126={};for(let _0x126a6e=0x0;_0x126a6e<_0x4f74c1['length'];_0x126a6e++){const _0x34524c=_0x4f74c1[_0x126a6e],_0x1b09bc=_0x4f74c1['getPropertyValue'](_0x34524c);'initial'!==_0x1b09bc&&(_0x12e126[_0x34524c]=_0x1b09bc);}return _0x12e126;}function m(_0x2a7efe){const _0x2c2317=_0x2a7efe['split'](',')['map'](_0x1217c2=>_0x1217c2['trim']()),_0x48a745=[];for(const _0xa3864 of _0x2c2317){const _0x50f744=l['exec'](_0xa3864);_0x50f744&&_0x48a745['push'](_0x50f744['groups']);}return _0x48a745;}function p(_0x1cdc6b){const _0x439df6={};for(const _0x3d081d of _0x1cdc6b)Object['assign'](_0x439df6,_0x3d081d);return _0x439df6;}class MSOfficeStylesInliner extends _0x447a08{['execute'](_0x16eb65){const {styles:_0x50b666,stylesString:_0x134b02}=_0x16eb65['extraContent'],_0x419b53=new _0x643c1d(_0x16eb65['content']['document']),_0x212ebb=_0x419b53['createRangeIn'](_0x16eb65['content']),_0x162a38=function(_0x39a38f){const _0xbd01c0={};for(const _0x4ec253 of _0x39a38f)for(const _0x40c5cb of _0x4ec253['cssRules'])if(_0x40c5cb instanceof CSSStyleRule){const _0x420ba2=w(_0x40c5cb['style']);_0xbd01c0[_0x40c5cb['selectorText']]=Object['assign']({},_0xbd01c0[_0x40c5cb['selectorText']]||{},_0x420ba2);}return _0xbd01c0;}(_0x50b666),_0x38a9ba=function(_0x3f5b1f){const _0x2e9127=new Map();for(const _0x2fbabd in _0x3f5b1f){const _0x586549=m(_0x2fbabd),_0xc14b64=_0x3f5b1f[_0x2fbabd];for(const _0x20ba69 of _0x586549)_0x2e9127['set'](_0x20ba69,_0xc14b64);}return _0x2e9127;}(_0x162a38),_0x70ae64=function(_0xdcb7d9){const _0x36fea7={},_0x2d1260=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x3b02c0=/\.(?<className>[\w-]+)/g;let _0x46643b;for(;null!==(_0x46643b=_0x2d1260['exec'](_0xdcb7d9));){const {selector:_0x32698b,color:_0x119df4,patternType:_0x4cc1af}=_0x46643b['groups'];if('auto'!==_0x119df4['toLowerCase']()&&'none'!==_0x4cc1af['toLowerCase']()&&'auto'!==_0x4cc1af['toLowerCase']()){for(const _0x350816 of _0x32698b['matchAll'](_0x3b02c0))_0x36fea7[_0x350816['groups']['className']]=_0x119df4;}}return _0x36fea7;}(_0x134b02);for(const _0x5ce79d of _0x212ebb){if('elementStart'!==_0x5ce79d['type'])continue;const _0x58a07c=_0x5ce79d['item'],_0x55407e=d(_0x58a07c,_0x38a9ba),_0xddb176=_0x55407e['size']?p(Array['from'](_0x55407e['values']())):{};if(!('background-color'in _0xddb176)&&!('background'in _0xddb176)){for(const [_0x5c54bf,_0xaee72b]of Object['entries'](_0x70ae64))if(_0x58a07c['hasClass'](_0x5c54bf)){_0xddb176['background-color']=_0xaee72b;break;}}for(const _0x415ead in _0xddb176)_0x58a07c['hasStyle'](_0x415ead)||_0x419b53['setStyle'](_0x415ead,_0xddb176[_0x415ead],_0x58a07c);}}['isActive'](_0x3c8836){return super['isActive'](_0x3c8836)||u(_0x3c8836);}}class PasteFromOfficeEnhancedInliner extends _0x5242e3{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4d2a1b];}['init'](){const _0x27ad01=this['editor'],_0x5a416d=_0x27ad01['plugins']['get']('PasteFromOffice'),_0x53dd4c=_0x27ad01['editing']['view']['document'],_0x21b670=new MSOfficeStylesInliner(_0x53dd4c);_0x5a416d['registerNormalizer'](_0x21b670,_0x245a22['high']+0xb);}['afterInit'](){!async function(_0x35862f){const _0x3330e9=_0x356001([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x4c55e9=0x7374585f,_0x57f258=0x7373d3d7^_0x4c55e9,_0x567af4=window[_0x356001([0x44,0x61,0x74,0x65])][_0x356001([0x6e,0x6f,0x77])](),_0x11ed0f=_0x35862f[_0x356001([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x884525=new window[(_0x356001([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x106493=>{_0x11ed0f[_0x356001([0x6f,0x6e,0x63,0x65])](_0x356001([0x72,0x65,0x61,0x64,0x79]),_0x106493);}),_0x344365={[_0x356001([0x6b,0x74,0x79])]:_0x356001([0x45,0x43]),[_0x356001([0x75,0x73,0x65])]:_0x356001([0x73,0x69,0x67]),[_0x356001([0x63,0x72,0x76])]:_0x356001([0x50,0x2d,0x32,0x35,0x36]),[_0x356001([0x78])]:_0x356001([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x356001([0x79])]:_0x356001([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x356001([0x61,0x6c,0x67])]:_0x356001([0x45,0x53,0x32,0x35,0x36])},_0x2b45b3=_0x11ed0f[_0x356001([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x356001([0x67,0x65,0x74])](_0x356001([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47647d(){let _0x1e711b,_0x579949=null,_0x533de0=null;try{if(_0x2b45b3==_0x356001([0x47,0x50,0x4c]))return _0x356001([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e711b=_0x28097f(),!_0x1e711b)return _0x356001([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e711b[_0x356001([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x533de0=_0x3ee1d6(_0x1e711b[_0x356001([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e711b[_0x356001([0x6a,0x74,0x69])])),await _0x5608b8()?_0x4b78bd()?_0x2bb065()?_0x356001([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48b54f()?(_0x1e711b[_0x356001([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x356001([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x579949=_0x11e023(_0x356001([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d1771()):_0x356001([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x356001([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x356001([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x356001([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2bb065(){const _0x10dd3c=[_0x356001([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x356001([0x74,0x72,0x69,0x61,0x6c])][_0x356001([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e711b[_0x356001([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x567af4/0x3e8:0xe10*_0x57f258;return _0x1e711b[_0x356001([0x65,0x78,0x70])]<_0x10dd3c;}function _0x4b78bd(){const _0x446b3e=_0x1e711b[_0x356001([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x446b3e&&(!!_0x446b3e[_0x356001([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x356001([0x2a]))||(!!_0x446b3e[_0x356001([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x356001([0x50,0x4f,0x45]))||(!!_0x446b3e[_0x356001([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x356001([0x50,0x50]))||!(!_0x446b3e[_0x356001([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x356001([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x1081ba()))));}function _0x48b54f(){const _0x1b3aef=_0x1e711b[_0x356001([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b3aef||0x0==_0x1b3aef[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x498591}=new URL(window[_0x356001([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b3aef[_0x356001([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498591))return!0x0;const _0xea27b=_0x498591[_0x356001([0x73,0x70,0x6c,0x69,0x74])](_0x356001([0x2e]));return _0x1b3aef[_0x356001([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e1d6a=>_0x5e1d6a[_0x356001([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x356001([0x2a])))[_0x356001([0x6d,0x61,0x70])](_0x462baa=>_0x462baa[_0x356001([0x73,0x70,0x6c,0x69,0x74])](_0x356001([0x2e])))[_0x356001([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x302047=>_0x302047[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xea27b[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x356001([0x6d,0x61,0x70])](_0x8036d5=>Array(_0xea27b[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x8036d5[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x356001([0x66,0x69,0x6c,0x6c])](_0x8036d5[0x0]===_0x356001([0x2a])?_0x356001([0x2a]):'')[_0x356001([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x8036d5))[_0x356001([0x73,0x6f,0x6d,0x65])](_0x581772=>_0xea27b[_0x356001([0x65,0x76,0x65,0x72,0x79])]((_0x5a23b0,_0x344fff)=>_0x581772[_0x344fff]===_0x5a23b0||_0x581772[_0x344fff]===_0x356001([0x2a])));}function _0x4d1771(){return _0x579949&&_0x533de0?new window[(_0x356001([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29db4e,_0x5b0588)=>{_0x579949[_0x356001([0x74,0x68,0x65,0x6e])](_0x29db4e,_0x5b0588),_0x533de0[_0x356001([0x74,0x68,0x65,0x6e])](_0x183bef=>{_0x183bef!=_0x356001([0x56,0x61,0x6c,0x69,0x64])&&_0x29db4e(_0x183bef);},_0x5b0588);}):_0x579949||_0x533de0||_0x356001([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ee1d6(_0x1b287f,_0x5dbecc){return new window[(_0x356001([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bed6c=>{if(_0xacfa3b())return _0x2bed6c(_0x356001([0x56,0x61,0x6c,0x69,0x64]));_0x1ac5b1(),_0x11ed0f[_0x356001([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x356001([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c9735=!0x1;const _0x449cf5=_0x282cb5();function _0x545f18(_0x2d99f6){return!!_0x2d99f6&&(typeof _0x2d99f6===_0x356001([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d99f6===_0x356001([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d99f6[_0x356001([0x74,0x68,0x65,0x6e])]===_0x356001([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d99f6[_0x356001([0x63,0x61,0x74,0x63,0x68])]===_0x356001([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d660b(_0x925cad){_0x56de39(_0x925cad)[_0x356001([0x74,0x68,0x65,0x6e])](_0x53508d=>{if(!_0x53508d||_0x53508d[_0x356001([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x356001([0x6f,0x6b]))return _0x356001([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d3f90(_0x158427(_0x449cf5+_0x5dbecc))!=_0x53508d[_0x356001([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x356001([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x356001([0x56,0x61,0x6c,0x69,0x64]);})[_0x356001([0x74,0x68,0x65,0x6e])](_0x248ac9=>(_0x3f3b87(),_0x248ac9),()=>{const _0xd7c48f=_0x2f42dc();return null==_0xd7c48f?(_0x3f3b87(),_0x356001([0x56,0x61,0x6c,0x69,0x64])):_0x356001(_0x567af4-_0xd7c48f>(0x5778dc5f^_0x4c55e9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x356001([0x74,0x68,0x65,0x6e])](_0x2bed6c)[_0x356001([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bed6c(_0x356001([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4bcba0=0x7342b6df^_0x4c55e9;function _0x3f3b87(){const _0x18d07d=_0x356001([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d3f90(_0x158427(_0x1b287f)),_0x3c1405=_0x2d140c(_0x2d3f90(window[_0x356001([0x4d,0x61,0x74,0x68])][_0x356001([0x63,0x65,0x69,0x6c])](_0x567af4/_0x4bcba0)));window[_0x356001([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x356001([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18d07d,_0x3c1405);}function _0x2f42dc(){const _0x29a965=_0x356001([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d3f90(_0x158427(_0x1b287f)),_0x344d92=window[_0x356001([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x356001([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29a965);return _0x344d92?window[_0x356001([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d140c(_0x344d92),0x10)*_0x4bcba0:null;}function _0x56de39(_0x45ccd3){return new window[(_0x356001([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cb5b2,_0x1570fa)=>{_0x45ccd3[_0x356001([0x74,0x68,0x65,0x6e])](_0x5cb5b2,_0x1570fa),window[_0x356001([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1570fa,0x73758c9f^_0x4c55e9);});}}_0x11ed0f[_0x356001([0x6f,0x6e])](_0x356001([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44618c,_0x3cdd27)=>{if(_0x3cdd27[0x0]!=_0x1b287f)return _0x2bed6c(_0x356001([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3cdd27[0x1]={..._0x3cdd27[0x1],[_0x356001([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x449cf5};},{[_0x356001([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x356001([0x68,0x69,0x67,0x68])}),_0x11ed0f[_0x356001([0x6f,0x6e])](_0x356001([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e3aec=>{_0x545f18(_0x3e3aec[_0x356001([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c9735=!0x0,_0x5d660b(_0x3e3aec[_0x356001([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x356001([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x356001([0x6c,0x6f,0x77])}),_0x884525[_0x356001([0x74,0x68,0x65,0x6e])](()=>{_0x3c9735||_0x2bed6c(_0x356001([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xacfa3b(){return _0x11ed0f[_0x356001([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x356001([0x76,0x69,0x65,0x77])][_0x356001([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x356001([0x61,0x75,0x74,0x6f]);}function _0x1ac5b1(){_0x11ed0f[_0x356001([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x356001([0x76,0x69,0x65,0x77])][_0x356001([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x356001([0x61,0x75,0x74,0x6f]);}}function _0x11e023(_0x293c52){const _0x382ace=[new window[(_0x356001([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8f7d2e=>setTimeout(_0x8f7d2e,0x737d6693^_0x4c55e9)),_0x884525[_0x356001([0x74,0x68,0x65,0x6e])](()=>new window[(_0x356001([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b4249=>{let _0x4437a8=0x0;_0x11ed0f[_0x356001([0x6d,0x6f,0x64,0x65,0x6c])][_0x356001([0x6f,0x6e])](_0x356001([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2bd72b,_0x41f512)=>{_0x41f512[0x0][_0x356001([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4437a8++,_0x4437a8==(0x73745db7^_0x4c55e9)&&(_0x4b4249(),_0x2bd72b[_0x356001([0x6f,0x66,0x66])]());});}))];return window[_0x356001([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x356001([0x72,0x61,0x63,0x65])](_0x382ace)[_0x356001([0x74,0x68,0x65,0x6e])](()=>_0x293c52);}async function _0x11f131(){await _0x884525,_0x11ed0f[_0x356001([0x6d,0x6f,0x64,0x65,0x6c])][_0x356001([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xfde4c4,_0x11ed0f[_0x356001([0x6d,0x6f,0x64,0x65,0x6c])][_0x356001([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xfde4c4,_0x11ed0f[_0x356001([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x356001([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1081ba(){return window[_0x356001([0x67,0x6c,0x6f,0x62])]&&window[_0x356001([0x67,0x6c,0x6f,0x62])][_0x356001([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0xab2831(_0xe14e2b){const _0x2d7937=_0x283af7();_0x11ed0f[_0x2d7937]=_0x356001([0x70,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe14e2b,_0xe14e2b!=_0x356001([0x56,0x61,0x6c,0x69,0x64])&&_0x11f131();}function _0x283af7(){const _0xabc01a=window[_0x356001([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x356001([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x356001([0x6e,0x6f,0x77])]())[_0x356001([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x356001([0x2e]),'');let _0x41f0b8=_0x356001([0x73]);for(let _0x2e8099=0x0;_0x2e8099<_0xabc01a[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e8099+=0x2){let _0x1b3038=window[_0x356001([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xabc01a[_0x356001([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e8099,_0x2e8099+0x2));_0x1b3038>=_0x3330e9[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b3038-=_0x3330e9[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41f0b8+=_0x3330e9[_0x1b3038];}return _0x41f0b8;}function _0x28097f(){const _0x47e2ac=_0x2b45b3[_0x356001([0x73,0x70,0x6c,0x69,0x74])](_0x356001([0x2e]));if(0x3!=_0x47e2ac[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b96e0(_0x47e2ac[0x1]);function _0x4b96e0(_0x40ac35){const _0x2911a7=_0x59e666(_0x40ac35);return _0x2911a7&&_0x2aa6c2()?_0x2911a7:null;function _0x2aa6c2(){const _0x4d0641=_0x2911a7[_0x356001([0x6a,0x74,0x69])],_0x165ac2=window[_0x356001([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d0641[_0x356001([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d0641[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d175f={..._0x2911a7,[_0x356001([0x6a,0x74,0x69])]:_0x4d0641[_0x356001([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d0641[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d175f[_0x356001([0x76,0x63])],_0x158427(_0x2d175f)==_0x165ac2;}}}async function _0x5608b8(){let _0x3ab451=!0x0;try{const _0x27a5b7=_0x2b45b3[_0x356001([0x73,0x70,0x6c,0x69,0x74])](_0x356001([0x2e])),[_0x1da0af,_0x460305,_0x113d13]=_0x27a5b7;return _0x1cc436(_0x1da0af),await _0x1c8df0(_0x1da0af,_0x460305,_0x113d13),_0x3ab451;}catch{return!0x1;}function _0x1cc436(_0x386deb){const _0x4fa07b=_0x59e666(_0x386deb);_0x4fa07b&&_0x4fa07b[_0x356001([0x61,0x6c,0x67])]==_0x356001([0x45,0x53,0x32,0x35,0x36])||(_0x3ab451=!0x1);}async function _0x1c8df0(_0xd3d8df,_0x3c2562,_0xd09037){const _0x9de752=window[_0x356001([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x356001([0x66,0x72,0x6f,0x6d])](_0x1bfeb1(_0xd09037),_0x2233bd=>_0x2233bd[_0x356001([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x410657=new window[(_0x356001([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x356001([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd3d8df+_0x356001([0x2e])+_0x3c2562),_0x54f5a1=window[_0x356001([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x356001([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54f5a1)return;const _0x10d241=await _0x54f5a1[_0x356001([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x356001([0x6a,0x77,0x6b]),_0x344365,{[_0x356001([0x6e,0x61,0x6d,0x65])]:_0x356001([0x45,0x43,0x44,0x53,0x41]),[_0x356001([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x356001([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x356001([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54f5a1[_0x356001([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x356001([0x6e,0x61,0x6d,0x65])]:_0x356001([0x45,0x43,0x44,0x53,0x41]),[_0x356001([0x68,0x61,0x73,0x68])]:{[_0x356001([0x6e,0x61,0x6d,0x65])]:_0x356001([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10d241,_0x9de752,_0x410657)||(_0x3ab451=!0x1);}}function _0x59e666(_0x14ddab){return _0x14ddab[_0x356001([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x356001([0x65,0x79]))?JSON[_0x356001([0x70,0x61,0x72,0x73,0x65])](_0x1bfeb1(_0x14ddab)):null;}function _0x1bfeb1(_0x53ee54){return window[_0x356001([0x61,0x74,0x6f,0x62])](_0x53ee54[_0x356001([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x356001([0x2b]))[_0x356001([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x356001([0x2f])));}function _0x158427(_0x266b00){let _0x3af9fb=0x1505;function _0xc154ff(_0x342e8f){for(let _0x3d4310=0x0;_0x3d4310<_0x342e8f[_0x356001([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d4310++){const _0x38bf2c=_0x342e8f[_0x356001([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d4310);_0x3af9fb=(_0x3af9fb<<0x5)+_0x3af9fb+_0x38bf2c,_0x3af9fb&=_0x3af9fb;}}function _0x320e5f(_0x43a428){Array[_0x356001([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43a428)?_0x43a428[_0x356001([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x320e5f):_0x43a428&&typeof _0x43a428==_0x356001([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x356001([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43a428)[_0x356001([0x73,0x6f,0x72,0x74])]()[_0x356001([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x9e8725,_0x59e71f])=>{_0xc154ff(_0x9e8725),_0x320e5f(_0x59e71f);}):_0xc154ff(window[_0x356001([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43a428));}return _0x320e5f(_0x266b00),_0x3af9fb>>>0x0;}function _0x2d3f90(_0x4a4ef7){return _0x4a4ef7[_0x356001([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x356001([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x356001([0x30]));}function _0x2d140c(_0x543769){return _0x543769[_0x356001([0x73,0x70,0x6c,0x69,0x74])]('')[_0x356001([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x356001([0x6a,0x6f,0x69,0x6e])]('');}function _0xfde4c4(){}function _0x356001(_0x4f79e3){return _0x4f79e3['map'](_0x7ef701=>String['fromCharCode'](_0x7ef701))['join']('');}_0xab2831(await _0x47647d());}(this);}}const y=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],g=['color','font-family','font-size'],h={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x3a9727=>Number(_0x3a9727)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function O(_0xebf22c){return y['includes'](_0xebf22c);}function E(_0x35e110){return Array['from'](_0x35e110['getStyleNames']())['filter'](O);}function F(_0x1919c9,_0x3050c1,_0x31ad83){const {spanStyles:_0x2c6e96,stylesToBeHtmlElements:_0x19ab60}=L(_0x1919c9,_0x31ad83);!function(_0x47dcb7,_0x2e1936,_0x3e1066){for(const _0x96903c in _0x3e1066){_0x3e1066[_0x96903c]['forEach'](([,_0x211927])=>{const _0x3aab57=_0x2e1936['createElement'](_0x211927,[],_0x47dcb7['getChildren']());_0x2e1936['insertChild'](0x0,_0x3aab57,_0x47dcb7);}),_0x2e1936['removeStyle'](_0x96903c,_0x47dcb7);}}(_0x1919c9,_0x3050c1,_0x19ab60),function(_0x479ef8,_0x440474,_0x1810ce){if(!Object['keys'](_0x1810ce)['length'])return;const _0x2da8e7=_0x440474['createElement']('span',[],_0x479ef8['getChildren']());_0x440474['setStyle'](_0x1810ce,_0x2da8e7),_0x440474['insertChild'](0x0,_0x2da8e7,_0x479ef8),_0x440474['removeStyle'](Object['keys'](_0x1810ce),_0x479ef8);}(_0x1919c9,_0x3050c1,_0x2c6e96);}function P(_0x45add2,_0x8a740b,_0x1a14ce){const {spanStyles:_0x78e34a}=L(_0x45add2,_0x1a14ce),_0x4ec7ac=Object['keys'](_0x78e34a);if(!_0x4ec7ac['length'])return;let _0x5be3c0=!0x1;for(const _0x541bf4 of _0x45add2['getChildren']())if(_0x541bf4['is']('element','span')){_0x5be3c0=!0x0;for(const [_0x2b007e,_0x40b2a6]of Object['entries'](_0x78e34a))_0x541bf4['hasStyle'](_0x2b007e)||_0x8a740b['setStyle']({[_0x2b007e]:_0x40b2a6},_0x541bf4);}_0x5be3c0&&_0x8a740b['removeStyle'](_0x4ec7ac,_0x45add2);}function L(_0x21e3a5,_0x28e8b4){const _0x516e6f={},_0x55e320={};return _0x28e8b4['forEach'](_0x5d499a=>{const _0x37f7d1=_0x21e3a5['getStyle'](_0x5d499a);if(_0x37f7d1){if(function(_0x45a6bb){return g['includes'](_0x45a6bb);}(_0x5d499a))_0x516e6f[_0x5d499a]=_0x37f7d1;else{if(function(_0x5a356f){return _0x5a356f in h;}(_0x5d499a)){const _0x4d15cc=_0x37f7d1['split']('\x20');h[_0x5d499a]['forEach'](([_0x4148b6,_0x4f76c5])=>{for(const _0x2c4b75 of _0x4d15cc){('function'==typeof _0x4148b6&&_0x4148b6(_0x2c4b75)||_0x4148b6===_0x2c4b75)&&(_0x55e320[_0x5d499a]=[..._0x55e320[_0x5d499a]||[],[_0x4148b6,_0x4f76c5]]);}});}}}}),{'spanStyles':_0x516e6f,'stylesToBeHtmlElements':_0x55e320};}class MSOfficeInlineStylePropagator extends _0x447a08{['execute'](_0x4b25b6){const _0x120e6e=new _0x643c1d(_0x4b25b6['content']['document']),_0x524acc=_0x120e6e['createRangeIn'](_0x4b25b6['content']),_0x354009=new _0x574e8d(_0x120e6e['document']['stylesProcessor']),_0x82ac87=[...new _0x73054f(_0x354009)['blockElements'],'font'],_0x3d7e2f=_0x524acc['getItems']();for(const _0x377bed of _0x3d7e2f)if(_0x377bed['is']('element')&&_0x82ac87['includes'](_0x377bed['name'])){if(_0x377bed['hasStyle']('mso-list')&&'none'!==_0x377bed['getStyle']('mso-list')){P(_0x377bed,_0x120e6e,E(_0x377bed));continue;}F(_0x377bed,_0x120e6e,E(_0x377bed));}}['isActive'](_0x3c3790){return super['isActive'](_0x3c3790)||u(_0x3c3790);}}class PasteFromOfficeEnhancedPropagator extends _0x5242e3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4d2a1b];}['init'](){const _0x59598c=this['editor'],_0x3441dc=_0x59598c['plugins']['get']('PasteFromOffice'),_0x559eb7=_0x59598c['editing']['view']['document'],_0x26e8c2=new MSOfficeInlineStylePropagator(_0x559eb7);_0x3441dc['registerNormalizer'](_0x26e8c2,_0x245a22['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x205d9e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x506360;for(const _0x1e8a71 in _0x205d9e){const _0x145c62=_0x1e8a71,_0x252513=_0x205d9e[_0x145c62];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x252513||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x252513||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x252513||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x252513||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x252513||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x252513||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x252513){delete _0x205d9e[_0x145c62],_0x506360=_0x252513,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x506360&&_0x205d9e['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x506360&&_0x205d9e['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x506360&&_0x205d9e['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x506360&&_0x205d9e['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x506360&&_0x205d9e['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x506360&&_0x205d9e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x5242e3{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4d2a1b,PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}export{PasteFromOfficeEnhanced};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
3
- "version": "48.2.0-alpha.2",
3
+ "version": "48.2.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.2.0-alpha.2",
35
- "@ckeditor/ckeditor5-core": "48.2.0-alpha.2",
36
- "@ckeditor/ckeditor5-engine": "48.2.0-alpha.2",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.2.0-alpha.2",
38
- "@ckeditor/ckeditor5-utils": "48.2.0-alpha.2"
34
+ "@ckeditor/ckeditor5-clipboard": "48.2.0-alpha.3",
35
+ "@ckeditor/ckeditor5-core": "48.2.0-alpha.3",
36
+ "@ckeditor/ckeditor5-engine": "48.2.0-alpha.3",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.2.0-alpha.3",
38
+ "@ckeditor/ckeditor5-utils": "48.2.0-alpha.3"
39
39
  },
40
40
  "files": [
41
41
  "dist",