@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251003.0 → 0.0.0-nightly-20251005.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3c1b5d,Command as _0x35463a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x504c1c,IconGooglePhotos as _0x5d9704,IconGoogleDrive as _0x1819cc,IconFacebook as _0x358364,IconDropbox as _0x3d8c0d,IconUploadcareLink as _0x544e12,IconUploadcareImageUpload as _0x3aaf4e,IconError as _0x2e3b2b,IconUploadcareImageEdit as _0x2d05a5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x36b574,MenuBarMenuListItemButtonView as _0x19eed4,View as _0x1a6eec,FocusCycler as _0x2f8faf,Dialog as _0x405406,DialogViewPosition as _0x4489bd,SpinnerView as _0x304037,IconView as _0x411e06,Notification as _0x1d44ff}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xbc8dc8,DomEmitterMixin as _0x4fe2a2,global as _0x5c4475,getAncestors as _0xc345d,ObservableMixin as _0x2a04f3,uid as _0x185b7e,createElement as _0x2a12e1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5b56fb}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3e6414,info as _0x305fae}from'@uploadcare/upload-client';import*as _0x11b339 from'@uploadcare/file-uploader';var i=function(_0x2b98d7){return _0x2b98d7['Local']='local',_0x2b98d7['URL']='url',_0x2b98d7['Dropbox']='dropbox',_0x2b98d7['GDrive']='gdrive',_0x2b98d7['Facebook']='facebook',_0x2b98d7['GPhotos']='gphotos',_0x2b98d7['OneDrive']='onedrive',_0x2b98d7;}({});function _(_0x41aaed,_0x10076d,_0xcfa40f){const t=_0x41aaed['t'],_0x3d619a=_0x41aaed['t'];switch(_0x10076d){case i['Local']:return{'text':_0x3d619a('Insert'===_0xcfa40f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3d619a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xcfa40f?_0x3d619a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3d619a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xcfa40f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xcfa40f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xcfa40f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xcfa40f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xcfa40f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x10076d;}}class e extends _0x3c1b5d{['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 _0x1b96b3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f2ae0;for(const _0x2f8a38 in _0x1b96b3){const _0xe61dd0=_0x2f8a38,_0x2de34f=_0x1b96b3[_0xe61dd0];if('uploadcareLicenseKeyValid'==_0x2de34f||'uploadcareLicenseKeyInvalid'==_0x2de34f||'uploadcareLicenseKeyExpired'==_0x2de34f||'uploadcareLicenseKeyDomainLimit'==_0x2de34f||'uploadcareLicenseKeyNotAllowed'==_0x2de34f||'uploadcareLicenseKeyEvaluationLimit'==_0x2de34f||'uploadcareLicenseKeyTrialLimit'==_0x2de34f||'uploadcareLicenseKeyUsageLimit'==_0x2de34f){delete _0x1b96b3[_0xe61dd0],_0x1f2ae0=_0x2de34f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x222a59}=this,_0xa44ac6=_0x222a59['commands']['get']('uploadcare');if(!_0xa44ac6)return;const _0x4a50ee=this['_normalizeConfigSourceList'](_0x222a59['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x30a710,_0x4295e3)=>{const _0x2379f6=this['_getIntegrationKey'](_0x4295e3['type']);return _0x30a710[_0x2379f6]||(_0x30a710[_0x2379f6]=[]),_0x30a710[_0x2379f6]['push'](_0x4295e3),_0x30a710;},{});_0x222a59['plugins']['has']('ImageInsertUI')&&_0x222a59['commands']['get']('uploadcare')&&Object['entries'](_0x4a50ee)['forEach'](([_0x430a7c,_0x40b914])=>{_0x222a59['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x430a7c,'observable':()=>_0xa44ac6,'buttonViewCreator':()=>this['_createToolbarButton'](_0x40b914),'formViewCreator':()=>this['_createDropdownButtons'](_0x40b914),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x40b914),'override':'assetManager'!==_0x430a7c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x8c4d74){const {locale:_0x23ece5}=this['editor'];return _0x8c4d74['map'](_0x4d8654=>{const _0x499ff8=_(_0x23ece5,_0x4d8654,'Insert');switch(_0x4d8654){case i['Local']:return{'icon':_0x3aaf4e,'type':i['Local'],..._0x499ff8};case i['URL']:return{'icon':_0x544e12,'type':i['URL'],..._0x499ff8};case i['Dropbox']:return{'icon':_0x3d8c0d,'type':i['Dropbox'],..._0x499ff8};case i['Facebook']:return{'icon':_0x358364,'type':i['Facebook'],..._0x499ff8};case i['GDrive']:return{'icon':_0x1819cc,'type':i['GDrive'],..._0x499ff8};case i['GPhotos']:return{'icon':_0x5d9704,'type':i['GPhotos'],..._0x499ff8};case i['OneDrive']:return{'icon':_0x504c1c,'type':i['OneDrive'],..._0x499ff8};}});}['_getIntegrationKey'](_0x39af07){switch(_0x39af07){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x13b301,_0xf2a55e){const _0x67612b=this['editor'],_0x3bc5b1=new _0x13b301(_0x67612b['locale']),_0x20e9ce=_0x67612b['commands']['get']('uploadcare');return _0x3bc5b1['bind']('isEnabled')['to'](_0x20e9ce),_0x3bc5b1['on']('execute',()=>{_0x20e9ce['execute'](_0xf2a55e);}),_0x3bc5b1;}['_createToolbarButton'](_0x3d011f){const {locale:_0x61ca4b}=this['editor'],_0x14ba56=this['editor']['plugins']['get']('ImageInsertUI'),_0x2e8955=_0x3d011f[0x0],_0x1dead9=this['_createButton'](_0x36b574,_0x2e8955['type']);return _0x1dead9['icon']=_0x2e8955['icon'],_0x1dead9['bind']('label')['to'](_0x14ba56,'isImageSelected',_0x42ca30=>_(_0x61ca4b,_0x2e8955['type'],_0x42ca30?'Replace':'Insert')['text']),_0x1dead9['tooltip']=!0x0,_0x1dead9;}['_createDropdownButtons'](_0x5742c7){const {locale:_0x519c41}=this['editor'],_0x84f123=this['editor']['plugins']['get']('ImageInsertUI');return _0x5742c7['map'](_0x2276e4=>{const _0x5cab29=this['_createButton'](_0x36b574,_0x2276e4['type']);return _0x5cab29['withText']=!0x0,_0x5cab29['icon']=_0x2276e4['icon'],_0x5cab29['bind']('label')['to'](_0x84f123,'isImageSelected',_0x5b9a3b=>_(_0x519c41,_0x2276e4['type'],_0x5b9a3b?'Replace':'Insert')['text']),_0x5cab29;});}['_createMenuBarButtons'](_0x19f172){return _0x19f172['map'](_0x37460f=>{const _0x49e7dc=this['_createButton'](_0x19eed4,_0x37460f['type']);return _0x49e7dc['icon']=_0x37460f['icon'],_0x49e7dc['label']=_0x37460f['shortText'],_0x49e7dc;});}}class F extends _0x1a6eec{['focusTracker'];['focusCycler'];constructor(_0x1a342e){super(_0x1a342e),this['focusTracker']=new _0xbc8dc8(),this['focusCycler']=new _0x2f8faf({'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(_0xe2deca,_0x539aac){super(_0xe2deca),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-'+_0x539aac}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x26fe24,_0x3ba3e5){const _0xc82c50=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x48482e=>_0x48482e<=_0x3ba3e5)['map'](_0x2aaad8=>_0x26fe24['replace'](/\/$/,'')+'/-/resize/'+_0x2aaad8+'x/\x20'+_0x2aaad8+'w');return{'imageFallbackUrl':_0x26fe24,'imageSources':[{'srcset':_0xc82c50['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3ba3e5+'px)\x20100vw,\x20'+_0x3ba3e5+'px','type':'image/webp'}]};}function S(_0x995cf0,_0x4c1bf4,_0x99d5a2){const _0x16df6d=_0x995cf0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16df6d?parseInt(_0x16df6d[0x1],0xa):_0x4c1bf4,'height':_0x16df6d?parseInt(_0x16df6d[0x2],0xa):_0x99d5a2};}function p(_0x5fc2ad,_0xd4341f){const _0x5de4a5=new(_0x4fe2a2())(),_0x74e36e=_0x5fc2ad['plugins']['get']('ImageUtils'),_0x5e7720=_0x5fc2ad['editing']['mapper']['toViewElement'](_0xd4341f),_0x1fa02d=_0x74e36e['findViewImgElement'](_0x5e7720),_0x2ecca4=_0x5fc2ad['editing']['view']['domConverter']['viewToDom'](_0x1fa02d),_0x2bfa4c=_0xd4341f['getAttribute']('width'),_0x251c30=_0xd4341f['getAttribute']('height'),_0x38a8ba='image-processing';_0x5fc2ad['editing']['view']['change'](_0x597194=>{_0x597194['addClass'](_0x38a8ba,_0x5e7720),_0x597194['setStyle']('aspect-ratio',_0x2bfa4c+'/'+_0x251c30,_0x1fa02d);}),_0x5de4a5['listenTo'](_0x2ecca4,'load',()=>{_0x5de4a5['stopListening'](_0x2ecca4,'load'),_0x5fc2ad['editing']['view']['change'](_0x59ade5=>{_0x59ade5['removeClass'](_0x38a8ba,_0x5e7720),_0x59ade5['removeStyle']('aspect-ratio',_0x1fa02d);});});}function G(_0x105eca){if(Array['isArray'](_0x105eca)){const _0x3b0765=_0x105eca['map'](G);return _0x3c1f49=>_0x3b0765['some'](_0x5cfa69=>_0x5cfa69(_0x3c1f49));}if('origin'==_0x105eca){const _0x415239=_0x5c4475['window']['location']['origin'];return _0x240e58=>new URL(_0x240e58,_0x5c4475['document']['baseURI'])['origin']==_0x415239;}return'function'==typeof _0x105eca?_0x105eca:_0x105eca instanceof RegExp?_0x231a3a=>!(!_0x231a3a['match'](_0x105eca)&&!_0x231a3a['replace'](/^https?:\/\//,'')['match'](_0x105eca)):()=>!0x1;}function A(_0x3e6043,_0x2271d5){return _0xc345d(_0x3e6043['target'])['includes'](_0x2271d5);}class n extends/* #__PURE__ -- @preserve */
24
- _0x2a04f3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x35b50e,_0x48a1ea,_0xb40e6a){super(),this['_editor']=_0x35b50e,this['_editing']=_0x48a1ea,this['_dialog']=_0x35b50e['plugins']['get'](_0x405406),this['_api']=_0x48a1ea['ctxElement']['getAPI'](),this['_type']=_0xb40e6a,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:_0xf5edb9,model:_0x304695}=this['_editor'],_0x52f396=_0x304695['document']['selection']['getSelectedElement'](),_0x1cf84c=_0x52f396&&(_0x52f396['is']('element','imageBlock')||_0x52f396['is']('element','imageInline'));this['_formView']=new x(_0xf5edb9,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3aaf4e,'title':_(_0xf5edb9,this['_type'],_0x1cf84c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4489bd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2ab1bd=>!A(_0x2ab1bd,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2be837}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x45719c=>{const _0x1ce569=_0x2be837['length'];for(const _0x53fae4 of _0x2be837){const _0x147289=_0x53fae4===_0x2be837[_0x1ce569-0x1],{cdnUrl:_0x5b8142,fileInfo:_0x3dddb9}=_0x53fae4;if(!_0x5b8142||!_0x3dddb9)continue;const {width:_0x219807,height:_0x59ece0}=_0x3dddb9['imageInfo'],_0x1a6ae3=S(_0x5b8142,_0x219807,_0x59ece0),_0x92b108=C(_0x5b8142,_0x1a6ae3['width']),_0x3a5200={'id':_0x3dddb9['uuid'],'type':'image','attributes':{'imageDimension':_0x1a6ae3,..._0x92b108}};this['_insertAsset'](_0x3a5200,_0x147289,_0x45719c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x94726f=>{'idle'===_0x94726f['detail']['status']&&!_0x94726f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x131ca0,_0x535cd1,_0xf605a4){const _0x10bdfc=this['_editor']['model']['document']['selection'],_0x5d637a=_0x10bdfc['getSelectedElement'](),_0xeffc77=!(!_0x5d637a||!_0x5d637a['is']('element','imageInline'));_0xf605a4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x131ca0,_0xeffc77),_0x535cd1||_0xf605a4['setSelection'](_0x10bdfc['getLastPosition']());}['_insertImage'](_0x2de6bc,_0x339773){const _0x2706d3=this['_editor'],{imageDimension:_0x3b0a92,imageFallbackUrl:_0x3ab267,imageSources:_0x158819}=_0x2de6bc['attributes'];_0x2706d3['execute']('insertImage',{'imageType':_0x339773?'imageInline':null,'source':{'uploadcareImageId':_0x2de6bc['id'],'src':_0x3ab267,'sources':_0x158819,..._0x3b0a92}});}}class w extends _0x35463a{['_editing'];['_controller']=null;static get['requires'](){return[_0x405406,o];}constructor(_0x417e93){super(_0x417e93),this['_editing']=_0x417e93['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x507d6d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x507d6d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x259a07,..._0x321ea6}){return _0x3e6414(_0x259a07,_0x321ea6);}static['getInfo'](_0x46377d,_0x48c0b9){return _0x305fae(_0x46377d,_0x48c0b9);}}class f extends _0x3c1b5d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5b56fb,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x150539=this['editor'];if(!!!_0x150539['config']['get']('uploadcare'))return;_0x150539['plugins']['get'](_0x5b56fb)['createUploadAdapter']=_0x597adb=>new k(_0x597adb,_0x150539),_0x150539['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x308b98,{imageElement:_0x27ef30,data:_0x343747})=>{_0x150539['model']['change'](_0x4ed7c3=>{_0x4ed7c3['setAttribute']('uploadcareImageId',_0x343747['uploadcareImageId'],_0x27ef30);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xb656fe,_0x2454b3){this['loader']=_0xb656fe,this['editor']=_0x2454b3,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5832e4=await this['loader']['file'];return j['upload']({'file':_0x5832e4,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x50a1b0=>{_0x50a1b0&&_0x50a1b0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x50a1b0['value']);}})['then'](async _0x1a1acb=>{const {imageFallbackUrl:_0x839e53,imageSources:_0x3ae471}=C(_0x1a1acb['cdnUrl'],_0x1a1acb['imageInfo']['width']);return{'uploadcareImageId':_0x1a1acb['uuid'],'default':_0x839e53,'sources':_0x3ae471};})['catch'](()=>{const _0x2d66b6=t('Cannot\x20upload\x20file:')+('\x20'+_0x5832e4['name']+'.');return Promise['reject'](_0x2d66b6);});}['abort'](){this['controller']['abort']();}}class o extends _0x3c1b5d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x405406];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3e1d0f){super(_0x3e1d0f),this['ucContextId']=_0x185b7e();}['init'](){const _0x3d8788=this['editor'];_0x3d8788['commands']['add']('uploadcare',new w(_0x3d8788));}['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 _0x3b7ce0=_0x5c4475['document']['querySelector']('input[uploadcare-file-input]');_0x3b7ce0&&_0x3b7ce0['remove']();}),async function(_0x60434){const _0x195d2c=_0x401b1d([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x1fa1a9=0x3d8d0df,_0x4bd1ca=0x3dfa5ff^_0x1fa1a9,_0x2f1fde=window[_0x401b1d([0x44,0x61,0x74,0x65])][_0x401b1d([0x6e,0x6f,0x77])](),_0x4be247=_0x60434[_0x401b1d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x435a21=new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52c1c1=>{_0x4be247[_0x401b1d([0x6f,0x6e,0x63,0x65])](_0x401b1d([0x72,0x65,0x61,0x64,0x79]),_0x52c1c1);}),_0xb2d13f={[_0x401b1d([0x6b,0x74,0x79])]:_0x401b1d([0x45,0x43]),[_0x401b1d([0x75,0x73,0x65])]:_0x401b1d([0x73,0x69,0x67]),[_0x401b1d([0x63,0x72,0x76])]:_0x401b1d([0x50,0x2d,0x32,0x35,0x36]),[_0x401b1d([0x78])]:_0x401b1d([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]),[_0x401b1d([0x79])]:_0x401b1d([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]),[_0x401b1d([0x61,0x6c,0x67])]:_0x401b1d([0x45,0x53,0x32,0x35,0x36])},_0x4d9efc=_0x4be247[_0x401b1d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x401b1d([0x67,0x65,0x74])](_0x401b1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3be6bb(){let _0x19c703,_0x29a623=null,_0x52cb8a=null;try{if(_0x4d9efc==_0x401b1d([0x47,0x50,0x4c]))return _0x401b1d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19c703=_0x17d8cf(),!_0x19c703)return _0x401b1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19c703[_0x401b1d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x52cb8a=_0x231eb4(_0x19c703[_0x401b1d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19c703[_0x401b1d([0x6a,0x74,0x69])])),await _0x2141fc()?_0x261802()?_0x28fe82()?_0x401b1d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa6383b()?(_0x19c703[_0x401b1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x401b1d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29a623=_0x10a1be(_0x401b1d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19c703[_0x401b1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x401b1d([0x74,0x72,0x69,0x61,0x6c])&&(_0x29a623=_0x10a1be(_0x401b1d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xcff84b()):_0x401b1d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x401b1d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x401b1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x401b1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28fe82(){const _0x533cf9=[_0x401b1d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x401b1d([0x74,0x72,0x69,0x61,0x6c])][_0x401b1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19c703[_0x401b1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f1fde/0x3e8:0xe10*_0x4bd1ca;return _0x19c703[_0x401b1d([0x65,0x78,0x70])]<_0x533cf9;}function _0x261802(){const _0x312376=_0x19c703[_0x401b1d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x312376&&(!!_0x312376[_0x401b1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401b1d([0x2a]))||!!_0x312376[_0x401b1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401b1d([0x55,0x50,0x4c,0x43])));}function _0xa6383b(){const _0x107774=_0x19c703[_0x401b1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x107774||0x0==_0x107774[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x358c4c}=new URL(window[_0x401b1d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x107774[_0x401b1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x358c4c))return!0x0;const _0x4873e8=_0x358c4c[_0x401b1d([0x73,0x70,0x6c,0x69,0x74])](_0x401b1d([0x2e]));return _0x107774[_0x401b1d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1cbba8=>_0x1cbba8[_0x401b1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401b1d([0x2a])))[_0x401b1d([0x6d,0x61,0x70])](_0xe83dd7=>_0xe83dd7[_0x401b1d([0x73,0x70,0x6c,0x69,0x74])](_0x401b1d([0x2e])))[_0x401b1d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x61484=>_0x61484[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4873e8[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x401b1d([0x6d,0x61,0x70])](_0x25f992=>Array(_0x4873e8[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x25f992[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x401b1d([0x66,0x69,0x6c,0x6c])](_0x25f992[0x0]===_0x401b1d([0x2a])?_0x401b1d([0x2a]):'')[_0x401b1d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x25f992))[_0x401b1d([0x73,0x6f,0x6d,0x65])](_0xe5ef85=>_0x4873e8[_0x401b1d([0x65,0x76,0x65,0x72,0x79])]((_0x116309,_0x2aa581)=>_0xe5ef85[_0x2aa581]===_0x116309||_0xe5ef85[_0x2aa581]===_0x401b1d([0x2a])));}function _0xcff84b(){return _0x29a623&&_0x52cb8a?new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59fa83,_0x3f9dba)=>{_0x29a623[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x59fa83,_0x3f9dba),_0x52cb8a[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x1efb2c=>{_0x1efb2c!=_0x401b1d([0x56,0x61,0x6c,0x69,0x64])&&_0x59fa83(_0x1efb2c);},_0x3f9dba);}):_0x29a623||_0x52cb8a||_0x401b1d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x231eb4(_0x6342d9,_0x5e240f){return new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ede8e=>{if(_0x3cd34a())return _0x3ede8e(_0x401b1d([0x56,0x61,0x6c,0x69,0x64]));_0x39a77f(),_0x4be247[_0x401b1d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x401b1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23c30f=!0x1;const _0x3a1f3e=_0x185b7e();function _0x304611(_0x1f79de){return!!_0x1f79de&&(typeof _0x1f79de===_0x401b1d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f79de===_0x401b1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f79de[_0x401b1d([0x74,0x68,0x65,0x6e])]===_0x401b1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f79de[_0x401b1d([0x63,0x61,0x74,0x63,0x68])]===_0x401b1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x156ac7(_0x532863){_0xe892cf(_0x532863)[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x1be333=>{if(!_0x1be333||_0x1be333[_0x401b1d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x401b1d([0x6f,0x6b]))return _0x401b1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x275232(_0x69b384(_0x3a1f3e+_0x5e240f))!=_0x1be333[_0x401b1d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x401b1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x401b1d([0x56,0x61,0x6c,0x69,0x64]);})[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x31b0fa=>(_0x141ec6(),_0x31b0fa),()=>{const _0x46c697=_0x2ab175();return null==_0x46c697?(_0x141ec6(),_0x401b1d([0x56,0x61,0x6c,0x69,0x64])):_0x401b1d(_0x2f1fde-_0x46c697>(0x27d454df^_0x1fa1a9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x3ede8e)[_0x401b1d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ede8e(_0x401b1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x258b94=0x3ee3e5f^_0x1fa1a9;function _0x141ec6(){const _0x162fff=_0x401b1d([0x6c,0x6c,0x63,0x74,0x2d])+_0x275232(_0x69b384(_0x6342d9)),_0xee225d=_0x4562df(_0x275232(window[_0x401b1d([0x4d,0x61,0x74,0x68])][_0x401b1d([0x63,0x65,0x69,0x6c])](_0x2f1fde/_0x258b94)));window[_0x401b1d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x401b1d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x162fff,_0xee225d);}function _0x2ab175(){const _0x56fc39=_0x401b1d([0x6c,0x6c,0x63,0x74,0x2d])+_0x275232(_0x69b384(_0x6342d9)),_0x4c42d7=window[_0x401b1d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x401b1d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56fc39);return _0x4c42d7?window[_0x401b1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4562df(_0x4c42d7),0x10)*_0x258b94:null;}function _0xe892cf(_0x1b3202){return new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c3ccc,_0x24c892)=>{_0x1b3202[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x1c3ccc,_0x24c892),window[_0x401b1d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24c892,0x3d9041f^_0x1fa1a9);});}}_0x4be247[_0x401b1d([0x6f,0x6e])](_0x401b1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1bcd6a,_0xe8f581)=>{if(_0xe8f581[0x0]!=_0x6342d9)return _0x3ede8e(_0x401b1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe8f581[0x1]={..._0xe8f581[0x1],[_0x401b1d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a1f3e};},{[_0x401b1d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x401b1d([0x68,0x69,0x67,0x68])}),_0x4be247[_0x401b1d([0x6f,0x6e])](_0x401b1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e0ce5=>{_0x304611(_0x5e0ce5[_0x401b1d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23c30f=!0x0,_0x156ac7(_0x5e0ce5[_0x401b1d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x401b1d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x401b1d([0x6c,0x6f,0x77])}),_0x435a21[_0x401b1d([0x74,0x68,0x65,0x6e])](()=>{_0x23c30f||_0x3ede8e(_0x401b1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3cd34a(){return _0x4be247[_0x401b1d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x401b1d([0x76,0x69,0x65,0x77])][_0x401b1d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x401b1d([0x61,0x75,0x74,0x6f]);}function _0x39a77f(){_0x4be247[_0x401b1d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x401b1d([0x76,0x69,0x65,0x77])][_0x401b1d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x401b1d([0x61,0x75,0x74,0x6f]);}}function _0x10a1be(_0x2f3d7e){const _0x5a79e5=[new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33412e=>setTimeout(_0x33412e,0x3d1ee13^_0x1fa1a9)),_0x435a21[_0x401b1d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34d6ef=>{let _0x1efcd5=0x0;_0x4be247[_0x401b1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x401b1d([0x6f,0x6e])](_0x401b1d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3ef480,_0xe5c520)=>{_0xe5c520[0x0][_0x401b1d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1efcd5++,_0x1efcd5==(0x3d8d127^_0x1fa1a9)&&(_0x34d6ef(),_0x3ef480[_0x401b1d([0x6f,0x66,0x66])]());});}))];return window[_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x401b1d([0x72,0x61,0x63,0x65])](_0x5a79e5)[_0x401b1d([0x74,0x68,0x65,0x6e])](()=>_0x2f3d7e);}async function _0x8d681b(){await _0x435a21,_0x4be247[_0x401b1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x401b1d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x583624,_0x4be247[_0x401b1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x401b1d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x583624,_0x4be247[_0x401b1d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x401b1d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b3c6a(_0x5b8037){const _0x34a26a=_0x1f6eb0();_0x4be247[_0x34a26a]=_0x401b1d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b8037,_0x5b8037!=_0x401b1d([0x56,0x61,0x6c,0x69,0x64])&&_0x8d681b();}function _0x1f6eb0(){const _0x13a938=window[_0x401b1d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x401b1d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x401b1d([0x6e,0x6f,0x77])]())[_0x401b1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x401b1d([0x2e]),'');let _0x1fd8f1=_0x401b1d([0x52]);for(let _0x20f629=0x0;_0x20f629<_0x13a938[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20f629+=0x2){let _0x980bb3=window[_0x401b1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13a938[_0x401b1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20f629,_0x20f629+0x2));_0x980bb3>=_0x195d2c[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x980bb3-=_0x195d2c[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1fd8f1+=_0x195d2c[_0x980bb3];}return _0x1fd8f1;}function _0x17d8cf(){const _0x31a0cb=_0x4d9efc[_0x401b1d([0x73,0x70,0x6c,0x69,0x74])](_0x401b1d([0x2e]));if(0x3!=_0x31a0cb[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x165f44(_0x31a0cb[0x1]);function _0x165f44(_0x4e017a){const _0x31e844=_0x598490(_0x4e017a);return _0x31e844&&_0x596868()?_0x31e844:null;function _0x596868(){const _0x55e347=_0x31e844[_0x401b1d([0x6a,0x74,0x69])],_0x1047a3=window[_0x401b1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55e347[_0x401b1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55e347[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d289c={..._0x31e844,[_0x401b1d([0x6a,0x74,0x69])]:_0x55e347[_0x401b1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55e347[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d289c[_0x401b1d([0x76,0x63])],_0x69b384(_0x2d289c)==_0x1047a3;}}}async function _0x2141fc(){let _0x512f1d=!0x0;try{const _0x573e89=_0x4d9efc[_0x401b1d([0x73,0x70,0x6c,0x69,0x74])](_0x401b1d([0x2e])),[_0x49f768,_0x2ccaae,_0x9f7ddf]=_0x573e89;return _0x3d4e77(_0x49f768),await _0x5f03ae(_0x49f768,_0x2ccaae,_0x9f7ddf),_0x512f1d;}catch{return!0x1;}function _0x3d4e77(_0x4fc67f){const _0x4cbfc2=_0x598490(_0x4fc67f);_0x4cbfc2&&_0x4cbfc2[_0x401b1d([0x61,0x6c,0x67])]==_0x401b1d([0x45,0x53,0x32,0x35,0x36])||(_0x512f1d=!0x1);}async function _0x5f03ae(_0x4502c7,_0x3cc45b,_0x1b2136){const _0x2083f6=window[_0x401b1d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x401b1d([0x66,0x72,0x6f,0x6d])](_0x50f92a(_0x1b2136),_0x236889=>_0x236889[_0x401b1d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x140012=new window[(_0x401b1d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x401b1d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4502c7+_0x401b1d([0x2e])+_0x3cc45b),_0x20a725=window[_0x401b1d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x401b1d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20a725)return;const _0x441667=await _0x20a725[_0x401b1d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x401b1d([0x6a,0x77,0x6b]),_0xb2d13f,{[_0x401b1d([0x6e,0x61,0x6d,0x65])]:_0x401b1d([0x45,0x43,0x44,0x53,0x41]),[_0x401b1d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x401b1d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x401b1d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20a725[_0x401b1d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x401b1d([0x6e,0x61,0x6d,0x65])]:_0x401b1d([0x45,0x43,0x44,0x53,0x41]),[_0x401b1d([0x68,0x61,0x73,0x68])]:{[_0x401b1d([0x6e,0x61,0x6d,0x65])]:_0x401b1d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x441667,_0x2083f6,_0x140012)||(_0x512f1d=!0x1);}}function _0x598490(_0x5ba5c0){return _0x5ba5c0[_0x401b1d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x401b1d([0x65,0x79]))?JSON[_0x401b1d([0x70,0x61,0x72,0x73,0x65])](_0x50f92a(_0x5ba5c0)):null;}function _0x50f92a(_0x5f1ebd){return window[_0x401b1d([0x61,0x74,0x6f,0x62])](_0x5f1ebd[_0x401b1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x401b1d([0x2b]))[_0x401b1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x401b1d([0x2f])));}function _0x69b384(_0x3c64dc){let _0x3dc569=0x1505;function _0x5eac29(_0x27ca6a){for(let _0x30a106=0x0;_0x30a106<_0x27ca6a[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30a106++){const _0x4cf15a=_0x27ca6a[_0x401b1d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30a106);_0x3dc569=(_0x3dc569<<0x5)+_0x3dc569+_0x4cf15a,_0x3dc569&=_0x3dc569;}}function _0xf753b4(_0x5c0faa){Array[_0x401b1d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c0faa)?_0x5c0faa[_0x401b1d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf753b4):_0x5c0faa&&typeof _0x5c0faa==_0x401b1d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x401b1d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c0faa)[_0x401b1d([0x73,0x6f,0x72,0x74])]()[_0x401b1d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x353bc5,_0x22a69f])=>{_0x5eac29(_0x353bc5),_0xf753b4(_0x22a69f);}):_0x5eac29(window[_0x401b1d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c0faa));}return _0xf753b4(_0x3c64dc),_0x3dc569>>>0x0;}function _0x275232(_0x24c717){return _0x24c717[_0x401b1d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x401b1d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x401b1d([0x30]));}function _0x4562df(_0x19b424){return _0x19b424[_0x401b1d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x401b1d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x401b1d([0x6a,0x6f,0x69,0x6e])]('');}function _0x583624(){}function _0x401b1d(_0x580fe4){return _0x580fe4['map'](_0x1ee889=>String['fromCharCode'](_0x1ee889))['join']('');}_0x5b3c6a(await _0x3be6bb());}(this);}['_initSchema'](){const _0x324d67=this['editor']['model']['schema'];_0x324d67['isRegistered']('imageBlock')&&_0x324d67['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x324d67['isRegistered']('imageInline')&&_0x324d67['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1c3d94=this['editor'];_0x1c3d94['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1c3d94['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x9bfc86=>_0x9bfc86['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1633b5=_0x1c3d94['commands']['get']('replaceImageSource');_0x1633b5&&this['listenTo'](_0x1633b5,'cleanupImage',(_0x505f13,[_0x577cbf,_0x4d8b00])=>{_0x577cbf['removeAttribute']('uploadcareImageId',_0x4d8b00);});}['_initConfig'](){const _0x3c3cb4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x40ca06=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2a12e1(_0x5c4475['document'],'uc-config',{..._0x3c3cb4,'pubkey':_0x40ca06,'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']=_0xe24c1a=>{if('closeMax'==_0xe24c1a)return'#uc-icon-arrow-down';},_0x5c4475['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2a12e1(_0x5c4475['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5c4475['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x296c98=this['editor']['commands']['get']('insertImage');_0x296c98&&this['listenTo'](_0x296c98,'execute',()=>{const _0x58841b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58841b&&_0x58841b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x58841b);});});const _0x4e6438=this['editor']['commands']['get']('uploadcareImageReplace');_0x4e6438&&this['listenTo'](_0x4e6438,'execute',()=>{const _0x53a250=this['editor']['model']['document']['selection']['getSelectedElement']();_0x53a250&&_0x53a250['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x53a250);});});}}class tt extends _0x3c1b5d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d763b){super(_0x1d763b),_0x1d763b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x11b339['defineComponents'](_0x11b339);}}class ii extends _0x1a6eec{constructor(_0xc8e1b3){super(_0xc8e1b3);const t=_0xc8e1b3['t'],_0x3a0a2b=this['bindTemplate'],_0x163f0e=new _0x304037();_0x163f0e['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':[_0x163f0e,{'text':_0x3a0a2b['to']('imageUploadProgress',_0x420aff=>t('Loading\x20image...')+'\x20('+(_0x420aff||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 _0x1a6eec{constructor(_0x1c84e1){super(_0x1c84e1);const t=_0x1c84e1['t'];this['set']('errorType',null);const _0x496291=new _0x36b574(_0x1c84e1);_0x496291['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x496291['withText']=!0x0,_0x496291['class']='ck-button-action',_0x496291['on']('execute',()=>{this['fire']('retry');}),_0x496291['bind']('isVisible')['to'](this,'errorType',_0x21f092=>'NotFound'!==_0x21f092);const _0x270b15=new _0x411e06();_0x270b15['content']=_0x2e3b2b,_0x270b15['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x257b20=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':[_0x270b15,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x257b20['to']('errorType',_0x17d080=>t('NotFound'!==_0x17d080?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x496291]},{'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 _0x1a6eec{constructor(_0x4948c2,_0x539326){super(_0x4948c2);const _0x2f917d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x539326,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2f917d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x251e00,_0x5d9428,_0x5303a4){super(_0x251e00),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x251e00),this['_errorView']=new ti(_0x251e00),this['_editingView']=new ei(_0x251e00,_0x5303a4),this['_focusableView']=new _0x1a6eec(_0x251e00),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5d9428),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'],_0x1d2c65=>{this['_addUploadcareImageEditorListeners'](_0x1d2c65);});}),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'](_0x34bfb4,_0x437860){const _0x19f10b='uc-cloud-image-editor',_0x18bfcb=_0x34bfb4['querySelector'](_0x19f10b);if(_0x18bfcb)return _0x437860(_0x18bfcb);const _0x2a1979=new MutationObserver(_0x5bbe0c=>{const _0x3236b0=_0x5bbe0c['filter'](_0x29d0db=>_0x29d0db['target']===_0x34bfb4&&_0x29d0db['addedNodes']['length']>0x0&&_0x29d0db['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x19f10b);_0x3236b0['length']&&(_0x2a1979['disconnect'](),_0x437860(_0x3236b0[0x0]['addedNodes'][0x0]));});_0x2a1979['observe'](_0x34bfb4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5631b2){_0x5631b2['addEventListener']('apply',_0x6dd244=>{this['fire']('apply',{'imageSrc':_0x6dd244['detail']['cdnUrl']});}),_0x5631b2['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x2a04f3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x37c206,_0x33b05e,_0x4c570a){super(),this['_editor']=_0x37c206,this['_dialog']=_0x33b05e,this['_imageElement']=_0x4c570a,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 _0x47d38d=this['_imageElement'],_0x1e0274=_0x47d38d['getAttribute']('uploadcareImageId'),_0x3188df=_0x47d38d['getAttribute']('src');if(_0x1e0274)await this['_loadImageInfo'](_0x1e0274,_0x3188df);else{if(this['_imageCache']['has'](_0x3188df)){const _0x372afc=this['_imageCache']['get'](_0x3188df);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x372afc['url'],this['imageDimension']=_0x372afc['dimension'],this['imageId']=_0x372afc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x330dd6}=this['_editor'],t=_0x330dd6['t'],_0x100292=new X(_0x330dd6,this['imageStatus'],this['_attributes']);_0x100292['bind']('status')['to'](this,'imageStatus'),_0x100292['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x100292['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x100292['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x100292,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2d05a5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x100292,'position':_0x4489bd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x100292['focus']();},'onHide':()=>{_0x100292['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x414e66=>!A(_0x414e66,_0x100292['element'])}});}['_loadImageInfo'](_0x4645a6,_0x171d6c){return j['getInfo'](_0x4645a6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x26e581=>{const {width:_0x58fe37,height:_0x4fff51}=_0x26e581['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x171d6c,this['imageDimension']={'width':_0x58fe37,'height':_0x4fff51},this['imageId']=_0x4645a6;})['catch'](_0x10964f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x10964f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x432720,_0xd9b3be){return this['_getImageAsFile'](_0x432720)['then'](_0x56060e=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0xd9b3be['signal'],'file':_0x56060e,'onProgress':_0x49ed34=>{_0x49ed34&&_0x49ed34['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x49ed34['value']));}}))['then'](_0x2108a6=>{const {width:_0x4821b8,height:_0x1bb41}=_0x2108a6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2108a6['cdnUrl'],this['imageDimension']={'width':_0x4821b8,'height':_0x1bb41},this['imageId']=_0x2108a6['uuid'],this['imageUploadProgress']=null;const _0x817e10=_0x432720['getAttribute']('src');this['_imageCache']['set'](_0x817e10,{'id':_0x2108a6['uuid'],'url':_0x2108a6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x56d39e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x56d39e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x26ede6,_0x9f1078){_0x26ede6['on']('apply',(_0x3220ec,_0x466440)=>{this['_replaceImage'](_0x9f1078,_0x466440['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x26ede6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x26ede6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xcb2268,_0xa7b0f4,_0x11f397){const _0x37847f=this['_editor'],{width:_0x14bcca,height:_0x2c807e}=S(_0xa7b0f4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2c66bc,imageSources:_0x299928}=C(_0xa7b0f4,_0x14bcca);_0x37847f['model']['change'](_0x5eedd1=>{if('$graveyard'===_0xcb2268['root']['rootName']){_0x37847f['execute']('insertImage',{'imageType':_0xcb2268['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xcb2268['getAttributes']()),'uploadcareImageId':_0x11f397,'src':_0x2c66bc,'sources':_0x299928,'width':_0x14bcca,'height':_0x2c807e}});const _0x4d8ee3=_0xcb2268['getChildren']();_0xcb2268=_0x37847f['model']['document']['selection']['getSelectedElement']();for(const _0x2cc91e of _0x4d8ee3)_0x5eedd1['append'](_0x5eedd1['cloneElement'](_0x2cc91e),_0xcb2268);}else _0x5eedd1['setSelection'](_0xcb2268,'on'),_0x37847f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xcb2268['getAttributes']()),'uploadcareImageId':_0x11f397,'src':_0x2c66bc,'sources':_0x299928,'width':_0x14bcca,'height':_0x2c807e},_0xcb2268);_0x5eedd1['setSelection'](_0xcb2268,'on');});}async['_getImageAsFile'](_0xbe4c2){const _0x66a350=_0x5c4475['window'],_0x26a3a2=_0x5c4475['document']['location']['href'],_0x2e2872=new _0x66a350['URL'](_0xbe4c2['getAttribute']('src'),_0x26a3a2);if('data:'===_0x2e2872['protocol']){const _0x33c4a9=_0x2e2872['href']['split'](','),_0x10f7bf=_0x33c4a9[0x0]['match'](/:(.*?);/)[0x1],_0x16f4ba=_0x10f7bf['split']('/')[0x1],_0x49e28d=_0x66a350['atob'](_0x33c4a9[_0x33c4a9['length']-0x1]);let _0x5953cf=_0x49e28d['length'];const _0x2661df=new _0x66a350['Uint8Array'](_0x5953cf);for(;_0x5953cf--;)_0x2661df[_0x5953cf]=_0x49e28d['charCodeAt'](_0x5953cf);return new _0x66a350['File']([_0x2661df],'image.'+_0x16f4ba,{'type':_0x10f7bf});}const _0x2f3ef5=_0x2e2872['href']['split']('/'),_0x30a14e=_0x2f3ef5[_0x2f3ef5['length']-0x1],_0x5edc9b=_0x30a14e['split']('.')[0x1];return _0x66a350['fetch'](_0x2e2872['href'])['then'](_0x298914=>_0x298914['clone']()['blob']())['then'](_0x472cc4=>new _0x66a350['File']([_0x472cc4],_0x30a14e,{'type':'image/'+_0x5edc9b}));}}class O extends _0x35463a{['imageEditController'];static get['requires'](){return[_0x405406];}['_isEditable'];constructor(_0x4c44a7){super(_0x4c44a7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x549c3e){const _0x28bd92=G(_0x549c3e);return _0x5ea995=>!(!_0x5ea995||!_0x5ea995['is']('element','imageBlock')&&!_0x5ea995['is']('element','imageInline'))&&(!!_0x5ea995['hasAttribute']('uploadcareImageId')||!!_0x5ea995['hasAttribute']('src')&&_0x28bd92(_0x5ea995['getAttribute']('src')));}(_0x4c44a7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xaa214f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xaa214f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3c4eaf=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3c4eaf&&(_0x3c4eaf['is']('element','imageBlock')||_0x3c4eaf['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x405406),_0x3c4eaf),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x35463a{['refresh'](){const _0x31a8bd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x31a8bd&&(_0x31a8bd['is']('element','imageBlock')||_0x31a8bd['is']('element','imageInline')));}['execute'](_0x528363){const _0x23c2e2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x25eab6=>{_0x25eab6['setAttributes'](_0x528363,_0x23c2e2),_0x25eab6['removeAttribute']('srcset',_0x23c2e2),_0x25eab6['removeAttribute']('sizes',_0x23c2e2);});}}class m extends _0x3c1b5d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1d44ff,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2cd7a1}=this;_0x2cd7a1['commands']['add']('uploadcareImageEdit',new O(_0x2cd7a1)),_0x2cd7a1['commands']['add']('uploadcareImageReplace',new R(_0x2cd7a1));}}class g extends _0x3c1b5d{['_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 _0x5b3430=this['editor'];_0x5b3430['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1de3a2=>{const _0x1cffe6=_0x5b3430['commands']['get']('uploadcareImageEdit'),_0x5ea443=new _0x36b574(_0x1de3a2),t=_0x1de3a2['t'];return _0x5ea443['set']({'icon':_0x2d05a5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5ea443['bind']('isEnabled')['to'](_0x1cffe6),_0x5ea443['bind']('isOn')['to'](_0x1cffe6,'isActive'),this['listenTo'](_0x5ea443,'execute',()=>{_0x5b3430['execute']('uploadcareImageEdit'),_0x5b3430['editing']['view']['focus']();}),_0x5ea443;}),this['_initConfig']();}['_initConfig'](){const _0x2987b9=_0x2a12e1(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2987b9),this['listenTo'](this['editor'],'destroy',()=>{_0x2987b9['remove']();});}}class et extends _0x3c1b5d{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 _0x75a889,Command as _0xf7caf6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x13abb5,IconGooglePhotos as _0x44fe9b,IconGoogleDrive as _0x382bf4,IconFacebook as _0xd27adf,IconDropbox as _0x58ed9f,IconUploadcareLink as _0x484bb8,IconUploadcareImageUpload as _0x5cd2b3,IconError as _0x33ebaa,IconUploadcareImageEdit as _0x2e2692}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x149532,MenuBarMenuListItemButtonView as _0x40b3dc,View as _0xa2b4cf,FocusCycler as _0x4b44dd,Dialog as _0x11310b,DialogViewPosition as _0x3fde09,SpinnerView as _0x975c7d,IconView as _0x74fe94,Notification as _0x425d38}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x186bf3,DomEmitterMixin as _0x509f01,global as _0x144693,getAncestors as _0x1c2c16,ObservableMixin as _0x420e81,uid as _0x2f1573,createElement as _0xd23753}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x54226c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xfc070d,info as _0x27cf3b}from'@uploadcare/upload-client';import*as _0x2fded0 from'@uploadcare/file-uploader';var i=function(_0x2c3f78){return _0x2c3f78['Local']='local',_0x2c3f78['URL']='url',_0x2c3f78['Dropbox']='dropbox',_0x2c3f78['GDrive']='gdrive',_0x2c3f78['Facebook']='facebook',_0x2c3f78['GPhotos']='gphotos',_0x2c3f78['OneDrive']='onedrive',_0x2c3f78;}({});function _(_0x8fb40,_0x3a8bbd,_0x35f21b){const t=_0x8fb40['t'],_0x3f88e0=_0x8fb40['t'];switch(_0x3a8bbd){case i['Local']:return{'text':_0x3f88e0('Insert'===_0x35f21b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3f88e0('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x35f21b?_0x3f88e0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3f88e0('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x35f21b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x35f21b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x35f21b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x35f21b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x35f21b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3a8bbd;}}class e extends _0x75a889{['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 _0x6bfc28=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4da96a;for(const _0x27e166 in _0x6bfc28){const _0x1eb518=_0x27e166,_0x47860d=_0x6bfc28[_0x1eb518];if('uploadcareLicenseKeyValid'==_0x47860d||'uploadcareLicenseKeyInvalid'==_0x47860d||'uploadcareLicenseKeyExpired'==_0x47860d||'uploadcareLicenseKeyDomainLimit'==_0x47860d||'uploadcareLicenseKeyNotAllowed'==_0x47860d||'uploadcareLicenseKeyEvaluationLimit'==_0x47860d||'uploadcareLicenseKeyTrialLimit'==_0x47860d||'uploadcareLicenseKeyUsageLimit'==_0x47860d){delete _0x6bfc28[_0x1eb518],_0x4da96a=_0x47860d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4da96a&&_0x6bfc28['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4da96a&&_0x6bfc28['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4da96a&&_0x6bfc28['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4da96a&&_0x6bfc28['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4da96a&&_0x6bfc28['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4da96a&&_0x6bfc28['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4da96a&&_0x6bfc28['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x31fb0a}=this,_0xd01bcf=_0x31fb0a['commands']['get']('uploadcare');if(!_0xd01bcf)return;const _0x44500c=this['_normalizeConfigSourceList'](_0x31fb0a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5d4af4,_0x3e51a0)=>{const _0x4204f1=this['_getIntegrationKey'](_0x3e51a0['type']);return _0x5d4af4[_0x4204f1]||(_0x5d4af4[_0x4204f1]=[]),_0x5d4af4[_0x4204f1]['push'](_0x3e51a0),_0x5d4af4;},{});_0x31fb0a['plugins']['has']('ImageInsertUI')&&_0x31fb0a['commands']['get']('uploadcare')&&Object['entries'](_0x44500c)['forEach'](([_0x10d3c8,_0x1164d4])=>{_0x31fb0a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x10d3c8,'observable':()=>_0xd01bcf,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1164d4),'formViewCreator':()=>this['_createDropdownButtons'](_0x1164d4),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1164d4),'override':'assetManager'!==_0x10d3c8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x52ca18){const {locale:_0x21fde3}=this['editor'];return _0x52ca18['map'](_0x12b3f4=>{const _0xea6565=_(_0x21fde3,_0x12b3f4,'Insert');switch(_0x12b3f4){case i['Local']:return{'icon':_0x5cd2b3,'type':i['Local'],..._0xea6565};case i['URL']:return{'icon':_0x484bb8,'type':i['URL'],..._0xea6565};case i['Dropbox']:return{'icon':_0x58ed9f,'type':i['Dropbox'],..._0xea6565};case i['Facebook']:return{'icon':_0xd27adf,'type':i['Facebook'],..._0xea6565};case i['GDrive']:return{'icon':_0x382bf4,'type':i['GDrive'],..._0xea6565};case i['GPhotos']:return{'icon':_0x44fe9b,'type':i['GPhotos'],..._0xea6565};case i['OneDrive']:return{'icon':_0x13abb5,'type':i['OneDrive'],..._0xea6565};}});}['_getIntegrationKey'](_0x357ce2){switch(_0x357ce2){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x334432,_0x4d6623){const _0x168f58=this['editor'],_0x5be0ed=new _0x334432(_0x168f58['locale']),_0x4a58cd=_0x168f58['commands']['get']('uploadcare');return _0x5be0ed['bind']('isEnabled')['to'](_0x4a58cd),_0x5be0ed['on']('execute',()=>{_0x4a58cd['execute'](_0x4d6623);}),_0x5be0ed;}['_createToolbarButton'](_0x5e3061){const {locale:_0x26cab7}=this['editor'],_0x71210c=this['editor']['plugins']['get']('ImageInsertUI'),_0xca109f=_0x5e3061[0x0],_0x56eb94=this['_createButton'](_0x149532,_0xca109f['type']);return _0x56eb94['icon']=_0xca109f['icon'],_0x56eb94['bind']('label')['to'](_0x71210c,'isImageSelected',_0x1d983b=>_(_0x26cab7,_0xca109f['type'],_0x1d983b?'Replace':'Insert')['text']),_0x56eb94['tooltip']=!0x0,_0x56eb94;}['_createDropdownButtons'](_0x995457){const {locale:_0x48afbf}=this['editor'],_0x548d85=this['editor']['plugins']['get']('ImageInsertUI');return _0x995457['map'](_0x3e2201=>{const _0x53b7d6=this['_createButton'](_0x149532,_0x3e2201['type']);return _0x53b7d6['withText']=!0x0,_0x53b7d6['icon']=_0x3e2201['icon'],_0x53b7d6['bind']('label')['to'](_0x548d85,'isImageSelected',_0x1d62bd=>_(_0x48afbf,_0x3e2201['type'],_0x1d62bd?'Replace':'Insert')['text']),_0x53b7d6;});}['_createMenuBarButtons'](_0x4d7636){return _0x4d7636['map'](_0x4c528a=>{const _0x43aef5=this['_createButton'](_0x40b3dc,_0x4c528a['type']);return _0x43aef5['icon']=_0x4c528a['icon'],_0x43aef5['label']=_0x4c528a['shortText'],_0x43aef5;});}}class F extends _0xa2b4cf{['focusTracker'];['focusCycler'];constructor(_0x115d2a){super(_0x115d2a),this['focusTracker']=new _0x186bf3(),this['focusCycler']=new _0x4b44dd({'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(_0x21b613,_0x400a32){super(_0x21b613),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-'+_0x400a32}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3fff8b,_0x3a9923){const _0x44e2da=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x135218=>_0x135218<=_0x3a9923)['map'](_0x2374a1=>_0x3fff8b['replace'](/\/$/,'')+'/-/resize/'+_0x2374a1+'x/\x20'+_0x2374a1+'w');return{'imageFallbackUrl':_0x3fff8b,'imageSources':[{'srcset':_0x44e2da['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3a9923+'px)\x20100vw,\x20'+_0x3a9923+'px','type':'image/webp'}]};}function S(_0x1a907d,_0x28ef19,_0x5b70f0){const _0x1512a1=_0x1a907d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1512a1?parseInt(_0x1512a1[0x1],0xa):_0x28ef19,'height':_0x1512a1?parseInt(_0x1512a1[0x2],0xa):_0x5b70f0};}function p(_0x1bf729,_0x13bff4){const _0x370135=new(_0x509f01())(),_0x72300a=_0x1bf729['plugins']['get']('ImageUtils'),_0x578723=_0x1bf729['editing']['mapper']['toViewElement'](_0x13bff4),_0x721c53=_0x72300a['findViewImgElement'](_0x578723),_0x2239c5=_0x1bf729['editing']['view']['domConverter']['viewToDom'](_0x721c53),_0x50bcd7=_0x13bff4['getAttribute']('width'),_0x576479=_0x13bff4['getAttribute']('height'),_0x389474='image-processing';_0x1bf729['editing']['view']['change'](_0x345d7a=>{_0x345d7a['addClass'](_0x389474,_0x578723),_0x345d7a['setStyle']('aspect-ratio',_0x50bcd7+'/'+_0x576479,_0x721c53);}),_0x370135['listenTo'](_0x2239c5,'load',()=>{_0x370135['stopListening'](_0x2239c5,'load'),_0x1bf729['editing']['view']['change'](_0x3fd93e=>{_0x3fd93e['removeClass'](_0x389474,_0x578723),_0x3fd93e['removeStyle']('aspect-ratio',_0x721c53);});});}function G(_0x5d2b94){if(Array['isArray'](_0x5d2b94)){const _0x334c5c=_0x5d2b94['map'](G);return _0x173b68=>_0x334c5c['some'](_0x2185af=>_0x2185af(_0x173b68));}if('origin'==_0x5d2b94){const _0x5a4d7f=_0x144693['window']['location']['origin'];return _0x5a2779=>new URL(_0x5a2779,_0x144693['document']['baseURI'])['origin']==_0x5a4d7f;}return'function'==typeof _0x5d2b94?_0x5d2b94:_0x5d2b94 instanceof RegExp?_0x504cac=>!(!_0x504cac['match'](_0x5d2b94)&&!_0x504cac['replace'](/^https?:\/\//,'')['match'](_0x5d2b94)):()=>!0x1;}function A(_0x13539b,_0x5e0bd0){return _0x1c2c16(_0x13539b['target'])['includes'](_0x5e0bd0);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x420e81(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x58b9ea,_0x28022a,_0x4aa3ac){super(),this['_editor']=_0x58b9ea,this['_editing']=_0x28022a,this['_dialog']=_0x58b9ea['plugins']['get'](_0x11310b),this['_api']=_0x28022a['ctxElement']['getAPI'](),this['_type']=_0x4aa3ac,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:_0x2c9bc2,model:_0x5145f9}=this['_editor'],_0x34e44c=_0x5145f9['document']['selection']['getSelectedElement'](),_0x1d4954=_0x34e44c&&(_0x34e44c['is']('element','imageBlock')||_0x34e44c['is']('element','imageInline'));this['_formView']=new x(_0x2c9bc2,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5cd2b3,'title':_(_0x2c9bc2,this['_type'],_0x1d4954?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3fde09['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x16eea0=>!A(_0x16eea0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5f1ffe}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x13ddaa=>{const _0xd0a12e=_0x5f1ffe['length'];for(const _0x3ed141 of _0x5f1ffe){const _0x494459=_0x3ed141===_0x5f1ffe[_0xd0a12e-0x1],{cdnUrl:_0xa47000,fileInfo:_0x4e8d0c}=_0x3ed141;if(!_0xa47000||!_0x4e8d0c)continue;const {width:_0x1c63d2,height:_0x58c953}=_0x4e8d0c['imageInfo'],_0xa3c745=S(_0xa47000,_0x1c63d2,_0x58c953),_0x51a355=C(_0xa47000,_0xa3c745['width']),_0x4efd7d={'id':_0x4e8d0c['uuid'],'type':'image','attributes':{'imageDimension':_0xa3c745,..._0x51a355}};this['_insertAsset'](_0x4efd7d,_0x494459,_0x13ddaa);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x44edb2=>{'idle'===_0x44edb2['detail']['status']&&!_0x44edb2['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x150e7f,_0x325f4b,_0x586043){const _0x141e43=this['_editor']['model']['document']['selection'],_0x22abff=_0x141e43['getSelectedElement'](),_0x314513=!(!_0x22abff||!_0x22abff['is']('element','imageInline'));_0x586043['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x150e7f,_0x314513),_0x325f4b||_0x586043['setSelection'](_0x141e43['getLastPosition']());}['_insertImage'](_0x47819d,_0x162157){const _0xb3e308=this['_editor'],{imageDimension:_0x457be6,imageFallbackUrl:_0x133643,imageSources:_0xd024f6}=_0x47819d['attributes'];_0xb3e308['execute']('insertImage',{'imageType':_0x162157?'imageInline':null,'source':{'uploadcareImageId':_0x47819d['id'],'src':_0x133643,'sources':_0xd024f6,..._0x457be6}});}}class w extends _0xf7caf6{['_editing'];['_controller']=null;static get['requires'](){return[_0x11310b,o];}constructor(_0x206bc9){super(_0x206bc9),this['_editing']=_0x206bc9['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x54d38d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x54d38d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x39a751,..._0x12fb26}){return _0xfc070d(_0x39a751,_0x12fb26);}static['getInfo'](_0x50e2c8,_0x2eb17b){return _0x27cf3b(_0x50e2c8,_0x2eb17b);}}class f extends _0x75a889{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x54226c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x19fb3c=this['editor'];if(!!!_0x19fb3c['config']['get']('uploadcare'))return;_0x19fb3c['plugins']['get'](_0x54226c)['createUploadAdapter']=_0x262be7=>new k(_0x262be7,_0x19fb3c),_0x19fb3c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5edafb,{imageElement:_0x4a242a,data:_0x1847e5})=>{_0x19fb3c['model']['change'](_0x513de7=>{_0x513de7['setAttribute']('uploadcareImageId',_0x1847e5['uploadcareImageId'],_0x4a242a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1321c7,_0x47e104){this['loader']=_0x1321c7,this['editor']=_0x47e104,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1ede78=await this['loader']['file'];return j['upload']({'file':_0x1ede78,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x5f3982=>{_0x5f3982&&_0x5f3982['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5f3982['value']);}})['then'](async _0x379131=>{const {imageFallbackUrl:_0x3a6310,imageSources:_0x61deed}=C(_0x379131['cdnUrl'],_0x379131['imageInfo']['width']);return{'uploadcareImageId':_0x379131['uuid'],'default':_0x3a6310,'sources':_0x61deed};})['catch'](()=>{const _0x1bfc0e=t('Cannot\x20upload\x20file:')+('\x20'+_0x1ede78['name']+'.');return Promise['reject'](_0x1bfc0e);});}['abort'](){this['controller']['abort']();}}class o extends _0x75a889{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x11310b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x284c15){super(_0x284c15),this['ucContextId']=_0x2f1573();}['init'](){const _0x4422fb=this['editor'];_0x4422fb['commands']['add']('uploadcare',new w(_0x4422fb));}['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 _0x1e4abf=_0x144693['document']['querySelector']('input[uploadcare-file-input]');_0x1e4abf&&_0x1e4abf['remove']();}),async function(_0x3d67d6){const _0x148a16=_0x5d1549([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x30ae8a=0x3d8d0df,_0x3dc783=0x3dfa58f^_0x30ae8a,_0x326d6b=window[_0x5d1549([0x44,0x61,0x74,0x65])][_0x5d1549([0x6e,0x6f,0x77])](),_0x3efb6b=_0x3d67d6[_0x5d1549([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54d4e4=new window[(_0x5d1549([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43ec80=>{_0x3efb6b[_0x5d1549([0x6f,0x6e,0x63,0x65])](_0x5d1549([0x72,0x65,0x61,0x64,0x79]),_0x43ec80);}),_0x1297be={[_0x5d1549([0x6b,0x74,0x79])]:_0x5d1549([0x45,0x43]),[_0x5d1549([0x75,0x73,0x65])]:_0x5d1549([0x73,0x69,0x67]),[_0x5d1549([0x63,0x72,0x76])]:_0x5d1549([0x50,0x2d,0x32,0x35,0x36]),[_0x5d1549([0x78])]:_0x5d1549([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]),[_0x5d1549([0x79])]:_0x5d1549([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]),[_0x5d1549([0x61,0x6c,0x67])]:_0x5d1549([0x45,0x53,0x32,0x35,0x36])},_0x2ac06e=_0x3efb6b[_0x5d1549([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d1549([0x67,0x65,0x74])](_0x5d1549([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xf35bd3(){let _0x56739e,_0x1c1482=null,_0x266c4c=null;try{if(_0x2ac06e==_0x5d1549([0x47,0x50,0x4c]))return _0x5d1549([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x56739e=_0x49d063(),!_0x56739e)return _0x5d1549([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x56739e[_0x5d1549([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x266c4c=_0xcee511(_0x56739e[_0x5d1549([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x56739e[_0x5d1549([0x6a,0x74,0x69])])),await _0x430743()?_0x1fa61c()?_0x4e1d7a()?_0x5d1549([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x925283()?(_0x56739e[_0x5d1549([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d1549([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c1482=_0x470b8d(_0x5d1549([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x56739e[_0x5d1549([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d1549([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c1482=_0x470b8d(_0x5d1549([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x393d4a()):_0x5d1549([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d1549([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d1549([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d1549([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e1d7a(){const _0xb4804e=[_0x5d1549([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d1549([0x74,0x72,0x69,0x61,0x6c])][_0x5d1549([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56739e[_0x5d1549([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x326d6b/0x3e8:0xe10*_0x3dc783;return _0x56739e[_0x5d1549([0x65,0x78,0x70])]<_0xb4804e;}function _0x1fa61c(){const _0x40f130=_0x56739e[_0x5d1549([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x40f130&&(!!_0x40f130[_0x5d1549([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1549([0x2a]))||!!_0x40f130[_0x5d1549([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1549([0x55,0x50,0x4c,0x43])));}function _0x925283(){const _0x5e0870=_0x56739e[_0x5d1549([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e0870||0x0==_0x5e0870[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b6d17}=new URL(window[_0x5d1549([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e0870[_0x5d1549([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b6d17))return!0x0;const _0x44385f=_0x1b6d17[_0x5d1549([0x73,0x70,0x6c,0x69,0x74])](_0x5d1549([0x2e]));return _0x5e0870[_0x5d1549([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x220810=>_0x220810[_0x5d1549([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1549([0x2a])))[_0x5d1549([0x6d,0x61,0x70])](_0x3fec03=>_0x3fec03[_0x5d1549([0x73,0x70,0x6c,0x69,0x74])](_0x5d1549([0x2e])))[_0x5d1549([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d088d=>_0x5d088d[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x44385f[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d1549([0x6d,0x61,0x70])](_0x273075=>Array(_0x44385f[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x273075[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d1549([0x66,0x69,0x6c,0x6c])](_0x273075[0x0]===_0x5d1549([0x2a])?_0x5d1549([0x2a]):'')[_0x5d1549([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x273075))[_0x5d1549([0x73,0x6f,0x6d,0x65])](_0x48de94=>_0x44385f[_0x5d1549([0x65,0x76,0x65,0x72,0x79])]((_0x3e9527,_0x472eef)=>_0x48de94[_0x472eef]===_0x3e9527||_0x48de94[_0x472eef]===_0x5d1549([0x2a])));}function _0x393d4a(){return _0x1c1482&&_0x266c4c?new window[(_0x5d1549([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b6dfd,_0x4b59f)=>{_0x1c1482[_0x5d1549([0x74,0x68,0x65,0x6e])](_0x4b6dfd,_0x4b59f),_0x266c4c[_0x5d1549([0x74,0x68,0x65,0x6e])](_0x394034=>{_0x394034!=_0x5d1549([0x56,0x61,0x6c,0x69,0x64])&&_0x4b6dfd(_0x394034);},_0x4b59f);}):_0x1c1482||_0x266c4c||_0x5d1549([0x56,0x61,0x6c,0x69,0x64]);}}function _0xcee511(_0x54f7f0,_0x2a66c4){return new window[(_0x5d1549([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f6895=>{if(_0x4a0494())return _0x4f6895(_0x5d1549([0x56,0x61,0x6c,0x69,0x64]));_0x3fd6ca(),_0x3efb6b[_0x5d1549([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d1549([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4147f9=!0x1;const _0x26bce1=_0x2f1573();function _0x1d4e91(_0x4e1c4a){return!!_0x4e1c4a&&(typeof _0x4e1c4a===_0x5d1549([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e1c4a===_0x5d1549([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e1c4a[_0x5d1549([0x74,0x68,0x65,0x6e])]===_0x5d1549([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e1c4a[_0x5d1549([0x63,0x61,0x74,0x63,0x68])]===_0x5d1549([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fb6ee(_0x3a3553){_0x111b7f(_0x3a3553)[_0x5d1549([0x74,0x68,0x65,0x6e])](_0x21dacc=>{if(!_0x21dacc||_0x21dacc[_0x5d1549([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d1549([0x6f,0x6b]))return _0x5d1549([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x81200d(_0x46d0c9(_0x26bce1+_0x2a66c4))!=_0x21dacc[_0x5d1549([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d1549([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d1549([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d1549([0x74,0x68,0x65,0x6e])](_0x4aa0cc=>(_0x289c64(),_0x4aa0cc),()=>{const _0x37e2c8=_0x252bd8();return null==_0x37e2c8?(_0x289c64(),_0x5d1549([0x56,0x61,0x6c,0x69,0x64])):_0x5d1549(_0x326d6b-_0x37e2c8>(0x27d454df^_0x30ae8a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d1549([0x74,0x68,0x65,0x6e])](_0x4f6895)[_0x5d1549([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f6895(_0x5d1549([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x11092f=0x3ee3e5f^_0x30ae8a;function _0x289c64(){const _0x19c870=_0x5d1549([0x6c,0x6c,0x63,0x74,0x2d])+_0x81200d(_0x46d0c9(_0x54f7f0)),_0xd49afe=_0x255844(_0x81200d(window[_0x5d1549([0x4d,0x61,0x74,0x68])][_0x5d1549([0x63,0x65,0x69,0x6c])](_0x326d6b/_0x11092f)));window[_0x5d1549([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d1549([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19c870,_0xd49afe);}function _0x252bd8(){const _0x269102=_0x5d1549([0x6c,0x6c,0x63,0x74,0x2d])+_0x81200d(_0x46d0c9(_0x54f7f0)),_0x2c5af5=window[_0x5d1549([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d1549([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x269102);return _0x2c5af5?window[_0x5d1549([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x255844(_0x2c5af5),0x10)*_0x11092f:null;}function _0x111b7f(_0x64b3ee){return new window[(_0x5d1549([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9ca0e7,_0x36c9eb)=>{_0x64b3ee[_0x5d1549([0x74,0x68,0x65,0x6e])](_0x9ca0e7,_0x36c9eb),window[_0x5d1549([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36c9eb,0x3d9041f^_0x30ae8a);});}}_0x3efb6b[_0x5d1549([0x6f,0x6e])](_0x5d1549([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x30e629,_0x4fef43)=>{if(_0x4fef43[0x0]!=_0x54f7f0)return _0x4f6895(_0x5d1549([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4fef43[0x1]={..._0x4fef43[0x1],[_0x5d1549([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26bce1};},{[_0x5d1549([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d1549([0x68,0x69,0x67,0x68])}),_0x3efb6b[_0x5d1549([0x6f,0x6e])](_0x5d1549([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x498671=>{_0x1d4e91(_0x498671[_0x5d1549([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4147f9=!0x0,_0x2fb6ee(_0x498671[_0x5d1549([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d1549([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d1549([0x6c,0x6f,0x77])}),_0x54d4e4[_0x5d1549([0x74,0x68,0x65,0x6e])](()=>{_0x4147f9||_0x4f6895(_0x5d1549([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a0494(){return _0x3efb6b[_0x5d1549([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d1549([0x76,0x69,0x65,0x77])][_0x5d1549([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d1549([0x61,0x75,0x74,0x6f]);}function _0x3fd6ca(){_0x3efb6b[_0x5d1549([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d1549([0x76,0x69,0x65,0x77])][_0x5d1549([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d1549([0x61,0x75,0x74,0x6f]);}}function _0x470b8d(_0x1cdb5b){const _0xc7467b=[new window[(_0x5d1549([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x154ca4=>setTimeout(_0x154ca4,0x3d1ee13^_0x30ae8a)),_0x54d4e4[_0x5d1549([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d1549([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x448fb6=>{let _0x40f824=0x0;_0x3efb6b[_0x5d1549([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d1549([0x6f,0x6e])](_0x5d1549([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3ec6b9,_0xf8d61e)=>{_0xf8d61e[0x0][_0x5d1549([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40f824++,_0x40f824==(0x3d8d127^_0x30ae8a)&&(_0x448fb6(),_0x3ec6b9[_0x5d1549([0x6f,0x66,0x66])]());});}))];return window[_0x5d1549([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d1549([0x72,0x61,0x63,0x65])](_0xc7467b)[_0x5d1549([0x74,0x68,0x65,0x6e])](()=>_0x1cdb5b);}async function _0x2c8175(){await _0x54d4e4,_0x3efb6b[_0x5d1549([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d1549([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53a832,_0x3efb6b[_0x5d1549([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d1549([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53a832,_0x3efb6b[_0x5d1549([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d1549([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4cacea(_0x154178){const _0x4a7e94=_0x5bd4f2();_0x3efb6b[_0x4a7e94]=_0x5d1549([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x154178,_0x154178!=_0x5d1549([0x56,0x61,0x6c,0x69,0x64])&&_0x2c8175();}function _0x5bd4f2(){const _0x2fea0e=window[_0x5d1549([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d1549([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d1549([0x6e,0x6f,0x77])]())[_0x5d1549([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d1549([0x2e]),'');let _0x1342c8=_0x5d1549([0x52]);for(let _0x2e7b8a=0x0;_0x2e7b8a<_0x2fea0e[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e7b8a+=0x2){let _0x428dc3=window[_0x5d1549([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fea0e[_0x5d1549([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7b8a,_0x2e7b8a+0x2));_0x428dc3>=_0x148a16[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x428dc3-=_0x148a16[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1342c8+=_0x148a16[_0x428dc3];}return _0x1342c8;}function _0x49d063(){const _0x25b87a=_0x2ac06e[_0x5d1549([0x73,0x70,0x6c,0x69,0x74])](_0x5d1549([0x2e]));if(0x3!=_0x25b87a[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16719b(_0x25b87a[0x1]);function _0x16719b(_0x6e52d2){const _0x179fb6=_0x39c879(_0x6e52d2);return _0x179fb6&&_0x17e62c()?_0x179fb6:null;function _0x17e62c(){const _0x213527=_0x179fb6[_0x5d1549([0x6a,0x74,0x69])],_0x4ea6d3=window[_0x5d1549([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x213527[_0x5d1549([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x213527[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x206edb={..._0x179fb6,[_0x5d1549([0x6a,0x74,0x69])]:_0x213527[_0x5d1549([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x213527[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x206edb[_0x5d1549([0x76,0x63])],_0x46d0c9(_0x206edb)==_0x4ea6d3;}}}async function _0x430743(){let _0x4932a4=!0x0;try{const _0x6cf3ee=_0x2ac06e[_0x5d1549([0x73,0x70,0x6c,0x69,0x74])](_0x5d1549([0x2e])),[_0x219f48,_0x374388,_0x55e38b]=_0x6cf3ee;return _0x5645e0(_0x219f48),await _0xe57aae(_0x219f48,_0x374388,_0x55e38b),_0x4932a4;}catch{return!0x1;}function _0x5645e0(_0x1fb271){const _0x577769=_0x39c879(_0x1fb271);_0x577769&&_0x577769[_0x5d1549([0x61,0x6c,0x67])]==_0x5d1549([0x45,0x53,0x32,0x35,0x36])||(_0x4932a4=!0x1);}async function _0xe57aae(_0x3ce341,_0x4c33d3,_0x591152){const _0x13fb41=window[_0x5d1549([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d1549([0x66,0x72,0x6f,0x6d])](_0x57cd20(_0x591152),_0xd7b765=>_0xd7b765[_0x5d1549([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35800a=new window[(_0x5d1549([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d1549([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ce341+_0x5d1549([0x2e])+_0x4c33d3),_0x4022d1=window[_0x5d1549([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d1549([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4022d1)return;const _0x3db88d=await _0x4022d1[_0x5d1549([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d1549([0x6a,0x77,0x6b]),_0x1297be,{[_0x5d1549([0x6e,0x61,0x6d,0x65])]:_0x5d1549([0x45,0x43,0x44,0x53,0x41]),[_0x5d1549([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d1549([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d1549([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4022d1[_0x5d1549([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d1549([0x6e,0x61,0x6d,0x65])]:_0x5d1549([0x45,0x43,0x44,0x53,0x41]),[_0x5d1549([0x68,0x61,0x73,0x68])]:{[_0x5d1549([0x6e,0x61,0x6d,0x65])]:_0x5d1549([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3db88d,_0x13fb41,_0x35800a)||(_0x4932a4=!0x1);}}function _0x39c879(_0x58920e){return _0x58920e[_0x5d1549([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d1549([0x65,0x79]))?JSON[_0x5d1549([0x70,0x61,0x72,0x73,0x65])](_0x57cd20(_0x58920e)):null;}function _0x57cd20(_0x1d7316){return window[_0x5d1549([0x61,0x74,0x6f,0x62])](_0x1d7316[_0x5d1549([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d1549([0x2b]))[_0x5d1549([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d1549([0x2f])));}function _0x46d0c9(_0x59b27b){let _0x35524e=0x1505;function _0x22a743(_0x51dcae){for(let _0x4f6a47=0x0;_0x4f6a47<_0x51dcae[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f6a47++){const _0x4f4cf8=_0x51dcae[_0x5d1549([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f6a47);_0x35524e=(_0x35524e<<0x5)+_0x35524e+_0x4f4cf8,_0x35524e&=_0x35524e;}}function _0xffe0a2(_0x4972f2){Array[_0x5d1549([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4972f2)?_0x4972f2[_0x5d1549([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xffe0a2):_0x4972f2&&typeof _0x4972f2==_0x5d1549([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d1549([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4972f2)[_0x5d1549([0x73,0x6f,0x72,0x74])]()[_0x5d1549([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40aa2b,_0x2054ed])=>{_0x22a743(_0x40aa2b),_0xffe0a2(_0x2054ed);}):_0x22a743(window[_0x5d1549([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4972f2));}return _0xffe0a2(_0x59b27b),_0x35524e>>>0x0;}function _0x81200d(_0x3fe9bb){return _0x3fe9bb[_0x5d1549([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d1549([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d1549([0x30]));}function _0x255844(_0x1329a4){return _0x1329a4[_0x5d1549([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d1549([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d1549([0x6a,0x6f,0x69,0x6e])]('');}function _0x53a832(){}function _0x5d1549(_0x11dae5){return _0x11dae5['map'](_0xac811=>String['fromCharCode'](_0xac811))['join']('');}_0x4cacea(await _0xf35bd3());}(this);}['_initSchema'](){const _0x27dc5b=this['editor']['model']['schema'];_0x27dc5b['isRegistered']('imageBlock')&&_0x27dc5b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x27dc5b['isRegistered']('imageInline')&&_0x27dc5b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1406ba=this['editor'];_0x1406ba['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1406ba['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2652a6=>_0x2652a6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x384ae2=_0x1406ba['commands']['get']('replaceImageSource');_0x384ae2&&this['listenTo'](_0x384ae2,'cleanupImage',(_0x806988,[_0x30f5e1,_0x41c472])=>{_0x30f5e1['removeAttribute']('uploadcareImageId',_0x41c472);});}['_initConfig'](){const _0x4fc4ca=this['editor']['config']['get']('uploadcare.uploader')||{},_0x29119e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xd23753(_0x144693['document'],'uc-config',{..._0x4fc4ca,'pubkey':_0x29119e,'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']=_0x476711=>{if('closeMax'==_0x476711)return'#uc-icon-arrow-down';},_0x144693['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xd23753(_0x144693['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x144693['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x440e2a=this['editor']['commands']['get']('insertImage');_0x440e2a&&this['listenTo'](_0x440e2a,'execute',()=>{const _0x1034a9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1034a9&&_0x1034a9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1034a9);});});const _0x548725=this['editor']['commands']['get']('uploadcareImageReplace');_0x548725&&this['listenTo'](_0x548725,'execute',()=>{const _0x99eada=this['editor']['model']['document']['selection']['getSelectedElement']();_0x99eada&&_0x99eada['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x99eada);});});}}class tt extends _0x75a889{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x431c9f){super(_0x431c9f),_0x431c9f['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2fded0['defineComponents'](_0x2fded0);}}class ii extends _0xa2b4cf{constructor(_0x4655d1){super(_0x4655d1);const t=_0x4655d1['t'],_0x162cd2=this['bindTemplate'],_0x125dee=new _0x975c7d();_0x125dee['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':[_0x125dee,{'text':_0x162cd2['to']('imageUploadProgress',_0x440d15=>t('Loading\x20image...')+'\x20('+(_0x440d15||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 _0xa2b4cf{constructor(_0x2320ae){super(_0x2320ae);const t=_0x2320ae['t'];this['set']('errorType',null);const _0x2f0af3=new _0x149532(_0x2320ae);_0x2f0af3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2f0af3['withText']=!0x0,_0x2f0af3['class']='ck-button-action',_0x2f0af3['on']('execute',()=>{this['fire']('retry');}),_0x2f0af3['bind']('isVisible')['to'](this,'errorType',_0x3b7441=>'NotFound'!==_0x3b7441);const _0x47c16e=new _0x74fe94();_0x47c16e['content']=_0x33ebaa,_0x47c16e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x49a634=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':[_0x47c16e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x49a634['to']('errorType',_0x5ceb72=>t('NotFound'!==_0x5ceb72?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2f0af3]},{'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 _0xa2b4cf{constructor(_0x2d2673,_0x3fd415){super(_0x2d2673);const _0x3a230c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3fd415,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3a230c['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x32aee0,_0x575711,_0x47953a){super(_0x32aee0),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x32aee0),this['_errorView']=new ti(_0x32aee0),this['_editingView']=new ei(_0x32aee0,_0x47953a),this['_focusableView']=new _0xa2b4cf(_0x32aee0),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x575711),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'],_0x21e981=>{this['_addUploadcareImageEditorListeners'](_0x21e981);});}),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'](_0x377213,_0x1f721e){const _0x2785c3='uc-cloud-image-editor',_0x5b6997=_0x377213['querySelector'](_0x2785c3);if(_0x5b6997)return _0x1f721e(_0x5b6997);const _0x3bfe9a=new MutationObserver(_0x2bd647=>{const _0x1da7fd=_0x2bd647['filter'](_0x49870f=>_0x49870f['target']===_0x377213&&_0x49870f['addedNodes']['length']>0x0&&_0x49870f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2785c3);_0x1da7fd['length']&&(_0x3bfe9a['disconnect'](),_0x1f721e(_0x1da7fd[0x0]['addedNodes'][0x0]));});_0x3bfe9a['observe'](_0x377213,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x37758b){_0x37758b['addEventListener']('apply',_0x4e0ba4=>{this['fire']('apply',{'imageSrc':_0x4e0ba4['detail']['cdnUrl']});}),_0x37758b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x420e81(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4b567a,_0x2737b1,_0x10d87f){super(),this['_editor']=_0x4b567a,this['_dialog']=_0x2737b1,this['_imageElement']=_0x10d87f,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 _0x42e10d=this['_imageElement'],_0x4144e7=_0x42e10d['getAttribute']('uploadcareImageId'),_0x315324=_0x42e10d['getAttribute']('src');if(_0x4144e7)await this['_loadImageInfo'](_0x4144e7,_0x315324);else{if(this['_imageCache']['has'](_0x315324)){const _0x48214e=this['_imageCache']['get'](_0x315324);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48214e['url'],this['imageDimension']=_0x48214e['dimension'],this['imageId']=_0x48214e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xc963ff}=this['_editor'],t=_0xc963ff['t'],_0x495c9b=new X(_0xc963ff,this['imageStatus'],this['_attributes']);_0x495c9b['bind']('status')['to'](this,'imageStatus'),_0x495c9b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x495c9b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x495c9b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x495c9b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2e2692,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x495c9b,'position':_0x3fde09['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x495c9b['focus']();},'onHide':()=>{_0x495c9b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x33d505=>!A(_0x33d505,_0x495c9b['element'])}});}['_loadImageInfo'](_0x179ebd,_0x541914){return j['getInfo'](_0x179ebd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x282988=>{const {width:_0x1c3010,height:_0x48a593}=_0x282988['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x541914,this['imageDimension']={'width':_0x1c3010,'height':_0x48a593},this['imageId']=_0x179ebd;})['catch'](_0x476aed=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x476aed['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x10a1f6,_0x34f738){return this['_getImageAsFile'](_0x10a1f6)['then'](_0x5e9c89=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x34f738['signal'],'file':_0x5e9c89,'onProgress':_0x4be5be=>{_0x4be5be&&_0x4be5be['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4be5be['value']));}}))['then'](_0x2a96ed=>{const {width:_0x20aad4,height:_0x1642f3}=_0x2a96ed['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a96ed['cdnUrl'],this['imageDimension']={'width':_0x20aad4,'height':_0x1642f3},this['imageId']=_0x2a96ed['uuid'],this['imageUploadProgress']=null;const _0x23de0e=_0x10a1f6['getAttribute']('src');this['_imageCache']['set'](_0x23de0e,{'id':_0x2a96ed['uuid'],'url':_0x2a96ed['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4aa545=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4aa545['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x155d3b,_0x2f39ec){_0x155d3b['on']('apply',(_0x31686f,_0xe0ef27)=>{this['_replaceImage'](_0x2f39ec,_0xe0ef27['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x155d3b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x155d3b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x500b49,_0x5be7d2,_0x8262bd){const _0x1cf2f5=this['_editor'],{width:_0x445f9a,height:_0x888d57}=S(_0x5be7d2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xa887a6,imageSources:_0x27d4c7}=C(_0x5be7d2,_0x445f9a);_0x1cf2f5['model']['change'](_0x4cf152=>{if('$graveyard'===_0x500b49['root']['rootName']){_0x1cf2f5['execute']('insertImage',{'imageType':_0x500b49['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x500b49['getAttributes']()),'uploadcareImageId':_0x8262bd,'src':_0xa887a6,'sources':_0x27d4c7,'width':_0x445f9a,'height':_0x888d57}});const _0x532d4a=_0x500b49['getChildren']();_0x500b49=_0x1cf2f5['model']['document']['selection']['getSelectedElement']();for(const _0x829778 of _0x532d4a)_0x4cf152['append'](_0x4cf152['cloneElement'](_0x829778),_0x500b49);}else _0x4cf152['setSelection'](_0x500b49,'on'),_0x1cf2f5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x500b49['getAttributes']()),'uploadcareImageId':_0x8262bd,'src':_0xa887a6,'sources':_0x27d4c7,'width':_0x445f9a,'height':_0x888d57},_0x500b49);_0x4cf152['setSelection'](_0x500b49,'on');});}async['_getImageAsFile'](_0x3b73c4){const _0x5aea8c=_0x144693['window'],_0x5eeded=_0x144693['document']['location']['href'],_0x3422ee=new _0x5aea8c['URL'](_0x3b73c4['getAttribute']('src'),_0x5eeded);if('data:'===_0x3422ee['protocol']){const _0x435df6=_0x3422ee['href']['split'](','),_0x2598a7=_0x435df6[0x0]['match'](/:(.*?);/)[0x1],_0x2c950e=_0x2598a7['split']('/')[0x1],_0x1e4263=_0x5aea8c['atob'](_0x435df6[_0x435df6['length']-0x1]);let _0x54335f=_0x1e4263['length'];const _0x563529=new _0x5aea8c['Uint8Array'](_0x54335f);for(;_0x54335f--;)_0x563529[_0x54335f]=_0x1e4263['charCodeAt'](_0x54335f);return new _0x5aea8c['File']([_0x563529],'image.'+_0x2c950e,{'type':_0x2598a7});}const _0x2e692a=_0x3422ee['href']['split']('/'),_0x4047be=_0x2e692a[_0x2e692a['length']-0x1],_0x328f2a=_0x4047be['split']('.')[0x1];return _0x5aea8c['fetch'](_0x3422ee['href'])['then'](_0x33e0f9=>_0x33e0f9['clone']()['blob']())['then'](_0x3efecc=>new _0x5aea8c['File']([_0x3efecc],_0x4047be,{'type':'image/'+_0x328f2a}));}}class O extends _0xf7caf6{['imageEditController'];static get['requires'](){return[_0x11310b];}['_isEditable'];constructor(_0x574fc2){super(_0x574fc2),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1b869f){const _0x1a8f9b=G(_0x1b869f);return _0x4de4bf=>!(!_0x4de4bf||!_0x4de4bf['is']('element','imageBlock')&&!_0x4de4bf['is']('element','imageInline'))&&(!!_0x4de4bf['hasAttribute']('uploadcareImageId')||!!_0x4de4bf['hasAttribute']('src')&&_0x1a8f9b(_0x4de4bf['getAttribute']('src')));}(_0x574fc2['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3fb49b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3fb49b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x372def=this['editor']['model']['document']['selection']['getSelectedElement']();_0x372def&&(_0x372def['is']('element','imageBlock')||_0x372def['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x11310b),_0x372def),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0xf7caf6{['refresh'](){const _0x4f44f5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4f44f5&&(_0x4f44f5['is']('element','imageBlock')||_0x4f44f5['is']('element','imageInline')));}['execute'](_0x3b9873){const _0x57ea1a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1fe6e2=>{_0x1fe6e2['setAttributes'](_0x3b9873,_0x57ea1a),_0x1fe6e2['removeAttribute']('srcset',_0x57ea1a),_0x1fe6e2['removeAttribute']('sizes',_0x57ea1a);});}}class m extends _0x75a889{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x425d38,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4630b9}=this;_0x4630b9['commands']['add']('uploadcareImageEdit',new O(_0x4630b9)),_0x4630b9['commands']['add']('uploadcareImageReplace',new R(_0x4630b9));}}class g extends _0x75a889{['_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 _0x3dec39=this['editor'];_0x3dec39['ui']['componentFactory']['add']('uploadcareImageEdit',_0x366b0d=>{const _0x27957e=_0x3dec39['commands']['get']('uploadcareImageEdit'),_0x26fa0e=new _0x149532(_0x366b0d),t=_0x366b0d['t'];return _0x26fa0e['set']({'icon':_0x2e2692,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26fa0e['bind']('isEnabled')['to'](_0x27957e),_0x26fa0e['bind']('isOn')['to'](_0x27957e,'isActive'),this['listenTo'](_0x26fa0e,'execute',()=>{_0x3dec39['execute']('uploadcareImageEdit'),_0x3dec39['editing']['view']['focus']();}),_0x26fa0e;}),this['_initConfig']();}['_initConfig'](){const _0x4fdb70=_0xd23753(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4fdb70),this['listenTo'](this['editor'],'destroy',()=>{_0x4fdb70['remove']();});}}class et extends _0x75a889{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20251003.0",
3
+ "version": "0.0.0-nightly-20251005.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251003.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251003.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251003.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251003.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251003.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251003.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251003.0",
33
- "ckeditor5": "0.0.0-nightly-20251003.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251005.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251005.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251005.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251005.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251005.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251005.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251005.0",
33
+ "ckeditor5": "0.0.0-nightly-20251005.0",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2bd5(_0x18f1be,_0x32fe8e){const _0x520ccc=_0x520c();return _0x2bd5=function(_0x2bd526,_0xad23ca){_0x2bd526=_0x2bd526-0xdb;let _0x12c211=_0x520ccc[_0x2bd526];return _0x12c211;},_0x2bd5(_0x18f1be,_0x32fe8e);}const _0x163364=_0x2bd5;(function(_0x4df389,_0x485c94){const _0x4b4302=_0x2bd5,_0x3c4a3e=_0x4df389();while(!![]){try{const _0xa83091=parseInt(_0x4b4302(0xf7))/0x1+-parseInt(_0x4b4302(0x10d))/0x2+parseInt(_0x4b4302(0xed))/0x3*(parseInt(_0x4b4302(0x10c))/0x4)+parseInt(_0x4b4302(0x111))/0x5+-parseInt(_0x4b4302(0x114))/0x6+-parseInt(_0x4b4302(0x106))/0x7+parseInt(_0x4b4302(0x110))/0x8;if(_0xa83091===_0x485c94)break;else _0x3c4a3e['push'](_0x3c4a3e['shift']());}catch(_0x66b0b1){_0x3c4a3e['push'](_0x3c4a3e['shift']());}}}(_0x520c,0xb2bdb));function _0x520c(){const _0x960dbc=['ctxElement','listenTo','_initConfig','init','_initConversion','getAttribute','insertImage','extend','_ctxElement','join','render','fromCharCode','href','uc-config','isOfficialPlugin','uploadcareImageReplace','document','commands','ucContextId','locale','for','cleanupImage','_initCtx','schema','body','appendChild','map','model','imageBlock','afterInit','imageInline','getSelectedElement','add','execute','replaceImageSource','isPremiumPlugin','destroy','PictureEditing','_initSchema','iconHrefResolver','uploadcare.uploader','_configElement','upcast','230757PzxAfw','uploadcare','remove','UploadcareEditing','view','requires','\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','config','selection','removeAttribute','1254667AXtKcK','isRegistered','conversion','contentLanguage','pluginName','downcast','data-uc-image-id','attributeToAttribute','closeMax','_initImageProcessingIndicator','true','editor','editing','input[uploadcare-file-input]','once','6160581TbNywm','querySelector','uc-upload-ctx-provider','#uc-icon-arrow-down','get','elementToAttribute','52tzOMhJ','2688678gsZbrH','uploader-','uploadcareImageId','6639984jJZkWk','2564735lkMDLM','uploadcare.pubkey','configElement','3846084jrRDZo'];_0x520c=function(){return _0x960dbc;};return _0x520c();}import{Plugin as _0x1869ba}from'ckeditor5/src/core.js';import{Dialog as _0x2c9028}from'ckeditor5/src/ui.js';import{createElement as _0x4629b9,global as _0x57dc5c,uid as _0x562abd}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x363299}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x14c9e4}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1a7714}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1869ba{[_0x163364(0xeb)]=null;[_0x163364(0x11d)]=null;static get[_0x163364(0xfb)](){const _0x1edec1=_0x163364;return _0x1edec1(0xf0);}static get[_0x163364(0xf2)](){const _0x520102=_0x163364;return[_0x520102(0xe7),_0x14c9e4,_0x2c9028];}static get[_0x163364(0x123)](){return!0x0;}static get[_0x163364(0xe5)](){return!0x0;}[_0x163364(0x127)];get[_0x163364(0x113)](){const _0x3da55c=_0x163364;return this[_0x3da55c(0xeb)];}get[_0x163364(0x115)](){const _0x36804f=_0x163364;return this[_0x36804f(0x11d)];}constructor(_0xc25ec3){const _0x1f3de0=_0x163364;super(_0xc25ec3),this[_0x1f3de0(0x127)]=_0x562abd();}[_0x163364(0x118)](){const _0x6344d9=_0x163364,_0x2eeed6=this[_0x6344d9(0x102)];_0x2eeed6[_0x6344d9(0x126)][_0x6344d9(0xe2)](_0x6344d9(0xee),new _0x363299(_0x2eeed6));}[_0x163364(0xdf)](){const _0x2de17d=_0x163364;this[_0x2de17d(0xe8)](),this[_0x2de17d(0x119)](),this[_0x2de17d(0x117)](),this[_0x2de17d(0x12b)](),this[_0x2de17d(0x100)](),this[_0x2de17d(0x116)](this[_0x2de17d(0x102)],_0x2de17d(0xe6),()=>{const _0x589a2a=_0x2de17d;this[_0x589a2a(0xeb)]&&(this[_0x589a2a(0xeb)][_0x589a2a(0xef)](),this[_0x589a2a(0xeb)]=null),this[_0x589a2a(0x11d)]&&(this[_0x589a2a(0x11d)][_0x589a2a(0xef)](),this[_0x589a2a(0x11d)]=null);const _0x2d204c=_0x57dc5c[_0x589a2a(0x125)][_0x589a2a(0x107)](_0x589a2a(0x104));_0x2d204c&&_0x2d204c[_0x589a2a(0xef)]();}),async function(_0x4e0c8c){const _0x1e5a1f=_0x9f7c2([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x23eaa3=0x3d8d0df,_0xa25c14=0x3dfa5ff^_0x23eaa3,_0xe18ed1=window[_0x9f7c2([0x44,0x61,0x74,0x65])][_0x9f7c2([0x6e,0x6f,0x77])](),_0x101bd7=_0x4e0c8c[_0x9f7c2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x56f837=new window[(_0x9f7c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6ce948=>{_0x101bd7[_0x9f7c2([0x6f,0x6e,0x63,0x65])](_0x9f7c2([0x72,0x65,0x61,0x64,0x79]),_0x6ce948);}),_0x49dbe5={[_0x9f7c2([0x6b,0x74,0x79])]:_0x9f7c2([0x45,0x43]),[_0x9f7c2([0x75,0x73,0x65])]:_0x9f7c2([0x73,0x69,0x67]),[_0x9f7c2([0x63,0x72,0x76])]:_0x9f7c2([0x50,0x2d,0x32,0x35,0x36]),[_0x9f7c2([0x78])]:_0x9f7c2([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]),[_0x9f7c2([0x79])]:_0x9f7c2([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]),[_0x9f7c2([0x61,0x6c,0x67])]:_0x9f7c2([0x45,0x53,0x32,0x35,0x36])},_0x27edfb=_0x101bd7[_0x9f7c2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9f7c2([0x67,0x65,0x74])](_0x9f7c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa53d8f(){let _0x304028,_0x1131c4=null,_0x2e28d6=null;try{if(_0x27edfb==_0x9f7c2([0x47,0x50,0x4c]))return _0x9f7c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x304028=_0x21806a(),!_0x304028)return _0x9f7c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x304028[_0x9f7c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e28d6=_0xcc550a(_0x304028[_0x9f7c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x304028[_0x9f7c2([0x6a,0x74,0x69])])),await _0x2c9a7a()?_0x1bd476()?_0x1f6f44()?_0x9f7c2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e14ff()?(_0x304028[_0x9f7c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9f7c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1131c4=_0x113215(_0x9f7c2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x304028[_0x9f7c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9f7c2([0x74,0x72,0x69,0x61,0x6c])&&(_0x1131c4=_0x113215(_0x9f7c2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x24dedf()):_0x9f7c2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9f7c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9f7c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9f7c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f6f44(){const _0x467a63=[_0x9f7c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9f7c2([0x74,0x72,0x69,0x61,0x6c])][_0x9f7c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x304028[_0x9f7c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe18ed1/0x3e8:0xe10*_0xa25c14;return _0x304028[_0x9f7c2([0x65,0x78,0x70])]<_0x467a63;}function _0x1bd476(){const _0x226e85=_0x304028[_0x9f7c2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x226e85&&(!!_0x226e85[_0x9f7c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f7c2([0x2a]))||!!_0x226e85[_0x9f7c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f7c2([0x55,0x50,0x4c,0x43])));}function _0x4e14ff(){const _0x177949=_0x2bd5,_0x43771a=_0x304028[_0x9f7c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x43771a||0x0==_0x43771a[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x330661}=new URL(window[_0x9f7c2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x177949(0x121)]);if(_0x43771a[_0x9f7c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x330661))return!0x0;const _0x150dc8=_0x330661[_0x9f7c2([0x73,0x70,0x6c,0x69,0x74])](_0x9f7c2([0x2e]));return _0x43771a[_0x9f7c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2faacd=>_0x2faacd[_0x9f7c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f7c2([0x2a])))[_0x9f7c2([0x6d,0x61,0x70])](_0x2507f5=>_0x2507f5[_0x9f7c2([0x73,0x70,0x6c,0x69,0x74])](_0x9f7c2([0x2e])))[_0x9f7c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x367783=>_0x367783[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x150dc8[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9f7c2([0x6d,0x61,0x70])](_0x1a5e12=>Array(_0x150dc8[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a5e12[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9f7c2([0x66,0x69,0x6c,0x6c])](_0x1a5e12[0x0]===_0x9f7c2([0x2a])?_0x9f7c2([0x2a]):'')[_0x9f7c2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a5e12))[_0x9f7c2([0x73,0x6f,0x6d,0x65])](_0x416399=>_0x150dc8[_0x9f7c2([0x65,0x76,0x65,0x72,0x79])]((_0x4e801e,_0x35cb65)=>_0x416399[_0x35cb65]===_0x4e801e||_0x416399[_0x35cb65]===_0x9f7c2([0x2a])));}function _0x24dedf(){return _0x1131c4&&_0x2e28d6?new window[(_0x9f7c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b8213,_0x3774ee)=>{_0x1131c4[_0x9f7c2([0x74,0x68,0x65,0x6e])](_0x2b8213,_0x3774ee),_0x2e28d6[_0x9f7c2([0x74,0x68,0x65,0x6e])](_0x4d696d=>{_0x4d696d!=_0x9f7c2([0x56,0x61,0x6c,0x69,0x64])&&_0x2b8213(_0x4d696d);},_0x3774ee);}):_0x1131c4||_0x2e28d6||_0x9f7c2([0x56,0x61,0x6c,0x69,0x64]);}}function _0xcc550a(_0x167983,_0x496435){return new window[(_0x9f7c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b7e16=>{if(_0x10ef38())return _0x1b7e16(_0x9f7c2([0x56,0x61,0x6c,0x69,0x64]));_0x1c8e99(),_0x101bd7[_0x9f7c2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9f7c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f8c9b=!0x1;const _0xb24451=_0x562abd();function _0x54ab0c(_0x164a18){return!!_0x164a18&&(typeof _0x164a18===_0x9f7c2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x164a18===_0x9f7c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x164a18[_0x9f7c2([0x74,0x68,0x65,0x6e])]===_0x9f7c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x164a18[_0x9f7c2([0x63,0x61,0x74,0x63,0x68])]===_0x9f7c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x133095(_0x443999){_0x125fa6(_0x443999)[_0x9f7c2([0x74,0x68,0x65,0x6e])](_0x8171c5=>{if(!_0x8171c5||_0x8171c5[_0x9f7c2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9f7c2([0x6f,0x6b]))return _0x9f7c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c8ce4(_0x48fe58(_0xb24451+_0x496435))!=_0x8171c5[_0x9f7c2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9f7c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9f7c2([0x56,0x61,0x6c,0x69,0x64]);})[_0x9f7c2([0x74,0x68,0x65,0x6e])](_0x2c9d4f=>(_0x6c8152(),_0x2c9d4f),()=>{const _0x2aefaa=_0x508dda();return null==_0x2aefaa?(_0x6c8152(),_0x9f7c2([0x56,0x61,0x6c,0x69,0x64])):_0x9f7c2(_0xe18ed1-_0x2aefaa>(0x27d454df^_0x23eaa3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9f7c2([0x74,0x68,0x65,0x6e])](_0x1b7e16)[_0x9f7c2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b7e16(_0x9f7c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x173345=0x3ee3e5f^_0x23eaa3;function _0x6c8152(){const _0x705498=_0x9f7c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c8ce4(_0x48fe58(_0x167983)),_0x10c3f1=_0x18839e(_0x4c8ce4(window[_0x9f7c2([0x4d,0x61,0x74,0x68])][_0x9f7c2([0x63,0x65,0x69,0x6c])](_0xe18ed1/_0x173345)));window[_0x9f7c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9f7c2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x705498,_0x10c3f1);}function _0x508dda(){const _0x588cd3=_0x9f7c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c8ce4(_0x48fe58(_0x167983)),_0x564cd2=window[_0x9f7c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9f7c2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x588cd3);return _0x564cd2?window[_0x9f7c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18839e(_0x564cd2),0x10)*_0x173345:null;}function _0x125fa6(_0x17f344){return new window[(_0x9f7c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37a095,_0x45ff77)=>{_0x17f344[_0x9f7c2([0x74,0x68,0x65,0x6e])](_0x37a095,_0x45ff77),window[_0x9f7c2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x45ff77,0x3d9041f^_0x23eaa3);});}}_0x101bd7[_0x9f7c2([0x6f,0x6e])](_0x9f7c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x30f1fe,_0x1c0043)=>{if(_0x1c0043[0x0]!=_0x167983)return _0x1b7e16(_0x9f7c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c0043[0x1]={..._0x1c0043[0x1],[_0x9f7c2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb24451};},{[_0x9f7c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9f7c2([0x68,0x69,0x67,0x68])}),_0x101bd7[_0x9f7c2([0x6f,0x6e])](_0x9f7c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5601bc=>{_0x54ab0c(_0x5601bc[_0x9f7c2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f8c9b=!0x0,_0x133095(_0x5601bc[_0x9f7c2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9f7c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9f7c2([0x6c,0x6f,0x77])}),_0x56f837[_0x9f7c2([0x74,0x68,0x65,0x6e])](()=>{_0x1f8c9b||_0x1b7e16(_0x9f7c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10ef38(){return _0x101bd7[_0x9f7c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9f7c2([0x76,0x69,0x65,0x77])][_0x9f7c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9f7c2([0x61,0x75,0x74,0x6f]);}function _0x1c8e99(){_0x101bd7[_0x9f7c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9f7c2([0x76,0x69,0x65,0x77])][_0x9f7c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9f7c2([0x61,0x75,0x74,0x6f]);}}function _0x113215(_0x30a513){const _0x4b608f=[new window[(_0x9f7c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x261e4e=>setTimeout(_0x261e4e,0x3d1ee13^_0x23eaa3)),_0x56f837[_0x9f7c2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9f7c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x591816=>{let _0x445b66=0x0;_0x101bd7[_0x9f7c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x9f7c2([0x6f,0x6e])](_0x9f7c2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3884f3,_0x131496)=>{_0x131496[0x0][_0x9f7c2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x445b66++,_0x445b66==(0x3d8d127^_0x23eaa3)&&(_0x591816(),_0x3884f3[_0x9f7c2([0x6f,0x66,0x66])]());});}))];return window[_0x9f7c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9f7c2([0x72,0x61,0x63,0x65])](_0x4b608f)[_0x9f7c2([0x74,0x68,0x65,0x6e])](()=>_0x30a513);}async function _0x41c3cf(){await _0x56f837,_0x101bd7[_0x9f7c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x9f7c2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x533a2a,_0x101bd7[_0x9f7c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x9f7c2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x533a2a,_0x101bd7[_0x9f7c2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9f7c2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x349cda(_0x2d0efe){const _0x26a337=_0x48a216();_0x101bd7[_0x26a337]=_0x9f7c2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d0efe,_0x2d0efe!=_0x9f7c2([0x56,0x61,0x6c,0x69,0x64])&&_0x41c3cf();}function _0x48a216(){const _0x14e479=window[_0x9f7c2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9f7c2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9f7c2([0x6e,0x6f,0x77])]())[_0x9f7c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9f7c2([0x2e]),'');let _0x145cbf=_0x9f7c2([0x52]);for(let _0x4e741a=0x0;_0x4e741a<_0x14e479[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e741a+=0x2){let _0x599e31=window[_0x9f7c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14e479[_0x9f7c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e741a,_0x4e741a+0x2));_0x599e31>=_0x1e5a1f[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x599e31-=_0x1e5a1f[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x145cbf+=_0x1e5a1f[_0x599e31];}return _0x145cbf;}function _0x21806a(){const _0x278a0b=_0x27edfb[_0x9f7c2([0x73,0x70,0x6c,0x69,0x74])](_0x9f7c2([0x2e]));if(0x3!=_0x278a0b[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x577093(_0x278a0b[0x1]);function _0x577093(_0x5ee160){const _0x1636bc=_0xb0ceaa(_0x5ee160);return _0x1636bc&&_0x19b5b6()?_0x1636bc:null;function _0x19b5b6(){const _0x23288b=_0x1636bc[_0x9f7c2([0x6a,0x74,0x69])],_0x2ed668=window[_0x9f7c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23288b[_0x9f7c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23288b[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53e4fe={..._0x1636bc,[_0x9f7c2([0x6a,0x74,0x69])]:_0x23288b[_0x9f7c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23288b[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53e4fe[_0x9f7c2([0x76,0x63])],_0x48fe58(_0x53e4fe)==_0x2ed668;}}}async function _0x2c9a7a(){let _0x58b10c=!0x0;try{const _0x59aa7c=_0x27edfb[_0x9f7c2([0x73,0x70,0x6c,0x69,0x74])](_0x9f7c2([0x2e])),[_0x34280c,_0x4607d5,_0x5c6a44]=_0x59aa7c;return _0x1528e8(_0x34280c),await _0x1cb926(_0x34280c,_0x4607d5,_0x5c6a44),_0x58b10c;}catch{return!0x1;}function _0x1528e8(_0x1f845a){const _0x4d98ab=_0xb0ceaa(_0x1f845a);_0x4d98ab&&_0x4d98ab[_0x9f7c2([0x61,0x6c,0x67])]==_0x9f7c2([0x45,0x53,0x32,0x35,0x36])||(_0x58b10c=!0x1);}async function _0x1cb926(_0xc22a3e,_0x4aad9c,_0x280cf6){const _0x1b11d3=window[_0x9f7c2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9f7c2([0x66,0x72,0x6f,0x6d])](_0x2d1d17(_0x280cf6),_0x1355cf=>_0x1355cf[_0x9f7c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a724d=new window[(_0x9f7c2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9f7c2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc22a3e+_0x9f7c2([0x2e])+_0x4aad9c),_0x2484b4=window[_0x9f7c2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9f7c2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2484b4)return;const _0x2e4d68=await _0x2484b4[_0x9f7c2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9f7c2([0x6a,0x77,0x6b]),_0x49dbe5,{[_0x9f7c2([0x6e,0x61,0x6d,0x65])]:_0x9f7c2([0x45,0x43,0x44,0x53,0x41]),[_0x9f7c2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9f7c2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9f7c2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2484b4[_0x9f7c2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9f7c2([0x6e,0x61,0x6d,0x65])]:_0x9f7c2([0x45,0x43,0x44,0x53,0x41]),[_0x9f7c2([0x68,0x61,0x73,0x68])]:{[_0x9f7c2([0x6e,0x61,0x6d,0x65])]:_0x9f7c2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e4d68,_0x1b11d3,_0x2a724d)||(_0x58b10c=!0x1);}}function _0xb0ceaa(_0x463aa5){return _0x463aa5[_0x9f7c2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9f7c2([0x65,0x79]))?JSON[_0x9f7c2([0x70,0x61,0x72,0x73,0x65])](_0x2d1d17(_0x463aa5)):null;}function _0x2d1d17(_0xaf66ec){return window[_0x9f7c2([0x61,0x74,0x6f,0x62])](_0xaf66ec[_0x9f7c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9f7c2([0x2b]))[_0x9f7c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9f7c2([0x2f])));}function _0x48fe58(_0x2d8142){let _0x37d9fe=0x1505;function _0x3dccb3(_0x1e7edf){for(let _0x2617fb=0x0;_0x2617fb<_0x1e7edf[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2617fb++){const _0x5da522=_0x1e7edf[_0x9f7c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2617fb);_0x37d9fe=(_0x37d9fe<<0x5)+_0x37d9fe+_0x5da522,_0x37d9fe&=_0x37d9fe;}}function _0x3fbe5c(_0x3d913a){Array[_0x9f7c2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d913a)?_0x3d913a[_0x9f7c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3fbe5c):_0x3d913a&&typeof _0x3d913a==_0x9f7c2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9f7c2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d913a)[_0x9f7c2([0x73,0x6f,0x72,0x74])]()[_0x9f7c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x559ea5,_0x2f0bed])=>{_0x3dccb3(_0x559ea5),_0x3fbe5c(_0x2f0bed);}):_0x3dccb3(window[_0x9f7c2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d913a));}return _0x3fbe5c(_0x2d8142),_0x37d9fe>>>0x0;}function _0x4c8ce4(_0x281de1){return _0x281de1[_0x9f7c2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9f7c2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9f7c2([0x30]));}function _0x18839e(_0x30d24a){return _0x30d24a[_0x9f7c2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9f7c2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9f7c2([0x6a,0x6f,0x69,0x6e])]('');}function _0x533a2a(){}function _0x9f7c2(_0x3f6207){const _0x420602=_0x2bd5;return _0x3f6207[_0x420602(0xdc)](_0x4490f8=>String[_0x420602(0x120)](_0x4490f8))[_0x420602(0x11e)]('');}_0x349cda(await _0xa53d8f());}(this);}[_0x163364(0xe8)](){const _0x24defb=_0x163364,_0x46be94=this[_0x24defb(0x102)][_0x24defb(0xdd)][_0x24defb(0x12c)];_0x46be94[_0x24defb(0xf8)](_0x24defb(0xde))&&_0x46be94[_0x24defb(0x11c)](_0x24defb(0xde),{'allowAttributes':[_0x24defb(0x10f)]}),_0x46be94[_0x24defb(0xf8)](_0x24defb(0xe0))&&_0x46be94[_0x24defb(0x11c)](_0x24defb(0xe0),{'allowAttributes':[_0x24defb(0x10f)]});}[_0x163364(0x119)](){const _0x19e111=_0x163364,_0xf7cc32=this[_0x19e111(0x102)];_0xf7cc32[_0x19e111(0xf9)][_0x19e111(0x129)](_0x19e111(0xfc))[_0x19e111(0xfe)]({'model':_0x19e111(0x10f),'view':_0x19e111(0xfd)}),_0xf7cc32[_0x19e111(0xf9)][_0x19e111(0x129)](_0x19e111(0xec))[_0x19e111(0x10b)]({'model':{'key':_0x19e111(0x10f),'value':_0x2355f7=>_0x2355f7[_0x19e111(0x11a)](_0x19e111(0xfd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x19be76=_0xf7cc32[_0x19e111(0x126)][_0x19e111(0x10a)](_0x19e111(0xe4));_0x19be76&&this[_0x19e111(0x116)](_0x19be76,_0x19e111(0x12a),(_0x2a293f,[_0x47cea9,_0x3eca47])=>{const _0x10a60e=_0x19e111;_0x47cea9[_0x10a60e(0xf6)](_0x10a60e(0x10f),_0x3eca47);});}[_0x163364(0x117)](){const _0x12ae9c=_0x163364,_0x2b3d63=this[_0x12ae9c(0x102)][_0x12ae9c(0xf4)][_0x12ae9c(0x10a)](_0x12ae9c(0xea))||{},_0x39e49a=this[_0x12ae9c(0x102)][_0x12ae9c(0xf4)][_0x12ae9c(0x10a)](_0x12ae9c(0x112))||'';this[_0x12ae9c(0xeb)]=_0x4629b9(_0x57dc5c[_0x12ae9c(0x125)],_0x12ae9c(0x122),{..._0x2b3d63,'pubkey':_0x39e49a,'ctx-name':_0x12ae9c(0x10e)+this[_0x12ae9c(0x127)],'sourceList':'','imgOnly':_0x12ae9c(0x101),'removeCopyright':_0x12ae9c(0x101),'localeName':this[_0x12ae9c(0x102)][_0x12ae9c(0x128)][_0x12ae9c(0xfa)],'externalSourcesEmbedCss':_0x12ae9c(0xf3)}),this[_0x12ae9c(0xeb)][_0x12ae9c(0xe9)]=_0x2b9a64=>{const _0x8a0f7a=_0x12ae9c;if(_0x8a0f7a(0xff)==_0x2b9a64)return _0x8a0f7a(0x109);},_0x57dc5c[_0x12ae9c(0x125)][_0x12ae9c(0x12d)][_0x12ae9c(0xdb)](this[_0x12ae9c(0xeb)]);}[_0x163364(0x12b)](){const _0x96486=_0x163364;this[_0x96486(0x11d)]=_0x4629b9(_0x57dc5c[_0x96486(0x125)],_0x96486(0x108),{'ctx-name':_0x96486(0x10e)+this[_0x96486(0x127)]}),_0x57dc5c[_0x96486(0x125)][_0x96486(0x12d)][_0x96486(0xdb)](this[_0x96486(0x11d)]);}[_0x163364(0x100)](){const _0x1b04f1=_0x163364,_0x4a4c88=this[_0x1b04f1(0x102)][_0x1b04f1(0x126)][_0x1b04f1(0x10a)](_0x1b04f1(0x11b));_0x4a4c88&&this[_0x1b04f1(0x116)](_0x4a4c88,_0x1b04f1(0xe3),()=>{const _0x2d7e2a=_0x1b04f1,_0x247414=this[_0x2d7e2a(0x102)][_0x2d7e2a(0xdd)][_0x2d7e2a(0x125)][_0x2d7e2a(0xf5)][_0x2d7e2a(0xe1)]();_0x247414&&_0x247414[_0x2d7e2a(0x11a)](_0x2d7e2a(0x10f))&&this[_0x2d7e2a(0x102)][_0x2d7e2a(0x103)][_0x2d7e2a(0xf1)][_0x2d7e2a(0x105)](_0x2d7e2a(0x11f),()=>{const _0x2a9b1d=_0x2d7e2a;_0x1a7714(this[_0x2a9b1d(0x102)],_0x247414);});});const _0xa3e99c=this[_0x1b04f1(0x102)][_0x1b04f1(0x126)][_0x1b04f1(0x10a)](_0x1b04f1(0x124));_0xa3e99c&&this[_0x1b04f1(0x116)](_0xa3e99c,_0x1b04f1(0xe3),()=>{const _0x21ebeb=_0x1b04f1,_0x25c976=this[_0x21ebeb(0x102)][_0x21ebeb(0xdd)][_0x21ebeb(0x125)][_0x21ebeb(0xf5)][_0x21ebeb(0xe1)]();_0x25c976&&_0x25c976[_0x21ebeb(0x11a)](_0x21ebeb(0x10f))&&this[_0x21ebeb(0x102)][_0x21ebeb(0x103)][_0x21ebeb(0xf1)][_0x21ebeb(0x105)](_0x21ebeb(0x11f),()=>{const _0x3e3d64=_0x21ebeb;_0x1a7714(this[_0x3e3d64(0x102)],_0x25c976);});});}}
23
+ const _0x52a420=_0x52d6;(function(_0x166615,_0x43af26){const _0x398bf6=_0x52d6,_0x5ea972=_0x166615();while(!![]){try{const _0x49d9ef=parseInt(_0x398bf6(0x211))/0x1+-parseInt(_0x398bf6(0x238))/0x2+-parseInt(_0x398bf6(0x208))/0x3*(-parseInt(_0x398bf6(0x1ee))/0x4)+parseInt(_0x398bf6(0x210))/0x5*(parseInt(_0x398bf6(0x223))/0x6)+parseInt(_0x398bf6(0x1eb))/0x7*(-parseInt(_0x398bf6(0x1ec))/0x8)+parseInt(_0x398bf6(0x205))/0x9+-parseInt(_0x398bf6(0x1ef))/0xa*(parseInt(_0x398bf6(0x22e))/0xb);if(_0x49d9ef===_0x43af26)break;else _0x5ea972['push'](_0x5ea972['shift']());}catch(_0x20a37e){_0x5ea972['push'](_0x5ea972['shift']());}}}(_0x4130,0x51aec));import{Plugin as _0x423fd0}from'ckeditor5/src/core.js';import{Dialog as _0x7d44d8}from'ckeditor5/src/ui.js';import{createElement as _0xea3555,global as _0x378b89,uid as _0x364c01}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x375486}from'./uploadcarecommand.js';function _0x4130(){const _0x33a35d=['227856NwKOID','uploader-','listenTo','for','requires','isRegistered','afterInit','once','uploadcareImageReplace','7Bqlptb','3421496zYckUG','contentLanguage','1766320yUdxNI','10tiaENu','get','_initCtx','replaceImageSource','_ctxElement','insertImage','locale','view','schema','remove','init','ctxElement','_initConversion','imageInline','removeAttribute','uploadcareImageId','downcast','\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','appendChild','input[uploadcare-file-input]','destroy','attributeToAttribute','2921769eWVIZt','uc-config','iconHrefResolver','3diaZzb','ucContextId','render','uploadcare','elementToAttribute','UploadcareEditing','add','closeMax','477605JelZIH','352488phesAe','editor','uc-upload-ctx-provider','config','upcast','_initSchema','conversion','commands','uploadcare.pubkey','_initConfig','data-uc-image-id','cleanupImage','fromCharCode','isPremiumPlugin','body','PictureEditing','uploadcare.uploader','model','30pLjASs','imageBlock','#uc-icon-arrow-down','true','href','selection','getSelectedElement','configElement','execute','querySelector','_initImageProcessingIndicator','7921397UgqQCh','map','isOfficialPlugin','editing','getAttribute','document','extend','_configElement','join','pluginName'];_0x4130=function(){return _0x33a35d;};return _0x4130();}function _0x52d6(_0x34c9b3,_0x3a1b75){const _0x413009=_0x4130();return _0x52d6=function(_0x52d6f7,_0x41d59b){_0x52d6f7=_0x52d6f7-0x1e7;let _0x3277a8=_0x413009[_0x52d6f7];return _0x3277a8;},_0x52d6(_0x34c9b3,_0x3a1b75);}import{UploadcareUploadAdapter as _0x4ffcc0}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x42299f}from'./utils/editingutils.js';export class UploadcareEditing extends _0x423fd0{[_0x52a420(0x235)]=null;[_0x52a420(0x1f3)]=null;static get[_0x52a420(0x237)](){const _0x1ce5f4=_0x52a420;return _0x1ce5f4(0x20d);}static get[_0x52a420(0x23c)](){const _0x5cba20=_0x52a420;return[_0x5cba20(0x220),_0x4ffcc0,_0x7d44d8];}static get[_0x52a420(0x230)](){return!0x0;}static get[_0x52a420(0x21e)](){return!0x0;}[_0x52a420(0x209)];get[_0x52a420(0x22a)](){const _0x454157=_0x52a420;return this[_0x454157(0x235)];}get[_0x52a420(0x1fa)](){const _0x5c44b7=_0x52a420;return this[_0x5c44b7(0x1f3)];}constructor(_0x2b6b14){const _0x357ba9=_0x52a420;super(_0x2b6b14),this[_0x357ba9(0x209)]=_0x364c01();}[_0x52a420(0x1f9)](){const _0x199138=_0x52a420,_0x1f0f68=this[_0x199138(0x212)];_0x1f0f68[_0x199138(0x218)][_0x199138(0x20e)](_0x199138(0x20b),new _0x375486(_0x1f0f68));}[_0x52a420(0x1e8)](){const _0x1eae84=_0x52a420;this[_0x1eae84(0x216)](),this[_0x1eae84(0x1fb)](),this[_0x1eae84(0x21a)](),this[_0x1eae84(0x1f1)](),this[_0x1eae84(0x22d)](),this[_0x1eae84(0x23a)](this[_0x1eae84(0x212)],_0x1eae84(0x203),()=>{const _0x36c3ec=_0x1eae84;this[_0x36c3ec(0x235)]&&(this[_0x36c3ec(0x235)][_0x36c3ec(0x1f8)](),this[_0x36c3ec(0x235)]=null),this[_0x36c3ec(0x1f3)]&&(this[_0x36c3ec(0x1f3)][_0x36c3ec(0x1f8)](),this[_0x36c3ec(0x1f3)]=null);const _0x111a36=_0x378b89[_0x36c3ec(0x233)][_0x36c3ec(0x22c)](_0x36c3ec(0x202));_0x111a36&&_0x111a36[_0x36c3ec(0x1f8)]();}),async function(_0x114811){const _0x18fbc8=_0x593239([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x407c53=0x3d8d0df,_0x6101e=0x3dfa58f^_0x407c53,_0xe5bb3=window[_0x593239([0x44,0x61,0x74,0x65])][_0x593239([0x6e,0x6f,0x77])](),_0x1d5a61=_0x114811[_0x593239([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xaebd9e=new window[(_0x593239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f46af=>{_0x1d5a61[_0x593239([0x6f,0x6e,0x63,0x65])](_0x593239([0x72,0x65,0x61,0x64,0x79]),_0x1f46af);}),_0x3fe4c2={[_0x593239([0x6b,0x74,0x79])]:_0x593239([0x45,0x43]),[_0x593239([0x75,0x73,0x65])]:_0x593239([0x73,0x69,0x67]),[_0x593239([0x63,0x72,0x76])]:_0x593239([0x50,0x2d,0x32,0x35,0x36]),[_0x593239([0x78])]:_0x593239([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]),[_0x593239([0x79])]:_0x593239([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]),[_0x593239([0x61,0x6c,0x67])]:_0x593239([0x45,0x53,0x32,0x35,0x36])},_0x29d9ef=_0x1d5a61[_0x593239([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x593239([0x67,0x65,0x74])](_0x593239([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x775dc1(){let _0x569cf1,_0x42fd10=null,_0x409c25=null;try{if(_0x29d9ef==_0x593239([0x47,0x50,0x4c]))return _0x593239([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x569cf1=_0x28ea05(),!_0x569cf1)return _0x593239([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x569cf1[_0x593239([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x409c25=_0x15ac9d(_0x569cf1[_0x593239([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x569cf1[_0x593239([0x6a,0x74,0x69])])),await _0x36d9d3()?_0x4a2a2e()?_0x56fb43()?_0x593239([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x42a3af()?(_0x569cf1[_0x593239([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x593239([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42fd10=_0x17eec2(_0x593239([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x569cf1[_0x593239([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x593239([0x74,0x72,0x69,0x61,0x6c])&&(_0x42fd10=_0x17eec2(_0x593239([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4409cc()):_0x593239([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x593239([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x593239([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x593239([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56fb43(){const _0x4b8b10=[_0x593239([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x593239([0x74,0x72,0x69,0x61,0x6c])][_0x593239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x569cf1[_0x593239([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe5bb3/0x3e8:0xe10*_0x6101e;return _0x569cf1[_0x593239([0x65,0x78,0x70])]<_0x4b8b10;}function _0x4a2a2e(){const _0x31de12=_0x569cf1[_0x593239([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x31de12&&(!!_0x31de12[_0x593239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593239([0x2a]))||!!_0x31de12[_0x593239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593239([0x55,0x50,0x4c,0x43])));}function _0x42a3af(){const _0x4e416f=_0x52d6,_0x269a09=_0x569cf1[_0x593239([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x269a09||0x0==_0x269a09[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x532e22}=new URL(window[_0x593239([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4e416f(0x227)]);if(_0x269a09[_0x593239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x532e22))return!0x0;const _0x40692c=_0x532e22[_0x593239([0x73,0x70,0x6c,0x69,0x74])](_0x593239([0x2e]));return _0x269a09[_0x593239([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3003c9=>_0x3003c9[_0x593239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593239([0x2a])))[_0x593239([0x6d,0x61,0x70])](_0x467a0e=>_0x467a0e[_0x593239([0x73,0x70,0x6c,0x69,0x74])](_0x593239([0x2e])))[_0x593239([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d8f08=>_0x1d8f08[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40692c[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x593239([0x6d,0x61,0x70])](_0x1c8e01=>Array(_0x40692c[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1c8e01[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x593239([0x66,0x69,0x6c,0x6c])](_0x1c8e01[0x0]===_0x593239([0x2a])?_0x593239([0x2a]):'')[_0x593239([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1c8e01))[_0x593239([0x73,0x6f,0x6d,0x65])](_0x433e1b=>_0x40692c[_0x593239([0x65,0x76,0x65,0x72,0x79])]((_0x152d40,_0x5a56f3)=>_0x433e1b[_0x5a56f3]===_0x152d40||_0x433e1b[_0x5a56f3]===_0x593239([0x2a])));}function _0x4409cc(){return _0x42fd10&&_0x409c25?new window[(_0x593239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51bae6,_0x37e6ba)=>{_0x42fd10[_0x593239([0x74,0x68,0x65,0x6e])](_0x51bae6,_0x37e6ba),_0x409c25[_0x593239([0x74,0x68,0x65,0x6e])](_0x4da2c5=>{_0x4da2c5!=_0x593239([0x56,0x61,0x6c,0x69,0x64])&&_0x51bae6(_0x4da2c5);},_0x37e6ba);}):_0x42fd10||_0x409c25||_0x593239([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15ac9d(_0x2c98dd,_0x4dc593){return new window[(_0x593239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16792c=>{if(_0x2de74a())return _0x16792c(_0x593239([0x56,0x61,0x6c,0x69,0x64]));_0x174cf6(),_0x1d5a61[_0x593239([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x593239([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f8017=!0x1;const _0xe6c3c=_0x364c01();function _0x37fb89(_0x366e6c){return!!_0x366e6c&&(typeof _0x366e6c===_0x593239([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x366e6c===_0x593239([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x366e6c[_0x593239([0x74,0x68,0x65,0x6e])]===_0x593239([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x366e6c[_0x593239([0x63,0x61,0x74,0x63,0x68])]===_0x593239([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c0b50(_0x5a5d00){_0x563788(_0x5a5d00)[_0x593239([0x74,0x68,0x65,0x6e])](_0x510021=>{if(!_0x510021||_0x510021[_0x593239([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x593239([0x6f,0x6b]))return _0x593239([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x65f94d(_0x4ffc47(_0xe6c3c+_0x4dc593))!=_0x510021[_0x593239([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x593239([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x593239([0x56,0x61,0x6c,0x69,0x64]);})[_0x593239([0x74,0x68,0x65,0x6e])](_0x2e63db=>(_0x34ca9f(),_0x2e63db),()=>{const _0x4d7e7f=_0x415df3();return null==_0x4d7e7f?(_0x34ca9f(),_0x593239([0x56,0x61,0x6c,0x69,0x64])):_0x593239(_0xe5bb3-_0x4d7e7f>(0x27d454df^_0x407c53)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x593239([0x74,0x68,0x65,0x6e])](_0x16792c)[_0x593239([0x63,0x61,0x74,0x63,0x68])](()=>{_0x16792c(_0x593239([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x161ebf=0x3ee3e5f^_0x407c53;function _0x34ca9f(){const _0x1cd177=_0x593239([0x6c,0x6c,0x63,0x74,0x2d])+_0x65f94d(_0x4ffc47(_0x2c98dd)),_0xeb699d=_0x1e4172(_0x65f94d(window[_0x593239([0x4d,0x61,0x74,0x68])][_0x593239([0x63,0x65,0x69,0x6c])](_0xe5bb3/_0x161ebf)));window[_0x593239([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x593239([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cd177,_0xeb699d);}function _0x415df3(){const _0x4292c4=_0x593239([0x6c,0x6c,0x63,0x74,0x2d])+_0x65f94d(_0x4ffc47(_0x2c98dd)),_0x195fe4=window[_0x593239([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x593239([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4292c4);return _0x195fe4?window[_0x593239([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e4172(_0x195fe4),0x10)*_0x161ebf:null;}function _0x563788(_0x52a3b8){return new window[(_0x593239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b87b5,_0x24114f)=>{_0x52a3b8[_0x593239([0x74,0x68,0x65,0x6e])](_0x1b87b5,_0x24114f),window[_0x593239([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24114f,0x3d9041f^_0x407c53);});}}_0x1d5a61[_0x593239([0x6f,0x6e])](_0x593239([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xfa5074,_0x386a0a)=>{if(_0x386a0a[0x0]!=_0x2c98dd)return _0x16792c(_0x593239([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x386a0a[0x1]={..._0x386a0a[0x1],[_0x593239([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe6c3c};},{[_0x593239([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x593239([0x68,0x69,0x67,0x68])}),_0x1d5a61[_0x593239([0x6f,0x6e])](_0x593239([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x530e4a=>{_0x37fb89(_0x530e4a[_0x593239([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f8017=!0x0,_0x5c0b50(_0x530e4a[_0x593239([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x593239([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x593239([0x6c,0x6f,0x77])}),_0xaebd9e[_0x593239([0x74,0x68,0x65,0x6e])](()=>{_0x2f8017||_0x16792c(_0x593239([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2de74a(){return _0x1d5a61[_0x593239([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x593239([0x76,0x69,0x65,0x77])][_0x593239([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x593239([0x61,0x75,0x74,0x6f]);}function _0x174cf6(){_0x1d5a61[_0x593239([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x593239([0x76,0x69,0x65,0x77])][_0x593239([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x593239([0x61,0x75,0x74,0x6f]);}}function _0x17eec2(_0x169f1a){const _0x4b4c5e=[new window[(_0x593239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34308a=>setTimeout(_0x34308a,0x3d1ee13^_0x407c53)),_0xaebd9e[_0x593239([0x74,0x68,0x65,0x6e])](()=>new window[(_0x593239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xac9ff1=>{let _0x4b5320=0x0;_0x1d5a61[_0x593239([0x6d,0x6f,0x64,0x65,0x6c])][_0x593239([0x6f,0x6e])](_0x593239([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x516fe6,_0x4a00e3)=>{_0x4a00e3[0x0][_0x593239([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4b5320++,_0x4b5320==(0x3d8d127^_0x407c53)&&(_0xac9ff1(),_0x516fe6[_0x593239([0x6f,0x66,0x66])]());});}))];return window[_0x593239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x593239([0x72,0x61,0x63,0x65])](_0x4b4c5e)[_0x593239([0x74,0x68,0x65,0x6e])](()=>_0x169f1a);}async function _0x13a477(){await _0xaebd9e,_0x1d5a61[_0x593239([0x6d,0x6f,0x64,0x65,0x6c])][_0x593239([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2058df,_0x1d5a61[_0x593239([0x6d,0x6f,0x64,0x65,0x6c])][_0x593239([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2058df,_0x1d5a61[_0x593239([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x593239([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b62ba(_0x491287){const _0x437fb3=_0x3ed10d();_0x1d5a61[_0x437fb3]=_0x593239([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x491287,_0x491287!=_0x593239([0x56,0x61,0x6c,0x69,0x64])&&_0x13a477();}function _0x3ed10d(){const _0x330ed9=window[_0x593239([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x593239([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x593239([0x6e,0x6f,0x77])]())[_0x593239([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x593239([0x2e]),'');let _0x1b61c5=_0x593239([0x52]);for(let _0x7f1c1b=0x0;_0x7f1c1b<_0x330ed9[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7f1c1b+=0x2){let _0x5af568=window[_0x593239([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x330ed9[_0x593239([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7f1c1b,_0x7f1c1b+0x2));_0x5af568>=_0x18fbc8[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5af568-=_0x18fbc8[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b61c5+=_0x18fbc8[_0x5af568];}return _0x1b61c5;}function _0x28ea05(){const _0x3a4a92=_0x29d9ef[_0x593239([0x73,0x70,0x6c,0x69,0x74])](_0x593239([0x2e]));if(0x3!=_0x3a4a92[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3ac139(_0x3a4a92[0x1]);function _0x3ac139(_0x96fd84){const _0x400e4d=_0x427807(_0x96fd84);return _0x400e4d&&_0x1b8f25()?_0x400e4d:null;function _0x1b8f25(){const _0x40de29=_0x400e4d[_0x593239([0x6a,0x74,0x69])],_0x4e1d49=window[_0x593239([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40de29[_0x593239([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40de29[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36c4b2={..._0x400e4d,[_0x593239([0x6a,0x74,0x69])]:_0x40de29[_0x593239([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x40de29[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36c4b2[_0x593239([0x76,0x63])],_0x4ffc47(_0x36c4b2)==_0x4e1d49;}}}async function _0x36d9d3(){let _0x21a14d=!0x0;try{const _0x305bb9=_0x29d9ef[_0x593239([0x73,0x70,0x6c,0x69,0x74])](_0x593239([0x2e])),[_0x19ef50,_0x2b4ac8,_0x395602]=_0x305bb9;return _0xe37148(_0x19ef50),await _0x3a3ba2(_0x19ef50,_0x2b4ac8,_0x395602),_0x21a14d;}catch{return!0x1;}function _0xe37148(_0x2b638b){const _0x567885=_0x427807(_0x2b638b);_0x567885&&_0x567885[_0x593239([0x61,0x6c,0x67])]==_0x593239([0x45,0x53,0x32,0x35,0x36])||(_0x21a14d=!0x1);}async function _0x3a3ba2(_0x49686d,_0x462ede,_0x347d33){const _0x4a2211=window[_0x593239([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x593239([0x66,0x72,0x6f,0x6d])](_0x578cb2(_0x347d33),_0x411b12=>_0x411b12[_0x593239([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c6b6d=new window[(_0x593239([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x593239([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49686d+_0x593239([0x2e])+_0x462ede),_0x1b0771=window[_0x593239([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x593239([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b0771)return;const _0xd38514=await _0x1b0771[_0x593239([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x593239([0x6a,0x77,0x6b]),_0x3fe4c2,{[_0x593239([0x6e,0x61,0x6d,0x65])]:_0x593239([0x45,0x43,0x44,0x53,0x41]),[_0x593239([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x593239([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x593239([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b0771[_0x593239([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x593239([0x6e,0x61,0x6d,0x65])]:_0x593239([0x45,0x43,0x44,0x53,0x41]),[_0x593239([0x68,0x61,0x73,0x68])]:{[_0x593239([0x6e,0x61,0x6d,0x65])]:_0x593239([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd38514,_0x4a2211,_0x1c6b6d)||(_0x21a14d=!0x1);}}function _0x427807(_0x16fbc1){return _0x16fbc1[_0x593239([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x593239([0x65,0x79]))?JSON[_0x593239([0x70,0x61,0x72,0x73,0x65])](_0x578cb2(_0x16fbc1)):null;}function _0x578cb2(_0x3a580e){return window[_0x593239([0x61,0x74,0x6f,0x62])](_0x3a580e[_0x593239([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x593239([0x2b]))[_0x593239([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x593239([0x2f])));}function _0x4ffc47(_0x5ea172){let _0x4d41b7=0x1505;function _0x44eab5(_0x55cb5e){for(let _0x3c56a2=0x0;_0x3c56a2<_0x55cb5e[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c56a2++){const _0x23d096=_0x55cb5e[_0x593239([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c56a2);_0x4d41b7=(_0x4d41b7<<0x5)+_0x4d41b7+_0x23d096,_0x4d41b7&=_0x4d41b7;}}function _0x165fad(_0x247df7){Array[_0x593239([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x247df7)?_0x247df7[_0x593239([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x165fad):_0x247df7&&typeof _0x247df7==_0x593239([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x593239([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x247df7)[_0x593239([0x73,0x6f,0x72,0x74])]()[_0x593239([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16d09b,_0x234940])=>{_0x44eab5(_0x16d09b),_0x165fad(_0x234940);}):_0x44eab5(window[_0x593239([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x247df7));}return _0x165fad(_0x5ea172),_0x4d41b7>>>0x0;}function _0x65f94d(_0x1a21f6){return _0x1a21f6[_0x593239([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x593239([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x593239([0x30]));}function _0x1e4172(_0x3cc232){return _0x3cc232[_0x593239([0x73,0x70,0x6c,0x69,0x74])]('')[_0x593239([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x593239([0x6a,0x6f,0x69,0x6e])]('');}function _0x2058df(){}function _0x593239(_0xb9d8fd){const _0x474d87=_0x52d6;return _0xb9d8fd[_0x474d87(0x22f)](_0x53d623=>String[_0x474d87(0x21d)](_0x53d623))[_0x474d87(0x236)]('');}_0x4b62ba(await _0x775dc1());}(this);}[_0x52a420(0x216)](){const _0x1765b1=_0x52a420,_0x5d9cd3=this[_0x1765b1(0x212)][_0x1765b1(0x222)][_0x1765b1(0x1f7)];_0x5d9cd3[_0x1765b1(0x1e7)](_0x1765b1(0x224))&&_0x5d9cd3[_0x1765b1(0x234)](_0x1765b1(0x224),{'allowAttributes':[_0x1765b1(0x1fe)]}),_0x5d9cd3[_0x1765b1(0x1e7)](_0x1765b1(0x1fc))&&_0x5d9cd3[_0x1765b1(0x234)](_0x1765b1(0x1fc),{'allowAttributes':[_0x1765b1(0x1fe)]});}[_0x52a420(0x1fb)](){const _0x511f57=_0x52a420,_0x544efe=this[_0x511f57(0x212)];_0x544efe[_0x511f57(0x217)][_0x511f57(0x23b)](_0x511f57(0x1ff))[_0x511f57(0x204)]({'model':_0x511f57(0x1fe),'view':_0x511f57(0x21b)}),_0x544efe[_0x511f57(0x217)][_0x511f57(0x23b)](_0x511f57(0x215))[_0x511f57(0x20c)]({'model':{'key':_0x511f57(0x1fe),'value':_0x155ccb=>_0x155ccb[_0x511f57(0x232)](_0x511f57(0x21b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x569c0c=_0x544efe[_0x511f57(0x218)][_0x511f57(0x1f0)](_0x511f57(0x1f2));_0x569c0c&&this[_0x511f57(0x23a)](_0x569c0c,_0x511f57(0x21c),(_0x466748,[_0x484de2,_0x2b2b51])=>{const _0x3a01a5=_0x511f57;_0x484de2[_0x3a01a5(0x1fd)](_0x3a01a5(0x1fe),_0x2b2b51);});}[_0x52a420(0x21a)](){const _0x45e7c5=_0x52a420,_0x48b6b1=this[_0x45e7c5(0x212)][_0x45e7c5(0x214)][_0x45e7c5(0x1f0)](_0x45e7c5(0x221))||{},_0x270a84=this[_0x45e7c5(0x212)][_0x45e7c5(0x214)][_0x45e7c5(0x1f0)](_0x45e7c5(0x219))||'';this[_0x45e7c5(0x235)]=_0xea3555(_0x378b89[_0x45e7c5(0x233)],_0x45e7c5(0x206),{..._0x48b6b1,'pubkey':_0x270a84,'ctx-name':_0x45e7c5(0x239)+this[_0x45e7c5(0x209)],'sourceList':'','imgOnly':_0x45e7c5(0x226),'removeCopyright':_0x45e7c5(0x226),'localeName':this[_0x45e7c5(0x212)][_0x45e7c5(0x1f5)][_0x45e7c5(0x1ed)],'externalSourcesEmbedCss':_0x45e7c5(0x200)}),this[_0x45e7c5(0x235)][_0x45e7c5(0x207)]=_0x3e82b7=>{const _0x1e8e84=_0x45e7c5;if(_0x1e8e84(0x20f)==_0x3e82b7)return _0x1e8e84(0x225);},_0x378b89[_0x45e7c5(0x233)][_0x45e7c5(0x21f)][_0x45e7c5(0x201)](this[_0x45e7c5(0x235)]);}[_0x52a420(0x1f1)](){const _0x11e521=_0x52a420;this[_0x11e521(0x1f3)]=_0xea3555(_0x378b89[_0x11e521(0x233)],_0x11e521(0x213),{'ctx-name':_0x11e521(0x239)+this[_0x11e521(0x209)]}),_0x378b89[_0x11e521(0x233)][_0x11e521(0x21f)][_0x11e521(0x201)](this[_0x11e521(0x1f3)]);}[_0x52a420(0x22d)](){const _0x1ae22a=_0x52a420,_0x423404=this[_0x1ae22a(0x212)][_0x1ae22a(0x218)][_0x1ae22a(0x1f0)](_0x1ae22a(0x1f4));_0x423404&&this[_0x1ae22a(0x23a)](_0x423404,_0x1ae22a(0x22b),()=>{const _0x16b2f8=_0x1ae22a,_0x5d2d4a=this[_0x16b2f8(0x212)][_0x16b2f8(0x222)][_0x16b2f8(0x233)][_0x16b2f8(0x228)][_0x16b2f8(0x229)]();_0x5d2d4a&&_0x5d2d4a[_0x16b2f8(0x232)](_0x16b2f8(0x1fe))&&this[_0x16b2f8(0x212)][_0x16b2f8(0x231)][_0x16b2f8(0x1f6)][_0x16b2f8(0x1e9)](_0x16b2f8(0x20a),()=>{const _0x2bd406=_0x16b2f8;_0x42299f(this[_0x2bd406(0x212)],_0x5d2d4a);});});const _0x34f2bc=this[_0x1ae22a(0x212)][_0x1ae22a(0x218)][_0x1ae22a(0x1f0)](_0x1ae22a(0x1ea));_0x34f2bc&&this[_0x1ae22a(0x23a)](_0x34f2bc,_0x1ae22a(0x22b),()=>{const _0x459389=_0x1ae22a,_0x4c2c8a=this[_0x459389(0x212)][_0x459389(0x222)][_0x459389(0x233)][_0x459389(0x228)][_0x459389(0x229)]();_0x4c2c8a&&_0x4c2c8a[_0x459389(0x232)](_0x459389(0x1fe))&&this[_0x459389(0x212)][_0x459389(0x231)][_0x459389(0x1f6)][_0x459389(0x1e9)](_0x459389(0x20a),()=>{const _0x5ef0a1=_0x459389;_0x42299f(this[_0x5ef0a1(0x212)],_0x4c2c8a);});});}}