@ckeditor/ckeditor5-paste-from-office-enhanced 48.0.0-alpha.9 → 48.0.1-alpha.0
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 _0x276f94}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x4c1b27,PasteFromOffice as _0x3df5fc,parsePasteOfficeHtml as _0x22c742}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x54d9ef,uid as _0x2b7011}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x118115,ViewDocument as _0xc237a6,ViewDomConverter as _0x425ccb}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x2b9a9b){return a['test'](_0x2b9a9b);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x325407,_0x7420c1){const _0x5c53f0=new Map();for(const [_0x1feb46,_0x3e2ce3]of _0x7420c1){if(!_0x1feb46['tagName']&&!_0x1feb46['className'])continue;const _0x3df427=!_0x1feb46['tagName']||_0x325407['name']===_0x1feb46['tagName'],_0x36c9ab=!_0x1feb46['className']||_0x325407['hasClass'](_0x1feb46['className']);_0x3df427&&_0x36c9ab&&_0x5c53f0['set'](_0x1feb46,_0x3e2ce3);}return _0x5c53f0;}function m(_0x5110e7){const _0x2ddedf={};for(let _0xbe579=0x0;_0xbe579<_0x5110e7['length'];_0xbe579++){const _0x58feb5=_0x5110e7[_0xbe579],_0x17ee35=_0x5110e7['getPropertyValue'](_0x58feb5);'initial'!==_0x17ee35&&(_0x2ddedf[_0x58feb5]=_0x17ee35);}return _0x2ddedf;}function p(_0x84d396){const _0x1a00c3=_0x84d396['split'](',')['map'](_0x113105=>_0x113105['trim']()),_0x454b6b=[];for(const _0x388098 of _0x1a00c3){const _0x210644=d['exec'](_0x388098);_0x210644&&_0x454b6b['push'](_0x210644['groups']);}return _0x454b6b;}function y(_0x5c7781){const _0x5b0c65={};for(const _0x44fc14 of _0x5c7781)Object['assign'](_0x5b0c65,_0x44fc14);return _0x5b0c65;}class h extends _0x4c1b27{['execute'](_0x3577c7){const {body:_0x233ce1,styles:_0x5e0e59}=_0x3577c7['_parsedData'],_0x5f2620=new _0x118115(_0x233ce1['document']),_0x652b43=_0x5f2620['createRangeIn'](_0x233ce1),_0x802b3e=function(_0x45d77d){const _0x35b205={};for(const _0x54f23a of _0x45d77d)for(const _0x51d78a of _0x54f23a['cssRules'])if(_0x51d78a instanceof CSSStyleRule){const _0x55ac90=m(_0x51d78a['style']);_0x35b205[_0x51d78a['selectorText']]=Object['assign']({},_0x35b205[_0x51d78a['selectorText']]||{},_0x55ac90);}return _0x35b205;}(_0x5e0e59),_0x4038cb=function(_0x11dc9d){const _0x509a2a=new Map();for(const _0x2da37d in _0x11dc9d){const _0x1dcc95=p(_0x2da37d),_0x1efa3a=_0x11dc9d[_0x2da37d];for(const _0x48d7e9 of _0x1dcc95)_0x509a2a['set'](_0x48d7e9,_0x1efa3a);}return _0x509a2a;}(_0x802b3e);for(const _0x2f333a of _0x652b43){if('elementStart'!==_0x2f333a['type'])continue;const _0x88473f=w(_0x2f333a['item'],_0x4038cb);if(_0x88473f['size']){const _0x22f90a=y(Array['from'](_0x88473f['values']()));for(const _0xecfdcf in _0x22f90a){const _0x785b2e=_0x2f333a['item'];_0x785b2e['hasStyle'](_0xecfdcf)||_0x5f2620['setStyle'](_0xecfdcf,_0x22f90a[_0xecfdcf],_0x785b2e);}}}_0x3577c7['content']=_0x233ce1;}['isActive'](_0x39a8b8){return super['isActive'](_0x39a8b8)||l(_0x39a8b8);}}class g extends _0x276f94{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3df5fc];}['init'](){const _0x354f26=this['editor'],_0x34b14e=_0x354f26['plugins']['get']('ClipboardPipeline'),_0x9e9e7e=_0x354f26['editing']['view']['document'],_0x1a32e9=new h(_0x9e9e7e);_0x34b14e['on']('inputTransformation',(_0x187bf9,_0x1186a2)=>{const _0x36b842=_0x1186a2['dataTransfer']['getData']('text/html');_0x1a32e9['isActive'](_0x36b842)&&(_0x1186a2['_parsedData']||(_0x1186a2['_parsedData']=_0x22c742(_0x36b842,_0x9e9e7e['stylesProcessor'])),_0x1a32e9['execute'](_0x1186a2));},{'priority':_0x54d9ef['get']('high')+0xb});}['afterInit'](){!async function(_0x238529){const _0x35af2c=_0x2d7c47([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]),_0x5a4bb7=0x7374585f,_0x2f7b78=0x7373ddff^_0x5a4bb7,_0x1d1c8b=window[_0x2d7c47([0x44,0x61,0x74,0x65])][_0x2d7c47([0x6e,0x6f,0x77])](),_0x549101=_0x238529[_0x2d7c47([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12a4a6=new window[(_0x2d7c47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12fbee=>{_0x549101[_0x2d7c47([0x6f,0x6e,0x63,0x65])](_0x2d7c47([0x72,0x65,0x61,0x64,0x79]),_0x12fbee);}),_0x4b0a00={[_0x2d7c47([0x6b,0x74,0x79])]:_0x2d7c47([0x45,0x43]),[_0x2d7c47([0x75,0x73,0x65])]:_0x2d7c47([0x73,0x69,0x67]),[_0x2d7c47([0x63,0x72,0x76])]:_0x2d7c47([0x50,0x2d,0x32,0x35,0x36]),[_0x2d7c47([0x78])]:_0x2d7c47([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]),[_0x2d7c47([0x79])]:_0x2d7c47([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]),[_0x2d7c47([0x61,0x6c,0x67])]:_0x2d7c47([0x45,0x53,0x32,0x35,0x36])},_0x1cef91=_0x549101[_0x2d7c47([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2d7c47([0x67,0x65,0x74])](_0x2d7c47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x138a7c(){let _0x101567,_0x385177=null,_0x149ff9=null;try{if(_0x1cef91==_0x2d7c47([0x47,0x50,0x4c]))return _0x2d7c47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x101567=_0x1192e7(),!_0x101567)return _0x2d7c47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x101567[_0x2d7c47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x149ff9=_0x2a88be(_0x101567[_0x2d7c47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x101567[_0x2d7c47([0x6a,0x74,0x69])])),await _0x3d5674()?_0x48e12b()?_0x4efdc7()?_0x2d7c47([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b22a0()?(_0x101567[_0x2d7c47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d7c47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x385177=_0x1be963(_0x2d7c47([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ac1d4()):_0x2d7c47([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2d7c47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2d7c47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2d7c47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4efdc7(){const _0x7a12e9=[_0x2d7c47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2d7c47([0x74,0x72,0x69,0x61,0x6c])][_0x2d7c47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x101567[_0x2d7c47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d1c8b/0x3e8:0xe10*_0x2f7b78;return _0x101567[_0x2d7c47([0x65,0x78,0x70])]<_0x7a12e9;}function _0x48e12b(){const _0x3fa486=_0x101567[_0x2d7c47([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3fa486&&(!!_0x3fa486[_0x2d7c47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d7c47([0x2a]))||(!!_0x3fa486[_0x2d7c47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d7c47([0x50,0x4f,0x45]))||(!!_0x3fa486[_0x2d7c47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d7c47([0x50,0x50]))||!(!_0x3fa486[_0x2d7c47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d7c47([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x3ac9bd()))));}function _0x2b22a0(){const _0x26babb=_0x101567[_0x2d7c47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26babb||0x0==_0x26babb[_0x2d7c47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x449ecd}=new URL(window[_0x2d7c47([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26babb[_0x2d7c47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x449ecd))return!0x0;const _0x53dfa6=_0x449ecd[_0x2d7c47([0x73,0x70,0x6c,0x69,0x74])](_0x2d7c47([0x2e]));return _0x26babb[_0x2d7c47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fdcc1=>_0x2fdcc1[_0x2d7c47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d7c47([0x2a])))[_0x2d7c47([0x6d,0x61,0x70])](_0x409304=>_0x409304[_0x2d7c47([0x73,0x70,0x6c,0x69,0x74])](_0x2d7c47([0x2e])))[_0x2d7c47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x546b8d=>_0x546b8d[_0x2d7c47([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53dfa6[_0x2d7c47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d7c47([0x6d,0x61,0x70])](_0x49588f=>Array(_0x53dfa6[_0x2d7c47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x49588f[_0x2d7c47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d7c47([0x66,0x69,0x6c,0x6c])](_0x49588f[0x0]===_0x2d7c47([0x2a])?_0x2d7c47([0x2a]):'')[_0x2d7c47([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x49588f))[_0x2d7c47([0x73,0x6f,0x6d,0x65])](_0x2818ff=>_0x53dfa6[_0x2d7c47([0x65,0x76,0x65,0x72,0x79])]((_0x19e4db,_0x224ef3)=>_0x2818ff[_0x224ef3]===_0x19e4db||_0x2818ff[_0x224ef3]===_0x2d7c47([0x2a])));}function _0x5ac1d4(){return _0x385177&&_0x149ff9?new window[(_0x2d7c47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x392ce8,_0x3fec23)=>{_0x385177[_0x2d7c47([0x74,0x68,0x65,0x6e])](_0x392ce8,_0x3fec23),_0x149ff9[_0x2d7c47([0x74,0x68,0x65,0x6e])](_0x520e1f=>{_0x520e1f!=_0x2d7c47([0x56,0x61,0x6c,0x69,0x64])&&_0x392ce8(_0x520e1f);},_0x3fec23);}):_0x385177||_0x149ff9||_0x2d7c47([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a88be(_0x4b94ea,_0x3f7b0e){return new window[(_0x2d7c47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46c151=>{if(_0x4eaa87())return _0x46c151(_0x2d7c47([0x56,0x61,0x6c,0x69,0x64]));_0x260ae6(),_0x549101[_0x2d7c47([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2d7c47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2bd138=!0x1;const _0x4ef4ee=_0x2b7011();function _0x2430ec(_0x530335){return!!_0x530335&&(typeof _0x530335===_0x2d7c47([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x530335===_0x2d7c47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x530335[_0x2d7c47([0x74,0x68,0x65,0x6e])]===_0x2d7c47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x530335[_0x2d7c47([0x63,0x61,0x74,0x63,0x68])]===_0x2d7c47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1ddbf6(_0x579096){_0xeda0b9(_0x579096)[_0x2d7c47([0x74,0x68,0x65,0x6e])](_0x11c491=>{if(!_0x11c491||_0x11c491[_0x2d7c47([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2d7c47([0x6f,0x6b]))return _0x2d7c47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc3ebba(_0x50b99c(_0x4ef4ee+_0x3f7b0e))!=_0x11c491[_0x2d7c47([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2d7c47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2d7c47([0x56,0x61,0x6c,0x69,0x64]);})[_0x2d7c47([0x74,0x68,0x65,0x6e])](_0x318e48=>(_0x2e8fc3(),_0x318e48),()=>{const _0x26f3df=_0x4323f1();return null==_0x26f3df?(_0x2e8fc3(),_0x2d7c47([0x56,0x61,0x6c,0x69,0x64])):_0x2d7c47(_0x1d1c8b-_0x26f3df>(0x5778dc5f^_0x5a4bb7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2d7c47([0x74,0x68,0x65,0x6e])](_0x46c151)[_0x2d7c47([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46c151(_0x2d7c47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc79b22=0x7342b6df^_0x5a4bb7;function _0x2e8fc3(){const _0x2752b0=_0x2d7c47([0x6c,0x6c,0x63,0x74,0x2d])+_0xc3ebba(_0x50b99c(_0x4b94ea)),_0x595633=_0xbd9da5(_0xc3ebba(window[_0x2d7c47([0x4d,0x61,0x74,0x68])][_0x2d7c47([0x63,0x65,0x69,0x6c])](_0x1d1c8b/_0xc79b22)));window[_0x2d7c47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d7c47([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2752b0,_0x595633);}function _0x4323f1(){const _0xa075fa=_0x2d7c47([0x6c,0x6c,0x63,0x74,0x2d])+_0xc3ebba(_0x50b99c(_0x4b94ea)),_0x303b31=window[_0x2d7c47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d7c47([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa075fa);return _0x303b31?window[_0x2d7c47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbd9da5(_0x303b31),0x10)*_0xc79b22:null;}function _0xeda0b9(_0x5887a2){return new window[(_0x2d7c47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x296e5c,_0xfe8858)=>{_0x5887a2[_0x2d7c47([0x74,0x68,0x65,0x6e])](_0x296e5c,_0xfe8858),window[_0x2d7c47([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xfe8858,0x73758c9f^_0x5a4bb7);});}}_0x549101[_0x2d7c47([0x6f,0x6e])](_0x2d7c47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4986a4,_0x4a6bdc)=>{if(_0x4a6bdc[0x0]!=_0x4b94ea)return _0x46c151(_0x2d7c47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a6bdc[0x1]={..._0x4a6bdc[0x1],[_0x2d7c47([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ef4ee};},{[_0x2d7c47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d7c47([0x68,0x69,0x67,0x68])}),_0x549101[_0x2d7c47([0x6f,0x6e])](_0x2d7c47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf0f313=>{_0x2430ec(_0xf0f313[_0x2d7c47([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2bd138=!0x0,_0x1ddbf6(_0xf0f313[_0x2d7c47([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2d7c47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d7c47([0x6c,0x6f,0x77])}),_0x12a4a6[_0x2d7c47([0x74,0x68,0x65,0x6e])](()=>{_0x2bd138||_0x46c151(_0x2d7c47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4eaa87(){return _0x549101[_0x2d7c47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d7c47([0x76,0x69,0x65,0x77])][_0x2d7c47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2d7c47([0x61,0x75,0x74,0x6f]);}function _0x260ae6(){_0x549101[_0x2d7c47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d7c47([0x76,0x69,0x65,0x77])][_0x2d7c47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d7c47([0x61,0x75,0x74,0x6f]);}}function _0x1be963(_0x4c070b){const _0x42824c=[new window[(_0x2d7c47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40fcd4=>setTimeout(_0x40fcd4,0x737d6693^_0x5a4bb7)),_0x12a4a6[_0x2d7c47([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2d7c47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e1a5b=>{let _0x4e5e00=0x0;_0x549101[_0x2d7c47([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d7c47([0x6f,0x6e])](_0x2d7c47([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b385e,_0x599ca4)=>{_0x599ca4[0x0][_0x2d7c47([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e5e00++,_0x4e5e00==(0x73745db7^_0x5a4bb7)&&(_0x3e1a5b(),_0x4b385e[_0x2d7c47([0x6f,0x66,0x66])]());});}))];return window[_0x2d7c47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d7c47([0x72,0x61,0x63,0x65])](_0x42824c)[_0x2d7c47([0x74,0x68,0x65,0x6e])](()=>_0x4c070b);}async function _0x3afdca(){await _0x12a4a6,_0x549101[_0x2d7c47([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d7c47([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2829c8,_0x549101[_0x2d7c47([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d7c47([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2829c8,_0x549101[_0x2d7c47([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2d7c47([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ac9bd(){return window[_0x2d7c47([0x67,0x6c,0x6f,0x62])]&&window[_0x2d7c47([0x67,0x6c,0x6f,0x62])][_0x2d7c47([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x727ef5(_0x813716){const _0x1a0cf7=_0x2d4dc7();_0x549101[_0x1a0cf7]=_0x2d7c47([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])+_0x813716,_0x813716!=_0x2d7c47([0x56,0x61,0x6c,0x69,0x64])&&_0x3afdca();}function _0x2d4dc7(){const _0x4d885c=window[_0x2d7c47([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2d7c47([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2d7c47([0x6e,0x6f,0x77])]())[_0x2d7c47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2d7c47([0x2e]),'');let _0x2c4964=_0x2d7c47([0x73]);for(let _0x7cb84b=0x0;_0x7cb84b<_0x4d885c[_0x2d7c47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7cb84b+=0x2){let _0x2c16a5=window[_0x2d7c47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d885c[_0x2d7c47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7cb84b,_0x7cb84b+0x2));_0x2c16a5>=_0x35af2c[_0x2d7c47([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2c16a5-=_0x35af2c[_0x2d7c47([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c4964+=_0x35af2c[_0x2c16a5];}return _0x2c4964;}function _0x1192e7(){const _0x3534c8=_0x1cef91[_0x2d7c47([0x73,0x70,0x6c,0x69,0x74])](_0x2d7c47([0x2e]));if(0x3!=_0x3534c8[_0x2d7c47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4eda68(_0x3534c8[0x1]);function _0x4eda68(_0xe1f54f){const _0x4e02bb=_0x581a10(_0xe1f54f);return _0x4e02bb&&_0x39bbc5()?_0x4e02bb:null;function _0x39bbc5(){const _0x3b1a93=_0x4e02bb[_0x2d7c47([0x6a,0x74,0x69])],_0x578608=window[_0x2d7c47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b1a93[_0x2d7c47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b1a93[_0x2d7c47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x25a064={..._0x4e02bb,[_0x2d7c47([0x6a,0x74,0x69])]:_0x3b1a93[_0x2d7c47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b1a93[_0x2d7c47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x25a064[_0x2d7c47([0x76,0x63])],_0x50b99c(_0x25a064)==_0x578608;}}}async function _0x3d5674(){let _0x17955a=!0x0;try{const _0x598f2c=_0x1cef91[_0x2d7c47([0x73,0x70,0x6c,0x69,0x74])](_0x2d7c47([0x2e])),[_0x4b4ad9,_0x30aac3,_0x429ec4]=_0x598f2c;return _0x1cfce3(_0x4b4ad9),await _0x24213c(_0x4b4ad9,_0x30aac3,_0x429ec4),_0x17955a;}catch{return!0x1;}function _0x1cfce3(_0x54126c){const _0x1c3cfb=_0x581a10(_0x54126c);_0x1c3cfb&&_0x1c3cfb[_0x2d7c47([0x61,0x6c,0x67])]==_0x2d7c47([0x45,0x53,0x32,0x35,0x36])||(_0x17955a=!0x1);}async function _0x24213c(_0x36fb2d,_0x20bef6,_0x3fd856){const _0x1279eb=window[_0x2d7c47([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2d7c47([0x66,0x72,0x6f,0x6d])](_0x2280af(_0x3fd856),_0x858507=>_0x858507[_0x2d7c47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xaea852=new window[(_0x2d7c47([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2d7c47([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36fb2d+_0x2d7c47([0x2e])+_0x20bef6),_0x5a01b1=window[_0x2d7c47([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2d7c47([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a01b1)return;const _0x204625=await _0x5a01b1[_0x2d7c47([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2d7c47([0x6a,0x77,0x6b]),_0x4b0a00,{[_0x2d7c47([0x6e,0x61,0x6d,0x65])]:_0x2d7c47([0x45,0x43,0x44,0x53,0x41]),[_0x2d7c47([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2d7c47([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2d7c47([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a01b1[_0x2d7c47([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2d7c47([0x6e,0x61,0x6d,0x65])]:_0x2d7c47([0x45,0x43,0x44,0x53,0x41]),[_0x2d7c47([0x68,0x61,0x73,0x68])]:{[_0x2d7c47([0x6e,0x61,0x6d,0x65])]:_0x2d7c47([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x204625,_0x1279eb,_0xaea852)||(_0x17955a=!0x1);}}function _0x581a10(_0x4322bd){return _0x4322bd[_0x2d7c47([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2d7c47([0x65,0x79]))?JSON[_0x2d7c47([0x70,0x61,0x72,0x73,0x65])](_0x2280af(_0x4322bd)):null;}function _0x2280af(_0x21ca4f){return window[_0x2d7c47([0x61,0x74,0x6f,0x62])](_0x21ca4f[_0x2d7c47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2d7c47([0x2b]))[_0x2d7c47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2d7c47([0x2f])));}function _0x50b99c(_0x25bd0a){let _0x3ad020=0x1505;function _0x4d5024(_0x2c419b){for(let _0x1f8504=0x0;_0x1f8504<_0x2c419b[_0x2d7c47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f8504++){const _0xae2c07=_0x2c419b[_0x2d7c47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f8504);_0x3ad020=(_0x3ad020<<0x5)+_0x3ad020+_0xae2c07,_0x3ad020&=_0x3ad020;}}function _0x1c1169(_0x4ea2f8){Array[_0x2d7c47([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ea2f8)?_0x4ea2f8[_0x2d7c47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1c1169):_0x4ea2f8&&typeof _0x4ea2f8==_0x2d7c47([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2d7c47([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ea2f8)[_0x2d7c47([0x73,0x6f,0x72,0x74])]()[_0x2d7c47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3cd6ea,_0x54dc72])=>{_0x4d5024(_0x3cd6ea),_0x1c1169(_0x54dc72);}):_0x4d5024(window[_0x2d7c47([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ea2f8));}return _0x1c1169(_0x25bd0a),_0x3ad020>>>0x0;}function _0xc3ebba(_0x5b8943){return _0x5b8943[_0x2d7c47([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2d7c47([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2d7c47([0x30]));}function _0xbd9da5(_0x1b805b){return _0x1b805b[_0x2d7c47([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2d7c47([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2d7c47([0x6a,0x6f,0x69,0x6e])]('');}function _0x2829c8(){}function _0x2d7c47(_0x5a02b3){return _0x5a02b3['map'](_0x33579c=>String['fromCharCode'](_0x33579c))['join']('');}_0x727ef5(await _0x138a7c());}(this);}}const O=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],E=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x3e655a=>Number(_0x3e655a)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function x(_0x17fd6f){return O['includes'](_0x17fd6f);}function F(_0x599edd){return Array['from'](_0x599edd['getStyleNames']())['filter'](x);}function K(_0x5b517d,_0x569552,_0xaaa351){const {spanStyles:_0x22d5a6,stylesToBeHtmlElements:_0x2753af}=function(_0x4dbaab,_0x52cd36){const _0x5e4fb6={},_0x34a37a={};return _0x52cd36['forEach'](_0xc8d06a=>{const _0x153b74=_0x4dbaab['getStyle'](_0xc8d06a);if(_0x153b74){if(function(_0x225b57){return E['includes'](_0x225b57);}(_0xc8d06a))_0x5e4fb6[_0xc8d06a]=_0x153b74;else{if(function(_0x33dcbb){return _0x33dcbb in L;}(_0xc8d06a)){const _0x12128c=_0x153b74['split']('\x20');L[_0xc8d06a]['forEach'](([_0x243fc8,_0x41a4f4])=>{for(const _0x3e3ae4 of _0x12128c){('function'==typeof _0x243fc8&&_0x243fc8(_0x3e3ae4)||_0x243fc8===_0x3e3ae4)&&(_0x34a37a[_0xc8d06a]=[..._0x34a37a[_0xc8d06a]||[],[_0x243fc8,_0x41a4f4]]);}});}}}}),{'spanStyles':_0x5e4fb6,'stylesToBeHtmlElements':_0x34a37a};}(_0x5b517d,_0xaaa351);!function(_0x1750c1,_0x223857,_0x32b85b){for(const _0x348855 in _0x32b85b){_0x32b85b[_0x348855]['forEach'](([,_0x548a5b])=>{const _0x41028d=_0x223857['createElement'](_0x548a5b,[],_0x1750c1['getChildren']());_0x223857['insertChild'](0x0,_0x41028d,_0x1750c1);}),_0x223857['removeStyle'](_0x348855,_0x1750c1);}}(_0x5b517d,_0x569552,_0x2753af),function(_0x1ae650,_0x3536b5,_0x302ef7){if(!Object['keys'](_0x302ef7)['length'])return;const _0x234194=_0x3536b5['createElement']('span',[],_0x1ae650['getChildren']());_0x3536b5['setStyle'](_0x302ef7,_0x234194),_0x3536b5['insertChild'](0x0,_0x234194,_0x1ae650),_0x3536b5['removeStyle'](Object['keys'](_0x302ef7),_0x1ae650);}(_0x5b517d,_0x569552,_0x22d5a6);}class P extends _0x4c1b27{['execute'](_0x5e91d4){const {body:_0x165423}=_0x5e91d4['_parsedData'],_0x3b2b68=new _0x118115(_0x165423['document']),_0x2c3a27=_0x3b2b68['createRangeIn'](_0x165423),_0x2e40b7=new _0xc237a6(_0x3b2b68['document']['stylesProcessor']),_0x5784f4=[...new _0x425ccb(_0x2e40b7)['blockElements'],'font'],_0x4933f9=_0x2c3a27['getItems']();for(const _0x2bb831 of _0x4933f9)_0x2bb831['is']('element')&&_0x5784f4['includes'](_0x2bb831['name'])&&K(_0x2bb831,_0x3b2b68,F(_0x2bb831));_0x5e91d4['content']=_0x165423;}['isActive'](_0x17be0f){return super['isActive'](_0x17be0f)||l(_0x17be0f);}}class b extends _0x276f94{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3df5fc];}['init'](){const _0x55c72c=this['editor'],_0x435d5b=_0x55c72c['plugins']['get']('ClipboardPipeline'),_0x231fbb=_0x55c72c['editing']['view']['document'],_0x3c6e87=new P(_0x231fbb);_0x435d5b['on']('inputTransformation',(_0x429544,_0x2c58bc)=>{const _0x23c8c7=_0x2c58bc['dataTransfer']['getData']('text/html');_0x3c6e87['isActive'](_0x23c8c7)&&(_0x2c58bc['_parsedData']||(_0x2c58bc['_parsedData']=_0x22c742(_0x23c8c7,_0x231fbb['stylesProcessor'])),_0x3c6e87['execute'](_0x2c58bc));},{'priority':_0x54d9ef['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x379670=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ca025;for(const _0x2ae27d in _0x379670){const _0x59fe8e=_0x2ae27d,_0x2b363e=_0x379670[_0x59fe8e];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x2b363e||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x2b363e||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x2b363e||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x2b363e||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x2b363e||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x2b363e||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x2b363e){delete _0x379670[_0x59fe8e],_0x4ca025=_0x2b363e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4ca025&&_0x379670['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4ca025&&_0x379670['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4ca025&&_0x379670['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4ca025&&_0x379670['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4ca025&&_0x379670['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4ca025&&_0x379670['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class v extends _0x276f94{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3df5fc,g,b];}}export{v as PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x36c9e9}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x3f3690,PasteFromOffice as _0x37f0d0,parsePasteOfficeHtml as _0x134639}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x1f2faf,uid as _0x1e5881}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x23d95c,ViewDocument as _0xadfcf5,ViewDomConverter as _0x1d0131}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x314a4d){return a['test'](_0x314a4d);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x3d430c,_0x5b9b34){const _0x30e83c=new Map();for(const [_0x430587,_0x4a558f]of _0x5b9b34){if(!_0x430587['tagName']&&!_0x430587['className'])continue;const _0x54217c=!_0x430587['tagName']||_0x3d430c['name']===_0x430587['tagName'],_0x4024f2=!_0x430587['className']||_0x3d430c['hasClass'](_0x430587['className']);_0x54217c&&_0x4024f2&&_0x30e83c['set'](_0x430587,_0x4a558f);}return _0x30e83c;}function m(_0x1f4b1b){const _0x42c56b={};for(let _0x164df3=0x0;_0x164df3<_0x1f4b1b['length'];_0x164df3++){const _0x42029d=_0x1f4b1b[_0x164df3],_0x7a8458=_0x1f4b1b['getPropertyValue'](_0x42029d);'initial'!==_0x7a8458&&(_0x42c56b[_0x42029d]=_0x7a8458);}return _0x42c56b;}function p(_0x4dbbab){const _0x380098=_0x4dbbab['split'](',')['map'](_0x36b323=>_0x36b323['trim']()),_0x4e6a65=[];for(const _0x60c169 of _0x380098){const _0x3be635=d['exec'](_0x60c169);_0x3be635&&_0x4e6a65['push'](_0x3be635['groups']);}return _0x4e6a65;}function y(_0x3c5c6b){const _0x373d19={};for(const _0x1e1c5d of _0x3c5c6b)Object['assign'](_0x373d19,_0x1e1c5d);return _0x373d19;}class h extends _0x3f3690{['execute'](_0xfa3242){const {body:_0x5f41ca,styles:_0x4d1ed4}=_0xfa3242['_parsedData'],_0x2b3e1b=new _0x23d95c(_0x5f41ca['document']),_0xe99a2a=_0x2b3e1b['createRangeIn'](_0x5f41ca),_0x164dfc=function(_0x5326e2){const _0x268aa1={};for(const _0x3cd57e of _0x5326e2)for(const _0x30db1a of _0x3cd57e['cssRules'])if(_0x30db1a instanceof CSSStyleRule){const _0x41d3a9=m(_0x30db1a['style']);_0x268aa1[_0x30db1a['selectorText']]=Object['assign']({},_0x268aa1[_0x30db1a['selectorText']]||{},_0x41d3a9);}return _0x268aa1;}(_0x4d1ed4),_0x388563=function(_0x52a82e){const _0x5a855c=new Map();for(const _0x44dd2d in _0x52a82e){const _0x54bcd5=p(_0x44dd2d),_0x1f67a3=_0x52a82e[_0x44dd2d];for(const _0x9b2cca of _0x54bcd5)_0x5a855c['set'](_0x9b2cca,_0x1f67a3);}return _0x5a855c;}(_0x164dfc);for(const _0x36817a of _0xe99a2a){if('elementStart'!==_0x36817a['type'])continue;const _0xc2ad32=w(_0x36817a['item'],_0x388563);if(_0xc2ad32['size']){const _0x59e7a2=y(Array['from'](_0xc2ad32['values']()));for(const _0x1f2702 in _0x59e7a2){const _0x3bf77e=_0x36817a['item'];_0x3bf77e['hasStyle'](_0x1f2702)||_0x2b3e1b['setStyle'](_0x1f2702,_0x59e7a2[_0x1f2702],_0x3bf77e);}}}_0xfa3242['content']=_0x5f41ca;}['isActive'](_0x4e0952){return super['isActive'](_0x4e0952)||l(_0x4e0952);}}class g extends _0x36c9e9{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x37f0d0];}['init'](){const _0x3d17c0=this['editor'],_0x296a88=_0x3d17c0['plugins']['get']('ClipboardPipeline'),_0x9316c9=_0x3d17c0['editing']['view']['document'],_0x2b57fc=new h(_0x9316c9);_0x296a88['on']('inputTransformation',(_0x213bc1,_0x579ac5)=>{const _0x1abee4=_0x579ac5['dataTransfer']['getData']('text/html');_0x2b57fc['isActive'](_0x1abee4)&&(_0x579ac5['_parsedData']||(_0x579ac5['_parsedData']=_0x134639(_0x1abee4,_0x9316c9['stylesProcessor'])),_0x2b57fc['execute'](_0x579ac5));},{'priority':_0x1f2faf['get']('high')+0xb});}['afterInit'](){!async function(_0x24a26b){const _0x46ef23=_0x38dec1([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]),_0x389014=0x7374585f,_0x549cc6=0x7373dfbf^_0x389014,_0x5899a7=window[_0x38dec1([0x44,0x61,0x74,0x65])][_0x38dec1([0x6e,0x6f,0x77])](),_0x353b44=_0x24a26b[_0x38dec1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xba0fcd=new window[(_0x38dec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a24b2=>{_0x353b44[_0x38dec1([0x6f,0x6e,0x63,0x65])](_0x38dec1([0x72,0x65,0x61,0x64,0x79]),_0x1a24b2);}),_0x13978e={[_0x38dec1([0x6b,0x74,0x79])]:_0x38dec1([0x45,0x43]),[_0x38dec1([0x75,0x73,0x65])]:_0x38dec1([0x73,0x69,0x67]),[_0x38dec1([0x63,0x72,0x76])]:_0x38dec1([0x50,0x2d,0x32,0x35,0x36]),[_0x38dec1([0x78])]:_0x38dec1([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]),[_0x38dec1([0x79])]:_0x38dec1([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]),[_0x38dec1([0x61,0x6c,0x67])]:_0x38dec1([0x45,0x53,0x32,0x35,0x36])},_0x2040c7=_0x353b44[_0x38dec1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38dec1([0x67,0x65,0x74])](_0x38dec1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46d3ef(){let _0x13b19b,_0x3b1b05=null,_0x3ffa4c=null;try{if(_0x2040c7==_0x38dec1([0x47,0x50,0x4c]))return _0x38dec1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x13b19b=_0x36e411(),!_0x13b19b)return _0x38dec1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x13b19b[_0x38dec1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3ffa4c=_0x5ccdef(_0x13b19b[_0x38dec1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x13b19b[_0x38dec1([0x6a,0x74,0x69])])),await _0x3f7016()?_0x4d4124()?_0x5b27d8()?_0x38dec1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4aabed()?(_0x13b19b[_0x38dec1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38dec1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b1b05=_0x233031(_0x38dec1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x492729()):_0x38dec1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38dec1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38dec1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x38dec1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5b27d8(){const _0x591ac7=[_0x38dec1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38dec1([0x74,0x72,0x69,0x61,0x6c])][_0x38dec1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13b19b[_0x38dec1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5899a7/0x3e8:0xe10*_0x549cc6;return _0x13b19b[_0x38dec1([0x65,0x78,0x70])]<_0x591ac7;}function _0x4d4124(){const _0x1b912f=_0x13b19b[_0x38dec1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b912f&&(!!_0x1b912f[_0x38dec1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38dec1([0x2a]))||(!!_0x1b912f[_0x38dec1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38dec1([0x50,0x4f,0x45]))||(!!_0x1b912f[_0x38dec1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38dec1([0x50,0x50]))||!(!_0x1b912f[_0x38dec1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38dec1([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x2bc82f()))));}function _0x4aabed(){const _0x5f2d56=_0x13b19b[_0x38dec1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5f2d56||0x0==_0x5f2d56[_0x38dec1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x39adf1}=new URL(window[_0x38dec1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5f2d56[_0x38dec1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39adf1))return!0x0;const _0x289312=_0x39adf1[_0x38dec1([0x73,0x70,0x6c,0x69,0x74])](_0x38dec1([0x2e]));return _0x5f2d56[_0x38dec1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xde94c=>_0xde94c[_0x38dec1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38dec1([0x2a])))[_0x38dec1([0x6d,0x61,0x70])](_0x324b0f=>_0x324b0f[_0x38dec1([0x73,0x70,0x6c,0x69,0x74])](_0x38dec1([0x2e])))[_0x38dec1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c66df=>_0x5c66df[_0x38dec1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x289312[_0x38dec1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38dec1([0x6d,0x61,0x70])](_0x5ec2e0=>Array(_0x289312[_0x38dec1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5ec2e0[_0x38dec1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38dec1([0x66,0x69,0x6c,0x6c])](_0x5ec2e0[0x0]===_0x38dec1([0x2a])?_0x38dec1([0x2a]):'')[_0x38dec1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5ec2e0))[_0x38dec1([0x73,0x6f,0x6d,0x65])](_0xf52637=>_0x289312[_0x38dec1([0x65,0x76,0x65,0x72,0x79])]((_0x705f37,_0xe3b23b)=>_0xf52637[_0xe3b23b]===_0x705f37||_0xf52637[_0xe3b23b]===_0x38dec1([0x2a])));}function _0x492729(){return _0x3b1b05&&_0x3ffa4c?new window[(_0x38dec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34cd4c,_0xb6f4ae)=>{_0x3b1b05[_0x38dec1([0x74,0x68,0x65,0x6e])](_0x34cd4c,_0xb6f4ae),_0x3ffa4c[_0x38dec1([0x74,0x68,0x65,0x6e])](_0xbc9ef5=>{_0xbc9ef5!=_0x38dec1([0x56,0x61,0x6c,0x69,0x64])&&_0x34cd4c(_0xbc9ef5);},_0xb6f4ae);}):_0x3b1b05||_0x3ffa4c||_0x38dec1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ccdef(_0x31a79b,_0x202ec5){return new window[(_0x38dec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x233b86=>{if(_0x5bc12e())return _0x233b86(_0x38dec1([0x56,0x61,0x6c,0x69,0x64]));_0x592249(),_0x353b44[_0x38dec1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38dec1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x45eff5=!0x1;const _0x4b9152=_0x1e5881();function _0x1cd786(_0x60e475){return!!_0x60e475&&(typeof _0x60e475===_0x38dec1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x60e475===_0x38dec1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x60e475[_0x38dec1([0x74,0x68,0x65,0x6e])]===_0x38dec1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x60e475[_0x38dec1([0x63,0x61,0x74,0x63,0x68])]===_0x38dec1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xca7bfa(_0x1eb120){_0xda62f7(_0x1eb120)[_0x38dec1([0x74,0x68,0x65,0x6e])](_0x141894=>{if(!_0x141894||_0x141894[_0x38dec1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38dec1([0x6f,0x6b]))return _0x38dec1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e4116(_0x23743a(_0x4b9152+_0x202ec5))!=_0x141894[_0x38dec1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38dec1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38dec1([0x56,0x61,0x6c,0x69,0x64]);})[_0x38dec1([0x74,0x68,0x65,0x6e])](_0x11c0e7=>(_0xd04aac(),_0x11c0e7),()=>{const _0x1cabbd=_0x3c365b();return null==_0x1cabbd?(_0xd04aac(),_0x38dec1([0x56,0x61,0x6c,0x69,0x64])):_0x38dec1(_0x5899a7-_0x1cabbd>(0x5778dc5f^_0x389014)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38dec1([0x74,0x68,0x65,0x6e])](_0x233b86)[_0x38dec1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x233b86(_0x38dec1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e1aab=0x7342b6df^_0x389014;function _0xd04aac(){const _0x19ef7c=_0x38dec1([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4116(_0x23743a(_0x31a79b)),_0x4dd557=_0x1d251a(_0x3e4116(window[_0x38dec1([0x4d,0x61,0x74,0x68])][_0x38dec1([0x63,0x65,0x69,0x6c])](_0x5899a7/_0x1e1aab)));window[_0x38dec1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38dec1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19ef7c,_0x4dd557);}function _0x3c365b(){const _0x274e39=_0x38dec1([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4116(_0x23743a(_0x31a79b)),_0x15fcce=window[_0x38dec1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38dec1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x274e39);return _0x15fcce?window[_0x38dec1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d251a(_0x15fcce),0x10)*_0x1e1aab:null;}function _0xda62f7(_0x2b2478){return new window[(_0x38dec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56fb56,_0x49fb88)=>{_0x2b2478[_0x38dec1([0x74,0x68,0x65,0x6e])](_0x56fb56,_0x49fb88),window[_0x38dec1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49fb88,0x73758c9f^_0x389014);});}}_0x353b44[_0x38dec1([0x6f,0x6e])](_0x38dec1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3fd22c,_0x345c30)=>{if(_0x345c30[0x0]!=_0x31a79b)return _0x233b86(_0x38dec1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x345c30[0x1]={..._0x345c30[0x1],[_0x38dec1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b9152};},{[_0x38dec1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38dec1([0x68,0x69,0x67,0x68])}),_0x353b44[_0x38dec1([0x6f,0x6e])](_0x38dec1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3cc72b=>{_0x1cd786(_0x3cc72b[_0x38dec1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x45eff5=!0x0,_0xca7bfa(_0x3cc72b[_0x38dec1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38dec1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38dec1([0x6c,0x6f,0x77])}),_0xba0fcd[_0x38dec1([0x74,0x68,0x65,0x6e])](()=>{_0x45eff5||_0x233b86(_0x38dec1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5bc12e(){return _0x353b44[_0x38dec1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38dec1([0x76,0x69,0x65,0x77])][_0x38dec1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38dec1([0x61,0x75,0x74,0x6f]);}function _0x592249(){_0x353b44[_0x38dec1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38dec1([0x76,0x69,0x65,0x77])][_0x38dec1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38dec1([0x61,0x75,0x74,0x6f]);}}function _0x233031(_0x4f7c80){const _0x524587=[new window[(_0x38dec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20b185=>setTimeout(_0x20b185,0x737d6693^_0x389014)),_0xba0fcd[_0x38dec1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38dec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4da660=>{let _0x27ec43=0x0;_0x353b44[_0x38dec1([0x6d,0x6f,0x64,0x65,0x6c])][_0x38dec1([0x6f,0x6e])](_0x38dec1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x30703e,_0x2c7733)=>{_0x2c7733[0x0][_0x38dec1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x27ec43++,_0x27ec43==(0x73745db7^_0x389014)&&(_0x4da660(),_0x30703e[_0x38dec1([0x6f,0x66,0x66])]());});}))];return window[_0x38dec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38dec1([0x72,0x61,0x63,0x65])](_0x524587)[_0x38dec1([0x74,0x68,0x65,0x6e])](()=>_0x4f7c80);}async function _0x3031e5(){await _0xba0fcd,_0x353b44[_0x38dec1([0x6d,0x6f,0x64,0x65,0x6c])][_0x38dec1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x136826,_0x353b44[_0x38dec1([0x6d,0x6f,0x64,0x65,0x6c])][_0x38dec1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x136826,_0x353b44[_0x38dec1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38dec1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2bc82f(){return window[_0x38dec1([0x67,0x6c,0x6f,0x62])]&&window[_0x38dec1([0x67,0x6c,0x6f,0x62])][_0x38dec1([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x7965eb(_0x3b36bb){const _0xd6cd9e=_0x55dc73();_0x353b44[_0xd6cd9e]=_0x38dec1([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])+_0x3b36bb,_0x3b36bb!=_0x38dec1([0x56,0x61,0x6c,0x69,0x64])&&_0x3031e5();}function _0x55dc73(){const _0xb04735=window[_0x38dec1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38dec1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38dec1([0x6e,0x6f,0x77])]())[_0x38dec1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38dec1([0x2e]),'');let _0x4a24dc=_0x38dec1([0x73]);for(let _0x23356c=0x0;_0x23356c<_0xb04735[_0x38dec1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23356c+=0x2){let _0x1c8d0c=window[_0x38dec1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb04735[_0x38dec1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23356c,_0x23356c+0x2));_0x1c8d0c>=_0x46ef23[_0x38dec1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1c8d0c-=_0x46ef23[_0x38dec1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a24dc+=_0x46ef23[_0x1c8d0c];}return _0x4a24dc;}function _0x36e411(){const _0x17c452=_0x2040c7[_0x38dec1([0x73,0x70,0x6c,0x69,0x74])](_0x38dec1([0x2e]));if(0x3!=_0x17c452[_0x38dec1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x20284a(_0x17c452[0x1]);function _0x20284a(_0xd94d1c){const _0x320b60=_0x4a6fa0(_0xd94d1c);return _0x320b60&&_0x1a8974()?_0x320b60:null;function _0x1a8974(){const _0xf8ef0e=_0x320b60[_0x38dec1([0x6a,0x74,0x69])],_0x21d6e5=window[_0x38dec1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf8ef0e[_0x38dec1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf8ef0e[_0x38dec1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x25a19d={..._0x320b60,[_0x38dec1([0x6a,0x74,0x69])]:_0xf8ef0e[_0x38dec1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf8ef0e[_0x38dec1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x25a19d[_0x38dec1([0x76,0x63])],_0x23743a(_0x25a19d)==_0x21d6e5;}}}async function _0x3f7016(){let _0x1b492c=!0x0;try{const _0xa3601a=_0x2040c7[_0x38dec1([0x73,0x70,0x6c,0x69,0x74])](_0x38dec1([0x2e])),[_0x449cdb,_0x3c7deb,_0x369ad8]=_0xa3601a;return _0x435de2(_0x449cdb),await _0x208163(_0x449cdb,_0x3c7deb,_0x369ad8),_0x1b492c;}catch{return!0x1;}function _0x435de2(_0x203232){const _0x313cbe=_0x4a6fa0(_0x203232);_0x313cbe&&_0x313cbe[_0x38dec1([0x61,0x6c,0x67])]==_0x38dec1([0x45,0x53,0x32,0x35,0x36])||(_0x1b492c=!0x1);}async function _0x208163(_0x2aaf36,_0x13ce61,_0x4a252f){const _0xa55bc0=window[_0x38dec1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38dec1([0x66,0x72,0x6f,0x6d])](_0x900ae7(_0x4a252f),_0x2d2be0=>_0x2d2be0[_0x38dec1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x194c29=new window[(_0x38dec1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38dec1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2aaf36+_0x38dec1([0x2e])+_0x13ce61),_0x360cff=window[_0x38dec1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38dec1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x360cff)return;const _0x8697b4=await _0x360cff[_0x38dec1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38dec1([0x6a,0x77,0x6b]),_0x13978e,{[_0x38dec1([0x6e,0x61,0x6d,0x65])]:_0x38dec1([0x45,0x43,0x44,0x53,0x41]),[_0x38dec1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38dec1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38dec1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x360cff[_0x38dec1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38dec1([0x6e,0x61,0x6d,0x65])]:_0x38dec1([0x45,0x43,0x44,0x53,0x41]),[_0x38dec1([0x68,0x61,0x73,0x68])]:{[_0x38dec1([0x6e,0x61,0x6d,0x65])]:_0x38dec1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8697b4,_0xa55bc0,_0x194c29)||(_0x1b492c=!0x1);}}function _0x4a6fa0(_0x2d122d){return _0x2d122d[_0x38dec1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38dec1([0x65,0x79]))?JSON[_0x38dec1([0x70,0x61,0x72,0x73,0x65])](_0x900ae7(_0x2d122d)):null;}function _0x900ae7(_0x480b24){return window[_0x38dec1([0x61,0x74,0x6f,0x62])](_0x480b24[_0x38dec1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38dec1([0x2b]))[_0x38dec1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38dec1([0x2f])));}function _0x23743a(_0x3fdc16){let _0x50cd98=0x1505;function _0x5cee53(_0x5710ee){for(let _0x59bce2=0x0;_0x59bce2<_0x5710ee[_0x38dec1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59bce2++){const _0x3ef230=_0x5710ee[_0x38dec1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x59bce2);_0x50cd98=(_0x50cd98<<0x5)+_0x50cd98+_0x3ef230,_0x50cd98&=_0x50cd98;}}function _0x14ae5a(_0x19dbfa){Array[_0x38dec1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19dbfa)?_0x19dbfa[_0x38dec1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14ae5a):_0x19dbfa&&typeof _0x19dbfa==_0x38dec1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38dec1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19dbfa)[_0x38dec1([0x73,0x6f,0x72,0x74])]()[_0x38dec1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x255be1,_0x2478a1])=>{_0x5cee53(_0x255be1),_0x14ae5a(_0x2478a1);}):_0x5cee53(window[_0x38dec1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19dbfa));}return _0x14ae5a(_0x3fdc16),_0x50cd98>>>0x0;}function _0x3e4116(_0x43a8a2){return _0x43a8a2[_0x38dec1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38dec1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38dec1([0x30]));}function _0x1d251a(_0x44f12b){return _0x44f12b[_0x38dec1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38dec1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38dec1([0x6a,0x6f,0x69,0x6e])]('');}function _0x136826(){}function _0x38dec1(_0x125915){return _0x125915['map'](_0x32df77=>String['fromCharCode'](_0x32df77))['join']('');}_0x7965eb(await _0x46d3ef());}(this);}}const O=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],E=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x1042d3=>Number(_0x1042d3)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function x(_0x286049){return O['includes'](_0x286049);}function F(_0x472a3e){return Array['from'](_0x472a3e['getStyleNames']())['filter'](x);}function K(_0x451102,_0x7f04e8,_0x257c30){const {spanStyles:_0x5381f0,stylesToBeHtmlElements:_0x158cb7}=function(_0x1fe3b0,_0x4ca184){const _0x3788a9={},_0x5c7489={};return _0x4ca184['forEach'](_0x574b9b=>{const _0x53e757=_0x1fe3b0['getStyle'](_0x574b9b);if(_0x53e757){if(function(_0x265e41){return E['includes'](_0x265e41);}(_0x574b9b))_0x3788a9[_0x574b9b]=_0x53e757;else{if(function(_0x2bc907){return _0x2bc907 in L;}(_0x574b9b)){const _0xd34005=_0x53e757['split']('\x20');L[_0x574b9b]['forEach'](([_0x5d0639,_0x32041b])=>{for(const _0x163532 of _0xd34005){('function'==typeof _0x5d0639&&_0x5d0639(_0x163532)||_0x5d0639===_0x163532)&&(_0x5c7489[_0x574b9b]=[..._0x5c7489[_0x574b9b]||[],[_0x5d0639,_0x32041b]]);}});}}}}),{'spanStyles':_0x3788a9,'stylesToBeHtmlElements':_0x5c7489};}(_0x451102,_0x257c30);!function(_0x11862d,_0x38b049,_0x322a5b){for(const _0x53db73 in _0x322a5b){_0x322a5b[_0x53db73]['forEach'](([,_0x599dfd])=>{const _0x2c2e5d=_0x38b049['createElement'](_0x599dfd,[],_0x11862d['getChildren']());_0x38b049['insertChild'](0x0,_0x2c2e5d,_0x11862d);}),_0x38b049['removeStyle'](_0x53db73,_0x11862d);}}(_0x451102,_0x7f04e8,_0x158cb7),function(_0x4c5411,_0xbcf32c,_0x510c2a){if(!Object['keys'](_0x510c2a)['length'])return;const _0x43ba76=_0xbcf32c['createElement']('span',[],_0x4c5411['getChildren']());_0xbcf32c['setStyle'](_0x510c2a,_0x43ba76),_0xbcf32c['insertChild'](0x0,_0x43ba76,_0x4c5411),_0xbcf32c['removeStyle'](Object['keys'](_0x510c2a),_0x4c5411);}(_0x451102,_0x7f04e8,_0x5381f0);}class P extends _0x3f3690{['execute'](_0x50c315){const {body:_0x342e0d}=_0x50c315['_parsedData'],_0x2233ee=new _0x23d95c(_0x342e0d['document']),_0x334f4c=_0x2233ee['createRangeIn'](_0x342e0d),_0x216bd1=new _0xadfcf5(_0x2233ee['document']['stylesProcessor']),_0x375971=[...new _0x1d0131(_0x216bd1)['blockElements'],'font'],_0x2bf1bd=_0x334f4c['getItems']();for(const _0x28dce6 of _0x2bf1bd)_0x28dce6['is']('element')&&_0x375971['includes'](_0x28dce6['name'])&&K(_0x28dce6,_0x2233ee,F(_0x28dce6));_0x50c315['content']=_0x342e0d;}['isActive'](_0x3b8f7e){return super['isActive'](_0x3b8f7e)||l(_0x3b8f7e);}}class b extends _0x36c9e9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x37f0d0];}['init'](){const _0x3a8513=this['editor'],_0x3e460a=_0x3a8513['plugins']['get']('ClipboardPipeline'),_0x4d8724=_0x3a8513['editing']['view']['document'],_0x50e95a=new P(_0x4d8724);_0x3e460a['on']('inputTransformation',(_0x59fa32,_0x2e2436)=>{const _0x490ad9=_0x2e2436['dataTransfer']['getData']('text/html');_0x50e95a['isActive'](_0x490ad9)&&(_0x2e2436['_parsedData']||(_0x2e2436['_parsedData']=_0x134639(_0x490ad9,_0x4d8724['stylesProcessor'])),_0x50e95a['execute'](_0x2e2436));},{'priority':_0x1f2faf['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1bde29=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ceee1;for(const _0x3b65b3 in _0x1bde29){const _0x4f3984=_0x3b65b3,_0xf035d7=_0x1bde29[_0x4f3984];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0xf035d7||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0xf035d7||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0xf035d7||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0xf035d7||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0xf035d7||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0xf035d7||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0xf035d7){delete _0x1bde29[_0x4f3984],_0x4ceee1=_0xf035d7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4ceee1&&_0x1bde29['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4ceee1&&_0x1bde29['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4ceee1&&_0x1bde29['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4ceee1&&_0x1bde29['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4ceee1&&_0x1bde29['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4ceee1&&_0x1bde29['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class v extends _0x36c9e9{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x37f0d0,g,b];}}export{v as PasteFromOfficeEnhanced};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
|
|
3
|
-
"version": "48.0.
|
|
3
|
+
"version": "48.0.1-alpha.0",
|
|
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.0.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.0.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.0.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.0.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.0.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.0.1-alpha.0",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.0.1-alpha.0",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.0.1-alpha.0",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.0.1-alpha.0",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.0.1-alpha.0"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|