@ckeditor/ckeditor5-export-inline-styles 48.2.0-alpha.2 → 48.2.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 _0x1632b0,Plugin as _0x344cc0}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0x222f6a,createElement as _0x5c33ed,uid as _0x13e480}from'@ckeditor/ckeditor5-utils/dist/index.js';import{StylesMap as _0x47798b,addMarginStylesRules as _0x520b7b,addPaddingStylesRules as _0x55292e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{calculate as _0x39f078,compare as _0x46ebed}from'specificity';function f(_0x20ece4){const _0x380430=[];let _0x217703='',_0x4ce899=0x0;for(;_0x4ce899<_0x20ece4['length'];){const _0x223002=_0x20ece4[_0x4ce899];if('('===_0x223002){const _0x403f84=y(_0x20ece4,_0x4ce899+0x1);if(-0x1===_0x403f84)return[];_0x217703+=_0x20ece4['slice'](_0x4ce899,_0x403f84+0x1),_0x4ce899=_0x403f84+0x1;}else','!==_0x223002||_0x217703['endsWith']('\x5c')?(_0x217703+=_0x223002,_0x4ce899++):(_0x380430['push'](_0x217703['trim']()),_0x217703='',_0x4ce899++);}return _0x217703['trim']()&&_0x380430['push'](_0x217703['trim']()),_0x380430['filter'](Boolean);}function y(_0x396659,_0x45c4c8){let _0x56eb35=0x1;for(let _0x3b9826=_0x45c4c8;_0x3b9826<_0x396659['length'];_0x3b9826++){const _0x342e7c=_0x396659[_0x3b9826];if('('===_0x342e7c)_0x56eb35++;else{if(')'===_0x342e7c&&(_0x56eb35--,0x0===_0x56eb35))return _0x3b9826;}}return-0x1;}function p(_0xae5516){return _0xae5516['replace'](/!\s*important/i,'')['trim']();}function w(_0x5404fd,_0x1c12ef){const _0x1d983f=new Map(),_0x173d73=_0x23f0e1=>_0x1d983f['has'](_0x23f0e1)?_0x1d983f['get'](_0x23f0e1):_0x5404fd(_0x23f0e1);for(const [_0x384e1a,_0x556c47]of _0x1c12ef['getStylesEntries']())if(_0x556c47&&_0x384e1a['startsWith']('--')){const _0x368122=d(_0x173d73,_0x556c47);_0x1d983f['set'](_0x384e1a,_0x368122),_0x1c12ef['remove'](_0x384e1a);}for(const [_0x37fee2,_0x4f97a6]of _0x1c12ef['getStylesEntries']())if(_0x4f97a6){const _0x2b09b9=d(_0x173d73,_0x4f97a6);_0x1c12ef['set'](_0x37fee2,_0x2b09b9);}return _0x1d983f;}function d(_0x37dd01,_0x554ac0){return function(_0x221e76,_0x254871){let _0x579414='',_0xc6db7b=0x0;for(;_0xc6db7b<_0x221e76['length'];){const _0x3e7f27=_0x221e76['indexOf']('var(',_0xc6db7b);if(-0x1===_0x3e7f27){_0x579414+=_0x221e76['slice'](_0xc6db7b);break;}_0x579414+=_0x221e76['slice'](_0xc6db7b,_0x3e7f27);const _0x5d83f9=_0x3e7f27+0x4,_0x516470=y(_0x221e76,_0x5d83f9);_0x579414+=_0x254871(_0x221e76['substring'](_0x5d83f9,_0x516470)),_0xc6db7b=_0x516470+0x1;}return _0x579414;}(_0x554ac0,_0x4a1df2=>{const [_0x4d8b65,_0x32d91e]=f(_0x4a1df2),_0x1027e5=_0x37dd01(_0x4d8b65);return void 0x0!==_0x1027e5?_0x1027e5:_0x32d91e?d(_0x37dd01,_0x32d91e):'var('+_0x4d8b65+')';});}async function m(_0xfa2e00){const _0x3d6b5c=[await _0x222f6a(_0xfa2e00['stylesheets']),_0xfa2e00['inlineCss']]['filter'](_0x5c45a8=>_0x5c45a8&&_0x5c45a8['length'])['join']('\x0a'),_0x2522a6=await async function(_0x43d116,_0x197e54){const _0x46e8a4=new CSSStyleSheet();return await _0x46e8a4['replace'](_0x197e54),S(Array['from'](_0x46e8a4['cssRules'])['filter'](_0x20b0e1=>_0x20b0e1 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x3fbdf6,contentCssText:_0x490f05})=>{const _0x7530c=f(_0x3fbdf6),_0x242dda=new _0x47798b(_0x43d116)['setTo'](_0x490f05);return _0x7530c['map'](_0x3c1e3e=>{const _0x530423=function(_0x1d23ce){const _0x2f6d3f=':where(';let _0x9a535c=_0x1d23ce,_0x5850c0=0x0;for(let _0x3a1327=0x0;_0x3a1327<0x64;_0x3a1327++){const _0xcdd78f=_0x9a535c['indexOf'](_0x2f6d3f,_0x5850c0);if(-0x1===_0xcdd78f)break;let _0xed1990=0x0;for(let _0x1032c7=0x0;_0x1032c7<_0xcdd78f;_0x1032c7++)'('===_0x9a535c[_0x1032c7]?_0xed1990++:')'===_0x9a535c[_0x1032c7]&&_0xed1990--;if(_0xed1990>0x0){_0x5850c0=_0xcdd78f+_0x2f6d3f['length'];continue;}let _0x356d4b=-0x1;for(let _0x4eb8f1=_0xcdd78f+_0x2f6d3f['length'],_0x329842=0x1;_0x4eb8f1<_0x9a535c['length'];_0x4eb8f1++)if('('===_0x9a535c[_0x4eb8f1]?_0x329842++:')'===_0x9a535c[_0x4eb8f1]&&_0x329842--,!_0x329842){_0x356d4b=_0x4eb8f1;break;}-0x1!==_0x356d4b?(_0x9a535c=_0x9a535c['slice'](0x0,_0xcdd78f)+_0x9a535c['slice'](_0x356d4b+0x1),_0x5850c0=_0xcdd78f):_0x5850c0=_0xcdd78f+_0x2f6d3f['length'];}return _0x9a535c['replace'](/\s+/g,'\x20')['trim']();}(_0x3c1e3e),_0x1a3eea=_0x530423?_0x39f078(_0x530423)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x242dda,'flatSelector':_0x3c1e3e,'specificity':_0x1a3eea};});})['sort']((_0x33ddfa,_0x3b0a84)=>_0x46ebed(_0x33ddfa['specificity'],_0x3b0a84['specificity']));}(_0xfa2e00['stylesProcessor'],_0x3d6b5c);return{'parsedCssRules':_0x2522a6,'rootCssVariables':function(_0x5db62d){const _0x3b7f07=new Map();for(const {stylesMap:_0x54e789,flatSelector:_0x21a2d1}of _0x5db62d){if(':root'!==_0x21a2d1)continue;const _0x2bcd51=w(_0x3b7f07['get']['bind'](_0x3b7f07),_0x54e789);for(const [_0x517786,_0x3675a7]of _0x2bcd51)_0x3b7f07['set'](_0x517786,_0x3675a7);}return _0x3b7f07;}(_0x2522a6)};}function S(_0x4f3fe8,_0x1252da=''){return _0x4f3fe8['flatMap'](_0x4f14b3=>{const {selectorText:_0x3265be,cssText:_0x2021d9,cssRules:_0x5dcf06}=_0x4f14b3;if(!_0x3265be)return[];const _0x580cc5=_0x3265be['replace'](/&/g,_0x1252da);let _0x323646=_0x2021d9['replace'](_0x3265be,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x5dcf06||!_0x5dcf06['length'])return[{'selectorText':_0x580cc5,'contentCssText':_0x323646}];for(const _0x128b39 of _0x5dcf06)_0x323646=_0x323646['replace'](_0x128b39['cssText'],'')['trim']();return[{'selectorText':_0x580cc5,'contentCssText':_0x323646},...S(Array['from'](_0x5dcf06),_0x580cc5)];});}function h(_0x31e18e,_0x551ac7){const _0x15d574=new _0x47798b(_0x31e18e);for(const _0x112347 of _0x551ac7){let _0x248800=null;if(_0x248800='string'==typeof _0x112347?new _0x47798b(_0x31e18e)['setTo'](_0x112347):_0x112347,_0x248800){for(const [_0x20db4b,_0x239b63]of _0x248800['getStylesEntries']())_0x15d574['set'](_0x20db4b,_0x239b63);}}return _0x15d574;}class ExportInlineStylesCommand extends _0x1632b0{['_stylesProcessor'];constructor(_0x159df1){super(_0x159df1),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x520b7b(this['_stylesProcessor']),_0x55292e(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x2ec0cb){const _0x3fa81a=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x3fb2e1}=this['editor']['locale'],{rootName:_0x481bdf='main',dataControllerDowncastOptions:_0xbdb105={},transformations:_0x23fad3=_0x3fa81a['transformations']||[]}=_0x2ec0cb||{};this['isBusy']=!0x0,this['refresh']();const _0x558e43=this['_getRootDataHTMLFragment'](_0x481bdf,_0xbdb105),_0x21a299=_0x5c33ed(_0x558e43['ownerDocument'],'div',{'dir':_0x3fb2e1,'class':'ck-content'},[_0x558e43]);return this['_collectAndApplyStyles'](_0x23fad3,_0x21a299)['then'](()=>{const _0x146c46=function(_0x1b40e1){const _0x2cd186=_0x1b40e1['ownerDocument']['createDocumentFragment']();for(;_0x1b40e1['firstChild'];)_0x2cd186['appendChild'](_0x1b40e1['firstChild']);return _0x2cd186;}(_0x21a299),_0x360525=_0x21a299['getAttribute']('style');if(_0x360525)for(const _0x21a51b of _0x146c46['children']){const _0x127d20=_0x21a51b['getAttribute']('style'),_0x3672dc=h(this['_stylesProcessor'],[_0x360525,_0x127d20]);_0x21a51b['setAttribute']('style',x(_0x3672dc));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x146c46);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x5a33ef,_0x2afe64){const {data:_0xf18bf4,model:_0x54748e}=this['editor'],_0x4f293e=_0x54748e['document']['getRoot'](_0x5a33ef),_0xa1161b=_0xf18bf4['toView'](_0x4f293e,_0x2afe64);return _0xf18bf4['htmlProcessor']['domConverter']['viewToDom'](_0xa1161b);}async['_collectAndApplyStyles'](_0x52f0f2,_0x498727){const {stylesheets:_0x26077d,inlineCss:_0x39025e,stripCssClasses:_0x5a6916}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x787b9f,rootCssVariables:_0x25ccce}=await m({'stylesheets':_0x26077d||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x39025e}),_0x3dfb86=[];this['_processElementTree']({'transformations':_0x52f0f2,'parsedCssRules':_0x787b9f,'element':_0x498727,'stripCssClasses':_0x5a6916,'parentCSSVariablesLookup':_0x25ccce['get']['bind'](_0x25ccce),'runAfterDocumentTransformation':_0x160be2=>{_0x3dfb86['unshift'](_0x160be2);}});for(const _0x558714 of _0x3dfb86)_0x558714();}['_processElementTree']({element:_0x4a15c9,parsedCssRules:_0x5d51a6,parentCSSVariablesLookup:_0x41b719,runAfterDocumentTransformation:_0x5a266a,stripCssClasses:_0x25d7e5,transformations:_0x2907de}){const {stylesMap:_0x26cb75,localCSSVariables:_0x5b7f9f}=function(_0x172439){const _0x5f4ce7=_0x172439['element']['getAttribute']('style')||'',_0x1b96c2=_0x172439['parsedCssRules']['filter'](_0x48aa15=>_0x172439['element']['matches'](_0x48aa15['flatSelector']))['map'](_0x5b0041=>_0x5b0041['stylesMap']),_0x1179d=h(_0x172439['stylesProcessor'],[..._0x1b96c2,_0x5f4ce7]);return{'localCSSVariables':w(_0x172439['fallbackCSSVariablesLookup'],_0x1179d),'stylesMap':_0x1179d};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x41b719,'parsedCssRules':_0x5d51a6,'element':_0x4a15c9}),_0x29915f=[];for(const _0x5c6624 of _0x2907de){const _0x3d462d=_0x5c6624(_0x4a15c9,_0x26cb75,{'runAfterDocumentTransformation':_0x5a266a,'runAfterChildrenTransformation':_0x5cae76=>{_0x29915f['unshift'](_0x5cae76);}});_0x3d462d&&_0x3d462d instanceof HTMLElement&&(_0x4a15c9=_0x3d462d);}_0x26cb75['size']?_0x4a15c9['setAttribute']('style',x(_0x26cb75)):_0x4a15c9['removeAttribute']('style');const _0x3e6520=_0xa425e7=>_0x5b7f9f['has'](_0xa425e7)?_0x5b7f9f['get'](_0xa425e7):_0x41b719(_0xa425e7);for(const _0x2fab41 of _0x4a15c9['children'])_0x2fab41 instanceof HTMLElement&&this['_processElementTree']({'element':_0x2fab41,'parsedCssRules':_0x5d51a6,'stripCssClasses':_0x25d7e5,'transformations':_0x2907de,'parentCSSVariablesLookup':_0x3e6520,'runAfterDocumentTransformation':_0x5a266a});_0x25d7e5&&_0x4a15c9['removeAttribute']('class');for(const _0x1ead74 of _0x29915f)_0x1ead74();}}function x(_0x5a3a51){return _0x5a3a51['getStylesEntries']()['map'](_0x14ff50=>_0x14ff50['join'](':'))['join'](';')+';';}class ExportInlineStylesEditing extends _0x344cc0{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 ExportInlineStylesCommand(this['editor']));}['afterInit'](){!async function(_0x30f138){const _0x4cc47a=_0xd03658([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]),_0x4a5f24=0x6f40c3fb,_0x2f0c7b=0x6f47488b^_0x4a5f24,_0x213454=window[_0xd03658([0x44,0x61,0x74,0x65])][_0xd03658([0x6e,0x6f,0x77])](),_0x4232c6=_0x30f138[_0xd03658([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x571ba7=new window[(_0xd03658([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3316a2=>{_0x4232c6[_0xd03658([0x6f,0x6e,0x63,0x65])](_0xd03658([0x72,0x65,0x61,0x64,0x79]),_0x3316a2);}),_0x235014={[_0xd03658([0x6b,0x74,0x79])]:_0xd03658([0x45,0x43]),[_0xd03658([0x75,0x73,0x65])]:_0xd03658([0x73,0x69,0x67]),[_0xd03658([0x63,0x72,0x76])]:_0xd03658([0x50,0x2d,0x32,0x35,0x36]),[_0xd03658([0x78])]:_0xd03658([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]),[_0xd03658([0x79])]:_0xd03658([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]),[_0xd03658([0x61,0x6c,0x67])]:_0xd03658([0x45,0x53,0x32,0x35,0x36])},_0x21c2ee=_0x4232c6[_0xd03658([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd03658([0x67,0x65,0x74])](_0xd03658([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x51cb02(){let _0x2b90e0,_0x2cc83a=null,_0xed7e97=null;try{if(_0x21c2ee==_0xd03658([0x47,0x50,0x4c]))return _0xd03658([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b90e0=_0x104221(),!_0x2b90e0)return _0xd03658([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b90e0[_0xd03658([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xed7e97=_0x4e58ff(_0x2b90e0[_0xd03658([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b90e0[_0xd03658([0x6a,0x74,0x69])])),await _0x1e01c8()?_0x2caf18()?_0x66635e()?_0xd03658([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50f354()?(_0x2b90e0[_0xd03658([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd03658([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2cc83a=_0x518ed1(_0xd03658([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x264fd5()):_0xd03658([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd03658([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd03658([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd03658([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x66635e(){const _0x5f2991=[_0xd03658([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd03658([0x74,0x72,0x69,0x61,0x6c])][_0xd03658([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b90e0[_0xd03658([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x213454/0x3e8:0xe10*_0x2f0c7b;return _0x2b90e0[_0xd03658([0x65,0x78,0x70])]<_0x5f2991;}function _0x2caf18(){const _0x4296f9=_0x2b90e0[_0xd03658([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4296f9&&(!!_0x4296f9[_0xd03658([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd03658([0x2a]))||!!_0x4296f9[_0xd03658([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd03658([0x45,0x49,0x53])));}function _0x50f354(){const _0x4b6d43=_0x2b90e0[_0xd03658([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4b6d43||0x0==_0x4b6d43[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a6da4}=new URL(window[_0xd03658([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4b6d43[_0xd03658([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a6da4))return!0x0;const _0x2a62a7=_0x1a6da4[_0xd03658([0x73,0x70,0x6c,0x69,0x74])](_0xd03658([0x2e]));return _0x4b6d43[_0xd03658([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c16c2=>_0x5c16c2[_0xd03658([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd03658([0x2a])))[_0xd03658([0x6d,0x61,0x70])](_0x30a951=>_0x30a951[_0xd03658([0x73,0x70,0x6c,0x69,0x74])](_0xd03658([0x2e])))[_0xd03658([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7cc0d4=>_0x7cc0d4[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2a62a7[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd03658([0x6d,0x61,0x70])](_0x4c2f27=>Array(_0x2a62a7[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c2f27[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd03658([0x66,0x69,0x6c,0x6c])](_0x4c2f27[0x0]===_0xd03658([0x2a])?_0xd03658([0x2a]):'')[_0xd03658([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c2f27))[_0xd03658([0x73,0x6f,0x6d,0x65])](_0x34b337=>_0x2a62a7[_0xd03658([0x65,0x76,0x65,0x72,0x79])]((_0xfb09ab,_0x37e271)=>_0x34b337[_0x37e271]===_0xfb09ab||_0x34b337[_0x37e271]===_0xd03658([0x2a])));}function _0x264fd5(){return _0x2cc83a&&_0xed7e97?new window[(_0xd03658([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e3cff,_0x5f2ad5)=>{_0x2cc83a[_0xd03658([0x74,0x68,0x65,0x6e])](_0x5e3cff,_0x5f2ad5),_0xed7e97[_0xd03658([0x74,0x68,0x65,0x6e])](_0x2b70df=>{_0x2b70df!=_0xd03658([0x56,0x61,0x6c,0x69,0x64])&&_0x5e3cff(_0x2b70df);},_0x5f2ad5);}):_0x2cc83a||_0xed7e97||_0xd03658([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4e58ff(_0x25ed74,_0x119d95){return new window[(_0xd03658([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c7500=>{if(_0x203bf0())return _0x1c7500(_0xd03658([0x56,0x61,0x6c,0x69,0x64]));_0x17c5d0(),_0x4232c6[_0xd03658([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd03658([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x345058=!0x1;const _0x28ffea=_0x13e480();function _0x578931(_0x1e27b2){return!!_0x1e27b2&&(typeof _0x1e27b2===_0xd03658([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e27b2===_0xd03658([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e27b2[_0xd03658([0x74,0x68,0x65,0x6e])]===_0xd03658([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e27b2[_0xd03658([0x63,0x61,0x74,0x63,0x68])]===_0xd03658([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x58f155(_0x1f371b){_0x1671df(_0x1f371b)[_0xd03658([0x74,0x68,0x65,0x6e])](_0x15cbb7=>{if(!_0x15cbb7||_0x15cbb7[_0xd03658([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd03658([0x6f,0x6b]))return _0xd03658([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x243b3e(_0x10f279(_0x28ffea+_0x119d95))!=_0x15cbb7[_0xd03658([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd03658([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd03658([0x56,0x61,0x6c,0x69,0x64]);})[_0xd03658([0x74,0x68,0x65,0x6e])](_0x2a11cc=>(_0x58961f(),_0x2a11cc),()=>{const _0x56f2de=_0x5b377b();return null==_0x56f2de?(_0x58961f(),_0xd03658([0x56,0x61,0x6c,0x69,0x64])):_0xd03658(_0x213454-_0x56f2de>(0x4b4c47fb^_0x4a5f24)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd03658([0x74,0x68,0x65,0x6e])](_0x1c7500)[_0xd03658([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c7500(_0xd03658([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x49289c=0x6f762d7b^_0x4a5f24;function _0x58961f(){const _0xb3cdf0=_0xd03658([0x6c,0x6c,0x63,0x74,0x2d])+_0x243b3e(_0x10f279(_0x25ed74)),_0x2b4eee=_0x12bda9(_0x243b3e(window[_0xd03658([0x4d,0x61,0x74,0x68])][_0xd03658([0x63,0x65,0x69,0x6c])](_0x213454/_0x49289c)));window[_0xd03658([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd03658([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb3cdf0,_0x2b4eee);}function _0x5b377b(){const _0x16ac8a=_0xd03658([0x6c,0x6c,0x63,0x74,0x2d])+_0x243b3e(_0x10f279(_0x25ed74)),_0x1d981e=window[_0xd03658([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd03658([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16ac8a);return _0x1d981e?window[_0xd03658([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12bda9(_0x1d981e),0x10)*_0x49289c:null;}function _0x1671df(_0x55db3f){return new window[(_0xd03658([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26eb45,_0x47eaaa)=>{_0x55db3f[_0xd03658([0x74,0x68,0x65,0x6e])](_0x26eb45,_0x47eaaa),window[_0xd03658([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x47eaaa,0x6f41173b^_0x4a5f24);});}}_0x4232c6[_0xd03658([0x6f,0x6e])](_0xd03658([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x75ddeb,_0x31c511)=>{if(_0x31c511[0x0]!=_0x25ed74)return _0x1c7500(_0xd03658([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31c511[0x1]={..._0x31c511[0x1],[_0xd03658([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28ffea};},{[_0xd03658([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd03658([0x68,0x69,0x67,0x68])}),_0x4232c6[_0xd03658([0x6f,0x6e])](_0xd03658([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6b8d36=>{_0x578931(_0x6b8d36[_0xd03658([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x345058=!0x0,_0x58f155(_0x6b8d36[_0xd03658([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd03658([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd03658([0x6c,0x6f,0x77])}),_0x571ba7[_0xd03658([0x74,0x68,0x65,0x6e])](()=>{_0x345058||_0x1c7500(_0xd03658([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x203bf0(){return _0x4232c6[_0xd03658([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd03658([0x76,0x69,0x65,0x77])][_0xd03658([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd03658([0x61,0x75,0x74,0x6f]);}function _0x17c5d0(){_0x4232c6[_0xd03658([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd03658([0x76,0x69,0x65,0x77])][_0xd03658([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd03658([0x61,0x75,0x74,0x6f]);}}function _0x518ed1(_0x46e310){const _0x5d23c6=[new window[(_0xd03658([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x202943=>setTimeout(_0x202943,0x6f49fd37^_0x4a5f24)),_0x571ba7[_0xd03658([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd03658([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x257224=>{let _0x168616=0x0;_0x4232c6[_0xd03658([0x6d,0x6f,0x64,0x65,0x6c])][_0xd03658([0x6f,0x6e])](_0xd03658([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4ae678,_0x336efd)=>{_0x336efd[0x0][_0xd03658([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x168616++,_0x168616==(0x6f40c613^_0x4a5f24)&&(_0x257224(),_0x4ae678[_0xd03658([0x6f,0x66,0x66])]());});}))];return window[_0xd03658([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd03658([0x72,0x61,0x63,0x65])](_0x5d23c6)[_0xd03658([0x74,0x68,0x65,0x6e])](()=>_0x46e310);}async function _0x229872(){await _0x571ba7;const _0x9ceff6=_0x4232c6['commands'][_0xd03658([0x67,0x65,0x74])](_0xd03658([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x9ceff6&&_0x9ceff6[_0xd03658([0x6f,0x6e])](_0xd03658([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x1d8d08=>{_0x1d8d08['stop']();},{'priority':_0xd03658([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x4232c6[_0xd03658([0x6d,0x6f,0x64,0x65,0x6c])][_0xd03658([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3158cd,_0x4232c6[_0xd03658([0x6d,0x6f,0x64,0x65,0x6c])][_0xd03658([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3158cd,_0x4232c6[_0xd03658([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd03658([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x68ff9d(_0x34e605){const _0x771952=_0x78ccc3();_0x4232c6[_0x771952]=_0xd03658([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])+_0x34e605,_0x34e605!=_0xd03658([0x56,0x61,0x6c,0x69,0x64])&&_0x229872();}function _0x78ccc3(){const _0x425211=window[_0xd03658([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd03658([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd03658([0x6e,0x6f,0x77])]())[_0xd03658([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd03658([0x2e]),'');let _0x56f1f9=_0xd03658([0x44]);for(let _0x4dcd7b=0x0;_0x4dcd7b<_0x425211[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4dcd7b+=0x2){let _0x3bccef=window[_0xd03658([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x425211[_0xd03658([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dcd7b,_0x4dcd7b+0x2));_0x3bccef>=_0x4cc47a[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3bccef-=_0x4cc47a[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x56f1f9+=_0x4cc47a[_0x3bccef];}return _0x56f1f9;}function _0x104221(){const _0x213e2e=_0x21c2ee[_0xd03658([0x73,0x70,0x6c,0x69,0x74])](_0xd03658([0x2e]));if(0x3!=_0x213e2e[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16a90d(_0x213e2e[0x1]);function _0x16a90d(_0x500860){const _0x3999aa=_0x4a91cc(_0x500860);return _0x3999aa&&_0x581caa()?_0x3999aa:null;function _0x581caa(){const _0x3e722e=_0x3999aa[_0xd03658([0x6a,0x74,0x69])],_0x1727f6=window[_0xd03658([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e722e[_0xd03658([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e722e[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x305379={..._0x3999aa,[_0xd03658([0x6a,0x74,0x69])]:_0x3e722e[_0xd03658([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e722e[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x305379[_0xd03658([0x76,0x63])],_0x10f279(_0x305379)==_0x1727f6;}}}async function _0x1e01c8(){let _0x40d624=!0x0;try{const _0x30a222=_0x21c2ee[_0xd03658([0x73,0x70,0x6c,0x69,0x74])](_0xd03658([0x2e])),[_0x898f5a,_0x197a2b,_0x172eab]=_0x30a222;return _0x5d345e(_0x898f5a),await _0x220552(_0x898f5a,_0x197a2b,_0x172eab),_0x40d624;}catch{return!0x1;}function _0x5d345e(_0x334fe6){const _0x53be0e=_0x4a91cc(_0x334fe6);_0x53be0e&&_0x53be0e[_0xd03658([0x61,0x6c,0x67])]==_0xd03658([0x45,0x53,0x32,0x35,0x36])||(_0x40d624=!0x1);}async function _0x220552(_0x3676e2,_0x58d206,_0x12bf58){const _0x21069b=window[_0xd03658([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd03658([0x66,0x72,0x6f,0x6d])](_0x197867(_0x12bf58),_0xd23ab8=>_0xd23ab8[_0xd03658([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5af187=new window[(_0xd03658([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd03658([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3676e2+_0xd03658([0x2e])+_0x58d206),_0x1b4e12=window[_0xd03658([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd03658([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b4e12)return;const _0x1058c5=await _0x1b4e12[_0xd03658([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd03658([0x6a,0x77,0x6b]),_0x235014,{[_0xd03658([0x6e,0x61,0x6d,0x65])]:_0xd03658([0x45,0x43,0x44,0x53,0x41]),[_0xd03658([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd03658([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd03658([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b4e12[_0xd03658([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd03658([0x6e,0x61,0x6d,0x65])]:_0xd03658([0x45,0x43,0x44,0x53,0x41]),[_0xd03658([0x68,0x61,0x73,0x68])]:{[_0xd03658([0x6e,0x61,0x6d,0x65])]:_0xd03658([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1058c5,_0x21069b,_0x5af187)||(_0x40d624=!0x1);}}function _0x4a91cc(_0x186462){return _0x186462[_0xd03658([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd03658([0x65,0x79]))?JSON[_0xd03658([0x70,0x61,0x72,0x73,0x65])](_0x197867(_0x186462)):null;}function _0x197867(_0x3804b6){return window[_0xd03658([0x61,0x74,0x6f,0x62])](_0x3804b6[_0xd03658([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd03658([0x2b]))[_0xd03658([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd03658([0x2f])));}function _0x10f279(_0x11522e){let _0x4eab85=0x1505;function _0x5cfc4c(_0x52809e){for(let _0x19bf17=0x0;_0x19bf17<_0x52809e[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19bf17++){const _0x17896f=_0x52809e[_0xd03658([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19bf17);_0x4eab85=(_0x4eab85<<0x5)+_0x4eab85+_0x17896f,_0x4eab85&=_0x4eab85;}}function _0x4c58a3(_0x1e76f6){Array[_0xd03658([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e76f6)?_0x1e76f6[_0xd03658([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c58a3):_0x1e76f6&&typeof _0x1e76f6==_0xd03658([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd03658([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e76f6)[_0xd03658([0x73,0x6f,0x72,0x74])]()[_0xd03658([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17d117,_0x4ecabc])=>{_0x5cfc4c(_0x17d117),_0x4c58a3(_0x4ecabc);}):_0x5cfc4c(window[_0xd03658([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e76f6));}return _0x4c58a3(_0x11522e),_0x4eab85>>>0x0;}function _0x243b3e(_0x383506){return _0x383506[_0xd03658([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd03658([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd03658([0x30]));}function _0x12bda9(_0x4270cb){return _0x4270cb[_0xd03658([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd03658([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd03658([0x6a,0x6f,0x69,0x6e])]('');}function _0x3158cd(){}function _0xd03658(_0x5cacc3){return _0x5cacc3['map'](_0x10bcd1=>String['fromCharCode'](_0x10bcd1))['join']('');}_0x68ff9d(await _0x51cb02());}(this);}}class ExportInlineStyles extends _0x344cc0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ExportInlineStylesEditing];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f8e9f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd810b5;for(const _0x31fab1 in _0x1f8e9f){const _0x48401f=_0x31fab1,_0x16d8bf=_0x1f8e9f[_0x48401f];if('exportInlineStylesLicenseKeyValid'==_0x16d8bf||'exportInlineStylesLicenseKeyInvalid'==_0x16d8bf||'exportInlineStylesLicenseKeyExpired'==_0x16d8bf||'exportInlineStylesLicenseKeyDomainLimit'==_0x16d8bf||'exportInlineStylesLicenseKeyNotAllowed'==_0x16d8bf||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x16d8bf||'exportInlineStylesLicenseKeyUsageLimit'==_0x16d8bf){delete _0x1f8e9f[_0x48401f],_0xd810b5=_0x16d8bf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0xd810b5&&_0x1f8e9f['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0xd810b5&&_0x1f8e9f['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0xd810b5&&_0x1f8e9f['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0xd810b5&&_0x1f8e9f['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0xd810b5&&_0x1f8e9f['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0xd810b5&&_0x1f8e9f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}export{ExportInlineStyles,ExportInlineStylesCommand,ExportInlineStylesEditing,p as dropImportantStyleSuffix};
|
|
23
|
+
import{Command as _0x438213,Plugin as _0x19437c}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0x43ac58,createElement as _0x485538,uid as _0x333a48}from'@ckeditor/ckeditor5-utils/dist/index.js';import{StylesMap as _0x3aa130,addMarginStylesRules as _0x233487,addPaddingStylesRules as _0x739b1c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{calculate as _0x5b5101,compare as _0x4ed04d}from'specificity';function f(_0xe1658d){const _0x47afe3=[];let _0x5a9133='',_0x43e9c0=0x0;for(;_0x43e9c0<_0xe1658d['length'];){const _0x644a0a=_0xe1658d[_0x43e9c0];if('('===_0x644a0a){const _0x3eac34=y(_0xe1658d,_0x43e9c0+0x1);if(-0x1===_0x3eac34)return[];_0x5a9133+=_0xe1658d['slice'](_0x43e9c0,_0x3eac34+0x1),_0x43e9c0=_0x3eac34+0x1;}else','!==_0x644a0a||_0x5a9133['endsWith']('\x5c')?(_0x5a9133+=_0x644a0a,_0x43e9c0++):(_0x47afe3['push'](_0x5a9133['trim']()),_0x5a9133='',_0x43e9c0++);}return _0x5a9133['trim']()&&_0x47afe3['push'](_0x5a9133['trim']()),_0x47afe3['filter'](Boolean);}function y(_0x316d00,_0x2687e7){let _0x20f9f5=0x1;for(let _0x57a942=_0x2687e7;_0x57a942<_0x316d00['length'];_0x57a942++){const _0x1aaff1=_0x316d00[_0x57a942];if('('===_0x1aaff1)_0x20f9f5++;else{if(')'===_0x1aaff1&&(_0x20f9f5--,0x0===_0x20f9f5))return _0x57a942;}}return-0x1;}function p(_0x45eb5e){return _0x45eb5e['replace'](/!\s*important/i,'')['trim']();}function w(_0x23d4a9,_0xfdb56a){const _0x57c219=new Map(),_0x22457e=_0xe3b677=>_0x57c219['has'](_0xe3b677)?_0x57c219['get'](_0xe3b677):_0x23d4a9(_0xe3b677);for(const [_0x475dba,_0xdc5fa]of _0xfdb56a['getStylesEntries']())if(_0xdc5fa&&_0x475dba['startsWith']('--')){const _0x546ae4=d(_0x22457e,_0xdc5fa);_0x57c219['set'](_0x475dba,_0x546ae4),_0xfdb56a['remove'](_0x475dba);}for(const [_0x2671c0,_0xf51616]of _0xfdb56a['getStylesEntries']())if(_0xf51616){const _0x2d9ac4=d(_0x22457e,_0xf51616);_0xfdb56a['set'](_0x2671c0,_0x2d9ac4);}return _0x57c219;}function d(_0x3694e2,_0x5b37aa){return function(_0x163535,_0x2cebef){let _0xfffb87='',_0x21c776=0x0;for(;_0x21c776<_0x163535['length'];){const _0x376501=_0x163535['indexOf']('var(',_0x21c776);if(-0x1===_0x376501){_0xfffb87+=_0x163535['slice'](_0x21c776);break;}_0xfffb87+=_0x163535['slice'](_0x21c776,_0x376501);const _0x37736c=_0x376501+0x4,_0x14a290=y(_0x163535,_0x37736c);_0xfffb87+=_0x2cebef(_0x163535['substring'](_0x37736c,_0x14a290)),_0x21c776=_0x14a290+0x1;}return _0xfffb87;}(_0x5b37aa,_0x4930a8=>{const [_0x77f38f,_0x36ddbe]=f(_0x4930a8),_0x32ac74=_0x3694e2(_0x77f38f);return void 0x0!==_0x32ac74?_0x32ac74:_0x36ddbe?d(_0x3694e2,_0x36ddbe):'var('+_0x77f38f+')';});}async function m(_0x53c4c8){const _0x17447b=[await _0x43ac58(_0x53c4c8['stylesheets']),_0x53c4c8['inlineCss']]['filter'](_0x1b5ceb=>_0x1b5ceb&&_0x1b5ceb['length'])['join']('\x0a'),_0x358541=await async function(_0x20d8d8,_0x551802){const _0x253189=new CSSStyleSheet();return await _0x253189['replace'](_0x551802),S(Array['from'](_0x253189['cssRules'])['filter'](_0x4b3749=>_0x4b3749 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x2f5ef9,contentCssText:_0x2bc12})=>{const _0x3165fa=f(_0x2f5ef9),_0x606f31=new _0x3aa130(_0x20d8d8)['setTo'](_0x2bc12);return _0x3165fa['map'](_0x2e4d3a=>{const _0x35c0dd=function(_0x572e39){const _0x3107df=':where(';let _0x2e3e91=_0x572e39,_0x56d892=0x0;for(let _0x56a7e1=0x0;_0x56a7e1<0x64;_0x56a7e1++){const _0x3afd40=_0x2e3e91['indexOf'](_0x3107df,_0x56d892);if(-0x1===_0x3afd40)break;let _0x5009ea=0x0;for(let _0x5de7aa=0x0;_0x5de7aa<_0x3afd40;_0x5de7aa++)'('===_0x2e3e91[_0x5de7aa]?_0x5009ea++:')'===_0x2e3e91[_0x5de7aa]&&_0x5009ea--;if(_0x5009ea>0x0){_0x56d892=_0x3afd40+_0x3107df['length'];continue;}let _0x290351=-0x1;for(let _0x1fa997=_0x3afd40+_0x3107df['length'],_0x2dcae1=0x1;_0x1fa997<_0x2e3e91['length'];_0x1fa997++)if('('===_0x2e3e91[_0x1fa997]?_0x2dcae1++:')'===_0x2e3e91[_0x1fa997]&&_0x2dcae1--,!_0x2dcae1){_0x290351=_0x1fa997;break;}-0x1!==_0x290351?(_0x2e3e91=_0x2e3e91['slice'](0x0,_0x3afd40)+_0x2e3e91['slice'](_0x290351+0x1),_0x56d892=_0x3afd40):_0x56d892=_0x3afd40+_0x3107df['length'];}return _0x2e3e91['replace'](/\s+/g,'\x20')['trim']();}(_0x2e4d3a),_0x54a8b1=_0x35c0dd?_0x5b5101(_0x35c0dd)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x606f31,'flatSelector':_0x2e4d3a,'specificity':_0x54a8b1};});})['sort']((_0x5818e4,_0x407fd1)=>_0x4ed04d(_0x5818e4['specificity'],_0x407fd1['specificity']));}(_0x53c4c8['stylesProcessor'],_0x17447b);return{'parsedCssRules':_0x358541,'rootCssVariables':function(_0x3262ad){const _0x446f38=new Map();for(const {stylesMap:_0x199c49,flatSelector:_0xf94c5d}of _0x3262ad){if(':root'!==_0xf94c5d)continue;const _0x2207bb=w(_0x446f38['get']['bind'](_0x446f38),_0x199c49);for(const [_0x534f9a,_0x411efe]of _0x2207bb)_0x446f38['set'](_0x534f9a,_0x411efe);}return _0x446f38;}(_0x358541)};}function S(_0x47f0f8,_0x3b7aa0=''){return _0x47f0f8['flatMap'](_0x1d05fd=>{const {selectorText:_0x302df4,cssText:_0x8e5905,cssRules:_0x2cbe1e}=_0x1d05fd;if(!_0x302df4)return[];const _0x30506a=_0x302df4['replace'](/&/g,_0x3b7aa0);let _0x4dd274=_0x8e5905['replace'](_0x302df4,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x2cbe1e||!_0x2cbe1e['length'])return[{'selectorText':_0x30506a,'contentCssText':_0x4dd274}];for(const _0x310426 of _0x2cbe1e)_0x4dd274=_0x4dd274['replace'](_0x310426['cssText'],'')['trim']();return[{'selectorText':_0x30506a,'contentCssText':_0x4dd274},...S(Array['from'](_0x2cbe1e),_0x30506a)];});}function h(_0x4e4ba0,_0x47aae0){const _0x560dd6=new _0x3aa130(_0x4e4ba0);for(const _0x3ca8db of _0x47aae0){let _0x569175=null;if(_0x569175='string'==typeof _0x3ca8db?new _0x3aa130(_0x4e4ba0)['setTo'](_0x3ca8db):_0x3ca8db,_0x569175){for(const [_0x180c07,_0x301240]of _0x569175['getStylesEntries']())_0x560dd6['set'](_0x180c07,_0x301240);}}return _0x560dd6;}class ExportInlineStylesCommand extends _0x438213{['_stylesProcessor'];constructor(_0x3e3f30){super(_0x3e3f30),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x233487(this['_stylesProcessor']),_0x739b1c(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x3e8765){const _0x2212e7=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x23a28e}=this['editor']['locale'],{rootName:_0x2a8f97='main',dataControllerDowncastOptions:_0x25044d={},transformations:_0x3b5bf7=_0x2212e7['transformations']||[]}=_0x3e8765||{};this['isBusy']=!0x0,this['refresh']();const _0x147af2=this['_getRootDataHTMLFragment'](_0x2a8f97,_0x25044d),_0x2989a2=_0x485538(_0x147af2['ownerDocument'],'div',{'dir':_0x23a28e,'class':'ck-content'},[_0x147af2]);return this['_collectAndApplyStyles'](_0x3b5bf7,_0x2989a2)['then'](()=>{const _0x3d974f=function(_0x22c4df){const _0x2fd22c=_0x22c4df['ownerDocument']['createDocumentFragment']();for(;_0x22c4df['firstChild'];)_0x2fd22c['appendChild'](_0x22c4df['firstChild']);return _0x2fd22c;}(_0x2989a2),_0x2dcb9a=_0x2989a2['getAttribute']('style');if(_0x2dcb9a)for(const _0xe774b1 of _0x3d974f['children']){const _0x4eb496=_0xe774b1['getAttribute']('style'),_0x18eff9=h(this['_stylesProcessor'],[_0x2dcb9a,_0x4eb496]);_0xe774b1['setAttribute']('style',x(_0x18eff9));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x3d974f);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x151179,_0x36b8c4){const {data:_0x1f7af6,model:_0x333733}=this['editor'],_0x1db043=_0x333733['document']['getRoot'](_0x151179),_0x5d8331=_0x1f7af6['toView'](_0x1db043,_0x36b8c4);return _0x1f7af6['htmlProcessor']['domConverter']['viewToDom'](_0x5d8331);}async['_collectAndApplyStyles'](_0x87849d,_0x1d94d8){const {stylesheets:_0x52ee6d,inlineCss:_0x2a2aeb,stripCssClasses:_0x4bc423}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x13cd83,rootCssVariables:_0x54cf98}=await m({'stylesheets':_0x52ee6d||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x2a2aeb}),_0x18e478=[];this['_processElementTree']({'transformations':_0x87849d,'parsedCssRules':_0x13cd83,'element':_0x1d94d8,'stripCssClasses':_0x4bc423,'parentCSSVariablesLookup':_0x54cf98['get']['bind'](_0x54cf98),'runAfterDocumentTransformation':_0x275c61=>{_0x18e478['unshift'](_0x275c61);}});for(const _0xf14149 of _0x18e478)_0xf14149();}['_processElementTree']({element:_0x1faeb8,parsedCssRules:_0x4763fa,parentCSSVariablesLookup:_0x40f174,runAfterDocumentTransformation:_0x1d611d,stripCssClasses:_0x508a0a,transformations:_0xdddec0}){const {stylesMap:_0x30d64e,localCSSVariables:_0xf60eaa}=function(_0x305df2){const _0x23cdc5=_0x305df2['element']['getAttribute']('style')||'',_0x12aadc=_0x305df2['parsedCssRules']['filter'](_0x214eb3=>_0x305df2['element']['matches'](_0x214eb3['flatSelector']))['map'](_0x2980c7=>_0x2980c7['stylesMap']),_0x17d7e7=h(_0x305df2['stylesProcessor'],[..._0x12aadc,_0x23cdc5]);return{'localCSSVariables':w(_0x305df2['fallbackCSSVariablesLookup'],_0x17d7e7),'stylesMap':_0x17d7e7};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x40f174,'parsedCssRules':_0x4763fa,'element':_0x1faeb8}),_0x3697b4=[];for(const _0x5a9c89 of _0xdddec0){const _0x39826d=_0x5a9c89(_0x1faeb8,_0x30d64e,{'runAfterDocumentTransformation':_0x1d611d,'runAfterChildrenTransformation':_0x3140b9=>{_0x3697b4['unshift'](_0x3140b9);}});_0x39826d&&_0x39826d instanceof HTMLElement&&(_0x1faeb8=_0x39826d);}_0x30d64e['size']?_0x1faeb8['setAttribute']('style',x(_0x30d64e)):_0x1faeb8['removeAttribute']('style');const _0x5543ca=_0x5337e9=>_0xf60eaa['has'](_0x5337e9)?_0xf60eaa['get'](_0x5337e9):_0x40f174(_0x5337e9);for(const _0x3e2de6 of _0x1faeb8['children'])_0x3e2de6 instanceof HTMLElement&&this['_processElementTree']({'element':_0x3e2de6,'parsedCssRules':_0x4763fa,'stripCssClasses':_0x508a0a,'transformations':_0xdddec0,'parentCSSVariablesLookup':_0x5543ca,'runAfterDocumentTransformation':_0x1d611d});_0x508a0a&&_0x1faeb8['removeAttribute']('class');for(const _0x2daeb8 of _0x3697b4)_0x2daeb8();}}function x(_0x4b8d2f){return _0x4b8d2f['getStylesEntries']()['map'](_0x32753a=>_0x32753a['join'](':'))['join'](';')+';';}class ExportInlineStylesEditing extends _0x19437c{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 ExportInlineStylesCommand(this['editor']));}['afterInit'](){!async function(_0x9aebae){const _0x5cdacf=_0x3bcc19([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]),_0x347703=0x6f40c3fb,_0x1c7696=0x6f474873^_0x347703,_0x55de4e=window[_0x3bcc19([0x44,0x61,0x74,0x65])][_0x3bcc19([0x6e,0x6f,0x77])](),_0x1604a3=_0x9aebae[_0x3bcc19([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x510f8d=new window[(_0x3bcc19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5acf33=>{_0x1604a3[_0x3bcc19([0x6f,0x6e,0x63,0x65])](_0x3bcc19([0x72,0x65,0x61,0x64,0x79]),_0x5acf33);}),_0x757e9a={[_0x3bcc19([0x6b,0x74,0x79])]:_0x3bcc19([0x45,0x43]),[_0x3bcc19([0x75,0x73,0x65])]:_0x3bcc19([0x73,0x69,0x67]),[_0x3bcc19([0x63,0x72,0x76])]:_0x3bcc19([0x50,0x2d,0x32,0x35,0x36]),[_0x3bcc19([0x78])]:_0x3bcc19([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]),[_0x3bcc19([0x79])]:_0x3bcc19([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]),[_0x3bcc19([0x61,0x6c,0x67])]:_0x3bcc19([0x45,0x53,0x32,0x35,0x36])},_0x5cae3b=_0x1604a3[_0x3bcc19([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3bcc19([0x67,0x65,0x74])](_0x3bcc19([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5852c6(){let _0x423a1f,_0x4f8689=null,_0x49c780=null;try{if(_0x5cae3b==_0x3bcc19([0x47,0x50,0x4c]))return _0x3bcc19([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x423a1f=_0x4c189f(),!_0x423a1f)return _0x3bcc19([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x423a1f[_0x3bcc19([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x49c780=_0x3ace8d(_0x423a1f[_0x3bcc19([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x423a1f[_0x3bcc19([0x6a,0x74,0x69])])),await _0x3c0e08()?_0x23decd()?_0x5724c9()?_0x3bcc19([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x14173b()?(_0x423a1f[_0x3bcc19([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bcc19([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f8689=_0x54bff3(_0x3bcc19([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x43f62c()):_0x3bcc19([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3bcc19([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3bcc19([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3bcc19([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5724c9(){const _0x1f7ba9=[_0x3bcc19([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3bcc19([0x74,0x72,0x69,0x61,0x6c])][_0x3bcc19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x423a1f[_0x3bcc19([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55de4e/0x3e8:0xe10*_0x1c7696;return _0x423a1f[_0x3bcc19([0x65,0x78,0x70])]<_0x1f7ba9;}function _0x23decd(){const _0x3757cf=_0x423a1f[_0x3bcc19([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3757cf&&(!!_0x3757cf[_0x3bcc19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bcc19([0x2a]))||!!_0x3757cf[_0x3bcc19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bcc19([0x45,0x49,0x53])));}function _0x14173b(){const _0x6ab150=_0x423a1f[_0x3bcc19([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6ab150||0x0==_0x6ab150[_0x3bcc19([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x48ef67}=new URL(window[_0x3bcc19([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6ab150[_0x3bcc19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48ef67))return!0x0;const _0x2dd67f=_0x48ef67[_0x3bcc19([0x73,0x70,0x6c,0x69,0x74])](_0x3bcc19([0x2e]));return _0x6ab150[_0x3bcc19([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2df9dc=>_0x2df9dc[_0x3bcc19([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bcc19([0x2a])))[_0x3bcc19([0x6d,0x61,0x70])](_0x297aaf=>_0x297aaf[_0x3bcc19([0x73,0x70,0x6c,0x69,0x74])](_0x3bcc19([0x2e])))[_0x3bcc19([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39ac3f=>_0x39ac3f[_0x3bcc19([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2dd67f[_0x3bcc19([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bcc19([0x6d,0x61,0x70])](_0x59f779=>Array(_0x2dd67f[_0x3bcc19([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x59f779[_0x3bcc19([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bcc19([0x66,0x69,0x6c,0x6c])](_0x59f779[0x0]===_0x3bcc19([0x2a])?_0x3bcc19([0x2a]):'')[_0x3bcc19([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x59f779))[_0x3bcc19([0x73,0x6f,0x6d,0x65])](_0x3f3929=>_0x2dd67f[_0x3bcc19([0x65,0x76,0x65,0x72,0x79])]((_0x52d61b,_0x35525f)=>_0x3f3929[_0x35525f]===_0x52d61b||_0x3f3929[_0x35525f]===_0x3bcc19([0x2a])));}function _0x43f62c(){return _0x4f8689&&_0x49c780?new window[(_0x3bcc19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d334c,_0x464483)=>{_0x4f8689[_0x3bcc19([0x74,0x68,0x65,0x6e])](_0x1d334c,_0x464483),_0x49c780[_0x3bcc19([0x74,0x68,0x65,0x6e])](_0x22b482=>{_0x22b482!=_0x3bcc19([0x56,0x61,0x6c,0x69,0x64])&&_0x1d334c(_0x22b482);},_0x464483);}):_0x4f8689||_0x49c780||_0x3bcc19([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ace8d(_0x29c3a2,_0x5582d0){return new window[(_0x3bcc19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4839ea=>{if(_0x17999b())return _0x4839ea(_0x3bcc19([0x56,0x61,0x6c,0x69,0x64]));_0x2672b5(),_0x1604a3[_0x3bcc19([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3bcc19([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3871b2=!0x1;const _0x26bb02=_0x333a48();function _0x35f848(_0x22fb47){return!!_0x22fb47&&(typeof _0x22fb47===_0x3bcc19([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22fb47===_0x3bcc19([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22fb47[_0x3bcc19([0x74,0x68,0x65,0x6e])]===_0x3bcc19([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22fb47[_0x3bcc19([0x63,0x61,0x74,0x63,0x68])]===_0x3bcc19([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27a3c7(_0x4db890){_0x3749b2(_0x4db890)[_0x3bcc19([0x74,0x68,0x65,0x6e])](_0x358463=>{if(!_0x358463||_0x358463[_0x3bcc19([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3bcc19([0x6f,0x6b]))return _0x3bcc19([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5cd608(_0x1b6ea5(_0x26bb02+_0x5582d0))!=_0x358463[_0x3bcc19([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3bcc19([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3bcc19([0x56,0x61,0x6c,0x69,0x64]);})[_0x3bcc19([0x74,0x68,0x65,0x6e])](_0x321513=>(_0x56db8d(),_0x321513),()=>{const _0x389115=_0x55484b();return null==_0x389115?(_0x56db8d(),_0x3bcc19([0x56,0x61,0x6c,0x69,0x64])):_0x3bcc19(_0x55de4e-_0x389115>(0x4b4c47fb^_0x347703)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3bcc19([0x74,0x68,0x65,0x6e])](_0x4839ea)[_0x3bcc19([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4839ea(_0x3bcc19([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23d4a5=0x6f762d7b^_0x347703;function _0x56db8d(){const _0x407538=_0x3bcc19([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cd608(_0x1b6ea5(_0x29c3a2)),_0x25ec1d=_0x15b0eb(_0x5cd608(window[_0x3bcc19([0x4d,0x61,0x74,0x68])][_0x3bcc19([0x63,0x65,0x69,0x6c])](_0x55de4e/_0x23d4a5)));window[_0x3bcc19([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bcc19([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x407538,_0x25ec1d);}function _0x55484b(){const _0x3eb8a7=_0x3bcc19([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cd608(_0x1b6ea5(_0x29c3a2)),_0x4608f6=window[_0x3bcc19([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bcc19([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3eb8a7);return _0x4608f6?window[_0x3bcc19([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15b0eb(_0x4608f6),0x10)*_0x23d4a5:null;}function _0x3749b2(_0xc27e53){return new window[(_0x3bcc19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x120b33,_0x4e1d57)=>{_0xc27e53[_0x3bcc19([0x74,0x68,0x65,0x6e])](_0x120b33,_0x4e1d57),window[_0x3bcc19([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e1d57,0x6f41173b^_0x347703);});}}_0x1604a3[_0x3bcc19([0x6f,0x6e])](_0x3bcc19([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x537262,_0x22d3d8)=>{if(_0x22d3d8[0x0]!=_0x29c3a2)return _0x4839ea(_0x3bcc19([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22d3d8[0x1]={..._0x22d3d8[0x1],[_0x3bcc19([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26bb02};},{[_0x3bcc19([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bcc19([0x68,0x69,0x67,0x68])}),_0x1604a3[_0x3bcc19([0x6f,0x6e])](_0x3bcc19([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40d53a=>{_0x35f848(_0x40d53a[_0x3bcc19([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3871b2=!0x0,_0x27a3c7(_0x40d53a[_0x3bcc19([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3bcc19([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bcc19([0x6c,0x6f,0x77])}),_0x510f8d[_0x3bcc19([0x74,0x68,0x65,0x6e])](()=>{_0x3871b2||_0x4839ea(_0x3bcc19([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x17999b(){return _0x1604a3[_0x3bcc19([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bcc19([0x76,0x69,0x65,0x77])][_0x3bcc19([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3bcc19([0x61,0x75,0x74,0x6f]);}function _0x2672b5(){_0x1604a3[_0x3bcc19([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bcc19([0x76,0x69,0x65,0x77])][_0x3bcc19([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bcc19([0x61,0x75,0x74,0x6f]);}}function _0x54bff3(_0x50405e){const _0x4b06bc=[new window[(_0x3bcc19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x267e1b=>setTimeout(_0x267e1b,0x6f49fd37^_0x347703)),_0x510f8d[_0x3bcc19([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3bcc19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d4081=>{let _0x2917d2=0x0;_0x1604a3[_0x3bcc19([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bcc19([0x6f,0x6e])](_0x3bcc19([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x289ec4,_0x465c27)=>{_0x465c27[0x0][_0x3bcc19([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2917d2++,_0x2917d2==(0x6f40c613^_0x347703)&&(_0x2d4081(),_0x289ec4[_0x3bcc19([0x6f,0x66,0x66])]());});}))];return window[_0x3bcc19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bcc19([0x72,0x61,0x63,0x65])](_0x4b06bc)[_0x3bcc19([0x74,0x68,0x65,0x6e])](()=>_0x50405e);}async function _0x2952e8(){await _0x510f8d;const _0x532bfb=_0x1604a3['commands'][_0x3bcc19([0x67,0x65,0x74])](_0x3bcc19([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x532bfb&&_0x532bfb[_0x3bcc19([0x6f,0x6e])](_0x3bcc19([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x125f12=>{_0x125f12['stop']();},{'priority':_0x3bcc19([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x1604a3[_0x3bcc19([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bcc19([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x47b2cf,_0x1604a3[_0x3bcc19([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bcc19([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x47b2cf,_0x1604a3[_0x3bcc19([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3bcc19([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x38b011(_0x4d8b1d){const _0x36ada0=_0x4f5019();_0x1604a3[_0x36ada0]=_0x3bcc19([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])+_0x4d8b1d,_0x4d8b1d!=_0x3bcc19([0x56,0x61,0x6c,0x69,0x64])&&_0x2952e8();}function _0x4f5019(){const _0x278ea7=window[_0x3bcc19([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3bcc19([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3bcc19([0x6e,0x6f,0x77])]())[_0x3bcc19([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3bcc19([0x2e]),'');let _0x33484d=_0x3bcc19([0x44]);for(let _0x34e860=0x0;_0x34e860<_0x278ea7[_0x3bcc19([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34e860+=0x2){let _0xecbdba=window[_0x3bcc19([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x278ea7[_0x3bcc19([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34e860,_0x34e860+0x2));_0xecbdba>=_0x5cdacf[_0x3bcc19([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xecbdba-=_0x5cdacf[_0x3bcc19([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x33484d+=_0x5cdacf[_0xecbdba];}return _0x33484d;}function _0x4c189f(){const _0x36c7f5=_0x5cae3b[_0x3bcc19([0x73,0x70,0x6c,0x69,0x74])](_0x3bcc19([0x2e]));if(0x3!=_0x36c7f5[_0x3bcc19([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37ad55(_0x36c7f5[0x1]);function _0x37ad55(_0x48be9e){const _0xbea457=_0x5438a5(_0x48be9e);return _0xbea457&&_0x51694c()?_0xbea457:null;function _0x51694c(){const _0x1db617=_0xbea457[_0x3bcc19([0x6a,0x74,0x69])],_0x1aa4eb=window[_0x3bcc19([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1db617[_0x3bcc19([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1db617[_0x3bcc19([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c6684={..._0xbea457,[_0x3bcc19([0x6a,0x74,0x69])]:_0x1db617[_0x3bcc19([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1db617[_0x3bcc19([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c6684[_0x3bcc19([0x76,0x63])],_0x1b6ea5(_0x5c6684)==_0x1aa4eb;}}}async function _0x3c0e08(){let _0x18d056=!0x0;try{const _0x52a3d7=_0x5cae3b[_0x3bcc19([0x73,0x70,0x6c,0x69,0x74])](_0x3bcc19([0x2e])),[_0x1863fa,_0x1fd623,_0x114079]=_0x52a3d7;return _0x3a2447(_0x1863fa),await _0x470849(_0x1863fa,_0x1fd623,_0x114079),_0x18d056;}catch{return!0x1;}function _0x3a2447(_0x219174){const _0x277456=_0x5438a5(_0x219174);_0x277456&&_0x277456[_0x3bcc19([0x61,0x6c,0x67])]==_0x3bcc19([0x45,0x53,0x32,0x35,0x36])||(_0x18d056=!0x1);}async function _0x470849(_0x4d9ef7,_0x24b8f4,_0x1ec586){const _0x5141a9=window[_0x3bcc19([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3bcc19([0x66,0x72,0x6f,0x6d])](_0x26c83c(_0x1ec586),_0x26c151=>_0x26c151[_0x3bcc19([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39865e=new window[(_0x3bcc19([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3bcc19([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d9ef7+_0x3bcc19([0x2e])+_0x24b8f4),_0x1e2b14=window[_0x3bcc19([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3bcc19([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e2b14)return;const _0x4b630e=await _0x1e2b14[_0x3bcc19([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3bcc19([0x6a,0x77,0x6b]),_0x757e9a,{[_0x3bcc19([0x6e,0x61,0x6d,0x65])]:_0x3bcc19([0x45,0x43,0x44,0x53,0x41]),[_0x3bcc19([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3bcc19([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3bcc19([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e2b14[_0x3bcc19([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3bcc19([0x6e,0x61,0x6d,0x65])]:_0x3bcc19([0x45,0x43,0x44,0x53,0x41]),[_0x3bcc19([0x68,0x61,0x73,0x68])]:{[_0x3bcc19([0x6e,0x61,0x6d,0x65])]:_0x3bcc19([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b630e,_0x5141a9,_0x39865e)||(_0x18d056=!0x1);}}function _0x5438a5(_0x117b60){return _0x117b60[_0x3bcc19([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3bcc19([0x65,0x79]))?JSON[_0x3bcc19([0x70,0x61,0x72,0x73,0x65])](_0x26c83c(_0x117b60)):null;}function _0x26c83c(_0x3e8f33){return window[_0x3bcc19([0x61,0x74,0x6f,0x62])](_0x3e8f33[_0x3bcc19([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3bcc19([0x2b]))[_0x3bcc19([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3bcc19([0x2f])));}function _0x1b6ea5(_0x1ef28e){let _0x2d17e6=0x1505;function _0x2583e2(_0xafc728){for(let _0x2dd50e=0x0;_0x2dd50e<_0xafc728[_0x3bcc19([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2dd50e++){const _0x2b6bba=_0xafc728[_0x3bcc19([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2dd50e);_0x2d17e6=(_0x2d17e6<<0x5)+_0x2d17e6+_0x2b6bba,_0x2d17e6&=_0x2d17e6;}}function _0x4773a1(_0x178a86){Array[_0x3bcc19([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x178a86)?_0x178a86[_0x3bcc19([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4773a1):_0x178a86&&typeof _0x178a86==_0x3bcc19([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3bcc19([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x178a86)[_0x3bcc19([0x73,0x6f,0x72,0x74])]()[_0x3bcc19([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a9f36,_0x2238a2])=>{_0x2583e2(_0x4a9f36),_0x4773a1(_0x2238a2);}):_0x2583e2(window[_0x3bcc19([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x178a86));}return _0x4773a1(_0x1ef28e),_0x2d17e6>>>0x0;}function _0x5cd608(_0x229ee1){return _0x229ee1[_0x3bcc19([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3bcc19([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3bcc19([0x30]));}function _0x15b0eb(_0x54c37d){return _0x54c37d[_0x3bcc19([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3bcc19([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3bcc19([0x6a,0x6f,0x69,0x6e])]('');}function _0x47b2cf(){}function _0x3bcc19(_0x1ca808){return _0x1ca808['map'](_0x41364a=>String['fromCharCode'](_0x41364a))['join']('');}_0x38b011(await _0x5852c6());}(this);}}class ExportInlineStyles extends _0x19437c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ExportInlineStylesEditing];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ee262=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d64a3;for(const _0x14ccd0 in _0x3ee262){const _0x14f167=_0x14ccd0,_0x4a5020=_0x3ee262[_0x14f167];if('exportInlineStylesLicenseKeyValid'==_0x4a5020||'exportInlineStylesLicenseKeyInvalid'==_0x4a5020||'exportInlineStylesLicenseKeyExpired'==_0x4a5020||'exportInlineStylesLicenseKeyDomainLimit'==_0x4a5020||'exportInlineStylesLicenseKeyNotAllowed'==_0x4a5020||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x4a5020||'exportInlineStylesLicenseKeyUsageLimit'==_0x4a5020){delete _0x3ee262[_0x14f167],_0x5d64a3=_0x4a5020,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x5d64a3&&_0x3ee262['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x5d64a3&&_0x3ee262['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x5d64a3&&_0x3ee262['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x5d64a3&&_0x3ee262['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x5d64a3&&_0x3ee262['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x5d64a3&&_0x3ee262['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}export{ExportInlineStyles,ExportInlineStylesCommand,ExportInlineStylesEditing,p as dropImportantStyleSuffix};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-export-inline-styles",
|
|
3
|
-
"version": "48.2.0-alpha.
|
|
3
|
+
"version": "48.2.0-alpha.3",
|
|
4
4
|
"description": "The export with inline styles feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"./package.json": "./package.json"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@ckeditor/ckeditor5-core": "48.2.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.
|
|
37
|
+
"@ckeditor/ckeditor5-core": "48.2.0-alpha.3",
|
|
38
|
+
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.3",
|
|
39
|
+
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.3",
|
|
40
40
|
"specificity": "0.4.1"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|