@ckeditor/ckeditor5-export-inline-styles 48.3.1 → 48.4.0-alpha.1

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 _0x9ab5a9,Plugin as _0x54c360}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x579cda,createElement as _0x51286b,uid as _0x2ef0cc}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x36f708,addMarginStylesRules as _0x311a1b,addPaddingStylesRules as _0x8d9f4e}from'@ckeditor/ckeditor5-engine';import{calculate as _0x5b61f7,compare as _0x396065}from'specificity';function f(_0x49ab3e){const _0x3f56f7=[];let _0x1e0901='',_0x4ef4be=0x0;for(;_0x4ef4be<_0x49ab3e['length'];){const _0x36567d=_0x49ab3e[_0x4ef4be];if('('===_0x36567d){const _0x2b3660=y(_0x49ab3e,_0x4ef4be+0x1);if(-0x1===_0x2b3660)return[];_0x1e0901+=_0x49ab3e['slice'](_0x4ef4be,_0x2b3660+0x1),_0x4ef4be=_0x2b3660+0x1;}else','!==_0x36567d||_0x1e0901['endsWith']('\x5c')?(_0x1e0901+=_0x36567d,_0x4ef4be++):(_0x3f56f7['push'](_0x1e0901['trim']()),_0x1e0901='',_0x4ef4be++);}return _0x1e0901['trim']()&&_0x3f56f7['push'](_0x1e0901['trim']()),_0x3f56f7['filter'](Boolean);}function y(_0x5195eb,_0x33efb1){let _0x17af21=0x1;for(let _0x39a893=_0x33efb1;_0x39a893<_0x5195eb['length'];_0x39a893++){const _0x1e2184=_0x5195eb[_0x39a893];if('('===_0x1e2184)_0x17af21++;else{if(')'===_0x1e2184&&(_0x17af21--,0x0===_0x17af21))return _0x39a893;}}return-0x1;}function d(_0x5c02c9){return _0x5c02c9['replace'](/!\s*important/i,'')['trim']();}function w(_0x46a86b){const _0x2230d8=new Map();for(const {stylesMap:_0x22f942,flatSelector:_0x55b002}of _0x46a86b){if(':root'!==_0x55b002)continue;const _0x57adfc=p(_0x2230d8['get']['bind'](_0x2230d8),_0x22f942);for(const [_0x108e4b,_0x1c3c83]of _0x57adfc)_0x2230d8['set'](_0x108e4b,_0x1c3c83);}return _0x2230d8;}function p(_0x13d12b,_0xfc07f6){const _0x4ce504=new Map(),_0x379b7c=_0x39924a=>_0x4ce504['has'](_0x39924a)?_0x4ce504['get'](_0x39924a):_0x13d12b(_0x39924a);for(const [_0x2ccdd3,_0x340d31]of _0xfc07f6['getStylesEntries']())if(_0x340d31&&_0x2ccdd3['startsWith']('--')){const _0x18b06e=m(_0x379b7c,_0x340d31);_0x4ce504['set'](_0x2ccdd3,_0x18b06e),_0xfc07f6['remove'](_0x2ccdd3);}for(const [_0x1d87cc,_0x4ceac8]of _0xfc07f6['getStylesEntries']())if(_0x4ceac8){const _0x5012f2=m(_0x379b7c,_0x4ceac8);_0xfc07f6['set'](_0x1d87cc,_0x5012f2);}return _0x4ce504;}function m(_0x4319fe,_0x16f477){return function(_0x5be8a7,_0x5aef02){let _0x278fe3='',_0x2c8535=0x0;for(;_0x2c8535<_0x5be8a7['length'];){const _0x3e1f05=_0x5be8a7['indexOf']('var(',_0x2c8535);if(-0x1===_0x3e1f05){_0x278fe3+=_0x5be8a7['slice'](_0x2c8535);break;}_0x278fe3+=_0x5be8a7['slice'](_0x2c8535,_0x3e1f05);const _0xf93ebd=_0x3e1f05+0x4,_0x2f982c=y(_0x5be8a7,_0xf93ebd);_0x278fe3+=_0x5aef02(_0x5be8a7['substring'](_0xf93ebd,_0x2f982c)),_0x2c8535=_0x2f982c+0x1;}return _0x278fe3;}(_0x16f477,_0x382e71=>{const [_0x3b1978,_0xa9c591]=f(_0x382e71),_0x13f786=_0x4319fe(_0x3b1978);return void 0x0!==_0x13f786?_0x13f786:_0xa9c591?m(_0x4319fe,_0xa9c591):'var('+_0x3b1978+')';});}async function h(_0x40ab56){const _0x168eb3=[await _0x579cda(_0x40ab56['stylesheets']),_0x40ab56['inlineCss']]['filter'](_0x57a29a=>_0x57a29a&&_0x57a29a['length'])['join']('\x0a'),_0x1f8ba4=await async function(_0xac6ea,_0x4dd3b9){const _0x5aee3a=new CSSStyleSheet();return await _0x5aee3a['replace'](_0x4dd3b9),S(Array['from'](_0x5aee3a['cssRules'])['filter'](_0x41d4b2=>_0x41d4b2 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x18a892,contentCssText:_0x525f0f})=>{const _0x359501=f(_0x18a892),_0xc13883=new _0x36f708(_0xac6ea)['setTo'](_0x525f0f);return _0x359501['map'](_0x755004=>{const _0x25b8c9=function(_0x28fa5d){const _0x3f25cf=':where(';let _0x1d3395=_0x28fa5d,_0x454fc5=0x0;for(let _0x19bc6d=0x0;_0x19bc6d<0x64;_0x19bc6d++){const _0x46daf8=_0x1d3395['indexOf'](_0x3f25cf,_0x454fc5);if(-0x1===_0x46daf8)break;let _0x17a90b=0x0;for(let _0x5d0950=0x0;_0x5d0950<_0x46daf8;_0x5d0950++)'('===_0x1d3395[_0x5d0950]?_0x17a90b++:')'===_0x1d3395[_0x5d0950]&&_0x17a90b--;if(_0x17a90b>0x0){_0x454fc5=_0x46daf8+0x7;continue;}let _0x15efe6=-0x1;for(let _0x3b7f75=_0x46daf8+0x7,_0x999aed=0x1;_0x3b7f75<_0x1d3395['length'];_0x3b7f75++)if('('===_0x1d3395[_0x3b7f75]?_0x999aed++:')'===_0x1d3395[_0x3b7f75]&&_0x999aed--,!_0x999aed){_0x15efe6=_0x3b7f75;break;}-0x1!==_0x15efe6?(_0x1d3395=_0x1d3395['slice'](0x0,_0x46daf8)+_0x1d3395['slice'](_0x15efe6+0x1),_0x454fc5=_0x46daf8):_0x454fc5=_0x46daf8+0x7;}return _0x1d3395['replace'](/\s+/g,'\x20')['trim']();}(_0x755004);return{'stylesMap':_0xc13883,'flatSelector':_0x755004,'specificity':_0x25b8c9?_0x5b61f7(_0x25b8c9)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0]};});})['sort']((_0x1b9039,_0xe62dec)=>_0x396065(_0x1b9039['specificity'],_0xe62dec['specificity']));}(_0x40ab56['stylesProcessor'],_0x168eb3);return{'parsedCssRules':_0x1f8ba4,'rootCssVariables':w(_0x1f8ba4)};}function S(_0x4c04a4,_0x3e98a3=''){return _0x4c04a4['flatMap'](_0xf30424=>{const {selectorText:_0x55b32c,cssText:_0x343dc6,cssRules:_0x3a8b0b}=_0xf30424;if(!_0x55b32c)return[];const _0x5a76f0=_0x55b32c['replace'](/&/g,_0x3e98a3);let _0x558dfe=_0x343dc6['replace'](_0x55b32c,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x3a8b0b||!_0x3a8b0b['length'])return[{'selectorText':_0x5a76f0,'contentCssText':_0x558dfe}];for(const _0x2bdb37 of _0x3a8b0b)_0x558dfe=_0x558dfe['replace'](_0x2bdb37['cssText'],'')['trim']();return[{'selectorText':_0x5a76f0,'contentCssText':_0x558dfe},...S(Array['from'](_0x3a8b0b),_0x5a76f0)];});}function L(_0x210022,_0x5622ac){const _0x3e2c5e=new _0x36f708(_0x210022);for(const _0x266090 of _0x5622ac){let _0x3b9756=null;if(_0x3b9756='string'==typeof _0x266090?new _0x36f708(_0x210022)['setTo'](_0x266090):_0x266090,_0x3b9756){for(const [_0x22325d,_0x9e191b]of _0x3b9756['getStylesEntries']())_0x3e2c5e['set'](_0x22325d,_0x9e191b);}}return _0x3e2c5e;}var g=class extends _0x9ab5a9{['_stylesProcessor'];constructor(_0x370901){super(_0x370901),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x311a1b(this['_stylesProcessor']),_0x8d9f4e(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x2b4dde){const _0x42416b=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x3e8f26}=this['editor']['locale'],{rootName:_0x5babd6='main',dataControllerDowncastOptions:_0x257672={},transformations:_0x253d28=_0x42416b['transformations']||[]}=_0x2b4dde||{};this['isBusy']=!0x0,this['refresh']();const _0x217e8e=this['_getRootDataHTMLFragment'](_0x5babd6,_0x257672),_0x1fbe2b=_0x51286b(_0x217e8e['ownerDocument'],'div',{'dir':_0x3e8f26,'class':'ck-content'},[_0x217e8e]);return this['_collectAndApplyStyles'](_0x253d28,_0x1fbe2b)['then'](()=>{const _0x1af7ad=function(_0x35a491){const _0x29398b=_0x35a491['ownerDocument']['createDocumentFragment']();for(;_0x35a491['firstChild'];)_0x29398b['appendChild'](_0x35a491['firstChild']);return _0x29398b;}(_0x1fbe2b),_0x372762=_0x1fbe2b['getAttribute']('style');if(_0x372762)for(const _0x549fe3 of _0x1af7ad['children']){const _0x46f714=_0x549fe3['getAttribute']('style'),_0x1fcc40=L(this['_stylesProcessor'],[_0x372762,_0x46f714]);_0x549fe3['setAttribute']('style',x(_0x1fcc40));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x1af7ad);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x5ebcb6,_0x535033){const {data:_0x40887a,model:_0x2afa17}=this['editor'],_0x2925df=_0x2afa17['document']['getRoot'](_0x5ebcb6),_0x510d94=_0x40887a['toView'](_0x2925df,_0x535033);return _0x40887a['htmlProcessor']['domConverter']['viewToDom'](_0x510d94);}async['_collectAndApplyStyles'](_0x5d4fd3,_0x1d4c29){const {stylesheets:_0x825905,inlineCss:_0x11a820,stripCssClasses:_0x5ece89}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x3d79ca,rootCssVariables:_0x56869c}=await h({'stylesheets':_0x825905||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x11a820}),_0x14f296=[];this['_processElementTree']({'transformations':_0x5d4fd3,'parsedCssRules':_0x3d79ca,'element':_0x1d4c29,'stripCssClasses':_0x5ece89,'parentCSSVariablesLookup':_0x56869c['get']['bind'](_0x56869c),'runAfterDocumentTransformation':_0x25e05b=>{_0x14f296['unshift'](_0x25e05b);}});for(const _0x998c5e of _0x14f296)_0x998c5e();}['_processElementTree']({element:_0x5253bb,parsedCssRules:_0x1aee60,parentCSSVariablesLookup:_0x2e9bb8,runAfterDocumentTransformation:_0x47c795,stripCssClasses:_0x55b92b,transformations:_0x2617a7}){const {stylesMap:_0x5d3501,localCSSVariables:_0x44cb04}=function(_0x2badb7){const _0x38cbae=_0x2badb7['element']['getAttribute']('style')||'',_0x483119=_0x2badb7['parsedCssRules']['filter'](_0x2d4bd4=>_0x2badb7['element']['matches'](_0x2d4bd4['flatSelector']))['map'](_0x15ce46=>_0x15ce46['stylesMap']),_0x52bc7a=L(_0x2badb7['stylesProcessor'],[..._0x483119,_0x38cbae]);return{'localCSSVariables':p(_0x2badb7['fallbackCSSVariablesLookup'],_0x52bc7a),'stylesMap':_0x52bc7a};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x2e9bb8,'parsedCssRules':_0x1aee60,'element':_0x5253bb}),_0x5366ad=[];for(const _0x5542f2 of _0x2617a7){const _0x3ffd4c=_0x5542f2(_0x5253bb,_0x5d3501,{'runAfterDocumentTransformation':_0x47c795,'runAfterChildrenTransformation':_0x1db253=>{_0x5366ad['unshift'](_0x1db253);}});_0x3ffd4c&&_0x3ffd4c instanceof HTMLElement&&(_0x5253bb=_0x3ffd4c);}_0x5d3501['size']?_0x5253bb['setAttribute']('style',x(_0x5d3501)):_0x5253bb['removeAttribute']('style');const _0x54e0fc=_0x5ae7d0=>_0x44cb04['has'](_0x5ae7d0)?_0x44cb04['get'](_0x5ae7d0):_0x2e9bb8(_0x5ae7d0);for(const _0x472607 of _0x5253bb['children'])_0x472607 instanceof HTMLElement&&this['_processElementTree']({'element':_0x472607,'parsedCssRules':_0x1aee60,'stripCssClasses':_0x55b92b,'transformations':_0x2617a7,'parentCSSVariablesLookup':_0x54e0fc,'runAfterDocumentTransformation':_0x47c795});_0x55b92b&&_0x5253bb['removeAttribute']('class');for(const _0x4467e5 of _0x5366ad)_0x4467e5();}};function x(_0xd883c5){return _0xd883c5['getStylesEntries']()['map'](_0x569a98=>_0x569a98['join'](':'))['join'](';')+';';}var C=class extends _0x54c360{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(_0x1aaeb0){const _0x51cde6='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0xed15f0=0x78fc0,_0x5e63d0=window['Date']['now'](),_0x38b334=_0x1aaeb0['editor'],_0x44bc59=new window['Promise'](_0x11fd7f=>{_0x38b334['once']('ready',_0x11fd7f);}),_0x26df77={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x5f04b6=_0x38b334['config']['get']('licenseKey');async function _0x15b180(){let _0x1db830,_0x326f03=null,_0x426bcb=null;try{return'GPL'==_0x5f04b6?'NotAllowed':(_0x1db830=_0x5518a3(),_0x1db830?(_0x1db830['usageEndpoint']&&(_0x426bcb=_0x5f2902(_0x1db830['usageEndpoint'],_0x1db830['jti'])),await _0x5ae356()?_0x15eff9()?_0x4660f6()?'Expired':_0x3ea06c()?('evaluation'==_0x1db830['licenseType']&&(_0x326f03=_0x49d778('EvaluationLimit')),await _0x380f7f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4660f6(){const _0x1fe3ba=['evaluation','trial']['includes'](_0x1db830['licenseType'])?_0x5e63d0/0x3e8:0xe10*_0xed15f0;return _0x1db830['exp']<_0x1fe3ba;}function _0x15eff9(){const _0xb589d4=_0x1db830['features'];return!!_0xb589d4&&(!!_0xb589d4['includes']('*')||!!_0xb589d4['includes']('EIS'));}function _0x3ea06c(){const _0x547ca8=_0x1db830['licensedHosts'];if(!_0x547ca8||0x0==_0x547ca8['length'])return!0x0;const {hostname:_0x562b41}=new URL(window['location']['href']);if(_0x547ca8['includes'](_0x562b41))return!0x0;const _0x4c6fe5=_0x562b41['split']('.');return _0x547ca8['filter'](_0x297018=>_0x297018['includes']('*'))['map'](_0x360ad6=>_0x360ad6['split']('.'))['filter'](_0x1ab8ca=>_0x1ab8ca['length']<=_0x4c6fe5['length'])['map'](_0xbe61d9=>Array(_0x4c6fe5['length']-_0xbe61d9['length'])['fill']('*'===_0xbe61d9[0x0]?'*':'')['concat'](_0xbe61d9))['some'](_0x584043=>_0x4c6fe5['every']((_0xd7aa52,_0x12ce1b)=>_0x584043[_0x12ce1b]===_0xd7aa52||'*'===_0x584043[_0x12ce1b]));}function _0x380f7f(){return _0x326f03&&_0x426bcb?new window['Promise']((_0x5e341f,_0x351659)=>{_0x326f03['then'](_0x5e341f,_0x351659),_0x426bcb['then'](_0x3ae8d6=>{'Valid'!=_0x3ae8d6&&_0x5e341f(_0x3ae8d6);},_0x351659);}):_0x326f03||_0x426bcb||'Valid';}}function _0x5f2902(_0x4c4577,_0x2c192f){return new window['Promise'](_0x2ff2fc=>{if(_0x4f0bae())return _0x2ff2fc('Valid');_0x18e798(),_0x38b334['decorate']('_sendUsageRequest');let _0x2968a5=!0x1;const _0x5f0c7d=_0x2ef0cc();function _0x501c14(_0x16da90){return!!_0x16da90&&('object'==typeof _0x16da90||'function'==typeof _0x16da90)&&'function'==typeof _0x16da90['then']&&'function'==typeof _0x16da90['catch'];}function _0x578be6(_0x1ef498){_0x4b813c(_0x1ef498)['then'](_0x1c04f1=>_0x1c04f1&&'ok'==_0x1c04f1['status']?_0x3becf4(_0x26c9d1(_0x5f0c7d+_0x2c192f))!=_0x1c04f1['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x32429d=>(_0x1ac28b(),_0x32429d),()=>{const _0x4e53d3=_0x261ebf();return null==_0x4e53d3?(_0x1ac28b(),'Valid'):_0x5e63d0-_0x4e53d3>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2ff2fc)['catch'](()=>{_0x2ff2fc('UsageLimit');});const _0x4e2226=0x36ee80;function _0x1ac28b(){const _0x50c478='llct-'+_0x3becf4(_0x26c9d1(_0x4c4577)),_0x128805=_0x55ad0e(_0x3becf4(window['Math']['ceil'](_0x5e63d0/_0x4e2226)));window['localStorage']['setItem'](_0x50c478,_0x128805);}function _0x261ebf(){const _0x55c066='llct-'+_0x3becf4(_0x26c9d1(_0x4c4577)),_0x193e0d=window['localStorage']['getItem'](_0x55c066);return _0x193e0d?window['parseInt'](_0x55ad0e(_0x193e0d),0x10)*_0x4e2226:null;}function _0x4b813c(_0x191c95){return new window['Promise']((_0x20b309,_0x45186c)=>{_0x191c95['then'](_0x20b309,_0x45186c),window['setTimeout'](_0x45186c,0x1d4c0);});}}_0x38b334['on']('_sendUsageRequest',(_0x189be6,_0x27967e)=>{if(_0x27967e[0x0]!=_0x4c4577)return _0x2ff2fc('UsageLimit');_0x27967e[0x1]={..._0x27967e[0x1],'requestId':_0x5f0c7d};},{'priority':'high'}),_0x38b334['on']('_sendUsageRequest',_0x1efbaa=>{_0x501c14(_0x1efbaa['return'])&&(_0x2968a5=!0x0,_0x578be6(_0x1efbaa['return']));},{'priority':'low'}),_0x44bc59['then'](()=>{_0x2968a5||_0x2ff2fc('UsageLimit');});});function _0x4f0bae(){return'auto'==_0x38b334['editing']['view']['_overlayModeHint'];}function _0x18e798(){_0x38b334['editing']['view']['_overlayModeHint']='auto';}}function _0x49d778(_0x382b46){const _0x2eea78=[new window['Promise'](_0x55490a=>setTimeout(_0x55490a,0x93ecc)),_0x44bc59['then'](()=>new window['Promise'](_0x315d35=>{let _0x2c4cae=0x0;_0x38b334['model']['on']('applyOperation',(_0x4aab27,_0xf75c)=>{_0xf75c[0x0]['isDocumentOperation']&&_0x2c4cae++,0x5e8==_0x2c4cae&&(_0x315d35(),_0x4aab27['off']());});}))];return window['Promise']['race'](_0x2eea78)['then'](()=>_0x382b46);}async function _0x121ce9(){await _0x44bc59;const _0x46831c=_0x38b334['commands']['get']('exportInlineStyles');_0x46831c&&_0x46831c['on']('execute',_0x37e287=>{_0x37e287['stop']();},{'priority':'highest'}),_0x38b334['model']['change']=_0x3ecbd5,_0x38b334['model']['enqueueChange']=_0x3ecbd5,_0x38b334['enableReadOnlyMode']('model');}function _0x230888(_0x2a7126){const _0x34fde1=_0x45476d();_0x38b334[_0x34fde1]='exportInlineStylesLicenseKey'+_0x2a7126,'Valid'!=_0x2a7126&&_0x121ce9();}function _0x45476d(){const _0x5b72e0=window['String'](window['performance']['now']())['replace']('.','');let _0x2c238c='D';for(let _0x5cea01=0x0;_0x5cea01<_0x5b72e0['length'];_0x5cea01+=0x2){let _0x2b6c51=window['parseInt'](_0x5b72e0['substring'](_0x5cea01,_0x5cea01+0x2));_0x2b6c51>=0x3e&&(_0x2b6c51-=0x3e),_0x2c238c+=_0x51cde6[_0x2b6c51];}return _0x2c238c;}function _0x5518a3(){const _0x4bb8b1=_0x5f04b6['split']('.');if(0x3!=_0x4bb8b1['length'])return null;return _0x4ff2f8(_0x4bb8b1[0x1]);function _0x4ff2f8(_0x4da14a){const _0xe23830=_0x387da9(_0x4da14a);return _0xe23830&&_0x391590()?_0xe23830:null;function _0x391590(){const _0x19d4f2=_0xe23830['jti'],_0x47ee32=window['parseInt'](_0x19d4f2['substring'](_0x19d4f2['length']-0x8),0x10),_0x393603={..._0xe23830,'jti':_0x19d4f2['substring'](0x0,_0x19d4f2['length']-0x8)};return delete _0x393603['vc'],_0x26c9d1(_0x393603)==_0x47ee32;}}}async function _0x5ae356(){let _0x59fb90=!0x0;try{const [_0x56d958,_0xe1054d,_0x53098e]=_0x5f04b6['split']('.');return _0x233214(_0x56d958),await _0xbcfe55(_0x56d958,_0xe1054d,_0x53098e),_0x59fb90;}catch{return!0x1;}function _0x233214(_0x17b596){const _0x262d9b=_0x387da9(_0x17b596);_0x262d9b&&'ES256'==_0x262d9b['alg']||(_0x59fb90=!0x1);}async function _0xbcfe55(_0x144b38,_0x395a0e,_0x25dac2){const _0x302e90=window['Uint8Array']['from'](_0x26c8d7(_0x25dac2),_0x2107f6=>_0x2107f6['charCodeAt'](0x0)),_0x3d18fd=new window['TextEncoder']()['encode'](_0x144b38+'.'+_0x395a0e),_0x2c91d2=window['crypto']['subtle'];if(!_0x2c91d2)return;const _0x51b946=await _0x2c91d2['importKey']('jwk',_0x26df77,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2c91d2['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x51b946,_0x302e90,_0x3d18fd)||(_0x59fb90=!0x1);}}function _0x387da9(_0x5f055e){return _0x5f055e['startsWith']('ey')?JSON['parse'](_0x26c8d7(_0x5f055e)):null;}function _0x26c8d7(_0x4e9fc0){return window['atob'](_0x4e9fc0['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x26c9d1(_0x5037d1){let _0xa390a8=0x1505;function _0x4af1c7(_0x48b61f){for(let _0x21fdea=0x0;_0x21fdea<_0x48b61f['length'];_0x21fdea++){const _0x53d34f=_0x48b61f['charCodeAt'](_0x21fdea);_0xa390a8=(_0xa390a8<<0x5)+_0xa390a8+_0x53d34f,_0xa390a8&=_0xa390a8;}}function _0x291968(_0x1dd1da){Array['isArray'](_0x1dd1da)?_0x1dd1da['forEach'](_0x291968):_0x1dd1da&&'object'==typeof _0x1dd1da?Object['entries'](_0x1dd1da)['sort']()['forEach'](([_0x224f86,_0x4188ef])=>{_0x4af1c7(_0x224f86),_0x291968(_0x4188ef);}):_0x4af1c7(window['String'](_0x1dd1da));}return _0x291968(_0x5037d1),_0xa390a8>>>0x0;}function _0x3becf4(_0x24118c){return _0x24118c['toString'](0x10)['padStart'](0x8,'0');}function _0x55ad0e(_0xee9975){return _0xee9975['split']('')['reverse']()['join']('');}function _0x3ecbd5(){}_0x230888(await _0x15b180());}(this);}},I=class extends _0x54c360{['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 _0x115b16=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39eb58;for(const _0x447c2a in _0x115b16){const _0x5b8b12=_0x447c2a,_0x5e31d2=_0x115b16[_0x5b8b12];if('exportInlineStylesLicenseKeyValid'==_0x5e31d2||'exportInlineStylesLicenseKeyInvalid'==_0x5e31d2||'exportInlineStylesLicenseKeyExpired'==_0x5e31d2||'exportInlineStylesLicenseKeyDomainLimit'==_0x5e31d2||'exportInlineStylesLicenseKeyNotAllowed'==_0x5e31d2||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x5e31d2||'exportInlineStylesLicenseKeyUsageLimit'==_0x5e31d2){delete _0x115b16[_0x5b8b12],_0x39eb58=_0x5e31d2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x39eb58&&_0x115b16['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x39eb58&&_0x115b16['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x39eb58&&_0x115b16['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x39eb58&&_0x115b16['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x39eb58&&_0x115b16['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x39eb58&&_0x115b16['_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 _0x105db4,Plugin as _0x57fc27}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x5e3616,createElement as _0x2815ca,uid as _0x5d2155}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x57ba7b,addMarginStylesRules as _0x523e4b,addPaddingStylesRules as _0x232b1f}from'@ckeditor/ckeditor5-engine';import{calculate as _0x128971,compare as _0x4144f5}from'specificity';function f(_0x5d8321){const _0x39da1e=[];let _0x15ecbf='',_0x4b7aa1=0x0;for(;_0x4b7aa1<_0x5d8321['length'];){const _0x2d18f9=_0x5d8321[_0x4b7aa1];if('('===_0x2d18f9){const _0x262631=y(_0x5d8321,_0x4b7aa1+0x1);if(-0x1===_0x262631)return[];_0x15ecbf+=_0x5d8321['slice'](_0x4b7aa1,_0x262631+0x1),_0x4b7aa1=_0x262631+0x1;}else','!==_0x2d18f9||_0x15ecbf['endsWith']('\x5c')?(_0x15ecbf+=_0x2d18f9,_0x4b7aa1++):(_0x39da1e['push'](_0x15ecbf['trim']()),_0x15ecbf='',_0x4b7aa1++);}return _0x15ecbf['trim']()&&_0x39da1e['push'](_0x15ecbf['trim']()),_0x39da1e['filter'](Boolean);}function y(_0x3b24f8,_0x31b487){let _0xb265ff=0x1;for(let _0x148f68=_0x31b487;_0x148f68<_0x3b24f8['length'];_0x148f68++){const _0x24c10f=_0x3b24f8[_0x148f68];if('('===_0x24c10f)_0xb265ff++;else{if(')'===_0x24c10f&&(_0xb265ff--,0x0===_0xb265ff))return _0x148f68;}}return-0x1;}function d(_0x23c83f){return _0x23c83f['replace'](/!\s*important/i,'')['trim']();}function w(_0x2aac89){const _0x22dba2=new Map();for(const {stylesMap:_0x187311,flatSelector:_0x5102c9}of _0x2aac89){if(':root'!==_0x5102c9)continue;const _0x1c8b8d=p(_0x22dba2['get']['bind'](_0x22dba2),_0x187311);for(const [_0x1cc500,_0x352701]of _0x1c8b8d)_0x22dba2['set'](_0x1cc500,_0x352701);}return _0x22dba2;}function p(_0x420b91,_0x5a1ac0){const _0x12578f=new Map(),_0x3adacf=_0x301ac1=>_0x12578f['has'](_0x301ac1)?_0x12578f['get'](_0x301ac1):_0x420b91(_0x301ac1);for(const [_0x565249,_0x2e431c]of _0x5a1ac0['getStylesEntries']())if(_0x2e431c&&_0x565249['startsWith']('--')){const _0x279828=m(_0x3adacf,_0x2e431c);_0x12578f['set'](_0x565249,_0x279828),_0x5a1ac0['remove'](_0x565249);}for(const [_0x17c58a,_0x22925f]of _0x5a1ac0['getStylesEntries']())if(_0x22925f){const _0x322c8e=m(_0x3adacf,_0x22925f);_0x5a1ac0['set'](_0x17c58a,_0x322c8e);}return _0x12578f;}function m(_0x9d0bc0,_0x58a489){return function(_0x11a795,_0x116ad7){let _0x413101='',_0x4833e6=0x0;for(;_0x4833e6<_0x11a795['length'];){const _0x3411fb=_0x11a795['indexOf']('var(',_0x4833e6);if(-0x1===_0x3411fb){_0x413101+=_0x11a795['slice'](_0x4833e6);break;}_0x413101+=_0x11a795['slice'](_0x4833e6,_0x3411fb);const _0x4053a9=_0x3411fb+0x4,_0x4c6d28=y(_0x11a795,_0x4053a9);_0x413101+=_0x116ad7(_0x11a795['substring'](_0x4053a9,_0x4c6d28)),_0x4833e6=_0x4c6d28+0x1;}return _0x413101;}(_0x58a489,_0x5ca719=>{const [_0x5a0aaf,_0x7c81d]=f(_0x5ca719),_0x38f413=_0x9d0bc0(_0x5a0aaf);return void 0x0!==_0x38f413?_0x38f413:_0x7c81d?m(_0x9d0bc0,_0x7c81d):'var('+_0x5a0aaf+')';});}async function h(_0x4a0751){const _0x3762e3=[await _0x5e3616(_0x4a0751['stylesheets']),_0x4a0751['inlineCss']]['filter'](_0x379d0f=>_0x379d0f&&_0x379d0f['length'])['join']('\x0a'),_0x11ab2b=await async function(_0x4ed6af,_0x4be2d6){const _0x340768=new CSSStyleSheet();return await _0x340768['replace'](_0x4be2d6),S(Array['from'](_0x340768['cssRules'])['filter'](_0x53661f=>_0x53661f instanceof CSSStyleRule))['flatMap'](({selectorText:_0x11f821,contentCssText:_0x90e9b6})=>{const _0x5b602f=f(_0x11f821),_0x4a630a=new _0x57ba7b(_0x4ed6af)['setTo'](_0x90e9b6);return _0x5b602f['map'](_0x1fc0ec=>{const _0x2b76eb=function(_0x169c44){const _0x2ba93a=':where(';let _0x39db42=_0x169c44,_0x29fc3e=0x0;for(let _0x5c4f53=0x0;_0x5c4f53<0x64;_0x5c4f53++){const _0x248849=_0x39db42['indexOf'](_0x2ba93a,_0x29fc3e);if(-0x1===_0x248849)break;let _0x1402c3=0x0;for(let _0x3143ae=0x0;_0x3143ae<_0x248849;_0x3143ae++)'('===_0x39db42[_0x3143ae]?_0x1402c3++:')'===_0x39db42[_0x3143ae]&&_0x1402c3--;if(_0x1402c3>0x0){_0x29fc3e=_0x248849+0x7;continue;}let _0x31d6f7=-0x1;for(let _0x1db471=_0x248849+0x7,_0x5c239b=0x1;_0x1db471<_0x39db42['length'];_0x1db471++)if('('===_0x39db42[_0x1db471]?_0x5c239b++:')'===_0x39db42[_0x1db471]&&_0x5c239b--,!_0x5c239b){_0x31d6f7=_0x1db471;break;}-0x1!==_0x31d6f7?(_0x39db42=_0x39db42['slice'](0x0,_0x248849)+_0x39db42['slice'](_0x31d6f7+0x1),_0x29fc3e=_0x248849):_0x29fc3e=_0x248849+0x7;}return _0x39db42['replace'](/\s+/g,'\x20')['trim']();}(_0x1fc0ec),_0x153a41=_0x2b76eb?_0x128971(_0x2b76eb)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x4a630a,'flatSelector':_0x1fc0ec,'specificity':_0x153a41};});})['sort']((_0x1bbddf,_0x49bea9)=>_0x4144f5(_0x1bbddf['specificity'],_0x49bea9['specificity']));}(_0x4a0751['stylesProcessor'],_0x3762e3);return{'parsedCssRules':_0x11ab2b,'rootCssVariables':w(_0x11ab2b)};}function S(_0x3b9525,_0x2e2253=''){return _0x3b9525['flatMap'](_0x581441=>{const {selectorText:_0x17890e,cssText:_0x31a993,cssRules:_0x308185}=_0x581441;if(!_0x17890e)return[];const _0x3cf8c1=_0x17890e['replace'](/&/g,_0x2e2253);let _0x1d295b=_0x31a993['replace'](_0x17890e,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x308185||!_0x308185['length'])return[{'selectorText':_0x3cf8c1,'contentCssText':_0x1d295b}];for(const _0x1a4d83 of _0x308185)_0x1d295b=_0x1d295b['replace'](_0x1a4d83['cssText'],'')['trim']();return[{'selectorText':_0x3cf8c1,'contentCssText':_0x1d295b},...S(Array['from'](_0x308185),_0x3cf8c1)];});}function L(_0x30f177,_0x368feb){const _0x38ea8a=new _0x57ba7b(_0x30f177);for(const _0x2272e0 of _0x368feb){let _0x3487e3;if(_0x3487e3='string'==typeof _0x2272e0?new _0x57ba7b(_0x30f177)['setTo'](_0x2272e0):_0x2272e0,_0x3487e3){for(const [_0x534362,_0x28b079]of _0x3487e3['getStylesEntries']())_0x38ea8a['set'](_0x534362,_0x28b079);}}return _0x38ea8a;}var g=class extends _0x105db4{_stylesProcessor;constructor(_0x36f312){super(_0x36f312),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x523e4b(this['_stylesProcessor']),_0x232b1f(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async execute(_0x1b9f93){const _0x1feb26=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x549a7f}=this['editor']['locale'],{rootName:_0x13d02f='main',dataControllerDowncastOptions:_0x384348={},transformations:_0x378f9b=_0x1feb26['transformations']||[]}=_0x1b9f93||{};this['isBusy']=!0x0,this['refresh']();const _0x37f7cd=this['_getRootDataHTMLFragment'](_0x13d02f,_0x384348),_0x4bfbd4=_0x2815ca(_0x37f7cd['ownerDocument'],'div',{'dir':_0x549a7f,'class':'ck-content'},[_0x37f7cd]);return this['_collectAndApplyStyles'](_0x378f9b,_0x4bfbd4)['then'](()=>{const _0x2f3249=function(_0x2cec76){const _0x1d3d1e=_0x2cec76['ownerDocument']['createDocumentFragment']();for(;_0x2cec76['firstChild'];)_0x1d3d1e['appendChild'](_0x2cec76['firstChild']);return _0x1d3d1e;}(_0x4bfbd4),_0x1e3806=_0x4bfbd4['getAttribute']('style');if(_0x1e3806)for(const _0x247fbc of _0x2f3249['children']){const _0x184cdd=_0x247fbc['getAttribute']('style'),_0x50c8eb=L(this['_stylesProcessor'],[_0x1e3806,_0x184cdd]);_0x247fbc['setAttribute']('style',x(_0x50c8eb));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x2f3249);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}_getRootDataHTMLFragment(_0x47dce2,_0x274aeb){const {data:_0x4411e9,model:_0x426c09}=this['editor'],_0x35d3e6=_0x426c09['document']['getRoot'](_0x47dce2),_0x421479=_0x4411e9['toView'](_0x35d3e6,_0x274aeb);return _0x4411e9['htmlProcessor']['domConverter']['viewToDom'](_0x421479);}async _collectAndApplyStyles(_0x55260c,_0x1d3015){const {stylesheets:_0x330cb9,inlineCss:_0xaf4a66,stripCssClasses:_0x5346c6}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x1f338b,rootCssVariables:_0x624d72}=await h({'stylesheets':_0x330cb9||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0xaf4a66}),_0xa3558e=[];this['_processElementTree']({'transformations':_0x55260c,'parsedCssRules':_0x1f338b,'element':_0x1d3015,'stripCssClasses':_0x5346c6,'parentCSSVariablesLookup':_0x624d72['get']['bind'](_0x624d72),'runAfterDocumentTransformation':_0x576fe1=>{_0xa3558e['unshift'](_0x576fe1);}});for(const _0x49661b of _0xa3558e)_0x49661b();}_processElementTree({element:_0x50d447,parsedCssRules:_0x4fa8a7,parentCSSVariablesLookup:_0xa13fe,runAfterDocumentTransformation:_0x30b961,stripCssClasses:_0x45a362,transformations:_0x12cdde}){const {stylesMap:_0x3bc282,localCSSVariables:_0x40c213}=function(_0x1c9257){const _0x5420fc=_0x1c9257['element']['getAttribute']('style')||'',_0x5e55ec=_0x1c9257['parsedCssRules']['filter'](_0x347d9b=>_0x1c9257['element']['matches'](_0x347d9b['flatSelector']))['map'](_0x3d256b=>_0x3d256b['stylesMap']),_0x442bf5=L(_0x1c9257['stylesProcessor'],[..._0x5e55ec,_0x5420fc]);return{'localCSSVariables':p(_0x1c9257['fallbackCSSVariablesLookup'],_0x442bf5),'stylesMap':_0x442bf5};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0xa13fe,'parsedCssRules':_0x4fa8a7,'element':_0x50d447}),_0x34fd43=[];for(const _0x338d7c of _0x12cdde){const _0x3e84ee=_0x338d7c(_0x50d447,_0x3bc282,{'runAfterDocumentTransformation':_0x30b961,'runAfterChildrenTransformation':_0x51cd92=>{_0x34fd43['unshift'](_0x51cd92);}});_0x3e84ee&&_0x3e84ee instanceof HTMLElement&&(_0x50d447=_0x3e84ee);}_0x3bc282['size']?_0x50d447['setAttribute']('style',x(_0x3bc282)):_0x50d447['removeAttribute']('style');const _0x28c4d7=_0x7be454=>_0x40c213['has'](_0x7be454)?_0x40c213['get'](_0x7be454):_0xa13fe(_0x7be454);for(const _0x38e0fd of _0x50d447['children'])_0x38e0fd instanceof HTMLElement&&this['_processElementTree']({'element':_0x38e0fd,'parsedCssRules':_0x4fa8a7,'stripCssClasses':_0x45a362,'transformations':_0x12cdde,'parentCSSVariablesLookup':_0x28c4d7,'runAfterDocumentTransformation':_0x30b961});_0x45a362&&_0x50d447['removeAttribute']('class');for(const _0x2b49ac of _0x34fd43)_0x2b49ac();}};function x(_0xe82948){return _0xe82948['getStylesEntries']()['map'](_0x4713ab=>_0x4713ab['join'](':'))['join'](';')+';';}var C=class extends _0x57fc27{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(_0x5518bf){const _0x1d893f='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0x2fa502=0x79140,_0x3172a5=window['Date']['now'](),_0xec9179=_0x5518bf['editor'],_0x3458bd=new window['Promise'](_0x9d04f8=>{_0xec9179['once']('ready',_0x9d04f8);}),_0x104e15={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x3ca0e9=_0xec9179['config']['get']('licenseKey');async function _0x36c673(){let _0x1fd516,_0x4691ea=null,_0x369d1a=null;try{return'GPL'==_0x3ca0e9?'NotAllowed':(_0x1fd516=_0x221436(),_0x1fd516?(_0x1fd516['usageEndpoint']&&(_0x369d1a=_0x233879(_0x1fd516['usageEndpoint'],_0x1fd516['jti'])),await _0x28e3a8()?_0x300038()?_0x474cd0()?'Expired':_0x3fedee()?('evaluation'==_0x1fd516['licenseType']&&(_0x4691ea=_0x1d6821('EvaluationLimit')),await _0x485fce()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x474cd0(){const _0x5616a3=['evaluation','trial']['includes'](_0x1fd516['licenseType'])?_0x3172a5/0x3e8:0xe10*_0x2fa502;return _0x1fd516['exp']<_0x5616a3;}function _0x300038(){const _0x28ae83=_0x1fd516['features'];return!!_0x28ae83&&(!!_0x28ae83['includes']('*')||!!_0x28ae83['includes']('EIS'));}function _0x3fedee(){const _0x1fd3c6=_0x1fd516['licensedHosts'];if(!_0x1fd3c6||0x0==_0x1fd3c6['length'])return!0x0;const {hostname:_0x239ce5}=new URL(window['location']['href']);if(_0x1fd3c6['includes'](_0x239ce5))return!0x0;const _0x485fa5=_0x239ce5['split']('.');return _0x1fd3c6['filter'](_0x5375b1=>_0x5375b1['includes']('*'))['map'](_0x4cf967=>_0x4cf967['split']('.'))['filter'](_0x31962b=>_0x31962b['length']<=_0x485fa5['length'])['map'](_0x3ac8d0=>Array(_0x485fa5['length']-_0x3ac8d0['length'])['fill']('*'===_0x3ac8d0[0x0]?'*':'')['concat'](_0x3ac8d0))['some'](_0x4f5c12=>_0x485fa5['every']((_0x5d9234,_0x4efce7)=>_0x4f5c12[_0x4efce7]===_0x5d9234||'*'===_0x4f5c12[_0x4efce7]));}function _0x485fce(){return _0x4691ea&&_0x369d1a?new window['Promise']((_0x78e7c4,_0x5dc9ae)=>{_0x4691ea['then'](_0x78e7c4,_0x5dc9ae),_0x369d1a['then'](_0xb96d31=>{'Valid'!=_0xb96d31&&_0x78e7c4(_0xb96d31);},_0x5dc9ae);}):_0x4691ea||_0x369d1a||'Valid';}}function _0x233879(_0x402c70,_0x3e0ead){return new window['Promise'](_0x73596f=>{if(_0x3a472a())return _0x73596f('Valid');_0x3c2e61(),_0xec9179['decorate']('_sendUsageRequest');let _0x4123f0=!0x1;const _0x1ddb5f=_0x5d2155();function _0x23504a(_0x37ae5d){return!!_0x37ae5d&&('object'==typeof _0x37ae5d||'function'==typeof _0x37ae5d)&&'function'==typeof _0x37ae5d['then']&&'function'==typeof _0x37ae5d['catch'];}function _0x2cde3a(_0x14a0ce){_0x4f8b10(_0x14a0ce)['then'](_0x39ade8=>_0x39ade8&&'ok'==_0x39ade8['status']?_0xacb626(_0x172eb4(_0x1ddb5f+_0x3e0ead))!=_0x39ade8['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x5e5602=>(_0x397bce(),_0x5e5602),()=>{const _0x43dc7c=_0x35c66e();return null==_0x43dc7c?(_0x397bce(),'Valid'):_0x3172a5-_0x43dc7c>0x240c8400?'UsageLimit':'Valid';})['then'](_0x73596f)['catch'](()=>{_0x73596f('UsageLimit');});const _0x29f74b=0x36ee80;function _0x397bce(){const _0x346833='llct-'+_0xacb626(_0x172eb4(_0x402c70)),_0x53380a=_0x400e93(_0xacb626(window['Math']['ceil'](_0x3172a5/_0x29f74b)));window['localStorage']['setItem'](_0x346833,_0x53380a);}function _0x35c66e(){const _0xb09acf='llct-'+_0xacb626(_0x172eb4(_0x402c70)),_0x37b57a=window['localStorage']['getItem'](_0xb09acf);return _0x37b57a?window['parseInt'](_0x400e93(_0x37b57a),0x10)*_0x29f74b:null;}function _0x4f8b10(_0x1a2a06){return new window['Promise']((_0x579161,_0x334853)=>{_0x1a2a06['then'](_0x579161,_0x334853),window['setTimeout'](_0x334853,0x1d4c0);});}}_0xec9179['on']('_sendUsageRequest',(_0x1a0022,_0x1badc9)=>{if(_0x1badc9[0x0]!=_0x402c70)return _0x73596f('UsageLimit');_0x1badc9[0x1]={..._0x1badc9[0x1],'requestId':_0x1ddb5f};},{'priority':'high'}),_0xec9179['on']('_sendUsageRequest',_0x34caa1=>{_0x23504a(_0x34caa1['return'])&&(_0x4123f0=!0x0,_0x2cde3a(_0x34caa1['return']));},{'priority':'low'}),_0x3458bd['then'](()=>{_0x4123f0||_0x73596f('UsageLimit');});});function _0x3a472a(){return'auto'==_0xec9179['editing']['view']['_overlayModeHint'];}function _0x3c2e61(){_0xec9179['editing']['view']['_overlayModeHint']='auto';}}function _0x1d6821(_0x106bb3){const _0x20e566=[new window['Promise'](_0x543c7b=>setTimeout(_0x543c7b,0x93ecc)),_0x3458bd['then'](()=>new window['Promise'](_0x267aee=>{let _0x7a6501=0x0;_0xec9179['model']['on']('applyOperation',(_0x307492,_0x4012d9)=>{_0x4012d9[0x0]['isDocumentOperation']&&_0x7a6501++,0x5e8==_0x7a6501&&(_0x267aee(),_0x307492['off']());});}))];return window['Promise']['race'](_0x20e566)['then'](()=>_0x106bb3);}async function _0x5796b7(){await _0x3458bd;const _0x21e5ef=_0xec9179['commands']['get']('exportInlineStyles');_0x21e5ef&&_0x21e5ef['on']('execute',_0x5bc0b7=>{_0x5bc0b7['stop']();},{'priority':'highest'}),_0xec9179['model']['change']=_0x5836c5,_0xec9179['model']['enqueueChange']=_0x5836c5,_0xec9179['enableReadOnlyMode']('model');}function _0x5eb1cd(_0x5238d0){const _0x32abba=_0x5146e1();_0xec9179[_0x32abba]='exportInlineStylesLicenseKey'+_0x5238d0,'Valid'!=_0x5238d0&&_0x5796b7();}function _0x5146e1(){const _0x253285=window['String'](window['performance']['now']())['replace']('.','');let _0x24d1c6='D';for(let _0x66fccb=0x0;_0x66fccb<_0x253285['length'];_0x66fccb+=0x2){let _0x3fbeff=window['parseInt'](_0x253285['substring'](_0x66fccb,_0x66fccb+0x2));_0x3fbeff>=0x3e&&(_0x3fbeff-=0x3e),_0x24d1c6+=_0x1d893f[_0x3fbeff];}return _0x24d1c6;}function _0x221436(){const _0x29ac64=_0x3ca0e9['split']('.');if(0x3!=_0x29ac64['length'])return null;return _0x1746da(_0x29ac64[0x1]);function _0x1746da(_0xda4a0f){const _0x36db71=_0x5d591e(_0xda4a0f);return _0x36db71&&_0x5baad0()?_0x36db71:null;function _0x5baad0(){const _0x234f1b=_0x36db71['jti'],_0x3d0487=window['parseInt'](_0x234f1b['substring'](_0x234f1b['length']-0x8),0x10),_0x337935={..._0x36db71,'jti':_0x234f1b['substring'](0x0,_0x234f1b['length']-0x8)};return delete _0x337935['vc'],_0x172eb4(_0x337935)==_0x3d0487;}}}async function _0x28e3a8(){let _0x350d80=!0x0;try{const [_0x30e485,_0x43e2c9,_0x456718]=_0x3ca0e9['split']('.');return _0x5b5ba3(_0x30e485),await _0x122899(_0x30e485,_0x43e2c9,_0x456718),_0x350d80;}catch{return!0x1;}function _0x5b5ba3(_0x2bf62e){const _0x2cfff0=_0x5d591e(_0x2bf62e);_0x2cfff0&&'ES256'==_0x2cfff0['alg']||(_0x350d80=!0x1);}async function _0x122899(_0x9a3f2d,_0x291928,_0x4f3e76){const _0x124001=window['Uint8Array']['from'](_0x1952bb(_0x4f3e76),_0x46d38e=>_0x46d38e['charCodeAt'](0x0)),_0x710554=new window['TextEncoder']()['encode'](_0x9a3f2d+'.'+_0x291928),_0x4d3f54=window['crypto']['subtle'];if(!_0x4d3f54)return;const _0x5ad18c=await _0x4d3f54['importKey']('jwk',_0x104e15,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4d3f54['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5ad18c,_0x124001,_0x710554)||(_0x350d80=!0x1);}}function _0x5d591e(_0x213eef){return _0x213eef['startsWith']('ey')?JSON['parse'](_0x1952bb(_0x213eef)):null;}function _0x1952bb(_0x5a8b77){return window['atob'](_0x5a8b77['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x172eb4(_0x25d3dc){let _0x227dd1=0x1505;function _0x5075bc(_0x452cfe){for(let _0x2ea008=0x0;_0x2ea008<_0x452cfe['length'];_0x2ea008++){const _0x319ffa=_0x452cfe['charCodeAt'](_0x2ea008);_0x227dd1=(_0x227dd1<<0x5)+_0x227dd1+_0x319ffa,_0x227dd1&=_0x227dd1;}}function _0x6b87bb(_0x333d48){Array['isArray'](_0x333d48)?_0x333d48['forEach'](_0x6b87bb):_0x333d48&&'object'==typeof _0x333d48?Object['entries'](_0x333d48)['sort']()['forEach'](([_0x38df2e,_0x46ebac])=>{_0x5075bc(_0x38df2e),_0x6b87bb(_0x46ebac);}):_0x5075bc(window['String'](_0x333d48));}return _0x6b87bb(_0x25d3dc),_0x227dd1>>>0x0;}function _0xacb626(_0x55f5da){return _0x55f5da['toString'](0x10)['padStart'](0x8,'0');}function _0x400e93(_0x50172a){return _0x50172a['split']('')['reverse']()['join']('');}function _0x5836c5(){}_0x5eb1cd(await _0x36c673());}(this);}},I=class extends _0x57fc27{['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 _0xbc3c30=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x56b913;for(const _0x425579 in _0xbc3c30){const _0x367e48=_0x425579,_0x593c97=_0xbc3c30[_0x367e48];if('exportInlineStylesLicenseKeyValid'==_0x593c97||'exportInlineStylesLicenseKeyInvalid'==_0x593c97||'exportInlineStylesLicenseKeyExpired'==_0x593c97||'exportInlineStylesLicenseKeyDomainLimit'==_0x593c97||'exportInlineStylesLicenseKeyNotAllowed'==_0x593c97||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x593c97||'exportInlineStylesLicenseKeyUsageLimit'==_0x593c97){delete _0xbc3c30[_0x367e48],_0x56b913=_0x593c97,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x56b913&&_0xbc3c30['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x56b913&&_0xbc3c30['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x56b913&&_0xbc3c30['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x56b913&&_0xbc3c30['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x56b913&&_0xbc3c30['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x56b913&&_0xbc3c30['_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.1",
3
+ "version": "48.4.0-alpha.1",
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.1",
38
- "@ckeditor/ckeditor5-engine": "48.3.1",
39
- "@ckeditor/ckeditor5-utils": "48.3.1",
37
+ "@ckeditor/ckeditor5-core": "48.4.0-alpha.1",
38
+ "@ckeditor/ckeditor5-engine": "48.4.0-alpha.1",
39
+ "@ckeditor/ckeditor5-utils": "48.4.0-alpha.1",
40
40
  "specificity": "0.4.1"
41
41
  },
42
42
  "files": [