@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.8 → 46.0.1-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x43cf72,Command as _0x4d8fff}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5c5c1b,IconGooglePhotos as _0x1da6b7,IconGoogleDrive as _0x2c2095,IconFacebook as _0x197465,IconDropbox as _0x40d40b,IconUploadcareLink as _0x33a6b4,IconUploadcareImageUpload as _0x19afa8,IconError as _0x354c6d,IconUploadcareImageEdit as _0x4962bb}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x28dc2a,MenuBarMenuListItemButtonView as _0x11cb19,View as _0x4ecb53,FocusCycler as _0x51369d,Dialog as _0x24aa98,DialogViewPosition as _0x1e2d84,SpinnerView as _0x33eedb,IconView as _0x396388,Notification as _0xeb61f2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x14b0a0,DomEmitterMixin as _0x330361,global as _0x12cd30,getAncestors as _0x2cb109,ObservableMixin as _0x276f36,uid as _0x492ce0,createElement as _0x413b6e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x530362}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x46c2ab,info as _0xcd5d16}from'@uploadcare/upload-client';import*as _0xd5b6cc from'@uploadcare/file-uploader';var i=function(_0x9926e8){return _0x9926e8['Local']='local',_0x9926e8['URL']='url',_0x9926e8['Dropbox']='dropbox',_0x9926e8['GDrive']='gdrive',_0x9926e8['Facebook']='facebook',_0x9926e8['GPhotos']='gphotos',_0x9926e8['OneDrive']='onedrive',_0x9926e8;}({});function _(_0x969479,_0x5794e9,_0x156270){const t=_0x969479['t'],_0x48653e=_0x969479['t'];switch(_0x5794e9){case i['Local']:return{'text':_0x48653e('Insert'===_0x156270?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x48653e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x156270?_0x48653e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x48653e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x156270?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x156270?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x156270?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x156270?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x156270?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5794e9;}}class e extends _0x43cf72{['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 _0xe34887=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3f9b3c;for(const _0x27c9c3 in _0xe34887){const _0x574981=_0x27c9c3,_0x510145=_0xe34887[_0x574981];if('uploadcareLicenseKeyValid'==_0x510145||'uploadcareLicenseKeyInvalid'==_0x510145||'uploadcareLicenseKeyExpired'==_0x510145||'uploadcareLicenseKeyDomainLimit'==_0x510145||'uploadcareLicenseKeyNotAllowed'==_0x510145||'uploadcareLicenseKeyEvaluationLimit'==_0x510145||'uploadcareLicenseKeyTrialLimit'==_0x510145||'uploadcareLicenseKeyUsageLimit'==_0x510145){delete _0xe34887[_0x574981],_0x3f9b3c=_0x510145,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3f9b3c&&_0xe34887['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3f9b3c&&_0xe34887['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3f9b3c&&_0xe34887['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3f9b3c&&_0xe34887['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3f9b3c&&_0xe34887['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3f9b3c&&_0xe34887['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3f9b3c&&_0xe34887['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x33e6cb}=this,_0x52c04d=_0x33e6cb['commands']['get']('uploadcare');if(!_0x52c04d)return;const _0x3bf407=this['_normalizeConfigSourceList'](_0x33e6cb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1e40d5,_0x3dceac)=>{const _0x43618c=this['_getIntegrationKey'](_0x3dceac['type']);return _0x1e40d5[_0x43618c]||(_0x1e40d5[_0x43618c]=[]),_0x1e40d5[_0x43618c]['push'](_0x3dceac),_0x1e40d5;},{});_0x33e6cb['plugins']['has']('ImageInsertUI')&&_0x33e6cb['commands']['get']('uploadcare')&&Object['entries'](_0x3bf407)['forEach'](([_0x571a39,_0x3e72e3])=>{_0x33e6cb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x571a39,'observable':()=>_0x52c04d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3e72e3),'formViewCreator':()=>this['_createDropdownButtons'](_0x3e72e3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3e72e3),'override':'assetManager'!==_0x571a39});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5a083f){const {locale:_0x178ef5}=this['editor'];return _0x5a083f['map'](_0x198128=>{const _0x5b5a10=_(_0x178ef5,_0x198128,'Insert');switch(_0x198128){case i['Local']:return{'icon':_0x19afa8,'type':i['Local'],..._0x5b5a10};case i['URL']:return{'icon':_0x33a6b4,'type':i['URL'],..._0x5b5a10};case i['Dropbox']:return{'icon':_0x40d40b,'type':i['Dropbox'],..._0x5b5a10};case i['Facebook']:return{'icon':_0x197465,'type':i['Facebook'],..._0x5b5a10};case i['GDrive']:return{'icon':_0x2c2095,'type':i['GDrive'],..._0x5b5a10};case i['GPhotos']:return{'icon':_0x1da6b7,'type':i['GPhotos'],..._0x5b5a10};case i['OneDrive']:return{'icon':_0x5c5c1b,'type':i['OneDrive'],..._0x5b5a10};}});}['_getIntegrationKey'](_0x252959){switch(_0x252959){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5d75d6,_0x3b388e){const _0x280e0e=this['editor'],_0x1d8d56=new _0x5d75d6(_0x280e0e['locale']),_0x1a5c31=_0x280e0e['commands']['get']('uploadcare');return _0x1d8d56['bind']('isEnabled')['to'](_0x1a5c31),_0x1d8d56['on']('execute',()=>{_0x1a5c31['execute'](_0x3b388e);}),_0x1d8d56;}['_createToolbarButton'](_0x19b53c){const {locale:_0x10f7af}=this['editor'],_0x167500=this['editor']['plugins']['get']('ImageInsertUI'),_0x451d93=_0x19b53c[0x0],_0x4eb719=this['_createButton'](_0x28dc2a,_0x451d93['type']);return _0x4eb719['icon']=_0x451d93['icon'],_0x4eb719['bind']('label')['to'](_0x167500,'isImageSelected',_0x3e918b=>_(_0x10f7af,_0x451d93['type'],_0x3e918b?'Replace':'Insert')['text']),_0x4eb719['tooltip']=!0x0,_0x4eb719;}['_createDropdownButtons'](_0x14c929){const {locale:_0x3eb3ba}=this['editor'],_0x247765=this['editor']['plugins']['get']('ImageInsertUI');return _0x14c929['map'](_0x8c772b=>{const _0x476524=this['_createButton'](_0x28dc2a,_0x8c772b['type']);return _0x476524['withText']=!0x0,_0x476524['icon']=_0x8c772b['icon'],_0x476524['bind']('label')['to'](_0x247765,'isImageSelected',_0x464ccb=>_(_0x3eb3ba,_0x8c772b['type'],_0x464ccb?'Replace':'Insert')['text']),_0x476524;});}['_createMenuBarButtons'](_0x3cae02){return _0x3cae02['map'](_0x34c291=>{const _0x52b6b1=this['_createButton'](_0x11cb19,_0x34c291['type']);return _0x52b6b1['icon']=_0x34c291['icon'],_0x52b6b1['label']=_0x34c291['shortText'],_0x52b6b1;});}}class F extends _0x4ecb53{['focusTracker'];['focusCycler'];constructor(_0x2497b8){super(_0x2497b8),this['focusTracker']=new _0x14b0a0(),this['focusCycler']=new _0x51369d({'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(_0x326799,_0x4cd5b4){super(_0x326799),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-'+_0x4cd5b4}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x24a0dd,_0x9b6ff8){const _0x121386=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4b9a7a=>_0x4b9a7a<=_0x9b6ff8)['map'](_0x39eb20=>_0x24a0dd['replace'](/\/$/,'')+'/-/resize/'+_0x39eb20+'x/\x20'+_0x39eb20+'w');return{'imageFallbackUrl':_0x24a0dd,'imageSources':[{'srcset':_0x121386['join'](',\x20'),'sizes':'(max-width:\x20'+_0x9b6ff8+'px)\x20100vw,\x20'+_0x9b6ff8+'px','type':'image/webp'}]};}function C(_0x7164ec,_0x3e1b23,_0x338713){const _0x279ba0=_0x7164ec['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x279ba0?parseInt(_0x279ba0[0x1],0xa):_0x3e1b23,'height':_0x279ba0?parseInt(_0x279ba0[0x2],0xa):_0x338713};}function p(_0x5a107d,_0x5de115){const _0x2d05ba=new(_0x330361())(),_0x4c3d6c=_0x5a107d['plugins']['get']('ImageUtils'),_0x441f91=_0x5a107d['editing']['mapper']['toViewElement'](_0x5de115),_0x2c0e09=_0x4c3d6c['findViewImgElement'](_0x441f91),_0x3d71cd=_0x5a107d['editing']['view']['domConverter']['viewToDom'](_0x2c0e09),_0x593470=_0x5de115['getAttribute']('width'),_0x1b7aba=_0x5de115['getAttribute']('height'),_0x472940='image-processing';_0x5a107d['editing']['view']['change'](_0x9d4508=>{_0x9d4508['addClass'](_0x472940,_0x441f91),_0x9d4508['setStyle']('aspect-ratio',_0x593470+'/'+_0x1b7aba,_0x2c0e09);}),_0x2d05ba['listenTo'](_0x3d71cd,'load',()=>{_0x2d05ba['stopListening'](_0x3d71cd,'load'),_0x5a107d['editing']['view']['change'](_0x407b73=>{_0x407b73['removeClass'](_0x472940,_0x441f91),_0x407b73['removeStyle']('aspect-ratio',_0x2c0e09);});});}function G(_0x3a2282){if(Array['isArray'](_0x3a2282)){const _0x146de3=_0x3a2282['map'](G);return _0x305fd5=>_0x146de3['some'](_0x21d0d9=>_0x21d0d9(_0x305fd5));}if('origin'==_0x3a2282){const _0x27d6ac=_0x12cd30['window']['location']['origin'];return _0x529252=>new URL(_0x529252,_0x12cd30['document']['baseURI'])['origin']==_0x27d6ac;}return'function'==typeof _0x3a2282?_0x3a2282:_0x3a2282 instanceof RegExp?_0x5d7443=>!(!_0x5d7443['match'](_0x3a2282)&&!_0x5d7443['replace'](/^https?:\/\//,'')['match'](_0x3a2282)):()=>!0x1;}function S(_0x512b91,_0x542e27){return _0x2cb109(_0x512b91['target'])['includes'](_0x542e27);}class n extends/* #__PURE__ -- @preserve */
24
- _0x276f36(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1cad7b,_0x2380f1,_0x26fe8b){super(),this['_editor']=_0x1cad7b,this['_editing']=_0x2380f1,this['_dialog']=_0x1cad7b['plugins']['get'](_0x24aa98),this['_api']=_0x2380f1['ctxElement']['getAPI'](),this['_type']=_0x26fe8b,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:_0x11c4c3,model:_0x1469bb}=this['_editor'],_0x29e4d3=_0x1469bb['document']['selection']['getSelectedElement'](),_0x4073d8=_0x29e4d3&&(_0x29e4d3['is']('element','imageBlock')||_0x29e4d3['is']('element','imageInline'));this['_formView']=new x(_0x11c4c3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x19afa8,'title':_(_0x11c4c3,this['_type'],_0x4073d8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1e2d84['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x14efb2=>!S(_0x14efb2,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5aad91}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x28e1cd=>{const _0x282994=_0x5aad91['length'];for(const _0x4405d1 of _0x5aad91){const _0x5d6a51=_0x4405d1===_0x5aad91[_0x282994-0x1],{cdnUrl:_0x126598,fileInfo:_0xc728d3}=_0x4405d1;if(!_0x126598||!_0xc728d3)continue;const {width:_0x1eb1cb,height:_0x2cf94a}=_0xc728d3['imageInfo'],_0x1de7f0=C(_0x126598,_0x1eb1cb,_0x2cf94a),_0x46a5c6=k(_0x126598,_0x1de7f0['width']),_0x37ff85={'id':_0xc728d3['uuid'],'type':'image','attributes':{'imageDimension':_0x1de7f0,..._0x46a5c6}};this['_insertAsset'](_0x37ff85,_0x5d6a51,_0x28e1cd);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5cf979=>{'idle'===_0x5cf979['detail']['status']&&!_0x5cf979['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1bba1,_0x526b9a,_0x2ee444){const _0x568c7c=this['_editor']['model']['document']['selection'],_0x2bc4ca=_0x568c7c['getSelectedElement'](),_0x5164fe=!(!_0x2bc4ca||!_0x2bc4ca['is']('element','imageInline'));_0x2ee444['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1bba1,_0x5164fe),_0x526b9a||_0x2ee444['setSelection'](_0x568c7c['getLastPosition']());}['_insertImage'](_0x2edf4e,_0x364ec4){const _0x2c9cf9=this['_editor'],{imageDimension:_0x2df44b,imageFallbackUrl:_0x1197aa,imageSources:_0x2926f1}=_0x2edf4e['attributes'];_0x2c9cf9['execute']('insertImage',{'imageType':_0x364ec4?'imageInline':null,'source':{'uploadcareImageId':_0x2edf4e['id'],'src':_0x1197aa,'sources':_0x2926f1,..._0x2df44b}});}}class w extends _0x4d8fff{['_editing'];['_controller']=null;static get['requires'](){return[_0x24aa98,o];}constructor(_0x24b444){super(_0x24b444),this['_editing']=_0x24b444['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x25d3d3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x25d3d3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1f00d8,publicKey:_0x1f3aa4,signal:_0x226cca,onProgress:_0x33edc4}){return _0x46c2ab(_0x1f00d8,{'publicKey':_0x1f3aa4,'store':'auto','signal':_0x226cca,'onProgress':_0x33edc4});}static['getInfo'](_0x27185e,_0x57fa99){return _0xcd5d16(_0x27185e,_0x57fa99);}}class f extends _0x43cf72{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x530362,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x10b146=this['editor'];if(!!!_0x10b146['config']['get']('uploadcare'))return;_0x10b146['plugins']['get'](_0x530362)['createUploadAdapter']=_0x563b92=>new A(_0x563b92,_0x10b146),_0x10b146['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1fb5e9,{imageElement:_0x27dfe7,data:_0x4d037a})=>{_0x10b146['model']['change'](_0x141681=>{_0x141681['setAttribute']('uploadcareImageId',_0x4d037a['uploadcareImageId'],_0x27dfe7);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x273840,_0x1d52d2){this['loader']=_0x273840,this['editor']=_0x1d52d2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4fbb4d=this['editor']['config']['get']('uploadcare.pubkey'),_0x3bb5c8=await this['loader']['file'];return j['upload']({'file':_0x3bb5c8,'publicKey':_0x4fbb4d,'signal':this['controller']['signal'],'onProgress':_0x49d3a6=>{_0x49d3a6&&_0x49d3a6['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x49d3a6['value']);}})['then'](async _0x521b68=>{const {imageFallbackUrl:_0x3a0dec,imageSources:_0xc10cc}=k(_0x521b68['cdnUrl'],_0x521b68['imageInfo']['width']);return{'uploadcareImageId':_0x521b68['uuid'],'default':_0x3a0dec,'sources':_0xc10cc};})['catch'](()=>{const _0x1f69cd=t('Cannot\x20upload\x20file:')+('\x20'+_0x3bb5c8['name']+'.');return Promise['reject'](_0x1f69cd);});}['abort'](){this['controller']['abort']();}}class o extends _0x43cf72{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x24aa98];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3fee88){super(_0x3fee88),this['ucContextId']=_0x492ce0();}['init'](){const _0x49d113=this['editor'];_0x49d113['commands']['add']('uploadcare',new w(_0x49d113));}['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 _0x1dfa1b=_0x12cd30['document']['querySelector']('input[uploadcare-file-input]');_0x1dfa1b&&_0x1dfa1b['remove']();}),async function(_0x55a452){const _0x48954e=_0x2e76ba([0x55,0x57,0x4d,0x36,0x50,0x56,0x79,0x75,0x4b,0x63,0x6d,0x5a,0x77,0x32,0x6c,0x59,0x52,0x6f,0x74,0x42,0x4e,0x45,0x6b,0x49,0x31,0x41,0x78,0x43,0x58,0x53,0x47,0x39,0x61,0x30,0x67,0x37,0x73,0x72,0x66,0x4f,0x46,0x4a,0x76,0x6a,0x48,0x33,0x62,0x64,0x68,0x44,0x70,0x65,0x34,0x4c,0x7a,0x35,0x6e,0x38,0x71,0x54,0x69,0x51]),_0x268670=0xedc7fa3,_0x667850=0xedb1013^_0x268670,_0xd9546c=window[_0x2e76ba([0x44,0x61,0x74,0x65])][_0x2e76ba([0x6e,0x6f,0x77])](),_0x204ff6=_0x55a452[_0x2e76ba([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d643e=new window[(_0x2e76ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46dd5c=>{_0x204ff6[_0x2e76ba([0x6f,0x6e,0x63,0x65])](_0x2e76ba([0x72,0x65,0x61,0x64,0x79]),_0x46dd5c);}),_0x57925e={[_0x2e76ba([0x6b,0x74,0x79])]:_0x2e76ba([0x45,0x43]),[_0x2e76ba([0x75,0x73,0x65])]:_0x2e76ba([0x73,0x69,0x67]),[_0x2e76ba([0x63,0x72,0x76])]:_0x2e76ba([0x50,0x2d,0x32,0x35,0x36]),[_0x2e76ba([0x78])]:_0x2e76ba([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]),[_0x2e76ba([0x79])]:_0x2e76ba([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]),[_0x2e76ba([0x61,0x6c,0x67])]:_0x2e76ba([0x45,0x53,0x32,0x35,0x36])},_0x1e1ada=_0x204ff6[_0x2e76ba([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e76ba([0x67,0x65,0x74])](_0x2e76ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f391a(){let _0x4d56aa,_0x4df8e3=null,_0x5c19ea=null;try{if(_0x1e1ada==_0x2e76ba([0x47,0x50,0x4c]))return _0x2e76ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d56aa=_0x5a5499(),!_0x4d56aa)return _0x2e76ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d56aa[_0x2e76ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c19ea=_0x593550(_0x4d56aa[_0x2e76ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d56aa[_0x2e76ba([0x6a,0x74,0x69])])),await _0x3c5c79()?_0x1c8830()?_0x5a0535()?_0x2e76ba([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x10c991()?(_0x4d56aa[_0x2e76ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e76ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4df8e3=_0x15cb02(_0x2e76ba([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4d56aa[_0x2e76ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e76ba([0x74,0x72,0x69,0x61,0x6c])&&(_0x4df8e3=_0x15cb02(_0x2e76ba([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x465703()):_0x2e76ba([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e76ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e76ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2e76ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a0535(){const _0x37b48e=[_0x2e76ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e76ba([0x74,0x72,0x69,0x61,0x6c])][_0x2e76ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d56aa[_0x2e76ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd9546c/0x3e8:0xe10*_0x667850;return _0x4d56aa[_0x2e76ba([0x65,0x78,0x70])]<_0x37b48e;}function _0x1c8830(){const _0x307221=_0x4d56aa[_0x2e76ba([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x307221&&(!!_0x307221[_0x2e76ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e76ba([0x2a]))||!!_0x307221[_0x2e76ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e76ba([0x55,0x50,0x4c,0x43])));}function _0x10c991(){const _0x15ae9f=_0x4d56aa[_0x2e76ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x15ae9f||0x0==_0x15ae9f[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f8333}=new URL(window[_0x2e76ba([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x15ae9f[_0x2e76ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f8333))return!0x0;const _0x1c73fa=_0x1f8333[_0x2e76ba([0x73,0x70,0x6c,0x69,0x74])](_0x2e76ba([0x2e]));return _0x15ae9f[_0x2e76ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51620b=>_0x51620b[_0x2e76ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e76ba([0x2a])))[_0x2e76ba([0x6d,0x61,0x70])](_0x188adc=>_0x188adc[_0x2e76ba([0x73,0x70,0x6c,0x69,0x74])](_0x2e76ba([0x2e])))[_0x2e76ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28213c=>_0x28213c[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1c73fa[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e76ba([0x6d,0x61,0x70])](_0x417f59=>Array(_0x1c73fa[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x417f59[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e76ba([0x66,0x69,0x6c,0x6c])](_0x417f59[0x0]===_0x2e76ba([0x2a])?_0x2e76ba([0x2a]):'')[_0x2e76ba([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x417f59))[_0x2e76ba([0x73,0x6f,0x6d,0x65])](_0x42f12e=>_0x1c73fa[_0x2e76ba([0x65,0x76,0x65,0x72,0x79])]((_0x288061,_0x5331ce)=>_0x42f12e[_0x5331ce]===_0x288061||_0x42f12e[_0x5331ce]===_0x2e76ba([0x2a])));}function _0x465703(){return _0x4df8e3&&_0x5c19ea?new window[(_0x2e76ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20d6c0,_0x9f92e7)=>{_0x4df8e3[_0x2e76ba([0x74,0x68,0x65,0x6e])](_0x20d6c0,_0x9f92e7),_0x5c19ea[_0x2e76ba([0x74,0x68,0x65,0x6e])](_0x4b1dc9=>{_0x4b1dc9!=_0x2e76ba([0x56,0x61,0x6c,0x69,0x64])&&_0x20d6c0(_0x4b1dc9);},_0x9f92e7);}):_0x4df8e3||_0x5c19ea||_0x2e76ba([0x56,0x61,0x6c,0x69,0x64]);}}function _0x593550(_0x5574ab,_0x489333){return new window[(_0x2e76ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1553ec=>{if(_0x245b5f())return _0x1553ec(_0x2e76ba([0x56,0x61,0x6c,0x69,0x64]));_0x49c22f(),_0x204ff6[_0x2e76ba([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e76ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23d2a4=!0x1;const _0x41cf21=_0x492ce0();function _0x45e90d(_0x2ef9e6){return!!_0x2ef9e6&&(typeof _0x2ef9e6===_0x2e76ba([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ef9e6===_0x2e76ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ef9e6[_0x2e76ba([0x74,0x68,0x65,0x6e])]===_0x2e76ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ef9e6[_0x2e76ba([0x63,0x61,0x74,0x63,0x68])]===_0x2e76ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2044da(_0xb4bdb8){_0x5886ff(_0xb4bdb8)[_0x2e76ba([0x74,0x68,0x65,0x6e])](_0x4d6fae=>{if(!_0x4d6fae||_0x4d6fae[_0x2e76ba([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e76ba([0x6f,0x6b]))return _0x2e76ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35fe63(_0x3c3add(_0x41cf21+_0x489333))!=_0x4d6fae[_0x2e76ba([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e76ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e76ba([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e76ba([0x74,0x68,0x65,0x6e])](_0x130af9=>(_0x52fac3(),_0x130af9),()=>{const _0x54fd01=_0x15c63c();return null==_0x54fd01?(_0x52fac3(),_0x2e76ba([0x56,0x61,0x6c,0x69,0x64])):_0x2e76ba(_0xd9546c-_0x54fd01>(0x2ad0fba3^_0x268670)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e76ba([0x74,0x68,0x65,0x6e])](_0x1553ec)[_0x2e76ba([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1553ec(_0x2e76ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xeec471=0xeea9123^_0x268670;function _0x52fac3(){const _0x215a87=_0x2e76ba([0x6c,0x6c,0x63,0x74,0x2d])+_0x35fe63(_0x3c3add(_0x5574ab)),_0x2aa8eb=_0x16b9c1(_0x35fe63(window[_0x2e76ba([0x4d,0x61,0x74,0x68])][_0x2e76ba([0x63,0x65,0x69,0x6c])](_0xd9546c/_0xeec471)));window[_0x2e76ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e76ba([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x215a87,_0x2aa8eb);}function _0x15c63c(){const _0x156ac6=_0x2e76ba([0x6c,0x6c,0x63,0x74,0x2d])+_0x35fe63(_0x3c3add(_0x5574ab)),_0x2680c4=window[_0x2e76ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e76ba([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x156ac6);return _0x2680c4?window[_0x2e76ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16b9c1(_0x2680c4),0x10)*_0xeec471:null;}function _0x5886ff(_0x5948c0){return new window[(_0x2e76ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7066ff,_0x22e483)=>{_0x5948c0[_0x2e76ba([0x74,0x68,0x65,0x6e])](_0x7066ff,_0x22e483),window[_0x2e76ba([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22e483,0xeddab63^_0x268670);});}}_0x204ff6[_0x2e76ba([0x6f,0x6e])](_0x2e76ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x572ef3,_0x423d37)=>{if(_0x423d37[0x0]!=_0x5574ab)return _0x1553ec(_0x2e76ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x423d37[0x1]={..._0x423d37[0x1],[_0x2e76ba([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41cf21};},{[_0x2e76ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e76ba([0x68,0x69,0x67,0x68])}),_0x204ff6[_0x2e76ba([0x6f,0x6e])](_0x2e76ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x498329=>{_0x45e90d(_0x498329[_0x2e76ba([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23d2a4=!0x0,_0x2044da(_0x498329[_0x2e76ba([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e76ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e76ba([0x6c,0x6f,0x77])}),_0x1d643e[_0x2e76ba([0x74,0x68,0x65,0x6e])](()=>{_0x23d2a4||_0x1553ec(_0x2e76ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x245b5f(){return _0x204ff6[_0x2e76ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e76ba([0x76,0x69,0x65,0x77])][_0x2e76ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e76ba([0x61,0x75,0x74,0x6f]);}function _0x49c22f(){_0x204ff6[_0x2e76ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e76ba([0x76,0x69,0x65,0x77])][_0x2e76ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e76ba([0x61,0x75,0x74,0x6f]);}}function _0x15cb02(_0x2701cf){const _0x3a78f8=[new window[(_0x2e76ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c1e80=>setTimeout(_0x1c1e80,0xed5416f^_0x268670)),_0x1d643e[_0x2e76ba([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e76ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4594e8=>{let _0x25de2d=0x0;_0x204ff6[_0x2e76ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e76ba([0x6f,0x6e])](_0x2e76ba([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1918ba,_0x4e8ed9)=>{_0x4e8ed9[0x0][_0x2e76ba([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x25de2d++,_0x25de2d==(0xedc7e5b^_0x268670)&&(_0x4594e8(),_0x1918ba[_0x2e76ba([0x6f,0x66,0x66])]());});}))];return window[_0x2e76ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e76ba([0x72,0x61,0x63,0x65])](_0x3a78f8)[_0x2e76ba([0x74,0x68,0x65,0x6e])](()=>_0x2701cf);}async function _0x2e66c6(){await _0x1d643e,_0x204ff6[_0x2e76ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e76ba([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x429094,_0x204ff6[_0x2e76ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e76ba([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x429094,_0x204ff6[_0x2e76ba([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e76ba([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b5b51(_0x3ac033){const _0x5575ab=_0x5141d1();_0x204ff6[_0x5575ab]=_0x2e76ba([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ac033,_0x3ac033!=_0x2e76ba([0x56,0x61,0x6c,0x69,0x64])&&_0x2e66c6();}function _0x5141d1(){const _0xdf75e1=window[_0x2e76ba([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e76ba([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e76ba([0x6e,0x6f,0x77])]())[_0x2e76ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e76ba([0x2e]),'');let _0xa8dc13=_0x2e76ba([0x55]);for(let _0x84f7a6=0x0;_0x84f7a6<_0xdf75e1[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x84f7a6+=0x2){let _0x59733b=window[_0x2e76ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdf75e1[_0x2e76ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x84f7a6,_0x84f7a6+0x2));_0x59733b>=_0x48954e[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x59733b-=_0x48954e[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa8dc13+=_0x48954e[_0x59733b];}return _0xa8dc13;}function _0x5a5499(){const _0x11e04c=_0x1e1ada[_0x2e76ba([0x73,0x70,0x6c,0x69,0x74])](_0x2e76ba([0x2e]));if(0x3!=_0x11e04c[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xdcf294(_0x11e04c[0x1]);function _0xdcf294(_0x18849f){const _0x1d3af6=_0x3e6a58(_0x18849f);return _0x1d3af6&&_0x3ded13()?_0x1d3af6:null;function _0x3ded13(){const _0xaeb981=_0x1d3af6[_0x2e76ba([0x6a,0x74,0x69])],_0x55f661=window[_0x2e76ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xaeb981[_0x2e76ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xaeb981[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4aa87d={..._0x1d3af6,[_0x2e76ba([0x6a,0x74,0x69])]:_0xaeb981[_0x2e76ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xaeb981[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4aa87d[_0x2e76ba([0x76,0x63])],_0x3c3add(_0x4aa87d)==_0x55f661;}}}async function _0x3c5c79(){let _0x2cde86=!0x0;try{const _0x140ffe=_0x1e1ada[_0x2e76ba([0x73,0x70,0x6c,0x69,0x74])](_0x2e76ba([0x2e])),[_0x53dc34,_0x3821cc,_0x40a0f1]=_0x140ffe;return _0x1bd1fa(_0x53dc34),await _0x526f82(_0x53dc34,_0x3821cc,_0x40a0f1),_0x2cde86;}catch{return!0x1;}function _0x1bd1fa(_0xecc6df){const _0x5b7a48=_0x3e6a58(_0xecc6df);_0x5b7a48&&_0x5b7a48[_0x2e76ba([0x61,0x6c,0x67])]==_0x2e76ba([0x45,0x53,0x32,0x35,0x36])||(_0x2cde86=!0x1);}async function _0x526f82(_0x1dab47,_0x5ebf95,_0x5104ce){const _0x10f359=window[_0x2e76ba([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e76ba([0x66,0x72,0x6f,0x6d])](_0x3dde96(_0x5104ce),_0x29e026=>_0x29e026[_0x2e76ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3c4609=new window[(_0x2e76ba([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e76ba([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1dab47+_0x2e76ba([0x2e])+_0x5ebf95),_0x53fd20=window[_0x2e76ba([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e76ba([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53fd20)return;const _0x21df6f=await _0x53fd20[_0x2e76ba([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e76ba([0x6a,0x77,0x6b]),_0x57925e,{[_0x2e76ba([0x6e,0x61,0x6d,0x65])]:_0x2e76ba([0x45,0x43,0x44,0x53,0x41]),[_0x2e76ba([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e76ba([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e76ba([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53fd20[_0x2e76ba([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e76ba([0x6e,0x61,0x6d,0x65])]:_0x2e76ba([0x45,0x43,0x44,0x53,0x41]),[_0x2e76ba([0x68,0x61,0x73,0x68])]:{[_0x2e76ba([0x6e,0x61,0x6d,0x65])]:_0x2e76ba([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21df6f,_0x10f359,_0x3c4609)||(_0x2cde86=!0x1);}}function _0x3e6a58(_0x33a159){return _0x33a159[_0x2e76ba([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e76ba([0x65,0x79]))?JSON[_0x2e76ba([0x70,0x61,0x72,0x73,0x65])](_0x3dde96(_0x33a159)):null;}function _0x3dde96(_0x1b57b9){return window[_0x2e76ba([0x61,0x74,0x6f,0x62])](_0x1b57b9[_0x2e76ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e76ba([0x2b]))[_0x2e76ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e76ba([0x2f])));}function _0x3c3add(_0x189b15){let _0x3ea3b4=0x1505;function _0x1b9a5c(_0x551a1f){for(let _0x128469=0x0;_0x128469<_0x551a1f[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x128469++){const _0x2a0a06=_0x551a1f[_0x2e76ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x128469);_0x3ea3b4=(_0x3ea3b4<<0x5)+_0x3ea3b4+_0x2a0a06,_0x3ea3b4&=_0x3ea3b4;}}function _0x2674c8(_0x3ef595){Array[_0x2e76ba([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ef595)?_0x3ef595[_0x2e76ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2674c8):_0x3ef595&&typeof _0x3ef595==_0x2e76ba([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e76ba([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ef595)[_0x2e76ba([0x73,0x6f,0x72,0x74])]()[_0x2e76ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2fd753,_0xd6f124])=>{_0x1b9a5c(_0x2fd753),_0x2674c8(_0xd6f124);}):_0x1b9a5c(window[_0x2e76ba([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ef595));}return _0x2674c8(_0x189b15),_0x3ea3b4>>>0x0;}function _0x35fe63(_0x493335){return _0x493335[_0x2e76ba([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e76ba([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e76ba([0x30]));}function _0x16b9c1(_0x3d3e24){return _0x3d3e24[_0x2e76ba([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e76ba([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e76ba([0x6a,0x6f,0x69,0x6e])]('');}function _0x429094(){}function _0x2e76ba(_0x175cbc){return _0x175cbc['map'](_0x34d6dc=>String['fromCharCode'](_0x34d6dc))['join']('');}_0x3b5b51(await _0x1f391a());}(this);}['_initSchema'](){const _0x41e914=this['editor']['model']['schema'];_0x41e914['isRegistered']('imageBlock')&&_0x41e914['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x41e914['isRegistered']('imageInline')&&_0x41e914['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5c7a14=this['editor'];_0x5c7a14['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5c7a14['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5f1888=>_0x5f1888['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x243983=_0x5c7a14['commands']['get']('replaceImageSource');_0x243983&&this['listenTo'](_0x243983,'cleanupImage',(_0x3d14e1,[_0x43174d,_0x2cc3d5])=>{_0x43174d['removeAttribute']('uploadcareImageId',_0x2cc3d5);});}['_initConfig'](){const _0x24b62c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x334ed3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x413b6e(_0x12cd30['document'],'uc-config',{..._0x24b62c,'pubkey':_0x334ed3,'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']=_0x412223=>{if('closeMax'==_0x412223)return'#uc-icon-arrow-down';},_0x12cd30['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x413b6e(_0x12cd30['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x12cd30['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x390f5=this['editor']['commands']['get']('insertImage');_0x390f5&&this['listenTo'](_0x390f5,'execute',()=>{const _0x4f21f4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4f21f4&&_0x4f21f4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4f21f4);});});const _0x940113=this['editor']['commands']['get']('uploadcareImageReplace');_0x940113&&this['listenTo'](_0x940113,'execute',()=>{const _0x21ae72=this['editor']['model']['document']['selection']['getSelectedElement']();_0x21ae72&&_0x21ae72['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x21ae72);});});}}class tt extends _0x43cf72{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51af01){super(_0x51af01),_0x51af01['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xd5b6cc['defineComponents'](_0xd5b6cc);}}class ii extends _0x4ecb53{constructor(_0x23641e){super(_0x23641e);const t=_0x23641e['t'],_0x1c5811=this['bindTemplate'],_0x3ffff5=new _0x33eedb();_0x3ffff5['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':[_0x3ffff5,{'text':_0x1c5811['to']('imageUploadProgress',_0x27ab5d=>t('Loading\x20image...')+'\x20('+(_0x27ab5d||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 _0x4ecb53{constructor(_0x302d2f){super(_0x302d2f);const t=_0x302d2f['t'];this['set']('errorType',null);const _0x16673c=new _0x28dc2a(_0x302d2f);_0x16673c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x16673c['withText']=!0x0,_0x16673c['class']='ck-button-action',_0x16673c['on']('execute',()=>{this['fire']('retry');}),_0x16673c['bind']('isVisible')['to'](this,'errorType',_0x1a51fc=>'NotFound'!==_0x1a51fc);const _0xd56c68=new _0x396388();_0xd56c68['content']=_0x354c6d,_0xd56c68['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x146e90=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':[_0xd56c68,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x146e90['to']('errorType',_0x12840a=>t('NotFound'!==_0x12840a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x16673c]},{'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 _0x4ecb53{constructor(_0x3172a9,_0xf3f64f){super(_0x3172a9);const _0x3f3282=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xf3f64f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3f3282['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x192223,_0xb5a6ad,_0x1a5e57){super(_0x192223),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x192223),this['_errorView']=new ti(_0x192223),this['_editingView']=new ei(_0x192223,_0x1a5e57),this['_focusableView']=new _0x4ecb53(_0x192223),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xb5a6ad),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'],_0xe7dd0e=>{this['_addUploadcareImageEditorListeners'](_0xe7dd0e);});}),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'](_0x4c134e,_0x257b7c){const _0x257a96='uc-cloud-image-editor',_0x3b3c7d=_0x4c134e['querySelector'](_0x257a96);if(_0x3b3c7d)return _0x257b7c(_0x3b3c7d);const _0x56b50c=new MutationObserver(_0x2be4cb=>{const _0x2b786e=_0x2be4cb['filter'](_0x4504ee=>_0x4504ee['target']===_0x4c134e&&_0x4504ee['addedNodes']['length']>0x0&&_0x4504ee['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x257a96);_0x2b786e['length']&&(_0x56b50c['disconnect'](),_0x257b7c(_0x2b786e[0x0]['addedNodes'][0x0]));});_0x56b50c['observe'](_0x4c134e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x482171){_0x482171['addEventListener']('apply',_0x1dcc90=>{this['fire']('apply',{'imageSrc':_0x1dcc90['detail']['cdnUrl']});}),_0x482171['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x276f36(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x39ceee,_0x5cbb2f,_0xa87fd5){super(),this['_editor']=_0x39ceee,this['_dialog']=_0x5cbb2f,this['_imageElement']=_0xa87fd5,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 _0x4c15c3=this['_imageElement'],_0x54457a=_0x4c15c3['getAttribute']('uploadcareImageId'),_0x3768b8=_0x4c15c3['getAttribute']('src');if(_0x54457a)await this['_loadImageInfo'](_0x54457a,_0x3768b8);else{if(this['_imageCache']['has'](_0x3768b8)){const _0x56ef4f=this['_imageCache']['get'](_0x3768b8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56ef4f['url'],this['imageDimension']=_0x56ef4f['dimension'],this['imageId']=_0x56ef4f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x191b01}=this['_editor'],t=_0x191b01['t'],_0x43553e=new X(_0x191b01,this['imageStatus'],this['_attributes']);_0x43553e['bind']('status')['to'](this,'imageStatus'),_0x43553e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x43553e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x43553e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x43553e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4962bb,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x43553e,'position':_0x1e2d84['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x43553e['focus']();},'onHide':()=>{_0x43553e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x24ee02=>!S(_0x24ee02,_0x43553e['element'])}});}['_loadImageInfo'](_0x38e946,_0x576fe5){return j['getInfo'](_0x38e946,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2ca9c8=>{const {width:_0x3e761a,height:_0x23aca3}=_0x2ca9c8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x576fe5,this['imageDimension']={'width':_0x3e761a,'height':_0x23aca3},this['imageId']=_0x38e946;})['catch'](_0x578194=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x578194['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3ebc77,_0x447a3c){return this['_getImageAsFile'](_0x3ebc77)['then'](_0x124c48=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x447a3c['signal'],'file':_0x124c48,'onProgress':_0x270607=>{_0x270607&&_0x270607['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x270607['value']));}}))['then'](_0x1d17d3=>{const {width:_0x3136f7,height:_0x2b0405}=_0x1d17d3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1d17d3['cdnUrl'],this['imageDimension']={'width':_0x3136f7,'height':_0x2b0405},this['imageId']=_0x1d17d3['uuid'],this['imageUploadProgress']=null;const _0x441922=_0x3ebc77['getAttribute']('src');this['_imageCache']['set'](_0x441922,{'id':_0x1d17d3['uuid'],'url':_0x1d17d3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2a67a3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a67a3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2f6d53,_0x248c18){_0x2f6d53['on']('apply',(_0x44169a,_0x30d5ba)=>{this['_replaceImage'](_0x248c18,_0x30d5ba['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2f6d53['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2f6d53['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3163f3,_0xd9aadc,_0x108c9f){const _0x4e236e=this['_editor'],{width:_0x46b8ec,height:_0xfec67a}=C(_0xd9aadc,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x593132,imageSources:_0x29f0db}=k(_0xd9aadc,_0x46b8ec);_0x4e236e['model']['change'](_0x3a4841=>{if('$graveyard'===_0x3163f3['root']['rootName']){_0x4e236e['execute']('insertImage',{'imageType':_0x3163f3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3163f3['getAttributes']()),'uploadcareImageId':_0x108c9f,'src':_0x593132,'sources':_0x29f0db,'width':_0x46b8ec,'height':_0xfec67a}});const _0x222f9b=_0x3163f3['getChildren']();_0x3163f3=_0x4e236e['model']['document']['selection']['getSelectedElement']();for(const _0x422a95 of _0x222f9b)_0x3a4841['append'](_0x3a4841['cloneElement'](_0x422a95),_0x3163f3);}else _0x3a4841['setSelection'](_0x3163f3,'on'),_0x4e236e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3163f3['getAttributes']()),'uploadcareImageId':_0x108c9f,'src':_0x593132,'sources':_0x29f0db,'width':_0x46b8ec,'height':_0xfec67a},_0x3163f3);_0x3a4841['setSelection'](_0x3163f3,'on');});}async['_getImageAsFile'](_0x9b88c8){const _0x465d3b=_0x12cd30['window'],_0x330b2a=_0x12cd30['document']['location']['href'],_0x1dd5cc=new _0x465d3b['URL'](_0x9b88c8['getAttribute']('src'),_0x330b2a);if('data:'===_0x1dd5cc['protocol']){const _0x45e177=_0x1dd5cc['href']['split'](','),_0x54d4ac=_0x45e177[0x0]['match'](/:(.*?);/)[0x1],_0x1457fd=_0x54d4ac['split']('/')[0x1],_0x30c2b8=_0x465d3b['atob'](_0x45e177[_0x45e177['length']-0x1]);let _0x12140f=_0x30c2b8['length'];const _0x5c529e=new _0x465d3b['Uint8Array'](_0x12140f);for(;_0x12140f--;)_0x5c529e[_0x12140f]=_0x30c2b8['charCodeAt'](_0x12140f);return new _0x465d3b['File']([_0x5c529e],'image.'+_0x1457fd,{'type':_0x54d4ac});}const _0x2c6ef6=_0x1dd5cc['href']['split']('/'),_0x5c3fa3=_0x2c6ef6[_0x2c6ef6['length']-0x1],_0x210456=_0x5c3fa3['split']('.')[0x1];return _0x465d3b['fetch'](_0x1dd5cc['href'])['then'](_0x31acea=>_0x31acea['clone']()['blob']())['then'](_0x4865e4=>new _0x465d3b['File']([_0x4865e4],_0x5c3fa3,{'type':'image/'+_0x210456}));}}class O extends _0x4d8fff{['imageEditController'];static get['requires'](){return[_0x24aa98];}['_isEditable'];constructor(_0x318474){super(_0x318474),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1eef4a){const _0x17b4ec=G(_0x1eef4a);return _0xf470f8=>!(!_0xf470f8||!_0xf470f8['is']('element','imageBlock')&&!_0xf470f8['is']('element','imageInline'))&&(!!_0xf470f8['hasAttribute']('uploadcareImageId')||!!_0xf470f8['hasAttribute']('src')&&_0x17b4ec(_0xf470f8['getAttribute']('src')));}(_0x318474['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x61e78a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x61e78a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x22578b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x22578b&&(_0x22578b['is']('element','imageBlock')||_0x22578b['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x24aa98),_0x22578b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4d8fff{['refresh'](){const _0x126b2a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x126b2a&&(_0x126b2a['is']('element','imageBlock')||_0x126b2a['is']('element','imageInline')));}['execute'](_0x1b3197){const _0x58ad24=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x31885e=>{_0x31885e['setAttributes'](_0x1b3197,_0x58ad24),_0x31885e['removeAttribute']('srcset',_0x58ad24),_0x31885e['removeAttribute']('sizes',_0x58ad24);});}}class m extends _0x43cf72{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xeb61f2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x370a6b}=this;_0x370a6b['commands']['add']('uploadcareImageEdit',new O(_0x370a6b)),_0x370a6b['commands']['add']('uploadcareImageReplace',new R(_0x370a6b));}}class g extends _0x43cf72{['_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 _0x1d266=this['editor'];_0x1d266['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a09f5=>{const _0xf94e0a=_0x1d266['commands']['get']('uploadcareImageEdit'),_0x17cc97=new _0x28dc2a(_0x3a09f5),t=_0x3a09f5['t'];return _0x17cc97['set']({'icon':_0x4962bb,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x17cc97['bind']('isEnabled')['to'](_0xf94e0a),_0x17cc97['bind']('isOn')['to'](_0xf94e0a,'isActive'),this['listenTo'](_0x17cc97,'execute',()=>{_0x1d266['execute']('uploadcareImageEdit'),_0x1d266['editing']['view']['focus']();}),_0x17cc97;}),this['_initConfig']();}['_initConfig'](){const _0x1573ea=_0x413b6e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1573ea),this['listenTo'](this['editor'],'destroy',()=>{_0x1573ea['remove']();});}}class et extends _0x43cf72{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 _0x5a867f,Command as _0x4e6b30}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1089b9,IconGooglePhotos as _0x1200fd,IconGoogleDrive as _0x203dbb,IconFacebook as _0x495212,IconDropbox as _0x254532,IconUploadcareLink as _0x2baf72,IconUploadcareImageUpload as _0x4f56aa,IconError as _0x106d41,IconUploadcareImageEdit as _0xe3d6d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4201f6,MenuBarMenuListItemButtonView as _0x2c4311,View as _0x38c0d8,FocusCycler as _0x12d3f4,Dialog as _0x4322d9,DialogViewPosition as _0x227dad,SpinnerView as _0x6c0672,IconView as _0x69e4d6,Notification as _0x12e5a7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4a289d,DomEmitterMixin as _0x26086a,global as _0x15f0cb,getAncestors as _0x52ea0a,ObservableMixin as _0x43808e,uid as _0x5a80b4,createElement as _0x2a9c72}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2fa75a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x54735b,info as _0x2a2202}from'@uploadcare/upload-client';import*as _0x34771b from'@uploadcare/file-uploader';var i=function(_0x3fb4a3){return _0x3fb4a3['Local']='local',_0x3fb4a3['URL']='url',_0x3fb4a3['Dropbox']='dropbox',_0x3fb4a3['GDrive']='gdrive',_0x3fb4a3['Facebook']='facebook',_0x3fb4a3['GPhotos']='gphotos',_0x3fb4a3['OneDrive']='onedrive',_0x3fb4a3;}({});function _(_0x5985b4,_0x5c15a3,_0x3460a4){const t=_0x5985b4['t'],_0x360243=_0x5985b4['t'];switch(_0x5c15a3){case i['Local']:return{'text':_0x360243('Insert'===_0x3460a4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x360243('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3460a4?_0x360243('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x360243('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3460a4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3460a4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3460a4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3460a4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3460a4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5c15a3;}}class e extends _0x5a867f{['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 _0x225f79=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f69c5;for(const _0x42dc39 in _0x225f79){const _0xff9aab=_0x42dc39,_0x5958c3=_0x225f79[_0xff9aab];if('uploadcareLicenseKeyValid'==_0x5958c3||'uploadcareLicenseKeyInvalid'==_0x5958c3||'uploadcareLicenseKeyExpired'==_0x5958c3||'uploadcareLicenseKeyDomainLimit'==_0x5958c3||'uploadcareLicenseKeyNotAllowed'==_0x5958c3||'uploadcareLicenseKeyEvaluationLimit'==_0x5958c3||'uploadcareLicenseKeyTrialLimit'==_0x5958c3||'uploadcareLicenseKeyUsageLimit'==_0x5958c3){delete _0x225f79[_0xff9aab],_0x2f69c5=_0x5958c3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2f69c5&&_0x225f79['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2f69c5&&_0x225f79['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2f69c5&&_0x225f79['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2f69c5&&_0x225f79['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2f69c5&&_0x225f79['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2f69c5&&_0x225f79['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2f69c5&&_0x225f79['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4d6a5a}=this,_0x54aa79=_0x4d6a5a['commands']['get']('uploadcare');if(!_0x54aa79)return;const _0x2dac5e=this['_normalizeConfigSourceList'](_0x4d6a5a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x579729,_0x59ac1d)=>{const _0xfe99c=this['_getIntegrationKey'](_0x59ac1d['type']);return _0x579729[_0xfe99c]||(_0x579729[_0xfe99c]=[]),_0x579729[_0xfe99c]['push'](_0x59ac1d),_0x579729;},{});_0x4d6a5a['plugins']['has']('ImageInsertUI')&&_0x4d6a5a['commands']['get']('uploadcare')&&Object['entries'](_0x2dac5e)['forEach'](([_0x3b5894,_0x1f9a30])=>{_0x4d6a5a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3b5894,'observable':()=>_0x54aa79,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1f9a30),'formViewCreator':()=>this['_createDropdownButtons'](_0x1f9a30),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1f9a30),'override':'assetManager'!==_0x3b5894});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1c60fc){const {locale:_0xe331e2}=this['editor'];return _0x1c60fc['map'](_0x298014=>{const _0x458b1e=_(_0xe331e2,_0x298014,'Insert');switch(_0x298014){case i['Local']:return{'icon':_0x4f56aa,'type':i['Local'],..._0x458b1e};case i['URL']:return{'icon':_0x2baf72,'type':i['URL'],..._0x458b1e};case i['Dropbox']:return{'icon':_0x254532,'type':i['Dropbox'],..._0x458b1e};case i['Facebook']:return{'icon':_0x495212,'type':i['Facebook'],..._0x458b1e};case i['GDrive']:return{'icon':_0x203dbb,'type':i['GDrive'],..._0x458b1e};case i['GPhotos']:return{'icon':_0x1200fd,'type':i['GPhotos'],..._0x458b1e};case i['OneDrive']:return{'icon':_0x1089b9,'type':i['OneDrive'],..._0x458b1e};}});}['_getIntegrationKey'](_0xdbe070){switch(_0xdbe070){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1cfc39,_0x4e197d){const _0x287ccb=this['editor'],_0x276897=new _0x1cfc39(_0x287ccb['locale']),_0x40d776=_0x287ccb['commands']['get']('uploadcare');return _0x276897['bind']('isEnabled')['to'](_0x40d776),_0x276897['on']('execute',()=>{_0x40d776['execute'](_0x4e197d);}),_0x276897;}['_createToolbarButton'](_0x40f2cc){const {locale:_0x42ffb2}=this['editor'],_0x470e3a=this['editor']['plugins']['get']('ImageInsertUI'),_0x5b1550=_0x40f2cc[0x0],_0x47b1dd=this['_createButton'](_0x4201f6,_0x5b1550['type']);return _0x47b1dd['icon']=_0x5b1550['icon'],_0x47b1dd['bind']('label')['to'](_0x470e3a,'isImageSelected',_0x1e6dac=>_(_0x42ffb2,_0x5b1550['type'],_0x1e6dac?'Replace':'Insert')['text']),_0x47b1dd['tooltip']=!0x0,_0x47b1dd;}['_createDropdownButtons'](_0x305526){const {locale:_0x192d1d}=this['editor'],_0x2be53a=this['editor']['plugins']['get']('ImageInsertUI');return _0x305526['map'](_0x3f734e=>{const _0x177ca5=this['_createButton'](_0x4201f6,_0x3f734e['type']);return _0x177ca5['withText']=!0x0,_0x177ca5['icon']=_0x3f734e['icon'],_0x177ca5['bind']('label')['to'](_0x2be53a,'isImageSelected',_0x22ce4d=>_(_0x192d1d,_0x3f734e['type'],_0x22ce4d?'Replace':'Insert')['text']),_0x177ca5;});}['_createMenuBarButtons'](_0x31bc9f){return _0x31bc9f['map'](_0x5682e7=>{const _0x49467f=this['_createButton'](_0x2c4311,_0x5682e7['type']);return _0x49467f['icon']=_0x5682e7['icon'],_0x49467f['label']=_0x5682e7['shortText'],_0x49467f;});}}class F extends _0x38c0d8{['focusTracker'];['focusCycler'];constructor(_0x253985){super(_0x253985),this['focusTracker']=new _0x4a289d(),this['focusCycler']=new _0x12d3f4({'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(_0x86d220,_0x4f792f){super(_0x86d220),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-'+_0x4f792f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x4cbffc,_0x60a135){const _0x3dd232=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x32011b=>_0x32011b<=_0x60a135)['map'](_0x10a607=>_0x4cbffc['replace'](/\/$/,'')+'/-/resize/'+_0x10a607+'x/\x20'+_0x10a607+'w');return{'imageFallbackUrl':_0x4cbffc,'imageSources':[{'srcset':_0x3dd232['join'](',\x20'),'sizes':'(max-width:\x20'+_0x60a135+'px)\x20100vw,\x20'+_0x60a135+'px','type':'image/webp'}]};}function C(_0x3eab36,_0x3ea3fe,_0x22c503){const _0x53c55f=_0x3eab36['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x53c55f?parseInt(_0x53c55f[0x1],0xa):_0x3ea3fe,'height':_0x53c55f?parseInt(_0x53c55f[0x2],0xa):_0x22c503};}function p(_0x5bf828,_0x1a58c3){const _0x2bf445=new(_0x26086a())(),_0x19e30e=_0x5bf828['plugins']['get']('ImageUtils'),_0x3be76b=_0x5bf828['editing']['mapper']['toViewElement'](_0x1a58c3),_0x368c81=_0x19e30e['findViewImgElement'](_0x3be76b),_0x3785e2=_0x5bf828['editing']['view']['domConverter']['viewToDom'](_0x368c81),_0x5068be=_0x1a58c3['getAttribute']('width'),_0x28093c=_0x1a58c3['getAttribute']('height'),_0x2df15e='image-processing';_0x5bf828['editing']['view']['change'](_0x4a9629=>{_0x4a9629['addClass'](_0x2df15e,_0x3be76b),_0x4a9629['setStyle']('aspect-ratio',_0x5068be+'/'+_0x28093c,_0x368c81);}),_0x2bf445['listenTo'](_0x3785e2,'load',()=>{_0x2bf445['stopListening'](_0x3785e2,'load'),_0x5bf828['editing']['view']['change'](_0x5d9624=>{_0x5d9624['removeClass'](_0x2df15e,_0x3be76b),_0x5d9624['removeStyle']('aspect-ratio',_0x368c81);});});}function G(_0x4a411b){if(Array['isArray'](_0x4a411b)){const _0x58786a=_0x4a411b['map'](G);return _0x18f22e=>_0x58786a['some'](_0x47a7e5=>_0x47a7e5(_0x18f22e));}if('origin'==_0x4a411b){const _0x23cfaa=_0x15f0cb['window']['location']['origin'];return _0x5170c7=>new URL(_0x5170c7,_0x15f0cb['document']['baseURI'])['origin']==_0x23cfaa;}return'function'==typeof _0x4a411b?_0x4a411b:_0x4a411b instanceof RegExp?_0x40a6dc=>!(!_0x40a6dc['match'](_0x4a411b)&&!_0x40a6dc['replace'](/^https?:\/\//,'')['match'](_0x4a411b)):()=>!0x1;}function S(_0x5d3c27,_0x217a8d){return _0x52ea0a(_0x5d3c27['target'])['includes'](_0x217a8d);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x43808e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3e0c1d,_0x4e88f7,_0x3a0ab5){super(),this['_editor']=_0x3e0c1d,this['_editing']=_0x4e88f7,this['_dialog']=_0x3e0c1d['plugins']['get'](_0x4322d9),this['_api']=_0x4e88f7['ctxElement']['getAPI'](),this['_type']=_0x3a0ab5,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:_0x31cf00,model:_0x21330e}=this['_editor'],_0x8983ae=_0x21330e['document']['selection']['getSelectedElement'](),_0x9f344e=_0x8983ae&&(_0x8983ae['is']('element','imageBlock')||_0x8983ae['is']('element','imageInline'));this['_formView']=new x(_0x31cf00,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4f56aa,'title':_(_0x31cf00,this['_type'],_0x9f344e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x227dad['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x44f863=>!S(_0x44f863,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x33dfd3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x33003b=>{const _0x1c75fd=_0x33dfd3['length'];for(const _0x45d2b3 of _0x33dfd3){const _0x527c70=_0x45d2b3===_0x33dfd3[_0x1c75fd-0x1],{cdnUrl:_0x1c0cc9,fileInfo:_0x20234a}=_0x45d2b3;if(!_0x1c0cc9||!_0x20234a)continue;const {width:_0x4acd94,height:_0x1a9b0f}=_0x20234a['imageInfo'],_0x8129bc=C(_0x1c0cc9,_0x4acd94,_0x1a9b0f),_0xe30c5c=k(_0x1c0cc9,_0x8129bc['width']),_0x786324={'id':_0x20234a['uuid'],'type':'image','attributes':{'imageDimension':_0x8129bc,..._0xe30c5c}};this['_insertAsset'](_0x786324,_0x527c70,_0x33003b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x199d9f=>{'idle'===_0x199d9f['detail']['status']&&!_0x199d9f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xf1e3b8,_0x4d048e,_0x3a6b41){const _0x12fa3c=this['_editor']['model']['document']['selection'],_0x1772f2=_0x12fa3c['getSelectedElement'](),_0x269c9b=!(!_0x1772f2||!_0x1772f2['is']('element','imageInline'));_0x3a6b41['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xf1e3b8,_0x269c9b),_0x4d048e||_0x3a6b41['setSelection'](_0x12fa3c['getLastPosition']());}['_insertImage'](_0x3b9728,_0x534aa9){const _0x5ec15a=this['_editor'],{imageDimension:_0x431821,imageFallbackUrl:_0x4eb74a,imageSources:_0x12a2a8}=_0x3b9728['attributes'];_0x5ec15a['execute']('insertImage',{'imageType':_0x534aa9?'imageInline':null,'source':{'uploadcareImageId':_0x3b9728['id'],'src':_0x4eb74a,'sources':_0x12a2a8,..._0x431821}});}}class w extends _0x4e6b30{['_editing'];['_controller']=null;static get['requires'](){return[_0x4322d9,o];}constructor(_0xb14abc){super(_0xb14abc),this['_editing']=_0xb14abc['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1a67cd){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1a67cd);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x445f02,publicKey:_0x17e012,signal:_0x4216a9,onProgress:_0x58a66e}){return _0x54735b(_0x445f02,{'publicKey':_0x17e012,'store':'auto','signal':_0x4216a9,'onProgress':_0x58a66e});}static['getInfo'](_0x1935f7,_0x11c321){return _0x2a2202(_0x1935f7,_0x11c321);}}class f extends _0x5a867f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2fa75a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x22ec58=this['editor'];if(!!!_0x22ec58['config']['get']('uploadcare'))return;_0x22ec58['plugins']['get'](_0x2fa75a)['createUploadAdapter']=_0x42210b=>new A(_0x42210b,_0x22ec58),_0x22ec58['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x77e7fd,{imageElement:_0x46eb1a,data:_0x56ae19})=>{_0x22ec58['model']['change'](_0x443e1a=>{_0x443e1a['setAttribute']('uploadcareImageId',_0x56ae19['uploadcareImageId'],_0x46eb1a);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xb63943,_0x512477){this['loader']=_0xb63943,this['editor']=_0x512477,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x18c24d=this['editor']['config']['get']('uploadcare.pubkey'),_0x3abc0a=await this['loader']['file'];return j['upload']({'file':_0x3abc0a,'publicKey':_0x18c24d,'signal':this['controller']['signal'],'onProgress':_0x176e94=>{_0x176e94&&_0x176e94['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x176e94['value']);}})['then'](async _0x5243f6=>{const {imageFallbackUrl:_0x36b440,imageSources:_0x340c67}=k(_0x5243f6['cdnUrl'],_0x5243f6['imageInfo']['width']);return{'uploadcareImageId':_0x5243f6['uuid'],'default':_0x36b440,'sources':_0x340c67};})['catch'](()=>{const _0x56be5f=t('Cannot\x20upload\x20file:')+('\x20'+_0x3abc0a['name']+'.');return Promise['reject'](_0x56be5f);});}['abort'](){this['controller']['abort']();}}class o extends _0x5a867f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4322d9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x56a54a){super(_0x56a54a),this['ucContextId']=_0x5a80b4();}['init'](){const _0x54bd38=this['editor'];_0x54bd38['commands']['add']('uploadcare',new w(_0x54bd38));}['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 _0x24cc25=_0x15f0cb['document']['querySelector']('input[uploadcare-file-input]');_0x24cc25&&_0x24cc25['remove']();}),async function(_0x55ab91){const _0x50c2ee=_0xcb63f6([0x76,0x6e,0x37,0x67,0x45,0x4c,0x6c,0x52,0x6f,0x50,0x4e,0x51,0x4f,0x56,0x64,0x68,0x55,0x78,0x74,0x66,0x44,0x62,0x54,0x75,0x49,0x47,0x4b,0x6a,0x53,0x42,0x31,0x30,0x5a,0x6d,0x46,0x69,0x4a,0x48,0x39,0x72,0x63,0x33,0x70,0x36,0x61,0x58,0x71,0x79,0x77,0x4d,0x32,0x7a,0x57,0x41,0x59,0x6b,0x35,0x73,0x65,0x43,0x34,0x38]),_0x4556f7=0x1bf295e6,_0xdb009=0x1bf5fa2e^_0x4556f7,_0xc84617=window[_0xcb63f6([0x44,0x61,0x74,0x65])][_0xcb63f6([0x6e,0x6f,0x77])](),_0x297d56=_0x55ab91[_0xcb63f6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ef939=new window[(_0xcb63f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x218f0c=>{_0x297d56[_0xcb63f6([0x6f,0x6e,0x63,0x65])](_0xcb63f6([0x72,0x65,0x61,0x64,0x79]),_0x218f0c);}),_0x35661b={[_0xcb63f6([0x6b,0x74,0x79])]:_0xcb63f6([0x45,0x43]),[_0xcb63f6([0x75,0x73,0x65])]:_0xcb63f6([0x73,0x69,0x67]),[_0xcb63f6([0x63,0x72,0x76])]:_0xcb63f6([0x50,0x2d,0x32,0x35,0x36]),[_0xcb63f6([0x78])]:_0xcb63f6([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]),[_0xcb63f6([0x79])]:_0xcb63f6([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]),[_0xcb63f6([0x61,0x6c,0x67])]:_0xcb63f6([0x45,0x53,0x32,0x35,0x36])},_0x1eab36=_0x297d56[_0xcb63f6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xcb63f6([0x67,0x65,0x74])](_0xcb63f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe453ab(){let _0x4428a6,_0x30195d=null,_0x427e96=null;try{if(_0x1eab36==_0xcb63f6([0x47,0x50,0x4c]))return _0xcb63f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4428a6=_0x3a4112(),!_0x4428a6)return _0xcb63f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4428a6[_0xcb63f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x427e96=_0x504d37(_0x4428a6[_0xcb63f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4428a6[_0xcb63f6([0x6a,0x74,0x69])])),await _0x3efdbe()?_0x2f6454()?_0xb245c()?_0xcb63f6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x304366()?(_0x4428a6[_0xcb63f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xcb63f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30195d=_0x4c8da0(_0xcb63f6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4428a6[_0xcb63f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xcb63f6([0x74,0x72,0x69,0x61,0x6c])&&(_0x30195d=_0x4c8da0(_0xcb63f6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59a9b2()):_0xcb63f6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xcb63f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xcb63f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xcb63f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb245c(){const _0x29b6db=[_0xcb63f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xcb63f6([0x74,0x72,0x69,0x61,0x6c])][_0xcb63f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4428a6[_0xcb63f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc84617/0x3e8:0xe10*_0xdb009;return _0x4428a6[_0xcb63f6([0x65,0x78,0x70])]<_0x29b6db;}function _0x2f6454(){const _0x3c1a18=_0x4428a6[_0xcb63f6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c1a18&&(!!_0x3c1a18[_0xcb63f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcb63f6([0x2a]))||!!_0x3c1a18[_0xcb63f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcb63f6([0x55,0x50,0x4c,0x43])));}function _0x304366(){const _0x22b33b=_0x4428a6[_0xcb63f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x22b33b||0x0==_0x22b33b[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30c9f2}=new URL(window[_0xcb63f6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x22b33b[_0xcb63f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30c9f2))return!0x0;const _0x1849b9=_0x30c9f2[_0xcb63f6([0x73,0x70,0x6c,0x69,0x74])](_0xcb63f6([0x2e]));return _0x22b33b[_0xcb63f6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a71a8=>_0x3a71a8[_0xcb63f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcb63f6([0x2a])))[_0xcb63f6([0x6d,0x61,0x70])](_0x4ac9af=>_0x4ac9af[_0xcb63f6([0x73,0x70,0x6c,0x69,0x74])](_0xcb63f6([0x2e])))[_0xcb63f6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x69d9c1=>_0x69d9c1[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1849b9[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xcb63f6([0x6d,0x61,0x70])](_0x3f55e2=>Array(_0x1849b9[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3f55e2[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xcb63f6([0x66,0x69,0x6c,0x6c])](_0x3f55e2[0x0]===_0xcb63f6([0x2a])?_0xcb63f6([0x2a]):'')[_0xcb63f6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3f55e2))[_0xcb63f6([0x73,0x6f,0x6d,0x65])](_0x5dcf7f=>_0x1849b9[_0xcb63f6([0x65,0x76,0x65,0x72,0x79])]((_0x5e664e,_0x548e7d)=>_0x5dcf7f[_0x548e7d]===_0x5e664e||_0x5dcf7f[_0x548e7d]===_0xcb63f6([0x2a])));}function _0x59a9b2(){return _0x30195d&&_0x427e96?new window[(_0xcb63f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x365002,_0x3fc79b)=>{_0x30195d[_0xcb63f6([0x74,0x68,0x65,0x6e])](_0x365002,_0x3fc79b),_0x427e96[_0xcb63f6([0x74,0x68,0x65,0x6e])](_0x1a7417=>{_0x1a7417!=_0xcb63f6([0x56,0x61,0x6c,0x69,0x64])&&_0x365002(_0x1a7417);},_0x3fc79b);}):_0x30195d||_0x427e96||_0xcb63f6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x504d37(_0x48068c,_0xbb4cad){return new window[(_0xcb63f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x75daec=>{if(_0x4ac681())return _0x75daec(_0xcb63f6([0x56,0x61,0x6c,0x69,0x64]));_0x3d186a(),_0x297d56[_0xcb63f6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xcb63f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xdc37be=!0x1;const _0xb2cde9=_0x5a80b4();function _0x2388c9(_0x5ce768){return!!_0x5ce768&&(typeof _0x5ce768===_0xcb63f6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ce768===_0xcb63f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ce768[_0xcb63f6([0x74,0x68,0x65,0x6e])]===_0xcb63f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ce768[_0xcb63f6([0x63,0x61,0x74,0x63,0x68])]===_0xcb63f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x245872(_0x5c1c69){_0x181ab2(_0x5c1c69)[_0xcb63f6([0x74,0x68,0x65,0x6e])](_0xf985b6=>{if(!_0xf985b6||_0xf985b6[_0xcb63f6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xcb63f6([0x6f,0x6b]))return _0xcb63f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x93b6c0(_0x5e6b3e(_0xb2cde9+_0xbb4cad))!=_0xf985b6[_0xcb63f6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xcb63f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xcb63f6([0x56,0x61,0x6c,0x69,0x64]);})[_0xcb63f6([0x74,0x68,0x65,0x6e])](_0x5e2df7=>(_0x5545ac(),_0x5e2df7),()=>{const _0x477a5f=_0x87ac0();return null==_0x477a5f?(_0x5545ac(),_0xcb63f6([0x56,0x61,0x6c,0x69,0x64])):_0xcb63f6(_0xc84617-_0x477a5f>(0x3ffe11e6^_0x4556f7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xcb63f6([0x74,0x68,0x65,0x6e])](_0x75daec)[_0xcb63f6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x75daec(_0xcb63f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x51f6ff=0x1bc47b66^_0x4556f7;function _0x5545ac(){const _0x36eb07=_0xcb63f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x93b6c0(_0x5e6b3e(_0x48068c)),_0x269a5e=_0x3f006a(_0x93b6c0(window[_0xcb63f6([0x4d,0x61,0x74,0x68])][_0xcb63f6([0x63,0x65,0x69,0x6c])](_0xc84617/_0x51f6ff)));window[_0xcb63f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xcb63f6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36eb07,_0x269a5e);}function _0x87ac0(){const _0x2f4c9a=_0xcb63f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x93b6c0(_0x5e6b3e(_0x48068c)),_0x25fde0=window[_0xcb63f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xcb63f6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f4c9a);return _0x25fde0?window[_0xcb63f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f006a(_0x25fde0),0x10)*_0x51f6ff:null;}function _0x181ab2(_0x39cce4){return new window[(_0xcb63f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x445978,_0x393966)=>{_0x39cce4[_0xcb63f6([0x74,0x68,0x65,0x6e])](_0x445978,_0x393966),window[_0xcb63f6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x393966,0x1bf34126^_0x4556f7);});}}_0x297d56[_0xcb63f6([0x6f,0x6e])](_0xcb63f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xba4f0f,_0x36e7f2)=>{if(_0x36e7f2[0x0]!=_0x48068c)return _0x75daec(_0xcb63f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36e7f2[0x1]={..._0x36e7f2[0x1],[_0xcb63f6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb2cde9};},{[_0xcb63f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xcb63f6([0x68,0x69,0x67,0x68])}),_0x297d56[_0xcb63f6([0x6f,0x6e])](_0xcb63f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2369fb=>{_0x2388c9(_0x2369fb[_0xcb63f6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xdc37be=!0x0,_0x245872(_0x2369fb[_0xcb63f6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xcb63f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xcb63f6([0x6c,0x6f,0x77])}),_0x3ef939[_0xcb63f6([0x74,0x68,0x65,0x6e])](()=>{_0xdc37be||_0x75daec(_0xcb63f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ac681(){return _0x297d56[_0xcb63f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xcb63f6([0x76,0x69,0x65,0x77])][_0xcb63f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xcb63f6([0x61,0x75,0x74,0x6f]);}function _0x3d186a(){_0x297d56[_0xcb63f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xcb63f6([0x76,0x69,0x65,0x77])][_0xcb63f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xcb63f6([0x61,0x75,0x74,0x6f]);}}function _0x4c8da0(_0x1fb358){const _0x25967c=[new window[(_0xcb63f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37b97e=>setTimeout(_0x37b97e,0x1bfbab2a^_0x4556f7)),_0x3ef939[_0xcb63f6([0x74,0x68,0x65,0x6e])](()=>new window[(_0xcb63f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38540d=>{let _0x5ecea3=0x0;_0x297d56[_0xcb63f6([0x6d,0x6f,0x64,0x65,0x6c])][_0xcb63f6([0x6f,0x6e])](_0xcb63f6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c3238,_0x394967)=>{_0x394967[0x0][_0xcb63f6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ecea3++,_0x5ecea3==(0x1bf2941e^_0x4556f7)&&(_0x38540d(),_0x2c3238[_0xcb63f6([0x6f,0x66,0x66])]());});}))];return window[_0xcb63f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xcb63f6([0x72,0x61,0x63,0x65])](_0x25967c)[_0xcb63f6([0x74,0x68,0x65,0x6e])](()=>_0x1fb358);}async function _0x3e5def(){await _0x3ef939,_0x297d56[_0xcb63f6([0x6d,0x6f,0x64,0x65,0x6c])][_0xcb63f6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44daba,_0x297d56[_0xcb63f6([0x6d,0x6f,0x64,0x65,0x6c])][_0xcb63f6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44daba,_0x297d56[_0xcb63f6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xcb63f6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x339c43(_0x11f129){const _0x1ba690=_0x4d5702();_0x297d56[_0x1ba690]=_0xcb63f6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11f129,_0x11f129!=_0xcb63f6([0x56,0x61,0x6c,0x69,0x64])&&_0x3e5def();}function _0x4d5702(){const _0xfd4c2b=window[_0xcb63f6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xcb63f6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xcb63f6([0x6e,0x6f,0x77])]())[_0xcb63f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xcb63f6([0x2e]),'');let _0x4b6899=_0xcb63f6([0x76]);for(let _0x2d3d89=0x0;_0x2d3d89<_0xfd4c2b[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d3d89+=0x2){let _0x4cd5cf=window[_0xcb63f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfd4c2b[_0xcb63f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d3d89,_0x2d3d89+0x2));_0x4cd5cf>=_0x50c2ee[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4cd5cf-=_0x50c2ee[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b6899+=_0x50c2ee[_0x4cd5cf];}return _0x4b6899;}function _0x3a4112(){const _0x5b0451=_0x1eab36[_0xcb63f6([0x73,0x70,0x6c,0x69,0x74])](_0xcb63f6([0x2e]));if(0x3!=_0x5b0451[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a2604(_0x5b0451[0x1]);function _0x2a2604(_0x189a70){const _0x3064f8=_0x7b0278(_0x189a70);return _0x3064f8&&_0x249a91()?_0x3064f8:null;function _0x249a91(){const _0x291471=_0x3064f8[_0xcb63f6([0x6a,0x74,0x69])],_0x5493f4=window[_0xcb63f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x291471[_0xcb63f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x291471[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f53de={..._0x3064f8,[_0xcb63f6([0x6a,0x74,0x69])]:_0x291471[_0xcb63f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x291471[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f53de[_0xcb63f6([0x76,0x63])],_0x5e6b3e(_0x1f53de)==_0x5493f4;}}}async function _0x3efdbe(){let _0x3786e4=!0x0;try{const _0x281c4c=_0x1eab36[_0xcb63f6([0x73,0x70,0x6c,0x69,0x74])](_0xcb63f6([0x2e])),[_0x4db476,_0xe1b48d,_0xe98dbd]=_0x281c4c;return _0xbaad5f(_0x4db476),await _0x474610(_0x4db476,_0xe1b48d,_0xe98dbd),_0x3786e4;}catch{return!0x1;}function _0xbaad5f(_0x27a8a0){const _0x218b3b=_0x7b0278(_0x27a8a0);_0x218b3b&&_0x218b3b[_0xcb63f6([0x61,0x6c,0x67])]==_0xcb63f6([0x45,0x53,0x32,0x35,0x36])||(_0x3786e4=!0x1);}async function _0x474610(_0x5c185a,_0x2456c7,_0x1d8260){const _0x438c7b=window[_0xcb63f6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xcb63f6([0x66,0x72,0x6f,0x6d])](_0x46fd8d(_0x1d8260),_0x3c840c=>_0x3c840c[_0xcb63f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x491d93=new window[(_0xcb63f6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xcb63f6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c185a+_0xcb63f6([0x2e])+_0x2456c7),_0xe35037=window[_0xcb63f6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xcb63f6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe35037)return;const _0x34375d=await _0xe35037[_0xcb63f6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xcb63f6([0x6a,0x77,0x6b]),_0x35661b,{[_0xcb63f6([0x6e,0x61,0x6d,0x65])]:_0xcb63f6([0x45,0x43,0x44,0x53,0x41]),[_0xcb63f6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xcb63f6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xcb63f6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe35037[_0xcb63f6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xcb63f6([0x6e,0x61,0x6d,0x65])]:_0xcb63f6([0x45,0x43,0x44,0x53,0x41]),[_0xcb63f6([0x68,0x61,0x73,0x68])]:{[_0xcb63f6([0x6e,0x61,0x6d,0x65])]:_0xcb63f6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34375d,_0x438c7b,_0x491d93)||(_0x3786e4=!0x1);}}function _0x7b0278(_0x59a71b){return _0x59a71b[_0xcb63f6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xcb63f6([0x65,0x79]))?JSON[_0xcb63f6([0x70,0x61,0x72,0x73,0x65])](_0x46fd8d(_0x59a71b)):null;}function _0x46fd8d(_0x32fc7b){return window[_0xcb63f6([0x61,0x74,0x6f,0x62])](_0x32fc7b[_0xcb63f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xcb63f6([0x2b]))[_0xcb63f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xcb63f6([0x2f])));}function _0x5e6b3e(_0xe74207){let _0x85b0e9=0x1505;function _0x23076b(_0x320f26){for(let _0x693791=0x0;_0x693791<_0x320f26[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x693791++){const _0x51f9c4=_0x320f26[_0xcb63f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x693791);_0x85b0e9=(_0x85b0e9<<0x5)+_0x85b0e9+_0x51f9c4,_0x85b0e9&=_0x85b0e9;}}function _0xa1ec84(_0x5b98fa){Array[_0xcb63f6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b98fa)?_0x5b98fa[_0xcb63f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa1ec84):_0x5b98fa&&typeof _0x5b98fa==_0xcb63f6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xcb63f6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b98fa)[_0xcb63f6([0x73,0x6f,0x72,0x74])]()[_0xcb63f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2897cd,_0x144a65])=>{_0x23076b(_0x2897cd),_0xa1ec84(_0x144a65);}):_0x23076b(window[_0xcb63f6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b98fa));}return _0xa1ec84(_0xe74207),_0x85b0e9>>>0x0;}function _0x93b6c0(_0x20b5ed){return _0x20b5ed[_0xcb63f6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xcb63f6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xcb63f6([0x30]));}function _0x3f006a(_0x3cb87b){return _0x3cb87b[_0xcb63f6([0x73,0x70,0x6c,0x69,0x74])]('')[_0xcb63f6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xcb63f6([0x6a,0x6f,0x69,0x6e])]('');}function _0x44daba(){}function _0xcb63f6(_0x164a6b){return _0x164a6b['map'](_0x26597d=>String['fromCharCode'](_0x26597d))['join']('');}_0x339c43(await _0xe453ab());}(this);}['_initSchema'](){const _0x3d4d6d=this['editor']['model']['schema'];_0x3d4d6d['isRegistered']('imageBlock')&&_0x3d4d6d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3d4d6d['isRegistered']('imageInline')&&_0x3d4d6d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x48ec85=this['editor'];_0x48ec85['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x48ec85['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5daf5e=>_0x5daf5e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x411c64=_0x48ec85['commands']['get']('replaceImageSource');_0x411c64&&this['listenTo'](_0x411c64,'cleanupImage',(_0x58fd81,[_0xf822ed,_0x420f65])=>{_0xf822ed['removeAttribute']('uploadcareImageId',_0x420f65);});}['_initConfig'](){const _0x42646c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5f0020=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2a9c72(_0x15f0cb['document'],'uc-config',{..._0x42646c,'pubkey':_0x5f0020,'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']=_0x4e4f0f=>{if('closeMax'==_0x4e4f0f)return'#uc-icon-arrow-down';},_0x15f0cb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2a9c72(_0x15f0cb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x15f0cb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xc300db=this['editor']['commands']['get']('insertImage');_0xc300db&&this['listenTo'](_0xc300db,'execute',()=>{const _0x140e8b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x140e8b&&_0x140e8b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x140e8b);});});const _0x1a26f4=this['editor']['commands']['get']('uploadcareImageReplace');_0x1a26f4&&this['listenTo'](_0x1a26f4,'execute',()=>{const _0x59bbce=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59bbce&&_0x59bbce['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x59bbce);});});}}class tt extends _0x5a867f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x567e15){super(_0x567e15),_0x567e15['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x34771b['defineComponents'](_0x34771b);}}class ii extends _0x38c0d8{constructor(_0x513ac7){super(_0x513ac7);const t=_0x513ac7['t'],_0x1cbd7e=this['bindTemplate'],_0x542915=new _0x6c0672();_0x542915['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':[_0x542915,{'text':_0x1cbd7e['to']('imageUploadProgress',_0x567ac8=>t('Loading\x20image...')+'\x20('+(_0x567ac8||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 _0x38c0d8{constructor(_0x30bdd4){super(_0x30bdd4);const t=_0x30bdd4['t'];this['set']('errorType',null);const _0x38052d=new _0x4201f6(_0x30bdd4);_0x38052d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x38052d['withText']=!0x0,_0x38052d['class']='ck-button-action',_0x38052d['on']('execute',()=>{this['fire']('retry');}),_0x38052d['bind']('isVisible')['to'](this,'errorType',_0x44658a=>'NotFound'!==_0x44658a);const _0x2d8db1=new _0x69e4d6();_0x2d8db1['content']=_0x106d41,_0x2d8db1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x114a98=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':[_0x2d8db1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x114a98['to']('errorType',_0x278bda=>t('NotFound'!==_0x278bda?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x38052d]},{'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 _0x38c0d8{constructor(_0x3da336,_0x4edcd3){super(_0x3da336);const _0x2cb36d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4edcd3,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2cb36d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5b0258,_0x320554,_0x364c85){super(_0x5b0258),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5b0258),this['_errorView']=new ti(_0x5b0258),this['_editingView']=new ei(_0x5b0258,_0x364c85),this['_focusableView']=new _0x38c0d8(_0x5b0258),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x320554),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'],_0x664a6f=>{this['_addUploadcareImageEditorListeners'](_0x664a6f);});}),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'](_0x831f72,_0x32c431){const _0x3fcc85='uc-cloud-image-editor',_0x559c2a=_0x831f72['querySelector'](_0x3fcc85);if(_0x559c2a)return _0x32c431(_0x559c2a);const _0x48b9a9=new MutationObserver(_0x2d6fd8=>{const _0xf2faeb=_0x2d6fd8['filter'](_0x46e4c8=>_0x46e4c8['target']===_0x831f72&&_0x46e4c8['addedNodes']['length']>0x0&&_0x46e4c8['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3fcc85);_0xf2faeb['length']&&(_0x48b9a9['disconnect'](),_0x32c431(_0xf2faeb[0x0]['addedNodes'][0x0]));});_0x48b9a9['observe'](_0x831f72,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x51c962){_0x51c962['addEventListener']('apply',_0x42f4f7=>{this['fire']('apply',{'imageSrc':_0x42f4f7['detail']['cdnUrl']});}),_0x51c962['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x43808e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x453f3b,_0x1deb28,_0x43a6dd){super(),this['_editor']=_0x453f3b,this['_dialog']=_0x1deb28,this['_imageElement']=_0x43a6dd,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 _0x353860=this['_imageElement'],_0x26a5f4=_0x353860['getAttribute']('uploadcareImageId'),_0x276813=_0x353860['getAttribute']('src');if(_0x26a5f4)await this['_loadImageInfo'](_0x26a5f4,_0x276813);else{if(this['_imageCache']['has'](_0x276813)){const _0x4abd5e=this['_imageCache']['get'](_0x276813);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4abd5e['url'],this['imageDimension']=_0x4abd5e['dimension'],this['imageId']=_0x4abd5e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x8310e1}=this['_editor'],t=_0x8310e1['t'],_0x45603f=new X(_0x8310e1,this['imageStatus'],this['_attributes']);_0x45603f['bind']('status')['to'](this,'imageStatus'),_0x45603f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x45603f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x45603f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x45603f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xe3d6d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x45603f,'position':_0x227dad['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x45603f['focus']();},'onHide':()=>{_0x45603f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f3345=>!S(_0x3f3345,_0x45603f['element'])}});}['_loadImageInfo'](_0x6d70c6,_0x577dd1){return j['getInfo'](_0x6d70c6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x8f3015=>{const {width:_0xf68b7d,height:_0x5aa9b1}=_0x8f3015['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x577dd1,this['imageDimension']={'width':_0xf68b7d,'height':_0x5aa9b1},this['imageId']=_0x6d70c6;})['catch'](_0x453e66=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x453e66['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xf21426,_0x319a59){return this['_getImageAsFile'](_0xf21426)['then'](_0x4fbe11=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x319a59['signal'],'file':_0x4fbe11,'onProgress':_0x2b8465=>{_0x2b8465&&_0x2b8465['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2b8465['value']));}}))['then'](_0x549c54=>{const {width:_0x1e30d6,height:_0x39e7ff}=_0x549c54['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x549c54['cdnUrl'],this['imageDimension']={'width':_0x1e30d6,'height':_0x39e7ff},this['imageId']=_0x549c54['uuid'],this['imageUploadProgress']=null;const _0x9d8da0=_0xf21426['getAttribute']('src');this['_imageCache']['set'](_0x9d8da0,{'id':_0x549c54['uuid'],'url':_0x549c54['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x43df74=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x43df74['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x407fde,_0x2ca9a3){_0x407fde['on']('apply',(_0x1102fc,_0xda20ae)=>{this['_replaceImage'](_0x2ca9a3,_0xda20ae['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x407fde['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x407fde['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2e535b,_0x13a69b,_0x2e14bd){const _0x56ca2c=this['_editor'],{width:_0x5ebe82,height:_0x1b970c}=C(_0x13a69b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x37a772,imageSources:_0x4e3d31}=k(_0x13a69b,_0x5ebe82);_0x56ca2c['model']['change'](_0x1bae5f=>{if('$graveyard'===_0x2e535b['root']['rootName']){_0x56ca2c['execute']('insertImage',{'imageType':_0x2e535b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2e535b['getAttributes']()),'uploadcareImageId':_0x2e14bd,'src':_0x37a772,'sources':_0x4e3d31,'width':_0x5ebe82,'height':_0x1b970c}});const _0x5b53ad=_0x2e535b['getChildren']();_0x2e535b=_0x56ca2c['model']['document']['selection']['getSelectedElement']();for(const _0xc1fd20 of _0x5b53ad)_0x1bae5f['append'](_0x1bae5f['cloneElement'](_0xc1fd20),_0x2e535b);}else _0x1bae5f['setSelection'](_0x2e535b,'on'),_0x56ca2c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2e535b['getAttributes']()),'uploadcareImageId':_0x2e14bd,'src':_0x37a772,'sources':_0x4e3d31,'width':_0x5ebe82,'height':_0x1b970c},_0x2e535b);_0x1bae5f['setSelection'](_0x2e535b,'on');});}async['_getImageAsFile'](_0x2dfb02){const _0x54a380=_0x15f0cb['window'],_0x4648bf=_0x15f0cb['document']['location']['href'],_0x4d953e=new _0x54a380['URL'](_0x2dfb02['getAttribute']('src'),_0x4648bf);if('data:'===_0x4d953e['protocol']){const _0x4d2105=_0x4d953e['href']['split'](','),_0x22a7a9=_0x4d2105[0x0]['match'](/:(.*?);/)[0x1],_0x46aa3d=_0x22a7a9['split']('/')[0x1],_0x54de08=_0x54a380['atob'](_0x4d2105[_0x4d2105['length']-0x1]);let _0x317c5e=_0x54de08['length'];const _0x191614=new _0x54a380['Uint8Array'](_0x317c5e);for(;_0x317c5e--;)_0x191614[_0x317c5e]=_0x54de08['charCodeAt'](_0x317c5e);return new _0x54a380['File']([_0x191614],'image.'+_0x46aa3d,{'type':_0x22a7a9});}const _0x322aa5=_0x4d953e['href']['split']('/'),_0x3bb6a6=_0x322aa5[_0x322aa5['length']-0x1],_0xc23fbb=_0x3bb6a6['split']('.')[0x1];return _0x54a380['fetch'](_0x4d953e['href'])['then'](_0x56588e=>_0x56588e['clone']()['blob']())['then'](_0x1cd8ed=>new _0x54a380['File']([_0x1cd8ed],_0x3bb6a6,{'type':'image/'+_0xc23fbb}));}}class O extends _0x4e6b30{['imageEditController'];static get['requires'](){return[_0x4322d9];}['_isEditable'];constructor(_0x2d13c0){super(_0x2d13c0),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x415101){const _0x527254=G(_0x415101);return _0x40c517=>!(!_0x40c517||!_0x40c517['is']('element','imageBlock')&&!_0x40c517['is']('element','imageInline'))&&(!!_0x40c517['hasAttribute']('uploadcareImageId')||!!_0x40c517['hasAttribute']('src')&&_0x527254(_0x40c517['getAttribute']('src')));}(_0x2d13c0['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1ebdd1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1ebdd1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x404d5f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x404d5f&&(_0x404d5f['is']('element','imageBlock')||_0x404d5f['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4322d9),_0x404d5f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4e6b30{['refresh'](){const _0x5bdd18=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5bdd18&&(_0x5bdd18['is']('element','imageBlock')||_0x5bdd18['is']('element','imageInline')));}['execute'](_0x37519e){const _0x3270fa=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x45702c=>{_0x45702c['setAttributes'](_0x37519e,_0x3270fa),_0x45702c['removeAttribute']('srcset',_0x3270fa),_0x45702c['removeAttribute']('sizes',_0x3270fa);});}}class m extends _0x5a867f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x12e5a7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2abb5f}=this;_0x2abb5f['commands']['add']('uploadcareImageEdit',new O(_0x2abb5f)),_0x2abb5f['commands']['add']('uploadcareImageReplace',new R(_0x2abb5f));}}class g extends _0x5a867f{['_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 _0xbde5c1=this['editor'];_0xbde5c1['ui']['componentFactory']['add']('uploadcareImageEdit',_0xeaa1a9=>{const _0x590d94=_0xbde5c1['commands']['get']('uploadcareImageEdit'),_0x989400=new _0x4201f6(_0xeaa1a9),t=_0xeaa1a9['t'];return _0x989400['set']({'icon':_0xe3d6d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x989400['bind']('isEnabled')['to'](_0x590d94),_0x989400['bind']('isOn')['to'](_0x590d94,'isActive'),this['listenTo'](_0x989400,'execute',()=>{_0xbde5c1['execute']('uploadcareImageEdit'),_0xbde5c1['editing']['view']['focus']();}),_0x989400;}),this['_initConfig']();}['_initConfig'](){const _0x143e44=_0x2a9c72(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x143e44),this['listenTo'](this['editor'],'destroy',()=>{_0x143e44['remove']();});}}class et extends _0x5a867f{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": "46.0.1-alpha.8",
3
+ "version": "46.0.1-alpha.9",
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": "46.0.1-alpha.8",
27
- "@ckeditor/ckeditor5-icons": "46.0.1-alpha.8",
28
- "@ckeditor/ckeditor5-image": "46.0.1-alpha.8",
29
- "@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.8",
30
- "@ckeditor/ckeditor5-ui": "46.0.1-alpha.8",
31
- "@ckeditor/ckeditor5-upload": "46.0.1-alpha.8",
32
- "@ckeditor/ckeditor5-utils": "46.0.1-alpha.8",
33
- "ckeditor5": "46.0.1-alpha.8",
26
+ "@ckeditor/ckeditor5-core": "46.0.1-alpha.9",
27
+ "@ckeditor/ckeditor5-icons": "46.0.1-alpha.9",
28
+ "@ckeditor/ckeditor5-image": "46.0.1-alpha.9",
29
+ "@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.9",
30
+ "@ckeditor/ckeditor5-ui": "46.0.1-alpha.9",
31
+ "@ckeditor/ckeditor5-upload": "46.0.1-alpha.9",
32
+ "@ckeditor/ckeditor5-utils": "46.0.1-alpha.9",
33
+ "ckeditor5": "46.0.1-alpha.9",
34
34
  "@uploadcare/file-uploader": "1.17.1",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x525748=_0x4a6d;(function(_0x16f59a,_0x8f596c){const _0x6819ac=_0x4a6d,_0x40e474=_0x16f59a();while(!![]){try{const _0x261654=-parseInt(_0x6819ac(0xd3))/0x1*(parseInt(_0x6819ac(0xa8))/0x2)+-parseInt(_0x6819ac(0xb5))/0x3+-parseInt(_0x6819ac(0xa1))/0x4*(-parseInt(_0x6819ac(0xb9))/0x5)+-parseInt(_0x6819ac(0xcc))/0x6*(parseInt(_0x6819ac(0xe2))/0x7)+parseInt(_0x6819ac(0xc0))/0x8+parseInt(_0x6819ac(0xc4))/0x9+parseInt(_0x6819ac(0xbe))/0xa;if(_0x261654===_0x8f596c)break;else _0x40e474['push'](_0x40e474['shift']());}catch(_0x416d5c){_0x40e474['push'](_0x40e474['shift']());}}}(_0x163b,0x84a36));function _0x4a6d(_0x684da4,_0x140948){const _0x163b28=_0x163b();return _0x4a6d=function(_0x4a6d59,_0x15cebf){_0x4a6d59=_0x4a6d59-0x98;let _0x49948a=_0x163b28[_0x4a6d59];return _0x49948a;},_0x4a6d(_0x684da4,_0x140948);}function _0x163b(){const _0x58d1e1=['afterInit','ucContextId','isRegistered','downcast','map','uploadcare.uploader','pluginName','get','upcast','2260601esMdwE','uc-config','getSelectedElement','join','isOfficialPlugin','iconHrefResolver','href','body','uc-upload-ctx-provider','init','insertImage','imageBlock','remove','destroy','removeAttribute','PictureEditing','attributeToAttribute','contentLanguage','_configElement','isPremiumPlugin','1440092BMjTTH','uploadcareImageId','true','elementToAttribute','_initSchema','uploadcareImageReplace','data-uc-image-id','4766NVJFvl','#uc-icon-arrow-down','appendChild','imageInline','editing','listenTo','querySelector','uploadcare.pubkey','\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','UploadcareEditing','conversion','_initConversion','_initImageProcessingIndicator','2943336GMTYzL','add','document','_initConfig','5MtYwZA','schema','replaceImageSource','config','ctxElement','12632270lTsfer','model','1598912XqIUEw','input[uploadcare-file-input]','closeMax','for','4378761UPNswH','uploadcare','once','configElement','execute','commands','view','editor','6cjHInh','fromCharCode','_initCtx','render','_ctxElement','cleanupImage','requires','194NgKrvL','getAttribute','selection','locale','extend','uploader-'];_0x163b=function(){return _0x58d1e1;};return _0x163b();}import{Plugin as _0x5778a0}from'ckeditor5/src/core.js';import{Dialog as _0x2aaf2b}from'ckeditor5/src/ui.js';import{createElement as _0x2b77a5,global as _0x20bebf,uid as _0x2291f5}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4323c3}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2132ee}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1f7017}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5778a0{[_0x525748(0x9f)]=null;[_0x525748(0xd0)]=null;static get[_0x525748(0xdf)](){const _0xf36775=_0x525748;return _0xf36775(0xb1);}static get[_0x525748(0xd2)](){const _0x12cac8=_0x525748;return[_0x12cac8(0x9c),_0x2132ee,_0x2aaf2b];}static get[_0x525748(0xe6)](){return!0x0;}static get[_0x525748(0xa0)](){return!0x0;}[_0x525748(0xda)];get[_0x525748(0xc7)](){const _0xf552a0=_0x525748;return this[_0xf552a0(0x9f)];}get[_0x525748(0xbd)](){const _0x472dcb=_0x525748;return this[_0x472dcb(0xd0)];}constructor(_0x4b2a73){const _0x47c158=_0x525748;super(_0x4b2a73),this[_0x47c158(0xda)]=_0x2291f5();}[_0x525748(0xeb)](){const _0xc7aa2e=_0x525748,_0x1405dc=this[_0xc7aa2e(0xcb)];_0x1405dc[_0xc7aa2e(0xc9)][_0xc7aa2e(0xb6)](_0xc7aa2e(0xc5),new _0x4323c3(_0x1405dc));}[_0x525748(0xd9)](){const _0x15cbd2=_0x525748;this[_0x15cbd2(0xa5)](),this[_0x15cbd2(0xb3)](),this[_0x15cbd2(0xb8)](),this[_0x15cbd2(0xce)](),this[_0x15cbd2(0xb4)](),this[_0x15cbd2(0xad)](this[_0x15cbd2(0xcb)],_0x15cbd2(0x9a),()=>{const _0x5756f8=_0x15cbd2;this[_0x5756f8(0x9f)]&&(this[_0x5756f8(0x9f)][_0x5756f8(0x99)](),this[_0x5756f8(0x9f)]=null),this[_0x5756f8(0xd0)]&&(this[_0x5756f8(0xd0)][_0x5756f8(0x99)](),this[_0x5756f8(0xd0)]=null);const _0x17eac5=_0x20bebf[_0x5756f8(0xb7)][_0x5756f8(0xae)](_0x5756f8(0xc1));_0x17eac5&&_0x17eac5[_0x5756f8(0x99)]();}),async function(_0x30100f){const _0x3f2856=_0xbda4b2([0x55,0x57,0x4d,0x36,0x50,0x56,0x79,0x75,0x4b,0x63,0x6d,0x5a,0x77,0x32,0x6c,0x59,0x52,0x6f,0x74,0x42,0x4e,0x45,0x6b,0x49,0x31,0x41,0x78,0x43,0x58,0x53,0x47,0x39,0x61,0x30,0x67,0x37,0x73,0x72,0x66,0x4f,0x46,0x4a,0x76,0x6a,0x48,0x33,0x62,0x64,0x68,0x44,0x70,0x65,0x34,0x4c,0x7a,0x35,0x6e,0x38,0x71,0x54,0x69,0x51]),_0x480e5a=0xedc7fa3,_0x3b284a=0xedb1013^_0x480e5a,_0x4d3164=window[_0xbda4b2([0x44,0x61,0x74,0x65])][_0xbda4b2([0x6e,0x6f,0x77])](),_0x5cd70a=_0x30100f[_0xbda4b2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x940e5c=new window[(_0xbda4b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cf3d1=>{_0x5cd70a[_0xbda4b2([0x6f,0x6e,0x63,0x65])](_0xbda4b2([0x72,0x65,0x61,0x64,0x79]),_0x5cf3d1);}),_0x491614={[_0xbda4b2([0x6b,0x74,0x79])]:_0xbda4b2([0x45,0x43]),[_0xbda4b2([0x75,0x73,0x65])]:_0xbda4b2([0x73,0x69,0x67]),[_0xbda4b2([0x63,0x72,0x76])]:_0xbda4b2([0x50,0x2d,0x32,0x35,0x36]),[_0xbda4b2([0x78])]:_0xbda4b2([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]),[_0xbda4b2([0x79])]:_0xbda4b2([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]),[_0xbda4b2([0x61,0x6c,0x67])]:_0xbda4b2([0x45,0x53,0x32,0x35,0x36])},_0x47f14e=_0x5cd70a[_0xbda4b2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xbda4b2([0x67,0x65,0x74])](_0xbda4b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b0877(){let _0x46cfab,_0x11eaf4=null,_0x5491d0=null;try{if(_0x47f14e==_0xbda4b2([0x47,0x50,0x4c]))return _0xbda4b2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x46cfab=_0x47fff3(),!_0x46cfab)return _0xbda4b2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x46cfab[_0xbda4b2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5491d0=_0x29c997(_0x46cfab[_0xbda4b2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x46cfab[_0xbda4b2([0x6a,0x74,0x69])])),await _0x3b7a36()?_0x122914()?_0x30fb26()?_0xbda4b2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5ca4b1()?(_0x46cfab[_0xbda4b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbda4b2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11eaf4=_0x5472da(_0xbda4b2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x46cfab[_0xbda4b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbda4b2([0x74,0x72,0x69,0x61,0x6c])&&(_0x11eaf4=_0x5472da(_0xbda4b2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2469a6()):_0xbda4b2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xbda4b2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xbda4b2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xbda4b2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x30fb26(){const _0x6ff39f=[_0xbda4b2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xbda4b2([0x74,0x72,0x69,0x61,0x6c])][_0xbda4b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46cfab[_0xbda4b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d3164/0x3e8:0xe10*_0x3b284a;return _0x46cfab[_0xbda4b2([0x65,0x78,0x70])]<_0x6ff39f;}function _0x122914(){const _0x17bc35=_0x46cfab[_0xbda4b2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17bc35&&(!!_0x17bc35[_0xbda4b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbda4b2([0x2a]))||!!_0x17bc35[_0xbda4b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbda4b2([0x55,0x50,0x4c,0x43])));}function _0x5ca4b1(){const _0x2d797a=_0x4a6d,_0x6da593=_0x46cfab[_0xbda4b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6da593||0x0==_0x6da593[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56b92f}=new URL(window[_0xbda4b2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2d797a(0xe8)]);if(_0x6da593[_0xbda4b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56b92f))return!0x0;const _0x46f43a=_0x56b92f[_0xbda4b2([0x73,0x70,0x6c,0x69,0x74])](_0xbda4b2([0x2e]));return _0x6da593[_0xbda4b2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d6d3a=>_0x3d6d3a[_0xbda4b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbda4b2([0x2a])))[_0xbda4b2([0x6d,0x61,0x70])](_0x285c56=>_0x285c56[_0xbda4b2([0x73,0x70,0x6c,0x69,0x74])](_0xbda4b2([0x2e])))[_0xbda4b2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3eaa7d=>_0x3eaa7d[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x46f43a[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbda4b2([0x6d,0x61,0x70])](_0x52568c=>Array(_0x46f43a[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x52568c[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbda4b2([0x66,0x69,0x6c,0x6c])](_0x52568c[0x0]===_0xbda4b2([0x2a])?_0xbda4b2([0x2a]):'')[_0xbda4b2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x52568c))[_0xbda4b2([0x73,0x6f,0x6d,0x65])](_0x5caab3=>_0x46f43a[_0xbda4b2([0x65,0x76,0x65,0x72,0x79])]((_0xcb244c,_0x41494f)=>_0x5caab3[_0x41494f]===_0xcb244c||_0x5caab3[_0x41494f]===_0xbda4b2([0x2a])));}function _0x2469a6(){return _0x11eaf4&&_0x5491d0?new window[(_0xbda4b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c4db0,_0x4fb679)=>{_0x11eaf4[_0xbda4b2([0x74,0x68,0x65,0x6e])](_0x5c4db0,_0x4fb679),_0x5491d0[_0xbda4b2([0x74,0x68,0x65,0x6e])](_0x5bb966=>{_0x5bb966!=_0xbda4b2([0x56,0x61,0x6c,0x69,0x64])&&_0x5c4db0(_0x5bb966);},_0x4fb679);}):_0x11eaf4||_0x5491d0||_0xbda4b2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x29c997(_0xd5a185,_0x518200){return new window[(_0xbda4b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50be1e=>{if(_0x409702())return _0x50be1e(_0xbda4b2([0x56,0x61,0x6c,0x69,0x64]));_0x591774(),_0x5cd70a[_0xbda4b2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xbda4b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a7c52=!0x1;const _0x417111=_0x2291f5();function _0x1018f5(_0x2fba2e){return!!_0x2fba2e&&(typeof _0x2fba2e===_0xbda4b2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2fba2e===_0xbda4b2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2fba2e[_0xbda4b2([0x74,0x68,0x65,0x6e])]===_0xbda4b2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2fba2e[_0xbda4b2([0x63,0x61,0x74,0x63,0x68])]===_0xbda4b2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x45ae98(_0x5a6f3d){_0x4aa8d1(_0x5a6f3d)[_0xbda4b2([0x74,0x68,0x65,0x6e])](_0x1c9016=>{if(!_0x1c9016||_0x1c9016[_0xbda4b2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xbda4b2([0x6f,0x6b]))return _0xbda4b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x872070(_0x2e3613(_0x417111+_0x518200))!=_0x1c9016[_0xbda4b2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xbda4b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xbda4b2([0x56,0x61,0x6c,0x69,0x64]);})[_0xbda4b2([0x74,0x68,0x65,0x6e])](_0x54e0ec=>(_0x5b0d77(),_0x54e0ec),()=>{const _0x3db137=_0x5ad90f();return null==_0x3db137?(_0x5b0d77(),_0xbda4b2([0x56,0x61,0x6c,0x69,0x64])):_0xbda4b2(_0x4d3164-_0x3db137>(0x2ad0fba3^_0x480e5a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xbda4b2([0x74,0x68,0x65,0x6e])](_0x50be1e)[_0xbda4b2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x50be1e(_0xbda4b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x358528=0xeea9123^_0x480e5a;function _0x5b0d77(){const _0x3dbd30=_0xbda4b2([0x6c,0x6c,0x63,0x74,0x2d])+_0x872070(_0x2e3613(_0xd5a185)),_0x16197d=_0x494705(_0x872070(window[_0xbda4b2([0x4d,0x61,0x74,0x68])][_0xbda4b2([0x63,0x65,0x69,0x6c])](_0x4d3164/_0x358528)));window[_0xbda4b2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbda4b2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3dbd30,_0x16197d);}function _0x5ad90f(){const _0x4f42d7=_0xbda4b2([0x6c,0x6c,0x63,0x74,0x2d])+_0x872070(_0x2e3613(_0xd5a185)),_0x63013a=window[_0xbda4b2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbda4b2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f42d7);return _0x63013a?window[_0xbda4b2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x494705(_0x63013a),0x10)*_0x358528:null;}function _0x4aa8d1(_0x45b164){return new window[(_0xbda4b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38f8f7,_0x14d122)=>{_0x45b164[_0xbda4b2([0x74,0x68,0x65,0x6e])](_0x38f8f7,_0x14d122),window[_0xbda4b2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14d122,0xeddab63^_0x480e5a);});}}_0x5cd70a[_0xbda4b2([0x6f,0x6e])](_0xbda4b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ab25f,_0x193314)=>{if(_0x193314[0x0]!=_0xd5a185)return _0x50be1e(_0xbda4b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x193314[0x1]={..._0x193314[0x1],[_0xbda4b2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x417111};},{[_0xbda4b2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbda4b2([0x68,0x69,0x67,0x68])}),_0x5cd70a[_0xbda4b2([0x6f,0x6e])](_0xbda4b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a8091=>{_0x1018f5(_0x3a8091[_0xbda4b2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a7c52=!0x0,_0x45ae98(_0x3a8091[_0xbda4b2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xbda4b2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbda4b2([0x6c,0x6f,0x77])}),_0x940e5c[_0xbda4b2([0x74,0x68,0x65,0x6e])](()=>{_0x5a7c52||_0x50be1e(_0xbda4b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x409702(){return _0x5cd70a[_0xbda4b2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbda4b2([0x76,0x69,0x65,0x77])][_0xbda4b2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xbda4b2([0x61,0x75,0x74,0x6f]);}function _0x591774(){_0x5cd70a[_0xbda4b2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbda4b2([0x76,0x69,0x65,0x77])][_0xbda4b2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbda4b2([0x61,0x75,0x74,0x6f]);}}function _0x5472da(_0x41f00b){const _0x5605f6=[new window[(_0xbda4b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aef07=>setTimeout(_0x3aef07,0xed5416f^_0x480e5a)),_0x940e5c[_0xbda4b2([0x74,0x68,0x65,0x6e])](()=>new window[(_0xbda4b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf14f1e=>{let _0xa4a59d=0x0;_0x5cd70a[_0xbda4b2([0x6d,0x6f,0x64,0x65,0x6c])][_0xbda4b2([0x6f,0x6e])](_0xbda4b2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c6d8a,_0x16a8fc)=>{_0x16a8fc[0x0][_0xbda4b2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa4a59d++,_0xa4a59d==(0xedc7e5b^_0x480e5a)&&(_0xf14f1e(),_0x3c6d8a[_0xbda4b2([0x6f,0x66,0x66])]());});}))];return window[_0xbda4b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbda4b2([0x72,0x61,0x63,0x65])](_0x5605f6)[_0xbda4b2([0x74,0x68,0x65,0x6e])](()=>_0x41f00b);}async function _0x40bd2d(){await _0x940e5c,_0x5cd70a[_0xbda4b2([0x6d,0x6f,0x64,0x65,0x6c])][_0xbda4b2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd7c084,_0x5cd70a[_0xbda4b2([0x6d,0x6f,0x64,0x65,0x6c])][_0xbda4b2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd7c084,_0x5cd70a[_0xbda4b2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xbda4b2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e544a(_0x183a22){const _0x55ac23=_0x515497();_0x5cd70a[_0x55ac23]=_0xbda4b2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x183a22,_0x183a22!=_0xbda4b2([0x56,0x61,0x6c,0x69,0x64])&&_0x40bd2d();}function _0x515497(){const _0xa6af6a=window[_0xbda4b2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xbda4b2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xbda4b2([0x6e,0x6f,0x77])]())[_0xbda4b2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xbda4b2([0x2e]),'');let _0x1922b8=_0xbda4b2([0x55]);for(let _0x3aa0ca=0x0;_0x3aa0ca<_0xa6af6a[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3aa0ca+=0x2){let _0x49df4c=window[_0xbda4b2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa6af6a[_0xbda4b2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3aa0ca,_0x3aa0ca+0x2));_0x49df4c>=_0x3f2856[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49df4c-=_0x3f2856[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1922b8+=_0x3f2856[_0x49df4c];}return _0x1922b8;}function _0x47fff3(){const _0x39e2df=_0x47f14e[_0xbda4b2([0x73,0x70,0x6c,0x69,0x74])](_0xbda4b2([0x2e]));if(0x3!=_0x39e2df[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7f487(_0x39e2df[0x1]);function _0x7f487(_0x57765b){const _0x2e1b94=_0x257e09(_0x57765b);return _0x2e1b94&&_0x52cb9b()?_0x2e1b94:null;function _0x52cb9b(){const _0x513705=_0x2e1b94[_0xbda4b2([0x6a,0x74,0x69])],_0x5c8f02=window[_0xbda4b2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x513705[_0xbda4b2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x513705[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18bcad={..._0x2e1b94,[_0xbda4b2([0x6a,0x74,0x69])]:_0x513705[_0xbda4b2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x513705[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18bcad[_0xbda4b2([0x76,0x63])],_0x2e3613(_0x18bcad)==_0x5c8f02;}}}async function _0x3b7a36(){let _0xb094fa=!0x0;try{const _0x450175=_0x47f14e[_0xbda4b2([0x73,0x70,0x6c,0x69,0x74])](_0xbda4b2([0x2e])),[_0x18125b,_0x1f815f,_0xc0068f]=_0x450175;return _0x513f48(_0x18125b),await _0x25822a(_0x18125b,_0x1f815f,_0xc0068f),_0xb094fa;}catch{return!0x1;}function _0x513f48(_0x280dc1){const _0x475371=_0x257e09(_0x280dc1);_0x475371&&_0x475371[_0xbda4b2([0x61,0x6c,0x67])]==_0xbda4b2([0x45,0x53,0x32,0x35,0x36])||(_0xb094fa=!0x1);}async function _0x25822a(_0x46f6e5,_0x3b7be2,_0x2dc762){const _0x5c5ef0=window[_0xbda4b2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xbda4b2([0x66,0x72,0x6f,0x6d])](_0x4fc190(_0x2dc762),_0x199b3e=>_0x199b3e[_0xbda4b2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x159b3f=new window[(_0xbda4b2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xbda4b2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x46f6e5+_0xbda4b2([0x2e])+_0x3b7be2),_0x2c6925=window[_0xbda4b2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xbda4b2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c6925)return;const _0x326ad2=await _0x2c6925[_0xbda4b2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xbda4b2([0x6a,0x77,0x6b]),_0x491614,{[_0xbda4b2([0x6e,0x61,0x6d,0x65])]:_0xbda4b2([0x45,0x43,0x44,0x53,0x41]),[_0xbda4b2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xbda4b2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xbda4b2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c6925[_0xbda4b2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xbda4b2([0x6e,0x61,0x6d,0x65])]:_0xbda4b2([0x45,0x43,0x44,0x53,0x41]),[_0xbda4b2([0x68,0x61,0x73,0x68])]:{[_0xbda4b2([0x6e,0x61,0x6d,0x65])]:_0xbda4b2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x326ad2,_0x5c5ef0,_0x159b3f)||(_0xb094fa=!0x1);}}function _0x257e09(_0x43389f){return _0x43389f[_0xbda4b2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xbda4b2([0x65,0x79]))?JSON[_0xbda4b2([0x70,0x61,0x72,0x73,0x65])](_0x4fc190(_0x43389f)):null;}function _0x4fc190(_0x48b4e7){return window[_0xbda4b2([0x61,0x74,0x6f,0x62])](_0x48b4e7[_0xbda4b2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xbda4b2([0x2b]))[_0xbda4b2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xbda4b2([0x2f])));}function _0x2e3613(_0x4b6107){let _0x27e093=0x1505;function _0x1aac76(_0x52e4ae){for(let _0x149304=0x0;_0x149304<_0x52e4ae[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x149304++){const _0x100495=_0x52e4ae[_0xbda4b2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x149304);_0x27e093=(_0x27e093<<0x5)+_0x27e093+_0x100495,_0x27e093&=_0x27e093;}}function _0x135127(_0xbc9066){Array[_0xbda4b2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xbc9066)?_0xbc9066[_0xbda4b2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x135127):_0xbc9066&&typeof _0xbc9066==_0xbda4b2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xbda4b2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xbc9066)[_0xbda4b2([0x73,0x6f,0x72,0x74])]()[_0xbda4b2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10c130,_0x166419])=>{_0x1aac76(_0x10c130),_0x135127(_0x166419);}):_0x1aac76(window[_0xbda4b2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xbc9066));}return _0x135127(_0x4b6107),_0x27e093>>>0x0;}function _0x872070(_0x6a492){return _0x6a492[_0xbda4b2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xbda4b2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xbda4b2([0x30]));}function _0x494705(_0x40d263){return _0x40d263[_0xbda4b2([0x73,0x70,0x6c,0x69,0x74])]('')[_0xbda4b2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xbda4b2([0x6a,0x6f,0x69,0x6e])]('');}function _0xd7c084(){}function _0xbda4b2(_0x28a918){const _0x5082b7=_0x4a6d;return _0x28a918[_0x5082b7(0xdd)](_0x2caf80=>String[_0x5082b7(0xcd)](_0x2caf80))[_0x5082b7(0xe5)]('');}_0x2e544a(await _0x5b0877());}(this);}[_0x525748(0xa5)](){const _0x1bcc52=_0x525748,_0x9e83b8=this[_0x1bcc52(0xcb)][_0x1bcc52(0xbf)][_0x1bcc52(0xba)];_0x9e83b8[_0x1bcc52(0xdb)](_0x1bcc52(0x98))&&_0x9e83b8[_0x1bcc52(0xd7)](_0x1bcc52(0x98),{'allowAttributes':[_0x1bcc52(0xa2)]}),_0x9e83b8[_0x1bcc52(0xdb)](_0x1bcc52(0xab))&&_0x9e83b8[_0x1bcc52(0xd7)](_0x1bcc52(0xab),{'allowAttributes':[_0x1bcc52(0xa2)]});}[_0x525748(0xb3)](){const _0x27b266=_0x525748,_0x307911=this[_0x27b266(0xcb)];_0x307911[_0x27b266(0xb2)][_0x27b266(0xc3)](_0x27b266(0xdc))[_0x27b266(0x9d)]({'model':_0x27b266(0xa2),'view':_0x27b266(0xa7)}),_0x307911[_0x27b266(0xb2)][_0x27b266(0xc3)](_0x27b266(0xe1))[_0x27b266(0xa4)]({'model':{'key':_0x27b266(0xa2),'value':_0x16107f=>_0x16107f[_0x27b266(0xd4)](_0x27b266(0xa7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x210a53=_0x307911[_0x27b266(0xc9)][_0x27b266(0xe0)](_0x27b266(0xbb));_0x210a53&&this[_0x27b266(0xad)](_0x210a53,_0x27b266(0xd1),(_0x4ced55,[_0x1605a5,_0x33f4f5])=>{const _0x37cb02=_0x27b266;_0x1605a5[_0x37cb02(0x9b)](_0x37cb02(0xa2),_0x33f4f5);});}[_0x525748(0xb8)](){const _0x3f1f6e=_0x525748,_0x546c5d=this[_0x3f1f6e(0xcb)][_0x3f1f6e(0xbc)][_0x3f1f6e(0xe0)](_0x3f1f6e(0xde))||{},_0x43dd88=this[_0x3f1f6e(0xcb)][_0x3f1f6e(0xbc)][_0x3f1f6e(0xe0)](_0x3f1f6e(0xaf))||'';this[_0x3f1f6e(0x9f)]=_0x2b77a5(_0x20bebf[_0x3f1f6e(0xb7)],_0x3f1f6e(0xe3),{..._0x546c5d,'pubkey':_0x43dd88,'ctx-name':_0x3f1f6e(0xd8)+this[_0x3f1f6e(0xda)],'sourceList':'','imgOnly':_0x3f1f6e(0xa3),'removeCopyright':_0x3f1f6e(0xa3),'localeName':this[_0x3f1f6e(0xcb)][_0x3f1f6e(0xd6)][_0x3f1f6e(0x9e)],'externalSourcesEmbedCss':_0x3f1f6e(0xb0)}),this[_0x3f1f6e(0x9f)][_0x3f1f6e(0xe7)]=_0x2b36db=>{const _0x1517f3=_0x3f1f6e;if(_0x1517f3(0xc2)==_0x2b36db)return _0x1517f3(0xa9);},_0x20bebf[_0x3f1f6e(0xb7)][_0x3f1f6e(0xe9)][_0x3f1f6e(0xaa)](this[_0x3f1f6e(0x9f)]);}[_0x525748(0xce)](){const _0x4b06e5=_0x525748;this[_0x4b06e5(0xd0)]=_0x2b77a5(_0x20bebf[_0x4b06e5(0xb7)],_0x4b06e5(0xea),{'ctx-name':_0x4b06e5(0xd8)+this[_0x4b06e5(0xda)]}),_0x20bebf[_0x4b06e5(0xb7)][_0x4b06e5(0xe9)][_0x4b06e5(0xaa)](this[_0x4b06e5(0xd0)]);}[_0x525748(0xb4)](){const _0x2a4df9=_0x525748,_0x5d743b=this[_0x2a4df9(0xcb)][_0x2a4df9(0xc9)][_0x2a4df9(0xe0)](_0x2a4df9(0xec));_0x5d743b&&this[_0x2a4df9(0xad)](_0x5d743b,_0x2a4df9(0xc8),()=>{const _0x32b6b2=_0x2a4df9,_0x24a897=this[_0x32b6b2(0xcb)][_0x32b6b2(0xbf)][_0x32b6b2(0xb7)][_0x32b6b2(0xd5)][_0x32b6b2(0xe4)]();_0x24a897&&_0x24a897[_0x32b6b2(0xd4)](_0x32b6b2(0xa2))&&this[_0x32b6b2(0xcb)][_0x32b6b2(0xac)][_0x32b6b2(0xca)][_0x32b6b2(0xc6)](_0x32b6b2(0xcf),()=>{const _0x390963=_0x32b6b2;_0x1f7017(this[_0x390963(0xcb)],_0x24a897);});});const _0x2ddfc6=this[_0x2a4df9(0xcb)][_0x2a4df9(0xc9)][_0x2a4df9(0xe0)](_0x2a4df9(0xa6));_0x2ddfc6&&this[_0x2a4df9(0xad)](_0x2ddfc6,_0x2a4df9(0xc8),()=>{const _0x3aed0c=_0x2a4df9,_0x415493=this[_0x3aed0c(0xcb)][_0x3aed0c(0xbf)][_0x3aed0c(0xb7)][_0x3aed0c(0xd5)][_0x3aed0c(0xe4)]();_0x415493&&_0x415493[_0x3aed0c(0xd4)](_0x3aed0c(0xa2))&&this[_0x3aed0c(0xcb)][_0x3aed0c(0xac)][_0x3aed0c(0xca)][_0x3aed0c(0xc6)](_0x3aed0c(0xcf),()=>{const _0x4e7763=_0x3aed0c;_0x1f7017(this[_0x4e7763(0xcb)],_0x415493);});});}}
23
+ const _0x4cdcda=_0x25ab;(function(_0x473368,_0x3d54da){const _0xc2883a=_0x25ab,_0x33193b=_0x473368();while(!![]){try{const _0x3203d7=-parseInt(_0xc2883a(0x1b2))/0x1*(-parseInt(_0xc2883a(0x1d7))/0x2)+-parseInt(_0xc2883a(0x1fb))/0x3*(parseInt(_0xc2883a(0x1ac))/0x4)+-parseInt(_0xc2883a(0x1c8))/0x5+parseInt(_0xc2883a(0x1b0))/0x6*(parseInt(_0xc2883a(0x1e1))/0x7)+parseInt(_0xc2883a(0x1fe))/0x8*(-parseInt(_0xc2883a(0x1ee))/0x9)+parseInt(_0xc2883a(0x1c6))/0xa+parseInt(_0xc2883a(0x1ea))/0xb;if(_0x3203d7===_0x3d54da)break;else _0x33193b['push'](_0x33193b['shift']());}catch(_0x3177b3){_0x33193b['push'](_0x33193b['shift']());}}}(_0x85b7,0xbc386));function _0x25ab(_0x436c77,_0x3a772a){const _0x85b753=_0x85b7();return _0x25ab=function(_0x25abd2,_0x4a8f91){_0x25abd2=_0x25abd2-0x1ab;let _0x2ba266=_0x85b753[_0x25abd2];return _0x2ba266;},_0x25ab(_0x436c77,_0x3a772a);}import{Plugin as _0x2c29f4}from'ckeditor5/src/core.js';import{Dialog as _0x49a108}from'ckeditor5/src/ui.js';import{createElement as _0x31443c,global as _0x5f2b4f,uid as _0x173b96}from'ckeditor5/src/utils.js';function _0x85b7(){const _0x6febc7=['insertImage','for','appendChild','4522johdIP','uc-config','imageInline','contentLanguage','UploadcareEditing','init','once','_initConversion','editing','30796568TvlyCd','data-uc-image-id','join','destroy','23481kiByIZ','replaceImageSource','_initConfig','body','render','uploadcareImageId','input[uploadcare-file-input]','schema','\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','_initSchema','extend','uploadcare.uploader','#uc-icon-arrow-down','4253241qDDYUS','config','downcast','3944wuINab','listenTo','href','view','4bblaJc','removeAttribute','isPremiumPlugin','commands','294TcIfHQ','getAttribute','775dOYKnp','uploader-','map','_initCtx','_configElement','ctxElement','closeMax','requires','uploadcareImageReplace','selection','PictureEditing','isRegistered','add','configElement','imageBlock','pluginName','iconHrefResolver','document','conversion','uploadcare','11370700uIyBed','afterInit','4207265AECtLc','uc-upload-ctx-provider','upcast','remove','_initImageProcessingIndicator','elementToAttribute','fromCharCode','uploadcare.pubkey','execute','querySelector','editor','getSelectedElement','get','isOfficialPlugin','ucContextId','898MUtAHH','true','locale','cleanupImage','model','attributeToAttribute','_ctxElement'];_0x85b7=function(){return _0x6febc7;};return _0x85b7();}import{UploadcareCommand as _0x2d97a9}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xf2d8bd}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5ac45d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2c29f4{[_0x4cdcda(0x1b6)]=null;[_0x4cdcda(0x1dd)]=null;static get[_0x4cdcda(0x1c1)](){const _0x196a00=_0x4cdcda;return _0x196a00(0x1e5);}static get[_0x4cdcda(0x1b9)](){const _0x4bcf8f=_0x4cdcda;return[_0x4bcf8f(0x1bc),_0xf2d8bd,_0x49a108];}static get[_0x4cdcda(0x1d5)](){return!0x0;}static get[_0x4cdcda(0x1ae)](){return!0x0;}[_0x4cdcda(0x1d6)];get[_0x4cdcda(0x1bf)](){const _0x33a09a=_0x4cdcda;return this[_0x33a09a(0x1b6)];}get[_0x4cdcda(0x1b7)](){const _0xe1d706=_0x4cdcda;return this[_0xe1d706(0x1dd)];}constructor(_0x14efeb){const _0x1d7d63=_0x4cdcda;super(_0x14efeb),this[_0x1d7d63(0x1d6)]=_0x173b96();}[_0x4cdcda(0x1e6)](){const _0x2785bb=_0x4cdcda,_0x50f7ec=this[_0x2785bb(0x1d2)];_0x50f7ec[_0x2785bb(0x1af)][_0x2785bb(0x1be)](_0x2785bb(0x1c5),new _0x2d97a9(_0x50f7ec));}[_0x4cdcda(0x1c7)](){const _0x3a9937=_0x4cdcda;this[_0x3a9937(0x1f7)](),this[_0x3a9937(0x1e8)](),this[_0x3a9937(0x1f0)](),this[_0x3a9937(0x1b5)](),this[_0x3a9937(0x1cc)](),this[_0x3a9937(0x1ff)](this[_0x3a9937(0x1d2)],_0x3a9937(0x1ed),()=>{const _0x5f106b=_0x3a9937;this[_0x5f106b(0x1b6)]&&(this[_0x5f106b(0x1b6)][_0x5f106b(0x1cb)](),this[_0x5f106b(0x1b6)]=null),this[_0x5f106b(0x1dd)]&&(this[_0x5f106b(0x1dd)][_0x5f106b(0x1cb)](),this[_0x5f106b(0x1dd)]=null);const _0x1ecb1d=_0x5f2b4f[_0x5f106b(0x1c3)][_0x5f106b(0x1d1)](_0x5f106b(0x1f4));_0x1ecb1d&&_0x1ecb1d[_0x5f106b(0x1cb)]();}),async function(_0x49a17f){const _0x56a740=_0x4c601a([0x76,0x6e,0x37,0x67,0x45,0x4c,0x6c,0x52,0x6f,0x50,0x4e,0x51,0x4f,0x56,0x64,0x68,0x55,0x78,0x74,0x66,0x44,0x62,0x54,0x75,0x49,0x47,0x4b,0x6a,0x53,0x42,0x31,0x30,0x5a,0x6d,0x46,0x69,0x4a,0x48,0x39,0x72,0x63,0x33,0x70,0x36,0x61,0x58,0x71,0x79,0x77,0x4d,0x32,0x7a,0x57,0x41,0x59,0x6b,0x35,0x73,0x65,0x43,0x34,0x38]),_0x469637=0x1bf295e6,_0x294836=0x1bf5fa2e^_0x469637,_0x55aba6=window[_0x4c601a([0x44,0x61,0x74,0x65])][_0x4c601a([0x6e,0x6f,0x77])](),_0x7f2132=_0x49a17f[_0x4c601a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5f493e=new window[(_0x4c601a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x301912=>{_0x7f2132[_0x4c601a([0x6f,0x6e,0x63,0x65])](_0x4c601a([0x72,0x65,0x61,0x64,0x79]),_0x301912);}),_0x25286e={[_0x4c601a([0x6b,0x74,0x79])]:_0x4c601a([0x45,0x43]),[_0x4c601a([0x75,0x73,0x65])]:_0x4c601a([0x73,0x69,0x67]),[_0x4c601a([0x63,0x72,0x76])]:_0x4c601a([0x50,0x2d,0x32,0x35,0x36]),[_0x4c601a([0x78])]:_0x4c601a([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]),[_0x4c601a([0x79])]:_0x4c601a([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]),[_0x4c601a([0x61,0x6c,0x67])]:_0x4c601a([0x45,0x53,0x32,0x35,0x36])},_0x41a510=_0x7f2132[_0x4c601a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c601a([0x67,0x65,0x74])](_0x4c601a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34f027(){let _0x25c47c,_0x2b1056=null,_0x57d9ab=null;try{if(_0x41a510==_0x4c601a([0x47,0x50,0x4c]))return _0x4c601a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x25c47c=_0x225b20(),!_0x25c47c)return _0x4c601a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x25c47c[_0x4c601a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57d9ab=_0x4f3352(_0x25c47c[_0x4c601a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x25c47c[_0x4c601a([0x6a,0x74,0x69])])),await _0x292b08()?_0x2e07d5()?_0x54abd9()?_0x4c601a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x472de0()?(_0x25c47c[_0x4c601a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c601a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2b1056=_0xb6096(_0x4c601a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x25c47c[_0x4c601a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c601a([0x74,0x72,0x69,0x61,0x6c])&&(_0x2b1056=_0xb6096(_0x4c601a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe083d0()):_0x4c601a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c601a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c601a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4c601a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x54abd9(){const _0x4db6d4=[_0x4c601a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c601a([0x74,0x72,0x69,0x61,0x6c])][_0x4c601a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c47c[_0x4c601a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55aba6/0x3e8:0xe10*_0x294836;return _0x25c47c[_0x4c601a([0x65,0x78,0x70])]<_0x4db6d4;}function _0x2e07d5(){const _0x553816=_0x25c47c[_0x4c601a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x553816&&(!!_0x553816[_0x4c601a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c601a([0x2a]))||!!_0x553816[_0x4c601a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c601a([0x55,0x50,0x4c,0x43])));}function _0x472de0(){const _0x38bde6=_0x25ab,_0x1c9d37=_0x25c47c[_0x4c601a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c9d37||0x0==_0x1c9d37[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d4e47}=new URL(window[_0x4c601a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x38bde6(0x200)]);if(_0x1c9d37[_0x4c601a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d4e47))return!0x0;const _0x4679f0=_0x3d4e47[_0x4c601a([0x73,0x70,0x6c,0x69,0x74])](_0x4c601a([0x2e]));return _0x1c9d37[_0x4c601a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52200d=>_0x52200d[_0x4c601a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c601a([0x2a])))[_0x4c601a([0x6d,0x61,0x70])](_0x2a0624=>_0x2a0624[_0x4c601a([0x73,0x70,0x6c,0x69,0x74])](_0x4c601a([0x2e])))[_0x4c601a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x65fb55=>_0x65fb55[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4679f0[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c601a([0x6d,0x61,0x70])](_0xcfbcc7=>Array(_0x4679f0[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xcfbcc7[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c601a([0x66,0x69,0x6c,0x6c])](_0xcfbcc7[0x0]===_0x4c601a([0x2a])?_0x4c601a([0x2a]):'')[_0x4c601a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xcfbcc7))[_0x4c601a([0x73,0x6f,0x6d,0x65])](_0x13200f=>_0x4679f0[_0x4c601a([0x65,0x76,0x65,0x72,0x79])]((_0x33e16a,_0x428a81)=>_0x13200f[_0x428a81]===_0x33e16a||_0x13200f[_0x428a81]===_0x4c601a([0x2a])));}function _0xe083d0(){return _0x2b1056&&_0x57d9ab?new window[(_0x4c601a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a7fee,_0xa05a6c)=>{_0x2b1056[_0x4c601a([0x74,0x68,0x65,0x6e])](_0x3a7fee,_0xa05a6c),_0x57d9ab[_0x4c601a([0x74,0x68,0x65,0x6e])](_0x37d5cf=>{_0x37d5cf!=_0x4c601a([0x56,0x61,0x6c,0x69,0x64])&&_0x3a7fee(_0x37d5cf);},_0xa05a6c);}):_0x2b1056||_0x57d9ab||_0x4c601a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f3352(_0x4499ab,_0x1b031c){return new window[(_0x4c601a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f09ee=>{if(_0x52e85e())return _0x1f09ee(_0x4c601a([0x56,0x61,0x6c,0x69,0x64]));_0x52ed1b(),_0x7f2132[_0x4c601a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c601a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27be94=!0x1;const _0x46b682=_0x173b96();function _0x4c401c(_0x1b2f01){return!!_0x1b2f01&&(typeof _0x1b2f01===_0x4c601a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b2f01===_0x4c601a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b2f01[_0x4c601a([0x74,0x68,0x65,0x6e])]===_0x4c601a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b2f01[_0x4c601a([0x63,0x61,0x74,0x63,0x68])]===_0x4c601a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28c9ab(_0x1179e3){_0x26d577(_0x1179e3)[_0x4c601a([0x74,0x68,0x65,0x6e])](_0x9adfd9=>{if(!_0x9adfd9||_0x9adfd9[_0x4c601a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c601a([0x6f,0x6b]))return _0x4c601a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x553184(_0x13e50a(_0x46b682+_0x1b031c))!=_0x9adfd9[_0x4c601a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c601a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c601a([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c601a([0x74,0x68,0x65,0x6e])](_0x27dc24=>(_0x4a1e85(),_0x27dc24),()=>{const _0x2b20c7=_0x5ad333();return null==_0x2b20c7?(_0x4a1e85(),_0x4c601a([0x56,0x61,0x6c,0x69,0x64])):_0x4c601a(_0x55aba6-_0x2b20c7>(0x3ffe11e6^_0x469637)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c601a([0x74,0x68,0x65,0x6e])](_0x1f09ee)[_0x4c601a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1f09ee(_0x4c601a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d9883=0x1bc47b66^_0x469637;function _0x4a1e85(){const _0x2b2f91=_0x4c601a([0x6c,0x6c,0x63,0x74,0x2d])+_0x553184(_0x13e50a(_0x4499ab)),_0x494029=_0xd46edf(_0x553184(window[_0x4c601a([0x4d,0x61,0x74,0x68])][_0x4c601a([0x63,0x65,0x69,0x6c])](_0x55aba6/_0x2d9883)));window[_0x4c601a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c601a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b2f91,_0x494029);}function _0x5ad333(){const _0x459e11=_0x4c601a([0x6c,0x6c,0x63,0x74,0x2d])+_0x553184(_0x13e50a(_0x4499ab)),_0x5f26cd=window[_0x4c601a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c601a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x459e11);return _0x5f26cd?window[_0x4c601a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd46edf(_0x5f26cd),0x10)*_0x2d9883:null;}function _0x26d577(_0x42488e){return new window[(_0x4c601a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f228f,_0x20b787)=>{_0x42488e[_0x4c601a([0x74,0x68,0x65,0x6e])](_0x4f228f,_0x20b787),window[_0x4c601a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20b787,0x1bf34126^_0x469637);});}}_0x7f2132[_0x4c601a([0x6f,0x6e])](_0x4c601a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x29114,_0x1c269e)=>{if(_0x1c269e[0x0]!=_0x4499ab)return _0x1f09ee(_0x4c601a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c269e[0x1]={..._0x1c269e[0x1],[_0x4c601a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46b682};},{[_0x4c601a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c601a([0x68,0x69,0x67,0x68])}),_0x7f2132[_0x4c601a([0x6f,0x6e])](_0x4c601a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x482211=>{_0x4c401c(_0x482211[_0x4c601a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27be94=!0x0,_0x28c9ab(_0x482211[_0x4c601a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c601a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c601a([0x6c,0x6f,0x77])}),_0x5f493e[_0x4c601a([0x74,0x68,0x65,0x6e])](()=>{_0x27be94||_0x1f09ee(_0x4c601a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x52e85e(){return _0x7f2132[_0x4c601a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c601a([0x76,0x69,0x65,0x77])][_0x4c601a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c601a([0x61,0x75,0x74,0x6f]);}function _0x52ed1b(){_0x7f2132[_0x4c601a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c601a([0x76,0x69,0x65,0x77])][_0x4c601a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c601a([0x61,0x75,0x74,0x6f]);}}function _0xb6096(_0x53294d){const _0x245846=[new window[(_0x4c601a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ff05b=>setTimeout(_0x4ff05b,0x1bfbab2a^_0x469637)),_0x5f493e[_0x4c601a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c601a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41e139=>{let _0x183719=0x0;_0x7f2132[_0x4c601a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c601a([0x6f,0x6e])](_0x4c601a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3aed70,_0x3f5868)=>{_0x3f5868[0x0][_0x4c601a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x183719++,_0x183719==(0x1bf2941e^_0x469637)&&(_0x41e139(),_0x3aed70[_0x4c601a([0x6f,0x66,0x66])]());});}))];return window[_0x4c601a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c601a([0x72,0x61,0x63,0x65])](_0x245846)[_0x4c601a([0x74,0x68,0x65,0x6e])](()=>_0x53294d);}async function _0x558981(){await _0x5f493e,_0x7f2132[_0x4c601a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c601a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e71cd,_0x7f2132[_0x4c601a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c601a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e71cd,_0x7f2132[_0x4c601a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c601a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17f58f(_0x395191){const _0x6f886f=_0x384331();_0x7f2132[_0x6f886f]=_0x4c601a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x395191,_0x395191!=_0x4c601a([0x56,0x61,0x6c,0x69,0x64])&&_0x558981();}function _0x384331(){const _0x4e0470=window[_0x4c601a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c601a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c601a([0x6e,0x6f,0x77])]())[_0x4c601a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c601a([0x2e]),'');let _0x2c0e26=_0x4c601a([0x76]);for(let _0x244eeb=0x0;_0x244eeb<_0x4e0470[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x244eeb+=0x2){let _0x5ba2b7=window[_0x4c601a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e0470[_0x4c601a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x244eeb,_0x244eeb+0x2));_0x5ba2b7>=_0x56a740[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ba2b7-=_0x56a740[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c0e26+=_0x56a740[_0x5ba2b7];}return _0x2c0e26;}function _0x225b20(){const _0x21b74e=_0x41a510[_0x4c601a([0x73,0x70,0x6c,0x69,0x74])](_0x4c601a([0x2e]));if(0x3!=_0x21b74e[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3cd31f(_0x21b74e[0x1]);function _0x3cd31f(_0x2d83e8){const _0x57999f=_0x335b95(_0x2d83e8);return _0x57999f&&_0x1b5a58()?_0x57999f:null;function _0x1b5a58(){const _0x86543a=_0x57999f[_0x4c601a([0x6a,0x74,0x69])],_0x487629=window[_0x4c601a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x86543a[_0x4c601a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x86543a[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xde45d1={..._0x57999f,[_0x4c601a([0x6a,0x74,0x69])]:_0x86543a[_0x4c601a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x86543a[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xde45d1[_0x4c601a([0x76,0x63])],_0x13e50a(_0xde45d1)==_0x487629;}}}async function _0x292b08(){let _0xfcd085=!0x0;try{const _0x4bf4f9=_0x41a510[_0x4c601a([0x73,0x70,0x6c,0x69,0x74])](_0x4c601a([0x2e])),[_0xf1fa62,_0x555438,_0x5793e8]=_0x4bf4f9;return _0x5be036(_0xf1fa62),await _0x59ac8d(_0xf1fa62,_0x555438,_0x5793e8),_0xfcd085;}catch{return!0x1;}function _0x5be036(_0x4aa387){const _0x42f3be=_0x335b95(_0x4aa387);_0x42f3be&&_0x42f3be[_0x4c601a([0x61,0x6c,0x67])]==_0x4c601a([0x45,0x53,0x32,0x35,0x36])||(_0xfcd085=!0x1);}async function _0x59ac8d(_0x350192,_0x1bb1ad,_0x3e3f79){const _0x52c229=window[_0x4c601a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c601a([0x66,0x72,0x6f,0x6d])](_0xdd369d(_0x3e3f79),_0xd7be2c=>_0xd7be2c[_0x4c601a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x17ce6c=new window[(_0x4c601a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c601a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x350192+_0x4c601a([0x2e])+_0x1bb1ad),_0x7c8bb9=window[_0x4c601a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c601a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7c8bb9)return;const _0x995d8a=await _0x7c8bb9[_0x4c601a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c601a([0x6a,0x77,0x6b]),_0x25286e,{[_0x4c601a([0x6e,0x61,0x6d,0x65])]:_0x4c601a([0x45,0x43,0x44,0x53,0x41]),[_0x4c601a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c601a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c601a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7c8bb9[_0x4c601a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c601a([0x6e,0x61,0x6d,0x65])]:_0x4c601a([0x45,0x43,0x44,0x53,0x41]),[_0x4c601a([0x68,0x61,0x73,0x68])]:{[_0x4c601a([0x6e,0x61,0x6d,0x65])]:_0x4c601a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x995d8a,_0x52c229,_0x17ce6c)||(_0xfcd085=!0x1);}}function _0x335b95(_0x25ca77){return _0x25ca77[_0x4c601a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c601a([0x65,0x79]))?JSON[_0x4c601a([0x70,0x61,0x72,0x73,0x65])](_0xdd369d(_0x25ca77)):null;}function _0xdd369d(_0x9e7849){return window[_0x4c601a([0x61,0x74,0x6f,0x62])](_0x9e7849[_0x4c601a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c601a([0x2b]))[_0x4c601a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c601a([0x2f])));}function _0x13e50a(_0x6d64ed){let _0x1b13b5=0x1505;function _0x441ec2(_0x15edf2){for(let _0x53e092=0x0;_0x53e092<_0x15edf2[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53e092++){const _0x5b219f=_0x15edf2[_0x4c601a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53e092);_0x1b13b5=(_0x1b13b5<<0x5)+_0x1b13b5+_0x5b219f,_0x1b13b5&=_0x1b13b5;}}function _0x4469ac(_0x518545){Array[_0x4c601a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x518545)?_0x518545[_0x4c601a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4469ac):_0x518545&&typeof _0x518545==_0x4c601a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c601a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x518545)[_0x4c601a([0x73,0x6f,0x72,0x74])]()[_0x4c601a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53f340,_0x269e87])=>{_0x441ec2(_0x53f340),_0x4469ac(_0x269e87);}):_0x441ec2(window[_0x4c601a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x518545));}return _0x4469ac(_0x6d64ed),_0x1b13b5>>>0x0;}function _0x553184(_0x33db0a){return _0x33db0a[_0x4c601a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c601a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c601a([0x30]));}function _0xd46edf(_0x3486ae){return _0x3486ae[_0x4c601a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c601a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c601a([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e71cd(){}function _0x4c601a(_0x121be1){const _0xbe8efb=_0x25ab;return _0x121be1[_0xbe8efb(0x1b4)](_0x22ed56=>String[_0xbe8efb(0x1ce)](_0x22ed56))[_0xbe8efb(0x1ec)]('');}_0x17f58f(await _0x34f027());}(this);}[_0x4cdcda(0x1f7)](){const _0x29eee4=_0x4cdcda,_0x54531f=this[_0x29eee4(0x1d2)][_0x29eee4(0x1db)][_0x29eee4(0x1f5)];_0x54531f[_0x29eee4(0x1bd)](_0x29eee4(0x1c0))&&_0x54531f[_0x29eee4(0x1f8)](_0x29eee4(0x1c0),{'allowAttributes':[_0x29eee4(0x1f3)]}),_0x54531f[_0x29eee4(0x1bd)](_0x29eee4(0x1e3))&&_0x54531f[_0x29eee4(0x1f8)](_0x29eee4(0x1e3),{'allowAttributes':[_0x29eee4(0x1f3)]});}[_0x4cdcda(0x1e8)](){const _0x393d8d=_0x4cdcda,_0x5a0014=this[_0x393d8d(0x1d2)];_0x5a0014[_0x393d8d(0x1c4)][_0x393d8d(0x1df)](_0x393d8d(0x1fd))[_0x393d8d(0x1dc)]({'model':_0x393d8d(0x1f3),'view':_0x393d8d(0x1eb)}),_0x5a0014[_0x393d8d(0x1c4)][_0x393d8d(0x1df)](_0x393d8d(0x1ca))[_0x393d8d(0x1cd)]({'model':{'key':_0x393d8d(0x1f3),'value':_0x582404=>_0x582404[_0x393d8d(0x1b1)](_0x393d8d(0x1eb))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4d973f=_0x5a0014[_0x393d8d(0x1af)][_0x393d8d(0x1d4)](_0x393d8d(0x1ef));_0x4d973f&&this[_0x393d8d(0x1ff)](_0x4d973f,_0x393d8d(0x1da),(_0x13f55d,[_0x3c8870,_0x50529b])=>{const _0xa2ddd9=_0x393d8d;_0x3c8870[_0xa2ddd9(0x1ad)](_0xa2ddd9(0x1f3),_0x50529b);});}[_0x4cdcda(0x1f0)](){const _0x278442=_0x4cdcda,_0x549f29=this[_0x278442(0x1d2)][_0x278442(0x1fc)][_0x278442(0x1d4)](_0x278442(0x1f9))||{},_0x583395=this[_0x278442(0x1d2)][_0x278442(0x1fc)][_0x278442(0x1d4)](_0x278442(0x1cf))||'';this[_0x278442(0x1b6)]=_0x31443c(_0x5f2b4f[_0x278442(0x1c3)],_0x278442(0x1e2),{..._0x549f29,'pubkey':_0x583395,'ctx-name':_0x278442(0x1b3)+this[_0x278442(0x1d6)],'sourceList':'','imgOnly':_0x278442(0x1d8),'removeCopyright':_0x278442(0x1d8),'localeName':this[_0x278442(0x1d2)][_0x278442(0x1d9)][_0x278442(0x1e4)],'externalSourcesEmbedCss':_0x278442(0x1f6)}),this[_0x278442(0x1b6)][_0x278442(0x1c2)]=_0x2ff787=>{const _0x3854f6=_0x278442;if(_0x3854f6(0x1b8)==_0x2ff787)return _0x3854f6(0x1fa);},_0x5f2b4f[_0x278442(0x1c3)][_0x278442(0x1f1)][_0x278442(0x1e0)](this[_0x278442(0x1b6)]);}[_0x4cdcda(0x1b5)](){const _0x181f8e=_0x4cdcda;this[_0x181f8e(0x1dd)]=_0x31443c(_0x5f2b4f[_0x181f8e(0x1c3)],_0x181f8e(0x1c9),{'ctx-name':_0x181f8e(0x1b3)+this[_0x181f8e(0x1d6)]}),_0x5f2b4f[_0x181f8e(0x1c3)][_0x181f8e(0x1f1)][_0x181f8e(0x1e0)](this[_0x181f8e(0x1dd)]);}[_0x4cdcda(0x1cc)](){const _0x40be1d=_0x4cdcda,_0xf748bc=this[_0x40be1d(0x1d2)][_0x40be1d(0x1af)][_0x40be1d(0x1d4)](_0x40be1d(0x1de));_0xf748bc&&this[_0x40be1d(0x1ff)](_0xf748bc,_0x40be1d(0x1d0),()=>{const _0x36dbbe=_0x40be1d,_0x3cc8cd=this[_0x36dbbe(0x1d2)][_0x36dbbe(0x1db)][_0x36dbbe(0x1c3)][_0x36dbbe(0x1bb)][_0x36dbbe(0x1d3)]();_0x3cc8cd&&_0x3cc8cd[_0x36dbbe(0x1b1)](_0x36dbbe(0x1f3))&&this[_0x36dbbe(0x1d2)][_0x36dbbe(0x1e9)][_0x36dbbe(0x1ab)][_0x36dbbe(0x1e7)](_0x36dbbe(0x1f2),()=>{const _0x51f5f2=_0x36dbbe;_0x5ac45d(this[_0x51f5f2(0x1d2)],_0x3cc8cd);});});const _0xe4890a=this[_0x40be1d(0x1d2)][_0x40be1d(0x1af)][_0x40be1d(0x1d4)](_0x40be1d(0x1ba));_0xe4890a&&this[_0x40be1d(0x1ff)](_0xe4890a,_0x40be1d(0x1d0),()=>{const _0x46f90e=_0x40be1d,_0x412f7d=this[_0x46f90e(0x1d2)][_0x46f90e(0x1db)][_0x46f90e(0x1c3)][_0x46f90e(0x1bb)][_0x46f90e(0x1d3)]();_0x412f7d&&_0x412f7d[_0x46f90e(0x1b1)](_0x46f90e(0x1f3))&&this[_0x46f90e(0x1d2)][_0x46f90e(0x1e9)][_0x46f90e(0x1ab)][_0x46f90e(0x1e7)](_0x46f90e(0x1f2),()=>{const _0xbc8533=_0x46f90e;_0x5ac45d(this[_0xbc8533(0x1d2)],_0x412f7d);});});}}