@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251109.0 → 0.0.0-nightly-20251111.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 _0x46ce10,Command as _0x32e736}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2fc165,IconGooglePhotos as _0x3afb4b,IconGoogleDrive as _0x234122,IconFacebook as _0x5cc3a4,IconDropbox as _0x1e37da,IconUploadcareLink as _0x387aa5,IconUploadcareImageUpload as _0x4d7efd,IconError as _0x43bfdc,IconUploadcareImageEdit as _0x15900a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1c65c0,MenuBarMenuListItemButtonView as _0x3e74cb,View as _0x10c913,FocusCycler as _0x40f842,Dialog as _0x4a89a4,DialogViewPosition as _0x434518,SpinnerView as _0x1ec084,IconView as _0x1662ed,Notification as _0x4077fe}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1c81bd,DomEmitterMixin as _0x288832,global as _0x58d1e9,getAncestors as _0x2e1f05,ObservableMixin as _0x5e87ec,uid as _0x17c88a,createElement as _0x145229}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x477394}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x52408f,info as _0x2bfef9}from'@uploadcare/upload-client';import*as _0x5dc78e from'@uploadcare/file-uploader';var i=function(_0x3d8e45){return _0x3d8e45['Local']='local',_0x3d8e45['URL']='url',_0x3d8e45['Dropbox']='dropbox',_0x3d8e45['GDrive']='gdrive',_0x3d8e45['Facebook']='facebook',_0x3d8e45['GPhotos']='gphotos',_0x3d8e45['OneDrive']='onedrive',_0x3d8e45;}({});function _(_0x31ee1d,_0x35322f,_0x20d1d4){const t=_0x31ee1d['t'],_0x165d19=_0x31ee1d['t'];switch(_0x35322f){case i['Local']:return{'text':_0x165d19('Insert'===_0x20d1d4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x165d19('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x20d1d4?_0x165d19('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x165d19('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x20d1d4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x20d1d4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x20d1d4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x20d1d4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x20d1d4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x35322f;}}class e extends _0x46ce10{['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 _0x2dbf92=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f603f;for(const _0x30ac70 in _0x2dbf92){const _0x438d53=_0x30ac70,_0x42e971=_0x2dbf92[_0x438d53];if('uploadcareLicenseKeyValid'==_0x42e971||'uploadcareLicenseKeyInvalid'==_0x42e971||'uploadcareLicenseKeyExpired'==_0x42e971||'uploadcareLicenseKeyDomainLimit'==_0x42e971||'uploadcareLicenseKeyNotAllowed'==_0x42e971||'uploadcareLicenseKeyEvaluationLimit'==_0x42e971||'uploadcareLicenseKeyTrialLimit'==_0x42e971||'uploadcareLicenseKeyUsageLimit'==_0x42e971){delete _0x2dbf92[_0x438d53],_0x1f603f=_0x42e971,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1f603f&&_0x2dbf92['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1f603f&&_0x2dbf92['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1f603f&&_0x2dbf92['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1f603f&&_0x2dbf92['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1f603f&&_0x2dbf92['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1f603f&&_0x2dbf92['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1f603f&&_0x2dbf92['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x259814}=this,_0x146da4=_0x259814['commands']['get']('uploadcare');if(!_0x146da4)return;const _0x3ef87d=this['_normalizeConfigSourceList'](_0x259814['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x357373,_0x1401e8)=>{const _0x1592cb=this['_getIntegrationKey'](_0x1401e8['type']);return _0x357373[_0x1592cb]||(_0x357373[_0x1592cb]=[]),_0x357373[_0x1592cb]['push'](_0x1401e8),_0x357373;},{});_0x259814['plugins']['has']('ImageInsertUI')&&_0x259814['commands']['get']('uploadcare')&&Object['entries'](_0x3ef87d)['forEach'](([_0x3c99dd,_0x515317])=>{_0x259814['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3c99dd,'observable':()=>_0x146da4,'buttonViewCreator':()=>this['_createToolbarButton'](_0x515317),'formViewCreator':()=>this['_createDropdownButtons'](_0x515317),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x515317),'override':'assetManager'!==_0x3c99dd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x483ac7){const {locale:_0x3e6634}=this['editor'];return _0x483ac7['map'](_0x71c47a=>{const _0x1ecd18=_(_0x3e6634,_0x71c47a,'Insert');switch(_0x71c47a){case i['Local']:return{'icon':_0x4d7efd,'type':i['Local'],..._0x1ecd18};case i['URL']:return{'icon':_0x387aa5,'type':i['URL'],..._0x1ecd18};case i['Dropbox']:return{'icon':_0x1e37da,'type':i['Dropbox'],..._0x1ecd18};case i['Facebook']:return{'icon':_0x5cc3a4,'type':i['Facebook'],..._0x1ecd18};case i['GDrive']:return{'icon':_0x234122,'type':i['GDrive'],..._0x1ecd18};case i['GPhotos']:return{'icon':_0x3afb4b,'type':i['GPhotos'],..._0x1ecd18};case i['OneDrive']:return{'icon':_0x2fc165,'type':i['OneDrive'],..._0x1ecd18};}});}['_getIntegrationKey'](_0x3fea0e){switch(_0x3fea0e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xfc58f7,_0x59c397){const _0x2f828f=this['editor'],_0x48f844=new _0xfc58f7(_0x2f828f['locale']),_0x4baabe=_0x2f828f['commands']['get']('uploadcare');return _0x48f844['bind']('isEnabled')['to'](_0x4baabe),_0x48f844['on']('execute',()=>{_0x4baabe['execute'](_0x59c397);}),_0x48f844;}['_createToolbarButton'](_0x2231ca){const {locale:_0x413893}=this['editor'],_0x577114=this['editor']['plugins']['get']('ImageInsertUI'),_0x324193=_0x2231ca[0x0],_0x271c17=this['_createButton'](_0x1c65c0,_0x324193['type']);return _0x271c17['icon']=_0x324193['icon'],_0x271c17['bind']('label')['to'](_0x577114,'isImageSelected',_0x4f0e20=>_(_0x413893,_0x324193['type'],_0x4f0e20?'Replace':'Insert')['text']),_0x271c17['tooltip']=!0x0,_0x271c17;}['_createDropdownButtons'](_0x1544e1){const {locale:_0x3e2fed}=this['editor'],_0x4007c1=this['editor']['plugins']['get']('ImageInsertUI');return _0x1544e1['map'](_0x3b8b77=>{const _0x3d7d7d=this['_createButton'](_0x1c65c0,_0x3b8b77['type']);return _0x3d7d7d['withText']=!0x0,_0x3d7d7d['icon']=_0x3b8b77['icon'],_0x3d7d7d['bind']('label')['to'](_0x4007c1,'isImageSelected',_0x1f4251=>_(_0x3e2fed,_0x3b8b77['type'],_0x1f4251?'Replace':'Insert')['text']),_0x3d7d7d;});}['_createMenuBarButtons'](_0x96a2e0){return _0x96a2e0['map'](_0x4382d4=>{const _0x4c40a2=this['_createButton'](_0x3e74cb,_0x4382d4['type']);return _0x4c40a2['icon']=_0x4382d4['icon'],_0x4c40a2['label']=_0x4382d4['shortText'],_0x4c40a2;});}}class F extends _0x10c913{['focusTracker'];['focusCycler'];constructor(_0x39e17a){super(_0x39e17a),this['focusTracker']=new _0x1c81bd(),this['focusCycler']=new _0x40f842({'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(_0x4016bc,_0x2355ad){super(_0x4016bc),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-'+_0x2355ad}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x518653,_0x2c5399){const _0x28921e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x585e7e=>_0x585e7e<=_0x2c5399)['map'](_0x463bf9=>_0x518653['replace'](/\/$/,'')+'/-/resize/'+_0x463bf9+'x/\x20'+_0x463bf9+'w');return{'imageFallbackUrl':_0x518653,'imageSources':[{'srcset':_0x28921e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2c5399+'px)\x20100vw,\x20'+_0x2c5399+'px','type':'image/webp'}]};}function S(_0x44be0f,_0x46ed13,_0x34e42c){const _0x29574f=_0x44be0f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x29574f?parseInt(_0x29574f[0x1],0xa):_0x46ed13,'height':_0x29574f?parseInt(_0x29574f[0x2],0xa):_0x34e42c};}function p(_0x52e95f,_0x40f3b3){const _0x224340=new(_0x288832())(),_0x4fcbcb=_0x52e95f['plugins']['get']('ImageUtils'),_0x2e8c7b=_0x52e95f['editing']['mapper']['toViewElement'](_0x40f3b3),_0x31574b=_0x4fcbcb['findViewImgElement'](_0x2e8c7b),_0x321d30=_0x52e95f['editing']['view']['domConverter']['viewToDom'](_0x31574b),_0x5e0a88=_0x40f3b3['getAttribute']('width'),_0x33be55=_0x40f3b3['getAttribute']('height'),_0x2ea14b='image-processing';_0x52e95f['editing']['view']['change'](_0x166a13=>{_0x166a13['addClass'](_0x2ea14b,_0x2e8c7b),_0x166a13['setStyle']('aspect-ratio',_0x5e0a88+'/'+_0x33be55,_0x31574b);}),_0x224340['listenTo'](_0x321d30,'load',()=>{_0x224340['stopListening'](_0x321d30,'load'),_0x52e95f['editing']['view']['change'](_0x459424=>{_0x459424['removeClass'](_0x2ea14b,_0x2e8c7b),_0x459424['removeStyle']('aspect-ratio',_0x31574b);});});}function G(_0x31905d){if(Array['isArray'](_0x31905d)){const _0x7fcc1f=_0x31905d['map'](G);return _0x54586a=>_0x7fcc1f['some'](_0x259350=>_0x259350(_0x54586a));}if('origin'==_0x31905d){const _0x36d038=_0x58d1e9['window']['location']['origin'];return _0x344f2d=>new URL(_0x344f2d,_0x58d1e9['document']['baseURI'])['origin']==_0x36d038;}return'function'==typeof _0x31905d?_0x31905d:_0x31905d instanceof RegExp?_0x4cfa9b=>!(!_0x4cfa9b['match'](_0x31905d)&&!_0x4cfa9b['replace'](/^https?:\/\//,'')['match'](_0x31905d)):()=>!0x1;}function A(_0x27c7fe,_0xce9200){return _0x2e1f05(_0x27c7fe['target'])['includes'](_0xce9200);}class n extends/* #__PURE__ -- @preserve */
24
- _0x5e87ec(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x104942,_0x217e82,_0x36f512){super(),this['_editor']=_0x104942,this['_editing']=_0x217e82,this['_dialog']=_0x104942['plugins']['get'](_0x4a89a4),this['_api']=_0x217e82['ctxElement']['getAPI'](),this['_type']=_0x36f512,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:_0x4c9210,model:_0x31d1d6}=this['_editor'],_0x1f9af5=_0x31d1d6['document']['selection']['getSelectedElement'](),_0x5d329f=_0x1f9af5&&(_0x1f9af5['is']('element','imageBlock')||_0x1f9af5['is']('element','imageInline'));this['_formView']=new x(_0x4c9210,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4d7efd,'title':_(_0x4c9210,this['_type'],_0x5d329f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x434518['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5cd60a=>!A(_0x5cd60a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x497c14}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x374fc1=>{const _0x358e60=_0x497c14['length'];for(const _0x59e000 of _0x497c14){const _0xda3f79=_0x59e000===_0x497c14[_0x358e60-0x1],{cdnUrl:_0x40bd69,fileInfo:_0x9c56b0}=_0x59e000;if(!_0x40bd69||!_0x9c56b0)continue;const {width:_0x4e1316,height:_0x414133}=_0x9c56b0['imageInfo'],_0x1edc8e=S(_0x40bd69,_0x4e1316,_0x414133),_0x494752=C(_0x40bd69,_0x1edc8e['width']),_0x2d8e08={'id':_0x9c56b0['uuid'],'type':'image','attributes':{'imageDimension':_0x1edc8e,..._0x494752}};this['_insertAsset'](_0x2d8e08,_0xda3f79,_0x374fc1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x117609=>{'idle'===_0x117609['detail']['status']&&!_0x117609['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x258176,_0x57269a,_0x208ccf){const _0x262074=this['_editor']['model']['document']['selection'],_0x4a43c3=_0x262074['getSelectedElement'](),_0x293003=!(!_0x4a43c3||!_0x4a43c3['is']('element','imageInline'));_0x208ccf['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x258176,_0x293003),_0x57269a||_0x208ccf['setSelection'](_0x262074['getLastPosition']());}['_insertImage'](_0x2c754a,_0x215ec4){const _0x53385f=this['_editor'],{imageDimension:_0x41caf8,imageFallbackUrl:_0x4d054f,imageSources:_0x529d9b}=_0x2c754a['attributes'];_0x53385f['execute']('insertImage',{'imageType':_0x215ec4?'imageInline':null,'source':{'uploadcareImageId':_0x2c754a['id'],'src':_0x4d054f,'sources':_0x529d9b,..._0x41caf8}});}}class w extends _0x32e736{['_editing'];['_controller']=null;static get['requires'](){return[_0x4a89a4,o];}constructor(_0x420753){super(_0x420753),this['_editing']=_0x420753['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x44adc3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x44adc3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1abc77,..._0x45c764}){return _0x52408f(_0x1abc77,_0x45c764);}static['getInfo'](_0x1fb5dd,_0x264474){return _0x2bfef9(_0x1fb5dd,_0x264474);}}class f extends _0x46ce10{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x477394,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3bf8d3=this['editor'];if(!!!_0x3bf8d3['config']['get']('uploadcare'))return;_0x3bf8d3['plugins']['get'](_0x477394)['createUploadAdapter']=_0x398090=>new k(_0x398090,_0x3bf8d3),_0x3bf8d3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5d7114,{imageElement:_0x35d04d,data:_0xeeaf61})=>{_0x3bf8d3['model']['change'](_0x4d359d=>{_0x4d359d['setAttribute']('uploadcareImageId',_0xeeaf61['uploadcareImageId'],_0x35d04d);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2fd43b,_0xc775c4){this['loader']=_0x2fd43b,this['editor']=_0xc775c4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x226216=await this['loader']['file'];return j['upload']({'file':_0x226216,'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':_0xf51d41=>{_0xf51d41&&_0xf51d41['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xf51d41['value']);}})['then'](async _0x2d5c52=>{const {imageFallbackUrl:_0x3ec2f1,imageSources:_0x4abefc}=C(_0x2d5c52['cdnUrl'],_0x2d5c52['imageInfo']['width']);return{'uploadcareImageId':_0x2d5c52['uuid'],'default':_0x3ec2f1,'sources':_0x4abefc};})['catch'](()=>{const _0x474c63=t('Cannot\x20upload\x20file:')+('\x20'+_0x226216['name']+'.');return Promise['reject'](_0x474c63);});}['abort'](){this['controller']['abort']();}}class o extends _0x46ce10{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4a89a4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x14d977){super(_0x14d977),this['ucContextId']=_0x17c88a();}['init'](){const _0x4c802e=this['editor'];_0x4c802e['commands']['add']('uploadcare',new w(_0x4c802e));}['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 _0x253176=_0x58d1e9['document']['querySelector']('input[uploadcare-file-input]');_0x253176&&_0x253176['remove']();}),async function(_0x100713){const _0x3d5147=_0x46096e([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x288d7e=0x535f8c3a,_0x5eea63=0x5358f4a2^_0x288d7e,_0x517ad5=window[_0x46096e([0x44,0x61,0x74,0x65])][_0x46096e([0x6e,0x6f,0x77])](),_0x355793=_0x100713[_0x46096e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3dfb37=new window[(_0x46096e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fa46f=>{_0x355793[_0x46096e([0x6f,0x6e,0x63,0x65])](_0x46096e([0x72,0x65,0x61,0x64,0x79]),_0x3fa46f);}),_0x3b1159={[_0x46096e([0x6b,0x74,0x79])]:_0x46096e([0x45,0x43]),[_0x46096e([0x75,0x73,0x65])]:_0x46096e([0x73,0x69,0x67]),[_0x46096e([0x63,0x72,0x76])]:_0x46096e([0x50,0x2d,0x32,0x35,0x36]),[_0x46096e([0x78])]:_0x46096e([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]),[_0x46096e([0x79])]:_0x46096e([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]),[_0x46096e([0x61,0x6c,0x67])]:_0x46096e([0x45,0x53,0x32,0x35,0x36])},_0x5979b6=_0x355793[_0x46096e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46096e([0x67,0x65,0x74])](_0x46096e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xd57400(){let _0x4b0640,_0xc40aa=null,_0x240c82=null;try{if(_0x5979b6==_0x46096e([0x47,0x50,0x4c]))return _0x46096e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b0640=_0x509874(),!_0x4b0640)return _0x46096e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b0640[_0x46096e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x240c82=_0x175e1d(_0x4b0640[_0x46096e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b0640[_0x46096e([0x6a,0x74,0x69])])),await _0x53518b()?_0x329c22()?_0x1a10fb()?_0x46096e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x49fa69()?(_0x4b0640[_0x46096e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46096e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc40aa=_0xae5528(_0x46096e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b0640[_0x46096e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46096e([0x74,0x72,0x69,0x61,0x6c])&&(_0xc40aa=_0xae5528(_0x46096e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf7992d()):_0x46096e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46096e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46096e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x46096e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a10fb(){const _0x186d60=[_0x46096e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46096e([0x74,0x72,0x69,0x61,0x6c])][_0x46096e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b0640[_0x46096e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x517ad5/0x3e8:0xe10*_0x5eea63;return _0x4b0640[_0x46096e([0x65,0x78,0x70])]<_0x186d60;}function _0x329c22(){const _0x5cf328=_0x4b0640[_0x46096e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5cf328&&(!!_0x5cf328[_0x46096e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46096e([0x2a]))||!!_0x5cf328[_0x46096e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46096e([0x55,0x50,0x4c,0x43])));}function _0x49fa69(){const _0x431ac9=_0x4b0640[_0x46096e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x431ac9||0x0==_0x431ac9[_0x46096e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a0ffe}=new URL(window[_0x46096e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x431ac9[_0x46096e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0ffe))return!0x0;const _0x58ec99=_0x5a0ffe[_0x46096e([0x73,0x70,0x6c,0x69,0x74])](_0x46096e([0x2e]));return _0x431ac9[_0x46096e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e56eb=>_0x1e56eb[_0x46096e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46096e([0x2a])))[_0x46096e([0x6d,0x61,0x70])](_0x6d2857=>_0x6d2857[_0x46096e([0x73,0x70,0x6c,0x69,0x74])](_0x46096e([0x2e])))[_0x46096e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3236b3=>_0x3236b3[_0x46096e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x58ec99[_0x46096e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46096e([0x6d,0x61,0x70])](_0x19e2c9=>Array(_0x58ec99[_0x46096e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x19e2c9[_0x46096e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46096e([0x66,0x69,0x6c,0x6c])](_0x19e2c9[0x0]===_0x46096e([0x2a])?_0x46096e([0x2a]):'')[_0x46096e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x19e2c9))[_0x46096e([0x73,0x6f,0x6d,0x65])](_0x5c7cb9=>_0x58ec99[_0x46096e([0x65,0x76,0x65,0x72,0x79])]((_0x3ddaa2,_0x29e0df)=>_0x5c7cb9[_0x29e0df]===_0x3ddaa2||_0x5c7cb9[_0x29e0df]===_0x46096e([0x2a])));}function _0xf7992d(){return _0xc40aa&&_0x240c82?new window[(_0x46096e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e757d,_0xe9ba37)=>{_0xc40aa[_0x46096e([0x74,0x68,0x65,0x6e])](_0x4e757d,_0xe9ba37),_0x240c82[_0x46096e([0x74,0x68,0x65,0x6e])](_0x2ea28b=>{_0x2ea28b!=_0x46096e([0x56,0x61,0x6c,0x69,0x64])&&_0x4e757d(_0x2ea28b);},_0xe9ba37);}):_0xc40aa||_0x240c82||_0x46096e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x175e1d(_0x1fd0af,_0x475556){return new window[(_0x46096e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x516504=>{if(_0x80b7f6())return _0x516504(_0x46096e([0x56,0x61,0x6c,0x69,0x64]));_0x207cce(),_0x355793[_0x46096e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46096e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2847b8=!0x1;const _0x22e315=_0x17c88a();function _0x6fd0f7(_0x11f0a5){return!!_0x11f0a5&&(typeof _0x11f0a5===_0x46096e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x11f0a5===_0x46096e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x11f0a5[_0x46096e([0x74,0x68,0x65,0x6e])]===_0x46096e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x11f0a5[_0x46096e([0x63,0x61,0x74,0x63,0x68])]===_0x46096e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3579aa(_0x2885ba){_0x275e37(_0x2885ba)[_0x46096e([0x74,0x68,0x65,0x6e])](_0x32440e=>{if(!_0x32440e||_0x32440e[_0x46096e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46096e([0x6f,0x6b]))return _0x46096e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x22a298(_0x49f3b4(_0x22e315+_0x475556))!=_0x32440e[_0x46096e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46096e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46096e([0x56,0x61,0x6c,0x69,0x64]);})[_0x46096e([0x74,0x68,0x65,0x6e])](_0x2daf03=>(_0x4ca52f(),_0x2daf03),()=>{const _0x580c92=_0x6714c9();return null==_0x580c92?(_0x4ca52f(),_0x46096e([0x56,0x61,0x6c,0x69,0x64])):_0x46096e(_0x517ad5-_0x580c92>(0x7753083a^_0x288d7e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46096e([0x74,0x68,0x65,0x6e])](_0x516504)[_0x46096e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x516504(_0x46096e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1cbcc5=0x536962ba^_0x288d7e;function _0x4ca52f(){const _0x42a268=_0x46096e([0x6c,0x6c,0x63,0x74,0x2d])+_0x22a298(_0x49f3b4(_0x1fd0af)),_0x6b177a=_0x3950e6(_0x22a298(window[_0x46096e([0x4d,0x61,0x74,0x68])][_0x46096e([0x63,0x65,0x69,0x6c])](_0x517ad5/_0x1cbcc5)));window[_0x46096e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46096e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42a268,_0x6b177a);}function _0x6714c9(){const _0x4dc610=_0x46096e([0x6c,0x6c,0x63,0x74,0x2d])+_0x22a298(_0x49f3b4(_0x1fd0af)),_0x1398b8=window[_0x46096e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46096e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dc610);return _0x1398b8?window[_0x46096e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3950e6(_0x1398b8),0x10)*_0x1cbcc5:null;}function _0x275e37(_0x26cb6b){return new window[(_0x46096e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52d95a,_0x5e9d94)=>{_0x26cb6b[_0x46096e([0x74,0x68,0x65,0x6e])](_0x52d95a,_0x5e9d94),window[_0x46096e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5e9d94,0x535e58fa^_0x288d7e);});}}_0x355793[_0x46096e([0x6f,0x6e])](_0x46096e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x112d4f,_0x2633ba)=>{if(_0x2633ba[0x0]!=_0x1fd0af)return _0x516504(_0x46096e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2633ba[0x1]={..._0x2633ba[0x1],[_0x46096e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x22e315};},{[_0x46096e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46096e([0x68,0x69,0x67,0x68])}),_0x355793[_0x46096e([0x6f,0x6e])](_0x46096e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x41fced=>{_0x6fd0f7(_0x41fced[_0x46096e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2847b8=!0x0,_0x3579aa(_0x41fced[_0x46096e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46096e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46096e([0x6c,0x6f,0x77])}),_0x3dfb37[_0x46096e([0x74,0x68,0x65,0x6e])](()=>{_0x2847b8||_0x516504(_0x46096e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x80b7f6(){return _0x355793[_0x46096e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46096e([0x76,0x69,0x65,0x77])][_0x46096e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46096e([0x61,0x75,0x74,0x6f]);}function _0x207cce(){_0x355793[_0x46096e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46096e([0x76,0x69,0x65,0x77])][_0x46096e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46096e([0x61,0x75,0x74,0x6f]);}}function _0xae5528(_0x1b4f03){const _0x292ffe=[new window[(_0x46096e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4911ce=>setTimeout(_0x4911ce,0x5356b2f6^_0x288d7e)),_0x3dfb37[_0x46096e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46096e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x249368=>{let _0x591ecd=0x0;_0x355793[_0x46096e([0x6d,0x6f,0x64,0x65,0x6c])][_0x46096e([0x6f,0x6e])](_0x46096e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4061b7,_0x2c5552)=>{_0x2c5552[0x0][_0x46096e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x591ecd++,_0x591ecd==(0x535f8dc2^_0x288d7e)&&(_0x249368(),_0x4061b7[_0x46096e([0x6f,0x66,0x66])]());});}))];return window[_0x46096e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46096e([0x72,0x61,0x63,0x65])](_0x292ffe)[_0x46096e([0x74,0x68,0x65,0x6e])](()=>_0x1b4f03);}async function _0x4dba91(){await _0x3dfb37,_0x355793[_0x46096e([0x6d,0x6f,0x64,0x65,0x6c])][_0x46096e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f93bd,_0x355793[_0x46096e([0x6d,0x6f,0x64,0x65,0x6c])][_0x46096e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f93bd,_0x355793[_0x46096e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46096e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c5424(_0x15b8ce){const _0x5a0075=_0xf09c4f();_0x355793[_0x5a0075]=_0x46096e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15b8ce,_0x15b8ce!=_0x46096e([0x56,0x61,0x6c,0x69,0x64])&&_0x4dba91();}function _0xf09c4f(){const _0x27ee68=window[_0x46096e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46096e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46096e([0x6e,0x6f,0x77])]())[_0x46096e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46096e([0x2e]),'');let _0x495c59=_0x46096e([0x68]);for(let _0x802526=0x0;_0x802526<_0x27ee68[_0x46096e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x802526+=0x2){let _0x26a8a3=window[_0x46096e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27ee68[_0x46096e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x802526,_0x802526+0x2));_0x26a8a3>=_0x3d5147[_0x46096e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26a8a3-=_0x3d5147[_0x46096e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x495c59+=_0x3d5147[_0x26a8a3];}return _0x495c59;}function _0x509874(){const _0x15576c=_0x5979b6[_0x46096e([0x73,0x70,0x6c,0x69,0x74])](_0x46096e([0x2e]));if(0x3!=_0x15576c[_0x46096e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2544d0(_0x15576c[0x1]);function _0x2544d0(_0x2bc001){const _0x16f1bf=_0xff97af(_0x2bc001);return _0x16f1bf&&_0x40698b()?_0x16f1bf:null;function _0x40698b(){const _0x1ffee9=_0x16f1bf[_0x46096e([0x6a,0x74,0x69])],_0x3be9d5=window[_0x46096e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ffee9[_0x46096e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ffee9[_0x46096e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x444f35={..._0x16f1bf,[_0x46096e([0x6a,0x74,0x69])]:_0x1ffee9[_0x46096e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ffee9[_0x46096e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x444f35[_0x46096e([0x76,0x63])],_0x49f3b4(_0x444f35)==_0x3be9d5;}}}async function _0x53518b(){let _0xb15839=!0x0;try{const _0x42b352=_0x5979b6[_0x46096e([0x73,0x70,0x6c,0x69,0x74])](_0x46096e([0x2e])),[_0x9f0111,_0x2dce69,_0x19ce5e]=_0x42b352;return _0x3dba76(_0x9f0111),await _0x3ffb02(_0x9f0111,_0x2dce69,_0x19ce5e),_0xb15839;}catch{return!0x1;}function _0x3dba76(_0x489d7f){const _0x23b5fa=_0xff97af(_0x489d7f);_0x23b5fa&&_0x23b5fa[_0x46096e([0x61,0x6c,0x67])]==_0x46096e([0x45,0x53,0x32,0x35,0x36])||(_0xb15839=!0x1);}async function _0x3ffb02(_0x10d440,_0x5c2d0c,_0x2ac116){const _0x33303d=window[_0x46096e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46096e([0x66,0x72,0x6f,0x6d])](_0x77bc50(_0x2ac116),_0x285fba=>_0x285fba[_0x46096e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xf46f14=new window[(_0x46096e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46096e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10d440+_0x46096e([0x2e])+_0x5c2d0c),_0x509bb8=window[_0x46096e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46096e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x509bb8)return;const _0x31b58d=await _0x509bb8[_0x46096e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46096e([0x6a,0x77,0x6b]),_0x3b1159,{[_0x46096e([0x6e,0x61,0x6d,0x65])]:_0x46096e([0x45,0x43,0x44,0x53,0x41]),[_0x46096e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46096e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46096e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x509bb8[_0x46096e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46096e([0x6e,0x61,0x6d,0x65])]:_0x46096e([0x45,0x43,0x44,0x53,0x41]),[_0x46096e([0x68,0x61,0x73,0x68])]:{[_0x46096e([0x6e,0x61,0x6d,0x65])]:_0x46096e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31b58d,_0x33303d,_0xf46f14)||(_0xb15839=!0x1);}}function _0xff97af(_0x412ef2){return _0x412ef2[_0x46096e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46096e([0x65,0x79]))?JSON[_0x46096e([0x70,0x61,0x72,0x73,0x65])](_0x77bc50(_0x412ef2)):null;}function _0x77bc50(_0xd89e7a){return window[_0x46096e([0x61,0x74,0x6f,0x62])](_0xd89e7a[_0x46096e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46096e([0x2b]))[_0x46096e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46096e([0x2f])));}function _0x49f3b4(_0x2f1e43){let _0x339ca7=0x1505;function _0x339cbe(_0x1a3232){for(let _0x2e3027=0x0;_0x2e3027<_0x1a3232[_0x46096e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e3027++){const _0x1d164e=_0x1a3232[_0x46096e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e3027);_0x339ca7=(_0x339ca7<<0x5)+_0x339ca7+_0x1d164e,_0x339ca7&=_0x339ca7;}}function _0x41110d(_0x4f3bfb){Array[_0x46096e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f3bfb)?_0x4f3bfb[_0x46096e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41110d):_0x4f3bfb&&typeof _0x4f3bfb==_0x46096e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46096e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f3bfb)[_0x46096e([0x73,0x6f,0x72,0x74])]()[_0x46096e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x26d711,_0x5f1320])=>{_0x339cbe(_0x26d711),_0x41110d(_0x5f1320);}):_0x339cbe(window[_0x46096e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f3bfb));}return _0x41110d(_0x2f1e43),_0x339ca7>>>0x0;}function _0x22a298(_0x2a7398){return _0x2a7398[_0x46096e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46096e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46096e([0x30]));}function _0x3950e6(_0x55da42){return _0x55da42[_0x46096e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46096e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46096e([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f93bd(){}function _0x46096e(_0x4d2677){return _0x4d2677['map'](_0x2cbc65=>String['fromCharCode'](_0x2cbc65))['join']('');}_0x2c5424(await _0xd57400());}(this);}['_initSchema'](){const _0x115ac7=this['editor']['model']['schema'];_0x115ac7['isRegistered']('imageBlock')&&_0x115ac7['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x115ac7['isRegistered']('imageInline')&&_0x115ac7['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x36e0ca=this['editor'];_0x36e0ca['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x36e0ca['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3ba10e=>_0x3ba10e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x242e07=_0x36e0ca['commands']['get']('replaceImageSource');_0x242e07&&this['listenTo'](_0x242e07,'cleanupImage',(_0x3638c2,[_0x3eec0c,_0x539516])=>{_0x3eec0c['removeAttribute']('uploadcareImageId',_0x539516);});}['_initConfig'](){const _0xd5a2f8=this['editor']['config']['get']('uploadcare.uploader')||{},_0x30da0f=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x145229(_0x58d1e9['document'],'uc-config',{..._0xd5a2f8,'pubkey':_0x30da0f,'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']=_0x14cfa8=>{if('closeMax'==_0x14cfa8)return'#uc-icon-arrow-down';},_0x58d1e9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x145229(_0x58d1e9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x58d1e9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4bffbd=this['editor']['commands']['get']('insertImage');_0x4bffbd&&this['listenTo'](_0x4bffbd,'execute',()=>{const _0x3fdf1a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3fdf1a&&_0x3fdf1a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3fdf1a);});});const _0xf70d8b=this['editor']['commands']['get']('uploadcareImageReplace');_0xf70d8b&&this['listenTo'](_0xf70d8b,'execute',()=>{const _0x5b4a0e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5b4a0e&&_0x5b4a0e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5b4a0e);});});}}class tt extends _0x46ce10{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x460a10){super(_0x460a10),_0x460a10['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5dc78e['defineComponents'](_0x5dc78e),this['_defineLocale']();}['_defineLocale'](){const _0x21c5c4=this['editor']['config']['get']('uploadcare.locale'),_0x55ed9a=this['editor']['locale']['contentLanguage'];_0x21c5c4&&_0x5dc78e['defineLocale'](_0x55ed9a,_0x21c5c4);}}class ii extends _0x10c913{constructor(_0x20e8d2){super(_0x20e8d2);const t=_0x20e8d2['t'],_0x2936cb=this['bindTemplate'],_0x4544e7=new _0x1ec084();_0x4544e7['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':[_0x4544e7,{'text':_0x2936cb['to']('imageUploadProgress',_0x21c046=>t('Loading\x20image...')+'\x20('+(_0x21c046||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 _0x10c913{constructor(_0xf52b2a){super(_0xf52b2a);const t=_0xf52b2a['t'];this['set']('errorType',null);const _0x2546fc=new _0x1c65c0(_0xf52b2a);_0x2546fc['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2546fc['withText']=!0x0,_0x2546fc['class']='ck-button-action',_0x2546fc['on']('execute',()=>{this['fire']('retry');}),_0x2546fc['bind']('isVisible')['to'](this,'errorType',_0x4baa5d=>'NotFound'!==_0x4baa5d);const _0x569a4f=new _0x1662ed();_0x569a4f['content']=_0x43bfdc,_0x569a4f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1698b8=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':[_0x569a4f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1698b8['to']('errorType',_0x2606ef=>t('NotFound'!==_0x2606ef?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2546fc]},{'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 _0x10c913{constructor(_0x6cab5f,_0x3f68ed){super(_0x6cab5f);const _0x579d16=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3f68ed,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x579d16['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4e1bdc,_0x358c0a,_0x81dad2){super(_0x4e1bdc),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4e1bdc),this['_errorView']=new ti(_0x4e1bdc),this['_editingView']=new ei(_0x4e1bdc,_0x81dad2),this['_focusableView']=new _0x10c913(_0x4e1bdc),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x358c0a),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'],_0x5ce1e6=>{this['_addUploadcareImageEditorListeners'](_0x5ce1e6);});}),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'](_0x3ec73c,_0xc546b2){const _0x174cc0='uc-cloud-image-editor',_0x281ee=_0x3ec73c['querySelector'](_0x174cc0);if(_0x281ee)return _0xc546b2(_0x281ee);const _0x679e5f=new MutationObserver(_0x36e70c=>{const _0x220100=_0x36e70c['filter'](_0x56fb53=>_0x56fb53['target']===_0x3ec73c&&_0x56fb53['addedNodes']['length']>0x0&&_0x56fb53['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x174cc0);_0x220100['length']&&(_0x679e5f['disconnect'](),_0xc546b2(_0x220100[0x0]['addedNodes'][0x0]));});_0x679e5f['observe'](_0x3ec73c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x49497b){_0x49497b['addEventListener']('apply',_0x475c24=>{this['fire']('apply',{'imageSrc':_0x475c24['detail']['cdnUrl']});}),_0x49497b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x5e87ec(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x558f83,_0x4fbde9,_0x398d62){super(),this['_editor']=_0x558f83,this['_dialog']=_0x4fbde9,this['_imageElement']=_0x398d62,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 _0x1d38cd=this['_imageElement'],_0x1dc7df=_0x1d38cd['getAttribute']('uploadcareImageId'),_0x40f007=_0x1d38cd['getAttribute']('src');if(_0x1dc7df)await this['_loadImageInfo'](_0x1dc7df,_0x40f007);else{if(this['_imageCache']['has'](_0x40f007)){const _0x5d376e=this['_imageCache']['get'](_0x40f007);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d376e['url'],this['imageDimension']=_0x5d376e['dimension'],this['imageId']=_0x5d376e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x35383e}=this['_editor'],t=_0x35383e['t'],_0x5de6b7=new X(_0x35383e,this['imageStatus'],this['_attributes']);_0x5de6b7['bind']('status')['to'](this,'imageStatus'),_0x5de6b7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5de6b7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5de6b7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5de6b7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x15900a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5de6b7,'position':_0x434518['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5de6b7['focus']();},'onHide':()=>{_0x5de6b7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x541f49=>!A(_0x541f49,_0x5de6b7['element'])}});}['_loadImageInfo'](_0x422315,_0x5cf488){return j['getInfo'](_0x422315,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x42cfee=>{const {width:_0x407d10,height:_0x35e43d}=_0x42cfee['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5cf488,this['imageDimension']={'width':_0x407d10,'height':_0x35e43d},this['imageId']=_0x422315;})['catch'](_0x4ea4fb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4ea4fb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x479820,_0x3849b9){return this['_getImageAsFile'](_0x479820)['then'](_0x47cbda=>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':_0x3849b9['signal'],'file':_0x47cbda,'onProgress':_0x281c7c=>{_0x281c7c&&_0x281c7c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x281c7c['value']));}}))['then'](_0x4cfabb=>{const {width:_0x34b48c,height:_0x3c9945}=_0x4cfabb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4cfabb['cdnUrl'],this['imageDimension']={'width':_0x34b48c,'height':_0x3c9945},this['imageId']=_0x4cfabb['uuid'],this['imageUploadProgress']=null;const _0x1e7e90=_0x479820['getAttribute']('src');this['_imageCache']['set'](_0x1e7e90,{'id':_0x4cfabb['uuid'],'url':_0x4cfabb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x45808a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x45808a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4ba057,_0x506a41){_0x4ba057['on']('apply',(_0x5aad81,_0x5dc333)=>{this['_replaceImage'](_0x506a41,_0x5dc333['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4ba057['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4ba057['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1b75e5,_0x2ff99a,_0x242cda){const _0x60adaf=this['_editor'],{width:_0x5e07b0,height:_0x3a0199}=S(_0x2ff99a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4a6a9e,imageSources:_0x5f4f28}=C(_0x2ff99a,_0x5e07b0);_0x60adaf['model']['change'](_0x338959=>{if('$graveyard'===_0x1b75e5['root']['rootName']){_0x60adaf['execute']('insertImage',{'imageType':_0x1b75e5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1b75e5['getAttributes']()),'uploadcareImageId':_0x242cda,'src':_0x4a6a9e,'sources':_0x5f4f28,'width':_0x5e07b0,'height':_0x3a0199}});const _0x55971e=_0x1b75e5['getChildren']();_0x1b75e5=_0x60adaf['model']['document']['selection']['getSelectedElement']();for(const _0x11639a of _0x55971e)_0x338959['append'](_0x338959['cloneElement'](_0x11639a),_0x1b75e5);}else _0x338959['setSelection'](_0x1b75e5,'on'),_0x60adaf['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1b75e5['getAttributes']()),'uploadcareImageId':_0x242cda,'src':_0x4a6a9e,'sources':_0x5f4f28,'width':_0x5e07b0,'height':_0x3a0199},_0x1b75e5);_0x338959['setSelection'](_0x1b75e5,'on');});}async['_getImageAsFile'](_0x20e495){const _0x363c55=_0x58d1e9['window'],_0x593595=_0x58d1e9['document']['location']['href'],_0x3af2f6=new _0x363c55['URL'](_0x20e495['getAttribute']('src'),_0x593595);if('data:'===_0x3af2f6['protocol']){const _0x40b696=_0x3af2f6['href']['split'](','),_0x9c5ae2=_0x40b696[0x0]['match'](/:(.*?);/)[0x1],_0x28a682=_0x9c5ae2['split']('/')[0x1],_0x14b309=_0x363c55['atob'](_0x40b696[_0x40b696['length']-0x1]);let _0x44b537=_0x14b309['length'];const _0x2f3890=new _0x363c55['Uint8Array'](_0x44b537);for(;_0x44b537--;)_0x2f3890[_0x44b537]=_0x14b309['charCodeAt'](_0x44b537);return new _0x363c55['File']([_0x2f3890],'image.'+_0x28a682,{'type':_0x9c5ae2});}const _0x8a1f98=_0x3af2f6['href']['split']('/'),_0x40948d=_0x8a1f98[_0x8a1f98['length']-0x1],_0x23f8c1=_0x40948d['split']('.')[0x1];return _0x363c55['fetch'](_0x3af2f6['href'])['then'](_0x332f5b=>_0x332f5b['clone']()['blob']())['then'](_0x14a8bb=>new _0x363c55['File']([_0x14a8bb],_0x40948d,{'type':'image/'+_0x23f8c1}));}}class O extends _0x32e736{['imageEditController'];static get['requires'](){return[_0x4a89a4];}['_isEditable'];constructor(_0x234256){super(_0x234256),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4565b6){const _0x5e475d=G(_0x4565b6);return _0x44dede=>!(!_0x44dede||!_0x44dede['is']('element','imageBlock')&&!_0x44dede['is']('element','imageInline'))&&(!!_0x44dede['hasAttribute']('uploadcareImageId')||!!_0x44dede['hasAttribute']('src')&&_0x5e475d(_0x44dede['getAttribute']('src')));}(_0x234256['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2358fe=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2358fe);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x146f24=this['editor']['model']['document']['selection']['getSelectedElement']();_0x146f24&&(_0x146f24['is']('element','imageBlock')||_0x146f24['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4a89a4),_0x146f24),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x32e736{['refresh'](){const _0x19b849=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x19b849&&(_0x19b849['is']('element','imageBlock')||_0x19b849['is']('element','imageInline')));}['execute'](_0x358f2c){const _0x37fed7=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x320c5f=>{_0x320c5f['setAttributes'](_0x358f2c,_0x37fed7),_0x320c5f['removeAttribute']('srcset',_0x37fed7),_0x320c5f['removeAttribute']('sizes',_0x37fed7);});}}class m extends _0x46ce10{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4077fe,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x45fad1}=this;_0x45fad1['commands']['add']('uploadcareImageEdit',new O(_0x45fad1)),_0x45fad1['commands']['add']('uploadcareImageReplace',new R(_0x45fad1));}}class g extends _0x46ce10{['_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 _0x59ad5d=this['editor'];_0x59ad5d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4ee743=>{const _0xbbdae4=_0x59ad5d['commands']['get']('uploadcareImageEdit'),_0x326d88=new _0x1c65c0(_0x4ee743),t=_0x4ee743['t'];return _0x326d88['set']({'icon':_0x15900a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x326d88['bind']('isEnabled')['to'](_0xbbdae4),_0x326d88['bind']('isOn')['to'](_0xbbdae4,'isActive'),this['listenTo'](_0x326d88,'execute',()=>{_0x59ad5d['execute']('uploadcareImageEdit'),_0x59ad5d['editing']['view']['focus']();}),_0x326d88;}),this['_initConfig']();}['_initConfig'](){const _0xe8b6c1=_0x145229(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xe8b6c1),this['listenTo'](this['editor'],'destroy',()=>{_0xe8b6c1['remove']();});}}class et extends _0x46ce10{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 _0x39edd3,Command as _0x1ff856}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x57fa15,IconGooglePhotos as _0x3c2ed3,IconGoogleDrive as _0x5ddddb,IconFacebook as _0x22daf0,IconDropbox as _0x50a0d1,IconUploadcareLink as _0x41282f,IconUploadcareImageUpload as _0x2c4389,IconError as _0x19b0df,IconUploadcareImageEdit as _0x4b90e5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x28352d,MenuBarMenuListItemButtonView as _0x5a0d31,View as _0x1a280a,FocusCycler as _0x5a2ddc,Dialog as _0x1c41ef,DialogViewPosition as _0x480a97,SpinnerView as _0xa1ec06,IconView as _0x32ce60,Notification as _0x1cc6db}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5b8152,DomEmitterMixin as _0x4794d9,global as _0x39a869,getAncestors as _0x181599,ObservableMixin as _0x2c99c8,uid as _0x1ead5e,createElement as _0x356a25}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5b0ab0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5b533c,info as _0x58ba1b}from'@uploadcare/upload-client';import*as _0xc1bb04 from'@uploadcare/file-uploader';var i=function(_0x17e39b){return _0x17e39b['Local']='local',_0x17e39b['URL']='url',_0x17e39b['Dropbox']='dropbox',_0x17e39b['GDrive']='gdrive',_0x17e39b['Facebook']='facebook',_0x17e39b['GPhotos']='gphotos',_0x17e39b['OneDrive']='onedrive',_0x17e39b;}({});function _(_0x57f6d2,_0x1b01a6,_0x807f6e){const t=_0x57f6d2['t'],_0x1d679a=_0x57f6d2['t'];switch(_0x1b01a6){case i['Local']:return{'text':_0x1d679a('Insert'===_0x807f6e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1d679a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x807f6e?_0x1d679a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1d679a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x807f6e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x807f6e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x807f6e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x807f6e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x807f6e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1b01a6;}}class e extends _0x39edd3{['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 _0xe214db=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a9a6c;for(const _0x2d0aec in _0xe214db){const _0x3f6e42=_0x2d0aec,_0x41164f=_0xe214db[_0x3f6e42];if('uploadcareLicenseKeyValid'==_0x41164f||'uploadcareLicenseKeyInvalid'==_0x41164f||'uploadcareLicenseKeyExpired'==_0x41164f||'uploadcareLicenseKeyDomainLimit'==_0x41164f||'uploadcareLicenseKeyNotAllowed'==_0x41164f||'uploadcareLicenseKeyEvaluationLimit'==_0x41164f||'uploadcareLicenseKeyTrialLimit'==_0x41164f||'uploadcareLicenseKeyUsageLimit'==_0x41164f){delete _0xe214db[_0x3f6e42],_0x4a9a6c=_0x41164f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4a9a6c&&_0xe214db['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4a9a6c&&_0xe214db['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4a9a6c&&_0xe214db['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4a9a6c&&_0xe214db['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4a9a6c&&_0xe214db['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4a9a6c&&_0xe214db['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4a9a6c&&_0xe214db['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x36d479}=this,_0x111c56=_0x36d479['commands']['get']('uploadcare');if(!_0x111c56)return;const _0x1287d0=this['_normalizeConfigSourceList'](_0x36d479['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x178096,_0x534210)=>{const _0x4eb6e2=this['_getIntegrationKey'](_0x534210['type']);return _0x178096[_0x4eb6e2]||(_0x178096[_0x4eb6e2]=[]),_0x178096[_0x4eb6e2]['push'](_0x534210),_0x178096;},{});_0x36d479['plugins']['has']('ImageInsertUI')&&_0x36d479['commands']['get']('uploadcare')&&Object['entries'](_0x1287d0)['forEach'](([_0x4b5aa4,_0x5a77e8])=>{_0x36d479['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4b5aa4,'observable':()=>_0x111c56,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5a77e8),'formViewCreator':()=>this['_createDropdownButtons'](_0x5a77e8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5a77e8),'override':'assetManager'!==_0x4b5aa4});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xf7a283){const {locale:_0x118e58}=this['editor'];return _0xf7a283['map'](_0x54ba53=>{const _0x3e66fa=_(_0x118e58,_0x54ba53,'Insert');switch(_0x54ba53){case i['Local']:return{'icon':_0x2c4389,'type':i['Local'],..._0x3e66fa};case i['URL']:return{'icon':_0x41282f,'type':i['URL'],..._0x3e66fa};case i['Dropbox']:return{'icon':_0x50a0d1,'type':i['Dropbox'],..._0x3e66fa};case i['Facebook']:return{'icon':_0x22daf0,'type':i['Facebook'],..._0x3e66fa};case i['GDrive']:return{'icon':_0x5ddddb,'type':i['GDrive'],..._0x3e66fa};case i['GPhotos']:return{'icon':_0x3c2ed3,'type':i['GPhotos'],..._0x3e66fa};case i['OneDrive']:return{'icon':_0x57fa15,'type':i['OneDrive'],..._0x3e66fa};}});}['_getIntegrationKey'](_0x2c06ab){switch(_0x2c06ab){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x50c6db,_0xa16a50){const _0x1b2356=this['editor'],_0x33e658=new _0x50c6db(_0x1b2356['locale']),_0x507a5f=_0x1b2356['commands']['get']('uploadcare');return _0x33e658['bind']('isEnabled')['to'](_0x507a5f),_0x33e658['on']('execute',()=>{_0x507a5f['execute'](_0xa16a50);}),_0x33e658;}['_createToolbarButton'](_0x398bbb){const {locale:_0x29ce0a}=this['editor'],_0x1f3242=this['editor']['plugins']['get']('ImageInsertUI'),_0xeeda3b=_0x398bbb[0x0],_0x3bd5a2=this['_createButton'](_0x28352d,_0xeeda3b['type']);return _0x3bd5a2['icon']=_0xeeda3b['icon'],_0x3bd5a2['bind']('label')['to'](_0x1f3242,'isImageSelected',_0x28c5ae=>_(_0x29ce0a,_0xeeda3b['type'],_0x28c5ae?'Replace':'Insert')['text']),_0x3bd5a2['tooltip']=!0x0,_0x3bd5a2;}['_createDropdownButtons'](_0x36a652){const {locale:_0x43f8de}=this['editor'],_0x50e492=this['editor']['plugins']['get']('ImageInsertUI');return _0x36a652['map'](_0x1e691e=>{const _0x2ec2f1=this['_createButton'](_0x28352d,_0x1e691e['type']);return _0x2ec2f1['withText']=!0x0,_0x2ec2f1['icon']=_0x1e691e['icon'],_0x2ec2f1['bind']('label')['to'](_0x50e492,'isImageSelected',_0x4b8ee8=>_(_0x43f8de,_0x1e691e['type'],_0x4b8ee8?'Replace':'Insert')['text']),_0x2ec2f1;});}['_createMenuBarButtons'](_0x5ae2c2){return _0x5ae2c2['map'](_0x142149=>{const _0x36a6bf=this['_createButton'](_0x5a0d31,_0x142149['type']);return _0x36a6bf['icon']=_0x142149['icon'],_0x36a6bf['label']=_0x142149['shortText'],_0x36a6bf;});}}class F extends _0x1a280a{['focusTracker'];['focusCycler'];constructor(_0x540852){super(_0x540852),this['focusTracker']=new _0x5b8152(),this['focusCycler']=new _0x5a2ddc({'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(_0x40af7c,_0x5dadb3){super(_0x40af7c),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-'+_0x5dadb3}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4e67de,_0xf7e3d6){const _0xbb3155=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x72f5b=>_0x72f5b<=_0xf7e3d6)['map'](_0x3cd06a=>_0x4e67de['replace'](/\/$/,'')+'/-/resize/'+_0x3cd06a+'x/\x20'+_0x3cd06a+'w');return{'imageFallbackUrl':_0x4e67de,'imageSources':[{'srcset':_0xbb3155['join'](',\x20'),'sizes':'(max-width:\x20'+_0xf7e3d6+'px)\x20100vw,\x20'+_0xf7e3d6+'px','type':'image/webp'}]};}function S(_0x556685,_0x751f4a,_0x4d0e6f){const _0x5d7e8f=_0x556685['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5d7e8f?parseInt(_0x5d7e8f[0x1],0xa):_0x751f4a,'height':_0x5d7e8f?parseInt(_0x5d7e8f[0x2],0xa):_0x4d0e6f};}function p(_0x1a70c9,_0x31f8e5){const _0x2e7fec=new(_0x4794d9())(),_0x2eb924=_0x1a70c9['plugins']['get']('ImageUtils'),_0x2ab93f=_0x1a70c9['editing']['mapper']['toViewElement'](_0x31f8e5),_0x9cb93f=_0x2eb924['findViewImgElement'](_0x2ab93f),_0x3b40da=_0x1a70c9['editing']['view']['domConverter']['viewToDom'](_0x9cb93f),_0x43057b=_0x31f8e5['getAttribute']('width'),_0x44927c=_0x31f8e5['getAttribute']('height'),_0x27e17a='image-processing';_0x1a70c9['editing']['view']['change'](_0x479a24=>{_0x479a24['addClass'](_0x27e17a,_0x2ab93f),_0x479a24['setStyle']('aspect-ratio',_0x43057b+'/'+_0x44927c,_0x9cb93f);}),_0x2e7fec['listenTo'](_0x3b40da,'load',()=>{_0x2e7fec['stopListening'](_0x3b40da,'load'),_0x1a70c9['editing']['view']['change'](_0x150980=>{_0x150980['removeClass'](_0x27e17a,_0x2ab93f),_0x150980['removeStyle']('aspect-ratio',_0x9cb93f);});});}function G(_0x4ed44c){if(Array['isArray'](_0x4ed44c)){const _0x10a703=_0x4ed44c['map'](G);return _0x588702=>_0x10a703['some'](_0x37f98b=>_0x37f98b(_0x588702));}if('origin'==_0x4ed44c){const _0x10f637=_0x39a869['window']['location']['origin'];return _0x161b10=>new URL(_0x161b10,_0x39a869['document']['baseURI'])['origin']==_0x10f637;}return'function'==typeof _0x4ed44c?_0x4ed44c:_0x4ed44c instanceof RegExp?_0x4fbf1c=>!(!_0x4fbf1c['match'](_0x4ed44c)&&!_0x4fbf1c['replace'](/^https?:\/\//,'')['match'](_0x4ed44c)):()=>!0x1;}function A(_0x4b849d,_0x5acc58){return _0x181599(_0x4b849d['target'])['includes'](_0x5acc58);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x2c99c8(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2362ff,_0x1f00ef,_0x3c9221){super(),this['_editor']=_0x2362ff,this['_editing']=_0x1f00ef,this['_dialog']=_0x2362ff['plugins']['get'](_0x1c41ef),this['_api']=_0x1f00ef['ctxElement']['getAPI'](),this['_type']=_0x3c9221,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:_0x56d047,model:_0x3b92a0}=this['_editor'],_0x22df9b=_0x3b92a0['document']['selection']['getSelectedElement'](),_0x1615d5=_0x22df9b&&(_0x22df9b['is']('element','imageBlock')||_0x22df9b['is']('element','imageInline'));this['_formView']=new x(_0x56d047,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2c4389,'title':_(_0x56d047,this['_type'],_0x1615d5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x480a97['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3194d2=>!A(_0x3194d2,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x63cb42}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3e6690=>{const _0x3ef39b=_0x63cb42['length'];for(const _0x452b80 of _0x63cb42){const _0x2a6464=_0x452b80===_0x63cb42[_0x3ef39b-0x1],{cdnUrl:_0x59f2ce,fileInfo:_0x82404b}=_0x452b80;if(!_0x59f2ce||!_0x82404b)continue;const {width:_0x139c07,height:_0x1ffe0d}=_0x82404b['imageInfo'],_0x20d9c3=S(_0x59f2ce,_0x139c07,_0x1ffe0d),_0x51f6e4=C(_0x59f2ce,_0x20d9c3['width']),_0x53ccb4={'id':_0x82404b['uuid'],'type':'image','attributes':{'imageDimension':_0x20d9c3,..._0x51f6e4}};this['_insertAsset'](_0x53ccb4,_0x2a6464,_0x3e6690);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x197a49=>{'idle'===_0x197a49['detail']['status']&&!_0x197a49['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xac0532,_0x576275,_0x2b8523){const _0x4234db=this['_editor']['model']['document']['selection'],_0x3ce429=_0x4234db['getSelectedElement'](),_0x4cc141=!(!_0x3ce429||!_0x3ce429['is']('element','imageInline'));_0x2b8523['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xac0532,_0x4cc141),_0x576275||_0x2b8523['setSelection'](_0x4234db['getLastPosition']());}['_insertImage'](_0x1b766b,_0x4c7a97){const _0x895e3=this['_editor'],{imageDimension:_0x33070b,imageFallbackUrl:_0x5336c2,imageSources:_0x37937}=_0x1b766b['attributes'];_0x895e3['execute']('insertImage',{'imageType':_0x4c7a97?'imageInline':null,'source':{'uploadcareImageId':_0x1b766b['id'],'src':_0x5336c2,'sources':_0x37937,..._0x33070b}});}}class w extends _0x1ff856{['_editing'];['_controller']=null;static get['requires'](){return[_0x1c41ef,o];}constructor(_0xdd2f09){super(_0xdd2f09),this['_editing']=_0xdd2f09['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x25718b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x25718b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3a2f0c,..._0xf97178}){return _0x5b533c(_0x3a2f0c,_0xf97178);}static['getInfo'](_0x2641ab,_0xa3286){return _0x58ba1b(_0x2641ab,_0xa3286);}}class f extends _0x39edd3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5b0ab0,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3f0e6f=this['editor'];if(!!!_0x3f0e6f['config']['get']('uploadcare'))return;_0x3f0e6f['plugins']['get'](_0x5b0ab0)['createUploadAdapter']=_0x24648e=>new k(_0x24648e,_0x3f0e6f),_0x3f0e6f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3f0655,{imageElement:_0x32b211,data:_0x46915a})=>{_0x3f0e6f['model']['change'](_0x5c8399=>{_0x5c8399['setAttribute']('uploadcareImageId',_0x46915a['uploadcareImageId'],_0x32b211);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1bba8b,_0x44c77c){this['loader']=_0x1bba8b,this['editor']=_0x44c77c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xa0e167=await this['loader']['file'];return j['upload']({'file':_0xa0e167,'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':_0x352180=>{_0x352180&&_0x352180['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x352180['value']);}})['then'](async _0x4e1db9=>{const {imageFallbackUrl:_0x1d90df,imageSources:_0x47e207}=C(_0x4e1db9['cdnUrl'],_0x4e1db9['imageInfo']['width']);return{'uploadcareImageId':_0x4e1db9['uuid'],'default':_0x1d90df,'sources':_0x47e207};})['catch'](()=>{const _0x21155c=t('Cannot\x20upload\x20file:')+('\x20'+_0xa0e167['name']+'.');return Promise['reject'](_0x21155c);});}['abort'](){this['controller']['abort']();}}class o extends _0x39edd3{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1c41ef];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1ca36f){super(_0x1ca36f),this['ucContextId']=_0x1ead5e();}['init'](){const _0x5a3764=this['editor'];_0x5a3764['commands']['add']('uploadcare',new w(_0x5a3764));}['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 _0x6e0249=_0x39a869['document']['querySelector']('input[uploadcare-file-input]');_0x6e0249&&_0x6e0249['remove']();}),async function(_0x2797b2){const _0x2362f4=_0x11a5cd([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4a8241=0x535f8c3a,_0x42591b=0x5358f4f2^_0x4a8241,_0x238c73=window[_0x11a5cd([0x44,0x61,0x74,0x65])][_0x11a5cd([0x6e,0x6f,0x77])](),_0x15d08a=_0x2797b2[_0x11a5cd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c0aaf=new window[(_0x11a5cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a5a38=>{_0x15d08a[_0x11a5cd([0x6f,0x6e,0x63,0x65])](_0x11a5cd([0x72,0x65,0x61,0x64,0x79]),_0x4a5a38);}),_0x372adb={[_0x11a5cd([0x6b,0x74,0x79])]:_0x11a5cd([0x45,0x43]),[_0x11a5cd([0x75,0x73,0x65])]:_0x11a5cd([0x73,0x69,0x67]),[_0x11a5cd([0x63,0x72,0x76])]:_0x11a5cd([0x50,0x2d,0x32,0x35,0x36]),[_0x11a5cd([0x78])]:_0x11a5cd([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]),[_0x11a5cd([0x79])]:_0x11a5cd([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]),[_0x11a5cd([0x61,0x6c,0x67])]:_0x11a5cd([0x45,0x53,0x32,0x35,0x36])},_0x379a7d=_0x15d08a[_0x11a5cd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11a5cd([0x67,0x65,0x74])](_0x11a5cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e84b5(){let _0x1cb3a9,_0x5b9ce0=null,_0x2bf350=null;try{if(_0x379a7d==_0x11a5cd([0x47,0x50,0x4c]))return _0x11a5cd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cb3a9=_0x1855f6(),!_0x1cb3a9)return _0x11a5cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cb3a9[_0x11a5cd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2bf350=_0xeb2b3c(_0x1cb3a9[_0x11a5cd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cb3a9[_0x11a5cd([0x6a,0x74,0x69])])),await _0x532afc()?_0x4a1afa()?_0x5063f2()?_0x11a5cd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b502a()?(_0x1cb3a9[_0x11a5cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11a5cd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b9ce0=_0x367a7c(_0x11a5cd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cb3a9[_0x11a5cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11a5cd([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b9ce0=_0x367a7c(_0x11a5cd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22cb62()):_0x11a5cd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11a5cd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11a5cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x11a5cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5063f2(){const _0x1d3905=[_0x11a5cd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11a5cd([0x74,0x72,0x69,0x61,0x6c])][_0x11a5cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb3a9[_0x11a5cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x238c73/0x3e8:0xe10*_0x42591b;return _0x1cb3a9[_0x11a5cd([0x65,0x78,0x70])]<_0x1d3905;}function _0x4a1afa(){const _0x4f3c1e=_0x1cb3a9[_0x11a5cd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4f3c1e&&(!!_0x4f3c1e[_0x11a5cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a5cd([0x2a]))||!!_0x4f3c1e[_0x11a5cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a5cd([0x55,0x50,0x4c,0x43])));}function _0x2b502a(){const _0x569c3e=_0x1cb3a9[_0x11a5cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x569c3e||0x0==_0x569c3e[_0x11a5cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x248e60}=new URL(window[_0x11a5cd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x569c3e[_0x11a5cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248e60))return!0x0;const _0x3a852a=_0x248e60[_0x11a5cd([0x73,0x70,0x6c,0x69,0x74])](_0x11a5cd([0x2e]));return _0x569c3e[_0x11a5cd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48ff6d=>_0x48ff6d[_0x11a5cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a5cd([0x2a])))[_0x11a5cd([0x6d,0x61,0x70])](_0x371ee2=>_0x371ee2[_0x11a5cd([0x73,0x70,0x6c,0x69,0x74])](_0x11a5cd([0x2e])))[_0x11a5cd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ba700=>_0x3ba700[_0x11a5cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3a852a[_0x11a5cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11a5cd([0x6d,0x61,0x70])](_0x2c430c=>Array(_0x3a852a[_0x11a5cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2c430c[_0x11a5cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11a5cd([0x66,0x69,0x6c,0x6c])](_0x2c430c[0x0]===_0x11a5cd([0x2a])?_0x11a5cd([0x2a]):'')[_0x11a5cd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2c430c))[_0x11a5cd([0x73,0x6f,0x6d,0x65])](_0x31aafe=>_0x3a852a[_0x11a5cd([0x65,0x76,0x65,0x72,0x79])]((_0x484570,_0x5a4cf8)=>_0x31aafe[_0x5a4cf8]===_0x484570||_0x31aafe[_0x5a4cf8]===_0x11a5cd([0x2a])));}function _0x22cb62(){return _0x5b9ce0&&_0x2bf350?new window[(_0x11a5cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12676b,_0x2f76eb)=>{_0x5b9ce0[_0x11a5cd([0x74,0x68,0x65,0x6e])](_0x12676b,_0x2f76eb),_0x2bf350[_0x11a5cd([0x74,0x68,0x65,0x6e])](_0xc400fc=>{_0xc400fc!=_0x11a5cd([0x56,0x61,0x6c,0x69,0x64])&&_0x12676b(_0xc400fc);},_0x2f76eb);}):_0x5b9ce0||_0x2bf350||_0x11a5cd([0x56,0x61,0x6c,0x69,0x64]);}}function _0xeb2b3c(_0x5c013b,_0x145de6){return new window[(_0x11a5cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16828f=>{if(_0x12e029())return _0x16828f(_0x11a5cd([0x56,0x61,0x6c,0x69,0x64]));_0x54db01(),_0x15d08a[_0x11a5cd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11a5cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x296c5c=!0x1;const _0x5220bc=_0x1ead5e();function _0x1df795(_0x10137b){return!!_0x10137b&&(typeof _0x10137b===_0x11a5cd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10137b===_0x11a5cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10137b[_0x11a5cd([0x74,0x68,0x65,0x6e])]===_0x11a5cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10137b[_0x11a5cd([0x63,0x61,0x74,0x63,0x68])]===_0x11a5cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5dfcc2(_0x5b7250){_0x48c71c(_0x5b7250)[_0x11a5cd([0x74,0x68,0x65,0x6e])](_0x56490c=>{if(!_0x56490c||_0x56490c[_0x11a5cd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11a5cd([0x6f,0x6b]))return _0x11a5cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5156c1(_0x43e387(_0x5220bc+_0x145de6))!=_0x56490c[_0x11a5cd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11a5cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11a5cd([0x56,0x61,0x6c,0x69,0x64]);})[_0x11a5cd([0x74,0x68,0x65,0x6e])](_0x2294d6=>(_0x502987(),_0x2294d6),()=>{const _0x28d9bc=_0x291735();return null==_0x28d9bc?(_0x502987(),_0x11a5cd([0x56,0x61,0x6c,0x69,0x64])):_0x11a5cd(_0x238c73-_0x28d9bc>(0x7753083a^_0x4a8241)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11a5cd([0x74,0x68,0x65,0x6e])](_0x16828f)[_0x11a5cd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x16828f(_0x11a5cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2af68d=0x536962ba^_0x4a8241;function _0x502987(){const _0x5d6bfc=_0x11a5cd([0x6c,0x6c,0x63,0x74,0x2d])+_0x5156c1(_0x43e387(_0x5c013b)),_0x49400e=_0x39187a(_0x5156c1(window[_0x11a5cd([0x4d,0x61,0x74,0x68])][_0x11a5cd([0x63,0x65,0x69,0x6c])](_0x238c73/_0x2af68d)));window[_0x11a5cd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11a5cd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d6bfc,_0x49400e);}function _0x291735(){const _0x56aec8=_0x11a5cd([0x6c,0x6c,0x63,0x74,0x2d])+_0x5156c1(_0x43e387(_0x5c013b)),_0x2f86f5=window[_0x11a5cd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11a5cd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56aec8);return _0x2f86f5?window[_0x11a5cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39187a(_0x2f86f5),0x10)*_0x2af68d:null;}function _0x48c71c(_0x4de32e){return new window[(_0x11a5cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bdc9d,_0x46132a)=>{_0x4de32e[_0x11a5cd([0x74,0x68,0x65,0x6e])](_0x1bdc9d,_0x46132a),window[_0x11a5cd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46132a,0x535e58fa^_0x4a8241);});}}_0x15d08a[_0x11a5cd([0x6f,0x6e])](_0x11a5cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x332a7f,_0x361db2)=>{if(_0x361db2[0x0]!=_0x5c013b)return _0x16828f(_0x11a5cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x361db2[0x1]={..._0x361db2[0x1],[_0x11a5cd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5220bc};},{[_0x11a5cd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11a5cd([0x68,0x69,0x67,0x68])}),_0x15d08a[_0x11a5cd([0x6f,0x6e])](_0x11a5cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x46ab16=>{_0x1df795(_0x46ab16[_0x11a5cd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x296c5c=!0x0,_0x5dfcc2(_0x46ab16[_0x11a5cd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11a5cd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11a5cd([0x6c,0x6f,0x77])}),_0x3c0aaf[_0x11a5cd([0x74,0x68,0x65,0x6e])](()=>{_0x296c5c||_0x16828f(_0x11a5cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12e029(){return _0x15d08a[_0x11a5cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11a5cd([0x76,0x69,0x65,0x77])][_0x11a5cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11a5cd([0x61,0x75,0x74,0x6f]);}function _0x54db01(){_0x15d08a[_0x11a5cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11a5cd([0x76,0x69,0x65,0x77])][_0x11a5cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11a5cd([0x61,0x75,0x74,0x6f]);}}function _0x367a7c(_0x1b7bae){const _0x3c7378=[new window[(_0x11a5cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42a98e=>setTimeout(_0x42a98e,0x5356b2f6^_0x4a8241)),_0x3c0aaf[_0x11a5cd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11a5cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x545f76=>{let _0xb6db15=0x0;_0x15d08a[_0x11a5cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a5cd([0x6f,0x6e])](_0x11a5cd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2e6813,_0x3aa722)=>{_0x3aa722[0x0][_0x11a5cd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb6db15++,_0xb6db15==(0x535f8dc2^_0x4a8241)&&(_0x545f76(),_0x2e6813[_0x11a5cd([0x6f,0x66,0x66])]());});}))];return window[_0x11a5cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11a5cd([0x72,0x61,0x63,0x65])](_0x3c7378)[_0x11a5cd([0x74,0x68,0x65,0x6e])](()=>_0x1b7bae);}async function _0x397a6e(){await _0x3c0aaf,_0x15d08a[_0x11a5cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a5cd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5ce9e8,_0x15d08a[_0x11a5cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a5cd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5ce9e8,_0x15d08a[_0x11a5cd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11a5cd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1241f8(_0x4ed3b4){const _0x15a5c2=_0x4f3ea2();_0x15d08a[_0x15a5c2]=_0x11a5cd([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ed3b4,_0x4ed3b4!=_0x11a5cd([0x56,0x61,0x6c,0x69,0x64])&&_0x397a6e();}function _0x4f3ea2(){const _0x16308f=window[_0x11a5cd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11a5cd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11a5cd([0x6e,0x6f,0x77])]())[_0x11a5cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11a5cd([0x2e]),'');let _0xc63415=_0x11a5cd([0x68]);for(let _0x27b584=0x0;_0x27b584<_0x16308f[_0x11a5cd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27b584+=0x2){let _0x5da263=window[_0x11a5cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16308f[_0x11a5cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27b584,_0x27b584+0x2));_0x5da263>=_0x2362f4[_0x11a5cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5da263-=_0x2362f4[_0x11a5cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xc63415+=_0x2362f4[_0x5da263];}return _0xc63415;}function _0x1855f6(){const _0x3ba6ea=_0x379a7d[_0x11a5cd([0x73,0x70,0x6c,0x69,0x74])](_0x11a5cd([0x2e]));if(0x3!=_0x3ba6ea[_0x11a5cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47ea91(_0x3ba6ea[0x1]);function _0x47ea91(_0x43431e){const _0x5a3203=_0x15e005(_0x43431e);return _0x5a3203&&_0x59bb9e()?_0x5a3203:null;function _0x59bb9e(){const _0x45d5cb=_0x5a3203[_0x11a5cd([0x6a,0x74,0x69])],_0x7c4ae=window[_0x11a5cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45d5cb[_0x11a5cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45d5cb[_0x11a5cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x385928={..._0x5a3203,[_0x11a5cd([0x6a,0x74,0x69])]:_0x45d5cb[_0x11a5cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45d5cb[_0x11a5cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x385928[_0x11a5cd([0x76,0x63])],_0x43e387(_0x385928)==_0x7c4ae;}}}async function _0x532afc(){let _0x1ce611=!0x0;try{const _0x11805a=_0x379a7d[_0x11a5cd([0x73,0x70,0x6c,0x69,0x74])](_0x11a5cd([0x2e])),[_0x393c43,_0x3a0174,_0x47b33c]=_0x11805a;return _0x56ca52(_0x393c43),await _0x5acfcf(_0x393c43,_0x3a0174,_0x47b33c),_0x1ce611;}catch{return!0x1;}function _0x56ca52(_0x1d8653){const _0x6ae4e4=_0x15e005(_0x1d8653);_0x6ae4e4&&_0x6ae4e4[_0x11a5cd([0x61,0x6c,0x67])]==_0x11a5cd([0x45,0x53,0x32,0x35,0x36])||(_0x1ce611=!0x1);}async function _0x5acfcf(_0x3ce85f,_0x561feb,_0x3d8896){const _0x32190c=window[_0x11a5cd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11a5cd([0x66,0x72,0x6f,0x6d])](_0x2a038d(_0x3d8896),_0xd6b0d5=>_0xd6b0d5[_0x11a5cd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x161d4a=new window[(_0x11a5cd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11a5cd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ce85f+_0x11a5cd([0x2e])+_0x561feb),_0x21cd82=window[_0x11a5cd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11a5cd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x21cd82)return;const _0xd5203f=await _0x21cd82[_0x11a5cd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11a5cd([0x6a,0x77,0x6b]),_0x372adb,{[_0x11a5cd([0x6e,0x61,0x6d,0x65])]:_0x11a5cd([0x45,0x43,0x44,0x53,0x41]),[_0x11a5cd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11a5cd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11a5cd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x21cd82[_0x11a5cd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11a5cd([0x6e,0x61,0x6d,0x65])]:_0x11a5cd([0x45,0x43,0x44,0x53,0x41]),[_0x11a5cd([0x68,0x61,0x73,0x68])]:{[_0x11a5cd([0x6e,0x61,0x6d,0x65])]:_0x11a5cd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd5203f,_0x32190c,_0x161d4a)||(_0x1ce611=!0x1);}}function _0x15e005(_0x40c423){return _0x40c423[_0x11a5cd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11a5cd([0x65,0x79]))?JSON[_0x11a5cd([0x70,0x61,0x72,0x73,0x65])](_0x2a038d(_0x40c423)):null;}function _0x2a038d(_0x5cf48c){return window[_0x11a5cd([0x61,0x74,0x6f,0x62])](_0x5cf48c[_0x11a5cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11a5cd([0x2b]))[_0x11a5cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11a5cd([0x2f])));}function _0x43e387(_0x2aa24c){let _0x466a2c=0x1505;function _0xe9b035(_0x2922ec){for(let _0x31bf24=0x0;_0x31bf24<_0x2922ec[_0x11a5cd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31bf24++){const _0xe313e0=_0x2922ec[_0x11a5cd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31bf24);_0x466a2c=(_0x466a2c<<0x5)+_0x466a2c+_0xe313e0,_0x466a2c&=_0x466a2c;}}function _0xab730e(_0x81c75a){Array[_0x11a5cd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x81c75a)?_0x81c75a[_0x11a5cd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xab730e):_0x81c75a&&typeof _0x81c75a==_0x11a5cd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11a5cd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x81c75a)[_0x11a5cd([0x73,0x6f,0x72,0x74])]()[_0x11a5cd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5cb953,_0xac8a63])=>{_0xe9b035(_0x5cb953),_0xab730e(_0xac8a63);}):_0xe9b035(window[_0x11a5cd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x81c75a));}return _0xab730e(_0x2aa24c),_0x466a2c>>>0x0;}function _0x5156c1(_0x2bfd33){return _0x2bfd33[_0x11a5cd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11a5cd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11a5cd([0x30]));}function _0x39187a(_0x5b906d){return _0x5b906d[_0x11a5cd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11a5cd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11a5cd([0x6a,0x6f,0x69,0x6e])]('');}function _0x5ce9e8(){}function _0x11a5cd(_0x2f43ab){return _0x2f43ab['map'](_0x2c83e4=>String['fromCharCode'](_0x2c83e4))['join']('');}_0x1241f8(await _0x5e84b5());}(this);}['_initSchema'](){const _0x4ea11b=this['editor']['model']['schema'];_0x4ea11b['isRegistered']('imageBlock')&&_0x4ea11b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4ea11b['isRegistered']('imageInline')&&_0x4ea11b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x8ef078=this['editor'];_0x8ef078['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x8ef078['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x17062e=>_0x17062e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x463451=_0x8ef078['commands']['get']('replaceImageSource');_0x463451&&this['listenTo'](_0x463451,'cleanupImage',(_0x3e58ee,[_0x2f485e,_0x4fe276])=>{_0x2f485e['removeAttribute']('uploadcareImageId',_0x4fe276);});}['_initConfig'](){const _0x2b7e41=this['editor']['config']['get']('uploadcare.uploader')||{},_0x376ceb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x356a25(_0x39a869['document'],'uc-config',{..._0x2b7e41,'pubkey':_0x376ceb,'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']=_0xcb0e70=>{if('closeMax'==_0xcb0e70)return'#uc-icon-arrow-down';},_0x39a869['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x356a25(_0x39a869['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x39a869['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3fa506=this['editor']['commands']['get']('insertImage');_0x3fa506&&this['listenTo'](_0x3fa506,'execute',()=>{const _0x4e3ebe=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4e3ebe&&_0x4e3ebe['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4e3ebe);});});const _0x39ccea=this['editor']['commands']['get']('uploadcareImageReplace');_0x39ccea&&this['listenTo'](_0x39ccea,'execute',()=>{const _0x32576d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x32576d&&_0x32576d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x32576d);});});}}class tt extends _0x39edd3{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3879d7){super(_0x3879d7),_0x3879d7['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xc1bb04['defineComponents'](_0xc1bb04),this['_defineLocale']();}['_defineLocale'](){const _0x20f322=this['editor']['config']['get']('uploadcare.locale'),_0x3a929f=this['editor']['locale']['contentLanguage'];_0x20f322&&_0xc1bb04['defineLocale'](_0x3a929f,_0x20f322);}}class ii extends _0x1a280a{constructor(_0x549f51){super(_0x549f51);const t=_0x549f51['t'],_0x3c3ce7=this['bindTemplate'],_0x5eba47=new _0xa1ec06();_0x5eba47['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':[_0x5eba47,{'text':_0x3c3ce7['to']('imageUploadProgress',_0x209930=>t('Loading\x20image...')+'\x20('+(_0x209930||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 _0x1a280a{constructor(_0x1af0e3){super(_0x1af0e3);const t=_0x1af0e3['t'];this['set']('errorType',null);const _0xfcbbb7=new _0x28352d(_0x1af0e3);_0xfcbbb7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xfcbbb7['withText']=!0x0,_0xfcbbb7['class']='ck-button-action',_0xfcbbb7['on']('execute',()=>{this['fire']('retry');}),_0xfcbbb7['bind']('isVisible')['to'](this,'errorType',_0x53de79=>'NotFound'!==_0x53de79);const _0x1e9cf7=new _0x32ce60();_0x1e9cf7['content']=_0x19b0df,_0x1e9cf7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x56ec61=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':[_0x1e9cf7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x56ec61['to']('errorType',_0x115784=>t('NotFound'!==_0x115784?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xfcbbb7]},{'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 _0x1a280a{constructor(_0x35d4f8,_0x3a60bd){super(_0x35d4f8);const _0x45dad9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3a60bd,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x45dad9['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xe08fc1,_0x4ae591,_0x1afc12){super(_0xe08fc1),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xe08fc1),this['_errorView']=new ti(_0xe08fc1),this['_editingView']=new ei(_0xe08fc1,_0x1afc12),this['_focusableView']=new _0x1a280a(_0xe08fc1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4ae591),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'],_0x4898f6=>{this['_addUploadcareImageEditorListeners'](_0x4898f6);});}),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'](_0x136319,_0x25e8c3){const _0x2b6ae3='uc-cloud-image-editor',_0x2c87db=_0x136319['querySelector'](_0x2b6ae3);if(_0x2c87db)return _0x25e8c3(_0x2c87db);const _0x5cd9f7=new MutationObserver(_0x133733=>{const _0x4f229b=_0x133733['filter'](_0x4e0ac0=>_0x4e0ac0['target']===_0x136319&&_0x4e0ac0['addedNodes']['length']>0x0&&_0x4e0ac0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2b6ae3);_0x4f229b['length']&&(_0x5cd9f7['disconnect'](),_0x25e8c3(_0x4f229b[0x0]['addedNodes'][0x0]));});_0x5cd9f7['observe'](_0x136319,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x172eb1){_0x172eb1['addEventListener']('apply',_0x38daaf=>{this['fire']('apply',{'imageSrc':_0x38daaf['detail']['cdnUrl']});}),_0x172eb1['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x2c99c8(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x52211f,_0x52ab46,_0x26562b){super(),this['_editor']=_0x52211f,this['_dialog']=_0x52ab46,this['_imageElement']=_0x26562b,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 _0x53b776=this['_imageElement'],_0xd7efc4=_0x53b776['getAttribute']('uploadcareImageId'),_0x3267c5=_0x53b776['getAttribute']('src');if(_0xd7efc4)await this['_loadImageInfo'](_0xd7efc4,_0x3267c5);else{if(this['_imageCache']['has'](_0x3267c5)){const _0x47c0f1=this['_imageCache']['get'](_0x3267c5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47c0f1['url'],this['imageDimension']=_0x47c0f1['dimension'],this['imageId']=_0x47c0f1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x106ec6}=this['_editor'],t=_0x106ec6['t'],_0x6e91b8=new X(_0x106ec6,this['imageStatus'],this['_attributes']);_0x6e91b8['bind']('status')['to'](this,'imageStatus'),_0x6e91b8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x6e91b8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x6e91b8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x6e91b8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4b90e5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x6e91b8,'position':_0x480a97['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x6e91b8['focus']();},'onHide':()=>{_0x6e91b8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2291ba=>!A(_0x2291ba,_0x6e91b8['element'])}});}['_loadImageInfo'](_0x424da1,_0x261c0a){return j['getInfo'](_0x424da1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2fe4ba=>{const {width:_0x3d7027,height:_0x157c0c}=_0x2fe4ba['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x261c0a,this['imageDimension']={'width':_0x3d7027,'height':_0x157c0c},this['imageId']=_0x424da1;})['catch'](_0x2720b8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2720b8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x36f4f6,_0x578f4a){return this['_getImageAsFile'](_0x36f4f6)['then'](_0xf72ff4=>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':_0x578f4a['signal'],'file':_0xf72ff4,'onProgress':_0x4ff19f=>{_0x4ff19f&&_0x4ff19f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4ff19f['value']));}}))['then'](_0x5dd049=>{const {width:_0x20bd13,height:_0x170834}=_0x5dd049['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5dd049['cdnUrl'],this['imageDimension']={'width':_0x20bd13,'height':_0x170834},this['imageId']=_0x5dd049['uuid'],this['imageUploadProgress']=null;const _0x2ef30a=_0x36f4f6['getAttribute']('src');this['_imageCache']['set'](_0x2ef30a,{'id':_0x5dd049['uuid'],'url':_0x5dd049['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1b47df=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1b47df['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5a4930,_0x5484b7){_0x5a4930['on']('apply',(_0x2b5b6d,_0x23b7c1)=>{this['_replaceImage'](_0x5484b7,_0x23b7c1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5a4930['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5a4930['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x140cd6,_0x478798,_0x2db983){const _0x2ab48f=this['_editor'],{width:_0x535305,height:_0x51e8b5}=S(_0x478798,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x898afc,imageSources:_0x309f39}=C(_0x478798,_0x535305);_0x2ab48f['model']['change'](_0x55956e=>{if('$graveyard'===_0x140cd6['root']['rootName']){_0x2ab48f['execute']('insertImage',{'imageType':_0x140cd6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x140cd6['getAttributes']()),'uploadcareImageId':_0x2db983,'src':_0x898afc,'sources':_0x309f39,'width':_0x535305,'height':_0x51e8b5}});const _0x5a2b1c=_0x140cd6['getChildren']();_0x140cd6=_0x2ab48f['model']['document']['selection']['getSelectedElement']();for(const _0x130367 of _0x5a2b1c)_0x55956e['append'](_0x55956e['cloneElement'](_0x130367),_0x140cd6);}else _0x55956e['setSelection'](_0x140cd6,'on'),_0x2ab48f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x140cd6['getAttributes']()),'uploadcareImageId':_0x2db983,'src':_0x898afc,'sources':_0x309f39,'width':_0x535305,'height':_0x51e8b5},_0x140cd6);_0x55956e['setSelection'](_0x140cd6,'on');});}async['_getImageAsFile'](_0x509de5){const _0x59598d=_0x39a869['window'],_0x33fbb8=_0x39a869['document']['location']['href'],_0x3e0e30=new _0x59598d['URL'](_0x509de5['getAttribute']('src'),_0x33fbb8);if('data:'===_0x3e0e30['protocol']){const _0x2f597b=_0x3e0e30['href']['split'](','),_0x2fa6fe=_0x2f597b[0x0]['match'](/:(.*?);/)[0x1],_0x25c5d8=_0x2fa6fe['split']('/')[0x1],_0x49d97f=_0x59598d['atob'](_0x2f597b[_0x2f597b['length']-0x1]);let _0x53367e=_0x49d97f['length'];const _0x5a7b1d=new _0x59598d['Uint8Array'](_0x53367e);for(;_0x53367e--;)_0x5a7b1d[_0x53367e]=_0x49d97f['charCodeAt'](_0x53367e);return new _0x59598d['File']([_0x5a7b1d],'image.'+_0x25c5d8,{'type':_0x2fa6fe});}const _0x150c52=_0x3e0e30['href']['split']('/'),_0x11324c=_0x150c52[_0x150c52['length']-0x1],_0x2f89de=_0x11324c['split']('.')[0x1];return _0x59598d['fetch'](_0x3e0e30['href'])['then'](_0x52193a=>_0x52193a['clone']()['blob']())['then'](_0x4caa2f=>new _0x59598d['File']([_0x4caa2f],_0x11324c,{'type':'image/'+_0x2f89de}));}}class O extends _0x1ff856{['imageEditController'];static get['requires'](){return[_0x1c41ef];}['_isEditable'];constructor(_0x1683ae){super(_0x1683ae),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x44e9af){const _0x2a2d67=G(_0x44e9af);return _0x406aef=>!(!_0x406aef||!_0x406aef['is']('element','imageBlock')&&!_0x406aef['is']('element','imageInline'))&&(!!_0x406aef['hasAttribute']('uploadcareImageId')||!!_0x406aef['hasAttribute']('src')&&_0x2a2d67(_0x406aef['getAttribute']('src')));}(_0x1683ae['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2cf6ec=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2cf6ec);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x432a28=this['editor']['model']['document']['selection']['getSelectedElement']();_0x432a28&&(_0x432a28['is']('element','imageBlock')||_0x432a28['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1c41ef),_0x432a28),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1ff856{['refresh'](){const _0x5ef7f8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5ef7f8&&(_0x5ef7f8['is']('element','imageBlock')||_0x5ef7f8['is']('element','imageInline')));}['execute'](_0x2a55fc){const _0x49d30a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x44ed5d=>{_0x44ed5d['setAttributes'](_0x2a55fc,_0x49d30a),_0x44ed5d['removeAttribute']('srcset',_0x49d30a),_0x44ed5d['removeAttribute']('sizes',_0x49d30a);});}}class m extends _0x39edd3{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1cc6db,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3a9210}=this;_0x3a9210['commands']['add']('uploadcareImageEdit',new O(_0x3a9210)),_0x3a9210['commands']['add']('uploadcareImageReplace',new R(_0x3a9210));}}class g extends _0x39edd3{['_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 _0x385216=this['editor'];_0x385216['ui']['componentFactory']['add']('uploadcareImageEdit',_0x6d2fd4=>{const _0x13e4dc=_0x385216['commands']['get']('uploadcareImageEdit'),_0x19192a=new _0x28352d(_0x6d2fd4),t=_0x6d2fd4['t'];return _0x19192a['set']({'icon':_0x4b90e5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x19192a['bind']('isEnabled')['to'](_0x13e4dc),_0x19192a['bind']('isOn')['to'](_0x13e4dc,'isActive'),this['listenTo'](_0x19192a,'execute',()=>{_0x385216['execute']('uploadcareImageEdit'),_0x385216['editing']['view']['focus']();}),_0x19192a;}),this['_initConfig']();}['_initConfig'](){const _0x5762ea=_0x356a25(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5762ea),this['listenTo'](this['editor'],'destroy',()=>{_0x5762ea['remove']();});}}class et extends _0x39edd3{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-20251109.0",
3
+ "version": "0.0.0-nightly-20251111.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-20251109.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251109.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251109.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251109.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251109.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251109.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251109.0",
33
- "ckeditor5": "0.0.0-nightly-20251109.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251111.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251111.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251111.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251111.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251111.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251111.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251111.0",
33
+ "ckeditor5": "0.0.0-nightly-20251111.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
- const _0x37c9ab=_0x48ce;(function(_0x5c5029,_0x4a804b){const _0x1bba8c=_0x48ce,_0xe52f1e=_0x5c5029();while(!![]){try{const _0x401193=-parseInt(_0x1bba8c(0x1fd))/0x1+parseInt(_0x1bba8c(0x1da))/0x2*(-parseInt(_0x1bba8c(0x207))/0x3)+-parseInt(_0x1bba8c(0x1d7))/0x4*(parseInt(_0x1bba8c(0x1bf))/0x5)+parseInt(_0x1bba8c(0x1eb))/0x6+parseInt(_0x1bba8c(0x203))/0x7*(parseInt(_0x1bba8c(0x209))/0x8)+-parseInt(_0x1bba8c(0x1fc))/0x9+-parseInt(_0x1bba8c(0x1cf))/0xa*(-parseInt(_0x1bba8c(0x1dc))/0xb);if(_0x401193===_0x4a804b)break;else _0xe52f1e['push'](_0xe52f1e['shift']());}catch(_0x1a357a){_0xe52f1e['push'](_0xe52f1e['shift']());}}}(_0x3911,0xe4ffb));import{Plugin as _0x4668bf}from'ckeditor5/src/core.js';import{Dialog as _0x54797a}from'ckeditor5/src/ui.js';function _0x3911(){const _0x24939f=['view','isRegistered','document','data-uc-image-id','isPremiumPlugin','4cEeYlT','replaceImageSource','uploadcare.uploader','162348LXXKyL','add','3080iJBBrn','map','join','extend','conversion','init','insertImage','input[uploadcare-file-input]','_initConversion','once','pluginName','uploadcare','getSelectedElement','listenTo','_initCtx','7534182xfleJp','downcast','uc-upload-ctx-provider','requires','remove','attributeToAttribute','config','contentLanguage','#uc-icon-arrow-down','render','_configElement','PictureEditing','_initConfig','uploadcareImageReplace','appendChild','UploadcareEditing','getAttribute','15803388CGDsBc','1401647UhsVFT','upcast','body','commands','locale','imageInline','81242PsTsOK','true','editing','imageBlock','51kKLFPb','isOfficialPlugin','848yKhwHl','uploader-','href','model','selection','closeMax','cleanupImage','ucContextId','get','editor','uc-config','ctxElement','370885xyXLAq','querySelector','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','destroy','removeAttribute','execute','fromCharCode','uploadcare.pubkey','afterInit','_initSchema','schema','_ctxElement','_initImageProcessingIndicator','iconHrefResolver','uploadcareImageId','elementToAttribute','109420pBLUQy','configElement','for'];_0x3911=function(){return _0x24939f;};return _0x3911();}import{createElement as _0x5a6f1b,global as _0xe231f,uid as _0x40aaa8}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4a1e5e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xdd0c98}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1a9cb9}from'./utils/editingutils.js';function _0x48ce(_0x1e10cb,_0x2fbb8d){const _0x391192=_0x3911();return _0x48ce=function(_0x48ce44,_0x521ce0){_0x48ce44=_0x48ce44-0x1b6;let _0x4773d7=_0x391192[_0x48ce44];return _0x4773d7;},_0x48ce(_0x1e10cb,_0x2fbb8d);}export class UploadcareEditing extends _0x4668bf{[_0x37c9ab(0x1f5)]=null;[_0x37c9ab(0x1ca)]=null;static get[_0x37c9ab(0x1e6)](){const _0x225ba8=_0x37c9ab;return _0x225ba8(0x1fa);}static get[_0x37c9ab(0x1ee)](){const _0x4cec3d=_0x37c9ab;return[_0x4cec3d(0x1f6),_0xdd0c98,_0x54797a];}static get[_0x37c9ab(0x208)](){return!0x0;}static get[_0x37c9ab(0x1d6)](){return!0x0;}[_0x37c9ab(0x1ba)];get[_0x37c9ab(0x1d0)](){const _0x25b6ac=_0x37c9ab;return this[_0x25b6ac(0x1f5)];}get[_0x37c9ab(0x1be)](){const _0x1e223e=_0x37c9ab;return this[_0x1e223e(0x1ca)];}constructor(_0x42e41a){const _0x387f10=_0x37c9ab;super(_0x42e41a),this[_0x387f10(0x1ba)]=_0x40aaa8();}[_0x37c9ab(0x1e1)](){const _0x381c91=_0x37c9ab,_0x4d8629=this[_0x381c91(0x1bc)];_0x4d8629[_0x381c91(0x200)][_0x381c91(0x1db)](_0x381c91(0x1e7),new _0x4a1e5e(_0x4d8629));}[_0x37c9ab(0x1c7)](){const _0x207e67=_0x37c9ab;this[_0x207e67(0x1c8)](),this[_0x207e67(0x1e4)](),this[_0x207e67(0x1f7)](),this[_0x207e67(0x1ea)](),this[_0x207e67(0x1cb)](),this[_0x207e67(0x1e9)](this[_0x207e67(0x1bc)],_0x207e67(0x1c2),()=>{const _0x448cc6=_0x207e67;this[_0x448cc6(0x1f5)]&&(this[_0x448cc6(0x1f5)][_0x448cc6(0x1ef)](),this[_0x448cc6(0x1f5)]=null),this[_0x448cc6(0x1ca)]&&(this[_0x448cc6(0x1ca)][_0x448cc6(0x1ef)](),this[_0x448cc6(0x1ca)]=null);const _0x17070a=_0xe231f[_0x448cc6(0x1d4)][_0x448cc6(0x1c0)](_0x448cc6(0x1e3));_0x17070a&&_0x17070a[_0x448cc6(0x1ef)]();}),async function(_0x1e0359){const _0x5346ee=_0xf24359([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4c46be=0x535f8c3a,_0x1f8a44=0x5358f4a2^_0x4c46be,_0x4f12c=window[_0xf24359([0x44,0x61,0x74,0x65])][_0xf24359([0x6e,0x6f,0x77])](),_0x490634=_0x1e0359[_0xf24359([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x350579=new window[(_0xf24359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x198823=>{_0x490634[_0xf24359([0x6f,0x6e,0x63,0x65])](_0xf24359([0x72,0x65,0x61,0x64,0x79]),_0x198823);}),_0x1b7b44={[_0xf24359([0x6b,0x74,0x79])]:_0xf24359([0x45,0x43]),[_0xf24359([0x75,0x73,0x65])]:_0xf24359([0x73,0x69,0x67]),[_0xf24359([0x63,0x72,0x76])]:_0xf24359([0x50,0x2d,0x32,0x35,0x36]),[_0xf24359([0x78])]:_0xf24359([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]),[_0xf24359([0x79])]:_0xf24359([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]),[_0xf24359([0x61,0x6c,0x67])]:_0xf24359([0x45,0x53,0x32,0x35,0x36])},_0x4f64a2=_0x490634[_0xf24359([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf24359([0x67,0x65,0x74])](_0xf24359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xacfcd3(){let _0xdc7255,_0x5e37b4=null,_0x1b812a=null;try{if(_0x4f64a2==_0xf24359([0x47,0x50,0x4c]))return _0xf24359([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdc7255=_0x4db5e5(),!_0xdc7255)return _0xf24359([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdc7255[_0xf24359([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b812a=_0x3b5485(_0xdc7255[_0xf24359([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdc7255[_0xf24359([0x6a,0x74,0x69])])),await _0x439ac4()?_0x225b1b()?_0x1258c1()?_0xf24359([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b7d08()?(_0xdc7255[_0xf24359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf24359([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e37b4=_0x4a2910(_0xf24359([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xdc7255[_0xf24359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf24359([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e37b4=_0x4a2910(_0xf24359([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3908e9()):_0xf24359([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf24359([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf24359([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf24359([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1258c1(){const _0x5e67f6=[_0xf24359([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf24359([0x74,0x72,0x69,0x61,0x6c])][_0xf24359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdc7255[_0xf24359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4f12c/0x3e8:0xe10*_0x1f8a44;return _0xdc7255[_0xf24359([0x65,0x78,0x70])]<_0x5e67f6;}function _0x225b1b(){const _0x4fa3c6=_0xdc7255[_0xf24359([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4fa3c6&&(!!_0x4fa3c6[_0xf24359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf24359([0x2a]))||!!_0x4fa3c6[_0xf24359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf24359([0x55,0x50,0x4c,0x43])));}function _0x5b7d08(){const _0x3190fd=_0x48ce,_0x58594d=_0xdc7255[_0xf24359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58594d||0x0==_0x58594d[_0xf24359([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5cfb5c}=new URL(window[_0xf24359([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3190fd(0x20b)]);if(_0x58594d[_0xf24359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cfb5c))return!0x0;const _0x1d4ac7=_0x5cfb5c[_0xf24359([0x73,0x70,0x6c,0x69,0x74])](_0xf24359([0x2e]));return _0x58594d[_0xf24359([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c4d48=>_0x3c4d48[_0xf24359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf24359([0x2a])))[_0xf24359([0x6d,0x61,0x70])](_0x246f17=>_0x246f17[_0xf24359([0x73,0x70,0x6c,0x69,0x74])](_0xf24359([0x2e])))[_0xf24359([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x362fed=>_0x362fed[_0xf24359([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1d4ac7[_0xf24359([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf24359([0x6d,0x61,0x70])](_0x5a60b1=>Array(_0x1d4ac7[_0xf24359([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5a60b1[_0xf24359([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf24359([0x66,0x69,0x6c,0x6c])](_0x5a60b1[0x0]===_0xf24359([0x2a])?_0xf24359([0x2a]):'')[_0xf24359([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5a60b1))[_0xf24359([0x73,0x6f,0x6d,0x65])](_0x5b6927=>_0x1d4ac7[_0xf24359([0x65,0x76,0x65,0x72,0x79])]((_0x3af8da,_0x22fb86)=>_0x5b6927[_0x22fb86]===_0x3af8da||_0x5b6927[_0x22fb86]===_0xf24359([0x2a])));}function _0x3908e9(){return _0x5e37b4&&_0x1b812a?new window[(_0xf24359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd2d3e9,_0x2d6ef2)=>{_0x5e37b4[_0xf24359([0x74,0x68,0x65,0x6e])](_0xd2d3e9,_0x2d6ef2),_0x1b812a[_0xf24359([0x74,0x68,0x65,0x6e])](_0x52be47=>{_0x52be47!=_0xf24359([0x56,0x61,0x6c,0x69,0x64])&&_0xd2d3e9(_0x52be47);},_0x2d6ef2);}):_0x5e37b4||_0x1b812a||_0xf24359([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b5485(_0x28aa67,_0x211888){return new window[(_0xf24359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x420d6e=>{if(_0x257036())return _0x420d6e(_0xf24359([0x56,0x61,0x6c,0x69,0x64]));_0x4ea7be(),_0x490634[_0xf24359([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf24359([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50e8b7=!0x1;const _0x20615e=_0x40aaa8();function _0x3fd43f(_0x5efab3){return!!_0x5efab3&&(typeof _0x5efab3===_0xf24359([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5efab3===_0xf24359([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5efab3[_0xf24359([0x74,0x68,0x65,0x6e])]===_0xf24359([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5efab3[_0xf24359([0x63,0x61,0x74,0x63,0x68])]===_0xf24359([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x550b00(_0x423aad){_0x1a875b(_0x423aad)[_0xf24359([0x74,0x68,0x65,0x6e])](_0x39badb=>{if(!_0x39badb||_0x39badb[_0xf24359([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf24359([0x6f,0x6b]))return _0xf24359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4dbb5b(_0x5921bc(_0x20615e+_0x211888))!=_0x39badb[_0xf24359([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf24359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf24359([0x56,0x61,0x6c,0x69,0x64]);})[_0xf24359([0x74,0x68,0x65,0x6e])](_0x285ac0=>(_0x2f8f52(),_0x285ac0),()=>{const _0x457a65=_0x49c5dd();return null==_0x457a65?(_0x2f8f52(),_0xf24359([0x56,0x61,0x6c,0x69,0x64])):_0xf24359(_0x4f12c-_0x457a65>(0x7753083a^_0x4c46be)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf24359([0x74,0x68,0x65,0x6e])](_0x420d6e)[_0xf24359([0x63,0x61,0x74,0x63,0x68])](()=>{_0x420d6e(_0xf24359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57c42e=0x536962ba^_0x4c46be;function _0x2f8f52(){const _0x4c9be0=_0xf24359([0x6c,0x6c,0x63,0x74,0x2d])+_0x4dbb5b(_0x5921bc(_0x28aa67)),_0x4d1a9b=_0x11de62(_0x4dbb5b(window[_0xf24359([0x4d,0x61,0x74,0x68])][_0xf24359([0x63,0x65,0x69,0x6c])](_0x4f12c/_0x57c42e)));window[_0xf24359([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf24359([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c9be0,_0x4d1a9b);}function _0x49c5dd(){const _0x50f5b3=_0xf24359([0x6c,0x6c,0x63,0x74,0x2d])+_0x4dbb5b(_0x5921bc(_0x28aa67)),_0x32cc02=window[_0xf24359([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf24359([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50f5b3);return _0x32cc02?window[_0xf24359([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11de62(_0x32cc02),0x10)*_0x57c42e:null;}function _0x1a875b(_0x44df6d){return new window[(_0xf24359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x184cfe,_0x238ce6)=>{_0x44df6d[_0xf24359([0x74,0x68,0x65,0x6e])](_0x184cfe,_0x238ce6),window[_0xf24359([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x238ce6,0x535e58fa^_0x4c46be);});}}_0x490634[_0xf24359([0x6f,0x6e])](_0xf24359([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1dfb3b,_0x48e98b)=>{if(_0x48e98b[0x0]!=_0x28aa67)return _0x420d6e(_0xf24359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x48e98b[0x1]={..._0x48e98b[0x1],[_0xf24359([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20615e};},{[_0xf24359([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf24359([0x68,0x69,0x67,0x68])}),_0x490634[_0xf24359([0x6f,0x6e])](_0xf24359([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x18d65c=>{_0x3fd43f(_0x18d65c[_0xf24359([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50e8b7=!0x0,_0x550b00(_0x18d65c[_0xf24359([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf24359([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf24359([0x6c,0x6f,0x77])}),_0x350579[_0xf24359([0x74,0x68,0x65,0x6e])](()=>{_0x50e8b7||_0x420d6e(_0xf24359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x257036(){return _0x490634[_0xf24359([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf24359([0x76,0x69,0x65,0x77])][_0xf24359([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf24359([0x61,0x75,0x74,0x6f]);}function _0x4ea7be(){_0x490634[_0xf24359([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf24359([0x76,0x69,0x65,0x77])][_0xf24359([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf24359([0x61,0x75,0x74,0x6f]);}}function _0x4a2910(_0xe3c8d2){const _0x357e03=[new window[(_0xf24359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33927f=>setTimeout(_0x33927f,0x5356b2f6^_0x4c46be)),_0x350579[_0xf24359([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf24359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x530ead=>{let _0x3d9ebd=0x0;_0x490634[_0xf24359([0x6d,0x6f,0x64,0x65,0x6c])][_0xf24359([0x6f,0x6e])](_0xf24359([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3afb18,_0x361f9e)=>{_0x361f9e[0x0][_0xf24359([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d9ebd++,_0x3d9ebd==(0x535f8dc2^_0x4c46be)&&(_0x530ead(),_0x3afb18[_0xf24359([0x6f,0x66,0x66])]());});}))];return window[_0xf24359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf24359([0x72,0x61,0x63,0x65])](_0x357e03)[_0xf24359([0x74,0x68,0x65,0x6e])](()=>_0xe3c8d2);}async function _0x12d509(){await _0x350579,_0x490634[_0xf24359([0x6d,0x6f,0x64,0x65,0x6c])][_0xf24359([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x114732,_0x490634[_0xf24359([0x6d,0x6f,0x64,0x65,0x6c])][_0xf24359([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x114732,_0x490634[_0xf24359([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf24359([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x308642(_0x12dc89){const _0x2cd36b=_0x3573b5();_0x490634[_0x2cd36b]=_0xf24359([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x12dc89,_0x12dc89!=_0xf24359([0x56,0x61,0x6c,0x69,0x64])&&_0x12d509();}function _0x3573b5(){const _0x29dfda=window[_0xf24359([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf24359([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf24359([0x6e,0x6f,0x77])]())[_0xf24359([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf24359([0x2e]),'');let _0x48afb1=_0xf24359([0x68]);for(let _0x5cea03=0x0;_0x5cea03<_0x29dfda[_0xf24359([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cea03+=0x2){let _0x2250b7=window[_0xf24359([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29dfda[_0xf24359([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cea03,_0x5cea03+0x2));_0x2250b7>=_0x5346ee[_0xf24359([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2250b7-=_0x5346ee[_0xf24359([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48afb1+=_0x5346ee[_0x2250b7];}return _0x48afb1;}function _0x4db5e5(){const _0x404c01=_0x4f64a2[_0xf24359([0x73,0x70,0x6c,0x69,0x74])](_0xf24359([0x2e]));if(0x3!=_0x404c01[_0xf24359([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c5e61(_0x404c01[0x1]);function _0x3c5e61(_0x30388b){const _0x3aee80=_0x5beb5a(_0x30388b);return _0x3aee80&&_0x301f91()?_0x3aee80:null;function _0x301f91(){const _0x16a60c=_0x3aee80[_0xf24359([0x6a,0x74,0x69])],_0x4ad052=window[_0xf24359([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16a60c[_0xf24359([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16a60c[_0xf24359([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x149e89={..._0x3aee80,[_0xf24359([0x6a,0x74,0x69])]:_0x16a60c[_0xf24359([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x16a60c[_0xf24359([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x149e89[_0xf24359([0x76,0x63])],_0x5921bc(_0x149e89)==_0x4ad052;}}}async function _0x439ac4(){let _0x2581e8=!0x0;try{const _0x36c022=_0x4f64a2[_0xf24359([0x73,0x70,0x6c,0x69,0x74])](_0xf24359([0x2e])),[_0x38dbaf,_0x1b3b11,_0x4894da]=_0x36c022;return _0x51f70b(_0x38dbaf),await _0x1fb06b(_0x38dbaf,_0x1b3b11,_0x4894da),_0x2581e8;}catch{return!0x1;}function _0x51f70b(_0x413b4f){const _0x11163f=_0x5beb5a(_0x413b4f);_0x11163f&&_0x11163f[_0xf24359([0x61,0x6c,0x67])]==_0xf24359([0x45,0x53,0x32,0x35,0x36])||(_0x2581e8=!0x1);}async function _0x1fb06b(_0x193cd3,_0x3acb34,_0x5c2fdc){const _0x23cf6d=window[_0xf24359([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf24359([0x66,0x72,0x6f,0x6d])](_0x53b8b5(_0x5c2fdc),_0xfd74d0=>_0xfd74d0[_0xf24359([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2302d5=new window[(_0xf24359([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf24359([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x193cd3+_0xf24359([0x2e])+_0x3acb34),_0x3667d1=window[_0xf24359([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf24359([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3667d1)return;const _0x3d2f60=await _0x3667d1[_0xf24359([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf24359([0x6a,0x77,0x6b]),_0x1b7b44,{[_0xf24359([0x6e,0x61,0x6d,0x65])]:_0xf24359([0x45,0x43,0x44,0x53,0x41]),[_0xf24359([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf24359([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf24359([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3667d1[_0xf24359([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf24359([0x6e,0x61,0x6d,0x65])]:_0xf24359([0x45,0x43,0x44,0x53,0x41]),[_0xf24359([0x68,0x61,0x73,0x68])]:{[_0xf24359([0x6e,0x61,0x6d,0x65])]:_0xf24359([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d2f60,_0x23cf6d,_0x2302d5)||(_0x2581e8=!0x1);}}function _0x5beb5a(_0x5ce6d7){return _0x5ce6d7[_0xf24359([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf24359([0x65,0x79]))?JSON[_0xf24359([0x70,0x61,0x72,0x73,0x65])](_0x53b8b5(_0x5ce6d7)):null;}function _0x53b8b5(_0x1faa40){return window[_0xf24359([0x61,0x74,0x6f,0x62])](_0x1faa40[_0xf24359([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf24359([0x2b]))[_0xf24359([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf24359([0x2f])));}function _0x5921bc(_0x128abd){let _0x365dbe=0x1505;function _0x514d5d(_0x189762){for(let _0x2b0a38=0x0;_0x2b0a38<_0x189762[_0xf24359([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b0a38++){const _0x11f13c=_0x189762[_0xf24359([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b0a38);_0x365dbe=(_0x365dbe<<0x5)+_0x365dbe+_0x11f13c,_0x365dbe&=_0x365dbe;}}function _0x362e9c(_0x32f966){Array[_0xf24359([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32f966)?_0x32f966[_0xf24359([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x362e9c):_0x32f966&&typeof _0x32f966==_0xf24359([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf24359([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32f966)[_0xf24359([0x73,0x6f,0x72,0x74])]()[_0xf24359([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4193f6,_0x143e1a])=>{_0x514d5d(_0x4193f6),_0x362e9c(_0x143e1a);}):_0x514d5d(window[_0xf24359([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32f966));}return _0x362e9c(_0x128abd),_0x365dbe>>>0x0;}function _0x4dbb5b(_0xa2b289){return _0xa2b289[_0xf24359([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf24359([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf24359([0x30]));}function _0x11de62(_0x46a111){return _0x46a111[_0xf24359([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf24359([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf24359([0x6a,0x6f,0x69,0x6e])]('');}function _0x114732(){}function _0xf24359(_0x9d0877){const _0x2bdac2=_0x48ce;return _0x9d0877[_0x2bdac2(0x1dd)](_0xdedea3=>String[_0x2bdac2(0x1c5)](_0xdedea3))[_0x2bdac2(0x1de)]('');}_0x308642(await _0xacfcd3());}(this);}[_0x37c9ab(0x1c8)](){const _0x326b0b=_0x37c9ab,_0x1e0cd7=this[_0x326b0b(0x1bc)][_0x326b0b(0x1b6)][_0x326b0b(0x1c9)];_0x1e0cd7[_0x326b0b(0x1d3)](_0x326b0b(0x206))&&_0x1e0cd7[_0x326b0b(0x1df)](_0x326b0b(0x206),{'allowAttributes':[_0x326b0b(0x1cd)]}),_0x1e0cd7[_0x326b0b(0x1d3)](_0x326b0b(0x202))&&_0x1e0cd7[_0x326b0b(0x1df)](_0x326b0b(0x202),{'allowAttributes':[_0x326b0b(0x1cd)]});}[_0x37c9ab(0x1e4)](){const _0x3fa233=_0x37c9ab,_0xbf260d=this[_0x3fa233(0x1bc)];_0xbf260d[_0x3fa233(0x1e0)][_0x3fa233(0x1d1)](_0x3fa233(0x1ec))[_0x3fa233(0x1f0)]({'model':_0x3fa233(0x1cd),'view':_0x3fa233(0x1d5)}),_0xbf260d[_0x3fa233(0x1e0)][_0x3fa233(0x1d1)](_0x3fa233(0x1fe))[_0x3fa233(0x1ce)]({'model':{'key':_0x3fa233(0x1cd),'value':_0x9bff11=>_0x9bff11[_0x3fa233(0x1fb)](_0x3fa233(0x1d5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xdc52cd=_0xbf260d[_0x3fa233(0x200)][_0x3fa233(0x1bb)](_0x3fa233(0x1d8));_0xdc52cd&&this[_0x3fa233(0x1e9)](_0xdc52cd,_0x3fa233(0x1b9),(_0x41997c,[_0x1c7bae,_0x61ce48])=>{const _0x588ce8=_0x3fa233;_0x1c7bae[_0x588ce8(0x1c3)](_0x588ce8(0x1cd),_0x61ce48);});}[_0x37c9ab(0x1f7)](){const _0x28646b=_0x37c9ab,_0x319d23=this[_0x28646b(0x1bc)][_0x28646b(0x1f1)][_0x28646b(0x1bb)](_0x28646b(0x1d9))||{},_0x4df865=this[_0x28646b(0x1bc)][_0x28646b(0x1f1)][_0x28646b(0x1bb)](_0x28646b(0x1c6))||'';this[_0x28646b(0x1f5)]=_0x5a6f1b(_0xe231f[_0x28646b(0x1d4)],_0x28646b(0x1bd),{..._0x319d23,'pubkey':_0x4df865,'ctx-name':_0x28646b(0x20a)+this[_0x28646b(0x1ba)],'sourceList':'','imgOnly':_0x28646b(0x204),'removeCopyright':_0x28646b(0x204),'localeName':this[_0x28646b(0x1bc)][_0x28646b(0x201)][_0x28646b(0x1f2)],'externalSourcesEmbedCss':_0x28646b(0x1c1)}),this[_0x28646b(0x1f5)][_0x28646b(0x1cc)]=_0x19be4d=>{const _0x32096d=_0x28646b;if(_0x32096d(0x1b8)==_0x19be4d)return _0x32096d(0x1f3);},_0xe231f[_0x28646b(0x1d4)][_0x28646b(0x1ff)][_0x28646b(0x1f9)](this[_0x28646b(0x1f5)]);}[_0x37c9ab(0x1ea)](){const _0x20d015=_0x37c9ab;this[_0x20d015(0x1ca)]=_0x5a6f1b(_0xe231f[_0x20d015(0x1d4)],_0x20d015(0x1ed),{'ctx-name':_0x20d015(0x20a)+this[_0x20d015(0x1ba)]}),_0xe231f[_0x20d015(0x1d4)][_0x20d015(0x1ff)][_0x20d015(0x1f9)](this[_0x20d015(0x1ca)]);}[_0x37c9ab(0x1cb)](){const _0x1169a1=_0x37c9ab,_0x31c210=this[_0x1169a1(0x1bc)][_0x1169a1(0x200)][_0x1169a1(0x1bb)](_0x1169a1(0x1e2));_0x31c210&&this[_0x1169a1(0x1e9)](_0x31c210,_0x1169a1(0x1c4),()=>{const _0x4bf941=_0x1169a1,_0x782995=this[_0x4bf941(0x1bc)][_0x4bf941(0x1b6)][_0x4bf941(0x1d4)][_0x4bf941(0x1b7)][_0x4bf941(0x1e8)]();_0x782995&&_0x782995[_0x4bf941(0x1fb)](_0x4bf941(0x1cd))&&this[_0x4bf941(0x1bc)][_0x4bf941(0x205)][_0x4bf941(0x1d2)][_0x4bf941(0x1e5)](_0x4bf941(0x1f4),()=>{const _0x5527d4=_0x4bf941;_0x1a9cb9(this[_0x5527d4(0x1bc)],_0x782995);});});const _0x561dd7=this[_0x1169a1(0x1bc)][_0x1169a1(0x200)][_0x1169a1(0x1bb)](_0x1169a1(0x1f8));_0x561dd7&&this[_0x1169a1(0x1e9)](_0x561dd7,_0x1169a1(0x1c4),()=>{const _0x1f14b7=_0x1169a1,_0x966c7=this[_0x1f14b7(0x1bc)][_0x1f14b7(0x1b6)][_0x1f14b7(0x1d4)][_0x1f14b7(0x1b7)][_0x1f14b7(0x1e8)]();_0x966c7&&_0x966c7[_0x1f14b7(0x1fb)](_0x1f14b7(0x1cd))&&this[_0x1f14b7(0x1bc)][_0x1f14b7(0x205)][_0x1f14b7(0x1d2)][_0x1f14b7(0x1e5)](_0x1f14b7(0x1f4),()=>{const _0x476084=_0x1f14b7;_0x1a9cb9(this[_0x476084(0x1bc)],_0x966c7);});});}}
23
+ const _0x11590a=_0x4063;(function(_0x18749a,_0x5c810d){const _0x1ef0d9=_0x4063,_0x288a83=_0x18749a();while(!![]){try{const _0x53974e=parseInt(_0x1ef0d9(0xd7))/0x1*(-parseInt(_0x1ef0d9(0xf8))/0x2)+-parseInt(_0x1ef0d9(0xd6))/0x3+-parseInt(_0x1ef0d9(0xbb))/0x4+-parseInt(_0x1ef0d9(0xc4))/0x5+-parseInt(_0x1ef0d9(0xbc))/0x6*(parseInt(_0x1ef0d9(0xbd))/0x7)+parseInt(_0x1ef0d9(0xcd))/0x8*(-parseInt(_0x1ef0d9(0xd1))/0x9)+parseInt(_0x1ef0d9(0xc7))/0xa;if(_0x53974e===_0x5c810d)break;else _0x288a83['push'](_0x288a83['shift']());}catch(_0x30bbed){_0x288a83['push'](_0x288a83['shift']());}}}(_0x482c,0x6ba77));import{Plugin as _0x593e41}from'ckeditor5/src/core.js';function _0x4063(_0x12b6da,_0xedb96b){const _0x482cb5=_0x482c();return _0x4063=function(_0x4063b6,_0x4ef687){_0x4063b6=_0x4063b6-0xb5;let _0x4e501e=_0x482cb5[_0x4063b6];return _0x4e501e;},_0x4063(_0x12b6da,_0xedb96b);}import{Dialog as _0x4721ad}from'ckeditor5/src/ui.js';import{createElement as _0x5a828a,global as _0x5ca620,uid as _0x56d019}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x36d548}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x26a523}from'./uploadcareuploadadapter.js';function _0x482c(){const _0x51f173=['map','_configElement','editor','imageInline','requires','439142lqROYZ','get','_ctxElement','querySelector','downcast','uploadcare.pubkey','#uc-icon-arrow-down','uc-upload-ctx-provider','configElement','selection','imageBlock','iconHrefResolver','upcast','attributeToAttribute','UploadcareEditing','insertImage','uploadcareImageId','fromCharCode','remove','schema','afterInit','editing','isRegistered','elementToAttribute','1544456EcGxNT','12GAuPig','2794267Cdvtqn','pluginName','getAttribute','closeMax','ucContextId','extend','\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','1589155gmAHVW','_initCtx','_initConversion','25668620BPtWvM','uploader-','model','isOfficialPlugin','render','destroy','16HFewHf','for','input[uploadcare-file-input]','body','353547CMJoLC','contentLanguage','locale','isPremiumPlugin','uploadcare','317688xuqupc','2HoAUiP','add','listenTo','cleanupImage','commands','document','true','uc-config','replaceImageSource','getSelectedElement','_initConfig','PictureEditing','join','_initSchema','conversion','appendChild','config','uploadcare.uploader','href','ctxElement','init','removeAttribute','_initImageProcessingIndicator','uploadcareImageReplace','view','data-uc-image-id','once','execute'];_0x482c=function(){return _0x51f173;};return _0x482c();}import{showImageProcessingIndicator as _0x724a6a}from'./utils/editingutils.js';export class UploadcareEditing extends _0x593e41{[_0x11590a(0xf4)]=null;[_0x11590a(0xfa)]=null;static get[_0x11590a(0xbe)](){const _0x91bad6=_0x11590a;return _0x91bad6(0x106);}static get[_0x11590a(0xf7)](){const _0x5b0d2c=_0x11590a;return[_0x5b0d2c(0xe2),_0x26a523,_0x4721ad];}static get[_0x11590a(0xca)](){return!0x0;}static get[_0x11590a(0xd4)](){return!0x0;}[_0x11590a(0xc1)];get[_0x11590a(0x100)](){const _0x489360=_0x11590a;return this[_0x489360(0xf4)];}get[_0x11590a(0xea)](){const _0x7a7d6c=_0x11590a;return this[_0x7a7d6c(0xfa)];}constructor(_0x14a1e1){const _0x56902e=_0x11590a;super(_0x14a1e1),this[_0x56902e(0xc1)]=_0x56d019();}[_0x11590a(0xeb)](){const _0x3786ce=_0x11590a,_0x35acf3=this[_0x3786ce(0xf5)];_0x35acf3[_0x3786ce(0xdb)][_0x3786ce(0xd8)](_0x3786ce(0xd5),new _0x36d548(_0x35acf3));}[_0x11590a(0xb7)](){const _0x28a44f=_0x11590a;this[_0x28a44f(0xe4)](),this[_0x28a44f(0xc6)](),this[_0x28a44f(0xe1)](),this[_0x28a44f(0xc5)](),this[_0x28a44f(0xed)](),this[_0x28a44f(0xd9)](this[_0x28a44f(0xf5)],_0x28a44f(0xcc),()=>{const _0x2034c7=_0x28a44f;this[_0x2034c7(0xf4)]&&(this[_0x2034c7(0xf4)][_0x2034c7(0xb5)](),this[_0x2034c7(0xf4)]=null),this[_0x2034c7(0xfa)]&&(this[_0x2034c7(0xfa)][_0x2034c7(0xb5)](),this[_0x2034c7(0xfa)]=null);const _0x4fb97e=_0x5ca620[_0x2034c7(0xdc)][_0x2034c7(0xfb)](_0x2034c7(0xcf));_0x4fb97e&&_0x4fb97e[_0x2034c7(0xb5)]();}),async function(_0x3b77e6){const _0x4f35b1=_0x10917e([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x41d67a=0x535f8c3a,_0x156b66=0x5358f4f2^_0x41d67a,_0x56e9b9=window[_0x10917e([0x44,0x61,0x74,0x65])][_0x10917e([0x6e,0x6f,0x77])](),_0x4e16a7=_0x3b77e6[_0x10917e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5f57e2=new window[(_0x10917e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fa870=>{_0x4e16a7[_0x10917e([0x6f,0x6e,0x63,0x65])](_0x10917e([0x72,0x65,0x61,0x64,0x79]),_0x2fa870);}),_0x1b7b6c={[_0x10917e([0x6b,0x74,0x79])]:_0x10917e([0x45,0x43]),[_0x10917e([0x75,0x73,0x65])]:_0x10917e([0x73,0x69,0x67]),[_0x10917e([0x63,0x72,0x76])]:_0x10917e([0x50,0x2d,0x32,0x35,0x36]),[_0x10917e([0x78])]:_0x10917e([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]),[_0x10917e([0x79])]:_0x10917e([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]),[_0x10917e([0x61,0x6c,0x67])]:_0x10917e([0x45,0x53,0x32,0x35,0x36])},_0xe7eca3=_0x4e16a7[_0x10917e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x10917e([0x67,0x65,0x74])](_0x10917e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3456ef(){let _0xeb99b6,_0x19c063=null,_0x210fea=null;try{if(_0xe7eca3==_0x10917e([0x47,0x50,0x4c]))return _0x10917e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xeb99b6=_0x24a2b7(),!_0xeb99b6)return _0x10917e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xeb99b6[_0x10917e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x210fea=_0x55d0d1(_0xeb99b6[_0x10917e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xeb99b6[_0x10917e([0x6a,0x74,0x69])])),await _0x10afbe()?_0x2b8d58()?_0x4dca79()?_0x10917e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3f50c8()?(_0xeb99b6[_0x10917e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10917e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19c063=_0x8aba21(_0x10917e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xeb99b6[_0x10917e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10917e([0x74,0x72,0x69,0x61,0x6c])&&(_0x19c063=_0x8aba21(_0x10917e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x130f4d()):_0x10917e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x10917e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x10917e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x10917e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4dca79(){const _0x99c6cc=[_0x10917e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x10917e([0x74,0x72,0x69,0x61,0x6c])][_0x10917e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xeb99b6[_0x10917e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56e9b9/0x3e8:0xe10*_0x156b66;return _0xeb99b6[_0x10917e([0x65,0x78,0x70])]<_0x99c6cc;}function _0x2b8d58(){const _0x21d167=_0xeb99b6[_0x10917e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x21d167&&(!!_0x21d167[_0x10917e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10917e([0x2a]))||!!_0x21d167[_0x10917e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10917e([0x55,0x50,0x4c,0x43])));}function _0x3f50c8(){const _0x388c58=_0x4063,_0x1536ac=_0xeb99b6[_0x10917e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1536ac||0x0==_0x1536ac[_0x10917e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b7bfa}=new URL(window[_0x10917e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x388c58(0xe9)]);if(_0x1536ac[_0x10917e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b7bfa))return!0x0;const _0x1f7cdc=_0x5b7bfa[_0x10917e([0x73,0x70,0x6c,0x69,0x74])](_0x10917e([0x2e]));return _0x1536ac[_0x10917e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d0679=>_0x2d0679[_0x10917e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10917e([0x2a])))[_0x10917e([0x6d,0x61,0x70])](_0x19b650=>_0x19b650[_0x10917e([0x73,0x70,0x6c,0x69,0x74])](_0x10917e([0x2e])))[_0x10917e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46dbc1=>_0x46dbc1[_0x10917e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1f7cdc[_0x10917e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10917e([0x6d,0x61,0x70])](_0x4727b4=>Array(_0x1f7cdc[_0x10917e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4727b4[_0x10917e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10917e([0x66,0x69,0x6c,0x6c])](_0x4727b4[0x0]===_0x10917e([0x2a])?_0x10917e([0x2a]):'')[_0x10917e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4727b4))[_0x10917e([0x73,0x6f,0x6d,0x65])](_0x1558a9=>_0x1f7cdc[_0x10917e([0x65,0x76,0x65,0x72,0x79])]((_0x2be7a4,_0x42a9f3)=>_0x1558a9[_0x42a9f3]===_0x2be7a4||_0x1558a9[_0x42a9f3]===_0x10917e([0x2a])));}function _0x130f4d(){return _0x19c063&&_0x210fea?new window[(_0x10917e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14b815,_0x33c67d)=>{_0x19c063[_0x10917e([0x74,0x68,0x65,0x6e])](_0x14b815,_0x33c67d),_0x210fea[_0x10917e([0x74,0x68,0x65,0x6e])](_0x40b4ca=>{_0x40b4ca!=_0x10917e([0x56,0x61,0x6c,0x69,0x64])&&_0x14b815(_0x40b4ca);},_0x33c67d);}):_0x19c063||_0x210fea||_0x10917e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55d0d1(_0x305663,_0x37abc3){return new window[(_0x10917e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e8978=>{if(_0x5e1947())return _0x4e8978(_0x10917e([0x56,0x61,0x6c,0x69,0x64]));_0xcdcb1d(),_0x4e16a7[_0x10917e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x10917e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7c268f=!0x1;const _0x305e89=_0x56d019();function _0x169712(_0x286dc5){return!!_0x286dc5&&(typeof _0x286dc5===_0x10917e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x286dc5===_0x10917e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x286dc5[_0x10917e([0x74,0x68,0x65,0x6e])]===_0x10917e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x286dc5[_0x10917e([0x63,0x61,0x74,0x63,0x68])]===_0x10917e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47332a(_0x1510b7){_0x3cb8b7(_0x1510b7)[_0x10917e([0x74,0x68,0x65,0x6e])](_0x45b859=>{if(!_0x45b859||_0x45b859[_0x10917e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x10917e([0x6f,0x6b]))return _0x10917e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f7e87(_0x590541(_0x305e89+_0x37abc3))!=_0x45b859[_0x10917e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x10917e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x10917e([0x56,0x61,0x6c,0x69,0x64]);})[_0x10917e([0x74,0x68,0x65,0x6e])](_0x2d8ada=>(_0x9c0085(),_0x2d8ada),()=>{const _0x355d13=_0x3b026e();return null==_0x355d13?(_0x9c0085(),_0x10917e([0x56,0x61,0x6c,0x69,0x64])):_0x10917e(_0x56e9b9-_0x355d13>(0x7753083a^_0x41d67a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x10917e([0x74,0x68,0x65,0x6e])](_0x4e8978)[_0x10917e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e8978(_0x10917e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15cdfd=0x536962ba^_0x41d67a;function _0x9c0085(){const _0x2829f7=_0x10917e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f7e87(_0x590541(_0x305663)),_0x5d56d2=_0x8c7db3(_0x3f7e87(window[_0x10917e([0x4d,0x61,0x74,0x68])][_0x10917e([0x63,0x65,0x69,0x6c])](_0x56e9b9/_0x15cdfd)));window[_0x10917e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10917e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2829f7,_0x5d56d2);}function _0x3b026e(){const _0x53bcd9=_0x10917e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f7e87(_0x590541(_0x305663)),_0x11e87f=window[_0x10917e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10917e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53bcd9);return _0x11e87f?window[_0x10917e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8c7db3(_0x11e87f),0x10)*_0x15cdfd:null;}function _0x3cb8b7(_0x5b826c){return new window[(_0x10917e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x367a31,_0x53ae81)=>{_0x5b826c[_0x10917e([0x74,0x68,0x65,0x6e])](_0x367a31,_0x53ae81),window[_0x10917e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53ae81,0x535e58fa^_0x41d67a);});}}_0x4e16a7[_0x10917e([0x6f,0x6e])](_0x10917e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x100c43,_0x28110f)=>{if(_0x28110f[0x0]!=_0x305663)return _0x4e8978(_0x10917e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x28110f[0x1]={..._0x28110f[0x1],[_0x10917e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x305e89};},{[_0x10917e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10917e([0x68,0x69,0x67,0x68])}),_0x4e16a7[_0x10917e([0x6f,0x6e])](_0x10917e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1469c2=>{_0x169712(_0x1469c2[_0x10917e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7c268f=!0x0,_0x47332a(_0x1469c2[_0x10917e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x10917e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10917e([0x6c,0x6f,0x77])}),_0x5f57e2[_0x10917e([0x74,0x68,0x65,0x6e])](()=>{_0x7c268f||_0x4e8978(_0x10917e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e1947(){return _0x4e16a7[_0x10917e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10917e([0x76,0x69,0x65,0x77])][_0x10917e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x10917e([0x61,0x75,0x74,0x6f]);}function _0xcdcb1d(){_0x4e16a7[_0x10917e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10917e([0x76,0x69,0x65,0x77])][_0x10917e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10917e([0x61,0x75,0x74,0x6f]);}}function _0x8aba21(_0x5eda21){const _0x331efd=[new window[(_0x10917e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26a0e3=>setTimeout(_0x26a0e3,0x5356b2f6^_0x41d67a)),_0x5f57e2[_0x10917e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x10917e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a0450=>{let _0x4ea5b2=0x0;_0x4e16a7[_0x10917e([0x6d,0x6f,0x64,0x65,0x6c])][_0x10917e([0x6f,0x6e])](_0x10917e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c332e,_0x27fd05)=>{_0x27fd05[0x0][_0x10917e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4ea5b2++,_0x4ea5b2==(0x535f8dc2^_0x41d67a)&&(_0x4a0450(),_0x1c332e[_0x10917e([0x6f,0x66,0x66])]());});}))];return window[_0x10917e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10917e([0x72,0x61,0x63,0x65])](_0x331efd)[_0x10917e([0x74,0x68,0x65,0x6e])](()=>_0x5eda21);}async function _0x8c39d3(){await _0x5f57e2,_0x4e16a7[_0x10917e([0x6d,0x6f,0x64,0x65,0x6c])][_0x10917e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd86dc0,_0x4e16a7[_0x10917e([0x6d,0x6f,0x64,0x65,0x6c])][_0x10917e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd86dc0,_0x4e16a7[_0x10917e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x10917e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x61218f(_0x522dc8){const _0x1f8587=_0x47dee4();_0x4e16a7[_0x1f8587]=_0x10917e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x522dc8,_0x522dc8!=_0x10917e([0x56,0x61,0x6c,0x69,0x64])&&_0x8c39d3();}function _0x47dee4(){const _0x55ff27=window[_0x10917e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x10917e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x10917e([0x6e,0x6f,0x77])]())[_0x10917e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x10917e([0x2e]),'');let _0x524965=_0x10917e([0x68]);for(let _0x53f51c=0x0;_0x53f51c<_0x55ff27[_0x10917e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53f51c+=0x2){let _0x29c55d=window[_0x10917e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55ff27[_0x10917e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53f51c,_0x53f51c+0x2));_0x29c55d>=_0x4f35b1[_0x10917e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29c55d-=_0x4f35b1[_0x10917e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x524965+=_0x4f35b1[_0x29c55d];}return _0x524965;}function _0x24a2b7(){const _0x59f9d3=_0xe7eca3[_0x10917e([0x73,0x70,0x6c,0x69,0x74])](_0x10917e([0x2e]));if(0x3!=_0x59f9d3[_0x10917e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49e99b(_0x59f9d3[0x1]);function _0x49e99b(_0x28fa26){const _0x2f1ea7=_0x5816ef(_0x28fa26);return _0x2f1ea7&&_0x48be05()?_0x2f1ea7:null;function _0x48be05(){const _0x204067=_0x2f1ea7[_0x10917e([0x6a,0x74,0x69])],_0x356489=window[_0x10917e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x204067[_0x10917e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x204067[_0x10917e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1ac38e={..._0x2f1ea7,[_0x10917e([0x6a,0x74,0x69])]:_0x204067[_0x10917e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x204067[_0x10917e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1ac38e[_0x10917e([0x76,0x63])],_0x590541(_0x1ac38e)==_0x356489;}}}async function _0x10afbe(){let _0x1213e1=!0x0;try{const _0xc72684=_0xe7eca3[_0x10917e([0x73,0x70,0x6c,0x69,0x74])](_0x10917e([0x2e])),[_0x56fd8e,_0x13984c,_0x19052a]=_0xc72684;return _0x23b9cb(_0x56fd8e),await _0x8c718(_0x56fd8e,_0x13984c,_0x19052a),_0x1213e1;}catch{return!0x1;}function _0x23b9cb(_0xadc4c7){const _0x379760=_0x5816ef(_0xadc4c7);_0x379760&&_0x379760[_0x10917e([0x61,0x6c,0x67])]==_0x10917e([0x45,0x53,0x32,0x35,0x36])||(_0x1213e1=!0x1);}async function _0x8c718(_0x52368e,_0x45bfbc,_0x51ca5b){const _0x438b3b=window[_0x10917e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x10917e([0x66,0x72,0x6f,0x6d])](_0x5ba0ef(_0x51ca5b),_0x1e39f6=>_0x1e39f6[_0x10917e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f271c=new window[(_0x10917e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x10917e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52368e+_0x10917e([0x2e])+_0x45bfbc),_0x38353f=window[_0x10917e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x10917e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x38353f)return;const _0x478727=await _0x38353f[_0x10917e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x10917e([0x6a,0x77,0x6b]),_0x1b7b6c,{[_0x10917e([0x6e,0x61,0x6d,0x65])]:_0x10917e([0x45,0x43,0x44,0x53,0x41]),[_0x10917e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x10917e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x10917e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x38353f[_0x10917e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x10917e([0x6e,0x61,0x6d,0x65])]:_0x10917e([0x45,0x43,0x44,0x53,0x41]),[_0x10917e([0x68,0x61,0x73,0x68])]:{[_0x10917e([0x6e,0x61,0x6d,0x65])]:_0x10917e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x478727,_0x438b3b,_0x2f271c)||(_0x1213e1=!0x1);}}function _0x5816ef(_0x471b5d){return _0x471b5d[_0x10917e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x10917e([0x65,0x79]))?JSON[_0x10917e([0x70,0x61,0x72,0x73,0x65])](_0x5ba0ef(_0x471b5d)):null;}function _0x5ba0ef(_0x3af03b){return window[_0x10917e([0x61,0x74,0x6f,0x62])](_0x3af03b[_0x10917e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x10917e([0x2b]))[_0x10917e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x10917e([0x2f])));}function _0x590541(_0x30a88d){let _0x5ed852=0x1505;function _0x2de164(_0x1fb52c){for(let _0x141faa=0x0;_0x141faa<_0x1fb52c[_0x10917e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x141faa++){const _0x4a1015=_0x1fb52c[_0x10917e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x141faa);_0x5ed852=(_0x5ed852<<0x5)+_0x5ed852+_0x4a1015,_0x5ed852&=_0x5ed852;}}function _0x3dec2e(_0x276b98){Array[_0x10917e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x276b98)?_0x276b98[_0x10917e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3dec2e):_0x276b98&&typeof _0x276b98==_0x10917e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x10917e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x276b98)[_0x10917e([0x73,0x6f,0x72,0x74])]()[_0x10917e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x426560,_0x43e37a])=>{_0x2de164(_0x426560),_0x3dec2e(_0x43e37a);}):_0x2de164(window[_0x10917e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x276b98));}return _0x3dec2e(_0x30a88d),_0x5ed852>>>0x0;}function _0x3f7e87(_0x3addad){return _0x3addad[_0x10917e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x10917e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x10917e([0x30]));}function _0x8c7db3(_0x440ffb){return _0x440ffb[_0x10917e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x10917e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x10917e([0x6a,0x6f,0x69,0x6e])]('');}function _0xd86dc0(){}function _0x10917e(_0x2047fe){const _0xb4f368=_0x4063;return _0x2047fe[_0xb4f368(0xf3)](_0x3f9235=>String[_0xb4f368(0x109)](_0x3f9235))[_0xb4f368(0xe3)]('');}_0x61218f(await _0x3456ef());}(this);}[_0x11590a(0xe4)](){const _0x39a6a2=_0x11590a,_0x322926=this[_0x39a6a2(0xf5)][_0x39a6a2(0xc9)][_0x39a6a2(0xb6)];_0x322926[_0x39a6a2(0xb9)](_0x39a6a2(0x102))&&_0x322926[_0x39a6a2(0xc2)](_0x39a6a2(0x102),{'allowAttributes':[_0x39a6a2(0x108)]}),_0x322926[_0x39a6a2(0xb9)](_0x39a6a2(0xf6))&&_0x322926[_0x39a6a2(0xc2)](_0x39a6a2(0xf6),{'allowAttributes':[_0x39a6a2(0x108)]});}[_0x11590a(0xc6)](){const _0x4ed56b=_0x11590a,_0x28af0a=this[_0x4ed56b(0xf5)];_0x28af0a[_0x4ed56b(0xe5)][_0x4ed56b(0xce)](_0x4ed56b(0xfc))[_0x4ed56b(0x105)]({'model':_0x4ed56b(0x108),'view':_0x4ed56b(0xf0)}),_0x28af0a[_0x4ed56b(0xe5)][_0x4ed56b(0xce)](_0x4ed56b(0x104))[_0x4ed56b(0xba)]({'model':{'key':_0x4ed56b(0x108),'value':_0x3b9b09=>_0x3b9b09[_0x4ed56b(0xbf)](_0x4ed56b(0xf0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1f8a00=_0x28af0a[_0x4ed56b(0xdb)][_0x4ed56b(0xf9)](_0x4ed56b(0xdf));_0x1f8a00&&this[_0x4ed56b(0xd9)](_0x1f8a00,_0x4ed56b(0xda),(_0x288037,[_0xb88a21,_0x4a4e64])=>{const _0x2c31b1=_0x4ed56b;_0xb88a21[_0x2c31b1(0xec)](_0x2c31b1(0x108),_0x4a4e64);});}[_0x11590a(0xe1)](){const _0x2b2efa=_0x11590a,_0x50766a=this[_0x2b2efa(0xf5)][_0x2b2efa(0xe7)][_0x2b2efa(0xf9)](_0x2b2efa(0xe8))||{},_0x2ada1a=this[_0x2b2efa(0xf5)][_0x2b2efa(0xe7)][_0x2b2efa(0xf9)](_0x2b2efa(0xfd))||'';this[_0x2b2efa(0xf4)]=_0x5a828a(_0x5ca620[_0x2b2efa(0xdc)],_0x2b2efa(0xde),{..._0x50766a,'pubkey':_0x2ada1a,'ctx-name':_0x2b2efa(0xc8)+this[_0x2b2efa(0xc1)],'sourceList':'','imgOnly':_0x2b2efa(0xdd),'removeCopyright':_0x2b2efa(0xdd),'localeName':this[_0x2b2efa(0xf5)][_0x2b2efa(0xd3)][_0x2b2efa(0xd2)],'externalSourcesEmbedCss':_0x2b2efa(0xc3)}),this[_0x2b2efa(0xf4)][_0x2b2efa(0x103)]=_0x14770f=>{const _0x19050e=_0x2b2efa;if(_0x19050e(0xc0)==_0x14770f)return _0x19050e(0xfe);},_0x5ca620[_0x2b2efa(0xdc)][_0x2b2efa(0xd0)][_0x2b2efa(0xe6)](this[_0x2b2efa(0xf4)]);}[_0x11590a(0xc5)](){const _0x12be94=_0x11590a;this[_0x12be94(0xfa)]=_0x5a828a(_0x5ca620[_0x12be94(0xdc)],_0x12be94(0xff),{'ctx-name':_0x12be94(0xc8)+this[_0x12be94(0xc1)]}),_0x5ca620[_0x12be94(0xdc)][_0x12be94(0xd0)][_0x12be94(0xe6)](this[_0x12be94(0xfa)]);}[_0x11590a(0xed)](){const _0x187177=_0x11590a,_0x52a03e=this[_0x187177(0xf5)][_0x187177(0xdb)][_0x187177(0xf9)](_0x187177(0x107));_0x52a03e&&this[_0x187177(0xd9)](_0x52a03e,_0x187177(0xf2),()=>{const _0xce5547=_0x187177,_0x185c4e=this[_0xce5547(0xf5)][_0xce5547(0xc9)][_0xce5547(0xdc)][_0xce5547(0x101)][_0xce5547(0xe0)]();_0x185c4e&&_0x185c4e[_0xce5547(0xbf)](_0xce5547(0x108))&&this[_0xce5547(0xf5)][_0xce5547(0xb8)][_0xce5547(0xef)][_0xce5547(0xf1)](_0xce5547(0xcb),()=>{const _0x277f43=_0xce5547;_0x724a6a(this[_0x277f43(0xf5)],_0x185c4e);});});const _0x41e9d2=this[_0x187177(0xf5)][_0x187177(0xdb)][_0x187177(0xf9)](_0x187177(0xee));_0x41e9d2&&this[_0x187177(0xd9)](_0x41e9d2,_0x187177(0xf2),()=>{const _0x4f0a7f=_0x187177,_0x2cb2b3=this[_0x4f0a7f(0xf5)][_0x4f0a7f(0xc9)][_0x4f0a7f(0xdc)][_0x4f0a7f(0x101)][_0x4f0a7f(0xe0)]();_0x2cb2b3&&_0x2cb2b3[_0x4f0a7f(0xbf)](_0x4f0a7f(0x108))&&this[_0x4f0a7f(0xf5)][_0x4f0a7f(0xb8)][_0x4f0a7f(0xef)][_0x4f0a7f(0xf1)](_0x4f0a7f(0xcb),()=>{const _0x39f5f2=_0x4f0a7f;_0x724a6a(this[_0x39f5f2(0xf5)],_0x2cb2b3);});});}}