@ckeditor/ckeditor5-export-inline-styles 48.3.0-alpha.1 → 48.3.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x228200,Plugin as _0x3d6192}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x402498,createElement as _0x48bc95,uid as _0x40ef7c}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x448ee0,addMarginStylesRules as _0x55810e,addPaddingStylesRules as _0x55017a}from'@ckeditor/ckeditor5-engine';import{calculate as _0x4e4c52,compare as _0x37c5bc}from'specificity';function f(_0x157fcf){const _0x1f0da5=[];let _0x424cee='',_0x5dbe4f=0x0;for(;_0x5dbe4f<_0x157fcf['length'];){const _0x2742ce=_0x157fcf[_0x5dbe4f];if('('===_0x2742ce){const _0x40a55d=y(_0x157fcf,_0x5dbe4f+0x1);if(-0x1===_0x40a55d)return[];_0x424cee+=_0x157fcf['slice'](_0x5dbe4f,_0x40a55d+0x1),_0x5dbe4f=_0x40a55d+0x1;}else','!==_0x2742ce||_0x424cee['endsWith']('\x5c')?(_0x424cee+=_0x2742ce,_0x5dbe4f++):(_0x1f0da5['push'](_0x424cee['trim']()),_0x424cee='',_0x5dbe4f++);}return _0x424cee['trim']()&&_0x1f0da5['push'](_0x424cee['trim']()),_0x1f0da5['filter'](Boolean);}function y(_0x5a43ab,_0x505b1f){let _0x180783=0x1;for(let _0x2bfe8c=_0x505b1f;_0x2bfe8c<_0x5a43ab['length'];_0x2bfe8c++){const _0x3b911f=_0x5a43ab[_0x2bfe8c];if('('===_0x3b911f)_0x180783++;else{if(')'===_0x3b911f&&(_0x180783--,0x0===_0x180783))return _0x2bfe8c;}}return-0x1;}function d(_0x1f7e0e){return _0x1f7e0e['replace'](/!\s*important/i,'')['trim']();}function w(_0x447ad4){const _0xa6a36f=new Map();for(const {stylesMap:_0x2272fc,flatSelector:_0x476153}of _0x447ad4){if(':root'!==_0x476153)continue;const _0x2f6bf6=p(_0xa6a36f['get']['bind'](_0xa6a36f),_0x2272fc);for(const [_0x334b94,_0x43bd23]of _0x2f6bf6)_0xa6a36f['set'](_0x334b94,_0x43bd23);}return _0xa6a36f;}function p(_0x157df6,_0x2acef6){const _0x130f27=new Map(),_0x2d74dd=_0x28c0f6=>_0x130f27['has'](_0x28c0f6)?_0x130f27['get'](_0x28c0f6):_0x157df6(_0x28c0f6);for(const [_0x1dcc69,_0x2ee148]of _0x2acef6['getStylesEntries']())if(_0x2ee148&&_0x1dcc69['startsWith']('--')){const _0x4a90f9=m(_0x2d74dd,_0x2ee148);_0x130f27['set'](_0x1dcc69,_0x4a90f9),_0x2acef6['remove'](_0x1dcc69);}for(const [_0xf913fc,_0x5ad1d8]of _0x2acef6['getStylesEntries']())if(_0x5ad1d8){const _0x247a53=m(_0x2d74dd,_0x5ad1d8);_0x2acef6['set'](_0xf913fc,_0x247a53);}return _0x130f27;}function m(_0x192885,_0x1dc2f2){return function(_0x3feadc,_0x24f8ce){let _0x129301='',_0x49f075=0x0;for(;_0x49f075<_0x3feadc['length'];){const _0x4d66db=_0x3feadc['indexOf']('var(',_0x49f075);if(-0x1===_0x4d66db){_0x129301+=_0x3feadc['slice'](_0x49f075);break;}_0x129301+=_0x3feadc['slice'](_0x49f075,_0x4d66db);const _0x139c07=_0x4d66db+0x4,_0x544be8=y(_0x3feadc,_0x139c07);_0x129301+=_0x24f8ce(_0x3feadc['substring'](_0x139c07,_0x544be8)),_0x49f075=_0x544be8+0x1;}return _0x129301;}(_0x1dc2f2,_0x316ac8=>{const [_0x85b41c,_0x403722]=f(_0x316ac8),_0x9704dd=_0x192885(_0x85b41c);return void 0x0!==_0x9704dd?_0x9704dd:_0x403722?m(_0x192885,_0x403722):'var('+_0x85b41c+')';});}async function h(_0x279602){const _0xc8fd9e=[await _0x402498(_0x279602['stylesheets']),_0x279602['inlineCss']]['filter'](_0x2edb5e=>_0x2edb5e&&_0x2edb5e['length'])['join']('\x0a'),_0x16a420=await async function(_0xe5194b,_0x5603a7){const _0x270268=new CSSStyleSheet();return await _0x270268['replace'](_0x5603a7),S(Array['from'](_0x270268['cssRules'])['filter'](_0x402419=>_0x402419 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x13c3fc,contentCssText:_0x116d24})=>{const _0x319dd=f(_0x13c3fc),_0x10b752=new _0x448ee0(_0xe5194b)['setTo'](_0x116d24);return _0x319dd['map'](_0x264143=>{const _0x42021a=function(_0x1d9768){const _0x4dd618=':where(';let _0x32ec75=_0x1d9768,_0x59b05e=0x0;for(let _0xf75e63=0x0;_0xf75e63<0x64;_0xf75e63++){const _0x12bb89=_0x32ec75['indexOf'](_0x4dd618,_0x59b05e);if(-0x1===_0x12bb89)break;let _0x48d574=0x0;for(let _0x47bb6d=0x0;_0x47bb6d<_0x12bb89;_0x47bb6d++)'('===_0x32ec75[_0x47bb6d]?_0x48d574++:')'===_0x32ec75[_0x47bb6d]&&_0x48d574--;if(_0x48d574>0x0){_0x59b05e=_0x12bb89+0x7;continue;}let _0x487903=-0x1;for(let _0xbd0797=_0x12bb89+0x7,_0xd19609=0x1;_0xbd0797<_0x32ec75['length'];_0xbd0797++)if('('===_0x32ec75[_0xbd0797]?_0xd19609++:')'===_0x32ec75[_0xbd0797]&&_0xd19609--,!_0xd19609){_0x487903=_0xbd0797;break;}-0x1!==_0x487903?(_0x32ec75=_0x32ec75['slice'](0x0,_0x12bb89)+_0x32ec75['slice'](_0x487903+0x1),_0x59b05e=_0x12bb89):_0x59b05e=_0x12bb89+0x7;}return _0x32ec75['replace'](/\s+/g,'\x20')['trim']();}(_0x264143);return{'stylesMap':_0x10b752,'flatSelector':_0x264143,'specificity':_0x42021a?_0x4e4c52(_0x42021a)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0]};});})['sort']((_0x441d15,_0x2a4507)=>_0x37c5bc(_0x441d15['specificity'],_0x2a4507['specificity']));}(_0x279602['stylesProcessor'],_0xc8fd9e);return{'parsedCssRules':_0x16a420,'rootCssVariables':w(_0x16a420)};}function S(_0x11af87,_0x32693d=''){return _0x11af87['flatMap'](_0x13e1d0=>{const {selectorText:_0x47dba3,cssText:_0x15162f,cssRules:_0x32bccb}=_0x13e1d0;if(!_0x47dba3)return[];const _0x2a7618=_0x47dba3['replace'](/&/g,_0x32693d);let _0x4a386e=_0x15162f['replace'](_0x47dba3,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x32bccb||!_0x32bccb['length'])return[{'selectorText':_0x2a7618,'contentCssText':_0x4a386e}];for(const _0x38449c of _0x32bccb)_0x4a386e=_0x4a386e['replace'](_0x38449c['cssText'],'')['trim']();return[{'selectorText':_0x2a7618,'contentCssText':_0x4a386e},...S(Array['from'](_0x32bccb),_0x2a7618)];});}function L(_0x167324,_0x146ec1){const _0x8521f4=new _0x448ee0(_0x167324);for(const _0x13681c of _0x146ec1){let _0x522353=null;if(_0x522353='string'==typeof _0x13681c?new _0x448ee0(_0x167324)['setTo'](_0x13681c):_0x13681c,_0x522353){for(const [_0x3034ef,_0xaf640b]of _0x522353['getStylesEntries']())_0x8521f4['set'](_0x3034ef,_0xaf640b);}}return _0x8521f4;}var g=class extends _0x228200{['_stylesProcessor'];constructor(_0x3434ac){super(_0x3434ac),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x55810e(this['_stylesProcessor']),_0x55017a(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x5dea2a){const _0x32a91a=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x5b7612}=this['editor']['locale'],{rootName:_0x1f6860='main',dataControllerDowncastOptions:_0x29e30f={},transformations:_0x1420b4=_0x32a91a['transformations']||[]}=_0x5dea2a||{};this['isBusy']=!0x0,this['refresh']();const _0x4dfbeb=this['_getRootDataHTMLFragment'](_0x1f6860,_0x29e30f),_0x2e5bcb=_0x48bc95(_0x4dfbeb['ownerDocument'],'div',{'dir':_0x5b7612,'class':'ck-content'},[_0x4dfbeb]);return this['_collectAndApplyStyles'](_0x1420b4,_0x2e5bcb)['then'](()=>{const _0xf2669f=function(_0x5676a8){const _0x15f3f8=_0x5676a8['ownerDocument']['createDocumentFragment']();for(;_0x5676a8['firstChild'];)_0x15f3f8['appendChild'](_0x5676a8['firstChild']);return _0x15f3f8;}(_0x2e5bcb),_0x2124c2=_0x2e5bcb['getAttribute']('style');if(_0x2124c2)for(const _0x3809af of _0xf2669f['children']){const _0x40d730=_0x3809af['getAttribute']('style'),_0x1c0ae6=L(this['_stylesProcessor'],[_0x2124c2,_0x40d730]);_0x3809af['setAttribute']('style',x(_0x1c0ae6));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0xf2669f);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x259702,_0x3d8b3b){const {data:_0x325160,model:_0x1c493d}=this['editor'],_0x4da645=_0x1c493d['document']['getRoot'](_0x259702),_0x2b3687=_0x325160['toView'](_0x4da645,_0x3d8b3b);return _0x325160['htmlProcessor']['domConverter']['viewToDom'](_0x2b3687);}async['_collectAndApplyStyles'](_0x4e0475,_0x1fbf6a){const {stylesheets:_0x37daca,inlineCss:_0x409011,stripCssClasses:_0x5cc9cc}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x57529a,rootCssVariables:_0x577539}=await h({'stylesheets':_0x37daca||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x409011}),_0x17e197=[];this['_processElementTree']({'transformations':_0x4e0475,'parsedCssRules':_0x57529a,'element':_0x1fbf6a,'stripCssClasses':_0x5cc9cc,'parentCSSVariablesLookup':_0x577539['get']['bind'](_0x577539),'runAfterDocumentTransformation':_0x2c7d5e=>{_0x17e197['unshift'](_0x2c7d5e);}});for(const _0x29fe83 of _0x17e197)_0x29fe83();}['_processElementTree']({element:_0x20a14c,parsedCssRules:_0x474e6e,parentCSSVariablesLookup:_0x23f13d,runAfterDocumentTransformation:_0x1d53bd,stripCssClasses:_0x34627c,transformations:_0x35fad0}){const {stylesMap:_0x1e0f44,localCSSVariables:_0x2acfee}=function(_0x9b9b2c){const _0x4f404e=_0x9b9b2c['element']['getAttribute']('style')||'',_0x39dd91=_0x9b9b2c['parsedCssRules']['filter'](_0x588f0d=>_0x9b9b2c['element']['matches'](_0x588f0d['flatSelector']))['map'](_0x177a04=>_0x177a04['stylesMap']),_0x2f6744=L(_0x9b9b2c['stylesProcessor'],[..._0x39dd91,_0x4f404e]);return{'localCSSVariables':p(_0x9b9b2c['fallbackCSSVariablesLookup'],_0x2f6744),'stylesMap':_0x2f6744};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x23f13d,'parsedCssRules':_0x474e6e,'element':_0x20a14c}),_0x2bbf71=[];for(const _0x1ee93c of _0x35fad0){const _0x5a8eb6=_0x1ee93c(_0x20a14c,_0x1e0f44,{'runAfterDocumentTransformation':_0x1d53bd,'runAfterChildrenTransformation':_0x8d8078=>{_0x2bbf71['unshift'](_0x8d8078);}});_0x5a8eb6&&_0x5a8eb6 instanceof HTMLElement&&(_0x20a14c=_0x5a8eb6);}_0x1e0f44['size']?_0x20a14c['setAttribute']('style',x(_0x1e0f44)):_0x20a14c['removeAttribute']('style');const _0x4c4209=_0x197dfc=>_0x2acfee['has'](_0x197dfc)?_0x2acfee['get'](_0x197dfc):_0x23f13d(_0x197dfc);for(const _0x3aa4c3 of _0x20a14c['children'])_0x3aa4c3 instanceof HTMLElement&&this['_processElementTree']({'element':_0x3aa4c3,'parsedCssRules':_0x474e6e,'stripCssClasses':_0x34627c,'transformations':_0x35fad0,'parentCSSVariablesLookup':_0x4c4209,'runAfterDocumentTransformation':_0x1d53bd});_0x34627c&&_0x20a14c['removeAttribute']('class');for(const _0x299412 of _0x2bbf71)_0x299412();}};function x(_0x1368ad){return _0x1368ad['getStylesEntries']()['map'](_0x45152c=>_0x45152c['join'](':'))['join'](';')+';';}var C=class extends _0x3d6192{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(_0x2c5b57){const _0x496caf='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0x3d7dcd=0x78df8,_0x34372d=window['Date']['now'](),_0x86fa4e=_0x2c5b57['editor'],_0x9ccb9c=new window['Promise'](_0x5d2296=>{_0x86fa4e['once']('ready',_0x5d2296);}),_0x2f5824={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x16a134=_0x86fa4e['config']['get']('licenseKey');async function _0x5dbc4e(){let _0x201ba4,_0x4b7009=null,_0x32711=null;try{return'GPL'==_0x16a134?'NotAllowed':(_0x201ba4=_0x16db85(),_0x201ba4?(_0x201ba4['usageEndpoint']&&(_0x32711=_0x4a10ae(_0x201ba4['usageEndpoint'],_0x201ba4['jti'])),await _0x2d8c2e()?_0x587d10()?_0x5822a3()?'Expired':_0x559f04()?('evaluation'==_0x201ba4['licenseType']&&(_0x4b7009=_0x5124e6('EvaluationLimit')),await _0x4d2c84()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5822a3(){const _0x4a82ac=['evaluation','trial']['includes'](_0x201ba4['licenseType'])?_0x34372d/0x3e8:0xe10*_0x3d7dcd;return _0x201ba4['exp']<_0x4a82ac;}function _0x587d10(){const _0x434279=_0x201ba4['features'];return!!_0x434279&&(!!_0x434279['includes']('*')||!!_0x434279['includes']('EIS'));}function _0x559f04(){const _0x5f483b=_0x201ba4['licensedHosts'];if(!_0x5f483b||0x0==_0x5f483b['length'])return!0x0;const {hostname:_0x273e7d}=new URL(window['location']['href']);if(_0x5f483b['includes'](_0x273e7d))return!0x0;const _0x12fe0f=_0x273e7d['split']('.');return _0x5f483b['filter'](_0x82c2fb=>_0x82c2fb['includes']('*'))['map'](_0x25dd3c=>_0x25dd3c['split']('.'))['filter'](_0x3ed619=>_0x3ed619['length']<=_0x12fe0f['length'])['map'](_0x445f37=>Array(_0x12fe0f['length']-_0x445f37['length'])['fill']('*'===_0x445f37[0x0]?'*':'')['concat'](_0x445f37))['some'](_0x34ff76=>_0x12fe0f['every']((_0x425ea4,_0x7c4d82)=>_0x34ff76[_0x7c4d82]===_0x425ea4||'*'===_0x34ff76[_0x7c4d82]));}function _0x4d2c84(){return _0x4b7009&&_0x32711?new window['Promise']((_0x454340,_0x4a0fd9)=>{_0x4b7009['then'](_0x454340,_0x4a0fd9),_0x32711['then'](_0x198a17=>{'Valid'!=_0x198a17&&_0x454340(_0x198a17);},_0x4a0fd9);}):_0x4b7009||_0x32711||'Valid';}}function _0x4a10ae(_0xb9ac16,_0x2d09f5){return new window['Promise'](_0x7f1fd9=>{if(_0x3606ff())return _0x7f1fd9('Valid');_0x2a62fb(),_0x86fa4e['decorate']('_sendUsageRequest');let _0x3d3d44=!0x1;const _0x4dd1a5=_0x40ef7c();function _0x42b720(_0x1837e7){return!!_0x1837e7&&('object'==typeof _0x1837e7||'function'==typeof _0x1837e7)&&'function'==typeof _0x1837e7['then']&&'function'==typeof _0x1837e7['catch'];}function _0x408252(_0x8eceb4){_0x1aa376(_0x8eceb4)['then'](_0x45197b=>_0x45197b&&'ok'==_0x45197b['status']?_0x4f58fb(_0xde5551(_0x4dd1a5+_0x2d09f5))!=_0x45197b['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x486770=>(_0x339339(),_0x486770),()=>{const _0x2808f9=_0x542c51();return null==_0x2808f9?(_0x339339(),'Valid'):_0x34372d-_0x2808f9>0x240c8400?'UsageLimit':'Valid';})['then'](_0x7f1fd9)['catch'](()=>{_0x7f1fd9('UsageLimit');});const _0x2f2982=0x36ee80;function _0x339339(){const _0x137f71='llct-'+_0x4f58fb(_0xde5551(_0xb9ac16)),_0x3a8da2=_0x2a3b25(_0x4f58fb(window['Math']['ceil'](_0x34372d/_0x2f2982)));window['localStorage']['setItem'](_0x137f71,_0x3a8da2);}function _0x542c51(){const _0x1d9fc2='llct-'+_0x4f58fb(_0xde5551(_0xb9ac16)),_0x59cf29=window['localStorage']['getItem'](_0x1d9fc2);return _0x59cf29?window['parseInt'](_0x2a3b25(_0x59cf29),0x10)*_0x2f2982:null;}function _0x1aa376(_0x1294f3){return new window['Promise']((_0x7bdec6,_0xfd14fd)=>{_0x1294f3['then'](_0x7bdec6,_0xfd14fd),window['setTimeout'](_0xfd14fd,0x1d4c0);});}}_0x86fa4e['on']('_sendUsageRequest',(_0x1be4c1,_0x4e6d35)=>{if(_0x4e6d35[0x0]!=_0xb9ac16)return _0x7f1fd9('UsageLimit');_0x4e6d35[0x1]={..._0x4e6d35[0x1],'requestId':_0x4dd1a5};},{'priority':'high'}),_0x86fa4e['on']('_sendUsageRequest',_0x5f399e=>{_0x42b720(_0x5f399e['return'])&&(_0x3d3d44=!0x0,_0x408252(_0x5f399e['return']));},{'priority':'low'}),_0x9ccb9c['then'](()=>{_0x3d3d44||_0x7f1fd9('UsageLimit');});});function _0x3606ff(){return'auto'==_0x86fa4e['editing']['view']['_overlayModeHint'];}function _0x2a62fb(){_0x86fa4e['editing']['view']['_overlayModeHint']='auto';}}function _0x5124e6(_0x1256c5){const _0x194e55=[new window['Promise'](_0x4b0c76=>setTimeout(_0x4b0c76,0x93ecc)),_0x9ccb9c['then'](()=>new window['Promise'](_0xd27441=>{let _0x95464c=0x0;_0x86fa4e['model']['on']('applyOperation',(_0x168035,_0x4d34fb)=>{_0x4d34fb[0x0]['isDocumentOperation']&&_0x95464c++,0x5e8==_0x95464c&&(_0xd27441(),_0x168035['off']());});}))];return window['Promise']['race'](_0x194e55)['then'](()=>_0x1256c5);}async function _0x2814ad(){await _0x9ccb9c;const _0x4f359f=_0x86fa4e['commands']['get']('exportInlineStyles');_0x4f359f&&_0x4f359f['on']('execute',_0x4bc173=>{_0x4bc173['stop']();},{'priority':'highest'}),_0x86fa4e['model']['change']=_0x4500d3,_0x86fa4e['model']['enqueueChange']=_0x4500d3,_0x86fa4e['enableReadOnlyMode']('model');}function _0x4ef10c(_0x362172){const _0x3d952e=_0x376d4f();_0x86fa4e[_0x3d952e]='exportInlineStylesLicenseKey'+_0x362172,'Valid'!=_0x362172&&_0x2814ad();}function _0x376d4f(){const _0x48683e=window['String'](window['performance']['now']())['replace']('.','');let _0x2e025e='D';for(let _0x1c908d=0x0;_0x1c908d<_0x48683e['length'];_0x1c908d+=0x2){let _0x1e8719=window['parseInt'](_0x48683e['substring'](_0x1c908d,_0x1c908d+0x2));_0x1e8719>=0x3e&&(_0x1e8719-=0x3e),_0x2e025e+=_0x496caf[_0x1e8719];}return _0x2e025e;}function _0x16db85(){const _0xf87826=_0x16a134['split']('.');if(0x3!=_0xf87826['length'])return null;return _0x2b8227(_0xf87826[0x1]);function _0x2b8227(_0x584763){const _0x2b0847=_0x1a17b9(_0x584763);return _0x2b0847&&_0x53c998()?_0x2b0847:null;function _0x53c998(){const _0x267711=_0x2b0847['jti'],_0x545892=window['parseInt'](_0x267711['substring'](_0x267711['length']-0x8),0x10),_0x5a6c7a={..._0x2b0847,'jti':_0x267711['substring'](0x0,_0x267711['length']-0x8)};return delete _0x5a6c7a['vc'],_0xde5551(_0x5a6c7a)==_0x545892;}}}async function _0x2d8c2e(){let _0x280824=!0x0;try{const [_0x2755a2,_0x55115e,_0x236fcb]=_0x16a134['split']('.');return _0x5d6d58(_0x2755a2),await _0x36c7b0(_0x2755a2,_0x55115e,_0x236fcb),_0x280824;}catch{return!0x1;}function _0x5d6d58(_0x5233f6){const _0x2476e9=_0x1a17b9(_0x5233f6);_0x2476e9&&'ES256'==_0x2476e9['alg']||(_0x280824=!0x1);}async function _0x36c7b0(_0x4af35f,_0x3738df,_0x12d535){const _0x258be1=window['Uint8Array']['from'](_0x98ac8c(_0x12d535),_0x3f02d0=>_0x3f02d0['charCodeAt'](0x0)),_0x7bc427=new window['TextEncoder']()['encode'](_0x4af35f+'.'+_0x3738df),_0x18c3f0=window['crypto']['subtle'];if(!_0x18c3f0)return;const _0x307f4b=await _0x18c3f0['importKey']('jwk',_0x2f5824,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x18c3f0['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x307f4b,_0x258be1,_0x7bc427)||(_0x280824=!0x1);}}function _0x1a17b9(_0x5be523){return _0x5be523['startsWith']('ey')?JSON['parse'](_0x98ac8c(_0x5be523)):null;}function _0x98ac8c(_0x10b607){return window['atob'](_0x10b607['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xde5551(_0x198bb3){let _0x1552df=0x1505;function _0x10d1de(_0x43bc7c){for(let _0x5cd6de=0x0;_0x5cd6de<_0x43bc7c['length'];_0x5cd6de++){const _0x43c152=_0x43bc7c['charCodeAt'](_0x5cd6de);_0x1552df=(_0x1552df<<0x5)+_0x1552df+_0x43c152,_0x1552df&=_0x1552df;}}function _0x4d3274(_0x44ade3){Array['isArray'](_0x44ade3)?_0x44ade3['forEach'](_0x4d3274):_0x44ade3&&'object'==typeof _0x44ade3?Object['entries'](_0x44ade3)['sort']()['forEach'](([_0x27a96a,_0x246df3])=>{_0x10d1de(_0x27a96a),_0x4d3274(_0x246df3);}):_0x10d1de(window['String'](_0x44ade3));}return _0x4d3274(_0x198bb3),_0x1552df>>>0x0;}function _0x4f58fb(_0x212cc4){return _0x212cc4['toString'](0x10)['padStart'](0x8,'0');}function _0x2a3b25(_0x537f50){return _0x537f50['split']('')['reverse']()['join']('');}function _0x4500d3(){}_0x4ef10c(await _0x5dbc4e());}(this);}},I=class extends _0x3d6192{['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 _0x3bbb79=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5dc058;for(const _0x4a1051 in _0x3bbb79){const _0x5dfcde=_0x4a1051,_0x4dc611=_0x3bbb79[_0x5dfcde];if('exportInlineStylesLicenseKeyValid'==_0x4dc611||'exportInlineStylesLicenseKeyInvalid'==_0x4dc611||'exportInlineStylesLicenseKeyExpired'==_0x4dc611||'exportInlineStylesLicenseKeyDomainLimit'==_0x4dc611||'exportInlineStylesLicenseKeyNotAllowed'==_0x4dc611||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x4dc611||'exportInlineStylesLicenseKeyUsageLimit'==_0x4dc611){delete _0x3bbb79[_0x5dfcde],_0x5dc058=_0x4dc611,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x5dc058&&_0x3bbb79['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x5dc058&&_0x3bbb79['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x5dc058&&_0x3bbb79['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x5dc058&&_0x3bbb79['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x5dc058&&_0x3bbb79['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x5dc058&&_0x3bbb79['_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 _0xcb9f37,Plugin as _0x391c8a}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x5d9dd7,createElement as _0x264709,uid as _0xa603fc}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x10c871,addMarginStylesRules as _0x529e78,addPaddingStylesRules as _0x3276f5}from'@ckeditor/ckeditor5-engine';import{calculate as _0x1f4e36,compare as _0x488cbf}from'specificity';function f(_0x34ae3c){const _0x55dec8=[];let _0x59070d='',_0x2b8f40=0x0;for(;_0x2b8f40<_0x34ae3c['length'];){const _0x3f09e0=_0x34ae3c[_0x2b8f40];if('('===_0x3f09e0){const _0x42697c=y(_0x34ae3c,_0x2b8f40+0x1);if(-0x1===_0x42697c)return[];_0x59070d+=_0x34ae3c['slice'](_0x2b8f40,_0x42697c+0x1),_0x2b8f40=_0x42697c+0x1;}else','!==_0x3f09e0||_0x59070d['endsWith']('\x5c')?(_0x59070d+=_0x3f09e0,_0x2b8f40++):(_0x55dec8['push'](_0x59070d['trim']()),_0x59070d='',_0x2b8f40++);}return _0x59070d['trim']()&&_0x55dec8['push'](_0x59070d['trim']()),_0x55dec8['filter'](Boolean);}function y(_0x1b0b95,_0x152c76){let _0x4fe0e0=0x1;for(let _0x53f3c1=_0x152c76;_0x53f3c1<_0x1b0b95['length'];_0x53f3c1++){const _0x275332=_0x1b0b95[_0x53f3c1];if('('===_0x275332)_0x4fe0e0++;else{if(')'===_0x275332&&(_0x4fe0e0--,0x0===_0x4fe0e0))return _0x53f3c1;}}return-0x1;}function d(_0x291cd1){return _0x291cd1['replace'](/!\s*important/i,'')['trim']();}function w(_0x3fbd98){const _0x4033d3=new Map();for(const {stylesMap:_0x59fad2,flatSelector:_0x54a636}of _0x3fbd98){if(':root'!==_0x54a636)continue;const _0x11a47b=p(_0x4033d3['get']['bind'](_0x4033d3),_0x59fad2);for(const [_0x197e28,_0x6c44f1]of _0x11a47b)_0x4033d3['set'](_0x197e28,_0x6c44f1);}return _0x4033d3;}function p(_0x30d0fc,_0x5a4c66){const _0xb097e0=new Map(),_0x902617=_0x3af45e=>_0xb097e0['has'](_0x3af45e)?_0xb097e0['get'](_0x3af45e):_0x30d0fc(_0x3af45e);for(const [_0x5db60c,_0x3787b9]of _0x5a4c66['getStylesEntries']())if(_0x3787b9&&_0x5db60c['startsWith']('--')){const _0x1dac50=m(_0x902617,_0x3787b9);_0xb097e0['set'](_0x5db60c,_0x1dac50),_0x5a4c66['remove'](_0x5db60c);}for(const [_0x585a13,_0x5a5501]of _0x5a4c66['getStylesEntries']())if(_0x5a5501){const _0x4cdde9=m(_0x902617,_0x5a5501);_0x5a4c66['set'](_0x585a13,_0x4cdde9);}return _0xb097e0;}function m(_0x51f3a1,_0x32aa3b){return function(_0x470b7d,_0x1d95c7){let _0x3c7dac='',_0x134ba8=0x0;for(;_0x134ba8<_0x470b7d['length'];){const _0x1d00dd=_0x470b7d['indexOf']('var(',_0x134ba8);if(-0x1===_0x1d00dd){_0x3c7dac+=_0x470b7d['slice'](_0x134ba8);break;}_0x3c7dac+=_0x470b7d['slice'](_0x134ba8,_0x1d00dd);const _0x4822da=_0x1d00dd+0x4,_0x967cc1=y(_0x470b7d,_0x4822da);_0x3c7dac+=_0x1d95c7(_0x470b7d['substring'](_0x4822da,_0x967cc1)),_0x134ba8=_0x967cc1+0x1;}return _0x3c7dac;}(_0x32aa3b,_0x360090=>{const [_0x28e44a,_0x4d88d0]=f(_0x360090),_0x2380fd=_0x51f3a1(_0x28e44a);return void 0x0!==_0x2380fd?_0x2380fd:_0x4d88d0?m(_0x51f3a1,_0x4d88d0):'var('+_0x28e44a+')';});}async function h(_0x5cf8a5){const _0x294ee3=[await _0x5d9dd7(_0x5cf8a5['stylesheets']),_0x5cf8a5['inlineCss']]['filter'](_0x229770=>_0x229770&&_0x229770['length'])['join']('\x0a'),_0x24f058=await async function(_0x4a52f6,_0x39f4f6){const _0x1c6def=new CSSStyleSheet();return await _0x1c6def['replace'](_0x39f4f6),S(Array['from'](_0x1c6def['cssRules'])['filter'](_0x2467e9=>_0x2467e9 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x2faaaf,contentCssText:_0x77a355})=>{const _0x69e74f=f(_0x2faaaf),_0x29b356=new _0x10c871(_0x4a52f6)['setTo'](_0x77a355);return _0x69e74f['map'](_0x47ddae=>{const _0x2fc5fd=function(_0x8cb937){const _0x22734e=':where(';let _0x3066aa=_0x8cb937,_0x1e68fb=0x0;for(let _0x1499f9=0x0;_0x1499f9<0x64;_0x1499f9++){const _0x17526f=_0x3066aa['indexOf'](_0x22734e,_0x1e68fb);if(-0x1===_0x17526f)break;let _0x34abd6=0x0;for(let _0x20bc3c=0x0;_0x20bc3c<_0x17526f;_0x20bc3c++)'('===_0x3066aa[_0x20bc3c]?_0x34abd6++:')'===_0x3066aa[_0x20bc3c]&&_0x34abd6--;if(_0x34abd6>0x0){_0x1e68fb=_0x17526f+0x7;continue;}let _0x4cb7b5=-0x1;for(let _0x2c1862=_0x17526f+0x7,_0x17655c=0x1;_0x2c1862<_0x3066aa['length'];_0x2c1862++)if('('===_0x3066aa[_0x2c1862]?_0x17655c++:')'===_0x3066aa[_0x2c1862]&&_0x17655c--,!_0x17655c){_0x4cb7b5=_0x2c1862;break;}-0x1!==_0x4cb7b5?(_0x3066aa=_0x3066aa['slice'](0x0,_0x17526f)+_0x3066aa['slice'](_0x4cb7b5+0x1),_0x1e68fb=_0x17526f):_0x1e68fb=_0x17526f+0x7;}return _0x3066aa['replace'](/\s+/g,'\x20')['trim']();}(_0x47ddae);return{'stylesMap':_0x29b356,'flatSelector':_0x47ddae,'specificity':_0x2fc5fd?_0x1f4e36(_0x2fc5fd)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0]};});})['sort']((_0xcc25bc,_0x2c2568)=>_0x488cbf(_0xcc25bc['specificity'],_0x2c2568['specificity']));}(_0x5cf8a5['stylesProcessor'],_0x294ee3);return{'parsedCssRules':_0x24f058,'rootCssVariables':w(_0x24f058)};}function S(_0x47683e,_0x2f6bbe=''){return _0x47683e['flatMap'](_0x49e62f=>{const {selectorText:_0x3073c9,cssText:_0x501fe2,cssRules:_0x5a58f1}=_0x49e62f;if(!_0x3073c9)return[];const _0x2a7ac3=_0x3073c9['replace'](/&/g,_0x2f6bbe);let _0x140d36=_0x501fe2['replace'](_0x3073c9,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x5a58f1||!_0x5a58f1['length'])return[{'selectorText':_0x2a7ac3,'contentCssText':_0x140d36}];for(const _0x563dff of _0x5a58f1)_0x140d36=_0x140d36['replace'](_0x563dff['cssText'],'')['trim']();return[{'selectorText':_0x2a7ac3,'contentCssText':_0x140d36},...S(Array['from'](_0x5a58f1),_0x2a7ac3)];});}function L(_0xad9a1e,_0x23fb0d){const _0x142744=new _0x10c871(_0xad9a1e);for(const _0x3f97de of _0x23fb0d){let _0x5e49a5=null;if(_0x5e49a5='string'==typeof _0x3f97de?new _0x10c871(_0xad9a1e)['setTo'](_0x3f97de):_0x3f97de,_0x5e49a5){for(const [_0x441fe8,_0x24975d]of _0x5e49a5['getStylesEntries']())_0x142744['set'](_0x441fe8,_0x24975d);}}return _0x142744;}var g=class extends _0xcb9f37{['_stylesProcessor'];constructor(_0x157aa2){super(_0x157aa2),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x529e78(this['_stylesProcessor']),_0x3276f5(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x710f7){const _0x1f8f46=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x3d770a}=this['editor']['locale'],{rootName:_0x3425f5='main',dataControllerDowncastOptions:_0x1b4207={},transformations:_0x285b82=_0x1f8f46['transformations']||[]}=_0x710f7||{};this['isBusy']=!0x0,this['refresh']();const _0x362aa6=this['_getRootDataHTMLFragment'](_0x3425f5,_0x1b4207),_0x530df0=_0x264709(_0x362aa6['ownerDocument'],'div',{'dir':_0x3d770a,'class':'ck-content'},[_0x362aa6]);return this['_collectAndApplyStyles'](_0x285b82,_0x530df0)['then'](()=>{const _0x12f0e8=function(_0x40b535){const _0x565ce2=_0x40b535['ownerDocument']['createDocumentFragment']();for(;_0x40b535['firstChild'];)_0x565ce2['appendChild'](_0x40b535['firstChild']);return _0x565ce2;}(_0x530df0),_0x3cc34a=_0x530df0['getAttribute']('style');if(_0x3cc34a)for(const _0x35cc27 of _0x12f0e8['children']){const _0x3469e1=_0x35cc27['getAttribute']('style'),_0x3bdf32=L(this['_stylesProcessor'],[_0x3cc34a,_0x3469e1]);_0x35cc27['setAttribute']('style',x(_0x3bdf32));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x12f0e8);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x5726eb,_0x3a88d8){const {data:_0x57687c,model:_0x3fc4b1}=this['editor'],_0x53a9c7=_0x3fc4b1['document']['getRoot'](_0x5726eb),_0x1cb1d6=_0x57687c['toView'](_0x53a9c7,_0x3a88d8);return _0x57687c['htmlProcessor']['domConverter']['viewToDom'](_0x1cb1d6);}async['_collectAndApplyStyles'](_0x67f7ba,_0x5e7534){const {stylesheets:_0x4d1cb3,inlineCss:_0x596a50,stripCssClasses:_0x118076}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x6baef7,rootCssVariables:_0x14bc57}=await h({'stylesheets':_0x4d1cb3||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x596a50}),_0x55454a=[];this['_processElementTree']({'transformations':_0x67f7ba,'parsedCssRules':_0x6baef7,'element':_0x5e7534,'stripCssClasses':_0x118076,'parentCSSVariablesLookup':_0x14bc57['get']['bind'](_0x14bc57),'runAfterDocumentTransformation':_0x2501da=>{_0x55454a['unshift'](_0x2501da);}});for(const _0x24ed31 of _0x55454a)_0x24ed31();}['_processElementTree']({element:_0x4f02d7,parsedCssRules:_0x4ec0e2,parentCSSVariablesLookup:_0x3cdfd4,runAfterDocumentTransformation:_0x19c215,stripCssClasses:_0x32a8e6,transformations:_0xcacb53}){const {stylesMap:_0x11e65f,localCSSVariables:_0x54c9c3}=function(_0xb51c99){const _0x17057a=_0xb51c99['element']['getAttribute']('style')||'',_0x5c7464=_0xb51c99['parsedCssRules']['filter'](_0x349b2c=>_0xb51c99['element']['matches'](_0x349b2c['flatSelector']))['map'](_0x2eb8e4=>_0x2eb8e4['stylesMap']),_0x1eed6b=L(_0xb51c99['stylesProcessor'],[..._0x5c7464,_0x17057a]);return{'localCSSVariables':p(_0xb51c99['fallbackCSSVariablesLookup'],_0x1eed6b),'stylesMap':_0x1eed6b};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x3cdfd4,'parsedCssRules':_0x4ec0e2,'element':_0x4f02d7}),_0x5b73c7=[];for(const _0x33bfef of _0xcacb53){const _0x56eca5=_0x33bfef(_0x4f02d7,_0x11e65f,{'runAfterDocumentTransformation':_0x19c215,'runAfterChildrenTransformation':_0x328a65=>{_0x5b73c7['unshift'](_0x328a65);}});_0x56eca5&&_0x56eca5 instanceof HTMLElement&&(_0x4f02d7=_0x56eca5);}_0x11e65f['size']?_0x4f02d7['setAttribute']('style',x(_0x11e65f)):_0x4f02d7['removeAttribute']('style');const _0x3203a4=_0x5ad77e=>_0x54c9c3['has'](_0x5ad77e)?_0x54c9c3['get'](_0x5ad77e):_0x3cdfd4(_0x5ad77e);for(const _0x5d4cf0 of _0x4f02d7['children'])_0x5d4cf0 instanceof HTMLElement&&this['_processElementTree']({'element':_0x5d4cf0,'parsedCssRules':_0x4ec0e2,'stripCssClasses':_0x32a8e6,'transformations':_0xcacb53,'parentCSSVariablesLookup':_0x3203a4,'runAfterDocumentTransformation':_0x19c215});_0x32a8e6&&_0x4f02d7['removeAttribute']('class');for(const _0x4095a3 of _0x5b73c7)_0x4095a3();}};function x(_0x5cddf1){return _0x5cddf1['getStylesEntries']()['map'](_0x3c7050=>_0x3c7050['join'](':'))['join'](';')+';';}var C=class extends _0x391c8a{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(_0x36eb9f){const _0x126562='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0x3ca98d=0x78e10,_0x41a316=window['Date']['now'](),_0x22c7ba=_0x36eb9f['editor'],_0x4cd4d3=new window['Promise'](_0x37fc8a=>{_0x22c7ba['once']('ready',_0x37fc8a);}),_0x1e9fdd={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x4261ca=_0x22c7ba['config']['get']('licenseKey');async function _0x336658(){let _0x540f6a,_0x276386=null,_0x2921ba=null;try{return'GPL'==_0x4261ca?'NotAllowed':(_0x540f6a=_0x739017(),_0x540f6a?(_0x540f6a['usageEndpoint']&&(_0x2921ba=_0x97523c(_0x540f6a['usageEndpoint'],_0x540f6a['jti'])),await _0x492621()?_0xd5c2c5()?_0x13265a()?'Expired':_0x239702()?('evaluation'==_0x540f6a['licenseType']&&(_0x276386=_0x439f1c('EvaluationLimit')),await _0x4c7a05()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x13265a(){const _0x25464e=['evaluation','trial']['includes'](_0x540f6a['licenseType'])?_0x41a316/0x3e8:0xe10*_0x3ca98d;return _0x540f6a['exp']<_0x25464e;}function _0xd5c2c5(){const _0x25f425=_0x540f6a['features'];return!!_0x25f425&&(!!_0x25f425['includes']('*')||!!_0x25f425['includes']('EIS'));}function _0x239702(){const _0x4d3bfe=_0x540f6a['licensedHosts'];if(!_0x4d3bfe||0x0==_0x4d3bfe['length'])return!0x0;const {hostname:_0x428341}=new URL(window['location']['href']);if(_0x4d3bfe['includes'](_0x428341))return!0x0;const _0x1bd6f0=_0x428341['split']('.');return _0x4d3bfe['filter'](_0xd6a507=>_0xd6a507['includes']('*'))['map'](_0x4e66bb=>_0x4e66bb['split']('.'))['filter'](_0x3adf11=>_0x3adf11['length']<=_0x1bd6f0['length'])['map'](_0x36a7b7=>Array(_0x1bd6f0['length']-_0x36a7b7['length'])['fill']('*'===_0x36a7b7[0x0]?'*':'')['concat'](_0x36a7b7))['some'](_0x197922=>_0x1bd6f0['every']((_0x59a216,_0x32e6f0)=>_0x197922[_0x32e6f0]===_0x59a216||'*'===_0x197922[_0x32e6f0]));}function _0x4c7a05(){return _0x276386&&_0x2921ba?new window['Promise']((_0x67b4e0,_0x2a9960)=>{_0x276386['then'](_0x67b4e0,_0x2a9960),_0x2921ba['then'](_0x14204c=>{'Valid'!=_0x14204c&&_0x67b4e0(_0x14204c);},_0x2a9960);}):_0x276386||_0x2921ba||'Valid';}}function _0x97523c(_0x188e88,_0x12583a){return new window['Promise'](_0x2ed5f9=>{if(_0x3ed20e())return _0x2ed5f9('Valid');_0x544ab2(),_0x22c7ba['decorate']('_sendUsageRequest');let _0x302815=!0x1;const _0x37f451=_0xa603fc();function _0x27ab20(_0x69083f){return!!_0x69083f&&('object'==typeof _0x69083f||'function'==typeof _0x69083f)&&'function'==typeof _0x69083f['then']&&'function'==typeof _0x69083f['catch'];}function _0x4df469(_0x2de1cd){_0x1ddd48(_0x2de1cd)['then'](_0x47a6ba=>_0x47a6ba&&'ok'==_0x47a6ba['status']?_0x55b83d(_0x312257(_0x37f451+_0x12583a))!=_0x47a6ba['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4a2fd1=>(_0x425be4(),_0x4a2fd1),()=>{const _0x46585b=_0x45197();return null==_0x46585b?(_0x425be4(),'Valid'):_0x41a316-_0x46585b>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2ed5f9)['catch'](()=>{_0x2ed5f9('UsageLimit');});const _0x497cc9=0x36ee80;function _0x425be4(){const _0x40fc9d='llct-'+_0x55b83d(_0x312257(_0x188e88)),_0x30276d=_0xe2d965(_0x55b83d(window['Math']['ceil'](_0x41a316/_0x497cc9)));window['localStorage']['setItem'](_0x40fc9d,_0x30276d);}function _0x45197(){const _0x89ed87='llct-'+_0x55b83d(_0x312257(_0x188e88)),_0x4a7202=window['localStorage']['getItem'](_0x89ed87);return _0x4a7202?window['parseInt'](_0xe2d965(_0x4a7202),0x10)*_0x497cc9:null;}function _0x1ddd48(_0x1457ee){return new window['Promise']((_0x3420bf,_0x3b0f60)=>{_0x1457ee['then'](_0x3420bf,_0x3b0f60),window['setTimeout'](_0x3b0f60,0x1d4c0);});}}_0x22c7ba['on']('_sendUsageRequest',(_0x510027,_0x3cea2e)=>{if(_0x3cea2e[0x0]!=_0x188e88)return _0x2ed5f9('UsageLimit');_0x3cea2e[0x1]={..._0x3cea2e[0x1],'requestId':_0x37f451};},{'priority':'high'}),_0x22c7ba['on']('_sendUsageRequest',_0x14ba9b=>{_0x27ab20(_0x14ba9b['return'])&&(_0x302815=!0x0,_0x4df469(_0x14ba9b['return']));},{'priority':'low'}),_0x4cd4d3['then'](()=>{_0x302815||_0x2ed5f9('UsageLimit');});});function _0x3ed20e(){return'auto'==_0x22c7ba['editing']['view']['_overlayModeHint'];}function _0x544ab2(){_0x22c7ba['editing']['view']['_overlayModeHint']='auto';}}function _0x439f1c(_0x36fcb3){const _0x4b6078=[new window['Promise'](_0x4e06d7=>setTimeout(_0x4e06d7,0x93ecc)),_0x4cd4d3['then'](()=>new window['Promise'](_0x508165=>{let _0x2012e6=0x0;_0x22c7ba['model']['on']('applyOperation',(_0x3a2fb6,_0x52fbf4)=>{_0x52fbf4[0x0]['isDocumentOperation']&&_0x2012e6++,0x5e8==_0x2012e6&&(_0x508165(),_0x3a2fb6['off']());});}))];return window['Promise']['race'](_0x4b6078)['then'](()=>_0x36fcb3);}async function _0x8926d8(){await _0x4cd4d3;const _0x24b917=_0x22c7ba['commands']['get']('exportInlineStyles');_0x24b917&&_0x24b917['on']('execute',_0x3f39d7=>{_0x3f39d7['stop']();},{'priority':'highest'}),_0x22c7ba['model']['change']=_0x3e4546,_0x22c7ba['model']['enqueueChange']=_0x3e4546,_0x22c7ba['enableReadOnlyMode']('model');}function _0x820c61(_0x55f096){const _0x8d011f=_0x574344();_0x22c7ba[_0x8d011f]='exportInlineStylesLicenseKey'+_0x55f096,'Valid'!=_0x55f096&&_0x8926d8();}function _0x574344(){const _0x2e4c69=window['String'](window['performance']['now']())['replace']('.','');let _0x419524='D';for(let _0x565440=0x0;_0x565440<_0x2e4c69['length'];_0x565440+=0x2){let _0x3418a7=window['parseInt'](_0x2e4c69['substring'](_0x565440,_0x565440+0x2));_0x3418a7>=0x3e&&(_0x3418a7-=0x3e),_0x419524+=_0x126562[_0x3418a7];}return _0x419524;}function _0x739017(){const _0x2ef40a=_0x4261ca['split']('.');if(0x3!=_0x2ef40a['length'])return null;return _0x20b8b7(_0x2ef40a[0x1]);function _0x20b8b7(_0x2ce056){const _0x1f44b2=_0x1412cb(_0x2ce056);return _0x1f44b2&&_0x5c1215()?_0x1f44b2:null;function _0x5c1215(){const _0x3232cc=_0x1f44b2['jti'],_0x392294=window['parseInt'](_0x3232cc['substring'](_0x3232cc['length']-0x8),0x10),_0x318238={..._0x1f44b2,'jti':_0x3232cc['substring'](0x0,_0x3232cc['length']-0x8)};return delete _0x318238['vc'],_0x312257(_0x318238)==_0x392294;}}}async function _0x492621(){let _0x1d8354=!0x0;try{const [_0x378706,_0x18348c,_0x3ea3ec]=_0x4261ca['split']('.');return _0x115b7b(_0x378706),await _0xc5f4b0(_0x378706,_0x18348c,_0x3ea3ec),_0x1d8354;}catch{return!0x1;}function _0x115b7b(_0xe8c021){const _0x39adbe=_0x1412cb(_0xe8c021);_0x39adbe&&'ES256'==_0x39adbe['alg']||(_0x1d8354=!0x1);}async function _0xc5f4b0(_0x22f29a,_0x1630b9,_0x22ba32){const _0x570934=window['Uint8Array']['from'](_0x51e1a8(_0x22ba32),_0x2e88ff=>_0x2e88ff['charCodeAt'](0x0)),_0x90bf5f=new window['TextEncoder']()['encode'](_0x22f29a+'.'+_0x1630b9),_0x31eb49=window['crypto']['subtle'];if(!_0x31eb49)return;const _0x384d82=await _0x31eb49['importKey']('jwk',_0x1e9fdd,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x31eb49['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x384d82,_0x570934,_0x90bf5f)||(_0x1d8354=!0x1);}}function _0x1412cb(_0x359fa7){return _0x359fa7['startsWith']('ey')?JSON['parse'](_0x51e1a8(_0x359fa7)):null;}function _0x51e1a8(_0x4d9ba5){return window['atob'](_0x4d9ba5['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x312257(_0xd46323){let _0x31417b=0x1505;function _0xb878f5(_0xadabee){for(let _0x406769=0x0;_0x406769<_0xadabee['length'];_0x406769++){const _0x5571ed=_0xadabee['charCodeAt'](_0x406769);_0x31417b=(_0x31417b<<0x5)+_0x31417b+_0x5571ed,_0x31417b&=_0x31417b;}}function _0x1bff01(_0x141d0f){Array['isArray'](_0x141d0f)?_0x141d0f['forEach'](_0x1bff01):_0x141d0f&&'object'==typeof _0x141d0f?Object['entries'](_0x141d0f)['sort']()['forEach'](([_0x2e22a6,_0x9ad81e])=>{_0xb878f5(_0x2e22a6),_0x1bff01(_0x9ad81e);}):_0xb878f5(window['String'](_0x141d0f));}return _0x1bff01(_0xd46323),_0x31417b>>>0x0;}function _0x55b83d(_0x7281fc){return _0x7281fc['toString'](0x10)['padStart'](0x8,'0');}function _0xe2d965(_0x144784){return _0x144784['split']('')['reverse']()['join']('');}function _0x3e4546(){}_0x820c61(await _0x336658());}(this);}},I=class extends _0x391c8a{['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 _0x4645f0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2abbee;for(const _0x14dc1b in _0x4645f0){const _0xc7515e=_0x14dc1b,_0xbb5f83=_0x4645f0[_0xc7515e];if('exportInlineStylesLicenseKeyValid'==_0xbb5f83||'exportInlineStylesLicenseKeyInvalid'==_0xbb5f83||'exportInlineStylesLicenseKeyExpired'==_0xbb5f83||'exportInlineStylesLicenseKeyDomainLimit'==_0xbb5f83||'exportInlineStylesLicenseKeyNotAllowed'==_0xbb5f83||'exportInlineStylesLicenseKeyEvaluationLimit'==_0xbb5f83||'exportInlineStylesLicenseKeyUsageLimit'==_0xbb5f83){delete _0x4645f0[_0xc7515e],_0x2abbee=_0xbb5f83,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x2abbee&&_0x4645f0['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x2abbee&&_0x4645f0['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x2abbee&&_0x4645f0['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x2abbee&&_0x4645f0['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x2abbee&&_0x4645f0['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x2abbee&&_0x4645f0['_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.1",
3
+ "version": "48.3.0-alpha.3",
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.1",
38
- "@ckeditor/ckeditor5-engine": "48.3.0-alpha.1",
39
- "@ckeditor/ckeditor5-utils": "48.3.0-alpha.1",
37
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.3",
38
+ "@ckeditor/ckeditor5-engine": "48.3.0-alpha.3",
39
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.3",
40
40
  "specificity": "0.4.1"
41
41
  },
42
42
  "files": [