UNPKG

@ckeditor/ckeditor5-export-inline-styles

Version:

The export with inline styles feature for CKEditor 5.

23 lines 30.3 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ import{Command as _0x44b400,Plugin as _0x34d71e}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0x1a9fb9,createElement as _0x3b0c47,uid as _0x4a9d4b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{calculate as _0x545308,compare as _0x2ec507}from'specificity';import{StylesMap as _0x311ec0,addMarginStylesRules as _0x28abf0,addPaddingStylesRules as _0x49074c}from'@ckeditor/ckeditor5-engine/dist/index.js';function T(_0x54b842){const _0x1b0a5c=[];let _0x5a5848='',_0x10e553=0x0;for(;_0x10e553<_0x54b842['length'];){const _0x4225e6=_0x54b842[_0x10e553];if('('===_0x4225e6){const _0x457de2=M(_0x54b842,_0x10e553+0x1);if(-0x1===_0x457de2)return[];_0x5a5848+=_0x54b842['slice'](_0x10e553,_0x457de2+0x1),_0x10e553=_0x457de2+0x1;}else','!==_0x4225e6||_0x5a5848['endsWith']('\x5c')?(_0x5a5848+=_0x4225e6,_0x10e553++):(_0x1b0a5c['push'](_0x5a5848['trim']()),_0x5a5848='',_0x10e553++);}return _0x5a5848['trim']()&&_0x1b0a5c['push'](_0x5a5848['trim']()),_0x1b0a5c['filter'](Boolean);}function M(_0x2eda02,_0x2e1bad){let _0x288c9e=0x1;for(let _0x29552a=_0x2e1bad;_0x29552a<_0x2eda02['length'];_0x29552a++){const _0x38d49b=_0x2eda02[_0x29552a];if('('===_0x38d49b)_0x288c9e++;else{if(')'===_0x38d49b&&(_0x288c9e--,0x0===_0x288c9e))return _0x29552a;}}return-0x1;}function L(_0x6396b8){return _0x6396b8['replace'](/!\s*important/i,'')['trim']();}function g(_0x11a6b8,_0x5cf78e){const _0x590457=new Map(),_0x9c031a=_0x53c221=>_0x590457['has'](_0x53c221)?_0x590457['get'](_0x53c221):_0x11a6b8(_0x53c221);for(const [_0x53453a,_0x57f84a]of _0x5cf78e['getStylesEntries']())if(_0x57f84a&&_0x53453a['startsWith']('--')){const _0x1a2346=b(_0x9c031a,_0x57f84a);_0x590457['set'](_0x53453a,_0x1a2346),_0x5cf78e['remove'](_0x53453a);}for(const [_0x371cb3,_0x1c4872]of _0x5cf78e['getStylesEntries']())if(_0x1c4872){const _0x221434=b(_0x9c031a,_0x1c4872);_0x5cf78e['set'](_0x371cb3,_0x221434);}return _0x590457;}function b(_0x5278de,_0x43c30e){return function(_0x29af0a,_0x2935bf){let _0x3170e4='',_0x1f7799=0x0;for(;_0x1f7799<_0x29af0a['length'];){const _0x515014=_0x29af0a['indexOf']('var(',_0x1f7799);if(-0x1===_0x515014){_0x3170e4+=_0x29af0a['slice'](_0x1f7799);break;}_0x3170e4+=_0x29af0a['slice'](_0x1f7799,_0x515014);const _0x30b804=_0x515014+0x4,_0x3f0ffb=M(_0x29af0a,_0x30b804);_0x3170e4+=_0x2935bf(_0x29af0a['substring'](_0x30b804,_0x3f0ffb)),_0x1f7799=_0x3f0ffb+0x1;}return _0x3170e4;}(_0x43c30e,_0x226116=>{const [_0x329cb8,_0x4ea179]=T(_0x226116),_0x1f9d92=_0x5278de(_0x329cb8);return void 0x0!==_0x1f9d92?_0x1f9d92:_0x4ea179?b(_0x5278de,_0x4ea179):'var('+_0x329cb8+')';});}async function r(_0x39b083){const _0x3b7798=[await _0x1a9fb9(_0x39b083['stylesheets']),_0x39b083['inlineCss']]['filter'](_0x103c45=>_0x103c45&&_0x103c45['length'])['join']('\x0a'),_0x12a6d2=await async function(_0x1ab67a,_0x516c7d){const _0x272048=new CSSStyleSheet();return await _0x272048['replace'](_0x516c7d),C(Array['from'](_0x272048['cssRules'])['filter'](_0x371f79=>_0x371f79 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x4ede3c,contentCssText:_0x36ebe8})=>{const _0x4f9679=T(_0x4ede3c),_0x219b7f=new _0x311ec0(_0x1ab67a)['setTo'](_0x36ebe8);return _0x4f9679['map'](_0x9cd312=>{const _0x183b08=function(_0x33a3c8){const _0x260a2c=':where(';let _0x9160b3=_0x33a3c8,_0x5e785b=0x0;for(let _0x1922e6=0x0;_0x1922e6<0x64;_0x1922e6++){const _0x4512ab=_0x9160b3['indexOf'](_0x260a2c,_0x5e785b);if(-0x1===_0x4512ab)break;let _0x180fe0=0x0;for(let _0x2744a6=0x0;_0x2744a6<_0x4512ab;_0x2744a6++)'('===_0x9160b3[_0x2744a6]?_0x180fe0++:')'===_0x9160b3[_0x2744a6]&&_0x180fe0--;if(_0x180fe0>0x0){_0x5e785b=_0x4512ab+_0x260a2c['length'];continue;}let _0x344622=-0x1;for(let _0x26a4e2=_0x4512ab+_0x260a2c['length'],_0x31f951=0x1;_0x26a4e2<_0x9160b3['length'];_0x26a4e2++)if('('===_0x9160b3[_0x26a4e2]?_0x31f951++:')'===_0x9160b3[_0x26a4e2]&&_0x31f951--,!_0x31f951){_0x344622=_0x26a4e2;break;}-0x1!==_0x344622?(_0x9160b3=_0x9160b3['slice'](0x0,_0x4512ab)+_0x9160b3['slice'](_0x344622+0x1),_0x5e785b=_0x4512ab):_0x5e785b=_0x4512ab+_0x260a2c['length'];}return _0x9160b3['replace'](/\s+/g,'\x20')['trim']();}(_0x9cd312),_0x3d7991=_0x183b08?_0x545308(_0x183b08)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x219b7f,'flatSelector':_0x9cd312,'specificity':_0x3d7991};});})['sort']((_0x136fbc,_0x1cbd64)=>_0x2ec507(_0x136fbc['specificity'],_0x1cbd64['specificity']));}(_0x39b083['stylesProcessor'],_0x3b7798);return{'parsedCssRules':_0x12a6d2,'rootCssVariables':function(_0x3f428e){const _0x170489=new Map();for(const {stylesMap:_0x20dee6,flatSelector:_0x5bcd2f}of _0x3f428e){if(':root'!==_0x5bcd2f)continue;const _0x233d7b=g(_0x170489['get']['bind'](_0x170489),_0x20dee6);for(const [_0x1eb0fe,_0x3b6650]of _0x233d7b)_0x170489['set'](_0x1eb0fe,_0x3b6650);}return _0x170489;}(_0x12a6d2)};}function C(_0x3952e8,_0x2504ed=''){return _0x3952e8['flatMap'](_0x19d763=>{const {selectorText:_0x463aea,cssText:_0x10cbea,cssRules:_0x24813e}=_0x19d763;if(!_0x463aea)return[];const _0x4db0c5=_0x463aea['replace'](/&/g,_0x2504ed);let _0x473d99=_0x10cbea['replace'](_0x463aea,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x24813e||!_0x24813e['length'])return[{'selectorText':_0x4db0c5,'contentCssText':_0x473d99}];for(const _0x163c34 of _0x24813e)_0x473d99=_0x473d99['replace'](_0x163c34['cssText'],'')['trim']();return[{'selectorText':_0x4db0c5,'contentCssText':_0x473d99},...C(Array['from'](_0x24813e),_0x4db0c5)];});}function l(_0x1ab5aa,_0x1a53b7){const _0x206c02=new _0x311ec0(_0x1ab5aa);for(const _0x44747b of _0x1a53b7){let _0x3f9734=null;if(_0x3f9734='string'==typeof _0x44747b?new _0x311ec0(_0x1ab5aa)['setTo'](_0x44747b):_0x44747b,_0x3f9734){for(const [_0x4df7df,_0xc4b033]of _0x3f9734['getStylesEntries']())_0x206c02['set'](_0x4df7df,_0xc4b033);}}return _0x206c02;}class w extends _0x44b400{['_stylesProcessor'];constructor(_0x453d9d){super(_0x453d9d),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x28abf0(this['_stylesProcessor']),_0x49074c(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x17bc1c){const _0x552bcb=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x519305}=this['editor']['locale'],{rootName:_0x3c6072='main',dataControllerDowncastOptions:_0xc4748d={},transformations:_0x201089=_0x552bcb['transformations']||[]}=_0x17bc1c||{};this['isBusy']=!0x0,this['refresh']();const _0x4375fa=this['_getRootDataHTMLFragment'](_0x3c6072,_0xc4748d),_0x1e1819=_0x3b0c47(_0x4375fa['ownerDocument'],'div',{'dir':_0x519305,'class':'ck-content'},[_0x4375fa]);return this['_collectAndApplyStyles'](_0x201089,_0x1e1819)['then'](()=>{const _0x3a0b55=function(_0x510d23){const _0x4b3fe0=_0x510d23['ownerDocument']['createDocumentFragment']();for(;_0x510d23['firstChild'];)_0x4b3fe0['appendChild'](_0x510d23['firstChild']);return _0x4b3fe0;}(_0x1e1819),_0x1b8cc3=_0x1e1819['getAttribute']('style');if(_0x1b8cc3)for(const _0x552eb2 of _0x3a0b55['children']){const _0x4c2204=_0x552eb2['getAttribute']('style'),_0xaabc63=l(this['_stylesProcessor'],[_0x1b8cc3,_0x4c2204]);_0x552eb2['setAttribute']('style',p(_0xaabc63));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x3a0b55);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x381769,_0xe476c0){const {data:_0x3478fe,model:_0x34b898}=this['editor'],_0xe5f5c2=_0x34b898['document']['getRoot'](_0x381769),_0xbbff7=_0x3478fe['toView'](_0xe5f5c2,_0xe476c0);return _0x3478fe['htmlProcessor']['domConverter']['viewToDom'](_0xbbff7);}async['_collectAndApplyStyles'](_0x9e9834,_0x233e36){const {stylesheets:_0x365821,inlineCss:_0x45919b,stripCssClasses:_0x5519a4}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x434a28,rootCssVariables:_0x2cbc58}=await r({'stylesheets':_0x365821||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x45919b});this['_processElementTree']({'transformations':_0x9e9834,'parsedCssRules':_0x434a28,'element':_0x233e36,'stripCssClasses':_0x5519a4,'parentCSSVariablesLookup':_0x2cbc58['get']['bind'](_0x2cbc58)});}['_processElementTree']({element:_0x5f14d8,parsedCssRules:_0x13ebd8,parentCSSVariablesLookup:_0x325c3d,stripCssClasses:_0x22de68,transformations:_0x264ba4}){const {stylesMap:_0x5293f1,localCSSVariables:_0x7cf32f}=function(_0x1b541b){const _0x1623d9=_0x1b541b['element']['getAttribute']('style')||'',_0x23ce1c=_0x1b541b['parsedCssRules']['filter'](_0x1d64f6=>_0x1b541b['element']['matches'](_0x1d64f6['flatSelector']))['map'](_0x26b044=>_0x26b044['stylesMap']),_0x31e525=l(_0x1b541b['stylesProcessor'],[..._0x23ce1c,_0x1623d9]);return{'localCSSVariables':g(_0x1b541b['fallbackCSSVariablesLookup'],_0x31e525),'stylesMap':_0x31e525};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x325c3d,'parsedCssRules':_0x13ebd8,'element':_0x5f14d8});for(const _0x2f1a93 of _0x264ba4)_0x2f1a93(_0x5f14d8,_0x5293f1);_0x5293f1['size']?_0x5f14d8['setAttribute']('style',p(_0x5293f1)):_0x5f14d8['removeAttribute']('style');const _0x3985a4=_0x1d3d1c=>_0x7cf32f['has'](_0x1d3d1c)?_0x7cf32f['get'](_0x1d3d1c):_0x325c3d(_0x1d3d1c);for(const _0x43d668 of _0x5f14d8['children'])_0x43d668 instanceof HTMLElement&&this['_processElementTree']({'element':_0x43d668,'parentCSSVariablesLookup':_0x3985a4,'parsedCssRules':_0x13ebd8,'stripCssClasses':_0x22de68,'transformations':_0x264ba4});_0x22de68&&_0x5f14d8['removeAttribute']('class');}}function p(_0x35dd91){return _0x35dd91['getStylesEntries']()['map'](_0x48ec23=>_0x48ec23['join'](':'))['join'](';')+';';}class i extends _0x34d71e{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 w(this['editor']));}['afterInit'](){!async function(_0x451503){const _0x5eb114=_0x1283b4([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]),_0xf1c8e6=0x6f40c3fb,_0x4e3d82=0x6f47b923^_0xf1c8e6,_0x1be5bc=window[_0x1283b4([0x44,0x61,0x74,0x65])][_0x1283b4([0x6e,0x6f,0x77])](),_0x5cda1b=_0x451503[_0x1283b4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53a298=new window[(_0x1283b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f09cc=>{_0x5cda1b[_0x1283b4([0x6f,0x6e,0x63,0x65])](_0x1283b4([0x72,0x65,0x61,0x64,0x79]),_0x1f09cc);}),_0x323d84={[_0x1283b4([0x6b,0x74,0x79])]:_0x1283b4([0x45,0x43]),[_0x1283b4([0x75,0x73,0x65])]:_0x1283b4([0x73,0x69,0x67]),[_0x1283b4([0x63,0x72,0x76])]:_0x1283b4([0x50,0x2d,0x32,0x35,0x36]),[_0x1283b4([0x78])]:_0x1283b4([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]),[_0x1283b4([0x79])]:_0x1283b4([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]),[_0x1283b4([0x61,0x6c,0x67])]:_0x1283b4([0x45,0x53,0x32,0x35,0x36])},_0x2e18b0=_0x5cda1b[_0x1283b4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1283b4([0x67,0x65,0x74])](_0x1283b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c0401(){let _0xa3f578,_0x4ffbf9=null,_0x3798e3=null;try{if(_0x2e18b0==_0x1283b4([0x47,0x50,0x4c]))return _0x1283b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa3f578=_0xeb9a9d(),!_0xa3f578)return _0x1283b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa3f578[_0x1283b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3798e3=_0x4b8459(_0xa3f578[_0x1283b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa3f578[_0x1283b4([0x6a,0x74,0x69])])),await _0x234e35()?_0x222627()?_0x33d059()?_0x1283b4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f07bb()?(_0xa3f578[_0x1283b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1283b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4ffbf9=_0x596484(_0x1283b4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa3f578[_0x1283b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1283b4([0x74,0x72,0x69,0x61,0x6c])&&(_0x4ffbf9=_0x596484(_0x1283b4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a0c3b()):_0x1283b4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1283b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1283b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1283b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33d059(){const _0x2f6442=[_0x1283b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1283b4([0x74,0x72,0x69,0x61,0x6c])][_0x1283b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3f578[_0x1283b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1be5bc/0x3e8:0xe10*_0x4e3d82;return _0xa3f578[_0x1283b4([0x65,0x78,0x70])]<_0x2f6442;}function _0x222627(){const _0x5a98b1=_0xa3f578[_0x1283b4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5a98b1&&(!!_0x5a98b1[_0x1283b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1283b4([0x2a]))||!!_0x5a98b1[_0x1283b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1283b4([0x45,0x49,0x53])));}function _0x1f07bb(){const _0x4a00c0=_0xa3f578[_0x1283b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a00c0||0x0==_0x4a00c0[_0x1283b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x40eced}=new URL(window[_0x1283b4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a00c0[_0x1283b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40eced))return!0x0;const _0x35ca82=_0x40eced[_0x1283b4([0x73,0x70,0x6c,0x69,0x74])](_0x1283b4([0x2e]));return _0x4a00c0[_0x1283b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c81d8=>_0x5c81d8[_0x1283b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1283b4([0x2a])))[_0x1283b4([0x6d,0x61,0x70])](_0x593ecc=>_0x593ecc[_0x1283b4([0x73,0x70,0x6c,0x69,0x74])](_0x1283b4([0x2e])))[_0x1283b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56a214=>_0x56a214[_0x1283b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x35ca82[_0x1283b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1283b4([0x6d,0x61,0x70])](_0x3a7f50=>Array(_0x35ca82[_0x1283b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a7f50[_0x1283b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1283b4([0x66,0x69,0x6c,0x6c])](_0x3a7f50[0x0]===_0x1283b4([0x2a])?_0x1283b4([0x2a]):'')[_0x1283b4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a7f50))[_0x1283b4([0x73,0x6f,0x6d,0x65])](_0x1f477e=>_0x35ca82[_0x1283b4([0x65,0x76,0x65,0x72,0x79])]((_0x42be82,_0x4712d5)=>_0x1f477e[_0x4712d5]===_0x42be82||_0x1f477e[_0x4712d5]===_0x1283b4([0x2a])));}function _0x3a0c3b(){return _0x4ffbf9&&_0x3798e3?new window[(_0x1283b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x463436,_0x2a04f9)=>{_0x4ffbf9[_0x1283b4([0x74,0x68,0x65,0x6e])](_0x463436,_0x2a04f9),_0x3798e3[_0x1283b4([0x74,0x68,0x65,0x6e])](_0x244b8a=>{_0x244b8a!=_0x1283b4([0x56,0x61,0x6c,0x69,0x64])&&_0x463436(_0x244b8a);},_0x2a04f9);}):_0x4ffbf9||_0x3798e3||_0x1283b4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4b8459(_0xced6eb,_0x34c3ef){return new window[(_0x1283b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1171c8=>{if(_0x19dec0())return _0x1171c8(_0x1283b4([0x56,0x61,0x6c,0x69,0x64]));_0x11b78d(),_0x5cda1b[_0x1283b4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1283b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bb7bd=!0x1;const _0x28fac5=_0x4a9d4b();function _0x208486(_0x1c9f24){return!!_0x1c9f24&&(typeof _0x1c9f24===_0x1283b4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c9f24===_0x1283b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c9f24[_0x1283b4([0x74,0x68,0x65,0x6e])]===_0x1283b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c9f24[_0x1283b4([0x63,0x61,0x74,0x63,0x68])]===_0x1283b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4a016e(_0x1bf6ee){_0xe9095c(_0x1bf6ee)[_0x1283b4([0x74,0x68,0x65,0x6e])](_0xfd902a=>{if(!_0xfd902a||_0xfd902a[_0x1283b4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1283b4([0x6f,0x6b]))return _0x1283b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b46ba(_0x4eeefd(_0x28fac5+_0x34c3ef))!=_0xfd902a[_0x1283b4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1283b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1283b4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1283b4([0x74,0x68,0x65,0x6e])](_0x340c0a=>(_0x1998a1(),_0x340c0a),()=>{const _0x1a2b4b=_0x20825e();return null==_0x1a2b4b?(_0x1998a1(),_0x1283b4([0x56,0x61,0x6c,0x69,0x64])):_0x1283b4(_0x1be5bc-_0x1a2b4b>(0x4b4c47fb^_0xf1c8e6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1283b4([0x74,0x68,0x65,0x6e])](_0x1171c8)[_0x1283b4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1171c8(_0x1283b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x256380=0x6f762d7b^_0xf1c8e6;function _0x1998a1(){const _0x140760=_0x1283b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b46ba(_0x4eeefd(_0xced6eb)),_0x4eaef7=_0x188e6f(_0x1b46ba(window[_0x1283b4([0x4d,0x61,0x74,0x68])][_0x1283b4([0x63,0x65,0x69,0x6c])](_0x1be5bc/_0x256380)));window[_0x1283b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1283b4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x140760,_0x4eaef7);}function _0x20825e(){const _0x54a25c=_0x1283b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b46ba(_0x4eeefd(_0xced6eb)),_0x360cf4=window[_0x1283b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1283b4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54a25c);return _0x360cf4?window[_0x1283b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x188e6f(_0x360cf4),0x10)*_0x256380:null;}function _0xe9095c(_0x4874e0){return new window[(_0x1283b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d4024,_0x54fdc7)=>{_0x4874e0[_0x1283b4([0x74,0x68,0x65,0x6e])](_0x2d4024,_0x54fdc7),window[_0x1283b4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54fdc7,0x6f41173b^_0xf1c8e6);});}}_0x5cda1b[_0x1283b4([0x6f,0x6e])](_0x1283b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x27a1de,_0x564852)=>{if(_0x564852[0x0]!=_0xced6eb)return _0x1171c8(_0x1283b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x564852[0x1]={..._0x564852[0x1],[_0x1283b4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28fac5};},{[_0x1283b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1283b4([0x68,0x69,0x67,0x68])}),_0x5cda1b[_0x1283b4([0x6f,0x6e])](_0x1283b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37102c=>{_0x208486(_0x37102c[_0x1283b4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bb7bd=!0x0,_0x4a016e(_0x37102c[_0x1283b4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1283b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1283b4([0x6c,0x6f,0x77])}),_0x53a298[_0x1283b4([0x74,0x68,0x65,0x6e])](()=>{_0x4bb7bd||_0x1171c8(_0x1283b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x19dec0(){return _0x5cda1b[_0x1283b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1283b4([0x76,0x69,0x65,0x77])][_0x1283b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1283b4([0x61,0x75,0x74,0x6f]);}function _0x11b78d(){_0x5cda1b[_0x1283b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1283b4([0x76,0x69,0x65,0x77])][_0x1283b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1283b4([0x61,0x75,0x74,0x6f]);}}function _0x596484(_0x1ecda5){const _0xe7cad4=[new window[(_0x1283b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bd237=>setTimeout(_0x2bd237,0x6f49fd37^_0xf1c8e6)),_0x53a298[_0x1283b4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1283b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25637d=>{let _0xfd7588=0x0;_0x5cda1b[_0x1283b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1283b4([0x6f,0x6e])](_0x1283b4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x53b267,_0x35d439)=>{_0x35d439[0x0][_0x1283b4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xfd7588++,_0xfd7588==(0x6f40c203^_0xf1c8e6)&&(_0x25637d(),_0x53b267[_0x1283b4([0x6f,0x66,0x66])]());});}))];return window[_0x1283b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1283b4([0x72,0x61,0x63,0x65])](_0xe7cad4)[_0x1283b4([0x74,0x68,0x65,0x6e])](()=>_0x1ecda5);}async function _0x40c79b(){await _0x53a298;const _0xd1e474=_0x5cda1b['commands'][_0x1283b4([0x67,0x65,0x74])](_0x1283b4([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0xd1e474&&_0xd1e474[_0x1283b4([0x6f,0x6e])](_0x1283b4([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x2005a9=>{_0x2005a9['stop']();},{'priority':_0x1283b4([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x5cda1b[_0x1283b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1283b4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2299b3,_0x5cda1b[_0x1283b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1283b4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2299b3,_0x5cda1b[_0x1283b4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1283b4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a06ec(_0x4ed972){const _0x33ea6a=_0x2602fd();_0x5cda1b[_0x33ea6a]=_0x1283b4([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])+_0x4ed972,_0x4ed972!=_0x1283b4([0x56,0x61,0x6c,0x69,0x64])&&_0x40c79b();}function _0x2602fd(){const _0x230b3b=window[_0x1283b4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1283b4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1283b4([0x6e,0x6f,0x77])]())[_0x1283b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1283b4([0x2e]),'');let _0x504579=_0x1283b4([0x44]);for(let _0x2e7577=0x0;_0x2e7577<_0x230b3b[_0x1283b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e7577+=0x2){let _0xc04ce5=window[_0x1283b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x230b3b[_0x1283b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7577,_0x2e7577+0x2));_0xc04ce5>=_0x5eb114[_0x1283b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc04ce5-=_0x5eb114[_0x1283b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x504579+=_0x5eb114[_0xc04ce5];}return _0x504579;}function _0xeb9a9d(){const _0x3a0b98=_0x2e18b0[_0x1283b4([0x73,0x70,0x6c,0x69,0x74])](_0x1283b4([0x2e]));if(0x3!=_0x3a0b98[_0x1283b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x484cc2(_0x3a0b98[0x1]);function _0x484cc2(_0x17021e){const _0x3e3a3e=_0x3f22ec(_0x17021e);return _0x3e3a3e&&_0x1b368d()?_0x3e3a3e:null;function _0x1b368d(){const _0x9cc946=_0x3e3a3e[_0x1283b4([0x6a,0x74,0x69])],_0x2df29a=window[_0x1283b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9cc946[_0x1283b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9cc946[_0x1283b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a772e={..._0x3e3a3e,[_0x1283b4([0x6a,0x74,0x69])]:_0x9cc946[_0x1283b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x9cc946[_0x1283b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a772e[_0x1283b4([0x76,0x63])],_0x4eeefd(_0x1a772e)==_0x2df29a;}}}async function _0x234e35(){let _0x39a219=!0x0;try{const _0x351801=_0x2e18b0[_0x1283b4([0x73,0x70,0x6c,0x69,0x74])](_0x1283b4([0x2e])),[_0x271da7,_0x10cbb0,_0xa684db]=_0x351801;return _0x1f80c8(_0x271da7),await _0x382574(_0x271da7,_0x10cbb0,_0xa684db),_0x39a219;}catch{return!0x1;}function _0x1f80c8(_0x52bff4){const _0x186289=_0x3f22ec(_0x52bff4);_0x186289&&_0x186289[_0x1283b4([0x61,0x6c,0x67])]==_0x1283b4([0x45,0x53,0x32,0x35,0x36])||(_0x39a219=!0x1);}async function _0x382574(_0x5c83e6,_0x127c46,_0x561764){const _0x4333c1=window[_0x1283b4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1283b4([0x66,0x72,0x6f,0x6d])](_0x51868a(_0x561764),_0x4ae29d=>_0x4ae29d[_0x1283b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ff6a4=new window[(_0x1283b4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1283b4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c83e6+_0x1283b4([0x2e])+_0x127c46),_0x2181e2=window[_0x1283b4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1283b4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2181e2)return;const _0xd92f06=await _0x2181e2[_0x1283b4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1283b4([0x6a,0x77,0x6b]),_0x323d84,{[_0x1283b4([0x6e,0x61,0x6d,0x65])]:_0x1283b4([0x45,0x43,0x44,0x53,0x41]),[_0x1283b4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1283b4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1283b4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2181e2[_0x1283b4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1283b4([0x6e,0x61,0x6d,0x65])]:_0x1283b4([0x45,0x43,0x44,0x53,0x41]),[_0x1283b4([0x68,0x61,0x73,0x68])]:{[_0x1283b4([0x6e,0x61,0x6d,0x65])]:_0x1283b4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd92f06,_0x4333c1,_0x4ff6a4)||(_0x39a219=!0x1);}}function _0x3f22ec(_0x4b0560){return _0x4b0560[_0x1283b4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1283b4([0x65,0x79]))?JSON[_0x1283b4([0x70,0x61,0x72,0x73,0x65])](_0x51868a(_0x4b0560)):null;}function _0x51868a(_0x49908c){return window[_0x1283b4([0x61,0x74,0x6f,0x62])](_0x49908c[_0x1283b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1283b4([0x2b]))[_0x1283b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1283b4([0x2f])));}function _0x4eeefd(_0x39b352){let _0x2a0bbf=0x1505;function _0x3da848(_0x1cf40b){for(let _0x52be63=0x0;_0x52be63<_0x1cf40b[_0x1283b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52be63++){const _0x5abf11=_0x1cf40b[_0x1283b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x52be63);_0x2a0bbf=(_0x2a0bbf<<0x5)+_0x2a0bbf+_0x5abf11,_0x2a0bbf&=_0x2a0bbf;}}function _0x5d46ba(_0x9179f){Array[_0x1283b4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9179f)?_0x9179f[_0x1283b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d46ba):_0x9179f&&typeof _0x9179f==_0x1283b4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1283b4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9179f)[_0x1283b4([0x73,0x6f,0x72,0x74])]()[_0x1283b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1231fe,_0x46237d])=>{_0x3da848(_0x1231fe),_0x5d46ba(_0x46237d);}):_0x3da848(window[_0x1283b4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9179f));}return _0x5d46ba(_0x39b352),_0x2a0bbf>>>0x0;}function _0x1b46ba(_0x1fee73){return _0x1fee73[_0x1283b4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1283b4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1283b4([0x30]));}function _0x188e6f(_0x505850){return _0x505850[_0x1283b4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1283b4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1283b4([0x6a,0x6f,0x69,0x6e])]('');}function _0x2299b3(){}function _0x1283b4(_0x330cbd){return _0x330cbd['map'](_0x4ad265=>String['fromCharCode'](_0x4ad265))['join']('');}_0x5a06ec(await _0x1c0401());}(this);}}class I extends _0x34d71e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[i];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x819e6f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x579b66;for(const _0x2785c7 in _0x819e6f){const _0x11979e=_0x2785c7,_0x1dcfda=_0x819e6f[_0x11979e];if('exportInlineStylesLicenseKeyValid'==_0x1dcfda||'exportInlineStylesLicenseKeyInvalid'==_0x1dcfda||'exportInlineStylesLicenseKeyExpired'==_0x1dcfda||'exportInlineStylesLicenseKeyDomainLimit'==_0x1dcfda||'exportInlineStylesLicenseKeyNotAllowed'==_0x1dcfda||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x1dcfda||'exportInlineStylesLicenseKeyTrialLimit'==_0x1dcfda||'exportInlineStylesLicenseKeyUsageLimit'==_0x1dcfda){delete _0x819e6f[_0x11979e],_0x579b66=_0x1dcfda,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x579b66&&_0x819e6f['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x579b66&&_0x819e6f['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x579b66&&_0x819e6f['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x579b66&&_0x819e6f['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x579b66&&_0x819e6f['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyTrialLimit'==_0x579b66&&_0x819e6f['_showLicenseError']('trialLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x579b66&&_0x819e6f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}export{I as ExportInlineStyles,w as ExportInlineStylesCommand,i as ExportInlineStylesEditing,L as dropImportantStyleSuffix};