@ckeditor/ckeditor5-export-inline-styles 48.1.0-alpha.0 → 48.1.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.
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x241693,Plugin as _0x36af60}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0x10fe95,createElement as _0x1a7fd4,uid as _0x34dbe5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{StylesMap as _0x197960,addMarginStylesRules as _0x2dafd0,addPaddingStylesRules as _0x160fc5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{calculate as _0x29bbb1,compare as _0x419762}from'specificity';function f(_0xd62165){const _0x693230=[];let _0x46a4f2='',_0x5df475=0x0;for(;_0x5df475<_0xd62165['length'];){const _0x45eb47=_0xd62165[_0x5df475];if('('===_0x45eb47){const _0x401a6d=y(_0xd62165,_0x5df475+0x1);if(-0x1===_0x401a6d)return[];_0x46a4f2+=_0xd62165['slice'](_0x5df475,_0x401a6d+0x1),_0x5df475=_0x401a6d+0x1;}else','!==_0x45eb47||_0x46a4f2['endsWith']('\x5c')?(_0x46a4f2+=_0x45eb47,_0x5df475++):(_0x693230['push'](_0x46a4f2['trim']()),_0x46a4f2='',_0x5df475++);}return _0x46a4f2['trim']()&&_0x693230['push'](_0x46a4f2['trim']()),_0x693230['filter'](Boolean);}function y(_0x28141c,_0x26bec7){let _0x7e03ed=0x1;for(let _0x3aa5a4=_0x26bec7;_0x3aa5a4<_0x28141c['length'];_0x3aa5a4++){const _0x4b00c0=_0x28141c[_0x3aa5a4];if('('===_0x4b00c0)_0x7e03ed++;else{if(')'===_0x4b00c0&&(_0x7e03ed--,0x0===_0x7e03ed))return _0x3aa5a4;}}return-0x1;}function w(_0x347ff8){return _0x347ff8['replace'](/!\s*important/i,'')['trim']();}function d(_0x5cd1b9,_0x8b9cda){const _0x4075a9=new Map(),_0x100447=_0x112895=>_0x4075a9['has'](_0x112895)?_0x4075a9['get'](_0x112895):_0x5cd1b9(_0x112895);for(const [_0x4b3b38,_0x5ce5d4]of _0x8b9cda['getStylesEntries']())if(_0x5ce5d4&&_0x4b3b38['startsWith']('--')){const _0x5e98b1=p(_0x100447,_0x5ce5d4);_0x4075a9['set'](_0x4b3b38,_0x5e98b1),_0x8b9cda['remove'](_0x4b3b38);}for(const [_0x431039,_0x531bf2]of _0x8b9cda['getStylesEntries']())if(_0x531bf2){const _0x5efa53=p(_0x100447,_0x531bf2);_0x8b9cda['set'](_0x431039,_0x5efa53);}return _0x4075a9;}function p(_0x1db91c,_0x2a5344){return function(_0x2e4279,_0x5c8327){let _0x2820b2='',_0x5e79c7=0x0;for(;_0x5e79c7<_0x2e4279['length'];){const _0x21ed98=_0x2e4279['indexOf']('var(',_0x5e79c7);if(-0x1===_0x21ed98){_0x2820b2+=_0x2e4279['slice'](_0x5e79c7);break;}_0x2820b2+=_0x2e4279['slice'](_0x5e79c7,_0x21ed98);const _0xe5b361=_0x21ed98+0x4,_0x3c0c5f=y(_0x2e4279,_0xe5b361);_0x2820b2+=_0x5c8327(_0x2e4279['substring'](_0xe5b361,_0x3c0c5f)),_0x5e79c7=_0x3c0c5f+0x1;}return _0x2820b2;}(_0x2a5344,_0x434df1=>{const [_0x3ab0da,_0x3c0572]=f(_0x434df1),_0x598861=_0x1db91c(_0x3ab0da);return void 0x0!==_0x598861?_0x598861:_0x3c0572?p(_0x1db91c,_0x3c0572):'var('+_0x3ab0da+')';});}async function m(_0x24d89b){const _0xaae50f=[await _0x10fe95(_0x24d89b['stylesheets']),_0x24d89b['inlineCss']]['filter'](_0x2310b8=>_0x2310b8&&_0x2310b8['length'])['join']('\x0a'),_0x32a92e=await async function(_0x248706,_0x579437){const _0x5c9c46=new CSSStyleSheet();return await _0x5c9c46['replace'](_0x579437),h(Array['from'](_0x5c9c46['cssRules'])['filter'](_0x3b047b=>_0x3b047b instanceof CSSStyleRule))['flatMap'](({selectorText:_0x41f1ae,contentCssText:_0x1c799c})=>{const _0x240e53=f(_0x41f1ae),_0x33e08e=new _0x197960(_0x248706)['setTo'](_0x1c799c);return _0x240e53['map'](_0x2c6c93=>{const _0x1a202e=function(_0x52b9b5){const _0x4a39b1=':where(';let _0x47b967=_0x52b9b5,_0x34515b=0x0;for(let _0x572a1a=0x0;_0x572a1a<0x64;_0x572a1a++){const _0xff8bb6=_0x47b967['indexOf'](_0x4a39b1,_0x34515b);if(-0x1===_0xff8bb6)break;let _0x1a1b03=0x0;for(let _0x298ea9=0x0;_0x298ea9<_0xff8bb6;_0x298ea9++)'('===_0x47b967[_0x298ea9]?_0x1a1b03++:')'===_0x47b967[_0x298ea9]&&_0x1a1b03--;if(_0x1a1b03>0x0){_0x34515b=_0xff8bb6+_0x4a39b1['length'];continue;}let _0x493263=-0x1;for(let _0x45b5d5=_0xff8bb6+_0x4a39b1['length'],_0x4ed552=0x1;_0x45b5d5<_0x47b967['length'];_0x45b5d5++)if('('===_0x47b967[_0x45b5d5]?_0x4ed552++:')'===_0x47b967[_0x45b5d5]&&_0x4ed552--,!_0x4ed552){_0x493263=_0x45b5d5;break;}-0x1!==_0x493263?(_0x47b967=_0x47b967['slice'](0x0,_0xff8bb6)+_0x47b967['slice'](_0x493263+0x1),_0x34515b=_0xff8bb6):_0x34515b=_0xff8bb6+_0x4a39b1['length'];}return _0x47b967['replace'](/\s+/g,'\x20')['trim']();}(_0x2c6c93),_0x1f6b8b=_0x1a202e?_0x29bbb1(_0x1a202e)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x33e08e,'flatSelector':_0x2c6c93,'specificity':_0x1f6b8b};});})['sort']((_0x284bcf,_0x1b8b07)=>_0x419762(_0x284bcf['specificity'],_0x1b8b07['specificity']));}(_0x24d89b['stylesProcessor'],_0xaae50f);return{'parsedCssRules':_0x32a92e,'rootCssVariables':function(_0x244fcb){const _0x412349=new Map();for(const {stylesMap:_0x5cd638,flatSelector:_0x4b085a}of _0x244fcb){if(':root'!==_0x4b085a)continue;const _0x50e35b=d(_0x412349['get']['bind'](_0x412349),_0x5cd638);for(const [_0x4e7780,_0xff87e1]of _0x50e35b)_0x412349['set'](_0x4e7780,_0xff87e1);}return _0x412349;}(_0x32a92e)};}function h(_0x108f00,_0x107566=''){return _0x108f00['flatMap'](_0x296395=>{const {selectorText:_0x1b364d,cssText:_0x51d007,cssRules:_0x3dfe8b}=_0x296395;if(!_0x1b364d)return[];const _0x30f3da=_0x1b364d['replace'](/&/g,_0x107566);let _0x1afa9f=_0x51d007['replace'](_0x1b364d,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x3dfe8b||!_0x3dfe8b['length'])return[{'selectorText':_0x30f3da,'contentCssText':_0x1afa9f}];for(const _0x100208 of _0x3dfe8b)_0x1afa9f=_0x1afa9f['replace'](_0x100208['cssText'],'')['trim']();return[{'selectorText':_0x30f3da,'contentCssText':_0x1afa9f},...h(Array['from'](_0x3dfe8b),_0x30f3da)];});}function S(_0x10c3c1,_0x534bdf){const _0x46d9b6=new _0x197960(_0x10c3c1);for(const _0x26af96 of _0x534bdf){let _0x561176=null;if(_0x561176='string'==typeof _0x26af96?new _0x197960(_0x10c3c1)['setTo'](_0x26af96):_0x26af96,_0x561176){for(const [_0x7479e2,_0x33d4a7]of _0x561176['getStylesEntries']())_0x46d9b6['set'](_0x7479e2,_0x33d4a7);}}return _0x46d9b6;}class x extends _0x241693{['_stylesProcessor'];constructor(_0x628f8e){super(_0x628f8e),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x2dafd0(this['_stylesProcessor']),_0x160fc5(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x5be6a4){const _0x3facbf=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x5af68d}=this['editor']['locale'],{rootName:_0x2160b6='main',dataControllerDowncastOptions:_0x1cdb85={},transformations:_0x2140a6=_0x3facbf['transformations']||[]}=_0x5be6a4||{};this['isBusy']=!0x0,this['refresh']();const _0x25906b=this['_getRootDataHTMLFragment'](_0x2160b6,_0x1cdb85),_0x5859de=_0x1a7fd4(_0x25906b['ownerDocument'],'div',{'dir':_0x5af68d,'class':'ck-content'},[_0x25906b]);return this['_collectAndApplyStyles'](_0x2140a6,_0x5859de)['then'](()=>{const _0x9c5b89=function(_0x2f5e13){const _0x55302a=_0x2f5e13['ownerDocument']['createDocumentFragment']();for(;_0x2f5e13['firstChild'];)_0x55302a['appendChild'](_0x2f5e13['firstChild']);return _0x55302a;}(_0x5859de),_0x1e059b=_0x5859de['getAttribute']('style');if(_0x1e059b)for(const _0x2827de of _0x9c5b89['children']){const _0x107cba=_0x2827de['getAttribute']('style'),_0x5dfd8f=S(this['_stylesProcessor'],[_0x1e059b,_0x107cba]);_0x2827de['setAttribute']('style',C(_0x5dfd8f));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x9c5b89);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x1b3555,_0x22780f){const {data:_0x3d7324,model:_0x2e40f0}=this['editor'],_0x3496c1=_0x2e40f0['document']['getRoot'](_0x1b3555),_0x69dd48=_0x3d7324['toView'](_0x3496c1,_0x22780f);return _0x3d7324['htmlProcessor']['domConverter']['viewToDom'](_0x69dd48);}async['_collectAndApplyStyles'](_0x59b31d,_0x28b504){const {stylesheets:_0x498ac3,inlineCss:_0xc91b1d,stripCssClasses:_0x23f534}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x356374,rootCssVariables:_0x5402a0}=await m({'stylesheets':_0x498ac3||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0xc91b1d}),_0xff92f2=[];this['_processElementTree']({'transformations':_0x59b31d,'parsedCssRules':_0x356374,'element':_0x28b504,'stripCssClasses':_0x23f534,'parentCSSVariablesLookup':_0x5402a0['get']['bind'](_0x5402a0),'runAfterDocumentTransformation':_0x233909=>{_0xff92f2['unshift'](_0x233909);}});for(const _0x55c036 of _0xff92f2)_0x55c036();}['_processElementTree']({element:_0x544684,parsedCssRules:_0x4a6711,parentCSSVariablesLookup:_0x1d15cc,runAfterDocumentTransformation:_0x3b72b6,stripCssClasses:_0xd5d60,transformations:_0x2337dc}){const {stylesMap:_0x5d473a,localCSSVariables:_0x72b365}=function(_0x211d4c){const _0x10c2bc=_0x211d4c['element']['getAttribute']('style')||'',_0x2d9878=_0x211d4c['parsedCssRules']['filter'](_0x5df980=>_0x211d4c['element']['matches'](_0x5df980['flatSelector']))['map'](_0x1f81db=>_0x1f81db['stylesMap']),_0x40bdae=S(_0x211d4c['stylesProcessor'],[..._0x2d9878,_0x10c2bc]);return{'localCSSVariables':d(_0x211d4c['fallbackCSSVariablesLookup'],_0x40bdae),'stylesMap':_0x40bdae};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x1d15cc,'parsedCssRules':_0x4a6711,'element':_0x544684}),_0x3a1ab5=[];for(const _0x3e2505 of _0x2337dc){const _0xe97b1a=_0x3e2505(_0x544684,_0x5d473a,{'runAfterDocumentTransformation':_0x3b72b6,'runAfterChildrenTransformation':_0x599945=>{_0x3a1ab5['unshift'](_0x599945);}});_0xe97b1a&&_0xe97b1a instanceof HTMLElement&&(_0x544684=_0xe97b1a);}_0x5d473a['size']?_0x544684['setAttribute']('style',C(_0x5d473a)):_0x544684['removeAttribute']('style');const _0x22fbf8=_0x40a925=>_0x72b365['has'](_0x40a925)?_0x72b365['get'](_0x40a925):_0x1d15cc(_0x40a925);for(const _0x3a144d of _0x544684['children'])_0x3a144d instanceof HTMLElement&&this['_processElementTree']({'element':_0x3a144d,'parsedCssRules':_0x4a6711,'stripCssClasses':_0xd5d60,'transformations':_0x2337dc,'parentCSSVariablesLookup':_0x22fbf8,'runAfterDocumentTransformation':_0x3b72b6});_0xd5d60&&_0x544684['removeAttribute']('class');for(const _0x54fe40 of _0x3a1ab5)_0x54fe40();}}function C(_0xb725e2){return _0xb725e2['getStylesEntries']()['map'](_0x2f2c9f=>_0x2f2c9f['join'](':'))['join'](';')+';';}class L extends _0x36af60{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 x(this['editor']));}['afterInit'](){!async function(_0x5d1258){const _0x4e3abf=_0x1d4ff5([0x44,0x55,0x41,0x36,0x31,0x30,0x65,0x6d,0x4c,0x34,0x51,0x32,0x6b,0x6a,0x56,0x49,0x76,0x47,0x4d,0x48,0x67,0x57,0x54,0x33,0x75,0x79,0x53,0x6e,0x7a,0x50,0x45,0x77,0x37,0x39,0x6f,0x5a,0x4a,0x69,0x43,0x72,0x62,0x73,0x74,0x63,0x58,0x4b,0x71,0x38,0x35,0x4e,0x68,0x64,0x66,0x61,0x46,0x52,0x78,0x42,0x6c,0x70,0x4f,0x59]),_0x35a508=0x6f40c3fb,_0x424453=0x6f474ab3^_0x35a508,_0x1774b1=window[_0x1d4ff5([0x44,0x61,0x74,0x65])][_0x1d4ff5([0x6e,0x6f,0x77])](),_0x516ad7=_0x5d1258[_0x1d4ff5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa28655=new window[(_0x1d4ff5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e9cb7=>{_0x516ad7[_0x1d4ff5([0x6f,0x6e,0x63,0x65])](_0x1d4ff5([0x72,0x65,0x61,0x64,0x79]),_0x1e9cb7);}),_0x39d209={[_0x1d4ff5([0x6b,0x74,0x79])]:_0x1d4ff5([0x45,0x43]),[_0x1d4ff5([0x75,0x73,0x65])]:_0x1d4ff5([0x73,0x69,0x67]),[_0x1d4ff5([0x63,0x72,0x76])]:_0x1d4ff5([0x50,0x2d,0x32,0x35,0x36]),[_0x1d4ff5([0x78])]:_0x1d4ff5([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1d4ff5([0x79])]:_0x1d4ff5([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1d4ff5([0x61,0x6c,0x67])]:_0x1d4ff5([0x45,0x53,0x32,0x35,0x36])},_0x386640=_0x516ad7[_0x1d4ff5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d4ff5([0x67,0x65,0x74])](_0x1d4ff5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x195e47(){let _0x2f128b,_0x5bbb81=null,_0x2561d8=null;try{if(_0x386640==_0x1d4ff5([0x47,0x50,0x4c]))return _0x1d4ff5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f128b=_0x59a205(),!_0x2f128b)return _0x1d4ff5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f128b[_0x1d4ff5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2561d8=_0x2db97b(_0x2f128b[_0x1d4ff5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f128b[_0x1d4ff5([0x6a,0x74,0x69])])),await _0x57bb67()?_0x1b90cb()?_0x552136()?_0x1d4ff5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34c534()?(_0x2f128b[_0x1d4ff5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d4ff5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5bbb81=_0x161538(_0x1d4ff5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x53c7b7()):_0x1d4ff5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d4ff5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d4ff5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d4ff5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x552136(){const _0x2092fa=[_0x1d4ff5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d4ff5([0x74,0x72,0x69,0x61,0x6c])][_0x1d4ff5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f128b[_0x1d4ff5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1774b1/0x3e8:0xe10*_0x424453;return _0x2f128b[_0x1d4ff5([0x65,0x78,0x70])]<_0x2092fa;}function _0x1b90cb(){const _0x3c90d9=_0x2f128b[_0x1d4ff5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c90d9&&(!!_0x3c90d9[_0x1d4ff5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d4ff5([0x2a]))||!!_0x3c90d9[_0x1d4ff5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d4ff5([0x45,0x49,0x53])));}function _0x34c534(){const _0x2c1479=_0x2f128b[_0x1d4ff5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c1479||0x0==_0x2c1479[_0x1d4ff5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ee195}=new URL(window[_0x1d4ff5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2c1479[_0x1d4ff5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ee195))return!0x0;const _0x13ad4b=_0x5ee195[_0x1d4ff5([0x73,0x70,0x6c,0x69,0x74])](_0x1d4ff5([0x2e]));return _0x2c1479[_0x1d4ff5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d46e9=>_0x2d46e9[_0x1d4ff5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d4ff5([0x2a])))[_0x1d4ff5([0x6d,0x61,0x70])](_0x502445=>_0x502445[_0x1d4ff5([0x73,0x70,0x6c,0x69,0x74])](_0x1d4ff5([0x2e])))[_0x1d4ff5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a6f88=>_0x4a6f88[_0x1d4ff5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x13ad4b[_0x1d4ff5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d4ff5([0x6d,0x61,0x70])](_0x5889df=>Array(_0x13ad4b[_0x1d4ff5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5889df[_0x1d4ff5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d4ff5([0x66,0x69,0x6c,0x6c])](_0x5889df[0x0]===_0x1d4ff5([0x2a])?_0x1d4ff5([0x2a]):'')[_0x1d4ff5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5889df))[_0x1d4ff5([0x73,0x6f,0x6d,0x65])](_0x9b89b4=>_0x13ad4b[_0x1d4ff5([0x65,0x76,0x65,0x72,0x79])]((_0x46e1b3,_0x4a9e58)=>_0x9b89b4[_0x4a9e58]===_0x46e1b3||_0x9b89b4[_0x4a9e58]===_0x1d4ff5([0x2a])));}function _0x53c7b7(){return _0x5bbb81&&_0x2561d8?new window[(_0x1d4ff5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x225cda,_0xc0ea08)=>{_0x5bbb81[_0x1d4ff5([0x74,0x68,0x65,0x6e])](_0x225cda,_0xc0ea08),_0x2561d8[_0x1d4ff5([0x74,0x68,0x65,0x6e])](_0x1da88a=>{_0x1da88a!=_0x1d4ff5([0x56,0x61,0x6c,0x69,0x64])&&_0x225cda(_0x1da88a);},_0xc0ea08);}):_0x5bbb81||_0x2561d8||_0x1d4ff5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2db97b(_0x2a4e8e,_0x4d66d8){return new window[(_0x1d4ff5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17be06=>{if(_0x29c695())return _0x17be06(_0x1d4ff5([0x56,0x61,0x6c,0x69,0x64]));_0x1b38e3(),_0x516ad7[_0x1d4ff5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d4ff5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x44fb92=!0x1;const _0x4960e5=_0x34dbe5();function _0x2f3028(_0x5f39b4){return!!_0x5f39b4&&(typeof _0x5f39b4===_0x1d4ff5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5f39b4===_0x1d4ff5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5f39b4[_0x1d4ff5([0x74,0x68,0x65,0x6e])]===_0x1d4ff5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5f39b4[_0x1d4ff5([0x63,0x61,0x74,0x63,0x68])]===_0x1d4ff5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x899745(_0x6e6024){_0x541b07(_0x6e6024)[_0x1d4ff5([0x74,0x68,0x65,0x6e])](_0x2afddd=>{if(!_0x2afddd||_0x2afddd[_0x1d4ff5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d4ff5([0x6f,0x6b]))return _0x1d4ff5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30df10(_0x3f491a(_0x4960e5+_0x4d66d8))!=_0x2afddd[_0x1d4ff5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d4ff5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d4ff5([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d4ff5([0x74,0x68,0x65,0x6e])](_0x9e6636=>(_0x4f4d1b(),_0x9e6636),()=>{const _0x4cfb5d=_0x4ee454();return null==_0x4cfb5d?(_0x4f4d1b(),_0x1d4ff5([0x56,0x61,0x6c,0x69,0x64])):_0x1d4ff5(_0x1774b1-_0x4cfb5d>(0x4b4c47fb^_0x35a508)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d4ff5([0x74,0x68,0x65,0x6e])](_0x17be06)[_0x1d4ff5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x17be06(_0x1d4ff5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1aaa5f=0x6f762d7b^_0x35a508;function _0x4f4d1b(){const _0x3e351e=_0x1d4ff5([0x6c,0x6c,0x63,0x74,0x2d])+_0x30df10(_0x3f491a(_0x2a4e8e)),_0x32f9ff=_0x453fb0(_0x30df10(window[_0x1d4ff5([0x4d,0x61,0x74,0x68])][_0x1d4ff5([0x63,0x65,0x69,0x6c])](_0x1774b1/_0x1aaa5f)));window[_0x1d4ff5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d4ff5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e351e,_0x32f9ff);}function _0x4ee454(){const _0x4e0fd6=_0x1d4ff5([0x6c,0x6c,0x63,0x74,0x2d])+_0x30df10(_0x3f491a(_0x2a4e8e)),_0x37b040=window[_0x1d4ff5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d4ff5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e0fd6);return _0x37b040?window[_0x1d4ff5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x453fb0(_0x37b040),0x10)*_0x1aaa5f:null;}function _0x541b07(_0x52ea9e){return new window[(_0x1d4ff5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb11e4,_0x4a1c1b)=>{_0x52ea9e[_0x1d4ff5([0x74,0x68,0x65,0x6e])](_0xb11e4,_0x4a1c1b),window[_0x1d4ff5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a1c1b,0x6f41173b^_0x35a508);});}}_0x516ad7[_0x1d4ff5([0x6f,0x6e])](_0x1d4ff5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x222136,_0x2c4f17)=>{if(_0x2c4f17[0x0]!=_0x2a4e8e)return _0x17be06(_0x1d4ff5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c4f17[0x1]={..._0x2c4f17[0x1],[_0x1d4ff5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4960e5};},{[_0x1d4ff5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d4ff5([0x68,0x69,0x67,0x68])}),_0x516ad7[_0x1d4ff5([0x6f,0x6e])](_0x1d4ff5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x512a92=>{_0x2f3028(_0x512a92[_0x1d4ff5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x44fb92=!0x0,_0x899745(_0x512a92[_0x1d4ff5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d4ff5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d4ff5([0x6c,0x6f,0x77])}),_0xa28655[_0x1d4ff5([0x74,0x68,0x65,0x6e])](()=>{_0x44fb92||_0x17be06(_0x1d4ff5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x29c695(){return _0x516ad7[_0x1d4ff5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d4ff5([0x76,0x69,0x65,0x77])][_0x1d4ff5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d4ff5([0x61,0x75,0x74,0x6f]);}function _0x1b38e3(){_0x516ad7[_0x1d4ff5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d4ff5([0x76,0x69,0x65,0x77])][_0x1d4ff5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d4ff5([0x61,0x75,0x74,0x6f]);}}function _0x161538(_0x50bee0){const _0x3118b3=[new window[(_0x1d4ff5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d176f=>setTimeout(_0x3d176f,0x6f49fd37^_0x35a508)),_0xa28655[_0x1d4ff5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d4ff5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b41e8=>{let _0x54b29f=0x0;_0x516ad7[_0x1d4ff5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d4ff5([0x6f,0x6e])](_0x1d4ff5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4cbfb8,_0x5a635c)=>{_0x5a635c[0x0][_0x1d4ff5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x54b29f++,_0x54b29f==(0x6f40c613^_0x35a508)&&(_0x3b41e8(),_0x4cbfb8[_0x1d4ff5([0x6f,0x66,0x66])]());});}))];return window[_0x1d4ff5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d4ff5([0x72,0x61,0x63,0x65])](_0x3118b3)[_0x1d4ff5([0x74,0x68,0x65,0x6e])](()=>_0x50bee0);}async function _0x4cfe74(){await _0xa28655;const _0x37f425=_0x516ad7['commands'][_0x1d4ff5([0x67,0x65,0x74])](_0x1d4ff5([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x37f425&&_0x37f425[_0x1d4ff5([0x6f,0x6e])](_0x1d4ff5([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x2357af=>{_0x2357af['stop']();},{'priority':_0x1d4ff5([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x516ad7[_0x1d4ff5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d4ff5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a2694,_0x516ad7[_0x1d4ff5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d4ff5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a2694,_0x516ad7[_0x1d4ff5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d4ff5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35953b(_0x549a6c){const _0x4f8a7b=_0x4c0bf8();_0x516ad7[_0x4f8a7b]=_0x1d4ff5([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x549a6c,_0x549a6c!=_0x1d4ff5([0x56,0x61,0x6c,0x69,0x64])&&_0x4cfe74();}function _0x4c0bf8(){const _0x156c57=window[_0x1d4ff5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d4ff5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d4ff5([0x6e,0x6f,0x77])]())[_0x1d4ff5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d4ff5([0x2e]),'');let _0x1c0a68=_0x1d4ff5([0x44]);for(let _0x567d26=0x0;_0x567d26<_0x156c57[_0x1d4ff5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x567d26+=0x2){let _0x4e62ee=window[_0x1d4ff5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x156c57[_0x1d4ff5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x567d26,_0x567d26+0x2));_0x4e62ee>=_0x4e3abf[_0x1d4ff5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e62ee-=_0x4e3abf[_0x1d4ff5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c0a68+=_0x4e3abf[_0x4e62ee];}return _0x1c0a68;}function _0x59a205(){const _0x4d4126=_0x386640[_0x1d4ff5([0x73,0x70,0x6c,0x69,0x74])](_0x1d4ff5([0x2e]));if(0x3!=_0x4d4126[_0x1d4ff5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47d4d2(_0x4d4126[0x1]);function _0x47d4d2(_0xb80f55){const _0x2b527f=_0x260bdb(_0xb80f55);return _0x2b527f&&_0x2c760e()?_0x2b527f:null;function _0x2c760e(){const _0x4468ce=_0x2b527f[_0x1d4ff5([0x6a,0x74,0x69])],_0x30d3d7=window[_0x1d4ff5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4468ce[_0x1d4ff5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4468ce[_0x1d4ff5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x253e3d={..._0x2b527f,[_0x1d4ff5([0x6a,0x74,0x69])]:_0x4468ce[_0x1d4ff5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4468ce[_0x1d4ff5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x253e3d[_0x1d4ff5([0x76,0x63])],_0x3f491a(_0x253e3d)==_0x30d3d7;}}}async function _0x57bb67(){let _0x17b33f=!0x0;try{const _0x329835=_0x386640[_0x1d4ff5([0x73,0x70,0x6c,0x69,0x74])](_0x1d4ff5([0x2e])),[_0x4a50be,_0x16e7d7,_0x4d3d54]=_0x329835;return _0x3580b1(_0x4a50be),await _0x10548a(_0x4a50be,_0x16e7d7,_0x4d3d54),_0x17b33f;}catch{return!0x1;}function _0x3580b1(_0x13bb63){const _0x45b7d2=_0x260bdb(_0x13bb63);_0x45b7d2&&_0x45b7d2[_0x1d4ff5([0x61,0x6c,0x67])]==_0x1d4ff5([0x45,0x53,0x32,0x35,0x36])||(_0x17b33f=!0x1);}async function _0x10548a(_0x241a70,_0x2c0d04,_0x1df0c4){const _0x19d49c=window[_0x1d4ff5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d4ff5([0x66,0x72,0x6f,0x6d])](_0x122e08(_0x1df0c4),_0x2b54d0=>_0x2b54d0[_0x1d4ff5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4317a7=new window[(_0x1d4ff5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d4ff5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x241a70+_0x1d4ff5([0x2e])+_0x2c0d04),_0x2d8f7a=window[_0x1d4ff5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d4ff5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d8f7a)return;const _0x4b0613=await _0x2d8f7a[_0x1d4ff5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d4ff5([0x6a,0x77,0x6b]),_0x39d209,{[_0x1d4ff5([0x6e,0x61,0x6d,0x65])]:_0x1d4ff5([0x45,0x43,0x44,0x53,0x41]),[_0x1d4ff5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d4ff5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d4ff5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d8f7a[_0x1d4ff5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d4ff5([0x6e,0x61,0x6d,0x65])]:_0x1d4ff5([0x45,0x43,0x44,0x53,0x41]),[_0x1d4ff5([0x68,0x61,0x73,0x68])]:{[_0x1d4ff5([0x6e,0x61,0x6d,0x65])]:_0x1d4ff5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b0613,_0x19d49c,_0x4317a7)||(_0x17b33f=!0x1);}}function _0x260bdb(_0xd4c46e){return _0xd4c46e[_0x1d4ff5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d4ff5([0x65,0x79]))?JSON[_0x1d4ff5([0x70,0x61,0x72,0x73,0x65])](_0x122e08(_0xd4c46e)):null;}function _0x122e08(_0x82568){return window[_0x1d4ff5([0x61,0x74,0x6f,0x62])](_0x82568[_0x1d4ff5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d4ff5([0x2b]))[_0x1d4ff5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d4ff5([0x2f])));}function _0x3f491a(_0x1c0829){let _0x4b0daa=0x1505;function _0x21bf32(_0x28ac6e){for(let _0x261558=0x0;_0x261558<_0x28ac6e[_0x1d4ff5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x261558++){const _0x294bea=_0x28ac6e[_0x1d4ff5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x261558);_0x4b0daa=(_0x4b0daa<<0x5)+_0x4b0daa+_0x294bea,_0x4b0daa&=_0x4b0daa;}}function _0x3cfb0b(_0x24fb57){Array[_0x1d4ff5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x24fb57)?_0x24fb57[_0x1d4ff5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3cfb0b):_0x24fb57&&typeof _0x24fb57==_0x1d4ff5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d4ff5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x24fb57)[_0x1d4ff5([0x73,0x6f,0x72,0x74])]()[_0x1d4ff5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xadd5fa,_0x2bac64])=>{_0x21bf32(_0xadd5fa),_0x3cfb0b(_0x2bac64);}):_0x21bf32(window[_0x1d4ff5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x24fb57));}return _0x3cfb0b(_0x1c0829),_0x4b0daa>>>0x0;}function _0x30df10(_0x38200d){return _0x38200d[_0x1d4ff5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d4ff5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d4ff5([0x30]));}function _0x453fb0(_0x5f5440){return _0x5f5440[_0x1d4ff5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d4ff5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d4ff5([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a2694(){}function _0x1d4ff5(_0x51043c){return _0x51043c['map'](_0x34bec2=>String['fromCharCode'](_0x34bec2))['join']('');}_0x35953b(await _0x195e47());}(this);}}class g extends _0x36af60{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[L];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x26e8be=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x290d9b;for(const _0x24f427 in _0x26e8be){const _0x1e520b=_0x24f427,_0x13f155=_0x26e8be[_0x1e520b];if('exportInlineStylesLicenseKeyValid'==_0x13f155||'exportInlineStylesLicenseKeyInvalid'==_0x13f155||'exportInlineStylesLicenseKeyExpired'==_0x13f155||'exportInlineStylesLicenseKeyDomainLimit'==_0x13f155||'exportInlineStylesLicenseKeyNotAllowed'==_0x13f155||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x13f155||'exportInlineStylesLicenseKeyUsageLimit'==_0x13f155){delete _0x26e8be[_0x1e520b],_0x290d9b=_0x13f155,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x290d9b&&_0x26e8be['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x290d9b&&_0x26e8be['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x290d9b&&_0x26e8be['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x290d9b&&_0x26e8be['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x290d9b&&_0x26e8be['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x290d9b&&_0x26e8be['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}export{g as ExportInlineStyles,x as ExportInlineStylesCommand,L as ExportInlineStylesEditing,w as dropImportantStyleSuffix};
|
|
23
|
+
import{Command as _0x19ede7,Plugin as _0x4b3014}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0x3d5de8,createElement as _0x9a628d,uid as _0xaff2bd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{StylesMap as _0x457922,addMarginStylesRules as _0x25482d,addPaddingStylesRules as _0x517734}from'@ckeditor/ckeditor5-engine/dist/index.js';import{calculate as _0x2d3f58,compare as _0x8b67b1}from'specificity';function f(_0x411975){const _0xc2b878=[];let _0x4f312f='',_0x581703=0x0;for(;_0x581703<_0x411975['length'];){const _0x5509d5=_0x411975[_0x581703];if('('===_0x5509d5){const _0x5bb0c6=y(_0x411975,_0x581703+0x1);if(-0x1===_0x5bb0c6)return[];_0x4f312f+=_0x411975['slice'](_0x581703,_0x5bb0c6+0x1),_0x581703=_0x5bb0c6+0x1;}else','!==_0x5509d5||_0x4f312f['endsWith']('\x5c')?(_0x4f312f+=_0x5509d5,_0x581703++):(_0xc2b878['push'](_0x4f312f['trim']()),_0x4f312f='',_0x581703++);}return _0x4f312f['trim']()&&_0xc2b878['push'](_0x4f312f['trim']()),_0xc2b878['filter'](Boolean);}function y(_0x331375,_0x3ea991){let _0x157144=0x1;for(let _0x37be86=_0x3ea991;_0x37be86<_0x331375['length'];_0x37be86++){const _0x478989=_0x331375[_0x37be86];if('('===_0x478989)_0x157144++;else{if(')'===_0x478989&&(_0x157144--,0x0===_0x157144))return _0x37be86;}}return-0x1;}function w(_0x11191a){return _0x11191a['replace'](/!\s*important/i,'')['trim']();}function d(_0x4c862b,_0xd8305d){const _0x37cc5a=new Map(),_0x5b4d85=_0x333f46=>_0x37cc5a['has'](_0x333f46)?_0x37cc5a['get'](_0x333f46):_0x4c862b(_0x333f46);for(const [_0x29bb3e,_0x52f485]of _0xd8305d['getStylesEntries']())if(_0x52f485&&_0x29bb3e['startsWith']('--')){const _0x28bba9=p(_0x5b4d85,_0x52f485);_0x37cc5a['set'](_0x29bb3e,_0x28bba9),_0xd8305d['remove'](_0x29bb3e);}for(const [_0x1a8919,_0x513058]of _0xd8305d['getStylesEntries']())if(_0x513058){const _0x4e995f=p(_0x5b4d85,_0x513058);_0xd8305d['set'](_0x1a8919,_0x4e995f);}return _0x37cc5a;}function p(_0x2c3256,_0x3b31c1){return function(_0x27a1cd,_0x1c370c){let _0x2cf1bb='',_0x120340=0x0;for(;_0x120340<_0x27a1cd['length'];){const _0x1f690d=_0x27a1cd['indexOf']('var(',_0x120340);if(-0x1===_0x1f690d){_0x2cf1bb+=_0x27a1cd['slice'](_0x120340);break;}_0x2cf1bb+=_0x27a1cd['slice'](_0x120340,_0x1f690d);const _0x5d2f40=_0x1f690d+0x4,_0x4a2d55=y(_0x27a1cd,_0x5d2f40);_0x2cf1bb+=_0x1c370c(_0x27a1cd['substring'](_0x5d2f40,_0x4a2d55)),_0x120340=_0x4a2d55+0x1;}return _0x2cf1bb;}(_0x3b31c1,_0x4e2cb0=>{const [_0x5a6d40,_0x190275]=f(_0x4e2cb0),_0x7c36ee=_0x2c3256(_0x5a6d40);return void 0x0!==_0x7c36ee?_0x7c36ee:_0x190275?p(_0x2c3256,_0x190275):'var('+_0x5a6d40+')';});}async function m(_0x3af5e5){const _0x32f43e=[await _0x3d5de8(_0x3af5e5['stylesheets']),_0x3af5e5['inlineCss']]['filter'](_0xb59529=>_0xb59529&&_0xb59529['length'])['join']('\x0a'),_0x1a1b42=await async function(_0x41c4bf,_0x60a657){const _0x3e3e10=new CSSStyleSheet();return await _0x3e3e10['replace'](_0x60a657),h(Array['from'](_0x3e3e10['cssRules'])['filter'](_0x140fd2=>_0x140fd2 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x359d2f,contentCssText:_0x555afb})=>{const _0x129420=f(_0x359d2f),_0x3f3474=new _0x457922(_0x41c4bf)['setTo'](_0x555afb);return _0x129420['map'](_0x5e7099=>{const _0x1fe6c1=function(_0x2ad25e){const _0x512985=':where(';let _0x4aebaa=_0x2ad25e,_0x23c415=0x0;for(let _0x209bb7=0x0;_0x209bb7<0x64;_0x209bb7++){const _0x23d596=_0x4aebaa['indexOf'](_0x512985,_0x23c415);if(-0x1===_0x23d596)break;let _0x3aeff7=0x0;for(let _0x465263=0x0;_0x465263<_0x23d596;_0x465263++)'('===_0x4aebaa[_0x465263]?_0x3aeff7++:')'===_0x4aebaa[_0x465263]&&_0x3aeff7--;if(_0x3aeff7>0x0){_0x23c415=_0x23d596+_0x512985['length'];continue;}let _0x547e7c=-0x1;for(let _0x4bb5b7=_0x23d596+_0x512985['length'],_0x35960d=0x1;_0x4bb5b7<_0x4aebaa['length'];_0x4bb5b7++)if('('===_0x4aebaa[_0x4bb5b7]?_0x35960d++:')'===_0x4aebaa[_0x4bb5b7]&&_0x35960d--,!_0x35960d){_0x547e7c=_0x4bb5b7;break;}-0x1!==_0x547e7c?(_0x4aebaa=_0x4aebaa['slice'](0x0,_0x23d596)+_0x4aebaa['slice'](_0x547e7c+0x1),_0x23c415=_0x23d596):_0x23c415=_0x23d596+_0x512985['length'];}return _0x4aebaa['replace'](/\s+/g,'\x20')['trim']();}(_0x5e7099),_0x2ee9ba=_0x1fe6c1?_0x2d3f58(_0x1fe6c1)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x3f3474,'flatSelector':_0x5e7099,'specificity':_0x2ee9ba};});})['sort']((_0x3e7892,_0x2cb0d5)=>_0x8b67b1(_0x3e7892['specificity'],_0x2cb0d5['specificity']));}(_0x3af5e5['stylesProcessor'],_0x32f43e);return{'parsedCssRules':_0x1a1b42,'rootCssVariables':function(_0xc28c87){const _0x4bf44e=new Map();for(const {stylesMap:_0x421107,flatSelector:_0x108f0b}of _0xc28c87){if(':root'!==_0x108f0b)continue;const _0x1d55d9=d(_0x4bf44e['get']['bind'](_0x4bf44e),_0x421107);for(const [_0x22d5e1,_0x153d42]of _0x1d55d9)_0x4bf44e['set'](_0x22d5e1,_0x153d42);}return _0x4bf44e;}(_0x1a1b42)};}function h(_0x529fa3,_0x20f551=''){return _0x529fa3['flatMap'](_0xa24f2e=>{const {selectorText:_0x244559,cssText:_0x35369d,cssRules:_0x435c96}=_0xa24f2e;if(!_0x244559)return[];const _0x410669=_0x244559['replace'](/&/g,_0x20f551);let _0x40f285=_0x35369d['replace'](_0x244559,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x435c96||!_0x435c96['length'])return[{'selectorText':_0x410669,'contentCssText':_0x40f285}];for(const _0x3ba501 of _0x435c96)_0x40f285=_0x40f285['replace'](_0x3ba501['cssText'],'')['trim']();return[{'selectorText':_0x410669,'contentCssText':_0x40f285},...h(Array['from'](_0x435c96),_0x410669)];});}function S(_0x5c2f1f,_0x49ec74){const _0x4db5ad=new _0x457922(_0x5c2f1f);for(const _0x376469 of _0x49ec74){let _0x46dbcb=null;if(_0x46dbcb='string'==typeof _0x376469?new _0x457922(_0x5c2f1f)['setTo'](_0x376469):_0x376469,_0x46dbcb){for(const [_0x224e05,_0x16f804]of _0x46dbcb['getStylesEntries']())_0x4db5ad['set'](_0x224e05,_0x16f804);}}return _0x4db5ad;}class x extends _0x19ede7{['_stylesProcessor'];constructor(_0xcdce1){super(_0xcdce1),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x25482d(this['_stylesProcessor']),_0x517734(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x237e21){const _0x267ff0=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x456a61}=this['editor']['locale'],{rootName:_0x5ef759='main',dataControllerDowncastOptions:_0x694fd5={},transformations:_0x4c2eec=_0x267ff0['transformations']||[]}=_0x237e21||{};this['isBusy']=!0x0,this['refresh']();const _0x5e5f29=this['_getRootDataHTMLFragment'](_0x5ef759,_0x694fd5),_0x1aa557=_0x9a628d(_0x5e5f29['ownerDocument'],'div',{'dir':_0x456a61,'class':'ck-content'},[_0x5e5f29]);return this['_collectAndApplyStyles'](_0x4c2eec,_0x1aa557)['then'](()=>{const _0x4fcc50=function(_0x3fc934){const _0x3476c2=_0x3fc934['ownerDocument']['createDocumentFragment']();for(;_0x3fc934['firstChild'];)_0x3476c2['appendChild'](_0x3fc934['firstChild']);return _0x3476c2;}(_0x1aa557),_0x5de51b=_0x1aa557['getAttribute']('style');if(_0x5de51b)for(const _0x43e01d of _0x4fcc50['children']){const _0x156225=_0x43e01d['getAttribute']('style'),_0x15149c=S(this['_stylesProcessor'],[_0x5de51b,_0x156225]);_0x43e01d['setAttribute']('style',C(_0x15149c));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x4fcc50);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x56d8b7,_0x75f334){const {data:_0x503810,model:_0x233afb}=this['editor'],_0x3b813f=_0x233afb['document']['getRoot'](_0x56d8b7),_0x5f1283=_0x503810['toView'](_0x3b813f,_0x75f334);return _0x503810['htmlProcessor']['domConverter']['viewToDom'](_0x5f1283);}async['_collectAndApplyStyles'](_0x4359e9,_0x3b7d6e){const {stylesheets:_0x20591e,inlineCss:_0x333e67,stripCssClasses:_0x23be3c}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x4151a3,rootCssVariables:_0x38074e}=await m({'stylesheets':_0x20591e||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x333e67}),_0x161ec1=[];this['_processElementTree']({'transformations':_0x4359e9,'parsedCssRules':_0x4151a3,'element':_0x3b7d6e,'stripCssClasses':_0x23be3c,'parentCSSVariablesLookup':_0x38074e['get']['bind'](_0x38074e),'runAfterDocumentTransformation':_0x3c3a54=>{_0x161ec1['unshift'](_0x3c3a54);}});for(const _0x3aad34 of _0x161ec1)_0x3aad34();}['_processElementTree']({element:_0x5c4199,parsedCssRules:_0x3cae10,parentCSSVariablesLookup:_0x43255e,runAfterDocumentTransformation:_0x41ba43,stripCssClasses:_0x2f3a4d,transformations:_0x537c78}){const {stylesMap:_0xf6cb61,localCSSVariables:_0x572ac7}=function(_0x572f2f){const _0x56f566=_0x572f2f['element']['getAttribute']('style')||'',_0x2277b7=_0x572f2f['parsedCssRules']['filter'](_0x32edea=>_0x572f2f['element']['matches'](_0x32edea['flatSelector']))['map'](_0x3cc162=>_0x3cc162['stylesMap']),_0x4913de=S(_0x572f2f['stylesProcessor'],[..._0x2277b7,_0x56f566]);return{'localCSSVariables':d(_0x572f2f['fallbackCSSVariablesLookup'],_0x4913de),'stylesMap':_0x4913de};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x43255e,'parsedCssRules':_0x3cae10,'element':_0x5c4199}),_0x357dc7=[];for(const _0x29cc01 of _0x537c78){const _0x20ac9a=_0x29cc01(_0x5c4199,_0xf6cb61,{'runAfterDocumentTransformation':_0x41ba43,'runAfterChildrenTransformation':_0x254b23=>{_0x357dc7['unshift'](_0x254b23);}});_0x20ac9a&&_0x20ac9a instanceof HTMLElement&&(_0x5c4199=_0x20ac9a);}_0xf6cb61['size']?_0x5c4199['setAttribute']('style',C(_0xf6cb61)):_0x5c4199['removeAttribute']('style');const _0x137f9b=_0xc9dd1e=>_0x572ac7['has'](_0xc9dd1e)?_0x572ac7['get'](_0xc9dd1e):_0x43255e(_0xc9dd1e);for(const _0x4180f6 of _0x5c4199['children'])_0x4180f6 instanceof HTMLElement&&this['_processElementTree']({'element':_0x4180f6,'parsedCssRules':_0x3cae10,'stripCssClasses':_0x2f3a4d,'transformations':_0x537c78,'parentCSSVariablesLookup':_0x137f9b,'runAfterDocumentTransformation':_0x41ba43});_0x2f3a4d&&_0x5c4199['removeAttribute']('class');for(const _0x979335 of _0x357dc7)_0x979335();}}function C(_0x1eff97){return _0x1eff97['getStylesEntries']()['map'](_0x344e75=>_0x344e75['join'](':'))['join'](';')+';';}class L extends _0x4b3014{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 x(this['editor']));}['afterInit'](){!async function(_0x47ae1d){const _0x29850e=_0x25444e([0x44,0x55,0x41,0x36,0x31,0x30,0x65,0x6d,0x4c,0x34,0x51,0x32,0x6b,0x6a,0x56,0x49,0x76,0x47,0x4d,0x48,0x67,0x57,0x54,0x33,0x75,0x79,0x53,0x6e,0x7a,0x50,0x45,0x77,0x37,0x39,0x6f,0x5a,0x4a,0x69,0x43,0x72,0x62,0x73,0x74,0x63,0x58,0x4b,0x71,0x38,0x35,0x4e,0x68,0x64,0x66,0x61,0x46,0x52,0x78,0x42,0x6c,0x70,0x4f,0x59]),_0x2f5f93=0x6f40c3fb,_0x4b041d=0x6f474a9b^_0x2f5f93,_0x56f93d=window[_0x25444e([0x44,0x61,0x74,0x65])][_0x25444e([0x6e,0x6f,0x77])](),_0x568af2=_0x47ae1d[_0x25444e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x44418b=new window[(_0x25444e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43e2a1=>{_0x568af2[_0x25444e([0x6f,0x6e,0x63,0x65])](_0x25444e([0x72,0x65,0x61,0x64,0x79]),_0x43e2a1);}),_0xd90e5e={[_0x25444e([0x6b,0x74,0x79])]:_0x25444e([0x45,0x43]),[_0x25444e([0x75,0x73,0x65])]:_0x25444e([0x73,0x69,0x67]),[_0x25444e([0x63,0x72,0x76])]:_0x25444e([0x50,0x2d,0x32,0x35,0x36]),[_0x25444e([0x78])]:_0x25444e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x25444e([0x79])]:_0x25444e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x25444e([0x61,0x6c,0x67])]:_0x25444e([0x45,0x53,0x32,0x35,0x36])},_0x400b40=_0x568af2[_0x25444e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x25444e([0x67,0x65,0x74])](_0x25444e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x33aaf7(){let _0x3e1c1e,_0x38ad24=null,_0xff6134=null;try{if(_0x400b40==_0x25444e([0x47,0x50,0x4c]))return _0x25444e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e1c1e=_0x1b3579(),!_0x3e1c1e)return _0x25444e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e1c1e[_0x25444e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xff6134=_0x298e12(_0x3e1c1e[_0x25444e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e1c1e[_0x25444e([0x6a,0x74,0x69])])),await _0x496372()?_0x54088d()?_0x37f250()?_0x25444e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4dc715()?(_0x3e1c1e[_0x25444e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25444e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38ad24=_0x2fa09f(_0x25444e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x232f85()):_0x25444e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x25444e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x25444e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x25444e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x37f250(){const _0x25358c=[_0x25444e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x25444e([0x74,0x72,0x69,0x61,0x6c])][_0x25444e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e1c1e[_0x25444e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56f93d/0x3e8:0xe10*_0x4b041d;return _0x3e1c1e[_0x25444e([0x65,0x78,0x70])]<_0x25358c;}function _0x54088d(){const _0x1a8579=_0x3e1c1e[_0x25444e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1a8579&&(!!_0x1a8579[_0x25444e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25444e([0x2a]))||!!_0x1a8579[_0x25444e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25444e([0x45,0x49,0x53])));}function _0x4dc715(){const _0x18217c=_0x3e1c1e[_0x25444e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18217c||0x0==_0x18217c[_0x25444e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x488d81}=new URL(window[_0x25444e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x18217c[_0x25444e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x488d81))return!0x0;const _0x527f1e=_0x488d81[_0x25444e([0x73,0x70,0x6c,0x69,0x74])](_0x25444e([0x2e]));return _0x18217c[_0x25444e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39ad06=>_0x39ad06[_0x25444e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25444e([0x2a])))[_0x25444e([0x6d,0x61,0x70])](_0xe6bb6e=>_0xe6bb6e[_0x25444e([0x73,0x70,0x6c,0x69,0x74])](_0x25444e([0x2e])))[_0x25444e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11956d=>_0x11956d[_0x25444e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x527f1e[_0x25444e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25444e([0x6d,0x61,0x70])](_0x511e25=>Array(_0x527f1e[_0x25444e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x511e25[_0x25444e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25444e([0x66,0x69,0x6c,0x6c])](_0x511e25[0x0]===_0x25444e([0x2a])?_0x25444e([0x2a]):'')[_0x25444e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x511e25))[_0x25444e([0x73,0x6f,0x6d,0x65])](_0x49c2d1=>_0x527f1e[_0x25444e([0x65,0x76,0x65,0x72,0x79])]((_0x2f8337,_0x1d2502)=>_0x49c2d1[_0x1d2502]===_0x2f8337||_0x49c2d1[_0x1d2502]===_0x25444e([0x2a])));}function _0x232f85(){return _0x38ad24&&_0xff6134?new window[(_0x25444e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23e83f,_0x3b0979)=>{_0x38ad24[_0x25444e([0x74,0x68,0x65,0x6e])](_0x23e83f,_0x3b0979),_0xff6134[_0x25444e([0x74,0x68,0x65,0x6e])](_0x2dfb6b=>{_0x2dfb6b!=_0x25444e([0x56,0x61,0x6c,0x69,0x64])&&_0x23e83f(_0x2dfb6b);},_0x3b0979);}):_0x38ad24||_0xff6134||_0x25444e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x298e12(_0x25343d,_0x1dded7){return new window[(_0x25444e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x512095=>{if(_0x377445())return _0x512095(_0x25444e([0x56,0x61,0x6c,0x69,0x64]));_0x3c95e4(),_0x568af2[_0x25444e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x25444e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47ff36=!0x1;const _0x2c5a12=_0xaff2bd();function _0x55897f(_0x1db711){return!!_0x1db711&&(typeof _0x1db711===_0x25444e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1db711===_0x25444e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1db711[_0x25444e([0x74,0x68,0x65,0x6e])]===_0x25444e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1db711[_0x25444e([0x63,0x61,0x74,0x63,0x68])]===_0x25444e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1598c4(_0x111902){_0x18259b(_0x111902)[_0x25444e([0x74,0x68,0x65,0x6e])](_0xa89853=>{if(!_0xa89853||_0xa89853[_0x25444e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x25444e([0x6f,0x6b]))return _0x25444e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14e756(_0x359aea(_0x2c5a12+_0x1dded7))!=_0xa89853[_0x25444e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x25444e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x25444e([0x56,0x61,0x6c,0x69,0x64]);})[_0x25444e([0x74,0x68,0x65,0x6e])](_0x5b9e53=>(_0x586b51(),_0x5b9e53),()=>{const _0x15fe2a=_0x49fb62();return null==_0x15fe2a?(_0x586b51(),_0x25444e([0x56,0x61,0x6c,0x69,0x64])):_0x25444e(_0x56f93d-_0x15fe2a>(0x4b4c47fb^_0x2f5f93)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x25444e([0x74,0x68,0x65,0x6e])](_0x512095)[_0x25444e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x512095(_0x25444e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x179a91=0x6f762d7b^_0x2f5f93;function _0x586b51(){const _0x168a69=_0x25444e([0x6c,0x6c,0x63,0x74,0x2d])+_0x14e756(_0x359aea(_0x25343d)),_0x321def=_0x256587(_0x14e756(window[_0x25444e([0x4d,0x61,0x74,0x68])][_0x25444e([0x63,0x65,0x69,0x6c])](_0x56f93d/_0x179a91)));window[_0x25444e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25444e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x168a69,_0x321def);}function _0x49fb62(){const _0x59243e=_0x25444e([0x6c,0x6c,0x63,0x74,0x2d])+_0x14e756(_0x359aea(_0x25343d)),_0x1e161c=window[_0x25444e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25444e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59243e);return _0x1e161c?window[_0x25444e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x256587(_0x1e161c),0x10)*_0x179a91:null;}function _0x18259b(_0x54a9a3){return new window[(_0x25444e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3de114,_0x59d332)=>{_0x54a9a3[_0x25444e([0x74,0x68,0x65,0x6e])](_0x3de114,_0x59d332),window[_0x25444e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59d332,0x6f41173b^_0x2f5f93);});}}_0x568af2[_0x25444e([0x6f,0x6e])](_0x25444e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16ed8f,_0x57f678)=>{if(_0x57f678[0x0]!=_0x25343d)return _0x512095(_0x25444e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57f678[0x1]={..._0x57f678[0x1],[_0x25444e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2c5a12};},{[_0x25444e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25444e([0x68,0x69,0x67,0x68])}),_0x568af2[_0x25444e([0x6f,0x6e])](_0x25444e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5f19dd=>{_0x55897f(_0x5f19dd[_0x25444e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47ff36=!0x0,_0x1598c4(_0x5f19dd[_0x25444e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x25444e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25444e([0x6c,0x6f,0x77])}),_0x44418b[_0x25444e([0x74,0x68,0x65,0x6e])](()=>{_0x47ff36||_0x512095(_0x25444e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x377445(){return _0x568af2[_0x25444e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25444e([0x76,0x69,0x65,0x77])][_0x25444e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x25444e([0x61,0x75,0x74,0x6f]);}function _0x3c95e4(){_0x568af2[_0x25444e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25444e([0x76,0x69,0x65,0x77])][_0x25444e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x25444e([0x61,0x75,0x74,0x6f]);}}function _0x2fa09f(_0x5a315d){const _0x3d0c87=[new window[(_0x25444e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x418b91=>setTimeout(_0x418b91,0x6f49fd37^_0x2f5f93)),_0x44418b[_0x25444e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x25444e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x392909=>{let _0x18c1b7=0x0;_0x568af2[_0x25444e([0x6d,0x6f,0x64,0x65,0x6c])][_0x25444e([0x6f,0x6e])](_0x25444e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x41b595,_0x58864d)=>{_0x58864d[0x0][_0x25444e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x18c1b7++,_0x18c1b7==(0x6f40c613^_0x2f5f93)&&(_0x392909(),_0x41b595[_0x25444e([0x6f,0x66,0x66])]());});}))];return window[_0x25444e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x25444e([0x72,0x61,0x63,0x65])](_0x3d0c87)[_0x25444e([0x74,0x68,0x65,0x6e])](()=>_0x5a315d);}async function _0x266291(){await _0x44418b;const _0x5e5098=_0x568af2['commands'][_0x25444e([0x67,0x65,0x74])](_0x25444e([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x5e5098&&_0x5e5098[_0x25444e([0x6f,0x6e])](_0x25444e([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x2fb8fa=>{_0x2fb8fa['stop']();},{'priority':_0x25444e([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x568af2[_0x25444e([0x6d,0x6f,0x64,0x65,0x6c])][_0x25444e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b986d,_0x568af2[_0x25444e([0x6d,0x6f,0x64,0x65,0x6c])][_0x25444e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b986d,_0x568af2[_0x25444e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x25444e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x529fe5(_0x462dbe){const _0xe13cd2=_0x3cf264();_0x568af2[_0xe13cd2]=_0x25444e([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x462dbe,_0x462dbe!=_0x25444e([0x56,0x61,0x6c,0x69,0x64])&&_0x266291();}function _0x3cf264(){const _0x3d5786=window[_0x25444e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x25444e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x25444e([0x6e,0x6f,0x77])]())[_0x25444e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x25444e([0x2e]),'');let _0x4d8535=_0x25444e([0x44]);for(let _0x3a59b0=0x0;_0x3a59b0<_0x3d5786[_0x25444e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a59b0+=0x2){let _0x2a66ae=window[_0x25444e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d5786[_0x25444e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a59b0,_0x3a59b0+0x2));_0x2a66ae>=_0x29850e[_0x25444e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a66ae-=_0x29850e[_0x25444e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d8535+=_0x29850e[_0x2a66ae];}return _0x4d8535;}function _0x1b3579(){const _0x47798c=_0x400b40[_0x25444e([0x73,0x70,0x6c,0x69,0x74])](_0x25444e([0x2e]));if(0x3!=_0x47798c[_0x25444e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e77f3(_0x47798c[0x1]);function _0x4e77f3(_0x196130){const _0x4eedfe=_0x19ceea(_0x196130);return _0x4eedfe&&_0x463bca()?_0x4eedfe:null;function _0x463bca(){const _0x349024=_0x4eedfe[_0x25444e([0x6a,0x74,0x69])],_0x4aa7dc=window[_0x25444e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x349024[_0x25444e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x349024[_0x25444e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x136931={..._0x4eedfe,[_0x25444e([0x6a,0x74,0x69])]:_0x349024[_0x25444e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x349024[_0x25444e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x136931[_0x25444e([0x76,0x63])],_0x359aea(_0x136931)==_0x4aa7dc;}}}async function _0x496372(){let _0x458a82=!0x0;try{const _0x23006c=_0x400b40[_0x25444e([0x73,0x70,0x6c,0x69,0x74])](_0x25444e([0x2e])),[_0x57f132,_0x11cb9c,_0x5b543a]=_0x23006c;return _0x4a9f04(_0x57f132),await _0x79ec43(_0x57f132,_0x11cb9c,_0x5b543a),_0x458a82;}catch{return!0x1;}function _0x4a9f04(_0x56906e){const _0x270ab9=_0x19ceea(_0x56906e);_0x270ab9&&_0x270ab9[_0x25444e([0x61,0x6c,0x67])]==_0x25444e([0x45,0x53,0x32,0x35,0x36])||(_0x458a82=!0x1);}async function _0x79ec43(_0x3c0b85,_0x11f178,_0x45cf13){const _0x3fb685=window[_0x25444e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x25444e([0x66,0x72,0x6f,0x6d])](_0x592468(_0x45cf13),_0x55cbae=>_0x55cbae[_0x25444e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5799f9=new window[(_0x25444e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x25444e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c0b85+_0x25444e([0x2e])+_0x11f178),_0x2db110=window[_0x25444e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x25444e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2db110)return;const _0x2d24c8=await _0x2db110[_0x25444e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x25444e([0x6a,0x77,0x6b]),_0xd90e5e,{[_0x25444e([0x6e,0x61,0x6d,0x65])]:_0x25444e([0x45,0x43,0x44,0x53,0x41]),[_0x25444e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x25444e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x25444e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2db110[_0x25444e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x25444e([0x6e,0x61,0x6d,0x65])]:_0x25444e([0x45,0x43,0x44,0x53,0x41]),[_0x25444e([0x68,0x61,0x73,0x68])]:{[_0x25444e([0x6e,0x61,0x6d,0x65])]:_0x25444e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d24c8,_0x3fb685,_0x5799f9)||(_0x458a82=!0x1);}}function _0x19ceea(_0x71b73b){return _0x71b73b[_0x25444e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x25444e([0x65,0x79]))?JSON[_0x25444e([0x70,0x61,0x72,0x73,0x65])](_0x592468(_0x71b73b)):null;}function _0x592468(_0x3b5010){return window[_0x25444e([0x61,0x74,0x6f,0x62])](_0x3b5010[_0x25444e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x25444e([0x2b]))[_0x25444e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x25444e([0x2f])));}function _0x359aea(_0x426278){let _0x56d097=0x1505;function _0x41a112(_0x3f58f7){for(let _0x34f853=0x0;_0x34f853<_0x3f58f7[_0x25444e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34f853++){const _0xbdd2d4=_0x3f58f7[_0x25444e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34f853);_0x56d097=(_0x56d097<<0x5)+_0x56d097+_0xbdd2d4,_0x56d097&=_0x56d097;}}function _0x5bcf78(_0x118ba8){Array[_0x25444e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x118ba8)?_0x118ba8[_0x25444e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bcf78):_0x118ba8&&typeof _0x118ba8==_0x25444e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x25444e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x118ba8)[_0x25444e([0x73,0x6f,0x72,0x74])]()[_0x25444e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a66ad,_0x2e04c0])=>{_0x41a112(_0x2a66ad),_0x5bcf78(_0x2e04c0);}):_0x41a112(window[_0x25444e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x118ba8));}return _0x5bcf78(_0x426278),_0x56d097>>>0x0;}function _0x14e756(_0x214377){return _0x214377[_0x25444e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x25444e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x25444e([0x30]));}function _0x256587(_0x48b3f2){return _0x48b3f2[_0x25444e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x25444e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x25444e([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b986d(){}function _0x25444e(_0x1ea2d7){return _0x1ea2d7['map'](_0x2526b5=>String['fromCharCode'](_0x2526b5))['join']('');}_0x529fe5(await _0x33aaf7());}(this);}}class g extends _0x4b3014{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[L];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x486cb6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3eb751;for(const _0x40901a in _0x486cb6){const _0x535386=_0x40901a,_0x3f753a=_0x486cb6[_0x535386];if('exportInlineStylesLicenseKeyValid'==_0x3f753a||'exportInlineStylesLicenseKeyInvalid'==_0x3f753a||'exportInlineStylesLicenseKeyExpired'==_0x3f753a||'exportInlineStylesLicenseKeyDomainLimit'==_0x3f753a||'exportInlineStylesLicenseKeyNotAllowed'==_0x3f753a||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x3f753a||'exportInlineStylesLicenseKeyUsageLimit'==_0x3f753a){delete _0x486cb6[_0x535386],_0x3eb751=_0x3f753a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x3eb751&&_0x486cb6['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x3eb751&&_0x486cb6['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x3eb751&&_0x486cb6['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x3eb751&&_0x486cb6['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x3eb751&&_0x486cb6['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x3eb751&&_0x486cb6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}export{g as ExportInlineStyles,x as ExportInlineStylesCommand,L as ExportInlineStylesEditing,w as dropImportantStyleSuffix};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-export-inline-styles",
|
|
3
|
-
"version": "48.1.0-alpha.
|
|
3
|
+
"version": "48.1.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.1.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.
|
|
37
|
+
"@ckeditor/ckeditor5-core": "48.1.0-alpha.1",
|
|
38
|
+
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.1",
|
|
39
|
+
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.1",
|
|
40
40
|
"specificity": "0.4.1"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|