@ckeditor/ckeditor5-export-inline-styles 48.3.0-alpha.4 → 48.3.0-alpha.6

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 +4 -4
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x4a4cb9,Plugin as _0x360e85}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x2fc1ee,createElement as _0x518e7b,uid as _0x4c8f13}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x55ea87,addMarginStylesRules as _0x37b320,addPaddingStylesRules as _0x127579}from'@ckeditor/ckeditor5-engine';import{calculate as _0x530322,compare as _0x32258e}from'specificity';function f(_0x3a38e9){const _0x47da2d=[];let _0x556f3b='',_0x4ff530=0x0;for(;_0x4ff530<_0x3a38e9['length'];){const _0x36c0b0=_0x3a38e9[_0x4ff530];if('('===_0x36c0b0){const _0x5f3a90=y(_0x3a38e9,_0x4ff530+0x1);if(-0x1===_0x5f3a90)return[];_0x556f3b+=_0x3a38e9['slice'](_0x4ff530,_0x5f3a90+0x1),_0x4ff530=_0x5f3a90+0x1;}else','!==_0x36c0b0||_0x556f3b['endsWith']('\x5c')?(_0x556f3b+=_0x36c0b0,_0x4ff530++):(_0x47da2d['push'](_0x556f3b['trim']()),_0x556f3b='',_0x4ff530++);}return _0x556f3b['trim']()&&_0x47da2d['push'](_0x556f3b['trim']()),_0x47da2d['filter'](Boolean);}function y(_0x18d834,_0x120c6a){let _0x5a01a0=0x1;for(let _0x42fc76=_0x120c6a;_0x42fc76<_0x18d834['length'];_0x42fc76++){const _0x5c1bdc=_0x18d834[_0x42fc76];if('('===_0x5c1bdc)_0x5a01a0++;else{if(')'===_0x5c1bdc&&(_0x5a01a0--,0x0===_0x5a01a0))return _0x42fc76;}}return-0x1;}function d(_0x23c511){return _0x23c511['replace'](/!\s*important/i,'')['trim']();}function w(_0x3f030b){const _0x220cc3=new Map();for(const {stylesMap:_0x4aed5c,flatSelector:_0x1158fc}of _0x3f030b){if(':root'!==_0x1158fc)continue;const _0x19d772=p(_0x220cc3['get']['bind'](_0x220cc3),_0x4aed5c);for(const [_0x37c64e,_0x299013]of _0x19d772)_0x220cc3['set'](_0x37c64e,_0x299013);}return _0x220cc3;}function p(_0x3a520d,_0x5d48c4){const _0x111723=new Map(),_0x179363=_0x47b33e=>_0x111723['has'](_0x47b33e)?_0x111723['get'](_0x47b33e):_0x3a520d(_0x47b33e);for(const [_0x519fec,_0x1ac936]of _0x5d48c4['getStylesEntries']())if(_0x1ac936&&_0x519fec['startsWith']('--')){const _0xad4df7=m(_0x179363,_0x1ac936);_0x111723['set'](_0x519fec,_0xad4df7),_0x5d48c4['remove'](_0x519fec);}for(const [_0x4b9a6c,_0x208d4f]of _0x5d48c4['getStylesEntries']())if(_0x208d4f){const _0x1ec69c=m(_0x179363,_0x208d4f);_0x5d48c4['set'](_0x4b9a6c,_0x1ec69c);}return _0x111723;}function m(_0x18c390,_0x281ccc){return function(_0x3796b9,_0x4d6144){let _0x332eeb='',_0x498d76=0x0;for(;_0x498d76<_0x3796b9['length'];){const _0x63f234=_0x3796b9['indexOf']('var(',_0x498d76);if(-0x1===_0x63f234){_0x332eeb+=_0x3796b9['slice'](_0x498d76);break;}_0x332eeb+=_0x3796b9['slice'](_0x498d76,_0x63f234);const _0x589d86=_0x63f234+0x4,_0x2f042b=y(_0x3796b9,_0x589d86);_0x332eeb+=_0x4d6144(_0x3796b9['substring'](_0x589d86,_0x2f042b)),_0x498d76=_0x2f042b+0x1;}return _0x332eeb;}(_0x281ccc,_0x14dbba=>{const [_0x9859b4,_0x121b6a]=f(_0x14dbba),_0x51aa98=_0x18c390(_0x9859b4);return void 0x0!==_0x51aa98?_0x51aa98:_0x121b6a?m(_0x18c390,_0x121b6a):'var('+_0x9859b4+')';});}async function h(_0x43c652){const _0xb904d9=[await _0x2fc1ee(_0x43c652['stylesheets']),_0x43c652['inlineCss']]['filter'](_0x2a51ce=>_0x2a51ce&&_0x2a51ce['length'])['join']('\x0a'),_0x32a0e6=await async function(_0x567a75,_0x5f2c89){const _0x46dbb2=new CSSStyleSheet();return await _0x46dbb2['replace'](_0x5f2c89),S(Array['from'](_0x46dbb2['cssRules'])['filter'](_0x52126d=>_0x52126d instanceof CSSStyleRule))['flatMap'](({selectorText:_0xb1e48,contentCssText:_0x35aca8})=>{const _0x7e9437=f(_0xb1e48),_0x16a4a2=new _0x55ea87(_0x567a75)['setTo'](_0x35aca8);return _0x7e9437['map'](_0x44f28a=>{const _0x325b1c=function(_0x2b4e09){const _0x3d30af=':where(';let _0x26c20e=_0x2b4e09,_0x52f873=0x0;for(let _0x331fdc=0x0;_0x331fdc<0x64;_0x331fdc++){const _0x175790=_0x26c20e['indexOf'](_0x3d30af,_0x52f873);if(-0x1===_0x175790)break;let _0x245526=0x0;for(let _0x1d2697=0x0;_0x1d2697<_0x175790;_0x1d2697++)'('===_0x26c20e[_0x1d2697]?_0x245526++:')'===_0x26c20e[_0x1d2697]&&_0x245526--;if(_0x245526>0x0){_0x52f873=_0x175790+0x7;continue;}let _0x5049d6=-0x1;for(let _0x28d672=_0x175790+0x7,_0x47f184=0x1;_0x28d672<_0x26c20e['length'];_0x28d672++)if('('===_0x26c20e[_0x28d672]?_0x47f184++:')'===_0x26c20e[_0x28d672]&&_0x47f184--,!_0x47f184){_0x5049d6=_0x28d672;break;}-0x1!==_0x5049d6?(_0x26c20e=_0x26c20e['slice'](0x0,_0x175790)+_0x26c20e['slice'](_0x5049d6+0x1),_0x52f873=_0x175790):_0x52f873=_0x175790+0x7;}return _0x26c20e['replace'](/\s+/g,'\x20')['trim']();}(_0x44f28a);return{'stylesMap':_0x16a4a2,'flatSelector':_0x44f28a,'specificity':_0x325b1c?_0x530322(_0x325b1c)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0]};});})['sort']((_0x3c42ac,_0x5d94be)=>_0x32258e(_0x3c42ac['specificity'],_0x5d94be['specificity']));}(_0x43c652['stylesProcessor'],_0xb904d9);return{'parsedCssRules':_0x32a0e6,'rootCssVariables':w(_0x32a0e6)};}function S(_0xc0cf92,_0x1723bd=''){return _0xc0cf92['flatMap'](_0x3dae7c=>{const {selectorText:_0x38e5a6,cssText:_0x3f082f,cssRules:_0x460b2f}=_0x3dae7c;if(!_0x38e5a6)return[];const _0x545a85=_0x38e5a6['replace'](/&/g,_0x1723bd);let _0x17fd5f=_0x3f082f['replace'](_0x38e5a6,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x460b2f||!_0x460b2f['length'])return[{'selectorText':_0x545a85,'contentCssText':_0x17fd5f}];for(const _0x2a7d7d of _0x460b2f)_0x17fd5f=_0x17fd5f['replace'](_0x2a7d7d['cssText'],'')['trim']();return[{'selectorText':_0x545a85,'contentCssText':_0x17fd5f},...S(Array['from'](_0x460b2f),_0x545a85)];});}function L(_0x1c5f9f,_0x2c754c){const _0xbf9056=new _0x55ea87(_0x1c5f9f);for(const _0x147d2b of _0x2c754c){let _0x1a1f34=null;if(_0x1a1f34='string'==typeof _0x147d2b?new _0x55ea87(_0x1c5f9f)['setTo'](_0x147d2b):_0x147d2b,_0x1a1f34){for(const [_0x52c1b4,_0x28b2de]of _0x1a1f34['getStylesEntries']())_0xbf9056['set'](_0x52c1b4,_0x28b2de);}}return _0xbf9056;}var g=class extends _0x4a4cb9{['_stylesProcessor'];constructor(_0x33e3c1){super(_0x33e3c1),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x37b320(this['_stylesProcessor']),_0x127579(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x48c974){const _0x310e6f=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x474a63}=this['editor']['locale'],{rootName:_0x2ce2ee='main',dataControllerDowncastOptions:_0x1ec5e3={},transformations:_0x33dff6=_0x310e6f['transformations']||[]}=_0x48c974||{};this['isBusy']=!0x0,this['refresh']();const _0x31594d=this['_getRootDataHTMLFragment'](_0x2ce2ee,_0x1ec5e3),_0x1747fc=_0x518e7b(_0x31594d['ownerDocument'],'div',{'dir':_0x474a63,'class':'ck-content'},[_0x31594d]);return this['_collectAndApplyStyles'](_0x33dff6,_0x1747fc)['then'](()=>{const _0x26598d=function(_0x5f16d0){const _0x169626=_0x5f16d0['ownerDocument']['createDocumentFragment']();for(;_0x5f16d0['firstChild'];)_0x169626['appendChild'](_0x5f16d0['firstChild']);return _0x169626;}(_0x1747fc),_0x5f163f=_0x1747fc['getAttribute']('style');if(_0x5f163f)for(const _0x593b23 of _0x26598d['children']){const _0x106192=_0x593b23['getAttribute']('style'),_0x8f420a=L(this['_stylesProcessor'],[_0x5f163f,_0x106192]);_0x593b23['setAttribute']('style',x(_0x8f420a));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x26598d);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x335ab3,_0x488d06){const {data:_0x5f1402,model:_0x4f207b}=this['editor'],_0x239a80=_0x4f207b['document']['getRoot'](_0x335ab3),_0x2c4303=_0x5f1402['toView'](_0x239a80,_0x488d06);return _0x5f1402['htmlProcessor']['domConverter']['viewToDom'](_0x2c4303);}async['_collectAndApplyStyles'](_0x4e31b3,_0x5c501c){const {stylesheets:_0x4ecd12,inlineCss:_0x1a8f2d,stripCssClasses:_0x483914}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x2edde8,rootCssVariables:_0x8ede89}=await h({'stylesheets':_0x4ecd12||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x1a8f2d}),_0x4daee6=[];this['_processElementTree']({'transformations':_0x4e31b3,'parsedCssRules':_0x2edde8,'element':_0x5c501c,'stripCssClasses':_0x483914,'parentCSSVariablesLookup':_0x8ede89['get']['bind'](_0x8ede89),'runAfterDocumentTransformation':_0x4e63b9=>{_0x4daee6['unshift'](_0x4e63b9);}});for(const _0x2346c9 of _0x4daee6)_0x2346c9();}['_processElementTree']({element:_0xe00b2e,parsedCssRules:_0x563e7b,parentCSSVariablesLookup:_0x3cdc3b,runAfterDocumentTransformation:_0x543a74,stripCssClasses:_0x1c9d2a,transformations:_0x14cafc}){const {stylesMap:_0x4b360f,localCSSVariables:_0x14ca21}=function(_0x418c7b){const _0x54ecb7=_0x418c7b['element']['getAttribute']('style')||'',_0x522b1c=_0x418c7b['parsedCssRules']['filter'](_0x292cd5=>_0x418c7b['element']['matches'](_0x292cd5['flatSelector']))['map'](_0x21b16d=>_0x21b16d['stylesMap']),_0x40a591=L(_0x418c7b['stylesProcessor'],[..._0x522b1c,_0x54ecb7]);return{'localCSSVariables':p(_0x418c7b['fallbackCSSVariablesLookup'],_0x40a591),'stylesMap':_0x40a591};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x3cdc3b,'parsedCssRules':_0x563e7b,'element':_0xe00b2e}),_0x40b15a=[];for(const _0x39154a of _0x14cafc){const _0x304149=_0x39154a(_0xe00b2e,_0x4b360f,{'runAfterDocumentTransformation':_0x543a74,'runAfterChildrenTransformation':_0x46dc02=>{_0x40b15a['unshift'](_0x46dc02);}});_0x304149&&_0x304149 instanceof HTMLElement&&(_0xe00b2e=_0x304149);}_0x4b360f['size']?_0xe00b2e['setAttribute']('style',x(_0x4b360f)):_0xe00b2e['removeAttribute']('style');const _0x3ce51a=_0x2fa921=>_0x14ca21['has'](_0x2fa921)?_0x14ca21['get'](_0x2fa921):_0x3cdc3b(_0x2fa921);for(const _0x553134 of _0xe00b2e['children'])_0x553134 instanceof HTMLElement&&this['_processElementTree']({'element':_0x553134,'parsedCssRules':_0x563e7b,'stripCssClasses':_0x1c9d2a,'transformations':_0x14cafc,'parentCSSVariablesLookup':_0x3ce51a,'runAfterDocumentTransformation':_0x543a74});_0x1c9d2a&&_0xe00b2e['removeAttribute']('class');for(const _0x4c381a of _0x40b15a)_0x4c381a();}};function x(_0x15b16c){return _0x15b16c['getStylesEntries']()['map'](_0x24aa94=>_0x24aa94['join'](':'))['join'](';')+';';}var C=class extends _0x360e85{static get['pluginName'](){return'ExportInlineStylesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['editor']['config']['define']('exportInlineStyles',{}),this['editor']['commands']['add']('exportInlineStyles',new g(this['editor']));}['afterInit'](){!async function(_0x28d4c2){const _0x2cdfd4='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0x2b7d1a=0x78e28,_0x31057f=window['Date']['now'](),_0x5dfd9b=_0x28d4c2['editor'],_0x49db23=new window['Promise'](_0x328038=>{_0x5dfd9b['once']('ready',_0x328038);}),_0x334a4b={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x584221=_0x5dfd9b['config']['get']('licenseKey');async function _0x599d91(){let _0x185e17,_0x28ebd2=null,_0x2564c9=null;try{return'GPL'==_0x584221?'NotAllowed':(_0x185e17=_0x56cceb(),_0x185e17?(_0x185e17['usageEndpoint']&&(_0x2564c9=_0x15a8df(_0x185e17['usageEndpoint'],_0x185e17['jti'])),await _0x2cef5f()?_0x44a454()?_0x3d1570()?'Expired':_0x47b168()?('evaluation'==_0x185e17['licenseType']&&(_0x28ebd2=_0x1f8aef('EvaluationLimit')),await _0x5ae8ac()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x3d1570(){const _0x47eb04=['evaluation','trial']['includes'](_0x185e17['licenseType'])?_0x31057f/0x3e8:0xe10*_0x2b7d1a;return _0x185e17['exp']<_0x47eb04;}function _0x44a454(){const _0x567744=_0x185e17['features'];return!!_0x567744&&(!!_0x567744['includes']('*')||!!_0x567744['includes']('EIS'));}function _0x47b168(){const _0x1f48f0=_0x185e17['licensedHosts'];if(!_0x1f48f0||0x0==_0x1f48f0['length'])return!0x0;const {hostname:_0x4ebaa5}=new URL(window['location']['href']);if(_0x1f48f0['includes'](_0x4ebaa5))return!0x0;const _0x3f37f8=_0x4ebaa5['split']('.');return _0x1f48f0['filter'](_0x118a1b=>_0x118a1b['includes']('*'))['map'](_0x55e207=>_0x55e207['split']('.'))['filter'](_0x3fa821=>_0x3fa821['length']<=_0x3f37f8['length'])['map'](_0x54483c=>Array(_0x3f37f8['length']-_0x54483c['length'])['fill']('*'===_0x54483c[0x0]?'*':'')['concat'](_0x54483c))['some'](_0x3fa2c3=>_0x3f37f8['every']((_0x38feee,_0x420b63)=>_0x3fa2c3[_0x420b63]===_0x38feee||'*'===_0x3fa2c3[_0x420b63]));}function _0x5ae8ac(){return _0x28ebd2&&_0x2564c9?new window['Promise']((_0x54afa3,_0x231cbd)=>{_0x28ebd2['then'](_0x54afa3,_0x231cbd),_0x2564c9['then'](_0x4dd2e6=>{'Valid'!=_0x4dd2e6&&_0x54afa3(_0x4dd2e6);},_0x231cbd);}):_0x28ebd2||_0x2564c9||'Valid';}}function _0x15a8df(_0x5cd2a5,_0x3e7c36){return new window['Promise'](_0xab1da0=>{if(_0x5687f2())return _0xab1da0('Valid');_0x2241f2(),_0x5dfd9b['decorate']('_sendUsageRequest');let _0x63cb91=!0x1;const _0x52a16f=_0x4c8f13();function _0x3cb6c5(_0x46f9e2){return!!_0x46f9e2&&('object'==typeof _0x46f9e2||'function'==typeof _0x46f9e2)&&'function'==typeof _0x46f9e2['then']&&'function'==typeof _0x46f9e2['catch'];}function _0x1a4c92(_0x5c64c1){_0x5ca9dc(_0x5c64c1)['then'](_0x57cffe=>_0x57cffe&&'ok'==_0x57cffe['status']?_0x192649(_0x5543eb(_0x52a16f+_0x3e7c36))!=_0x57cffe['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x27cf67=>(_0x510242(),_0x27cf67),()=>{const _0x9a9c2a=_0x3c191f();return null==_0x9a9c2a?(_0x510242(),'Valid'):_0x31057f-_0x9a9c2a>0x240c8400?'UsageLimit':'Valid';})['then'](_0xab1da0)['catch'](()=>{_0xab1da0('UsageLimit');});const _0x9e68fd=0x36ee80;function _0x510242(){const _0x369031='llct-'+_0x192649(_0x5543eb(_0x5cd2a5)),_0x21a755=_0x4d85bd(_0x192649(window['Math']['ceil'](_0x31057f/_0x9e68fd)));window['localStorage']['setItem'](_0x369031,_0x21a755);}function _0x3c191f(){const _0x8efe6c='llct-'+_0x192649(_0x5543eb(_0x5cd2a5)),_0x593b8a=window['localStorage']['getItem'](_0x8efe6c);return _0x593b8a?window['parseInt'](_0x4d85bd(_0x593b8a),0x10)*_0x9e68fd:null;}function _0x5ca9dc(_0x1bc7bb){return new window['Promise']((_0x53ade1,_0x31740a)=>{_0x1bc7bb['then'](_0x53ade1,_0x31740a),window['setTimeout'](_0x31740a,0x1d4c0);});}}_0x5dfd9b['on']('_sendUsageRequest',(_0x7d6aa0,_0x5d8568)=>{if(_0x5d8568[0x0]!=_0x5cd2a5)return _0xab1da0('UsageLimit');_0x5d8568[0x1]={..._0x5d8568[0x1],'requestId':_0x52a16f};},{'priority':'high'}),_0x5dfd9b['on']('_sendUsageRequest',_0x1ae359=>{_0x3cb6c5(_0x1ae359['return'])&&(_0x63cb91=!0x0,_0x1a4c92(_0x1ae359['return']));},{'priority':'low'}),_0x49db23['then'](()=>{_0x63cb91||_0xab1da0('UsageLimit');});});function _0x5687f2(){return'auto'==_0x5dfd9b['editing']['view']['_overlayModeHint'];}function _0x2241f2(){_0x5dfd9b['editing']['view']['_overlayModeHint']='auto';}}function _0x1f8aef(_0x40899c){const _0x4a88fb=[new window['Promise'](_0x20424d=>setTimeout(_0x20424d,0x93ecc)),_0x49db23['then'](()=>new window['Promise'](_0x33f46a=>{let _0x39e189=0x0;_0x5dfd9b['model']['on']('applyOperation',(_0x7e6e36,_0xb3b218)=>{_0xb3b218[0x0]['isDocumentOperation']&&_0x39e189++,0x5e8==_0x39e189&&(_0x33f46a(),_0x7e6e36['off']());});}))];return window['Promise']['race'](_0x4a88fb)['then'](()=>_0x40899c);}async function _0x35f624(){await _0x49db23;const _0x166e0d=_0x5dfd9b['commands']['get']('exportInlineStyles');_0x166e0d&&_0x166e0d['on']('execute',_0x3881bb=>{_0x3881bb['stop']();},{'priority':'highest'}),_0x5dfd9b['model']['change']=_0xebe008,_0x5dfd9b['model']['enqueueChange']=_0xebe008,_0x5dfd9b['enableReadOnlyMode']('model');}function _0x4bffb3(_0x268857){const _0x364f80=_0x1dbdb9();_0x5dfd9b[_0x364f80]='exportInlineStylesLicenseKey'+_0x268857,'Valid'!=_0x268857&&_0x35f624();}function _0x1dbdb9(){const _0x12542f=window['String'](window['performance']['now']())['replace']('.','');let _0x19c549='D';for(let _0x305168=0x0;_0x305168<_0x12542f['length'];_0x305168+=0x2){let _0x4bdb3f=window['parseInt'](_0x12542f['substring'](_0x305168,_0x305168+0x2));_0x4bdb3f>=0x3e&&(_0x4bdb3f-=0x3e),_0x19c549+=_0x2cdfd4[_0x4bdb3f];}return _0x19c549;}function _0x56cceb(){const _0x45a7b7=_0x584221['split']('.');if(0x3!=_0x45a7b7['length'])return null;return _0x362093(_0x45a7b7[0x1]);function _0x362093(_0x260563){const _0x308142=_0x268662(_0x260563);return _0x308142&&_0x522262()?_0x308142:null;function _0x522262(){const _0x587bf5=_0x308142['jti'],_0x815a34=window['parseInt'](_0x587bf5['substring'](_0x587bf5['length']-0x8),0x10),_0x253ab1={..._0x308142,'jti':_0x587bf5['substring'](0x0,_0x587bf5['length']-0x8)};return delete _0x253ab1['vc'],_0x5543eb(_0x253ab1)==_0x815a34;}}}async function _0x2cef5f(){let _0xab6639=!0x0;try{const [_0x10cf92,_0x4ad01f,_0x3f00fb]=_0x584221['split']('.');return _0x164438(_0x10cf92),await _0x1c3c63(_0x10cf92,_0x4ad01f,_0x3f00fb),_0xab6639;}catch{return!0x1;}function _0x164438(_0x262357){const _0x37975c=_0x268662(_0x262357);_0x37975c&&'ES256'==_0x37975c['alg']||(_0xab6639=!0x1);}async function _0x1c3c63(_0x29eafa,_0x26f8cc,_0x45078b){const _0x370399=window['Uint8Array']['from'](_0x377c1a(_0x45078b),_0xde39be=>_0xde39be['charCodeAt'](0x0)),_0x5d581c=new window['TextEncoder']()['encode'](_0x29eafa+'.'+_0x26f8cc),_0x4d723f=window['crypto']['subtle'];if(!_0x4d723f)return;const _0x4f2c2b=await _0x4d723f['importKey']('jwk',_0x334a4b,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4d723f['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4f2c2b,_0x370399,_0x5d581c)||(_0xab6639=!0x1);}}function _0x268662(_0x5ccd1b){return _0x5ccd1b['startsWith']('ey')?JSON['parse'](_0x377c1a(_0x5ccd1b)):null;}function _0x377c1a(_0x56893f){return window['atob'](_0x56893f['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5543eb(_0x563a71){let _0x52de50=0x1505;function _0x25e415(_0x1bebdd){for(let _0x3e3d0f=0x0;_0x3e3d0f<_0x1bebdd['length'];_0x3e3d0f++){const _0x39d2f7=_0x1bebdd['charCodeAt'](_0x3e3d0f);_0x52de50=(_0x52de50<<0x5)+_0x52de50+_0x39d2f7,_0x52de50&=_0x52de50;}}function _0x40517a(_0x26288b){Array['isArray'](_0x26288b)?_0x26288b['forEach'](_0x40517a):_0x26288b&&'object'==typeof _0x26288b?Object['entries'](_0x26288b)['sort']()['forEach'](([_0x1527bb,_0x3c67c6])=>{_0x25e415(_0x1527bb),_0x40517a(_0x3c67c6);}):_0x25e415(window['String'](_0x26288b));}return _0x40517a(_0x563a71),_0x52de50>>>0x0;}function _0x192649(_0x51e52e){return _0x51e52e['toString'](0x10)['padStart'](0x8,'0');}function _0x4d85bd(_0x2b9f4a){return _0x2b9f4a['split']('')['reverse']()['join']('');}function _0xebe008(){}_0x4bffb3(await _0x599d91());}(this);}},I=class extends _0x360e85{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x8a2d24=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e2ca7;for(const _0x558c27 in _0x8a2d24){const _0xcef5e5=_0x558c27,_0x731cd1=_0x8a2d24[_0xcef5e5];if('exportInlineStylesLicenseKeyValid'==_0x731cd1||'exportInlineStylesLicenseKeyInvalid'==_0x731cd1||'exportInlineStylesLicenseKeyExpired'==_0x731cd1||'exportInlineStylesLicenseKeyDomainLimit'==_0x731cd1||'exportInlineStylesLicenseKeyNotAllowed'==_0x731cd1||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x731cd1||'exportInlineStylesLicenseKeyUsageLimit'==_0x731cd1){delete _0x8a2d24[_0xcef5e5],_0x1e2ca7=_0x731cd1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x1e2ca7&&_0x8a2d24['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x1e2ca7&&_0x8a2d24['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x1e2ca7&&_0x8a2d24['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x1e2ca7&&_0x8a2d24['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x1e2ca7&&_0x8a2d24['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x1e2ca7&&_0x8a2d24['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};export{I as ExportInlineStyles,g as ExportInlineStylesCommand,C as ExportInlineStylesEditing,d as dropImportantStyleSuffix};
23
+ import{Command as _0x385300,Plugin as _0x1a3099}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x2ccb12,createElement as _0x311a2e,uid as _0x378dbe}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x75dd43,addMarginStylesRules as _0x59cc7c,addPaddingStylesRules as _0x1bc1a3}from'@ckeditor/ckeditor5-engine';import{calculate as _0x7c37f6,compare as _0xc78690}from'specificity';function f(_0x1e4310){const _0x2e3d2a=[];let _0x8ec016='',_0x235e19=0x0;for(;_0x235e19<_0x1e4310['length'];){const _0x51ac69=_0x1e4310[_0x235e19];if('('===_0x51ac69){const _0x483ea4=y(_0x1e4310,_0x235e19+0x1);if(-0x1===_0x483ea4)return[];_0x8ec016+=_0x1e4310['slice'](_0x235e19,_0x483ea4+0x1),_0x235e19=_0x483ea4+0x1;}else','!==_0x51ac69||_0x8ec016['endsWith']('\x5c')?(_0x8ec016+=_0x51ac69,_0x235e19++):(_0x2e3d2a['push'](_0x8ec016['trim']()),_0x8ec016='',_0x235e19++);}return _0x8ec016['trim']()&&_0x2e3d2a['push'](_0x8ec016['trim']()),_0x2e3d2a['filter'](Boolean);}function y(_0xb0eef9,_0x13d171){let _0x13a8c5=0x1;for(let _0x4f4fdd=_0x13d171;_0x4f4fdd<_0xb0eef9['length'];_0x4f4fdd++){const _0x408329=_0xb0eef9[_0x4f4fdd];if('('===_0x408329)_0x13a8c5++;else{if(')'===_0x408329&&(_0x13a8c5--,0x0===_0x13a8c5))return _0x4f4fdd;}}return-0x1;}function d(_0x4191ff){return _0x4191ff['replace'](/!\s*important/i,'')['trim']();}function w(_0x18fcb7){const _0x246ca7=new Map();for(const {stylesMap:_0x328622,flatSelector:_0x2890b7}of _0x18fcb7){if(':root'!==_0x2890b7)continue;const _0x155ac4=p(_0x246ca7['get']['bind'](_0x246ca7),_0x328622);for(const [_0x5f598e,_0x208304]of _0x155ac4)_0x246ca7['set'](_0x5f598e,_0x208304);}return _0x246ca7;}function p(_0x597070,_0x5c5bd4){const _0x15f2d5=new Map(),_0x583b19=_0x480fa5=>_0x15f2d5['has'](_0x480fa5)?_0x15f2d5['get'](_0x480fa5):_0x597070(_0x480fa5);for(const [_0x48b595,_0x3aa946]of _0x5c5bd4['getStylesEntries']())if(_0x3aa946&&_0x48b595['startsWith']('--')){const _0x1e401c=m(_0x583b19,_0x3aa946);_0x15f2d5['set'](_0x48b595,_0x1e401c),_0x5c5bd4['remove'](_0x48b595);}for(const [_0x367ce9,_0x299e85]of _0x5c5bd4['getStylesEntries']())if(_0x299e85){const _0x576fab=m(_0x583b19,_0x299e85);_0x5c5bd4['set'](_0x367ce9,_0x576fab);}return _0x15f2d5;}function m(_0x51eed4,_0x5206fa){return function(_0x5d3e0d,_0x275749){let _0xee29d0='',_0x30ae73=0x0;for(;_0x30ae73<_0x5d3e0d['length'];){const _0x370d61=_0x5d3e0d['indexOf']('var(',_0x30ae73);if(-0x1===_0x370d61){_0xee29d0+=_0x5d3e0d['slice'](_0x30ae73);break;}_0xee29d0+=_0x5d3e0d['slice'](_0x30ae73,_0x370d61);const _0x331fa1=_0x370d61+0x4,_0x20e042=y(_0x5d3e0d,_0x331fa1);_0xee29d0+=_0x275749(_0x5d3e0d['substring'](_0x331fa1,_0x20e042)),_0x30ae73=_0x20e042+0x1;}return _0xee29d0;}(_0x5206fa,_0x17ba5c=>{const [_0x4f9d7b,_0x1a6032]=f(_0x17ba5c),_0x22a8a3=_0x51eed4(_0x4f9d7b);return void 0x0!==_0x22a8a3?_0x22a8a3:_0x1a6032?m(_0x51eed4,_0x1a6032):'var('+_0x4f9d7b+')';});}async function h(_0x64a28f){const _0x4d72b5=[await _0x2ccb12(_0x64a28f['stylesheets']),_0x64a28f['inlineCss']]['filter'](_0x44a1e7=>_0x44a1e7&&_0x44a1e7['length'])['join']('\x0a'),_0x1ff8f9=await async function(_0xa2778a,_0x990161){const _0x2b3429=new CSSStyleSheet();return await _0x2b3429['replace'](_0x990161),S(Array['from'](_0x2b3429['cssRules'])['filter'](_0x400ae3=>_0x400ae3 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x2f5578,contentCssText:_0x4b0c15})=>{const _0x2bd669=f(_0x2f5578),_0x211ff0=new _0x75dd43(_0xa2778a)['setTo'](_0x4b0c15);return _0x2bd669['map'](_0x38da9c=>{const _0x4d5cbb=function(_0x20f5b6){const _0x1c5db7=':where(';let _0x1dbe87=_0x20f5b6,_0x467845=0x0;for(let _0x228bb4=0x0;_0x228bb4<0x64;_0x228bb4++){const _0x467f9e=_0x1dbe87['indexOf'](_0x1c5db7,_0x467845);if(-0x1===_0x467f9e)break;let _0x150bc8=0x0;for(let _0x80713b=0x0;_0x80713b<_0x467f9e;_0x80713b++)'('===_0x1dbe87[_0x80713b]?_0x150bc8++:')'===_0x1dbe87[_0x80713b]&&_0x150bc8--;if(_0x150bc8>0x0){_0x467845=_0x467f9e+0x7;continue;}let _0x1ad261=-0x1;for(let _0xaeb61c=_0x467f9e+0x7,_0x572902=0x1;_0xaeb61c<_0x1dbe87['length'];_0xaeb61c++)if('('===_0x1dbe87[_0xaeb61c]?_0x572902++:')'===_0x1dbe87[_0xaeb61c]&&_0x572902--,!_0x572902){_0x1ad261=_0xaeb61c;break;}-0x1!==_0x1ad261?(_0x1dbe87=_0x1dbe87['slice'](0x0,_0x467f9e)+_0x1dbe87['slice'](_0x1ad261+0x1),_0x467845=_0x467f9e):_0x467845=_0x467f9e+0x7;}return _0x1dbe87['replace'](/\s+/g,'\x20')['trim']();}(_0x38da9c);return{'stylesMap':_0x211ff0,'flatSelector':_0x38da9c,'specificity':_0x4d5cbb?_0x7c37f6(_0x4d5cbb)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0]};});})['sort']((_0x45d66d,_0x401314)=>_0xc78690(_0x45d66d['specificity'],_0x401314['specificity']));}(_0x64a28f['stylesProcessor'],_0x4d72b5);return{'parsedCssRules':_0x1ff8f9,'rootCssVariables':w(_0x1ff8f9)};}function S(_0x50f246,_0x48d462=''){return _0x50f246['flatMap'](_0x762f59=>{const {selectorText:_0x45692b,cssText:_0x30a809,cssRules:_0x2b1a0c}=_0x762f59;if(!_0x45692b)return[];const _0xc6e5c5=_0x45692b['replace'](/&/g,_0x48d462);let _0x13bf4a=_0x30a809['replace'](_0x45692b,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x2b1a0c||!_0x2b1a0c['length'])return[{'selectorText':_0xc6e5c5,'contentCssText':_0x13bf4a}];for(const _0x197930 of _0x2b1a0c)_0x13bf4a=_0x13bf4a['replace'](_0x197930['cssText'],'')['trim']();return[{'selectorText':_0xc6e5c5,'contentCssText':_0x13bf4a},...S(Array['from'](_0x2b1a0c),_0xc6e5c5)];});}function L(_0x278cad,_0x273d85){const _0x24bce3=new _0x75dd43(_0x278cad);for(const _0x4a9f09 of _0x273d85){let _0x11899f=null;if(_0x11899f='string'==typeof _0x4a9f09?new _0x75dd43(_0x278cad)['setTo'](_0x4a9f09):_0x4a9f09,_0x11899f){for(const [_0x1d3d05,_0x16cea]of _0x11899f['getStylesEntries']())_0x24bce3['set'](_0x1d3d05,_0x16cea);}}return _0x24bce3;}var g=class extends _0x385300{['_stylesProcessor'];constructor(_0x54af92){super(_0x54af92),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x59cc7c(this['_stylesProcessor']),_0x1bc1a3(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x28b67d){const _0x2e9114=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x261872}=this['editor']['locale'],{rootName:_0x1d9296='main',dataControllerDowncastOptions:_0x517908={},transformations:_0x560625=_0x2e9114['transformations']||[]}=_0x28b67d||{};this['isBusy']=!0x0,this['refresh']();const _0x5e2928=this['_getRootDataHTMLFragment'](_0x1d9296,_0x517908),_0x407bb3=_0x311a2e(_0x5e2928['ownerDocument'],'div',{'dir':_0x261872,'class':'ck-content'},[_0x5e2928]);return this['_collectAndApplyStyles'](_0x560625,_0x407bb3)['then'](()=>{const _0x4d5c07=function(_0x1657b1){const _0x1f5efc=_0x1657b1['ownerDocument']['createDocumentFragment']();for(;_0x1657b1['firstChild'];)_0x1f5efc['appendChild'](_0x1657b1['firstChild']);return _0x1f5efc;}(_0x407bb3),_0x2a659c=_0x407bb3['getAttribute']('style');if(_0x2a659c)for(const _0x4f20d7 of _0x4d5c07['children']){const _0x2889e4=_0x4f20d7['getAttribute']('style'),_0x3c5c4a=L(this['_stylesProcessor'],[_0x2a659c,_0x2889e4]);_0x4f20d7['setAttribute']('style',x(_0x3c5c4a));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x4d5c07);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x266273,_0x485c7d){const {data:_0x53f784,model:_0x18bc85}=this['editor'],_0x5d86e6=_0x18bc85['document']['getRoot'](_0x266273),_0x1fac49=_0x53f784['toView'](_0x5d86e6,_0x485c7d);return _0x53f784['htmlProcessor']['domConverter']['viewToDom'](_0x1fac49);}async['_collectAndApplyStyles'](_0x33c1fa,_0x59a9cf){const {stylesheets:_0x12043e,inlineCss:_0x430c25,stripCssClasses:_0x156ef9}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x34166d,rootCssVariables:_0x3f21ba}=await h({'stylesheets':_0x12043e||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x430c25}),_0x1b653f=[];this['_processElementTree']({'transformations':_0x33c1fa,'parsedCssRules':_0x34166d,'element':_0x59a9cf,'stripCssClasses':_0x156ef9,'parentCSSVariablesLookup':_0x3f21ba['get']['bind'](_0x3f21ba),'runAfterDocumentTransformation':_0x539ceb=>{_0x1b653f['unshift'](_0x539ceb);}});for(const _0x67b4d7 of _0x1b653f)_0x67b4d7();}['_processElementTree']({element:_0x1757ef,parsedCssRules:_0x313cb3,parentCSSVariablesLookup:_0x2f8e56,runAfterDocumentTransformation:_0x419cc2,stripCssClasses:_0x4d4da4,transformations:_0x50a008}){const {stylesMap:_0x93d1cd,localCSSVariables:_0x15dc48}=function(_0x3ad29d){const _0x41f031=_0x3ad29d['element']['getAttribute']('style')||'',_0x401ef8=_0x3ad29d['parsedCssRules']['filter'](_0x2e018b=>_0x3ad29d['element']['matches'](_0x2e018b['flatSelector']))['map'](_0x320f81=>_0x320f81['stylesMap']),_0x4b8cbc=L(_0x3ad29d['stylesProcessor'],[..._0x401ef8,_0x41f031]);return{'localCSSVariables':p(_0x3ad29d['fallbackCSSVariablesLookup'],_0x4b8cbc),'stylesMap':_0x4b8cbc};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x2f8e56,'parsedCssRules':_0x313cb3,'element':_0x1757ef}),_0x5a1083=[];for(const _0x5afb71 of _0x50a008){const _0xaf3a83=_0x5afb71(_0x1757ef,_0x93d1cd,{'runAfterDocumentTransformation':_0x419cc2,'runAfterChildrenTransformation':_0x29165a=>{_0x5a1083['unshift'](_0x29165a);}});_0xaf3a83&&_0xaf3a83 instanceof HTMLElement&&(_0x1757ef=_0xaf3a83);}_0x93d1cd['size']?_0x1757ef['setAttribute']('style',x(_0x93d1cd)):_0x1757ef['removeAttribute']('style');const _0x1e0fff=_0x579e2f=>_0x15dc48['has'](_0x579e2f)?_0x15dc48['get'](_0x579e2f):_0x2f8e56(_0x579e2f);for(const _0x44bdff of _0x1757ef['children'])_0x44bdff instanceof HTMLElement&&this['_processElementTree']({'element':_0x44bdff,'parsedCssRules':_0x313cb3,'stripCssClasses':_0x4d4da4,'transformations':_0x50a008,'parentCSSVariablesLookup':_0x1e0fff,'runAfterDocumentTransformation':_0x419cc2});_0x4d4da4&&_0x1757ef['removeAttribute']('class');for(const _0xbc98e3 of _0x5a1083)_0xbc98e3();}};function x(_0x3abad6){return _0x3abad6['getStylesEntries']()['map'](_0x299c1d=>_0x299c1d['join'](':'))['join'](';')+';';}var C=class extends _0x1a3099{static get['pluginName'](){return'ExportInlineStylesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['editor']['config']['define']('exportInlineStyles',{}),this['editor']['commands']['add']('exportInlineStyles',new g(this['editor']));}['afterInit'](){!async function(_0x3e4938){const _0x2567dc='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0x12db50=0x78e58,_0x2f8461=window['Date']['now'](),_0x4e7c7a=_0x3e4938['editor'],_0x1d85cc=new window['Promise'](_0x15dd32=>{_0x4e7c7a['once']('ready',_0x15dd32);}),_0x3698bf={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x568fd7=_0x4e7c7a['config']['get']('licenseKey');async function _0x4835ac(){let _0x25e709,_0x1b900e=null,_0x27e700=null;try{return'GPL'==_0x568fd7?'NotAllowed':(_0x25e709=_0x26bbd2(),_0x25e709?(_0x25e709['usageEndpoint']&&(_0x27e700=_0x3f8d01(_0x25e709['usageEndpoint'],_0x25e709['jti'])),await _0x3794dd()?_0x445250()?_0x5d0525()?'Expired':_0x1bd9c3()?('evaluation'==_0x25e709['licenseType']&&(_0x1b900e=_0x518ea9('EvaluationLimit')),await _0xa44d30()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5d0525(){const _0x87dc15=['evaluation','trial']['includes'](_0x25e709['licenseType'])?_0x2f8461/0x3e8:0xe10*_0x12db50;return _0x25e709['exp']<_0x87dc15;}function _0x445250(){const _0x4119df=_0x25e709['features'];return!!_0x4119df&&(!!_0x4119df['includes']('*')||!!_0x4119df['includes']('EIS'));}function _0x1bd9c3(){const _0x368aba=_0x25e709['licensedHosts'];if(!_0x368aba||0x0==_0x368aba['length'])return!0x0;const {hostname:_0x5a8ae4}=new URL(window['location']['href']);if(_0x368aba['includes'](_0x5a8ae4))return!0x0;const _0x1e8bf4=_0x5a8ae4['split']('.');return _0x368aba['filter'](_0x2cb1d7=>_0x2cb1d7['includes']('*'))['map'](_0x35d59a=>_0x35d59a['split']('.'))['filter'](_0x31dc02=>_0x31dc02['length']<=_0x1e8bf4['length'])['map'](_0x52aae4=>Array(_0x1e8bf4['length']-_0x52aae4['length'])['fill']('*'===_0x52aae4[0x0]?'*':'')['concat'](_0x52aae4))['some'](_0x292781=>_0x1e8bf4['every']((_0x5d8387,_0x4ebaa3)=>_0x292781[_0x4ebaa3]===_0x5d8387||'*'===_0x292781[_0x4ebaa3]));}function _0xa44d30(){return _0x1b900e&&_0x27e700?new window['Promise']((_0x4ce673,_0x87ffef)=>{_0x1b900e['then'](_0x4ce673,_0x87ffef),_0x27e700['then'](_0x4d6e88=>{'Valid'!=_0x4d6e88&&_0x4ce673(_0x4d6e88);},_0x87ffef);}):_0x1b900e||_0x27e700||'Valid';}}function _0x3f8d01(_0x1a4fac,_0x36ba89){return new window['Promise'](_0x345bfe=>{if(_0x23df7f())return _0x345bfe('Valid');_0x4e54d2(),_0x4e7c7a['decorate']('_sendUsageRequest');let _0x252817=!0x1;const _0x2c32f9=_0x378dbe();function _0x5608f1(_0xf4e981){return!!_0xf4e981&&('object'==typeof _0xf4e981||'function'==typeof _0xf4e981)&&'function'==typeof _0xf4e981['then']&&'function'==typeof _0xf4e981['catch'];}function _0x5d0203(_0x2ec6df){_0x23983f(_0x2ec6df)['then'](_0x303f8c=>_0x303f8c&&'ok'==_0x303f8c['status']?_0x55f0ff(_0x334c7e(_0x2c32f9+_0x36ba89))!=_0x303f8c['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x38fe43=>(_0xa9aceb(),_0x38fe43),()=>{const _0x51b3c4=_0x473c69();return null==_0x51b3c4?(_0xa9aceb(),'Valid'):_0x2f8461-_0x51b3c4>0x240c8400?'UsageLimit':'Valid';})['then'](_0x345bfe)['catch'](()=>{_0x345bfe('UsageLimit');});const _0x17f327=0x36ee80;function _0xa9aceb(){const _0x5747cf='llct-'+_0x55f0ff(_0x334c7e(_0x1a4fac)),_0x1e1116=_0x95f9a(_0x55f0ff(window['Math']['ceil'](_0x2f8461/_0x17f327)));window['localStorage']['setItem'](_0x5747cf,_0x1e1116);}function _0x473c69(){const _0x3b4f58='llct-'+_0x55f0ff(_0x334c7e(_0x1a4fac)),_0x501adc=window['localStorage']['getItem'](_0x3b4f58);return _0x501adc?window['parseInt'](_0x95f9a(_0x501adc),0x10)*_0x17f327:null;}function _0x23983f(_0x633d99){return new window['Promise']((_0x244e39,_0xf96336)=>{_0x633d99['then'](_0x244e39,_0xf96336),window['setTimeout'](_0xf96336,0x1d4c0);});}}_0x4e7c7a['on']('_sendUsageRequest',(_0x9719c8,_0x4383cb)=>{if(_0x4383cb[0x0]!=_0x1a4fac)return _0x345bfe('UsageLimit');_0x4383cb[0x1]={..._0x4383cb[0x1],'requestId':_0x2c32f9};},{'priority':'high'}),_0x4e7c7a['on']('_sendUsageRequest',_0xa0eb25=>{_0x5608f1(_0xa0eb25['return'])&&(_0x252817=!0x0,_0x5d0203(_0xa0eb25['return']));},{'priority':'low'}),_0x1d85cc['then'](()=>{_0x252817||_0x345bfe('UsageLimit');});});function _0x23df7f(){return'auto'==_0x4e7c7a['editing']['view']['_overlayModeHint'];}function _0x4e54d2(){_0x4e7c7a['editing']['view']['_overlayModeHint']='auto';}}function _0x518ea9(_0x8fb47e){const _0x2615e4=[new window['Promise'](_0x3b6696=>setTimeout(_0x3b6696,0x93ecc)),_0x1d85cc['then'](()=>new window['Promise'](_0x30dac6=>{let _0x365cbb=0x0;_0x4e7c7a['model']['on']('applyOperation',(_0x530071,_0x33bcdc)=>{_0x33bcdc[0x0]['isDocumentOperation']&&_0x365cbb++,0x5e8==_0x365cbb&&(_0x30dac6(),_0x530071['off']());});}))];return window['Promise']['race'](_0x2615e4)['then'](()=>_0x8fb47e);}async function _0x2be8f4(){await _0x1d85cc;const _0x238686=_0x4e7c7a['commands']['get']('exportInlineStyles');_0x238686&&_0x238686['on']('execute',_0x41791a=>{_0x41791a['stop']();},{'priority':'highest'}),_0x4e7c7a['model']['change']=_0x36b832,_0x4e7c7a['model']['enqueueChange']=_0x36b832,_0x4e7c7a['enableReadOnlyMode']('model');}function _0x35fca8(_0x3eedee){const _0x12cb37=_0x42d63c();_0x4e7c7a[_0x12cb37]='exportInlineStylesLicenseKey'+_0x3eedee,'Valid'!=_0x3eedee&&_0x2be8f4();}function _0x42d63c(){const _0x482ae5=window['String'](window['performance']['now']())['replace']('.','');let _0x51ff0b='D';for(let _0x3b9eed=0x0;_0x3b9eed<_0x482ae5['length'];_0x3b9eed+=0x2){let _0x3bc593=window['parseInt'](_0x482ae5['substring'](_0x3b9eed,_0x3b9eed+0x2));_0x3bc593>=0x3e&&(_0x3bc593-=0x3e),_0x51ff0b+=_0x2567dc[_0x3bc593];}return _0x51ff0b;}function _0x26bbd2(){const _0x478345=_0x568fd7['split']('.');if(0x3!=_0x478345['length'])return null;return _0x2f41ad(_0x478345[0x1]);function _0x2f41ad(_0x8e82b0){const _0x49b08b=_0x3d04e2(_0x8e82b0);return _0x49b08b&&_0x5f5c4d()?_0x49b08b:null;function _0x5f5c4d(){const _0x5780ee=_0x49b08b['jti'],_0x21b3e8=window['parseInt'](_0x5780ee['substring'](_0x5780ee['length']-0x8),0x10),_0x3cfd76={..._0x49b08b,'jti':_0x5780ee['substring'](0x0,_0x5780ee['length']-0x8)};return delete _0x3cfd76['vc'],_0x334c7e(_0x3cfd76)==_0x21b3e8;}}}async function _0x3794dd(){let _0x17ed85=!0x0;try{const [_0x59e27e,_0x26ec89,_0x120d6c]=_0x568fd7['split']('.');return _0x1635ce(_0x59e27e),await _0x3aad89(_0x59e27e,_0x26ec89,_0x120d6c),_0x17ed85;}catch{return!0x1;}function _0x1635ce(_0x41c428){const _0x28fff2=_0x3d04e2(_0x41c428);_0x28fff2&&'ES256'==_0x28fff2['alg']||(_0x17ed85=!0x1);}async function _0x3aad89(_0x8a21d1,_0x392919,_0x5cade6){const _0x4fd4ee=window['Uint8Array']['from'](_0x471f5f(_0x5cade6),_0xba188f=>_0xba188f['charCodeAt'](0x0)),_0x2849f4=new window['TextEncoder']()['encode'](_0x8a21d1+'.'+_0x392919),_0x1b98fe=window['crypto']['subtle'];if(!_0x1b98fe)return;const _0x183997=await _0x1b98fe['importKey']('jwk',_0x3698bf,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1b98fe['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x183997,_0x4fd4ee,_0x2849f4)||(_0x17ed85=!0x1);}}function _0x3d04e2(_0x474e29){return _0x474e29['startsWith']('ey')?JSON['parse'](_0x471f5f(_0x474e29)):null;}function _0x471f5f(_0x5e7d43){return window['atob'](_0x5e7d43['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x334c7e(_0x4917e4){let _0x3d269e=0x1505;function _0x55c108(_0x4bafdf){for(let _0xb080b0=0x0;_0xb080b0<_0x4bafdf['length'];_0xb080b0++){const _0x2ed5a9=_0x4bafdf['charCodeAt'](_0xb080b0);_0x3d269e=(_0x3d269e<<0x5)+_0x3d269e+_0x2ed5a9,_0x3d269e&=_0x3d269e;}}function _0x6801c3(_0x59870b){Array['isArray'](_0x59870b)?_0x59870b['forEach'](_0x6801c3):_0x59870b&&'object'==typeof _0x59870b?Object['entries'](_0x59870b)['sort']()['forEach'](([_0x39a196,_0x192810])=>{_0x55c108(_0x39a196),_0x6801c3(_0x192810);}):_0x55c108(window['String'](_0x59870b));}return _0x6801c3(_0x4917e4),_0x3d269e>>>0x0;}function _0x55f0ff(_0x103a4a){return _0x103a4a['toString'](0x10)['padStart'](0x8,'0');}function _0x95f9a(_0x1f510a){return _0x1f510a['split']('')['reverse']()['join']('');}function _0x36b832(){}_0x35fca8(await _0x4835ac());}(this);}},I=class extends _0x1a3099{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3f3a61=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ffbef;for(const _0x4b057f in _0x3f3a61){const _0x100094=_0x4b057f,_0x10c368=_0x3f3a61[_0x100094];if('exportInlineStylesLicenseKeyValid'==_0x10c368||'exportInlineStylesLicenseKeyInvalid'==_0x10c368||'exportInlineStylesLicenseKeyExpired'==_0x10c368||'exportInlineStylesLicenseKeyDomainLimit'==_0x10c368||'exportInlineStylesLicenseKeyNotAllowed'==_0x10c368||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x10c368||'exportInlineStylesLicenseKeyUsageLimit'==_0x10c368){delete _0x3f3a61[_0x100094],_0x1ffbef=_0x10c368,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x1ffbef&&_0x3f3a61['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x1ffbef&&_0x3f3a61['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x1ffbef&&_0x3f3a61['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x1ffbef&&_0x3f3a61['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x1ffbef&&_0x3f3a61['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x1ffbef&&_0x3f3a61['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};export{I as ExportInlineStyles,g as ExportInlineStylesCommand,C as ExportInlineStylesEditing,d as dropImportantStyleSuffix};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-inline-styles",
3
- "version": "48.3.0-alpha.4",
3
+ "version": "48.3.0-alpha.6",
4
4
  "description": "The export with inline styles feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -34,9 +34,9 @@
34
34
  "./package.json": "./package.json"
35
35
  },
36
36
  "dependencies": {
37
- "@ckeditor/ckeditor5-core": "48.3.0-alpha.4",
38
- "@ckeditor/ckeditor5-engine": "48.3.0-alpha.4",
39
- "@ckeditor/ckeditor5-utils": "48.3.0-alpha.4",
37
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.6",
38
+ "@ckeditor/ckeditor5-engine": "48.3.0-alpha.6",
39
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.6",
40
40
  "specificity": "0.4.1"
41
41
  },
42
42
  "files": [