@ckeditor/ckeditor5-export-inline-styles 48.3.1-alpha.0 → 48.3.1-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 _0x426951,Plugin as _0x4f4fda}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x54dbb8,createElement as _0x435676,uid as _0xdbb6c1}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x3707b8,addMarginStylesRules as _0x2139d7,addPaddingStylesRules as _0x2fb0a5}from'@ckeditor/ckeditor5-engine';import{calculate as _0x5d7cf9,compare as _0x2813f5}from'specificity';function f(_0x382973){const _0x509d23=[];let _0x2da769='',_0x59126d=0x0;for(;_0x59126d<_0x382973['length'];){const _0x50b600=_0x382973[_0x59126d];if('('===_0x50b600){const _0x2bed7d=y(_0x382973,_0x59126d+0x1);if(-0x1===_0x2bed7d)return[];_0x2da769+=_0x382973['slice'](_0x59126d,_0x2bed7d+0x1),_0x59126d=_0x2bed7d+0x1;}else','!==_0x50b600||_0x2da769['endsWith']('\x5c')?(_0x2da769+=_0x50b600,_0x59126d++):(_0x509d23['push'](_0x2da769['trim']()),_0x2da769='',_0x59126d++);}return _0x2da769['trim']()&&_0x509d23['push'](_0x2da769['trim']()),_0x509d23['filter'](Boolean);}function y(_0x1bb210,_0x1ae6c7){let _0x13aec8=0x1;for(let _0x230682=_0x1ae6c7;_0x230682<_0x1bb210['length'];_0x230682++){const _0x17e9f6=_0x1bb210[_0x230682];if('('===_0x17e9f6)_0x13aec8++;else{if(')'===_0x17e9f6&&(_0x13aec8--,0x0===_0x13aec8))return _0x230682;}}return-0x1;}function d(_0x3d6c41){return _0x3d6c41['replace'](/!\s*important/i,'')['trim']();}function w(_0x2b9d3f){const _0x8e8316=new Map();for(const {stylesMap:_0x21c40f,flatSelector:_0x15b738}of _0x2b9d3f){if(':root'!==_0x15b738)continue;const _0x2c524e=p(_0x8e8316['get']['bind'](_0x8e8316),_0x21c40f);for(const [_0x46206a,_0x231e9f]of _0x2c524e)_0x8e8316['set'](_0x46206a,_0x231e9f);}return _0x8e8316;}function p(_0x416e5e,_0x1093be){const _0x2ba1a3=new Map(),_0x581f86=_0xcd0abc=>_0x2ba1a3['has'](_0xcd0abc)?_0x2ba1a3['get'](_0xcd0abc):_0x416e5e(_0xcd0abc);for(const [_0xb67dad,_0x407424]of _0x1093be['getStylesEntries']())if(_0x407424&&_0xb67dad['startsWith']('--')){const _0x23b80f=m(_0x581f86,_0x407424);_0x2ba1a3['set'](_0xb67dad,_0x23b80f),_0x1093be['remove'](_0xb67dad);}for(const [_0x45986,_0x302156]of _0x1093be['getStylesEntries']())if(_0x302156){const _0x589dbe=m(_0x581f86,_0x302156);_0x1093be['set'](_0x45986,_0x589dbe);}return _0x2ba1a3;}function m(_0x357dba,_0x48b6eb){return function(_0x1d3ce4,_0x2cb369){let _0x2f8d5a='',_0x3e7f86=0x0;for(;_0x3e7f86<_0x1d3ce4['length'];){const _0x4c26a2=_0x1d3ce4['indexOf']('var(',_0x3e7f86);if(-0x1===_0x4c26a2){_0x2f8d5a+=_0x1d3ce4['slice'](_0x3e7f86);break;}_0x2f8d5a+=_0x1d3ce4['slice'](_0x3e7f86,_0x4c26a2);const _0x282ac9=_0x4c26a2+0x4,_0xc0a2de=y(_0x1d3ce4,_0x282ac9);_0x2f8d5a+=_0x2cb369(_0x1d3ce4['substring'](_0x282ac9,_0xc0a2de)),_0x3e7f86=_0xc0a2de+0x1;}return _0x2f8d5a;}(_0x48b6eb,_0x2e933f=>{const [_0x428b10,_0xdc0910]=f(_0x2e933f),_0x229cdc=_0x357dba(_0x428b10);return void 0x0!==_0x229cdc?_0x229cdc:_0xdc0910?m(_0x357dba,_0xdc0910):'var('+_0x428b10+')';});}async function h(_0x545a02){const _0x3ccd57=[await _0x54dbb8(_0x545a02['stylesheets']),_0x545a02['inlineCss']]['filter'](_0x2bd86f=>_0x2bd86f&&_0x2bd86f['length'])['join']('\x0a'),_0x4db754=await async function(_0x1defda,_0x4724bc){const _0x31413f=new CSSStyleSheet();return await _0x31413f['replace'](_0x4724bc),S(Array['from'](_0x31413f['cssRules'])['filter'](_0x11cd6b=>_0x11cd6b instanceof CSSStyleRule))['flatMap'](({selectorText:_0x2c3107,contentCssText:_0x21fea6})=>{const _0xfb3e0e=f(_0x2c3107),_0x58c4cf=new _0x3707b8(_0x1defda)['setTo'](_0x21fea6);return _0xfb3e0e['map'](_0xa5321c=>{const _0x24c02a=function(_0xbf77cc){const _0x2f7f80=':where(';let _0x52c7fa=_0xbf77cc,_0x394fe5=0x0;for(let _0x51ec6e=0x0;_0x51ec6e<0x64;_0x51ec6e++){const _0x58237a=_0x52c7fa['indexOf'](_0x2f7f80,_0x394fe5);if(-0x1===_0x58237a)break;let _0x57af6b=0x0;for(let _0x44a30f=0x0;_0x44a30f<_0x58237a;_0x44a30f++)'('===_0x52c7fa[_0x44a30f]?_0x57af6b++:')'===_0x52c7fa[_0x44a30f]&&_0x57af6b--;if(_0x57af6b>0x0){_0x394fe5=_0x58237a+0x7;continue;}let _0xc6cb47=-0x1;for(let _0x1ae154=_0x58237a+0x7,_0x25f017=0x1;_0x1ae154<_0x52c7fa['length'];_0x1ae154++)if('('===_0x52c7fa[_0x1ae154]?_0x25f017++:')'===_0x52c7fa[_0x1ae154]&&_0x25f017--,!_0x25f017){_0xc6cb47=_0x1ae154;break;}-0x1!==_0xc6cb47?(_0x52c7fa=_0x52c7fa['slice'](0x0,_0x58237a)+_0x52c7fa['slice'](_0xc6cb47+0x1),_0x394fe5=_0x58237a):_0x394fe5=_0x58237a+0x7;}return _0x52c7fa['replace'](/\s+/g,'\x20')['trim']();}(_0xa5321c);return{'stylesMap':_0x58c4cf,'flatSelector':_0xa5321c,'specificity':_0x24c02a?_0x5d7cf9(_0x24c02a)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0]};});})['sort']((_0x6b39b9,_0x32d8cb)=>_0x2813f5(_0x6b39b9['specificity'],_0x32d8cb['specificity']));}(_0x545a02['stylesProcessor'],_0x3ccd57);return{'parsedCssRules':_0x4db754,'rootCssVariables':w(_0x4db754)};}function S(_0x42d9e6,_0x48bb80=''){return _0x42d9e6['flatMap'](_0x385f7e=>{const {selectorText:_0x201cd8,cssText:_0x251661,cssRules:_0x36ea51}=_0x385f7e;if(!_0x201cd8)return[];const _0x175a37=_0x201cd8['replace'](/&/g,_0x48bb80);let _0x4e1129=_0x251661['replace'](_0x201cd8,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x36ea51||!_0x36ea51['length'])return[{'selectorText':_0x175a37,'contentCssText':_0x4e1129}];for(const _0x1b9317 of _0x36ea51)_0x4e1129=_0x4e1129['replace'](_0x1b9317['cssText'],'')['trim']();return[{'selectorText':_0x175a37,'contentCssText':_0x4e1129},...S(Array['from'](_0x36ea51),_0x175a37)];});}function L(_0x568417,_0x19f26b){const _0x356d0c=new _0x3707b8(_0x568417);for(const _0x365f79 of _0x19f26b){let _0x3c8196=null;if(_0x3c8196='string'==typeof _0x365f79?new _0x3707b8(_0x568417)['setTo'](_0x365f79):_0x365f79,_0x3c8196){for(const [_0x58cc43,_0x13b2c1]of _0x3c8196['getStylesEntries']())_0x356d0c['set'](_0x58cc43,_0x13b2c1);}}return _0x356d0c;}var g=class extends _0x426951{['_stylesProcessor'];constructor(_0xd14bc7){super(_0xd14bc7),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x2139d7(this['_stylesProcessor']),_0x2fb0a5(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x4eadf7){const _0x30d68a=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x3f5330}=this['editor']['locale'],{rootName:_0x1f051a='main',dataControllerDowncastOptions:_0x28f20c={},transformations:_0x421476=_0x30d68a['transformations']||[]}=_0x4eadf7||{};this['isBusy']=!0x0,this['refresh']();const _0x473d13=this['_getRootDataHTMLFragment'](_0x1f051a,_0x28f20c),_0xcb543d=_0x435676(_0x473d13['ownerDocument'],'div',{'dir':_0x3f5330,'class':'ck-content'},[_0x473d13]);return this['_collectAndApplyStyles'](_0x421476,_0xcb543d)['then'](()=>{const _0x353433=function(_0x2fd6d0){const _0x302634=_0x2fd6d0['ownerDocument']['createDocumentFragment']();for(;_0x2fd6d0['firstChild'];)_0x302634['appendChild'](_0x2fd6d0['firstChild']);return _0x302634;}(_0xcb543d),_0x44a913=_0xcb543d['getAttribute']('style');if(_0x44a913)for(const _0x4c0ced of _0x353433['children']){const _0x20d405=_0x4c0ced['getAttribute']('style'),_0x4ac71c=L(this['_stylesProcessor'],[_0x44a913,_0x20d405]);_0x4c0ced['setAttribute']('style',x(_0x4ac71c));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x353433);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x24f05d,_0x437b8c){const {data:_0x2d55a,model:_0x547db9}=this['editor'],_0x728d2=_0x547db9['document']['getRoot'](_0x24f05d),_0x1ec8de=_0x2d55a['toView'](_0x728d2,_0x437b8c);return _0x2d55a['htmlProcessor']['domConverter']['viewToDom'](_0x1ec8de);}async['_collectAndApplyStyles'](_0x3657cc,_0x41d609){const {stylesheets:_0x4105c7,inlineCss:_0x4ba364,stripCssClasses:_0x43ca25}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x4d842f,rootCssVariables:_0x288258}=await h({'stylesheets':_0x4105c7||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x4ba364}),_0x48c53c=[];this['_processElementTree']({'transformations':_0x3657cc,'parsedCssRules':_0x4d842f,'element':_0x41d609,'stripCssClasses':_0x43ca25,'parentCSSVariablesLookup':_0x288258['get']['bind'](_0x288258),'runAfterDocumentTransformation':_0x2fa4eb=>{_0x48c53c['unshift'](_0x2fa4eb);}});for(const _0x11c213 of _0x48c53c)_0x11c213();}['_processElementTree']({element:_0x20f520,parsedCssRules:_0x15737c,parentCSSVariablesLookup:_0x3cf815,runAfterDocumentTransformation:_0x7e447a,stripCssClasses:_0xa5ca18,transformations:_0x411af2}){const {stylesMap:_0x900921,localCSSVariables:_0x49aa2b}=function(_0x48ddc4){const _0x573be8=_0x48ddc4['element']['getAttribute']('style')||'',_0x4f6caa=_0x48ddc4['parsedCssRules']['filter'](_0x101cd0=>_0x48ddc4['element']['matches'](_0x101cd0['flatSelector']))['map'](_0x4739fd=>_0x4739fd['stylesMap']),_0x1c1d7a=L(_0x48ddc4['stylesProcessor'],[..._0x4f6caa,_0x573be8]);return{'localCSSVariables':p(_0x48ddc4['fallbackCSSVariablesLookup'],_0x1c1d7a),'stylesMap':_0x1c1d7a};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x3cf815,'parsedCssRules':_0x15737c,'element':_0x20f520}),_0x373ef4=[];for(const _0x149eea of _0x411af2){const _0x488b4e=_0x149eea(_0x20f520,_0x900921,{'runAfterDocumentTransformation':_0x7e447a,'runAfterChildrenTransformation':_0xf94f27=>{_0x373ef4['unshift'](_0xf94f27);}});_0x488b4e&&_0x488b4e instanceof HTMLElement&&(_0x20f520=_0x488b4e);}_0x900921['size']?_0x20f520['setAttribute']('style',x(_0x900921)):_0x20f520['removeAttribute']('style');const _0x2ef116=_0x3b2d08=>_0x49aa2b['has'](_0x3b2d08)?_0x49aa2b['get'](_0x3b2d08):_0x3cf815(_0x3b2d08);for(const _0x2df329 of _0x20f520['children'])_0x2df329 instanceof HTMLElement&&this['_processElementTree']({'element':_0x2df329,'parsedCssRules':_0x15737c,'stripCssClasses':_0xa5ca18,'transformations':_0x411af2,'parentCSSVariablesLookup':_0x2ef116,'runAfterDocumentTransformation':_0x7e447a});_0xa5ca18&&_0x20f520['removeAttribute']('class');for(const _0x492cf8 of _0x373ef4)_0x492cf8();}};function x(_0x55ba06){return _0x55ba06['getStylesEntries']()['map'](_0x123b06=>_0x123b06['join'](':'))['join'](';')+';';}var C=class extends _0x4f4fda{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(_0x702fe1){const _0x4ac7aa='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0x17fe0f=0x78fa8,_0x2adbb7=window['Date']['now'](),_0x547f0d=_0x702fe1['editor'],_0x529df0=new window['Promise'](_0x240b1b=>{_0x547f0d['once']('ready',_0x240b1b);}),_0x558654={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x5f52ab=_0x547f0d['config']['get']('licenseKey');async function _0x55d09d(){let _0x1ef3ee,_0x4ec1af=null,_0x3f8fc7=null;try{return'GPL'==_0x5f52ab?'NotAllowed':(_0x1ef3ee=_0x1920bb(),_0x1ef3ee?(_0x1ef3ee['usageEndpoint']&&(_0x3f8fc7=_0x5e4555(_0x1ef3ee['usageEndpoint'],_0x1ef3ee['jti'])),await _0x156191()?_0x256782()?_0x45e2ba()?'Expired':_0x4be542()?('evaluation'==_0x1ef3ee['licenseType']&&(_0x4ec1af=_0x3ed9a4('EvaluationLimit')),await _0x37e876()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x45e2ba(){const _0x565de5=['evaluation','trial']['includes'](_0x1ef3ee['licenseType'])?_0x2adbb7/0x3e8:0xe10*_0x17fe0f;return _0x1ef3ee['exp']<_0x565de5;}function _0x256782(){const _0x57c7f3=_0x1ef3ee['features'];return!!_0x57c7f3&&(!!_0x57c7f3['includes']('*')||!!_0x57c7f3['includes']('EIS'));}function _0x4be542(){const _0x561799=_0x1ef3ee['licensedHosts'];if(!_0x561799||0x0==_0x561799['length'])return!0x0;const {hostname:_0x5bce18}=new URL(window['location']['href']);if(_0x561799['includes'](_0x5bce18))return!0x0;const _0x124e38=_0x5bce18['split']('.');return _0x561799['filter'](_0x48e11e=>_0x48e11e['includes']('*'))['map'](_0xed6dac=>_0xed6dac['split']('.'))['filter'](_0x2cd31a=>_0x2cd31a['length']<=_0x124e38['length'])['map'](_0x855ea9=>Array(_0x124e38['length']-_0x855ea9['length'])['fill']('*'===_0x855ea9[0x0]?'*':'')['concat'](_0x855ea9))['some'](_0x1534e1=>_0x124e38['every']((_0x186db3,_0x765198)=>_0x1534e1[_0x765198]===_0x186db3||'*'===_0x1534e1[_0x765198]));}function _0x37e876(){return _0x4ec1af&&_0x3f8fc7?new window['Promise']((_0x577e72,_0x2bb7d7)=>{_0x4ec1af['then'](_0x577e72,_0x2bb7d7),_0x3f8fc7['then'](_0x4c5d92=>{'Valid'!=_0x4c5d92&&_0x577e72(_0x4c5d92);},_0x2bb7d7);}):_0x4ec1af||_0x3f8fc7||'Valid';}}function _0x5e4555(_0x1adb7e,_0x33bc30){return new window['Promise'](_0x243ece=>{if(_0x50ca13())return _0x243ece('Valid');_0x194e97(),_0x547f0d['decorate']('_sendUsageRequest');let _0x3e5b1d=!0x1;const _0x1349a3=_0xdbb6c1();function _0x526402(_0x3045d1){return!!_0x3045d1&&('object'==typeof _0x3045d1||'function'==typeof _0x3045d1)&&'function'==typeof _0x3045d1['then']&&'function'==typeof _0x3045d1['catch'];}function _0x4a4bea(_0x29121b){_0x5d8318(_0x29121b)['then'](_0x327633=>_0x327633&&'ok'==_0x327633['status']?_0x445829(_0x4f99b5(_0x1349a3+_0x33bc30))!=_0x327633['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4538c2=>(_0x1f7d9e(),_0x4538c2),()=>{const _0x1d1ceb=_0x22b8c7();return null==_0x1d1ceb?(_0x1f7d9e(),'Valid'):_0x2adbb7-_0x1d1ceb>0x240c8400?'UsageLimit':'Valid';})['then'](_0x243ece)['catch'](()=>{_0x243ece('UsageLimit');});const _0x17418d=0x36ee80;function _0x1f7d9e(){const _0x343034='llct-'+_0x445829(_0x4f99b5(_0x1adb7e)),_0x374e4b=_0x4f7d87(_0x445829(window['Math']['ceil'](_0x2adbb7/_0x17418d)));window['localStorage']['setItem'](_0x343034,_0x374e4b);}function _0x22b8c7(){const _0x43f620='llct-'+_0x445829(_0x4f99b5(_0x1adb7e)),_0x88f1d3=window['localStorage']['getItem'](_0x43f620);return _0x88f1d3?window['parseInt'](_0x4f7d87(_0x88f1d3),0x10)*_0x17418d:null;}function _0x5d8318(_0x121ee1){return new window['Promise']((_0x5810de,_0x313af4)=>{_0x121ee1['then'](_0x5810de,_0x313af4),window['setTimeout'](_0x313af4,0x1d4c0);});}}_0x547f0d['on']('_sendUsageRequest',(_0xf560c4,_0x5e3249)=>{if(_0x5e3249[0x0]!=_0x1adb7e)return _0x243ece('UsageLimit');_0x5e3249[0x1]={..._0x5e3249[0x1],'requestId':_0x1349a3};},{'priority':'high'}),_0x547f0d['on']('_sendUsageRequest',_0x406a70=>{_0x526402(_0x406a70['return'])&&(_0x3e5b1d=!0x0,_0x4a4bea(_0x406a70['return']));},{'priority':'low'}),_0x529df0['then'](()=>{_0x3e5b1d||_0x243ece('UsageLimit');});});function _0x50ca13(){return'auto'==_0x547f0d['editing']['view']['_overlayModeHint'];}function _0x194e97(){_0x547f0d['editing']['view']['_overlayModeHint']='auto';}}function _0x3ed9a4(_0x537b1){const _0x56387b=[new window['Promise'](_0x4f58ad=>setTimeout(_0x4f58ad,0x93ecc)),_0x529df0['then'](()=>new window['Promise'](_0x4a87d6=>{let _0x3c0a31=0x0;_0x547f0d['model']['on']('applyOperation',(_0xab45e5,_0x367262)=>{_0x367262[0x0]['isDocumentOperation']&&_0x3c0a31++,0x5e8==_0x3c0a31&&(_0x4a87d6(),_0xab45e5['off']());});}))];return window['Promise']['race'](_0x56387b)['then'](()=>_0x537b1);}async function _0x205b8d(){await _0x529df0;const _0x1e1ff5=_0x547f0d['commands']['get']('exportInlineStyles');_0x1e1ff5&&_0x1e1ff5['on']('execute',_0x2abcaf=>{_0x2abcaf['stop']();},{'priority':'highest'}),_0x547f0d['model']['change']=_0x40aa50,_0x547f0d['model']['enqueueChange']=_0x40aa50,_0x547f0d['enableReadOnlyMode']('model');}function _0x498bf0(_0x5b7cd9){const _0x41eac3=_0x5dbda1();_0x547f0d[_0x41eac3]='exportInlineStylesLicenseKey'+_0x5b7cd9,'Valid'!=_0x5b7cd9&&_0x205b8d();}function _0x5dbda1(){const _0x5c92e4=window['String'](window['performance']['now']())['replace']('.','');let _0x35c1b6='D';for(let _0x2eb810=0x0;_0x2eb810<_0x5c92e4['length'];_0x2eb810+=0x2){let _0x132ee0=window['parseInt'](_0x5c92e4['substring'](_0x2eb810,_0x2eb810+0x2));_0x132ee0>=0x3e&&(_0x132ee0-=0x3e),_0x35c1b6+=_0x4ac7aa[_0x132ee0];}return _0x35c1b6;}function _0x1920bb(){const _0x16ca2e=_0x5f52ab['split']('.');if(0x3!=_0x16ca2e['length'])return null;return _0x58274b(_0x16ca2e[0x1]);function _0x58274b(_0x197908){const _0x3ff214=_0x11a15f(_0x197908);return _0x3ff214&&_0x55c613()?_0x3ff214:null;function _0x55c613(){const _0x230826=_0x3ff214['jti'],_0x1bac82=window['parseInt'](_0x230826['substring'](_0x230826['length']-0x8),0x10),_0xa536fd={..._0x3ff214,'jti':_0x230826['substring'](0x0,_0x230826['length']-0x8)};return delete _0xa536fd['vc'],_0x4f99b5(_0xa536fd)==_0x1bac82;}}}async function _0x156191(){let _0x32d702=!0x0;try{const [_0x1c2ffe,_0x1e8f42,_0x55cb01]=_0x5f52ab['split']('.');return _0x26bc1f(_0x1c2ffe),await _0x16064e(_0x1c2ffe,_0x1e8f42,_0x55cb01),_0x32d702;}catch{return!0x1;}function _0x26bc1f(_0x3011d2){const _0x35bd9a=_0x11a15f(_0x3011d2);_0x35bd9a&&'ES256'==_0x35bd9a['alg']||(_0x32d702=!0x1);}async function _0x16064e(_0x933242,_0x343780,_0x214d4f){const _0x1ffc51=window['Uint8Array']['from'](_0x2b4e4b(_0x214d4f),_0x2d744e=>_0x2d744e['charCodeAt'](0x0)),_0x852b0=new window['TextEncoder']()['encode'](_0x933242+'.'+_0x343780),_0x99d92f=window['crypto']['subtle'];if(!_0x99d92f)return;const _0x261ef5=await _0x99d92f['importKey']('jwk',_0x558654,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x99d92f['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x261ef5,_0x1ffc51,_0x852b0)||(_0x32d702=!0x1);}}function _0x11a15f(_0x40208e){return _0x40208e['startsWith']('ey')?JSON['parse'](_0x2b4e4b(_0x40208e)):null;}function _0x2b4e4b(_0x3010ef){return window['atob'](_0x3010ef['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4f99b5(_0x2adf34){let _0x2651f9=0x1505;function _0x2517a2(_0x474055){for(let _0x59360a=0x0;_0x59360a<_0x474055['length'];_0x59360a++){const _0x7cfc25=_0x474055['charCodeAt'](_0x59360a);_0x2651f9=(_0x2651f9<<0x5)+_0x2651f9+_0x7cfc25,_0x2651f9&=_0x2651f9;}}function _0x386441(_0x46938e){Array['isArray'](_0x46938e)?_0x46938e['forEach'](_0x386441):_0x46938e&&'object'==typeof _0x46938e?Object['entries'](_0x46938e)['sort']()['forEach'](([_0x4c8c50,_0x436d14])=>{_0x2517a2(_0x4c8c50),_0x386441(_0x436d14);}):_0x2517a2(window['String'](_0x46938e));}return _0x386441(_0x2adf34),_0x2651f9>>>0x0;}function _0x445829(_0x34a1f0){return _0x34a1f0['toString'](0x10)['padStart'](0x8,'0');}function _0x4f7d87(_0xc47c47){return _0xc47c47['split']('')['reverse']()['join']('');}function _0x40aa50(){}_0x498bf0(await _0x55d09d());}(this);}},I=class extends _0x4f4fda{['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 _0x493e8c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47c951;for(const _0x32facc in _0x493e8c){const _0xf8897e=_0x32facc,_0x4d44ee=_0x493e8c[_0xf8897e];if('exportInlineStylesLicenseKeyValid'==_0x4d44ee||'exportInlineStylesLicenseKeyInvalid'==_0x4d44ee||'exportInlineStylesLicenseKeyExpired'==_0x4d44ee||'exportInlineStylesLicenseKeyDomainLimit'==_0x4d44ee||'exportInlineStylesLicenseKeyNotAllowed'==_0x4d44ee||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x4d44ee||'exportInlineStylesLicenseKeyUsageLimit'==_0x4d44ee){delete _0x493e8c[_0xf8897e],_0x47c951=_0x4d44ee,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x47c951&&_0x493e8c['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x47c951&&_0x493e8c['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x47c951&&_0x493e8c['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x47c951&&_0x493e8c['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x47c951&&_0x493e8c['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x47c951&&_0x493e8c['_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 _0x1c7e73,Plugin as _0x36f454}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x5e2957,createElement as _0x290de4,uid as _0x2ee08a}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x2e285b,addMarginStylesRules as _0x21950a,addPaddingStylesRules as _0xfc2f46}from'@ckeditor/ckeditor5-engine';import{calculate as _0x3333f2,compare as _0xae2c3a}from'specificity';function f(_0x27c418){const _0x45428e=[];let _0xbde638='',_0xf961a7=0x0;for(;_0xf961a7<_0x27c418['length'];){const _0x11de97=_0x27c418[_0xf961a7];if('('===_0x11de97){const _0x7f4f5a=y(_0x27c418,_0xf961a7+0x1);if(-0x1===_0x7f4f5a)return[];_0xbde638+=_0x27c418['slice'](_0xf961a7,_0x7f4f5a+0x1),_0xf961a7=_0x7f4f5a+0x1;}else','!==_0x11de97||_0xbde638['endsWith']('\x5c')?(_0xbde638+=_0x11de97,_0xf961a7++):(_0x45428e['push'](_0xbde638['trim']()),_0xbde638='',_0xf961a7++);}return _0xbde638['trim']()&&_0x45428e['push'](_0xbde638['trim']()),_0x45428e['filter'](Boolean);}function y(_0x54d81b,_0x380a5f){let _0x14f72c=0x1;for(let _0x45e98f=_0x380a5f;_0x45e98f<_0x54d81b['length'];_0x45e98f++){const _0x5f1d4b=_0x54d81b[_0x45e98f];if('('===_0x5f1d4b)_0x14f72c++;else{if(')'===_0x5f1d4b&&(_0x14f72c--,0x0===_0x14f72c))return _0x45e98f;}}return-0x1;}function d(_0x47dec1){return _0x47dec1['replace'](/!\s*important/i,'')['trim']();}function w(_0x3d537b){const _0x4e463b=new Map();for(const {stylesMap:_0x4a4de5,flatSelector:_0x104b31}of _0x3d537b){if(':root'!==_0x104b31)continue;const _0x380104=p(_0x4e463b['get']['bind'](_0x4e463b),_0x4a4de5);for(const [_0x4ec8b7,_0x28eb92]of _0x380104)_0x4e463b['set'](_0x4ec8b7,_0x28eb92);}return _0x4e463b;}function p(_0x23f400,_0x52ec75){const _0x3d8d19=new Map(),_0x2ec6e0=_0xbd1fbb=>_0x3d8d19['has'](_0xbd1fbb)?_0x3d8d19['get'](_0xbd1fbb):_0x23f400(_0xbd1fbb);for(const [_0x5082e3,_0x20f8f8]of _0x52ec75['getStylesEntries']())if(_0x20f8f8&&_0x5082e3['startsWith']('--')){const _0x1b8d13=m(_0x2ec6e0,_0x20f8f8);_0x3d8d19['set'](_0x5082e3,_0x1b8d13),_0x52ec75['remove'](_0x5082e3);}for(const [_0x5f536d,_0x50a0d6]of _0x52ec75['getStylesEntries']())if(_0x50a0d6){const _0x30b292=m(_0x2ec6e0,_0x50a0d6);_0x52ec75['set'](_0x5f536d,_0x30b292);}return _0x3d8d19;}function m(_0x2b6362,_0x114d07){return function(_0x417fef,_0x2949b7){let _0x13b376='',_0x33a9cb=0x0;for(;_0x33a9cb<_0x417fef['length'];){const _0x5b725e=_0x417fef['indexOf']('var(',_0x33a9cb);if(-0x1===_0x5b725e){_0x13b376+=_0x417fef['slice'](_0x33a9cb);break;}_0x13b376+=_0x417fef['slice'](_0x33a9cb,_0x5b725e);const _0x25a44b=_0x5b725e+0x4,_0x33f344=y(_0x417fef,_0x25a44b);_0x13b376+=_0x2949b7(_0x417fef['substring'](_0x25a44b,_0x33f344)),_0x33a9cb=_0x33f344+0x1;}return _0x13b376;}(_0x114d07,_0x1cec3b=>{const [_0x96487f,_0x27bfbf]=f(_0x1cec3b),_0x3af675=_0x2b6362(_0x96487f);return void 0x0!==_0x3af675?_0x3af675:_0x27bfbf?m(_0x2b6362,_0x27bfbf):'var('+_0x96487f+')';});}async function h(_0x9f7792){const _0x10607e=[await _0x5e2957(_0x9f7792['stylesheets']),_0x9f7792['inlineCss']]['filter'](_0x1cff36=>_0x1cff36&&_0x1cff36['length'])['join']('\x0a'),_0x5f2694=await async function(_0x5ef362,_0x223062){const _0x5b880e=new CSSStyleSheet();return await _0x5b880e['replace'](_0x223062),S(Array['from'](_0x5b880e['cssRules'])['filter'](_0x12b91e=>_0x12b91e instanceof CSSStyleRule))['flatMap'](({selectorText:_0x3aebb5,contentCssText:_0x347a6e})=>{const _0x5eb1b5=f(_0x3aebb5),_0x5e66b7=new _0x2e285b(_0x5ef362)['setTo'](_0x347a6e);return _0x5eb1b5['map'](_0x5b8e94=>{const _0x64f0e2=function(_0x3565f4){const _0x5abf49=':where(';let _0x2016a2=_0x3565f4,_0x5e21d3=0x0;for(let _0x4bf006=0x0;_0x4bf006<0x64;_0x4bf006++){const _0x159b74=_0x2016a2['indexOf'](_0x5abf49,_0x5e21d3);if(-0x1===_0x159b74)break;let _0x17c15e=0x0;for(let _0x268295=0x0;_0x268295<_0x159b74;_0x268295++)'('===_0x2016a2[_0x268295]?_0x17c15e++:')'===_0x2016a2[_0x268295]&&_0x17c15e--;if(_0x17c15e>0x0){_0x5e21d3=_0x159b74+0x7;continue;}let _0x42acff=-0x1;for(let _0x3073cd=_0x159b74+0x7,_0x312749=0x1;_0x3073cd<_0x2016a2['length'];_0x3073cd++)if('('===_0x2016a2[_0x3073cd]?_0x312749++:')'===_0x2016a2[_0x3073cd]&&_0x312749--,!_0x312749){_0x42acff=_0x3073cd;break;}-0x1!==_0x42acff?(_0x2016a2=_0x2016a2['slice'](0x0,_0x159b74)+_0x2016a2['slice'](_0x42acff+0x1),_0x5e21d3=_0x159b74):_0x5e21d3=_0x159b74+0x7;}return _0x2016a2['replace'](/\s+/g,'\x20')['trim']();}(_0x5b8e94);return{'stylesMap':_0x5e66b7,'flatSelector':_0x5b8e94,'specificity':_0x64f0e2?_0x3333f2(_0x64f0e2)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0]};});})['sort']((_0x2b1d4e,_0x47eb46)=>_0xae2c3a(_0x2b1d4e['specificity'],_0x47eb46['specificity']));}(_0x9f7792['stylesProcessor'],_0x10607e);return{'parsedCssRules':_0x5f2694,'rootCssVariables':w(_0x5f2694)};}function S(_0x16b847,_0x14e549=''){return _0x16b847['flatMap'](_0x1725be=>{const {selectorText:_0x59bd8d,cssText:_0x5605eb,cssRules:_0x27facb}=_0x1725be;if(!_0x59bd8d)return[];const _0x2c07db=_0x59bd8d['replace'](/&/g,_0x14e549);let _0x3245f1=_0x5605eb['replace'](_0x59bd8d,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x27facb||!_0x27facb['length'])return[{'selectorText':_0x2c07db,'contentCssText':_0x3245f1}];for(const _0x485f4b of _0x27facb)_0x3245f1=_0x3245f1['replace'](_0x485f4b['cssText'],'')['trim']();return[{'selectorText':_0x2c07db,'contentCssText':_0x3245f1},...S(Array['from'](_0x27facb),_0x2c07db)];});}function L(_0x2e0f83,_0x4f9218){const _0x5b9600=new _0x2e285b(_0x2e0f83);for(const _0x5158ff of _0x4f9218){let _0x23d3f7=null;if(_0x23d3f7='string'==typeof _0x5158ff?new _0x2e285b(_0x2e0f83)['setTo'](_0x5158ff):_0x5158ff,_0x23d3f7){for(const [_0x4a71e8,_0x5f21ca]of _0x23d3f7['getStylesEntries']())_0x5b9600['set'](_0x4a71e8,_0x5f21ca);}}return _0x5b9600;}var g=class extends _0x1c7e73{['_stylesProcessor'];constructor(_0xca40cf){super(_0xca40cf),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x21950a(this['_stylesProcessor']),_0xfc2f46(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x5e7855){const _0x2c72d8=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x1e7f71}=this['editor']['locale'],{rootName:_0x40cc77='main',dataControllerDowncastOptions:_0x401aa9={},transformations:_0x16f426=_0x2c72d8['transformations']||[]}=_0x5e7855||{};this['isBusy']=!0x0,this['refresh']();const _0x3652f5=this['_getRootDataHTMLFragment'](_0x40cc77,_0x401aa9),_0x1921f7=_0x290de4(_0x3652f5['ownerDocument'],'div',{'dir':_0x1e7f71,'class':'ck-content'},[_0x3652f5]);return this['_collectAndApplyStyles'](_0x16f426,_0x1921f7)['then'](()=>{const _0x1ad2b1=function(_0x4d51d4){const _0x48a397=_0x4d51d4['ownerDocument']['createDocumentFragment']();for(;_0x4d51d4['firstChild'];)_0x48a397['appendChild'](_0x4d51d4['firstChild']);return _0x48a397;}(_0x1921f7),_0x5af9ab=_0x1921f7['getAttribute']('style');if(_0x5af9ab)for(const _0x53365a of _0x1ad2b1['children']){const _0x1b9490=_0x53365a['getAttribute']('style'),_0x5b18ac=L(this['_stylesProcessor'],[_0x5af9ab,_0x1b9490]);_0x53365a['setAttribute']('style',x(_0x5b18ac));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x1ad2b1);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x10d531,_0xa64a57){const {data:_0x4d8fa9,model:_0x55f64e}=this['editor'],_0x412c87=_0x55f64e['document']['getRoot'](_0x10d531),_0x22c48b=_0x4d8fa9['toView'](_0x412c87,_0xa64a57);return _0x4d8fa9['htmlProcessor']['domConverter']['viewToDom'](_0x22c48b);}async['_collectAndApplyStyles'](_0x238bc8,_0x56d8f4){const {stylesheets:_0x3a23ad,inlineCss:_0x226e5c,stripCssClasses:_0x1109bd}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x5c0baa,rootCssVariables:_0x59b128}=await h({'stylesheets':_0x3a23ad||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x226e5c}),_0x2df138=[];this['_processElementTree']({'transformations':_0x238bc8,'parsedCssRules':_0x5c0baa,'element':_0x56d8f4,'stripCssClasses':_0x1109bd,'parentCSSVariablesLookup':_0x59b128['get']['bind'](_0x59b128),'runAfterDocumentTransformation':_0x35f83c=>{_0x2df138['unshift'](_0x35f83c);}});for(const _0x3e0401 of _0x2df138)_0x3e0401();}['_processElementTree']({element:_0xddc658,parsedCssRules:_0x164aef,parentCSSVariablesLookup:_0x5d0b79,runAfterDocumentTransformation:_0x410742,stripCssClasses:_0x386065,transformations:_0x59db14}){const {stylesMap:_0x39d200,localCSSVariables:_0x46ea0c}=function(_0x22fe3b){const _0x3a0489=_0x22fe3b['element']['getAttribute']('style')||'',_0x2dda98=_0x22fe3b['parsedCssRules']['filter'](_0x498de4=>_0x22fe3b['element']['matches'](_0x498de4['flatSelector']))['map'](_0x187cbe=>_0x187cbe['stylesMap']),_0x2d1bf1=L(_0x22fe3b['stylesProcessor'],[..._0x2dda98,_0x3a0489]);return{'localCSSVariables':p(_0x22fe3b['fallbackCSSVariablesLookup'],_0x2d1bf1),'stylesMap':_0x2d1bf1};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x5d0b79,'parsedCssRules':_0x164aef,'element':_0xddc658}),_0x405402=[];for(const _0xba20b3 of _0x59db14){const _0x4c8815=_0xba20b3(_0xddc658,_0x39d200,{'runAfterDocumentTransformation':_0x410742,'runAfterChildrenTransformation':_0x45b53e=>{_0x405402['unshift'](_0x45b53e);}});_0x4c8815&&_0x4c8815 instanceof HTMLElement&&(_0xddc658=_0x4c8815);}_0x39d200['size']?_0xddc658['setAttribute']('style',x(_0x39d200)):_0xddc658['removeAttribute']('style');const _0x52b1b0=_0x55ee08=>_0x46ea0c['has'](_0x55ee08)?_0x46ea0c['get'](_0x55ee08):_0x5d0b79(_0x55ee08);for(const _0x5e5ffd of _0xddc658['children'])_0x5e5ffd instanceof HTMLElement&&this['_processElementTree']({'element':_0x5e5ffd,'parsedCssRules':_0x164aef,'stripCssClasses':_0x386065,'transformations':_0x59db14,'parentCSSVariablesLookup':_0x52b1b0,'runAfterDocumentTransformation':_0x410742});_0x386065&&_0xddc658['removeAttribute']('class');for(const _0x28c117 of _0x405402)_0x28c117();}};function x(_0x2f332d){return _0x2f332d['getStylesEntries']()['map'](_0x559883=>_0x559883['join'](':'))['join'](';')+';';}var C=class extends _0x36f454{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(_0x6202b1){const _0x240a88='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0x3f222c=0x78fc0,_0x1ecde5=window['Date']['now'](),_0x28c50f=_0x6202b1['editor'],_0x3d7d1a=new window['Promise'](_0xe7d15c=>{_0x28c50f['once']('ready',_0xe7d15c);}),_0x9072a9={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x534b2b=_0x28c50f['config']['get']('licenseKey');async function _0x3350c8(){let _0x20c376,_0x3f3610=null,_0x5e45e6=null;try{return'GPL'==_0x534b2b?'NotAllowed':(_0x20c376=_0x395fc0(),_0x20c376?(_0x20c376['usageEndpoint']&&(_0x5e45e6=_0x192c32(_0x20c376['usageEndpoint'],_0x20c376['jti'])),await _0x429e9e()?_0x3d1698()?_0x967e1a()?'Expired':_0x488be0()?('evaluation'==_0x20c376['licenseType']&&(_0x3f3610=_0x1f1474('EvaluationLimit')),await _0x367249()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x967e1a(){const _0x299cc2=['evaluation','trial']['includes'](_0x20c376['licenseType'])?_0x1ecde5/0x3e8:0xe10*_0x3f222c;return _0x20c376['exp']<_0x299cc2;}function _0x3d1698(){const _0x4a980a=_0x20c376['features'];return!!_0x4a980a&&(!!_0x4a980a['includes']('*')||!!_0x4a980a['includes']('EIS'));}function _0x488be0(){const _0x1e8782=_0x20c376['licensedHosts'];if(!_0x1e8782||0x0==_0x1e8782['length'])return!0x0;const {hostname:_0x55f768}=new URL(window['location']['href']);if(_0x1e8782['includes'](_0x55f768))return!0x0;const _0xbb3af0=_0x55f768['split']('.');return _0x1e8782['filter'](_0x53a91c=>_0x53a91c['includes']('*'))['map'](_0x373488=>_0x373488['split']('.'))['filter'](_0x421c40=>_0x421c40['length']<=_0xbb3af0['length'])['map'](_0x3d292f=>Array(_0xbb3af0['length']-_0x3d292f['length'])['fill']('*'===_0x3d292f[0x0]?'*':'')['concat'](_0x3d292f))['some'](_0x4f3ce8=>_0xbb3af0['every']((_0x2a0fc0,_0x5571ff)=>_0x4f3ce8[_0x5571ff]===_0x2a0fc0||'*'===_0x4f3ce8[_0x5571ff]));}function _0x367249(){return _0x3f3610&&_0x5e45e6?new window['Promise']((_0x380aaf,_0x86e4f4)=>{_0x3f3610['then'](_0x380aaf,_0x86e4f4),_0x5e45e6['then'](_0x3b2121=>{'Valid'!=_0x3b2121&&_0x380aaf(_0x3b2121);},_0x86e4f4);}):_0x3f3610||_0x5e45e6||'Valid';}}function _0x192c32(_0x278566,_0x48210b){return new window['Promise'](_0x49aba4=>{if(_0x2b7d1())return _0x49aba4('Valid');_0x28e910(),_0x28c50f['decorate']('_sendUsageRequest');let _0x2ca509=!0x1;const _0x1c2ca3=_0x2ee08a();function _0x30dbc7(_0x235464){return!!_0x235464&&('object'==typeof _0x235464||'function'==typeof _0x235464)&&'function'==typeof _0x235464['then']&&'function'==typeof _0x235464['catch'];}function _0x4998b1(_0x32ab3e){_0x505623(_0x32ab3e)['then'](_0xc3afbb=>_0xc3afbb&&'ok'==_0xc3afbb['status']?_0x5b09e1(_0x24fffa(_0x1c2ca3+_0x48210b))!=_0xc3afbb['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x51b5c3=>(_0x19ad2f(),_0x51b5c3),()=>{const _0x3e0a66=_0x92eb11();return null==_0x3e0a66?(_0x19ad2f(),'Valid'):_0x1ecde5-_0x3e0a66>0x240c8400?'UsageLimit':'Valid';})['then'](_0x49aba4)['catch'](()=>{_0x49aba4('UsageLimit');});const _0x13347f=0x36ee80;function _0x19ad2f(){const _0xc029='llct-'+_0x5b09e1(_0x24fffa(_0x278566)),_0x5f3894=_0x583490(_0x5b09e1(window['Math']['ceil'](_0x1ecde5/_0x13347f)));window['localStorage']['setItem'](_0xc029,_0x5f3894);}function _0x92eb11(){const _0x566886='llct-'+_0x5b09e1(_0x24fffa(_0x278566)),_0x5a5bdc=window['localStorage']['getItem'](_0x566886);return _0x5a5bdc?window['parseInt'](_0x583490(_0x5a5bdc),0x10)*_0x13347f:null;}function _0x505623(_0xb49c6f){return new window['Promise']((_0x2f9912,_0x52f09f)=>{_0xb49c6f['then'](_0x2f9912,_0x52f09f),window['setTimeout'](_0x52f09f,0x1d4c0);});}}_0x28c50f['on']('_sendUsageRequest',(_0x4d1a67,_0xe296f8)=>{if(_0xe296f8[0x0]!=_0x278566)return _0x49aba4('UsageLimit');_0xe296f8[0x1]={..._0xe296f8[0x1],'requestId':_0x1c2ca3};},{'priority':'high'}),_0x28c50f['on']('_sendUsageRequest',_0x4b56ea=>{_0x30dbc7(_0x4b56ea['return'])&&(_0x2ca509=!0x0,_0x4998b1(_0x4b56ea['return']));},{'priority':'low'}),_0x3d7d1a['then'](()=>{_0x2ca509||_0x49aba4('UsageLimit');});});function _0x2b7d1(){return'auto'==_0x28c50f['editing']['view']['_overlayModeHint'];}function _0x28e910(){_0x28c50f['editing']['view']['_overlayModeHint']='auto';}}function _0x1f1474(_0x53790a){const _0x506433=[new window['Promise'](_0x32598c=>setTimeout(_0x32598c,0x93ecc)),_0x3d7d1a['then'](()=>new window['Promise'](_0x3e6e33=>{let _0x45e049=0x0;_0x28c50f['model']['on']('applyOperation',(_0x514ca1,_0x496aeb)=>{_0x496aeb[0x0]['isDocumentOperation']&&_0x45e049++,0x5e8==_0x45e049&&(_0x3e6e33(),_0x514ca1['off']());});}))];return window['Promise']['race'](_0x506433)['then'](()=>_0x53790a);}async function _0x592175(){await _0x3d7d1a;const _0x2eda8e=_0x28c50f['commands']['get']('exportInlineStyles');_0x2eda8e&&_0x2eda8e['on']('execute',_0x4a9a71=>{_0x4a9a71['stop']();},{'priority':'highest'}),_0x28c50f['model']['change']=_0x1cd2ea,_0x28c50f['model']['enqueueChange']=_0x1cd2ea,_0x28c50f['enableReadOnlyMode']('model');}function _0x724a02(_0x4aa5c1){const _0x45f5d2=_0x2e157a();_0x28c50f[_0x45f5d2]='exportInlineStylesLicenseKey'+_0x4aa5c1,'Valid'!=_0x4aa5c1&&_0x592175();}function _0x2e157a(){const _0x2ea62a=window['String'](window['performance']['now']())['replace']('.','');let _0x6f6ba8='D';for(let _0xc3512f=0x0;_0xc3512f<_0x2ea62a['length'];_0xc3512f+=0x2){let _0x76639=window['parseInt'](_0x2ea62a['substring'](_0xc3512f,_0xc3512f+0x2));_0x76639>=0x3e&&(_0x76639-=0x3e),_0x6f6ba8+=_0x240a88[_0x76639];}return _0x6f6ba8;}function _0x395fc0(){const _0x305f15=_0x534b2b['split']('.');if(0x3!=_0x305f15['length'])return null;return _0x244fee(_0x305f15[0x1]);function _0x244fee(_0x2975c3){const _0x1d327e=_0x42bcc2(_0x2975c3);return _0x1d327e&&_0xcd4c4b()?_0x1d327e:null;function _0xcd4c4b(){const _0x34d598=_0x1d327e['jti'],_0x3471bc=window['parseInt'](_0x34d598['substring'](_0x34d598['length']-0x8),0x10),_0x21ac3a={..._0x1d327e,'jti':_0x34d598['substring'](0x0,_0x34d598['length']-0x8)};return delete _0x21ac3a['vc'],_0x24fffa(_0x21ac3a)==_0x3471bc;}}}async function _0x429e9e(){let _0x31abc9=!0x0;try{const [_0x287184,_0x5170ee,_0x1ca987]=_0x534b2b['split']('.');return _0x24cb3f(_0x287184),await _0x2d2bc0(_0x287184,_0x5170ee,_0x1ca987),_0x31abc9;}catch{return!0x1;}function _0x24cb3f(_0x4dc107){const _0x1a4636=_0x42bcc2(_0x4dc107);_0x1a4636&&'ES256'==_0x1a4636['alg']||(_0x31abc9=!0x1);}async function _0x2d2bc0(_0x12c1bd,_0x148706,_0x5cf685){const _0x614350=window['Uint8Array']['from'](_0x17f157(_0x5cf685),_0x48f332=>_0x48f332['charCodeAt'](0x0)),_0x4e2d26=new window['TextEncoder']()['encode'](_0x12c1bd+'.'+_0x148706),_0x5d4197=window['crypto']['subtle'];if(!_0x5d4197)return;const _0x357c74=await _0x5d4197['importKey']('jwk',_0x9072a9,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5d4197['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x357c74,_0x614350,_0x4e2d26)||(_0x31abc9=!0x1);}}function _0x42bcc2(_0x120fd0){return _0x120fd0['startsWith']('ey')?JSON['parse'](_0x17f157(_0x120fd0)):null;}function _0x17f157(_0x247d37){return window['atob'](_0x247d37['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x24fffa(_0x4ddcbd){let _0x24ab2a=0x1505;function _0x5dff05(_0x23c601){for(let _0x42728d=0x0;_0x42728d<_0x23c601['length'];_0x42728d++){const _0x33c389=_0x23c601['charCodeAt'](_0x42728d);_0x24ab2a=(_0x24ab2a<<0x5)+_0x24ab2a+_0x33c389,_0x24ab2a&=_0x24ab2a;}}function _0x5963e0(_0x4346a6){Array['isArray'](_0x4346a6)?_0x4346a6['forEach'](_0x5963e0):_0x4346a6&&'object'==typeof _0x4346a6?Object['entries'](_0x4346a6)['sort']()['forEach'](([_0x138b9a,_0x385a7c])=>{_0x5dff05(_0x138b9a),_0x5963e0(_0x385a7c);}):_0x5dff05(window['String'](_0x4346a6));}return _0x5963e0(_0x4ddcbd),_0x24ab2a>>>0x0;}function _0x5b09e1(_0x2e587d){return _0x2e587d['toString'](0x10)['padStart'](0x8,'0');}function _0x583490(_0x59e05b){return _0x59e05b['split']('')['reverse']()['join']('');}function _0x1cd2ea(){}_0x724a02(await _0x3350c8());}(this);}},I=class extends _0x36f454{['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 _0x1df3e2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d5cac;for(const _0x5a1f15 in _0x1df3e2){const _0x50d807=_0x5a1f15,_0xb4de82=_0x1df3e2[_0x50d807];if('exportInlineStylesLicenseKeyValid'==_0xb4de82||'exportInlineStylesLicenseKeyInvalid'==_0xb4de82||'exportInlineStylesLicenseKeyExpired'==_0xb4de82||'exportInlineStylesLicenseKeyDomainLimit'==_0xb4de82||'exportInlineStylesLicenseKeyNotAllowed'==_0xb4de82||'exportInlineStylesLicenseKeyEvaluationLimit'==_0xb4de82||'exportInlineStylesLicenseKeyUsageLimit'==_0xb4de82){delete _0x1df3e2[_0x50d807],_0x3d5cac=_0xb4de82,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x3d5cac&&_0x1df3e2['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x3d5cac&&_0x1df3e2['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x3d5cac&&_0x1df3e2['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x3d5cac&&_0x1df3e2['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x3d5cac&&_0x1df3e2['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x3d5cac&&_0x1df3e2['_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-alpha.0",
3
+ "version": "48.3.1-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-alpha.0",
38
- "@ckeditor/ckeditor5-engine": "48.3.1-alpha.0",
39
- "@ckeditor/ckeditor5-utils": "48.3.1-alpha.0",
37
+ "@ckeditor/ckeditor5-core": "48.3.1-alpha.1",
38
+ "@ckeditor/ckeditor5-engine": "48.3.1-alpha.1",
39
+ "@ckeditor/ckeditor5-utils": "48.3.1-alpha.1",
40
40
  "specificity": "0.4.1"
41
41
  },
42
42
  "files": [