@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251220.0 → 0.0.0-nightly-20251221.0
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/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x4d31a5,Command as _0x385f6a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x49540e,IconGooglePhotos as _0x4ac66d,IconGoogleDrive as _0x13ff00,IconFacebook as _0x3a90da,IconDropbox as _0x29a3c3,IconUploadcareLink as _0x65d8b7,IconUploadcareImageUpload as _0x43f123,IconError as _0x1a810a,IconUploadcareImageEdit as _0x442020}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3eb3f8,MenuBarMenuListItemButtonView as _0x2f7672,View as _0x492c26,FocusCycler as _0x490fd5,Dialog as _0x4a947d,DialogViewPosition as _0x44e96c,SpinnerView as _0x1b5296,IconView as _0x53e33a,Notification as _0x43f64a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2822e4,DomEmitterMixin as _0x40cff2,global as _0x4dfc76,getAncestors as _0x50538c,ObservableMixin as _0x33644f,uid as _0x29f2b9,createElement as _0x788e32}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x263911}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5c78bb,info as _0x78ac85}from'@uploadcare/upload-client';import*as _0x265dec from'@uploadcare/file-uploader';var i=function(_0x4810a4){return _0x4810a4['Local']='local',_0x4810a4['URL']='url',_0x4810a4['Dropbox']='dropbox',_0x4810a4['GDrive']='gdrive',_0x4810a4['Facebook']='facebook',_0x4810a4['GPhotos']='gphotos',_0x4810a4['OneDrive']='onedrive',_0x4810a4;}({});function _(_0x1daf7b,_0x1797d7,_0xabfe88){const t=_0x1daf7b['t'],_0xeec7de=_0x1daf7b['t'];switch(_0x1797d7){case i['Local']:return{'text':_0xeec7de('Insert'===_0xabfe88?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xeec7de('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xabfe88?_0xeec7de('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xeec7de('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xabfe88?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xabfe88?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xabfe88?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xabfe88?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xabfe88?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1797d7;}}class e extends _0x4d31a5{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x585588=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb20aed;for(const _0x1949e3 in _0x585588){const _0x95205c=_0x1949e3,_0x395d75=_0x585588[_0x95205c];if('uploadcareLicenseKeyValid'==_0x395d75||'uploadcareLicenseKeyInvalid'==_0x395d75||'uploadcareLicenseKeyExpired'==_0x395d75||'uploadcareLicenseKeyDomainLimit'==_0x395d75||'uploadcareLicenseKeyNotAllowed'==_0x395d75||'uploadcareLicenseKeyEvaluationLimit'==_0x395d75||'uploadcareLicenseKeyTrialLimit'==_0x395d75||'uploadcareLicenseKeyUsageLimit'==_0x395d75){delete _0x585588[_0x95205c],_0xb20aed=_0x395d75,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xb20aed&&_0x585588['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xb20aed&&_0x585588['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xb20aed&&_0x585588['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xb20aed&&_0x585588['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xb20aed&&_0x585588['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xb20aed&&_0x585588['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xb20aed&&_0x585588['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3de42b}=this,_0x36bb40=_0x3de42b['commands']['get']('uploadcare');if(!_0x36bb40)return;const _0x21776d=this['_normalizeConfigSourceList'](_0x3de42b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x49c3f4,_0x1e807a)=>{const _0x456b31=this['_getIntegrationKey'](_0x1e807a['type']);return _0x49c3f4[_0x456b31]||(_0x49c3f4[_0x456b31]=[]),_0x49c3f4[_0x456b31]['push'](_0x1e807a),_0x49c3f4;},{});_0x3de42b['plugins']['has']('ImageInsertUI')&&_0x3de42b['commands']['get']('uploadcare')&&Object['entries'](_0x21776d)['forEach'](([_0x30702e,_0x19f9b8])=>{_0x3de42b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x30702e,'observable':()=>_0x36bb40,'buttonViewCreator':()=>this['_createToolbarButton'](_0x19f9b8),'formViewCreator':()=>this['_createDropdownButtons'](_0x19f9b8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x19f9b8),'override':'assetManager'!==_0x30702e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x298903){const {locale:_0x5031a8}=this['editor'];return _0x298903['map'](_0x49abab=>{const _0x5483a9=_(_0x5031a8,_0x49abab,'Insert');switch(_0x49abab){case i['Local']:return{'icon':_0x43f123,'type':i['Local'],..._0x5483a9};case i['URL']:return{'icon':_0x65d8b7,'type':i['URL'],..._0x5483a9};case i['Dropbox']:return{'icon':_0x29a3c3,'type':i['Dropbox'],..._0x5483a9};case i['Facebook']:return{'icon':_0x3a90da,'type':i['Facebook'],..._0x5483a9};case i['GDrive']:return{'icon':_0x13ff00,'type':i['GDrive'],..._0x5483a9};case i['GPhotos']:return{'icon':_0x4ac66d,'type':i['GPhotos'],..._0x5483a9};case i['OneDrive']:return{'icon':_0x49540e,'type':i['OneDrive'],..._0x5483a9};}});}['_getIntegrationKey'](_0x154c2b){switch(_0x154c2b){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5c7f3b,_0x2fcdf8){const _0x2a84eb=this['editor'],_0xd6db7a=new _0x5c7f3b(_0x2a84eb['locale']),_0x4e7191=_0x2a84eb['commands']['get']('uploadcare');return _0xd6db7a['bind']('isEnabled')['to'](_0x4e7191),_0xd6db7a['on']('execute',()=>{_0x4e7191['execute'](_0x2fcdf8);}),_0xd6db7a;}['_createToolbarButton'](_0x402da5){const {locale:_0x4e0ea4}=this['editor'],_0x350e35=this['editor']['plugins']['get']('ImageInsertUI'),_0x4f6f2d=_0x402da5[0x0],_0x4305e5=this['_createButton'](_0x3eb3f8,_0x4f6f2d['type']);return _0x4305e5['icon']=_0x4f6f2d['icon'],_0x4305e5['bind']('label')['to'](_0x350e35,'isImageSelected',_0x16a321=>_(_0x4e0ea4,_0x4f6f2d['type'],_0x16a321?'Replace':'Insert')['text']),_0x4305e5['tooltip']=!0x0,_0x4305e5;}['_createDropdownButtons'](_0x5902b8){const {locale:_0x291023}=this['editor'],_0x36b164=this['editor']['plugins']['get']('ImageInsertUI');return _0x5902b8['map'](_0x1310a4=>{const _0x20115e=this['_createButton'](_0x3eb3f8,_0x1310a4['type']);return _0x20115e['withText']=!0x0,_0x20115e['icon']=_0x1310a4['icon'],_0x20115e['bind']('label')['to'](_0x36b164,'isImageSelected',_0x2835d9=>_(_0x291023,_0x1310a4['type'],_0x2835d9?'Replace':'Insert')['text']),_0x20115e;});}['_createMenuBarButtons'](_0x1325ef){return _0x1325ef['map'](_0x541ed5=>{const _0x329cae=this['_createButton'](_0x2f7672,_0x541ed5['type']);return _0x329cae['icon']=_0x541ed5['icon'],_0x329cae['label']=_0x541ed5['shortText'],_0x329cae;});}}class F extends _0x492c26{['focusTracker'];['focusCycler'];constructor(_0x221e41){super(_0x221e41),this['focusTracker']=new _0x2822e4(),this['focusCycler']=new _0x490fd5({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x52106c,_0x32a5c3){super(_0x52106c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x32a5c3}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3498b5,_0x4b1240){const _0x217441=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3c5916=>_0x3c5916<=_0x4b1240)['map'](_0x40bde9=>_0x3498b5['replace'](/\/$/,'')+'/-/resize/'+_0x40bde9+'x/\x20'+_0x40bde9+'w');return{'imageFallbackUrl':_0x3498b5,'imageSources':[{'srcset':_0x217441['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4b1240+'px)\x20100vw,\x20'+_0x4b1240+'px','type':'image/webp'}]};}function S(_0x494a1f,_0x2c89be,_0x53d949){const _0xd7d3c8=_0x494a1f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xd7d3c8?parseInt(_0xd7d3c8[0x1],0xa):_0x2c89be,'height':_0xd7d3c8?parseInt(_0xd7d3c8[0x2],0xa):_0x53d949};}function p(_0x2aff31,_0x10912f){const _0xa493f9=new(_0x40cff2())(),_0x2aa03a=_0x2aff31['plugins']['get']('ImageUtils'),_0x425f96=_0x2aff31['editing']['mapper']['toViewElement'](_0x10912f),_0x561450=_0x2aa03a['findViewImgElement'](_0x425f96),_0x19e620=_0x2aff31['editing']['view']['domConverter']['viewToDom'](_0x561450),_0x8aedc6=_0x10912f['getAttribute']('width'),_0x3db24e=_0x10912f['getAttribute']('height'),_0x422fa2='image-processing';_0x2aff31['editing']['view']['change'](_0x2ee787=>{_0x2ee787['addClass'](_0x422fa2,_0x425f96),_0x2ee787['setStyle']('aspect-ratio',_0x8aedc6+'/'+_0x3db24e,_0x561450);}),_0xa493f9['listenTo'](_0x19e620,'load',()=>{_0xa493f9['stopListening'](_0x19e620,'load'),_0x2aff31['editing']['view']['change'](_0x2f420f=>{_0x2f420f['removeClass'](_0x422fa2,_0x425f96),_0x2f420f['removeStyle']('aspect-ratio',_0x561450);});});}function G(_0x2e48e7){if(Array['isArray'](_0x2e48e7)){const _0x2f064a=_0x2e48e7['map'](G);return _0x197a24=>_0x2f064a['some'](_0x381d3d=>_0x381d3d(_0x197a24));}if('origin'==_0x2e48e7){const _0x2c9ad7=_0x4dfc76['window']['location']['origin'];return _0x137f63=>new URL(_0x137f63,_0x4dfc76['document']['baseURI'])['origin']==_0x2c9ad7;}return'function'==typeof _0x2e48e7?_0x2e48e7:_0x2e48e7 instanceof RegExp?_0x2f5709=>!(!_0x2f5709['match'](_0x2e48e7)&&!_0x2f5709['replace'](/^https?:\/\//,'')['match'](_0x2e48e7)):()=>!0x1;}function A(_0x2cc8fc,_0x41af77){return _0x50538c(_0x2cc8fc['target'])['includes'](_0x41af77);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x33644f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x20489d,_0x213702,_0x5446b1){super(),this['_editor']=_0x20489d,this['_editing']=_0x213702,this['_dialog']=_0x20489d['plugins']['get'](_0x4a947d),this['_api']=_0x213702['ctxElement']['getAPI'](),this['_type']=_0x5446b1,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x49be08,model:_0x1aaa03}=this['_editor'],_0x5e4bd2=_0x1aaa03['document']['selection']['getSelectedElement'](),_0x4b5c36=_0x5e4bd2&&(_0x5e4bd2['is']('element','imageBlock')||_0x5e4bd2['is']('element','imageInline'));this['_formView']=new x(_0x49be08,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x43f123,'title':_(_0x49be08,this['_type'],_0x4b5c36?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x44e96c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xa460ea=>!A(_0xa460ea,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xd14398}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x220bed=>{const _0x1cb3af=_0xd14398['length'];for(const _0x2c1cd0 of _0xd14398){const _0x514200=_0x2c1cd0===_0xd14398[_0x1cb3af-0x1],{cdnUrl:_0x4f894b,fileInfo:_0x12f5c4}=_0x2c1cd0;if(!_0x4f894b||!_0x12f5c4)continue;const {width:_0x4651cc,height:_0x1c0f6f}=_0x12f5c4['imageInfo'],_0x4759ee=S(_0x4f894b,_0x4651cc,_0x1c0f6f),_0x5dd3cc=C(_0x4f894b,_0x4759ee['width']),_0x8b6f7d={'id':_0x12f5c4['uuid'],'type':'image','attributes':{'imageDimension':_0x4759ee,..._0x5dd3cc}};this['_insertAsset'](_0x8b6f7d,_0x514200,_0x220bed);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x538749=>{'idle'===_0x538749['detail']['status']&&!_0x538749['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x45431f,_0x39375e,_0x2c4e65){const _0x12e508=this['_editor']['model']['document']['selection'],_0xa23a8d=_0x12e508['getSelectedElement'](),_0x1007b8=!(!_0xa23a8d||!_0xa23a8d['is']('element','imageInline'));_0x2c4e65['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x45431f,_0x1007b8),_0x39375e||_0x2c4e65['setSelection'](_0x12e508['getLastPosition']());}['_insertImage'](_0x2cffad,_0x4ae274){const _0xf991a2=this['_editor'],{imageDimension:_0x494680,imageFallbackUrl:_0x281ad6,imageSources:_0x44031a}=_0x2cffad['attributes'];_0xf991a2['execute']('insertImage',{'imageType':_0x4ae274?'imageInline':null,'source':{'uploadcareImageId':_0x2cffad['id'],'src':_0x281ad6,'sources':_0x44031a,..._0x494680}});}}class w extends _0x385f6a{['_editing'];['_controller']=null;static get['requires'](){return[_0x4a947d,o];}constructor(_0x2576e7){super(_0x2576e7),this['_editing']=_0x2576e7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x26c393){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x26c393);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x18a017,..._0x5618fb}){return _0x5c78bb(_0x18a017,_0x5618fb);}static['getInfo'](_0x1d4602,_0x663541){return _0x78ac85(_0x1d4602,_0x663541);}}class f extends _0x4d31a5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x263911,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x580ced=this['editor'];if(!!!_0x580ced['config']['get']('uploadcare'))return;_0x580ced['plugins']['get'](_0x263911)['createUploadAdapter']=_0x2ac0ba=>new k(_0x2ac0ba,_0x580ced),_0x580ced['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2d53d5,{imageElement:_0x23bb10,data:_0x2ce73a})=>{_0x580ced['model']['change'](_0x42c782=>{_0x42c782['setAttribute']('uploadcareImageId',_0x2ce73a['uploadcareImageId'],_0x23bb10);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x42c2df,_0x4eaebf){this['loader']=_0x42c2df,this['editor']=_0x4eaebf,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x292522=await this['loader']['file'];return j['upload']({'file':_0x292522,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x27a206=>{_0x27a206&&_0x27a206['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x27a206['value']);}})['then'](async _0x460c8e=>{const {imageFallbackUrl:_0x75f3cf,imageSources:_0x364168}=C(_0x460c8e['cdnUrl'],_0x460c8e['imageInfo']['width']);return{'uploadcareImageId':_0x460c8e['uuid'],'default':_0x75f3cf,'sources':_0x364168};})['catch'](()=>{const _0x58ae99=t('Cannot\x20upload\x20file:')+('\x20'+_0x292522['name']+'.');return Promise['reject'](_0x58ae99);});}['abort'](){this['controller']['abort']();}}class o extends _0x4d31a5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4a947d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x112635){super(_0x112635),this['ucContextId']=_0x29f2b9();}['init'](){const _0xca43e1=this['editor'];_0xca43e1['commands']['add']('uploadcare',new w(_0xca43e1));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x296dc8=_0x4dfc76['document']['querySelector']('input[uploadcare-file-input]');_0x296dc8&&_0x296dc8['remove']();}),async function(_0x17780f){const _0x5cf925=_0x511fc6([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xf81936=0x535f8c3a,_0x1817bf=0x5358f04a^_0xf81936,_0x221b6f=window[_0x511fc6([0x44,0x61,0x74,0x65])][_0x511fc6([0x6e,0x6f,0x77])](),_0x229fec=_0x17780f[_0x511fc6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x262916=new window[(_0x511fc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bc8b4=>{_0x229fec[_0x511fc6([0x6f,0x6e,0x63,0x65])](_0x511fc6([0x72,0x65,0x61,0x64,0x79]),_0x2bc8b4);}),_0x11a646={[_0x511fc6([0x6b,0x74,0x79])]:_0x511fc6([0x45,0x43]),[_0x511fc6([0x75,0x73,0x65])]:_0x511fc6([0x73,0x69,0x67]),[_0x511fc6([0x63,0x72,0x76])]:_0x511fc6([0x50,0x2d,0x32,0x35,0x36]),[_0x511fc6([0x78])]:_0x511fc6([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]),[_0x511fc6([0x79])]:_0x511fc6([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]),[_0x511fc6([0x61,0x6c,0x67])]:_0x511fc6([0x45,0x53,0x32,0x35,0x36])},_0x37a3bb=_0x229fec[_0x511fc6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x511fc6([0x67,0x65,0x74])](_0x511fc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x57145a(){let _0x472c8d,_0x21edcb=null,_0x1ee812=null;try{if(_0x37a3bb==_0x511fc6([0x47,0x50,0x4c]))return _0x511fc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x472c8d=_0x58e9f5(),!_0x472c8d)return _0x511fc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x472c8d[_0x511fc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ee812=_0x937b2a(_0x472c8d[_0x511fc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x472c8d[_0x511fc6([0x6a,0x74,0x69])])),await _0x341314()?_0x58d6ae()?_0x409e9f()?_0x511fc6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x26b1dc()?(_0x472c8d[_0x511fc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x511fc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21edcb=_0x1aefbe(_0x511fc6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x472c8d[_0x511fc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x511fc6([0x74,0x72,0x69,0x61,0x6c])&&(_0x21edcb=_0x1aefbe(_0x511fc6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x336745()):_0x511fc6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x511fc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x511fc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x511fc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x409e9f(){const _0x46b99a=[_0x511fc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x511fc6([0x74,0x72,0x69,0x61,0x6c])][_0x511fc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x472c8d[_0x511fc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x221b6f/0x3e8:0xe10*_0x1817bf;return _0x472c8d[_0x511fc6([0x65,0x78,0x70])]<_0x46b99a;}function _0x58d6ae(){const _0x35eff9=_0x472c8d[_0x511fc6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x35eff9&&(!!_0x35eff9[_0x511fc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x511fc6([0x2a]))||!!_0x35eff9[_0x511fc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x511fc6([0x55,0x50,0x4c,0x43])));}function _0x26b1dc(){const _0x45d8db=_0x472c8d[_0x511fc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x45d8db||0x0==_0x45d8db[_0x511fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58fb56}=new URL(window[_0x511fc6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x45d8db[_0x511fc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58fb56))return!0x0;const _0x5404f7=_0x58fb56[_0x511fc6([0x73,0x70,0x6c,0x69,0x74])](_0x511fc6([0x2e]));return _0x45d8db[_0x511fc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b8e48=>_0x3b8e48[_0x511fc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x511fc6([0x2a])))[_0x511fc6([0x6d,0x61,0x70])](_0x2810e7=>_0x2810e7[_0x511fc6([0x73,0x70,0x6c,0x69,0x74])](_0x511fc6([0x2e])))[_0x511fc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x261e52=>_0x261e52[_0x511fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5404f7[_0x511fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x511fc6([0x6d,0x61,0x70])](_0x11362a=>Array(_0x5404f7[_0x511fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11362a[_0x511fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x511fc6([0x66,0x69,0x6c,0x6c])](_0x11362a[0x0]===_0x511fc6([0x2a])?_0x511fc6([0x2a]):'')[_0x511fc6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11362a))[_0x511fc6([0x73,0x6f,0x6d,0x65])](_0x3276c5=>_0x5404f7[_0x511fc6([0x65,0x76,0x65,0x72,0x79])]((_0x2237e5,_0x381a8d)=>_0x3276c5[_0x381a8d]===_0x2237e5||_0x3276c5[_0x381a8d]===_0x511fc6([0x2a])));}function _0x336745(){return _0x21edcb&&_0x1ee812?new window[(_0x511fc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2aa396,_0x67b377)=>{_0x21edcb[_0x511fc6([0x74,0x68,0x65,0x6e])](_0x2aa396,_0x67b377),_0x1ee812[_0x511fc6([0x74,0x68,0x65,0x6e])](_0x598e6d=>{_0x598e6d!=_0x511fc6([0x56,0x61,0x6c,0x69,0x64])&&_0x2aa396(_0x598e6d);},_0x67b377);}):_0x21edcb||_0x1ee812||_0x511fc6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x937b2a(_0x540b0f,_0x1796f3){return new window[(_0x511fc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fed5d=>{if(_0x3b6486())return _0x1fed5d(_0x511fc6([0x56,0x61,0x6c,0x69,0x64]));_0x35b905(),_0x229fec[_0x511fc6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x511fc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3381aa=!0x1;const _0x517a89=_0x29f2b9();function _0x4d5a7c(_0x3d1cf2){return!!_0x3d1cf2&&(typeof _0x3d1cf2===_0x511fc6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d1cf2===_0x511fc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d1cf2[_0x511fc6([0x74,0x68,0x65,0x6e])]===_0x511fc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d1cf2[_0x511fc6([0x63,0x61,0x74,0x63,0x68])]===_0x511fc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x258be7(_0x308ef3){_0x16c37a(_0x308ef3)[_0x511fc6([0x74,0x68,0x65,0x6e])](_0x35cf5b=>{if(!_0x35cf5b||_0x35cf5b[_0x511fc6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x511fc6([0x6f,0x6b]))return _0x511fc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4877f1(_0x49f6cb(_0x517a89+_0x1796f3))!=_0x35cf5b[_0x511fc6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x511fc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x511fc6([0x56,0x61,0x6c,0x69,0x64]);})[_0x511fc6([0x74,0x68,0x65,0x6e])](_0x34a34e=>(_0x14e357(),_0x34a34e),()=>{const _0x4f4a2e=_0xc7627d();return null==_0x4f4a2e?(_0x14e357(),_0x511fc6([0x56,0x61,0x6c,0x69,0x64])):_0x511fc6(_0x221b6f-_0x4f4a2e>(0x7753083a^_0xf81936)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x511fc6([0x74,0x68,0x65,0x6e])](_0x1fed5d)[_0x511fc6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1fed5d(_0x511fc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2af6d7=0x536962ba^_0xf81936;function _0x14e357(){const _0x18bb96=_0x511fc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4877f1(_0x49f6cb(_0x540b0f)),_0x14bc27=_0x1b129d(_0x4877f1(window[_0x511fc6([0x4d,0x61,0x74,0x68])][_0x511fc6([0x63,0x65,0x69,0x6c])](_0x221b6f/_0x2af6d7)));window[_0x511fc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x511fc6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18bb96,_0x14bc27);}function _0xc7627d(){const _0x698636=_0x511fc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4877f1(_0x49f6cb(_0x540b0f)),_0x5b2fe9=window[_0x511fc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x511fc6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x698636);return _0x5b2fe9?window[_0x511fc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b129d(_0x5b2fe9),0x10)*_0x2af6d7:null;}function _0x16c37a(_0x498603){return new window[(_0x511fc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4dfe8f,_0xe8651a)=>{_0x498603[_0x511fc6([0x74,0x68,0x65,0x6e])](_0x4dfe8f,_0xe8651a),window[_0x511fc6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe8651a,0x535e58fa^_0xf81936);});}}_0x229fec[_0x511fc6([0x6f,0x6e])](_0x511fc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1fbe97,_0x7ed3cd)=>{if(_0x7ed3cd[0x0]!=_0x540b0f)return _0x1fed5d(_0x511fc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x7ed3cd[0x1]={..._0x7ed3cd[0x1],[_0x511fc6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x517a89};},{[_0x511fc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x511fc6([0x68,0x69,0x67,0x68])}),_0x229fec[_0x511fc6([0x6f,0x6e])](_0x511fc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b42f2=>{_0x4d5a7c(_0x4b42f2[_0x511fc6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3381aa=!0x0,_0x258be7(_0x4b42f2[_0x511fc6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x511fc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x511fc6([0x6c,0x6f,0x77])}),_0x262916[_0x511fc6([0x74,0x68,0x65,0x6e])](()=>{_0x3381aa||_0x1fed5d(_0x511fc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b6486(){return _0x229fec[_0x511fc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x511fc6([0x76,0x69,0x65,0x77])][_0x511fc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x511fc6([0x61,0x75,0x74,0x6f]);}function _0x35b905(){_0x229fec[_0x511fc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x511fc6([0x76,0x69,0x65,0x77])][_0x511fc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x511fc6([0x61,0x75,0x74,0x6f]);}}function _0x1aefbe(_0x4cd3b9){const _0xe63fd2=[new window[(_0x511fc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2484ef=>setTimeout(_0x2484ef,0x5356b2f6^_0xf81936)),_0x262916[_0x511fc6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x511fc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x147e16=>{let _0x5254ae=0x0;_0x229fec[_0x511fc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x511fc6([0x6f,0x6e])](_0x511fc6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x161459,_0xd7e50)=>{_0xd7e50[0x0][_0x511fc6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5254ae++,_0x5254ae==(0x535f89d2^_0xf81936)&&(_0x147e16(),_0x161459[_0x511fc6([0x6f,0x66,0x66])]());});}))];return window[_0x511fc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x511fc6([0x72,0x61,0x63,0x65])](_0xe63fd2)[_0x511fc6([0x74,0x68,0x65,0x6e])](()=>_0x4cd3b9);}async function _0x4e4125(){await _0x262916,_0x229fec[_0x511fc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x511fc6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x466077,_0x229fec[_0x511fc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x511fc6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x466077,_0x229fec[_0x511fc6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x511fc6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e454b(_0x1c3634){const _0x5d876d=_0x56cdfd();_0x229fec[_0x5d876d]=_0x511fc6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c3634,_0x1c3634!=_0x511fc6([0x56,0x61,0x6c,0x69,0x64])&&_0x4e4125();}function _0x56cdfd(){const _0x28f256=window[_0x511fc6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x511fc6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x511fc6([0x6e,0x6f,0x77])]())[_0x511fc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x511fc6([0x2e]),'');let _0x422986=_0x511fc6([0x68]);for(let _0x936519=0x0;_0x936519<_0x28f256[_0x511fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x936519+=0x2){let _0x5dd784=window[_0x511fc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28f256[_0x511fc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x936519,_0x936519+0x2));_0x5dd784>=_0x5cf925[_0x511fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5dd784-=_0x5cf925[_0x511fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x422986+=_0x5cf925[_0x5dd784];}return _0x422986;}function _0x58e9f5(){const _0x5f0309=_0x37a3bb[_0x511fc6([0x73,0x70,0x6c,0x69,0x74])](_0x511fc6([0x2e]));if(0x3!=_0x5f0309[_0x511fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x579a21(_0x5f0309[0x1]);function _0x579a21(_0x1d825d){const _0x1dac6f=_0x1127b4(_0x1d825d);return _0x1dac6f&&_0x40f727()?_0x1dac6f:null;function _0x40f727(){const _0x19898a=_0x1dac6f[_0x511fc6([0x6a,0x74,0x69])],_0x535229=window[_0x511fc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19898a[_0x511fc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19898a[_0x511fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4100cf={..._0x1dac6f,[_0x511fc6([0x6a,0x74,0x69])]:_0x19898a[_0x511fc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19898a[_0x511fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4100cf[_0x511fc6([0x76,0x63])],_0x49f6cb(_0x4100cf)==_0x535229;}}}async function _0x341314(){let _0x40639d=!0x0;try{const _0x55f015=_0x37a3bb[_0x511fc6([0x73,0x70,0x6c,0x69,0x74])](_0x511fc6([0x2e])),[_0x5c761e,_0x25ac24,_0x2fb010]=_0x55f015;return _0x4d1f15(_0x5c761e),await _0x57dca4(_0x5c761e,_0x25ac24,_0x2fb010),_0x40639d;}catch{return!0x1;}function _0x4d1f15(_0x3a0a45){const _0x1cc9df=_0x1127b4(_0x3a0a45);_0x1cc9df&&_0x1cc9df[_0x511fc6([0x61,0x6c,0x67])]==_0x511fc6([0x45,0x53,0x32,0x35,0x36])||(_0x40639d=!0x1);}async function _0x57dca4(_0x2b29db,_0x474660,_0x38ccc1){const _0x25513f=window[_0x511fc6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x511fc6([0x66,0x72,0x6f,0x6d])](_0x598c9b(_0x38ccc1),_0x2921c9=>_0x2921c9[_0x511fc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ab9f9=new window[(_0x511fc6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x511fc6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b29db+_0x511fc6([0x2e])+_0x474660),_0x2f8fc2=window[_0x511fc6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x511fc6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f8fc2)return;const _0x12a136=await _0x2f8fc2[_0x511fc6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x511fc6([0x6a,0x77,0x6b]),_0x11a646,{[_0x511fc6([0x6e,0x61,0x6d,0x65])]:_0x511fc6([0x45,0x43,0x44,0x53,0x41]),[_0x511fc6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x511fc6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x511fc6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f8fc2[_0x511fc6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x511fc6([0x6e,0x61,0x6d,0x65])]:_0x511fc6([0x45,0x43,0x44,0x53,0x41]),[_0x511fc6([0x68,0x61,0x73,0x68])]:{[_0x511fc6([0x6e,0x61,0x6d,0x65])]:_0x511fc6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12a136,_0x25513f,_0x5ab9f9)||(_0x40639d=!0x1);}}function _0x1127b4(_0x1d818d){return _0x1d818d[_0x511fc6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x511fc6([0x65,0x79]))?JSON[_0x511fc6([0x70,0x61,0x72,0x73,0x65])](_0x598c9b(_0x1d818d)):null;}function _0x598c9b(_0x127b7d){return window[_0x511fc6([0x61,0x74,0x6f,0x62])](_0x127b7d[_0x511fc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x511fc6([0x2b]))[_0x511fc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x511fc6([0x2f])));}function _0x49f6cb(_0x4bc3d1){let _0x538303=0x1505;function _0xd0b14(_0x2358f6){for(let _0x32d737=0x0;_0x32d737<_0x2358f6[_0x511fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32d737++){const _0x4db871=_0x2358f6[_0x511fc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x32d737);_0x538303=(_0x538303<<0x5)+_0x538303+_0x4db871,_0x538303&=_0x538303;}}function _0x3066bf(_0x27b495){Array[_0x511fc6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27b495)?_0x27b495[_0x511fc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3066bf):_0x27b495&&typeof _0x27b495==_0x511fc6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x511fc6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27b495)[_0x511fc6([0x73,0x6f,0x72,0x74])]()[_0x511fc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56f733,_0xd8eea4])=>{_0xd0b14(_0x56f733),_0x3066bf(_0xd8eea4);}):_0xd0b14(window[_0x511fc6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27b495));}return _0x3066bf(_0x4bc3d1),_0x538303>>>0x0;}function _0x4877f1(_0x67fbcb){return _0x67fbcb[_0x511fc6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x511fc6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x511fc6([0x30]));}function _0x1b129d(_0x4f6b37){return _0x4f6b37[_0x511fc6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x511fc6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x511fc6([0x6a,0x6f,0x69,0x6e])]('');}function _0x466077(){}function _0x511fc6(_0x4a56a0){return _0x4a56a0['map'](_0x3bf83f=>String['fromCharCode'](_0x3bf83f))['join']('');}_0x3e454b(await _0x57145a());}(this);}['_initSchema'](){const _0x3541e4=this['editor']['model']['schema'];_0x3541e4['isRegistered']('imageBlock')&&_0x3541e4['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3541e4['isRegistered']('imageInline')&&_0x3541e4['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1cf62e=this['editor'];_0x1cf62e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1cf62e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x275324=>_0x275324['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1655fd=_0x1cf62e['commands']['get']('replaceImageSource');_0x1655fd&&this['listenTo'](_0x1655fd,'cleanupImage',(_0x3783a1,[_0x40d876,_0x5bc852])=>{_0x40d876['removeAttribute']('uploadcareImageId',_0x5bc852);});}['_initConfig'](){const _0x1bf2db=this['editor']['config']['get']('uploadcare.uploader')||{},_0x11b040=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x788e32(_0x4dfc76['document'],'uc-config',{..._0x1bf2db,'pubkey':_0x11b040,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x56ec44=>{if('closeMax'==_0x56ec44)return'#uc-icon-arrow-down';},_0x4dfc76['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x788e32(_0x4dfc76['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4dfc76['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x309b3d=this['editor']['commands']['get']('insertImage');_0x309b3d&&this['listenTo'](_0x309b3d,'execute',()=>{const _0x31358a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x31358a&&_0x31358a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x31358a);});});const _0x83b2e7=this['editor']['commands']['get']('uploadcareImageReplace');_0x83b2e7&&this['listenTo'](_0x83b2e7,'execute',()=>{const _0x59055b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59055b&&_0x59055b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x59055b);});});}}class tt extends _0x4d31a5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43a55f){super(_0x43a55f),_0x43a55f['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x265dec['defineComponents'](_0x265dec),this['_defineLocale']();}['_defineLocale'](){const _0x5c368c=this['editor']['config']['get']('uploadcare.locale'),_0x41152c=this['editor']['locale']['contentLanguage'];_0x5c368c&&_0x265dec['defineLocale'](_0x41152c,_0x5c368c);}}class ii extends _0x492c26{constructor(_0x2162d0){super(_0x2162d0);const t=_0x2162d0['t'],_0x544ae2=this['bindTemplate'],_0x592b1f=new _0x1b5296();_0x592b1f['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x592b1f,{'text':_0x544ae2['to']('imageUploadProgress',_0x1f451a=>t('Loading\x20image...')+'\x20('+(_0x1f451a||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x492c26{constructor(_0x2b31a9){super(_0x2b31a9);const t=_0x2b31a9['t'];this['set']('errorType',null);const _0x3944b4=new _0x3eb3f8(_0x2b31a9);_0x3944b4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3944b4['withText']=!0x0,_0x3944b4['class']='ck-button-action',_0x3944b4['on']('execute',()=>{this['fire']('retry');}),_0x3944b4['bind']('isVisible')['to'](this,'errorType',_0x55b358=>'NotFound'!==_0x55b358);const _0x211464=new _0x53e33a();_0x211464['content']=_0x1a810a,_0x211464['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3a5f71=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x211464,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3a5f71['to']('errorType',_0x5fd881=>t('NotFound'!==_0x5fd881?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3944b4]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x492c26{constructor(_0xcb9f9b,_0x3d9624){super(_0xcb9f9b);const _0x44200c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3d9624,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x44200c['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4a89f7,_0x56e68a,_0x53801b){super(_0x4a89f7),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4a89f7),this['_errorView']=new ti(_0x4a89f7),this['_editingView']=new ei(_0x4a89f7,_0x53801b),this['_focusableView']=new _0x492c26(_0x4a89f7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x56e68a),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x44cc26=>{this['_addUploadcareImageEditorListeners'](_0x44cc26);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0xb84cf3,_0x5babce){const _0x217bb3='uc-cloud-image-editor',_0x4694c8=_0xb84cf3['querySelector'](_0x217bb3);if(_0x4694c8)return _0x5babce(_0x4694c8);const _0x3d9fe0=new MutationObserver(_0x1eec33=>{const _0x200f6e=_0x1eec33['filter'](_0xb94f46=>_0xb94f46['target']===_0xb84cf3&&_0xb94f46['addedNodes']['length']>0x0&&_0xb94f46['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x217bb3);_0x200f6e['length']&&(_0x3d9fe0['disconnect'](),_0x5babce(_0x200f6e[0x0]['addedNodes'][0x0]));});_0x3d9fe0['observe'](_0xb84cf3,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x50e424){_0x50e424['addEventListener']('apply',_0x3073c0=>{this['fire']('apply',{'imageSrc':_0x3073c0['detail']['cdnUrl']});}),_0x50e424['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x33644f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5d8c8f,_0x100624,_0x267338){super(),this['_editor']=_0x5d8c8f,this['_dialog']=_0x100624,this['_imageElement']=_0x267338,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x11da1a=this['_imageElement'],_0x12a894=_0x11da1a['getAttribute']('uploadcareImageId'),_0x39b2c7=_0x11da1a['getAttribute']('src');if(_0x12a894)await this['_loadImageInfo'](_0x12a894,_0x39b2c7);else{if(this['_imageCache']['has'](_0x39b2c7)){const _0x3a3ebf=this['_imageCache']['get'](_0x39b2c7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a3ebf['url'],this['imageDimension']=_0x3a3ebf['dimension'],this['imageId']=_0x3a3ebf['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x55df16}=this['_editor'],t=_0x55df16['t'],_0x513745=new X(_0x55df16,this['imageStatus'],this['_attributes']);_0x513745['bind']('status')['to'](this,'imageStatus'),_0x513745['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x513745['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x513745['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x513745,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x442020,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x513745,'position':_0x44e96c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x513745['focus']();},'onHide':()=>{_0x513745['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x31a651=>!A(_0x31a651,_0x513745['element'])}});}['_loadImageInfo'](_0x3ae344,_0x45f3a6){return j['getInfo'](_0x3ae344,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2a440c=>{const {width:_0x4c9864,height:_0x348824}=_0x2a440c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x45f3a6,this['imageDimension']={'width':_0x4c9864,'height':_0x348824},this['imageId']=_0x3ae344;})['catch'](_0x23553e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x23553e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2e50ee,_0x357227){return this['_getImageAsFile'](_0x2e50ee)['then'](_0x382237=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x357227['signal'],'file':_0x382237,'onProgress':_0x1691e9=>{_0x1691e9&&_0x1691e9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1691e9['value']));}}))['then'](_0x46a4db=>{const {width:_0x4e0996,height:_0x194c4e}=_0x46a4db['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x46a4db['cdnUrl'],this['imageDimension']={'width':_0x4e0996,'height':_0x194c4e},this['imageId']=_0x46a4db['uuid'],this['imageUploadProgress']=null;const _0xba0a10=_0x2e50ee['getAttribute']('src');this['_imageCache']['set'](_0xba0a10,{'id':_0x46a4db['uuid'],'url':_0x46a4db['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x582e12=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x582e12['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3fc302,_0x2c6ce6){_0x3fc302['on']('apply',(_0x27baf5,_0x4bae8f)=>{this['_replaceImage'](_0x2c6ce6,_0x4bae8f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3fc302['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3fc302['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x393a3e,_0xf66640,_0x4c02b0){const _0xc07df4=this['_editor'],{width:_0x5aa2a4,height:_0x4696c6}=S(_0xf66640,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x45f8d2,imageSources:_0x32ab3e}=C(_0xf66640,_0x5aa2a4);_0xc07df4['model']['change'](_0xb788b9=>{if('$graveyard'===_0x393a3e['root']['rootName']){_0xc07df4['execute']('insertImage',{'imageType':_0x393a3e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x393a3e['getAttributes']()),'uploadcareImageId':_0x4c02b0,'src':_0x45f8d2,'sources':_0x32ab3e,'width':_0x5aa2a4,'height':_0x4696c6}});const _0x104f09=_0x393a3e['getChildren']();_0x393a3e=_0xc07df4['model']['document']['selection']['getSelectedElement']();for(const _0x5758ed of _0x104f09)_0xb788b9['append'](_0xb788b9['cloneElement'](_0x5758ed),_0x393a3e);}else _0xb788b9['setSelection'](_0x393a3e,'on'),_0xc07df4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x393a3e['getAttributes']()),'uploadcareImageId':_0x4c02b0,'src':_0x45f8d2,'sources':_0x32ab3e,'width':_0x5aa2a4,'height':_0x4696c6},_0x393a3e);_0xb788b9['setSelection'](_0x393a3e,'on');});}async['_getImageAsFile'](_0x321c59){const _0x46653e=_0x4dfc76['window'],_0x3d5aee=_0x4dfc76['document']['location']['href'],_0x5ae2b5=new _0x46653e['URL'](_0x321c59['getAttribute']('src'),_0x3d5aee);if('data:'===_0x5ae2b5['protocol']){const _0x5913fa=_0x5ae2b5['href']['split'](','),_0x4df1a7=_0x5913fa[0x0]['match'](/:(.*?);/)[0x1],_0x2cdc74=_0x4df1a7['split']('/')[0x1],_0x24048d=_0x46653e['atob'](_0x5913fa[_0x5913fa['length']-0x1]);let _0x188647=_0x24048d['length'];const _0x32a4e7=new _0x46653e['Uint8Array'](_0x188647);for(;_0x188647--;)_0x32a4e7[_0x188647]=_0x24048d['charCodeAt'](_0x188647);return new _0x46653e['File']([_0x32a4e7],'image.'+_0x2cdc74,{'type':_0x4df1a7});}const _0x380e70=_0x5ae2b5['href']['split']('/'),_0x539ef1=_0x380e70[_0x380e70['length']-0x1],_0x18fd94=_0x539ef1['split']('.')[0x1];return _0x46653e['fetch'](_0x5ae2b5['href'])['then'](_0x529503=>_0x529503['clone']()['blob']())['then'](_0x5d7c09=>new _0x46653e['File']([_0x5d7c09],_0x539ef1,{'type':'image/'+_0x18fd94}));}}class O extends _0x385f6a{['imageEditController'];static get['requires'](){return[_0x4a947d];}['_isEditable'];constructor(_0x3c83ed){super(_0x3c83ed),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x58a640){const _0x134ad0=G(_0x58a640);return _0x184c7f=>!(!_0x184c7f||!_0x184c7f['is']('element','imageBlock')&&!_0x184c7f['is']('element','imageInline'))&&(!!_0x184c7f['hasAttribute']('uploadcareImageId')||!!_0x184c7f['hasAttribute']('src')&&_0x134ad0(_0x184c7f['getAttribute']('src')));}(_0x3c83ed['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x16208f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x16208f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3ad57e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3ad57e&&(_0x3ad57e['is']('element','imageBlock')||_0x3ad57e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4a947d),_0x3ad57e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x385f6a{['refresh'](){const _0x3aada3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3aada3&&(_0x3aada3['is']('element','imageBlock')||_0x3aada3['is']('element','imageInline')));}['execute'](_0x1515ac){const _0x2a0288=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2a9aef=>{_0x2a9aef['setAttributes'](_0x1515ac,_0x2a0288),_0x2a9aef['removeAttribute']('srcset',_0x2a0288),_0x2a9aef['removeAttribute']('sizes',_0x2a0288);});}}class m extends _0x4d31a5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x43f64a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x578af7}=this;_0x578af7['commands']['add']('uploadcareImageEdit',new O(_0x578af7)),_0x578af7['commands']['add']('uploadcareImageReplace',new R(_0x578af7));}}class g extends _0x4d31a5{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x3302f5=this['editor'];_0x3302f5['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2017ec=>{const _0x44a16b=_0x3302f5['commands']['get']('uploadcareImageEdit'),_0x4c4ba1=new _0x3eb3f8(_0x2017ec),t=_0x2017ec['t'];return _0x4c4ba1['set']({'icon':_0x442020,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4c4ba1['bind']('isEnabled')['to'](_0x44a16b),_0x4c4ba1['bind']('isOn')['to'](_0x44a16b,'isActive'),this['listenTo'](_0x4c4ba1,'execute',()=>{_0x3302f5['execute']('uploadcareImageEdit'),_0x3302f5['editing']['view']['focus']();}),_0x4c4ba1;}),this['_initConfig']();}['_initConfig'](){const _0x1d3ea9=_0x788e32(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d3ea9),this['listenTo'](this['editor'],'destroy',()=>{_0x1d3ea9['remove']();});}}class et extends _0x4d31a5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x11d2ae,Command as _0x40e5b7}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2be414,IconGooglePhotos as _0x1f29d5,IconGoogleDrive as _0x17e3e1,IconFacebook as _0x596959,IconDropbox as _0x50e116,IconUploadcareLink as _0x4ad979,IconUploadcareImageUpload as _0x120610,IconError as _0x49d49f,IconUploadcareImageEdit as _0x4385e1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x37a343,MenuBarMenuListItemButtonView as _0x445963,View as _0x100c33,FocusCycler as _0x30eea8,Dialog as _0xc41957,DialogViewPosition as _0x38500b,SpinnerView as _0x362347,IconView as _0x33a36f,Notification as _0x5e2a9f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1f52dc,DomEmitterMixin as _0xb6ec90,global as _0x168412,getAncestors as _0x12741c,ObservableMixin as _0x5e1549,uid as _0x1bed44,createElement as _0x3d006a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5eca38}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x69c5b1,info as _0x4c7183}from'@uploadcare/upload-client';import*as _0x4963e2 from'@uploadcare/file-uploader';var i=function(_0x340f55){return _0x340f55['Local']='local',_0x340f55['URL']='url',_0x340f55['Dropbox']='dropbox',_0x340f55['GDrive']='gdrive',_0x340f55['Facebook']='facebook',_0x340f55['GPhotos']='gphotos',_0x340f55['OneDrive']='onedrive',_0x340f55;}({});function _(_0x2efe52,_0x4f183f,_0x598c8f){const t=_0x2efe52['t'],_0x73531=_0x2efe52['t'];switch(_0x4f183f){case i['Local']:return{'text':_0x73531('Insert'===_0x598c8f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x73531('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x598c8f?_0x73531('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x73531('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x598c8f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x598c8f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x598c8f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x598c8f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x598c8f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4f183f;}}class e extends _0x11d2ae{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b055f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x29128a;for(const _0x2899db in _0x1b055f){const _0x41fd84=_0x2899db,_0x453417=_0x1b055f[_0x41fd84];if('uploadcareLicenseKeyValid'==_0x453417||'uploadcareLicenseKeyInvalid'==_0x453417||'uploadcareLicenseKeyExpired'==_0x453417||'uploadcareLicenseKeyDomainLimit'==_0x453417||'uploadcareLicenseKeyNotAllowed'==_0x453417||'uploadcareLicenseKeyEvaluationLimit'==_0x453417||'uploadcareLicenseKeyTrialLimit'==_0x453417||'uploadcareLicenseKeyUsageLimit'==_0x453417){delete _0x1b055f[_0x41fd84],_0x29128a=_0x453417,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x29128a&&_0x1b055f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x29128a&&_0x1b055f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x29128a&&_0x1b055f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x29128a&&_0x1b055f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x29128a&&_0x1b055f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x29128a&&_0x1b055f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x29128a&&_0x1b055f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5a6c31}=this,_0x55629e=_0x5a6c31['commands']['get']('uploadcare');if(!_0x55629e)return;const _0x42926a=this['_normalizeConfigSourceList'](_0x5a6c31['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4df1dc,_0x3d0318)=>{const _0x4c5a55=this['_getIntegrationKey'](_0x3d0318['type']);return _0x4df1dc[_0x4c5a55]||(_0x4df1dc[_0x4c5a55]=[]),_0x4df1dc[_0x4c5a55]['push'](_0x3d0318),_0x4df1dc;},{});_0x5a6c31['plugins']['has']('ImageInsertUI')&&_0x5a6c31['commands']['get']('uploadcare')&&Object['entries'](_0x42926a)['forEach'](([_0x36a9c9,_0x3e53d9])=>{_0x5a6c31['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x36a9c9,'observable':()=>_0x55629e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3e53d9),'formViewCreator':()=>this['_createDropdownButtons'](_0x3e53d9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3e53d9),'override':'assetManager'!==_0x36a9c9});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2db9ae){const {locale:_0x4cd03f}=this['editor'];return _0x2db9ae['map'](_0xa7d5e5=>{const _0x450448=_(_0x4cd03f,_0xa7d5e5,'Insert');switch(_0xa7d5e5){case i['Local']:return{'icon':_0x120610,'type':i['Local'],..._0x450448};case i['URL']:return{'icon':_0x4ad979,'type':i['URL'],..._0x450448};case i['Dropbox']:return{'icon':_0x50e116,'type':i['Dropbox'],..._0x450448};case i['Facebook']:return{'icon':_0x596959,'type':i['Facebook'],..._0x450448};case i['GDrive']:return{'icon':_0x17e3e1,'type':i['GDrive'],..._0x450448};case i['GPhotos']:return{'icon':_0x1f29d5,'type':i['GPhotos'],..._0x450448};case i['OneDrive']:return{'icon':_0x2be414,'type':i['OneDrive'],..._0x450448};}});}['_getIntegrationKey'](_0x3a714b){switch(_0x3a714b){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5213ae,_0x3e0955){const _0x3f2e80=this['editor'],_0xd63462=new _0x5213ae(_0x3f2e80['locale']),_0x9e0b0a=_0x3f2e80['commands']['get']('uploadcare');return _0xd63462['bind']('isEnabled')['to'](_0x9e0b0a),_0xd63462['on']('execute',()=>{_0x9e0b0a['execute'](_0x3e0955);}),_0xd63462;}['_createToolbarButton'](_0x3c17af){const {locale:_0x861cff}=this['editor'],_0x3871f4=this['editor']['plugins']['get']('ImageInsertUI'),_0x3aebdc=_0x3c17af[0x0],_0x45dbb5=this['_createButton'](_0x37a343,_0x3aebdc['type']);return _0x45dbb5['icon']=_0x3aebdc['icon'],_0x45dbb5['bind']('label')['to'](_0x3871f4,'isImageSelected',_0x4b85de=>_(_0x861cff,_0x3aebdc['type'],_0x4b85de?'Replace':'Insert')['text']),_0x45dbb5['tooltip']=!0x0,_0x45dbb5;}['_createDropdownButtons'](_0x559ebd){const {locale:_0x243b46}=this['editor'],_0xe82e8d=this['editor']['plugins']['get']('ImageInsertUI');return _0x559ebd['map'](_0x5d6f89=>{const _0x3f46d9=this['_createButton'](_0x37a343,_0x5d6f89['type']);return _0x3f46d9['withText']=!0x0,_0x3f46d9['icon']=_0x5d6f89['icon'],_0x3f46d9['bind']('label')['to'](_0xe82e8d,'isImageSelected',_0x113b5b=>_(_0x243b46,_0x5d6f89['type'],_0x113b5b?'Replace':'Insert')['text']),_0x3f46d9;});}['_createMenuBarButtons'](_0x183640){return _0x183640['map'](_0x6a6df0=>{const _0x560d85=this['_createButton'](_0x445963,_0x6a6df0['type']);return _0x560d85['icon']=_0x6a6df0['icon'],_0x560d85['label']=_0x6a6df0['shortText'],_0x560d85;});}}class F extends _0x100c33{['focusTracker'];['focusCycler'];constructor(_0x3cfb67){super(_0x3cfb67),this['focusTracker']=new _0x1f52dc(),this['focusCycler']=new _0x30eea8({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x12eab9,_0x5c53ae){super(_0x12eab9),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x5c53ae}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xabdae3,_0x55b1a5){const _0x245dba=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x84d2ed=>_0x84d2ed<=_0x55b1a5)['map'](_0x379187=>_0xabdae3['replace'](/\/$/,'')+'/-/resize/'+_0x379187+'x/\x20'+_0x379187+'w');return{'imageFallbackUrl':_0xabdae3,'imageSources':[{'srcset':_0x245dba['join'](',\x20'),'sizes':'(max-width:\x20'+_0x55b1a5+'px)\x20100vw,\x20'+_0x55b1a5+'px','type':'image/webp'}]};}function S(_0x45739c,_0x15d359,_0x557843){const _0x19f41b=_0x45739c['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x19f41b?parseInt(_0x19f41b[0x1],0xa):_0x15d359,'height':_0x19f41b?parseInt(_0x19f41b[0x2],0xa):_0x557843};}function p(_0x1e4af2,_0x50a267){const _0x4e1d06=new(_0xb6ec90())(),_0x2799b0=_0x1e4af2['plugins']['get']('ImageUtils'),_0x5a3def=_0x1e4af2['editing']['mapper']['toViewElement'](_0x50a267),_0x44008f=_0x2799b0['findViewImgElement'](_0x5a3def),_0x5d41c3=_0x1e4af2['editing']['view']['domConverter']['viewToDom'](_0x44008f),_0x3be395=_0x50a267['getAttribute']('width'),_0x4cd183=_0x50a267['getAttribute']('height'),_0x2be1c1='image-processing';_0x1e4af2['editing']['view']['change'](_0x2ab057=>{_0x2ab057['addClass'](_0x2be1c1,_0x5a3def),_0x2ab057['setStyle']('aspect-ratio',_0x3be395+'/'+_0x4cd183,_0x44008f);}),_0x4e1d06['listenTo'](_0x5d41c3,'load',()=>{_0x4e1d06['stopListening'](_0x5d41c3,'load'),_0x1e4af2['editing']['view']['change'](_0x24468f=>{_0x24468f['removeClass'](_0x2be1c1,_0x5a3def),_0x24468f['removeStyle']('aspect-ratio',_0x44008f);});});}function G(_0x274200){if(Array['isArray'](_0x274200)){const _0x1e33ac=_0x274200['map'](G);return _0x271a76=>_0x1e33ac['some'](_0x21dfea=>_0x21dfea(_0x271a76));}if('origin'==_0x274200){const _0x466e7d=_0x168412['window']['location']['origin'];return _0x3cb8ae=>new URL(_0x3cb8ae,_0x168412['document']['baseURI'])['origin']==_0x466e7d;}return'function'==typeof _0x274200?_0x274200:_0x274200 instanceof RegExp?_0x55a614=>!(!_0x55a614['match'](_0x274200)&&!_0x55a614['replace'](/^https?:\/\//,'')['match'](_0x274200)):()=>!0x1;}function A(_0x1e3c58,_0x3cc359){return _0x12741c(_0x1e3c58['target'])['includes'](_0x3cc359);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5e1549(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x391198,_0x174d87,_0x486a6b){super(),this['_editor']=_0x391198,this['_editing']=_0x174d87,this['_dialog']=_0x391198['plugins']['get'](_0xc41957),this['_api']=_0x174d87['ctxElement']['getAPI'](),this['_type']=_0x486a6b,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x382691,model:_0x1773c2}=this['_editor'],_0x1605b2=_0x1773c2['document']['selection']['getSelectedElement'](),_0x5a1836=_0x1605b2&&(_0x1605b2['is']('element','imageBlock')||_0x1605b2['is']('element','imageInline'));this['_formView']=new x(_0x382691,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x120610,'title':_(_0x382691,this['_type'],_0x5a1836?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x38500b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x412262=>!A(_0x412262,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xd031ad}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3752fa=>{const _0x242882=_0xd031ad['length'];for(const _0x3b90fa of _0xd031ad){const _0x11809b=_0x3b90fa===_0xd031ad[_0x242882-0x1],{cdnUrl:_0x3d4d17,fileInfo:_0x4c0fda}=_0x3b90fa;if(!_0x3d4d17||!_0x4c0fda)continue;const {width:_0x571b27,height:_0x45c572}=_0x4c0fda['imageInfo'],_0x1d3396=S(_0x3d4d17,_0x571b27,_0x45c572),_0x3daed2=C(_0x3d4d17,_0x1d3396['width']),_0x1c6edb={'id':_0x4c0fda['uuid'],'type':'image','attributes':{'imageDimension':_0x1d3396,..._0x3daed2}};this['_insertAsset'](_0x1c6edb,_0x11809b,_0x3752fa);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x432d05=>{'idle'===_0x432d05['detail']['status']&&!_0x432d05['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xf0ccb9,_0x522b8b,_0x4bdde5){const _0x4f1a18=this['_editor']['model']['document']['selection'],_0x1b3ac3=_0x4f1a18['getSelectedElement'](),_0x4c991d=!(!_0x1b3ac3||!_0x1b3ac3['is']('element','imageInline'));_0x4bdde5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xf0ccb9,_0x4c991d),_0x522b8b||_0x4bdde5['setSelection'](_0x4f1a18['getLastPosition']());}['_insertImage'](_0x3a9a8b,_0x7b9b52){const _0x426694=this['_editor'],{imageDimension:_0x52f72b,imageFallbackUrl:_0x18e187,imageSources:_0x582192}=_0x3a9a8b['attributes'];_0x426694['execute']('insertImage',{'imageType':_0x7b9b52?'imageInline':null,'source':{'uploadcareImageId':_0x3a9a8b['id'],'src':_0x18e187,'sources':_0x582192,..._0x52f72b}});}}class w extends _0x40e5b7{['_editing'];['_controller']=null;static get['requires'](){return[_0xc41957,o];}constructor(_0x3dc2d5){super(_0x3dc2d5),this['_editing']=_0x3dc2d5['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x344d60){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x344d60);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xcb2c3c,..._0x1a6e9f}){return _0x69c5b1(_0xcb2c3c,_0x1a6e9f);}static['getInfo'](_0x23f37c,_0x30e415){return _0x4c7183(_0x23f37c,_0x30e415);}}class f extends _0x11d2ae{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5eca38,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x575d1c=this['editor'];if(!!!_0x575d1c['config']['get']('uploadcare'))return;_0x575d1c['plugins']['get'](_0x5eca38)['createUploadAdapter']=_0x557f43=>new k(_0x557f43,_0x575d1c),_0x575d1c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xa52ea,{imageElement:_0x474b58,data:_0x9c65f5})=>{_0x575d1c['model']['change'](_0x4070ae=>{_0x4070ae['setAttribute']('uploadcareImageId',_0x9c65f5['uploadcareImageId'],_0x474b58);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x46c015,_0xef6ba9){this['loader']=_0x46c015,this['editor']=_0xef6ba9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xdb4036=await this['loader']['file'];return j['upload']({'file':_0xdb4036,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x21ab28=>{_0x21ab28&&_0x21ab28['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x21ab28['value']);}})['then'](async _0x42ec65=>{const {imageFallbackUrl:_0x126b87,imageSources:_0x2acf6d}=C(_0x42ec65['cdnUrl'],_0x42ec65['imageInfo']['width']);return{'uploadcareImageId':_0x42ec65['uuid'],'default':_0x126b87,'sources':_0x2acf6d};})['catch'](()=>{const _0x13a35c=t('Cannot\x20upload\x20file:')+('\x20'+_0xdb4036['name']+'.');return Promise['reject'](_0x13a35c);});}['abort'](){this['controller']['abort']();}}class o extends _0x11d2ae{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xc41957];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1c4ac5){super(_0x1c4ac5),this['ucContextId']=_0x1bed44();}['init'](){const _0x734189=this['editor'];_0x734189['commands']['add']('uploadcare',new w(_0x734189));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0xd9e978=_0x168412['document']['querySelector']('input[uploadcare-file-input]');_0xd9e978&&_0xd9e978['remove']();}),async function(_0x29e0b0){const _0x5b8fee=_0x5e56ac([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3dc0b0=0x535f8c3a,_0x36fdbb=0x5358f0b2^_0x3dc0b0,_0x2db752=window[_0x5e56ac([0x44,0x61,0x74,0x65])][_0x5e56ac([0x6e,0x6f,0x77])](),_0x525523=_0x29e0b0[_0x5e56ac([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x595768=new window[(_0x5e56ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aee77=>{_0x525523[_0x5e56ac([0x6f,0x6e,0x63,0x65])](_0x5e56ac([0x72,0x65,0x61,0x64,0x79]),_0x1aee77);}),_0x46b5a5={[_0x5e56ac([0x6b,0x74,0x79])]:_0x5e56ac([0x45,0x43]),[_0x5e56ac([0x75,0x73,0x65])]:_0x5e56ac([0x73,0x69,0x67]),[_0x5e56ac([0x63,0x72,0x76])]:_0x5e56ac([0x50,0x2d,0x32,0x35,0x36]),[_0x5e56ac([0x78])]:_0x5e56ac([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]),[_0x5e56ac([0x79])]:_0x5e56ac([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]),[_0x5e56ac([0x61,0x6c,0x67])]:_0x5e56ac([0x45,0x53,0x32,0x35,0x36])},_0x3c972b=_0x525523[_0x5e56ac([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e56ac([0x67,0x65,0x74])](_0x5e56ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b605b(){let _0x521b32,_0xf0ab9f=null,_0x3a66c8=null;try{if(_0x3c972b==_0x5e56ac([0x47,0x50,0x4c]))return _0x5e56ac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x521b32=_0x4def49(),!_0x521b32)return _0x5e56ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x521b32[_0x5e56ac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a66c8=_0x2e6acf(_0x521b32[_0x5e56ac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x521b32[_0x5e56ac([0x6a,0x74,0x69])])),await _0x43f61d()?_0x3d22d8()?_0x11c248()?_0x5e56ac([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4189f1()?(_0x521b32[_0x5e56ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e56ac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf0ab9f=_0x4ce623(_0x5e56ac([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x521b32[_0x5e56ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e56ac([0x74,0x72,0x69,0x61,0x6c])&&(_0xf0ab9f=_0x4ce623(_0x5e56ac([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x212996()):_0x5e56ac([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e56ac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e56ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e56ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x11c248(){const _0x13976b=[_0x5e56ac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e56ac([0x74,0x72,0x69,0x61,0x6c])][_0x5e56ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x521b32[_0x5e56ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2db752/0x3e8:0xe10*_0x36fdbb;return _0x521b32[_0x5e56ac([0x65,0x78,0x70])]<_0x13976b;}function _0x3d22d8(){const _0x1568d8=_0x521b32[_0x5e56ac([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1568d8&&(!!_0x1568d8[_0x5e56ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e56ac([0x2a]))||!!_0x1568d8[_0x5e56ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e56ac([0x55,0x50,0x4c,0x43])));}function _0x4189f1(){const _0x5c6cef=_0x521b32[_0x5e56ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c6cef||0x0==_0x5c6cef[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53a9a2}=new URL(window[_0x5e56ac([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c6cef[_0x5e56ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53a9a2))return!0x0;const _0x563588=_0x53a9a2[_0x5e56ac([0x73,0x70,0x6c,0x69,0x74])](_0x5e56ac([0x2e]));return _0x5c6cef[_0x5e56ac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x263243=>_0x263243[_0x5e56ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e56ac([0x2a])))[_0x5e56ac([0x6d,0x61,0x70])](_0x1c2190=>_0x1c2190[_0x5e56ac([0x73,0x70,0x6c,0x69,0x74])](_0x5e56ac([0x2e])))[_0x5e56ac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x107519=>_0x107519[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x563588[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e56ac([0x6d,0x61,0x70])](_0x4bec41=>Array(_0x563588[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4bec41[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e56ac([0x66,0x69,0x6c,0x6c])](_0x4bec41[0x0]===_0x5e56ac([0x2a])?_0x5e56ac([0x2a]):'')[_0x5e56ac([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4bec41))[_0x5e56ac([0x73,0x6f,0x6d,0x65])](_0x373245=>_0x563588[_0x5e56ac([0x65,0x76,0x65,0x72,0x79])]((_0x4863d2,_0x44c02f)=>_0x373245[_0x44c02f]===_0x4863d2||_0x373245[_0x44c02f]===_0x5e56ac([0x2a])));}function _0x212996(){return _0xf0ab9f&&_0x3a66c8?new window[(_0x5e56ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43831c,_0x333af7)=>{_0xf0ab9f[_0x5e56ac([0x74,0x68,0x65,0x6e])](_0x43831c,_0x333af7),_0x3a66c8[_0x5e56ac([0x74,0x68,0x65,0x6e])](_0x59a447=>{_0x59a447!=_0x5e56ac([0x56,0x61,0x6c,0x69,0x64])&&_0x43831c(_0x59a447);},_0x333af7);}):_0xf0ab9f||_0x3a66c8||_0x5e56ac([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e6acf(_0x7a72b0,_0xa0f94f){return new window[(_0x5e56ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e42ff=>{if(_0x38c997())return _0x3e42ff(_0x5e56ac([0x56,0x61,0x6c,0x69,0x64]));_0x164076(),_0x525523[_0x5e56ac([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e56ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f8f10=!0x1;const _0x280333=_0x1bed44();function _0x5156cb(_0x22ade2){return!!_0x22ade2&&(typeof _0x22ade2===_0x5e56ac([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22ade2===_0x5e56ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22ade2[_0x5e56ac([0x74,0x68,0x65,0x6e])]===_0x5e56ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22ade2[_0x5e56ac([0x63,0x61,0x74,0x63,0x68])]===_0x5e56ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ab1f6(_0x376f5c){_0x4a94bb(_0x376f5c)[_0x5e56ac([0x74,0x68,0x65,0x6e])](_0xf9a767=>{if(!_0xf9a767||_0xf9a767[_0x5e56ac([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e56ac([0x6f,0x6b]))return _0x5e56ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5da1fa(_0x471439(_0x280333+_0xa0f94f))!=_0xf9a767[_0x5e56ac([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e56ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e56ac([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e56ac([0x74,0x68,0x65,0x6e])](_0x26ca1b=>(_0x530c51(),_0x26ca1b),()=>{const _0x5d8221=_0x3c66c6();return null==_0x5d8221?(_0x530c51(),_0x5e56ac([0x56,0x61,0x6c,0x69,0x64])):_0x5e56ac(_0x2db752-_0x5d8221>(0x7753083a^_0x3dc0b0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e56ac([0x74,0x68,0x65,0x6e])](_0x3e42ff)[_0x5e56ac([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e42ff(_0x5e56ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e4e6f=0x536962ba^_0x3dc0b0;function _0x530c51(){const _0xe8a251=_0x5e56ac([0x6c,0x6c,0x63,0x74,0x2d])+_0x5da1fa(_0x471439(_0x7a72b0)),_0x5a9f0f=_0x423db9(_0x5da1fa(window[_0x5e56ac([0x4d,0x61,0x74,0x68])][_0x5e56ac([0x63,0x65,0x69,0x6c])](_0x2db752/_0x1e4e6f)));window[_0x5e56ac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e56ac([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe8a251,_0x5a9f0f);}function _0x3c66c6(){const _0x36d390=_0x5e56ac([0x6c,0x6c,0x63,0x74,0x2d])+_0x5da1fa(_0x471439(_0x7a72b0)),_0x277212=window[_0x5e56ac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e56ac([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36d390);return _0x277212?window[_0x5e56ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x423db9(_0x277212),0x10)*_0x1e4e6f:null;}function _0x4a94bb(_0x3a4eb3){return new window[(_0x5e56ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6fb185,_0x4098c1)=>{_0x3a4eb3[_0x5e56ac([0x74,0x68,0x65,0x6e])](_0x6fb185,_0x4098c1),window[_0x5e56ac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4098c1,0x535e58fa^_0x3dc0b0);});}}_0x525523[_0x5e56ac([0x6f,0x6e])](_0x5e56ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6ff7c4,_0x3f8ac1)=>{if(_0x3f8ac1[0x0]!=_0x7a72b0)return _0x3e42ff(_0x5e56ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f8ac1[0x1]={..._0x3f8ac1[0x1],[_0x5e56ac([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x280333};},{[_0x5e56ac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e56ac([0x68,0x69,0x67,0x68])}),_0x525523[_0x5e56ac([0x6f,0x6e])](_0x5e56ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c9205=>{_0x5156cb(_0x5c9205[_0x5e56ac([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f8f10=!0x0,_0x3ab1f6(_0x5c9205[_0x5e56ac([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e56ac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e56ac([0x6c,0x6f,0x77])}),_0x595768[_0x5e56ac([0x74,0x68,0x65,0x6e])](()=>{_0x3f8f10||_0x3e42ff(_0x5e56ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x38c997(){return _0x525523[_0x5e56ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e56ac([0x76,0x69,0x65,0x77])][_0x5e56ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e56ac([0x61,0x75,0x74,0x6f]);}function _0x164076(){_0x525523[_0x5e56ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e56ac([0x76,0x69,0x65,0x77])][_0x5e56ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e56ac([0x61,0x75,0x74,0x6f]);}}function _0x4ce623(_0x4d86fb){const _0x13c713=[new window[(_0x5e56ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40f481=>setTimeout(_0x40f481,0x5356b2f6^_0x3dc0b0)),_0x595768[_0x5e56ac([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e56ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24bcbc=>{let _0x405295=0x0;_0x525523[_0x5e56ac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e56ac([0x6f,0x6e])](_0x5e56ac([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3a9ce6,_0x50507b)=>{_0x50507b[0x0][_0x5e56ac([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x405295++,_0x405295==(0x535f89d2^_0x3dc0b0)&&(_0x24bcbc(),_0x3a9ce6[_0x5e56ac([0x6f,0x66,0x66])]());});}))];return window[_0x5e56ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e56ac([0x72,0x61,0x63,0x65])](_0x13c713)[_0x5e56ac([0x74,0x68,0x65,0x6e])](()=>_0x4d86fb);}async function _0x7f1fd9(){await _0x595768,_0x525523[_0x5e56ac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e56ac([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b2381,_0x525523[_0x5e56ac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e56ac([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b2381,_0x525523[_0x5e56ac([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e56ac([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2976d8(_0x54000b){const _0x3234b5=_0x1ac523();_0x525523[_0x3234b5]=_0x5e56ac([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54000b,_0x54000b!=_0x5e56ac([0x56,0x61,0x6c,0x69,0x64])&&_0x7f1fd9();}function _0x1ac523(){const _0x494ef2=window[_0x5e56ac([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e56ac([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e56ac([0x6e,0x6f,0x77])]())[_0x5e56ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e56ac([0x2e]),'');let _0x1f9f2c=_0x5e56ac([0x68]);for(let _0x2e9aad=0x0;_0x2e9aad<_0x494ef2[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e9aad+=0x2){let _0x22ec6b=window[_0x5e56ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x494ef2[_0x5e56ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e9aad,_0x2e9aad+0x2));_0x22ec6b>=_0x5b8fee[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22ec6b-=_0x5b8fee[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f9f2c+=_0x5b8fee[_0x22ec6b];}return _0x1f9f2c;}function _0x4def49(){const _0x32488b=_0x3c972b[_0x5e56ac([0x73,0x70,0x6c,0x69,0x74])](_0x5e56ac([0x2e]));if(0x3!=_0x32488b[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b0dcd(_0x32488b[0x1]);function _0x1b0dcd(_0x56608d){const _0x3b640d=_0x2a328f(_0x56608d);return _0x3b640d&&_0x540c02()?_0x3b640d:null;function _0x540c02(){const _0x3e3001=_0x3b640d[_0x5e56ac([0x6a,0x74,0x69])],_0x4a87c7=window[_0x5e56ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e3001[_0x5e56ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e3001[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb74c66={..._0x3b640d,[_0x5e56ac([0x6a,0x74,0x69])]:_0x3e3001[_0x5e56ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e3001[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb74c66[_0x5e56ac([0x76,0x63])],_0x471439(_0xb74c66)==_0x4a87c7;}}}async function _0x43f61d(){let _0x264afa=!0x0;try{const _0x18ffe0=_0x3c972b[_0x5e56ac([0x73,0x70,0x6c,0x69,0x74])](_0x5e56ac([0x2e])),[_0x5aa9ff,_0xae2912,_0x5123d9]=_0x18ffe0;return _0x156bc9(_0x5aa9ff),await _0x419976(_0x5aa9ff,_0xae2912,_0x5123d9),_0x264afa;}catch{return!0x1;}function _0x156bc9(_0x22773b){const _0x69d51a=_0x2a328f(_0x22773b);_0x69d51a&&_0x69d51a[_0x5e56ac([0x61,0x6c,0x67])]==_0x5e56ac([0x45,0x53,0x32,0x35,0x36])||(_0x264afa=!0x1);}async function _0x419976(_0x21a17d,_0x535c35,_0x4820ce){const _0x166571=window[_0x5e56ac([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e56ac([0x66,0x72,0x6f,0x6d])](_0x2bb981(_0x4820ce),_0x8fb9d8=>_0x8fb9d8[_0x5e56ac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1df353=new window[(_0x5e56ac([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e56ac([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x21a17d+_0x5e56ac([0x2e])+_0x535c35),_0x34a5ec=window[_0x5e56ac([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e56ac([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34a5ec)return;const _0x48ec99=await _0x34a5ec[_0x5e56ac([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e56ac([0x6a,0x77,0x6b]),_0x46b5a5,{[_0x5e56ac([0x6e,0x61,0x6d,0x65])]:_0x5e56ac([0x45,0x43,0x44,0x53,0x41]),[_0x5e56ac([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e56ac([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e56ac([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34a5ec[_0x5e56ac([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e56ac([0x6e,0x61,0x6d,0x65])]:_0x5e56ac([0x45,0x43,0x44,0x53,0x41]),[_0x5e56ac([0x68,0x61,0x73,0x68])]:{[_0x5e56ac([0x6e,0x61,0x6d,0x65])]:_0x5e56ac([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48ec99,_0x166571,_0x1df353)||(_0x264afa=!0x1);}}function _0x2a328f(_0x229963){return _0x229963[_0x5e56ac([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e56ac([0x65,0x79]))?JSON[_0x5e56ac([0x70,0x61,0x72,0x73,0x65])](_0x2bb981(_0x229963)):null;}function _0x2bb981(_0x17bd60){return window[_0x5e56ac([0x61,0x74,0x6f,0x62])](_0x17bd60[_0x5e56ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e56ac([0x2b]))[_0x5e56ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e56ac([0x2f])));}function _0x471439(_0x5e98cf){let _0x22d7a5=0x1505;function _0x5c3434(_0x13d629){for(let _0x4bb104=0x0;_0x4bb104<_0x13d629[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bb104++){const _0x1df910=_0x13d629[_0x5e56ac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bb104);_0x22d7a5=(_0x22d7a5<<0x5)+_0x22d7a5+_0x1df910,_0x22d7a5&=_0x22d7a5;}}function _0x301fbd(_0xdd8fd0){Array[_0x5e56ac([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xdd8fd0)?_0xdd8fd0[_0x5e56ac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x301fbd):_0xdd8fd0&&typeof _0xdd8fd0==_0x5e56ac([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e56ac([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xdd8fd0)[_0x5e56ac([0x73,0x6f,0x72,0x74])]()[_0x5e56ac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4bd7f8,_0xa6bfac])=>{_0x5c3434(_0x4bd7f8),_0x301fbd(_0xa6bfac);}):_0x5c3434(window[_0x5e56ac([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xdd8fd0));}return _0x301fbd(_0x5e98cf),_0x22d7a5>>>0x0;}function _0x5da1fa(_0x5e3606){return _0x5e3606[_0x5e56ac([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e56ac([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e56ac([0x30]));}function _0x423db9(_0x4698df){return _0x4698df[_0x5e56ac([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e56ac([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e56ac([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b2381(){}function _0x5e56ac(_0x265c5e){return _0x265c5e['map'](_0x799823=>String['fromCharCode'](_0x799823))['join']('');}_0x2976d8(await _0x4b605b());}(this);}['_initSchema'](){const _0x232d2c=this['editor']['model']['schema'];_0x232d2c['isRegistered']('imageBlock')&&_0x232d2c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x232d2c['isRegistered']('imageInline')&&_0x232d2c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x174100=this['editor'];_0x174100['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x174100['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x382e34=>_0x382e34['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4f7346=_0x174100['commands']['get']('replaceImageSource');_0x4f7346&&this['listenTo'](_0x4f7346,'cleanupImage',(_0x22f95a,[_0x81f097,_0x414a2d])=>{_0x81f097['removeAttribute']('uploadcareImageId',_0x414a2d);});}['_initConfig'](){const _0x4d0e5e=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5cad7e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3d006a(_0x168412['document'],'uc-config',{..._0x4d0e5e,'pubkey':_0x5cad7e,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x161f7e=>{if('closeMax'==_0x161f7e)return'#uc-icon-arrow-down';},_0x168412['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3d006a(_0x168412['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x168412['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3bd1e2=this['editor']['commands']['get']('insertImage');_0x3bd1e2&&this['listenTo'](_0x3bd1e2,'execute',()=>{const _0x124fda=this['editor']['model']['document']['selection']['getSelectedElement']();_0x124fda&&_0x124fda['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x124fda);});});const _0x3c15ec=this['editor']['commands']['get']('uploadcareImageReplace');_0x3c15ec&&this['listenTo'](_0x3c15ec,'execute',()=>{const _0xd26eda=this['editor']['model']['document']['selection']['getSelectedElement']();_0xd26eda&&_0xd26eda['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xd26eda);});});}}class tt extends _0x11d2ae{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6f2298){super(_0x6f2298),_0x6f2298['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4963e2['defineComponents'](_0x4963e2),this['_defineLocale']();}['_defineLocale'](){const _0x314fc8=this['editor']['config']['get']('uploadcare.locale'),_0x4fe96e=this['editor']['locale']['contentLanguage'];_0x314fc8&&_0x4963e2['defineLocale'](_0x4fe96e,_0x314fc8);}}class ii extends _0x100c33{constructor(_0x4c081e){super(_0x4c081e);const t=_0x4c081e['t'],_0x1aeda3=this['bindTemplate'],_0x43a4fe=new _0x362347();_0x43a4fe['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x43a4fe,{'text':_0x1aeda3['to']('imageUploadProgress',_0x11a17e=>t('Loading\x20image...')+'\x20('+(_0x11a17e||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x100c33{constructor(_0x4fb068){super(_0x4fb068);const t=_0x4fb068['t'];this['set']('errorType',null);const _0x5ca6bb=new _0x37a343(_0x4fb068);_0x5ca6bb['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5ca6bb['withText']=!0x0,_0x5ca6bb['class']='ck-button-action',_0x5ca6bb['on']('execute',()=>{this['fire']('retry');}),_0x5ca6bb['bind']('isVisible')['to'](this,'errorType',_0x583614=>'NotFound'!==_0x583614);const _0x6c0d96=new _0x33a36f();_0x6c0d96['content']=_0x49d49f,_0x6c0d96['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4609c9=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x6c0d96,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4609c9['to']('errorType',_0x2b697a=>t('NotFound'!==_0x2b697a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5ca6bb]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x100c33{constructor(_0x46b853,_0x420799){super(_0x46b853);const _0x59c5c9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x420799,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x59c5c9['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x586dfd,_0x323de5,_0x236ab1){super(_0x586dfd),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x586dfd),this['_errorView']=new ti(_0x586dfd),this['_editingView']=new ei(_0x586dfd,_0x236ab1),this['_focusableView']=new _0x100c33(_0x586dfd),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x323de5),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x5d4f2b=>{this['_addUploadcareImageEditorListeners'](_0x5d4f2b);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x1bdc7f,_0x5b5632){const _0x4688e4='uc-cloud-image-editor',_0x259a7f=_0x1bdc7f['querySelector'](_0x4688e4);if(_0x259a7f)return _0x5b5632(_0x259a7f);const _0x27f065=new MutationObserver(_0x32c1b3=>{const _0x14d25f=_0x32c1b3['filter'](_0x4cef76=>_0x4cef76['target']===_0x1bdc7f&&_0x4cef76['addedNodes']['length']>0x0&&_0x4cef76['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4688e4);_0x14d25f['length']&&(_0x27f065['disconnect'](),_0x5b5632(_0x14d25f[0x0]['addedNodes'][0x0]));});_0x27f065['observe'](_0x1bdc7f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x40e43f){_0x40e43f['addEventListener']('apply',_0x26ecab=>{this['fire']('apply',{'imageSrc':_0x26ecab['detail']['cdnUrl']});}),_0x40e43f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5e1549(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3e4765,_0x57a786,_0x551dbb){super(),this['_editor']=_0x3e4765,this['_dialog']=_0x57a786,this['_imageElement']=_0x551dbb,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x838dd7=this['_imageElement'],_0x1f88ac=_0x838dd7['getAttribute']('uploadcareImageId'),_0x5036dc=_0x838dd7['getAttribute']('src');if(_0x1f88ac)await this['_loadImageInfo'](_0x1f88ac,_0x5036dc);else{if(this['_imageCache']['has'](_0x5036dc)){const _0xab4a80=this['_imageCache']['get'](_0x5036dc);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xab4a80['url'],this['imageDimension']=_0xab4a80['dimension'],this['imageId']=_0xab4a80['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x20a610}=this['_editor'],t=_0x20a610['t'],_0x48a176=new X(_0x20a610,this['imageStatus'],this['_attributes']);_0x48a176['bind']('status')['to'](this,'imageStatus'),_0x48a176['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x48a176['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x48a176['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x48a176,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4385e1,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x48a176,'position':_0x38500b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x48a176['focus']();},'onHide':()=>{_0x48a176['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1dc319=>!A(_0x1dc319,_0x48a176['element'])}});}['_loadImageInfo'](_0xdbdeca,_0x3e05bf){return j['getInfo'](_0xdbdeca,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x583f39=>{const {width:_0x96968c,height:_0x3645d8}=_0x583f39['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3e05bf,this['imageDimension']={'width':_0x96968c,'height':_0x3645d8},this['imageId']=_0xdbdeca;})['catch'](_0x1b3596=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1b3596['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5763a7,_0x194184){return this['_getImageAsFile'](_0x5763a7)['then'](_0x4a3a=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x194184['signal'],'file':_0x4a3a,'onProgress':_0x5831e6=>{_0x5831e6&&_0x5831e6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5831e6['value']));}}))['then'](_0x5048a4=>{const {width:_0x43905d,height:_0x54bc2a}=_0x5048a4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5048a4['cdnUrl'],this['imageDimension']={'width':_0x43905d,'height':_0x54bc2a},this['imageId']=_0x5048a4['uuid'],this['imageUploadProgress']=null;const _0x325118=_0x5763a7['getAttribute']('src');this['_imageCache']['set'](_0x325118,{'id':_0x5048a4['uuid'],'url':_0x5048a4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x8d8c87=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x8d8c87['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x292b6b,_0x156380){_0x292b6b['on']('apply',(_0x58f114,_0x5288b2)=>{this['_replaceImage'](_0x156380,_0x5288b2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x292b6b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x292b6b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x16515c,_0x4e1b7e,_0x378af9){const _0x52326b=this['_editor'],{width:_0x159cd3,height:_0x13ae41}=S(_0x4e1b7e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x37a39b,imageSources:_0x495ff6}=C(_0x4e1b7e,_0x159cd3);_0x52326b['model']['change'](_0x2b590c=>{if('$graveyard'===_0x16515c['root']['rootName']){_0x52326b['execute']('insertImage',{'imageType':_0x16515c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x16515c['getAttributes']()),'uploadcareImageId':_0x378af9,'src':_0x37a39b,'sources':_0x495ff6,'width':_0x159cd3,'height':_0x13ae41}});const _0x55b033=_0x16515c['getChildren']();_0x16515c=_0x52326b['model']['document']['selection']['getSelectedElement']();for(const _0x34426d of _0x55b033)_0x2b590c['append'](_0x2b590c['cloneElement'](_0x34426d),_0x16515c);}else _0x2b590c['setSelection'](_0x16515c,'on'),_0x52326b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x16515c['getAttributes']()),'uploadcareImageId':_0x378af9,'src':_0x37a39b,'sources':_0x495ff6,'width':_0x159cd3,'height':_0x13ae41},_0x16515c);_0x2b590c['setSelection'](_0x16515c,'on');});}async['_getImageAsFile'](_0x504ec1){const _0x2bb7a4=_0x168412['window'],_0x3adfb1=_0x168412['document']['location']['href'],_0x2cfbe1=new _0x2bb7a4['URL'](_0x504ec1['getAttribute']('src'),_0x3adfb1);if('data:'===_0x2cfbe1['protocol']){const _0x1a3d53=_0x2cfbe1['href']['split'](','),_0xc0cdc1=_0x1a3d53[0x0]['match'](/:(.*?);/)[0x1],_0x21f939=_0xc0cdc1['split']('/')[0x1],_0x5ed3cc=_0x2bb7a4['atob'](_0x1a3d53[_0x1a3d53['length']-0x1]);let _0x1a9adb=_0x5ed3cc['length'];const _0x5cf3a9=new _0x2bb7a4['Uint8Array'](_0x1a9adb);for(;_0x1a9adb--;)_0x5cf3a9[_0x1a9adb]=_0x5ed3cc['charCodeAt'](_0x1a9adb);return new _0x2bb7a4['File']([_0x5cf3a9],'image.'+_0x21f939,{'type':_0xc0cdc1});}const _0x506182=_0x2cfbe1['href']['split']('/'),_0x27b2df=_0x506182[_0x506182['length']-0x1],_0x5dd90f=_0x27b2df['split']('.')[0x1];return _0x2bb7a4['fetch'](_0x2cfbe1['href'])['then'](_0x4e9aa8=>_0x4e9aa8['clone']()['blob']())['then'](_0x56b713=>new _0x2bb7a4['File']([_0x56b713],_0x27b2df,{'type':'image/'+_0x5dd90f}));}}class O extends _0x40e5b7{['imageEditController'];static get['requires'](){return[_0xc41957];}['_isEditable'];constructor(_0x186899){super(_0x186899),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x40ad57){const _0x3f7b38=G(_0x40ad57);return _0x2ed366=>!(!_0x2ed366||!_0x2ed366['is']('element','imageBlock')&&!_0x2ed366['is']('element','imageInline'))&&(!!_0x2ed366['hasAttribute']('uploadcareImageId')||!!_0x2ed366['hasAttribute']('src')&&_0x3f7b38(_0x2ed366['getAttribute']('src')));}(_0x186899['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x27e3c8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x27e3c8);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x352487=this['editor']['model']['document']['selection']['getSelectedElement']();_0x352487&&(_0x352487['is']('element','imageBlock')||_0x352487['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0xc41957),_0x352487),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x40e5b7{['refresh'](){const _0x5ec290=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5ec290&&(_0x5ec290['is']('element','imageBlock')||_0x5ec290['is']('element','imageInline')));}['execute'](_0x218789){const _0x134198=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x998e2b=>{_0x998e2b['setAttributes'](_0x218789,_0x134198),_0x998e2b['removeAttribute']('srcset',_0x134198),_0x998e2b['removeAttribute']('sizes',_0x134198);});}}class m extends _0x11d2ae{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5e2a9f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3c3e7b}=this;_0x3c3e7b['commands']['add']('uploadcareImageEdit',new O(_0x3c3e7b)),_0x3c3e7b['commands']['add']('uploadcareImageReplace',new R(_0x3c3e7b));}}class g extends _0x11d2ae{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x2e868=this['editor'];_0x2e868['ui']['componentFactory']['add']('uploadcareImageEdit',_0x48dfef=>{const _0x10635d=_0x2e868['commands']['get']('uploadcareImageEdit'),_0x49bcb7=new _0x37a343(_0x48dfef),t=_0x48dfef['t'];return _0x49bcb7['set']({'icon':_0x4385e1,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x49bcb7['bind']('isEnabled')['to'](_0x10635d),_0x49bcb7['bind']('isOn')['to'](_0x10635d,'isActive'),this['listenTo'](_0x49bcb7,'execute',()=>{_0x2e868['execute']('uploadcareImageEdit'),_0x2e868['editing']['view']['focus']();}),_0x49bcb7;}),this['_initConfig']();}['_initConfig'](){const _0x192184=_0x3d006a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x192184),this['listenTo'](this['editor'],'destroy',()=>{_0x192184['remove']();});}}class et extends _0x11d2ae{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251221.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251221.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251221.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20251221.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251221.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251221.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251221.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251221.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251221.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.24.5",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x38c1(){const _0x5b7627=['extend','add','iconHrefResolver','#uc-icon-arrow-down','1003626cokUnH','document','configElement','687688VtKNuf','destroy','schema','_initCtx','closeMax','_ctxElement','remove','execute','_configElement','uploadcareImageReplace','UploadcareEditing','uploadcare.pubkey','_initConfig','appendChild','join','fromCharCode','143816vzThfF','commands','querySelector','_initConversion','href','attributeToAttribute','body','6380dhGGKU','18QKPpsh','once','imageBlock','downcast','listenTo','239826pRVXKS','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','selection','upcast','getAttribute','PictureEditing','get','model','replaceImageSource','ctxElement','config','isPremiumPlugin','8261MxBsMt','isOfficialPlugin','1198734yhBOFM','for','getSelectedElement','cleanupImage','isRegistered','contentLanguage','insertImage','locale','removeAttribute','uploadcare','uc-upload-ctx-provider','_initImageProcessingIndicator','conversion','pluginName','true','14unUAbh','afterInit','_initSchema','editor','uploader-','uc-config','render','init','365UmwkjZ','ucContextId','elementToAttribute','requires','view','editing','map','imageInline','data-uc-image-id','input[uploadcare-file-input]','uploadcareImageId','uploadcare.uploader','3976pQYkxR'];_0x38c1=function(){return _0x5b7627;};return _0x38c1();}function _0x32ba(_0x1c9cd0,_0x5746fd){const _0x38c1ec=_0x38c1();return _0x32ba=function(_0x32ba18,_0xd00ef9){_0x32ba18=_0x32ba18-0x1de;let _0x8d1b24=_0x38c1ec[_0x32ba18];return _0x8d1b24;},_0x32ba(_0x1c9cd0,_0x5746fd);}const _0x4b74d7=_0x32ba;(function(_0x98eb86,_0x2af87e){const _0x54102b=_0x32ba,_0xf3b535=_0x98eb86();while(!![]){try{const _0x1f3930=parseInt(_0x54102b(0x1e8))/0x1+parseInt(_0x54102b(0x221))/0x2+-parseInt(_0x54102b(0x21e))/0x3+-parseInt(_0x54102b(0x219))/0x4*(parseInt(_0x54102b(0x20d))/0x5)+-parseInt(_0x54102b(0x1f6))/0x6*(parseInt(_0x54102b(0x205))/0x7)+-parseInt(_0x54102b(0x231))/0x8*(parseInt(_0x54102b(0x1e3))/0x9)+-parseInt(_0x54102b(0x1e2))/0xa*(-parseInt(_0x54102b(0x1f4))/0xb);if(_0x1f3930===_0x2af87e)break;else _0xf3b535['push'](_0xf3b535['shift']());}catch(_0x55f373){_0xf3b535['push'](_0xf3b535['shift']());}}}(_0x38c1,0x35c0c));import{Plugin as _0xe0c7a1}from'ckeditor5/src/core.js';import{Dialog as _0x3fc6ed}from'ckeditor5/src/ui.js';import{createElement as _0x2cb099,global as _0x5b0c08,uid as _0x21ca03}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x338104}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x22a4a5}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1f06a0}from'./utils/editingutils.js';export class UploadcareEditing extends _0xe0c7a1{[_0x4b74d7(0x229)]=null;[_0x4b74d7(0x226)]=null;static get[_0x4b74d7(0x203)](){const _0x3d3f8a=_0x4b74d7;return _0x3d3f8a(0x22b);}static get[_0x4b74d7(0x210)](){const _0x5763de=_0x4b74d7;return[_0x5763de(0x1ed),_0x22a4a5,_0x3fc6ed];}static get[_0x4b74d7(0x1f5)](){return!0x0;}static get[_0x4b74d7(0x1f3)](){return!0x0;}[_0x4b74d7(0x20e)];get[_0x4b74d7(0x220)](){const _0x5f4548=_0x4b74d7;return this[_0x5f4548(0x229)];}get[_0x4b74d7(0x1f1)](){const _0x2edea1=_0x4b74d7;return this[_0x2edea1(0x226)];}constructor(_0x19af72){const _0x123615=_0x4b74d7;super(_0x19af72),this[_0x123615(0x20e)]=_0x21ca03();}[_0x4b74d7(0x20c)](){const _0x459e8a=_0x4b74d7,_0x1c0735=this[_0x459e8a(0x208)];_0x1c0735[_0x459e8a(0x232)][_0x459e8a(0x21b)](_0x459e8a(0x1ff),new _0x338104(_0x1c0735));}[_0x4b74d7(0x206)](){const _0x5da843=_0x4b74d7;this[_0x5da843(0x207)](),this[_0x5da843(0x1de)](),this[_0x5da843(0x22d)](),this[_0x5da843(0x224)](),this[_0x5da843(0x201)](),this[_0x5da843(0x1e7)](this[_0x5da843(0x208)],_0x5da843(0x222),()=>{const _0x5a3aa8=_0x5da843;this[_0x5a3aa8(0x229)]&&(this[_0x5a3aa8(0x229)][_0x5a3aa8(0x227)](),this[_0x5a3aa8(0x229)]=null),this[_0x5a3aa8(0x226)]&&(this[_0x5a3aa8(0x226)][_0x5a3aa8(0x227)](),this[_0x5a3aa8(0x226)]=null);const _0x44d234=_0x5b0c08[_0x5a3aa8(0x21f)][_0x5a3aa8(0x233)](_0x5a3aa8(0x216));_0x44d234&&_0x44d234[_0x5a3aa8(0x227)]();}),async function(_0x56d89b){const _0x432687=_0x3c30ad([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2ecd30=0x535f8c3a,_0x10f429=0x5358f04a^_0x2ecd30,_0x115e0e=window[_0x3c30ad([0x44,0x61,0x74,0x65])][_0x3c30ad([0x6e,0x6f,0x77])](),_0x949cc6=_0x56d89b[_0x3c30ad([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa51c86=new window[(_0x3c30ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x467a45=>{_0x949cc6[_0x3c30ad([0x6f,0x6e,0x63,0x65])](_0x3c30ad([0x72,0x65,0x61,0x64,0x79]),_0x467a45);}),_0x4d952c={[_0x3c30ad([0x6b,0x74,0x79])]:_0x3c30ad([0x45,0x43]),[_0x3c30ad([0x75,0x73,0x65])]:_0x3c30ad([0x73,0x69,0x67]),[_0x3c30ad([0x63,0x72,0x76])]:_0x3c30ad([0x50,0x2d,0x32,0x35,0x36]),[_0x3c30ad([0x78])]:_0x3c30ad([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]),[_0x3c30ad([0x79])]:_0x3c30ad([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]),[_0x3c30ad([0x61,0x6c,0x67])]:_0x3c30ad([0x45,0x53,0x32,0x35,0x36])},_0x5ae0e6=_0x949cc6[_0x3c30ad([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c30ad([0x67,0x65,0x74])](_0x3c30ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1417df(){let _0x49b38d,_0x291062=null,_0xc37ce1=null;try{if(_0x5ae0e6==_0x3c30ad([0x47,0x50,0x4c]))return _0x3c30ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49b38d=_0x1a2c90(),!_0x49b38d)return _0x3c30ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49b38d[_0x3c30ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc37ce1=_0x12a97f(_0x49b38d[_0x3c30ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49b38d[_0x3c30ad([0x6a,0x74,0x69])])),await _0x2ebd81()?_0x57139e()?_0x283585()?_0x3c30ad([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3795dd()?(_0x49b38d[_0x3c30ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c30ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x291062=_0x54014e(_0x3c30ad([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x49b38d[_0x3c30ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c30ad([0x74,0x72,0x69,0x61,0x6c])&&(_0x291062=_0x54014e(_0x3c30ad([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x99eadf()):_0x3c30ad([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c30ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c30ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3c30ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x283585(){const _0x4a8aab=[_0x3c30ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c30ad([0x74,0x72,0x69,0x61,0x6c])][_0x3c30ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b38d[_0x3c30ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x115e0e/0x3e8:0xe10*_0x10f429;return _0x49b38d[_0x3c30ad([0x65,0x78,0x70])]<_0x4a8aab;}function _0x57139e(){const _0x4d18d1=_0x49b38d[_0x3c30ad([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4d18d1&&(!!_0x4d18d1[_0x3c30ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c30ad([0x2a]))||!!_0x4d18d1[_0x3c30ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c30ad([0x55,0x50,0x4c,0x43])));}function _0x3795dd(){const _0x502808=_0x32ba,_0x5c3fe4=_0x49b38d[_0x3c30ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c3fe4||0x0==_0x5c3fe4[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37ee72}=new URL(window[_0x3c30ad([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x502808(0x1df)]);if(_0x5c3fe4[_0x3c30ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37ee72))return!0x0;const _0x385367=_0x37ee72[_0x3c30ad([0x73,0x70,0x6c,0x69,0x74])](_0x3c30ad([0x2e]));return _0x5c3fe4[_0x3c30ad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xde44a9=>_0xde44a9[_0x3c30ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c30ad([0x2a])))[_0x3c30ad([0x6d,0x61,0x70])](_0x48bc15=>_0x48bc15[_0x3c30ad([0x73,0x70,0x6c,0x69,0x74])](_0x3c30ad([0x2e])))[_0x3c30ad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54e507=>_0x54e507[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x385367[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c30ad([0x6d,0x61,0x70])](_0x32516a=>Array(_0x385367[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x32516a[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c30ad([0x66,0x69,0x6c,0x6c])](_0x32516a[0x0]===_0x3c30ad([0x2a])?_0x3c30ad([0x2a]):'')[_0x3c30ad([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x32516a))[_0x3c30ad([0x73,0x6f,0x6d,0x65])](_0x26bbab=>_0x385367[_0x3c30ad([0x65,0x76,0x65,0x72,0x79])]((_0x2b6222,_0x1efbb6)=>_0x26bbab[_0x1efbb6]===_0x2b6222||_0x26bbab[_0x1efbb6]===_0x3c30ad([0x2a])));}function _0x99eadf(){return _0x291062&&_0xc37ce1?new window[(_0x3c30ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43c4ea,_0x39298c)=>{_0x291062[_0x3c30ad([0x74,0x68,0x65,0x6e])](_0x43c4ea,_0x39298c),_0xc37ce1[_0x3c30ad([0x74,0x68,0x65,0x6e])](_0x4844b7=>{_0x4844b7!=_0x3c30ad([0x56,0x61,0x6c,0x69,0x64])&&_0x43c4ea(_0x4844b7);},_0x39298c);}):_0x291062||_0xc37ce1||_0x3c30ad([0x56,0x61,0x6c,0x69,0x64]);}}function _0x12a97f(_0x27a9c1,_0x27b44c){return new window[(_0x3c30ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b9635=>{if(_0xecd312())return _0x3b9635(_0x3c30ad([0x56,0x61,0x6c,0x69,0x64]));_0x1f863b(),_0x949cc6[_0x3c30ad([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c30ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51e22b=!0x1;const _0x107a8d=_0x21ca03();function _0x5f55d0(_0x5cc140){return!!_0x5cc140&&(typeof _0x5cc140===_0x3c30ad([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5cc140===_0x3c30ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5cc140[_0x3c30ad([0x74,0x68,0x65,0x6e])]===_0x3c30ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5cc140[_0x3c30ad([0x63,0x61,0x74,0x63,0x68])]===_0x3c30ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x225780(_0x5e8480){_0x5e5e8b(_0x5e8480)[_0x3c30ad([0x74,0x68,0x65,0x6e])](_0xd57a17=>{if(!_0xd57a17||_0xd57a17[_0x3c30ad([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c30ad([0x6f,0x6b]))return _0x3c30ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x209e59(_0x67620e(_0x107a8d+_0x27b44c))!=_0xd57a17[_0x3c30ad([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c30ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c30ad([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c30ad([0x74,0x68,0x65,0x6e])](_0x5a2735=>(_0x5ca203(),_0x5a2735),()=>{const _0x25c12e=_0x30304f();return null==_0x25c12e?(_0x5ca203(),_0x3c30ad([0x56,0x61,0x6c,0x69,0x64])):_0x3c30ad(_0x115e0e-_0x25c12e>(0x7753083a^_0x2ecd30)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c30ad([0x74,0x68,0x65,0x6e])](_0x3b9635)[_0x3c30ad([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b9635(_0x3c30ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x51f7ce=0x536962ba^_0x2ecd30;function _0x5ca203(){const _0x401d6b=_0x3c30ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x209e59(_0x67620e(_0x27a9c1)),_0x52a6b9=_0x270a54(_0x209e59(window[_0x3c30ad([0x4d,0x61,0x74,0x68])][_0x3c30ad([0x63,0x65,0x69,0x6c])](_0x115e0e/_0x51f7ce)));window[_0x3c30ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c30ad([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x401d6b,_0x52a6b9);}function _0x30304f(){const _0x44ead4=_0x3c30ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x209e59(_0x67620e(_0x27a9c1)),_0x5a61b8=window[_0x3c30ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c30ad([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44ead4);return _0x5a61b8?window[_0x3c30ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x270a54(_0x5a61b8),0x10)*_0x51f7ce:null;}function _0x5e5e8b(_0x2a9540){return new window[(_0x3c30ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6ca52e,_0x3c7669)=>{_0x2a9540[_0x3c30ad([0x74,0x68,0x65,0x6e])](_0x6ca52e,_0x3c7669),window[_0x3c30ad([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c7669,0x535e58fa^_0x2ecd30);});}}_0x949cc6[_0x3c30ad([0x6f,0x6e])](_0x3c30ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d0c5e,_0x58c694)=>{if(_0x58c694[0x0]!=_0x27a9c1)return _0x3b9635(_0x3c30ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x58c694[0x1]={..._0x58c694[0x1],[_0x3c30ad([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x107a8d};},{[_0x3c30ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c30ad([0x68,0x69,0x67,0x68])}),_0x949cc6[_0x3c30ad([0x6f,0x6e])](_0x3c30ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x21b73e=>{_0x5f55d0(_0x21b73e[_0x3c30ad([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51e22b=!0x0,_0x225780(_0x21b73e[_0x3c30ad([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c30ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c30ad([0x6c,0x6f,0x77])}),_0xa51c86[_0x3c30ad([0x74,0x68,0x65,0x6e])](()=>{_0x51e22b||_0x3b9635(_0x3c30ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xecd312(){return _0x949cc6[_0x3c30ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c30ad([0x76,0x69,0x65,0x77])][_0x3c30ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c30ad([0x61,0x75,0x74,0x6f]);}function _0x1f863b(){_0x949cc6[_0x3c30ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c30ad([0x76,0x69,0x65,0x77])][_0x3c30ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c30ad([0x61,0x75,0x74,0x6f]);}}function _0x54014e(_0x41cd7a){const _0x4e2d06=[new window[(_0x3c30ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x65faa1=>setTimeout(_0x65faa1,0x5356b2f6^_0x2ecd30)),_0xa51c86[_0x3c30ad([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c30ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33b471=>{let _0x231cdd=0x0;_0x949cc6[_0x3c30ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c30ad([0x6f,0x6e])](_0x3c30ad([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x56e619,_0x3b532d)=>{_0x3b532d[0x0][_0x3c30ad([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x231cdd++,_0x231cdd==(0x535f89d2^_0x2ecd30)&&(_0x33b471(),_0x56e619[_0x3c30ad([0x6f,0x66,0x66])]());});}))];return window[_0x3c30ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c30ad([0x72,0x61,0x63,0x65])](_0x4e2d06)[_0x3c30ad([0x74,0x68,0x65,0x6e])](()=>_0x41cd7a);}async function _0x214b68(){await _0xa51c86,_0x949cc6[_0x3c30ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c30ad([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x230b48,_0x949cc6[_0x3c30ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c30ad([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x230b48,_0x949cc6[_0x3c30ad([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c30ad([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c58aa(_0x8bacde){const _0x810e7d=_0x46d48d();_0x949cc6[_0x810e7d]=_0x3c30ad([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x8bacde,_0x8bacde!=_0x3c30ad([0x56,0x61,0x6c,0x69,0x64])&&_0x214b68();}function _0x46d48d(){const _0xa2b210=window[_0x3c30ad([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c30ad([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c30ad([0x6e,0x6f,0x77])]())[_0x3c30ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c30ad([0x2e]),'');let _0x36464d=_0x3c30ad([0x68]);for(let _0x35ca1c=0x0;_0x35ca1c<_0xa2b210[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35ca1c+=0x2){let _0x2a3e54=window[_0x3c30ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa2b210[_0x3c30ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35ca1c,_0x35ca1c+0x2));_0x2a3e54>=_0x432687[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a3e54-=_0x432687[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x36464d+=_0x432687[_0x2a3e54];}return _0x36464d;}function _0x1a2c90(){const _0x1332b=_0x5ae0e6[_0x3c30ad([0x73,0x70,0x6c,0x69,0x74])](_0x3c30ad([0x2e]));if(0x3!=_0x1332b[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x225871(_0x1332b[0x1]);function _0x225871(_0xad17aa){const _0x5f1c19=_0x141931(_0xad17aa);return _0x5f1c19&&_0x545e32()?_0x5f1c19:null;function _0x545e32(){const _0x2b8717=_0x5f1c19[_0x3c30ad([0x6a,0x74,0x69])],_0x44b8a4=window[_0x3c30ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b8717[_0x3c30ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b8717[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39d00c={..._0x5f1c19,[_0x3c30ad([0x6a,0x74,0x69])]:_0x2b8717[_0x3c30ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b8717[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39d00c[_0x3c30ad([0x76,0x63])],_0x67620e(_0x39d00c)==_0x44b8a4;}}}async function _0x2ebd81(){let _0x4c9600=!0x0;try{const _0x350401=_0x5ae0e6[_0x3c30ad([0x73,0x70,0x6c,0x69,0x74])](_0x3c30ad([0x2e])),[_0x50d5ae,_0x3e2863,_0x407b09]=_0x350401;return _0x360311(_0x50d5ae),await _0x124227(_0x50d5ae,_0x3e2863,_0x407b09),_0x4c9600;}catch{return!0x1;}function _0x360311(_0x14aa16){const _0x1e6d91=_0x141931(_0x14aa16);_0x1e6d91&&_0x1e6d91[_0x3c30ad([0x61,0x6c,0x67])]==_0x3c30ad([0x45,0x53,0x32,0x35,0x36])||(_0x4c9600=!0x1);}async function _0x124227(_0x4718b7,_0x42ab5f,_0x58c0ad){const _0x535602=window[_0x3c30ad([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c30ad([0x66,0x72,0x6f,0x6d])](_0x508475(_0x58c0ad),_0x346eb1=>_0x346eb1[_0x3c30ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x202a24=new window[(_0x3c30ad([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c30ad([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4718b7+_0x3c30ad([0x2e])+_0x42ab5f),_0x531bde=window[_0x3c30ad([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c30ad([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x531bde)return;const _0x3a24af=await _0x531bde[_0x3c30ad([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c30ad([0x6a,0x77,0x6b]),_0x4d952c,{[_0x3c30ad([0x6e,0x61,0x6d,0x65])]:_0x3c30ad([0x45,0x43,0x44,0x53,0x41]),[_0x3c30ad([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c30ad([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c30ad([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x531bde[_0x3c30ad([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c30ad([0x6e,0x61,0x6d,0x65])]:_0x3c30ad([0x45,0x43,0x44,0x53,0x41]),[_0x3c30ad([0x68,0x61,0x73,0x68])]:{[_0x3c30ad([0x6e,0x61,0x6d,0x65])]:_0x3c30ad([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a24af,_0x535602,_0x202a24)||(_0x4c9600=!0x1);}}function _0x141931(_0x4c685f){return _0x4c685f[_0x3c30ad([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c30ad([0x65,0x79]))?JSON[_0x3c30ad([0x70,0x61,0x72,0x73,0x65])](_0x508475(_0x4c685f)):null;}function _0x508475(_0x30b165){return window[_0x3c30ad([0x61,0x74,0x6f,0x62])](_0x30b165[_0x3c30ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c30ad([0x2b]))[_0x3c30ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c30ad([0x2f])));}function _0x67620e(_0x576391){let _0x510ccd=0x1505;function _0x30d74d(_0x11ca70){for(let _0x4cac6b=0x0;_0x4cac6b<_0x11ca70[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cac6b++){const _0x295c96=_0x11ca70[_0x3c30ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4cac6b);_0x510ccd=(_0x510ccd<<0x5)+_0x510ccd+_0x295c96,_0x510ccd&=_0x510ccd;}}function _0x4b3c1f(_0x4f8f81){Array[_0x3c30ad([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f8f81)?_0x4f8f81[_0x3c30ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b3c1f):_0x4f8f81&&typeof _0x4f8f81==_0x3c30ad([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c30ad([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f8f81)[_0x3c30ad([0x73,0x6f,0x72,0x74])]()[_0x3c30ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52d1ac,_0x51b377])=>{_0x30d74d(_0x52d1ac),_0x4b3c1f(_0x51b377);}):_0x30d74d(window[_0x3c30ad([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f8f81));}return _0x4b3c1f(_0x576391),_0x510ccd>>>0x0;}function _0x209e59(_0x3a364c){return _0x3a364c[_0x3c30ad([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c30ad([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c30ad([0x30]));}function _0x270a54(_0x1cb402){return _0x1cb402[_0x3c30ad([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c30ad([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c30ad([0x6a,0x6f,0x69,0x6e])]('');}function _0x230b48(){}function _0x3c30ad(_0x358b9e){const _0x36287b=_0x32ba;return _0x358b9e[_0x36287b(0x213)](_0x50bc5b=>String[_0x36287b(0x230)](_0x50bc5b))[_0x36287b(0x22f)]('');}_0x5c58aa(await _0x1417df());}(this);}[_0x4b74d7(0x207)](){const _0x479504=_0x4b74d7,_0x466075=this[_0x479504(0x208)][_0x479504(0x1ef)][_0x479504(0x223)];_0x466075[_0x479504(0x1fa)](_0x479504(0x1e5))&&_0x466075[_0x479504(0x21a)](_0x479504(0x1e5),{'allowAttributes':[_0x479504(0x217)]}),_0x466075[_0x479504(0x1fa)](_0x479504(0x214))&&_0x466075[_0x479504(0x21a)](_0x479504(0x214),{'allowAttributes':[_0x479504(0x217)]});}[_0x4b74d7(0x1de)](){const _0x47383b=_0x4b74d7,_0x1a44bf=this[_0x47383b(0x208)];_0x1a44bf[_0x47383b(0x202)][_0x47383b(0x1f7)](_0x47383b(0x1e6))[_0x47383b(0x1e0)]({'model':_0x47383b(0x217),'view':_0x47383b(0x215)}),_0x1a44bf[_0x47383b(0x202)][_0x47383b(0x1f7)](_0x47383b(0x1eb))[_0x47383b(0x20f)]({'model':{'key':_0x47383b(0x217),'value':_0x3d0229=>_0x3d0229[_0x47383b(0x1ec)](_0x47383b(0x215))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1d772f=_0x1a44bf[_0x47383b(0x232)][_0x47383b(0x1ee)](_0x47383b(0x1f0));_0x1d772f&&this[_0x47383b(0x1e7)](_0x1d772f,_0x47383b(0x1f9),(_0x359ac5,[_0x403b49,_0x30e3c2])=>{const _0x361735=_0x47383b;_0x403b49[_0x361735(0x1fe)](_0x361735(0x217),_0x30e3c2);});}[_0x4b74d7(0x22d)](){const _0x593913=_0x4b74d7,_0x2db2c8=this[_0x593913(0x208)][_0x593913(0x1f2)][_0x593913(0x1ee)](_0x593913(0x218))||{},_0xe4cf10=this[_0x593913(0x208)][_0x593913(0x1f2)][_0x593913(0x1ee)](_0x593913(0x22c))||'';this[_0x593913(0x229)]=_0x2cb099(_0x5b0c08[_0x593913(0x21f)],_0x593913(0x20a),{..._0x2db2c8,'pubkey':_0xe4cf10,'ctx-name':_0x593913(0x209)+this[_0x593913(0x20e)],'sourceList':'','imgOnly':_0x593913(0x204),'removeCopyright':_0x593913(0x204),'localeName':this[_0x593913(0x208)][_0x593913(0x1fd)][_0x593913(0x1fb)],'externalSourcesEmbedCss':_0x593913(0x1e9)}),this[_0x593913(0x229)][_0x593913(0x21c)]=_0x2fba9c=>{const _0x57167=_0x593913;if(_0x57167(0x225)==_0x2fba9c)return _0x57167(0x21d);},_0x5b0c08[_0x593913(0x21f)][_0x593913(0x1e1)][_0x593913(0x22e)](this[_0x593913(0x229)]);}[_0x4b74d7(0x224)](){const _0x544f66=_0x4b74d7;this[_0x544f66(0x226)]=_0x2cb099(_0x5b0c08[_0x544f66(0x21f)],_0x544f66(0x200),{'ctx-name':_0x544f66(0x209)+this[_0x544f66(0x20e)]}),_0x5b0c08[_0x544f66(0x21f)][_0x544f66(0x1e1)][_0x544f66(0x22e)](this[_0x544f66(0x226)]);}[_0x4b74d7(0x201)](){const _0x3898f4=_0x4b74d7,_0xa4e1bf=this[_0x3898f4(0x208)][_0x3898f4(0x232)][_0x3898f4(0x1ee)](_0x3898f4(0x1fc));_0xa4e1bf&&this[_0x3898f4(0x1e7)](_0xa4e1bf,_0x3898f4(0x228),()=>{const _0x5d7bb6=_0x3898f4,_0x1a8e29=this[_0x5d7bb6(0x208)][_0x5d7bb6(0x1ef)][_0x5d7bb6(0x21f)][_0x5d7bb6(0x1ea)][_0x5d7bb6(0x1f8)]();_0x1a8e29&&_0x1a8e29[_0x5d7bb6(0x1ec)](_0x5d7bb6(0x217))&&this[_0x5d7bb6(0x208)][_0x5d7bb6(0x212)][_0x5d7bb6(0x211)][_0x5d7bb6(0x1e4)](_0x5d7bb6(0x20b),()=>{const _0x4cef1f=_0x5d7bb6;_0x1f06a0(this[_0x4cef1f(0x208)],_0x1a8e29);});});const _0x19da8a=this[_0x3898f4(0x208)][_0x3898f4(0x232)][_0x3898f4(0x1ee)](_0x3898f4(0x22a));_0x19da8a&&this[_0x3898f4(0x1e7)](_0x19da8a,_0x3898f4(0x228),()=>{const _0x5c5d52=_0x3898f4,_0x3ed33c=this[_0x5c5d52(0x208)][_0x5c5d52(0x1ef)][_0x5c5d52(0x21f)][_0x5c5d52(0x1ea)][_0x5c5d52(0x1f8)]();_0x3ed33c&&_0x3ed33c[_0x5c5d52(0x1ec)](_0x5c5d52(0x217))&&this[_0x5c5d52(0x208)][_0x5c5d52(0x212)][_0x5c5d52(0x211)][_0x5c5d52(0x1e4)](_0x5c5d52(0x20b),()=>{const _0x239592=_0x5c5d52;_0x1f06a0(this[_0x239592(0x208)],_0x3ed33c);});});}}
|
|
23
|
+
const _0x1491d7=_0x25a9;(function(_0x2253c2,_0x4932eb){const _0x22f146=_0x25a9,_0x3c3de8=_0x2253c2();while(!![]){try{const _0x14eed5=-parseInt(_0x22f146(0x139))/0x1*(parseInt(_0x22f146(0x175))/0x2)+parseInt(_0x22f146(0x18d))/0x3*(-parseInt(_0x22f146(0x16f))/0x4)+-parseInt(_0x22f146(0x17a))/0x5+parseInt(_0x22f146(0x167))/0x6+-parseInt(_0x22f146(0x18c))/0x7*(parseInt(_0x22f146(0x181))/0x8)+-parseInt(_0x22f146(0x178))/0x9*(parseInt(_0x22f146(0x148))/0xa)+parseInt(_0x22f146(0x188))/0xb;if(_0x14eed5===_0x4932eb)break;else _0x3c3de8['push'](_0x3c3de8['shift']());}catch(_0x1c29f5){_0x3c3de8['push'](_0x3c3de8['shift']());}}}(_0x41c4,0xa69d7));import{Plugin as _0xfc6b71}from'ckeditor5/src/core.js';import{Dialog as _0x4bb459}from'ckeditor5/src/ui.js';import{createElement as _0x36cc08,global as _0x1ec88c,uid as _0x47523b}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4796aa}from'./uploadcarecommand.js';function _0x41c4(){const _0x7efefc=['UploadcareEditing','model','fromCharCode','iconHrefResolver','5533248jTWhQP','execute','editing','remove','true','href','isPremiumPlugin','extend','4mbNaAp','attributeToAttribute','add','document','uc-upload-ctx-provider','selection','2fkSJbm','elementToAttribute','pluginName','207xHDSin','_configElement','3265470YJqgLO','imageBlock','commands','ucContextId','conversion','once','removeAttribute','175456vpkpdh','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','destroy','render','view','_initImageProcessingIndicator','isOfficialPlugin','43706828RmSbSu','appendChild','insertImage','PictureEditing','91MgUHco','2880387oHilZM','configElement','965513TtJkkH','editor','imageInline','map','downcast','afterInit','replaceImageSource','uploadcare.uploader','body','schema','listenTo','#uc-icon-arrow-down','contentLanguage','for','uploadcareImageReplace','586630ohpUgX','uploader-','_initConversion','input[uploadcare-file-input]','_initCtx','uploadcare.pubkey','init','closeMax','isRegistered','config','uc-config','ctxElement','cleanupImage','_initConfig','_ctxElement','upcast','locale','_initSchema','requires','uploadcareImageId','join','get','uploadcare','querySelector','getAttribute','getSelectedElement','data-uc-image-id'];_0x41c4=function(){return _0x7efefc;};return _0x41c4();}function _0x25a9(_0x28eff6,_0x1de965){const _0x41c459=_0x41c4();return _0x25a9=function(_0x25a934,_0x26809b){_0x25a934=_0x25a934-0x138;let _0x54dd9f=_0x41c459[_0x25a934];return _0x54dd9f;},_0x25a9(_0x28eff6,_0x1de965);}import{UploadcareUploadAdapter as _0x499999}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x816efa}from'./utils/editingutils.js';export class UploadcareEditing extends _0xfc6b71{[_0x1491d7(0x179)]=null;[_0x1491d7(0x156)]=null;static get[_0x1491d7(0x177)](){const _0xc6a5fa=_0x1491d7;return _0xc6a5fa(0x163);}static get[_0x1491d7(0x15a)](){const _0x342393=_0x1491d7;return[_0x342393(0x18b),_0x499999,_0x4bb459];}static get[_0x1491d7(0x187)](){return!0x0;}static get[_0x1491d7(0x16d)](){return!0x0;}[_0x1491d7(0x17d)];get[_0x1491d7(0x138)](){const _0x3557de=_0x1491d7;return this[_0x3557de(0x179)];}get[_0x1491d7(0x153)](){const _0x349ddb=_0x1491d7;return this[_0x349ddb(0x156)];}constructor(_0x5b5ed9){const _0x55fd89=_0x1491d7;super(_0x5b5ed9),this[_0x55fd89(0x17d)]=_0x47523b();}[_0x1491d7(0x14e)](){const _0x558c07=_0x1491d7,_0x3c3416=this[_0x558c07(0x13a)];_0x3c3416[_0x558c07(0x17c)][_0x558c07(0x171)](_0x558c07(0x15e),new _0x4796aa(_0x3c3416));}[_0x1491d7(0x13e)](){const _0x23c6f5=_0x1491d7;this[_0x23c6f5(0x159)](),this[_0x23c6f5(0x14a)](),this[_0x23c6f5(0x155)](),this[_0x23c6f5(0x14c)](),this[_0x23c6f5(0x186)](),this[_0x23c6f5(0x143)](this[_0x23c6f5(0x13a)],_0x23c6f5(0x183),()=>{const _0x24a971=_0x23c6f5;this[_0x24a971(0x179)]&&(this[_0x24a971(0x179)][_0x24a971(0x16a)](),this[_0x24a971(0x179)]=null),this[_0x24a971(0x156)]&&(this[_0x24a971(0x156)][_0x24a971(0x16a)](),this[_0x24a971(0x156)]=null);const _0xc5b5bd=_0x1ec88c[_0x24a971(0x172)][_0x24a971(0x15f)](_0x24a971(0x14b));_0xc5b5bd&&_0xc5b5bd[_0x24a971(0x16a)]();}),async function(_0x57bbe2){const _0x2d9204=_0x16998d([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x15d59d=0x535f8c3a,_0xa08666=0x5358f0b2^_0x15d59d,_0x30bdbb=window[_0x16998d([0x44,0x61,0x74,0x65])][_0x16998d([0x6e,0x6f,0x77])](),_0x565aca=_0x57bbe2[_0x16998d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4148d6=new window[(_0x16998d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x334643=>{_0x565aca[_0x16998d([0x6f,0x6e,0x63,0x65])](_0x16998d([0x72,0x65,0x61,0x64,0x79]),_0x334643);}),_0x3d45b4={[_0x16998d([0x6b,0x74,0x79])]:_0x16998d([0x45,0x43]),[_0x16998d([0x75,0x73,0x65])]:_0x16998d([0x73,0x69,0x67]),[_0x16998d([0x63,0x72,0x76])]:_0x16998d([0x50,0x2d,0x32,0x35,0x36]),[_0x16998d([0x78])]:_0x16998d([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]),[_0x16998d([0x79])]:_0x16998d([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]),[_0x16998d([0x61,0x6c,0x67])]:_0x16998d([0x45,0x53,0x32,0x35,0x36])},_0x13ab13=_0x565aca[_0x16998d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16998d([0x67,0x65,0x74])](_0x16998d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5099a3(){let _0x435854,_0x436aca=null,_0x405d46=null;try{if(_0x13ab13==_0x16998d([0x47,0x50,0x4c]))return _0x16998d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x435854=_0xa8c1df(),!_0x435854)return _0x16998d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x435854[_0x16998d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x405d46=_0x1ff55b(_0x435854[_0x16998d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x435854[_0x16998d([0x6a,0x74,0x69])])),await _0x5e2e44()?_0x45bad3()?_0x572412()?_0x16998d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5ea76e()?(_0x435854[_0x16998d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16998d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x436aca=_0x5f5883(_0x16998d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x435854[_0x16998d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16998d([0x74,0x72,0x69,0x61,0x6c])&&(_0x436aca=_0x5f5883(_0x16998d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17de8c()):_0x16998d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16998d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16998d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x16998d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x572412(){const _0x4cfd00=[_0x16998d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16998d([0x74,0x72,0x69,0x61,0x6c])][_0x16998d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x435854[_0x16998d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x30bdbb/0x3e8:0xe10*_0xa08666;return _0x435854[_0x16998d([0x65,0x78,0x70])]<_0x4cfd00;}function _0x45bad3(){const _0x3887a6=_0x435854[_0x16998d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3887a6&&(!!_0x3887a6[_0x16998d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16998d([0x2a]))||!!_0x3887a6[_0x16998d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16998d([0x55,0x50,0x4c,0x43])));}function _0x5ea76e(){const _0x134210=_0x25a9,_0x436e0f=_0x435854[_0x16998d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x436e0f||0x0==_0x436e0f[_0x16998d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x533448}=new URL(window[_0x16998d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x134210(0x16c)]);if(_0x436e0f[_0x16998d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533448))return!0x0;const _0x374082=_0x533448[_0x16998d([0x73,0x70,0x6c,0x69,0x74])](_0x16998d([0x2e]));return _0x436e0f[_0x16998d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a5003=>_0x2a5003[_0x16998d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16998d([0x2a])))[_0x16998d([0x6d,0x61,0x70])](_0xae00dc=>_0xae00dc[_0x16998d([0x73,0x70,0x6c,0x69,0x74])](_0x16998d([0x2e])))[_0x16998d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27d20b=>_0x27d20b[_0x16998d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x374082[_0x16998d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16998d([0x6d,0x61,0x70])](_0x33af9a=>Array(_0x374082[_0x16998d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x33af9a[_0x16998d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16998d([0x66,0x69,0x6c,0x6c])](_0x33af9a[0x0]===_0x16998d([0x2a])?_0x16998d([0x2a]):'')[_0x16998d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x33af9a))[_0x16998d([0x73,0x6f,0x6d,0x65])](_0xec84c2=>_0x374082[_0x16998d([0x65,0x76,0x65,0x72,0x79])]((_0x4dc2d3,_0x55d458)=>_0xec84c2[_0x55d458]===_0x4dc2d3||_0xec84c2[_0x55d458]===_0x16998d([0x2a])));}function _0x17de8c(){return _0x436aca&&_0x405d46?new window[(_0x16998d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56459d,_0x24fa3e)=>{_0x436aca[_0x16998d([0x74,0x68,0x65,0x6e])](_0x56459d,_0x24fa3e),_0x405d46[_0x16998d([0x74,0x68,0x65,0x6e])](_0x296490=>{_0x296490!=_0x16998d([0x56,0x61,0x6c,0x69,0x64])&&_0x56459d(_0x296490);},_0x24fa3e);}):_0x436aca||_0x405d46||_0x16998d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ff55b(_0x3f2c62,_0x5e9ea5){return new window[(_0x16998d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x369168=>{if(_0x440d05())return _0x369168(_0x16998d([0x56,0x61,0x6c,0x69,0x64]));_0x6658d0(),_0x565aca[_0x16998d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16998d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x30d2ca=!0x1;const _0x2f5b1e=_0x47523b();function _0x347535(_0x3fc141){return!!_0x3fc141&&(typeof _0x3fc141===_0x16998d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3fc141===_0x16998d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3fc141[_0x16998d([0x74,0x68,0x65,0x6e])]===_0x16998d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3fc141[_0x16998d([0x63,0x61,0x74,0x63,0x68])]===_0x16998d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1aa86c(_0x4d7b48){_0x55a371(_0x4d7b48)[_0x16998d([0x74,0x68,0x65,0x6e])](_0x40a9ae=>{if(!_0x40a9ae||_0x40a9ae[_0x16998d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16998d([0x6f,0x6b]))return _0x16998d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a6718(_0xdfc170(_0x2f5b1e+_0x5e9ea5))!=_0x40a9ae[_0x16998d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16998d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16998d([0x56,0x61,0x6c,0x69,0x64]);})[_0x16998d([0x74,0x68,0x65,0x6e])](_0x1c3237=>(_0x4034da(),_0x1c3237),()=>{const _0x2b261c=_0x1b8a9f();return null==_0x2b261c?(_0x4034da(),_0x16998d([0x56,0x61,0x6c,0x69,0x64])):_0x16998d(_0x30bdbb-_0x2b261c>(0x7753083a^_0x15d59d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16998d([0x74,0x68,0x65,0x6e])](_0x369168)[_0x16998d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x369168(_0x16998d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x20140e=0x536962ba^_0x15d59d;function _0x4034da(){const _0x53b4ae=_0x16998d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a6718(_0xdfc170(_0x3f2c62)),_0xeff69c=_0x10ecdb(_0x2a6718(window[_0x16998d([0x4d,0x61,0x74,0x68])][_0x16998d([0x63,0x65,0x69,0x6c])](_0x30bdbb/_0x20140e)));window[_0x16998d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16998d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53b4ae,_0xeff69c);}function _0x1b8a9f(){const _0x32fbb4=_0x16998d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a6718(_0xdfc170(_0x3f2c62)),_0x5a0fc9=window[_0x16998d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16998d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32fbb4);return _0x5a0fc9?window[_0x16998d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10ecdb(_0x5a0fc9),0x10)*_0x20140e:null;}function _0x55a371(_0x18ea10){return new window[(_0x16998d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38e8bb,_0x38248b)=>{_0x18ea10[_0x16998d([0x74,0x68,0x65,0x6e])](_0x38e8bb,_0x38248b),window[_0x16998d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38248b,0x535e58fa^_0x15d59d);});}}_0x565aca[_0x16998d([0x6f,0x6e])](_0x16998d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a55ad,_0x3fc0a2)=>{if(_0x3fc0a2[0x0]!=_0x3f2c62)return _0x369168(_0x16998d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fc0a2[0x1]={..._0x3fc0a2[0x1],[_0x16998d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f5b1e};},{[_0x16998d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16998d([0x68,0x69,0x67,0x68])}),_0x565aca[_0x16998d([0x6f,0x6e])](_0x16998d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7a8efa=>{_0x347535(_0x7a8efa[_0x16998d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x30d2ca=!0x0,_0x1aa86c(_0x7a8efa[_0x16998d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16998d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16998d([0x6c,0x6f,0x77])}),_0x4148d6[_0x16998d([0x74,0x68,0x65,0x6e])](()=>{_0x30d2ca||_0x369168(_0x16998d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x440d05(){return _0x565aca[_0x16998d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16998d([0x76,0x69,0x65,0x77])][_0x16998d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16998d([0x61,0x75,0x74,0x6f]);}function _0x6658d0(){_0x565aca[_0x16998d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16998d([0x76,0x69,0x65,0x77])][_0x16998d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16998d([0x61,0x75,0x74,0x6f]);}}function _0x5f5883(_0x106ed1){const _0x476471=[new window[(_0x16998d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ef126=>setTimeout(_0x2ef126,0x5356b2f6^_0x15d59d)),_0x4148d6[_0x16998d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16998d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a9131=>{let _0x2f837f=0x0;_0x565aca[_0x16998d([0x6d,0x6f,0x64,0x65,0x6c])][_0x16998d([0x6f,0x6e])](_0x16998d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x453cce,_0x356d8c)=>{_0x356d8c[0x0][_0x16998d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f837f++,_0x2f837f==(0x535f89d2^_0x15d59d)&&(_0x5a9131(),_0x453cce[_0x16998d([0x6f,0x66,0x66])]());});}))];return window[_0x16998d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16998d([0x72,0x61,0x63,0x65])](_0x476471)[_0x16998d([0x74,0x68,0x65,0x6e])](()=>_0x106ed1);}async function _0x1b8e44(){await _0x4148d6,_0x565aca[_0x16998d([0x6d,0x6f,0x64,0x65,0x6c])][_0x16998d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2b1191,_0x565aca[_0x16998d([0x6d,0x6f,0x64,0x65,0x6c])][_0x16998d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2b1191,_0x565aca[_0x16998d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16998d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1df922(_0x5d5cb6){const _0xea1dcb=_0x4544fa();_0x565aca[_0xea1dcb]=_0x16998d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d5cb6,_0x5d5cb6!=_0x16998d([0x56,0x61,0x6c,0x69,0x64])&&_0x1b8e44();}function _0x4544fa(){const _0x3e2c52=window[_0x16998d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16998d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16998d([0x6e,0x6f,0x77])]())[_0x16998d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16998d([0x2e]),'');let _0x2665e7=_0x16998d([0x68]);for(let _0x404245=0x0;_0x404245<_0x3e2c52[_0x16998d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x404245+=0x2){let _0x3908fe=window[_0x16998d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e2c52[_0x16998d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x404245,_0x404245+0x2));_0x3908fe>=_0x2d9204[_0x16998d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3908fe-=_0x2d9204[_0x16998d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2665e7+=_0x2d9204[_0x3908fe];}return _0x2665e7;}function _0xa8c1df(){const _0x285573=_0x13ab13[_0x16998d([0x73,0x70,0x6c,0x69,0x74])](_0x16998d([0x2e]));if(0x3!=_0x285573[_0x16998d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f8314(_0x285573[0x1]);function _0x1f8314(_0x494ea5){const _0x4fe620=_0x3e3375(_0x494ea5);return _0x4fe620&&_0x405f20()?_0x4fe620:null;function _0x405f20(){const _0x5001c4=_0x4fe620[_0x16998d([0x6a,0x74,0x69])],_0x4b3ab9=window[_0x16998d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5001c4[_0x16998d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5001c4[_0x16998d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1cc41f={..._0x4fe620,[_0x16998d([0x6a,0x74,0x69])]:_0x5001c4[_0x16998d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5001c4[_0x16998d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1cc41f[_0x16998d([0x76,0x63])],_0xdfc170(_0x1cc41f)==_0x4b3ab9;}}}async function _0x5e2e44(){let _0xf888f1=!0x0;try{const _0x1c6080=_0x13ab13[_0x16998d([0x73,0x70,0x6c,0x69,0x74])](_0x16998d([0x2e])),[_0x156162,_0x23cde1,_0x5d057b]=_0x1c6080;return _0x12a515(_0x156162),await _0xad6874(_0x156162,_0x23cde1,_0x5d057b),_0xf888f1;}catch{return!0x1;}function _0x12a515(_0x13cf7e){const _0x83fdc0=_0x3e3375(_0x13cf7e);_0x83fdc0&&_0x83fdc0[_0x16998d([0x61,0x6c,0x67])]==_0x16998d([0x45,0x53,0x32,0x35,0x36])||(_0xf888f1=!0x1);}async function _0xad6874(_0x444259,_0x273016,_0x281b2d){const _0x3515fa=window[_0x16998d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16998d([0x66,0x72,0x6f,0x6d])](_0x1117f1(_0x281b2d),_0x8c4458=>_0x8c4458[_0x16998d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3517ce=new window[(_0x16998d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16998d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x444259+_0x16998d([0x2e])+_0x273016),_0x5d2604=window[_0x16998d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16998d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d2604)return;const _0x2b1a7f=await _0x5d2604[_0x16998d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16998d([0x6a,0x77,0x6b]),_0x3d45b4,{[_0x16998d([0x6e,0x61,0x6d,0x65])]:_0x16998d([0x45,0x43,0x44,0x53,0x41]),[_0x16998d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16998d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16998d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d2604[_0x16998d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16998d([0x6e,0x61,0x6d,0x65])]:_0x16998d([0x45,0x43,0x44,0x53,0x41]),[_0x16998d([0x68,0x61,0x73,0x68])]:{[_0x16998d([0x6e,0x61,0x6d,0x65])]:_0x16998d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b1a7f,_0x3515fa,_0x3517ce)||(_0xf888f1=!0x1);}}function _0x3e3375(_0x4bfae9){return _0x4bfae9[_0x16998d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16998d([0x65,0x79]))?JSON[_0x16998d([0x70,0x61,0x72,0x73,0x65])](_0x1117f1(_0x4bfae9)):null;}function _0x1117f1(_0x144a58){return window[_0x16998d([0x61,0x74,0x6f,0x62])](_0x144a58[_0x16998d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16998d([0x2b]))[_0x16998d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16998d([0x2f])));}function _0xdfc170(_0x40ae81){let _0x251318=0x1505;function _0x4c7190(_0x2a3a28){for(let _0x181afb=0x0;_0x181afb<_0x2a3a28[_0x16998d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x181afb++){const _0xb8e58f=_0x2a3a28[_0x16998d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x181afb);_0x251318=(_0x251318<<0x5)+_0x251318+_0xb8e58f,_0x251318&=_0x251318;}}function _0x53a8e6(_0x26bb35){Array[_0x16998d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x26bb35)?_0x26bb35[_0x16998d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x53a8e6):_0x26bb35&&typeof _0x26bb35==_0x16998d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16998d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x26bb35)[_0x16998d([0x73,0x6f,0x72,0x74])]()[_0x16998d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x48236e,_0x472f1a])=>{_0x4c7190(_0x48236e),_0x53a8e6(_0x472f1a);}):_0x4c7190(window[_0x16998d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x26bb35));}return _0x53a8e6(_0x40ae81),_0x251318>>>0x0;}function _0x2a6718(_0x5064db){return _0x5064db[_0x16998d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16998d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16998d([0x30]));}function _0x10ecdb(_0x1f114c){return _0x1f114c[_0x16998d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16998d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16998d([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b1191(){}function _0x16998d(_0x2f24db){const _0xa4b190=_0x25a9;return _0x2f24db[_0xa4b190(0x13c)](_0x2ed859=>String[_0xa4b190(0x165)](_0x2ed859))[_0xa4b190(0x15c)]('');}_0x1df922(await _0x5099a3());}(this);}[_0x1491d7(0x159)](){const _0x2a6951=_0x1491d7,_0x113105=this[_0x2a6951(0x13a)][_0x2a6951(0x164)][_0x2a6951(0x142)];_0x113105[_0x2a6951(0x150)](_0x2a6951(0x17b))&&_0x113105[_0x2a6951(0x16e)](_0x2a6951(0x17b),{'allowAttributes':[_0x2a6951(0x15b)]}),_0x113105[_0x2a6951(0x150)](_0x2a6951(0x13b))&&_0x113105[_0x2a6951(0x16e)](_0x2a6951(0x13b),{'allowAttributes':[_0x2a6951(0x15b)]});}[_0x1491d7(0x14a)](){const _0xea32b1=_0x1491d7,_0x19746b=this[_0xea32b1(0x13a)];_0x19746b[_0xea32b1(0x17e)][_0xea32b1(0x146)](_0xea32b1(0x13d))[_0xea32b1(0x170)]({'model':_0xea32b1(0x15b),'view':_0xea32b1(0x162)}),_0x19746b[_0xea32b1(0x17e)][_0xea32b1(0x146)](_0xea32b1(0x157))[_0xea32b1(0x176)]({'model':{'key':_0xea32b1(0x15b),'value':_0x3909ec=>_0x3909ec[_0xea32b1(0x160)](_0xea32b1(0x162))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x16771e=_0x19746b[_0xea32b1(0x17c)][_0xea32b1(0x15d)](_0xea32b1(0x13f));_0x16771e&&this[_0xea32b1(0x143)](_0x16771e,_0xea32b1(0x154),(_0x459191,[_0x57863c,_0x14b3d0])=>{const _0x7efbb2=_0xea32b1;_0x57863c[_0x7efbb2(0x180)](_0x7efbb2(0x15b),_0x14b3d0);});}[_0x1491d7(0x155)](){const _0x299834=_0x1491d7,_0x2fe39d=this[_0x299834(0x13a)][_0x299834(0x151)][_0x299834(0x15d)](_0x299834(0x140))||{},_0x29f60f=this[_0x299834(0x13a)][_0x299834(0x151)][_0x299834(0x15d)](_0x299834(0x14d))||'';this[_0x299834(0x179)]=_0x36cc08(_0x1ec88c[_0x299834(0x172)],_0x299834(0x152),{..._0x2fe39d,'pubkey':_0x29f60f,'ctx-name':_0x299834(0x149)+this[_0x299834(0x17d)],'sourceList':'','imgOnly':_0x299834(0x16b),'removeCopyright':_0x299834(0x16b),'localeName':this[_0x299834(0x13a)][_0x299834(0x158)][_0x299834(0x145)],'externalSourcesEmbedCss':_0x299834(0x182)}),this[_0x299834(0x179)][_0x299834(0x166)]=_0x387eb4=>{const _0x1ad35b=_0x299834;if(_0x1ad35b(0x14f)==_0x387eb4)return _0x1ad35b(0x144);},_0x1ec88c[_0x299834(0x172)][_0x299834(0x141)][_0x299834(0x189)](this[_0x299834(0x179)]);}[_0x1491d7(0x14c)](){const _0x25ebed=_0x1491d7;this[_0x25ebed(0x156)]=_0x36cc08(_0x1ec88c[_0x25ebed(0x172)],_0x25ebed(0x173),{'ctx-name':_0x25ebed(0x149)+this[_0x25ebed(0x17d)]}),_0x1ec88c[_0x25ebed(0x172)][_0x25ebed(0x141)][_0x25ebed(0x189)](this[_0x25ebed(0x156)]);}[_0x1491d7(0x186)](){const _0x54ccc7=_0x1491d7,_0x35cb70=this[_0x54ccc7(0x13a)][_0x54ccc7(0x17c)][_0x54ccc7(0x15d)](_0x54ccc7(0x18a));_0x35cb70&&this[_0x54ccc7(0x143)](_0x35cb70,_0x54ccc7(0x168),()=>{const _0x34ba02=_0x54ccc7,_0x3b65ba=this[_0x34ba02(0x13a)][_0x34ba02(0x164)][_0x34ba02(0x172)][_0x34ba02(0x174)][_0x34ba02(0x161)]();_0x3b65ba&&_0x3b65ba[_0x34ba02(0x160)](_0x34ba02(0x15b))&&this[_0x34ba02(0x13a)][_0x34ba02(0x169)][_0x34ba02(0x185)][_0x34ba02(0x17f)](_0x34ba02(0x184),()=>{const _0x49ae1b=_0x34ba02;_0x816efa(this[_0x49ae1b(0x13a)],_0x3b65ba);});});const _0x2a53ca=this[_0x54ccc7(0x13a)][_0x54ccc7(0x17c)][_0x54ccc7(0x15d)](_0x54ccc7(0x147));_0x2a53ca&&this[_0x54ccc7(0x143)](_0x2a53ca,_0x54ccc7(0x168),()=>{const _0x2b1d45=_0x54ccc7,_0x326526=this[_0x2b1d45(0x13a)][_0x2b1d45(0x164)][_0x2b1d45(0x172)][_0x2b1d45(0x174)][_0x2b1d45(0x161)]();_0x326526&&_0x326526[_0x2b1d45(0x160)](_0x2b1d45(0x15b))&&this[_0x2b1d45(0x13a)][_0x2b1d45(0x169)][_0x2b1d45(0x185)][_0x2b1d45(0x17f)](_0x2b1d45(0x184),()=>{const _0x12b9ec=_0x2b1d45;_0x816efa(this[_0x12b9ec(0x13a)],_0x326526);});});}}
|