@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250419.0 → 0.0.0-nightly-20250420.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 _0x1f42cb,Command as _0x1ca8ff}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5dac89,IconGooglePhotos as _0x312629,IconGoogleDrive as _0x28aa6b,IconFacebook as _0x559d1f,IconDropbox as _0x131536,IconUploadcareLink as _0x1927b8,IconUploadcareImageUpload as _0x24de54,IconError as et,IconUploadcareImageEdit as _0x139a16}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5a3886,MenuBarMenuListItemButtonView as _0x58792a,View as _0x29ee13,FocusCycler as _0x453680,Dialog as _0x4f3ba5,DialogViewPosition as _0x5bf1f5,SpinnerView as _0x1bd628,IconView as at,Notification as _0xc036da}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1ebd7e,DomEmitterMixin as _0x4fa9ea,global as _0x4bac32,getAncestors as _0x370063,ObservableMixin as _0x2ad78d,createElement as _0x1f4e92,uid as _0x3e617b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x79e3cf}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x56445e,info as _0x5d8e0d}from'@uploadcare/upload-client';import*as _0x224ebb from'@uploadcare/file-uploader';var o=function(_0xa77fd7){return _0xa77fd7['Local']='local',_0xa77fd7['URL']='url',_0xa77fd7['Dropbox']='dropbox',_0xa77fd7['GDrive']='gdrive',_0xa77fd7['Facebook']='facebook',_0xa77fd7['GPhotos']='gphotos',_0xa77fd7['OneDrive']='onedrive',_0xa77fd7;}({});function _(_0x193110,_0x1ebc62,_0x2fdeff){const t=_0x193110['t'],_0x374b6c=_0x193110['t'];switch(_0x1ebc62){case o['Local']:return{'text':_0x374b6c('Insert'===_0x2fdeff?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x374b6c('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x2fdeff?_0x374b6c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x374b6c('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x2fdeff?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x2fdeff?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x2fdeff?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x2fdeff?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x2fdeff?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1ebc62;}}class e extends _0x1f42cb{['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 _0x426fec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x29796a;for(const _0x159815 in _0x426fec){const _0x1efd5a=_0x159815,_0xb571c3=_0x426fec[_0x1efd5a];if('uploadcareLicenseKeyValid'==_0xb571c3||'uploadcareLicenseKeyInvalid'==_0xb571c3||'uploadcareLicenseKeyExpired'==_0xb571c3||'uploadcareLicenseKeyDomainLimit'==_0xb571c3||'uploadcareLicenseKeyNotAllowed'==_0xb571c3||'uploadcareLicenseKeyEvaluationLimit'==_0xb571c3||'uploadcareLicenseKeyTrialLimit'==_0xb571c3||'uploadcareLicenseKeyUsageLimit'==_0xb571c3){delete _0x426fec[_0x1efd5a],_0x29796a=_0xb571c3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x29796a&&_0x426fec['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x29796a&&_0x426fec['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x29796a&&_0x426fec['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x29796a&&_0x426fec['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x29796a&&_0x426fec['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x29796a&&_0x426fec['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x29796a&&_0x426fec['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2edf28}=this,_0x15d814=_0x2edf28['commands']['get']('uploadcare');if(!_0x15d814)return;const _0x353707=this['_normalizeConfigSourceList'](_0x2edf28['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x38884c,_0x221c40)=>{const _0x1e439e=this['_getIntegrationKey'](_0x221c40['type']);return _0x38884c[_0x1e439e]||(_0x38884c[_0x1e439e]=[]),_0x38884c[_0x1e439e]['push'](_0x221c40),_0x38884c;},{});_0x2edf28['plugins']['has']('ImageInsertUI')&&_0x2edf28['commands']['get']('uploadcare')&&Object['entries'](_0x353707)['forEach'](([_0x5b3ecd,_0xfd573c])=>{_0x2edf28['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5b3ecd,'observable':()=>_0x15d814,'buttonViewCreator':()=>this['_createToolbarButton'](_0xfd573c),'formViewCreator':()=>this['_createDropdownButtons'](_0xfd573c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xfd573c),'override':'assetManager'!==_0x5b3ecd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3a4def){const {locale:_0x2166ea}=this['editor'];return _0x3a4def['map'](_0x34e577=>{const _0x1aac7a=_(_0x2166ea,_0x34e577,'Insert');switch(_0x34e577){case o['Local']:return{'icon':_0x24de54,'type':o['Local'],..._0x1aac7a};case o['URL']:return{'icon':_0x1927b8,'type':o['URL'],..._0x1aac7a};case o['Dropbox']:return{'icon':_0x131536,'type':o['Dropbox'],..._0x1aac7a};case o['Facebook']:return{'icon':_0x559d1f,'type':o['Facebook'],..._0x1aac7a};case o['GDrive']:return{'icon':_0x28aa6b,'type':o['GDrive'],..._0x1aac7a};case o['GPhotos']:return{'icon':_0x312629,'type':o['GPhotos'],..._0x1aac7a};case o['OneDrive']:return{'icon':_0x5dac89,'type':o['OneDrive'],..._0x1aac7a};}});}['_getIntegrationKey'](_0x435722){switch(_0x435722){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2808b8,_0x42a5e5){const _0x3b31b5=this['editor'],_0xf84faf=new _0x2808b8(_0x3b31b5['locale']),_0x2a4ef4=_0x3b31b5['commands']['get']('uploadcare');return _0xf84faf['bind']('isEnabled')['to'](_0x2a4ef4),_0xf84faf['on']('execute',()=>{_0x2a4ef4['execute'](_0x42a5e5);}),_0xf84faf;}['_createToolbarButton'](_0x5f1c54){const {locale:_0x440ff5}=this['editor'],_0x189748=this['editor']['plugins']['get']('ImageInsertUI'),_0x245055=_0x5f1c54[0x0],_0x389632=this['_createButton'](_0x5a3886,_0x245055['type']);return _0x389632['icon']=_0x245055['icon'],_0x389632['bind']('label')['to'](_0x189748,'isImageSelected',_0x5aaef1=>_(_0x440ff5,_0x245055['type'],_0x5aaef1?'Replace':'Insert')['text']),_0x389632['tooltip']=!0x0,_0x389632;}['_createDropdownButtons'](_0x1091bd){const {locale:_0x303c0f}=this['editor'],_0x2cc402=this['editor']['plugins']['get']('ImageInsertUI');return _0x1091bd['map'](_0x4b1e05=>{const _0x74ab0d=this['_createButton'](_0x5a3886,_0x4b1e05['type']);return _0x74ab0d['withText']=!0x0,_0x74ab0d['icon']=_0x4b1e05['icon'],_0x74ab0d['bind']('label')['to'](_0x2cc402,'isImageSelected',_0x5ecd3f=>_(_0x303c0f,_0x4b1e05['type'],_0x5ecd3f?'Replace':'Insert')['text']),_0x74ab0d;});}['_createMenuBarButtons'](_0x2b803a){return _0x2b803a['map'](_0x28a681=>{const _0x5b1f46=this['_createButton'](_0x58792a,_0x28a681['type']);return _0x5b1f46['icon']=_0x28a681['icon'],_0x5b1f46['label']=_0x28a681['shortText'],_0x5b1f46;});}}class q extends _0x29ee13{['focusTracker'];['focusCycler'];constructor(_0x3be045){super(_0x3be045),this['focusTracker']=new _0x1ebd7e(),this['focusCycler']=new _0x453680({'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 S extends q{constructor(_0x1aa28b){super(_0x1aa28b),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x3d7539,_0x4c6366){const _0x498dd3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3d2516=>_0x3d2516<=_0x4c6366)['map'](_0x52ebe1=>_0x3d7539['replace'](/\/$/,'')+'/-/resize/'+_0x52ebe1+'x/\x20'+_0x52ebe1+'w');return{'imageFallbackUrl':_0x3d7539,'imageSources':[{'srcset':_0x498dd3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4c6366+'px)\x20100vw,\x20'+_0x4c6366+'px','type':'image/webp'}]};}function A(_0x383473,_0x5612aa,_0x543619){const _0x105690=_0x383473['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x105690?parseInt(_0x105690[0x1],0xa):_0x5612aa,'height':_0x105690?parseInt(_0x105690[0x2],0xa):_0x543619};}function m(_0x342953,_0x5e7d82){const _0x1870a0=Object['create'](_0x4fa9ea),_0xbd9579=_0x342953['plugins']['get']('ImageUtils'),_0x57261e=_0x342953['editing']['mapper']['toViewElement'](_0x5e7d82),_0x451757=_0xbd9579['findViewImgElement'](_0x57261e),_0x416b8d=_0x342953['editing']['view']['domConverter']['viewToDom'](_0x451757),_0x206f20=_0x5e7d82['getAttribute']('width'),_0x307133=_0x5e7d82['getAttribute']('height'),_0x3cad29='image-processing';_0x342953['editing']['view']['change'](_0x44a914=>{_0x44a914['addClass'](_0x3cad29,_0x57261e),_0x44a914['setStyle']('aspect-ratio',_0x206f20+'/'+_0x307133,_0x451757);}),_0x1870a0['listenTo'](_0x416b8d,'load',()=>{_0x1870a0['stopListening'](_0x416b8d,'load'),_0x342953['editing']['view']['change'](_0x333196=>{_0x333196['removeClass'](_0x3cad29,_0x57261e),_0x333196['removeStyle']('aspect-ratio',_0x451757);});});}function V(_0x146cf0){if(Array['isArray'](_0x146cf0)){const _0x220070=_0x146cf0['map'](V);return _0x1b8d1d=>_0x220070['some'](_0x33765c=>_0x33765c(_0x1b8d1d));}if('origin'==_0x146cf0){const _0x3a4495=_0x4bac32['window']['location']['origin'];return _0x49bc54=>new URL(_0x49bc54,_0x4bac32['document']['baseURI'])['origin']==_0x3a4495;}return'function'==typeof _0x146cf0?_0x146cf0:_0x146cf0 instanceof RegExp?_0x35b1a9=>!(!_0x35b1a9['match'](_0x146cf0)&&!_0x35b1a9['replace'](/^https?:\/\//,'')['match'](_0x146cf0)):()=>!0x1;}function F(_0x163233,_0x46015f){return _0x370063(_0x163233['target'])['includes'](_0x46015f);}class l extends/* #__PURE__ -- @preserve */
24
- _0x2ad78d(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x7124a6,_0x17504f,_0x442ac8){super(),this['_editor']=_0x7124a6,this['_editing']=_0x17504f,this['_dialog']=_0x7124a6['plugins']['get'](_0x4f3ba5),this['_api']=_0x17504f['ctxElement']['getAPI'](),this['_type']=_0x442ac8,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:_0x30414c,model:_0x49cfd1}=this['_editor'],_0xadf67e=_0x49cfd1['document']['selection']['getSelectedElement'](),_0x10e3cf=_0xadf67e&&(_0xadf67e['is']('element','imageBlock')||_0xadf67e['is']('element','imageInline'));this['_formView']=new S(_0x30414c),this['_dialog']['show']({'id':'uploadCare','icon':_0x24de54,'title':_(_0x30414c,this['_type'],_0x10e3cf?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5bf1f5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2244a9=>!F(_0x2244a9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3a2b89}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4bf86a=>{const _0x1cd9c2=_0x3a2b89['length'];for(const _0x30faa9 of _0x3a2b89){const _0x5e8d82=_0x30faa9===_0x3a2b89[_0x1cd9c2-0x1],{cdnUrl:_0x2477db,fileInfo:_0x2c93ac}=_0x30faa9;if(!_0x2477db||!_0x2c93ac)continue;const {width:_0x1d972f,height:_0x1efc81}=_0x2c93ac['imageInfo'],_0x10607c=A(_0x2477db,_0x1d972f,_0x1efc81),_0x3f8d62=E(_0x2477db,_0x10607c['width']),_0x55fc7d={'id':_0x2c93ac['uuid'],'type':'image','attributes':{'imageDimension':_0x10607c,..._0x3f8d62}};this['_insertAsset'](_0x55fc7d,_0x5e8d82,_0x4bf86a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x327025=>{'idle'===_0x327025['detail']['status']&&!_0x327025['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x514755,_0x43e1fd,_0x25e1da){const _0x506ebf=this['_editor']['model']['document']['selection'],_0x51f8e7=_0x506ebf['getSelectedElement'](),_0x4ee019=!(!_0x51f8e7||!_0x51f8e7['is']('element','imageInline'));_0x25e1da['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x514755,_0x4ee019),_0x43e1fd||_0x25e1da['setSelection'](_0x506ebf['getLastPosition']());}['_insertImage'](_0x436384,_0x364e28){const _0x4c086d=this['_editor'],{imageDimension:_0x5e8398,imageFallbackUrl:_0x4726e0,imageSources:_0x5c57ff}=_0x436384['attributes'];_0x4c086d['execute']('insertImage',{'imageType':_0x364e28?'imageInline':null,'source':{'uploadcareImageId':_0x436384['id'],'src':_0x4726e0,'sources':_0x5c57ff,..._0x5e8398}});}}class n extends _0x1ca8ff{['_editing'];['_controller']=null;static get['requires'](){return[_0x4f3ba5,i];}constructor(_0x240118){super(_0x240118),this['_editing']=_0x240118['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5104a9){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5104a9);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x81d82a,publicKey:_0x3b3f3d,signal:_0x3b171f,onProgress:_0x415122}){return _0x56445e(_0x81d82a,{'publicKey':_0x3b3f3d,'store':'auto','signal':_0x3b171f,'onProgress':_0x415122});}static['getInfo'](_0x4ededb,_0x58b434){return _0x5d8e0d(_0x4ededb,_0x58b434);}}class p extends _0x1f42cb{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x79e3cf,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x514d1f=this['editor'];if(!!!_0x514d1f['config']['get']('uploadcare'))return;_0x514d1f['plugins']['get'](_0x79e3cf)['createUploadAdapter']=_0x2fc556=>new x(_0x2fc556,_0x514d1f),_0x514d1f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x10c149,{imageElement:_0x36ff22,data:_0x44714f})=>{_0x514d1f['model']['change'](_0x4c8fe8=>{_0x4c8fe8['setAttribute']('uploadcareImageId',_0x44714f['uploadcareImageId'],_0x36ff22);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x3a4c2c,_0x2a7c8d){this['loader']=_0x3a4c2c,this['editor']=_0x2a7c8d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x11c201=this['editor']['config']['get']('uploadcare.pubkey'),_0x145b80=await this['loader']['file'];return C['upload']({'file':_0x145b80,'publicKey':_0x11c201,'signal':this['controller']['signal'],'onProgress':_0x1df0cc=>{_0x1df0cc&&_0x1df0cc['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1df0cc['value']);}})['then'](async _0x33fa4b=>{const {imageFallbackUrl:_0x29b646,imageSources:_0x275a1a}=E(_0x33fa4b['cdnUrl'],_0x33fa4b['imageInfo']['width']);return{'uploadcareImageId':_0x33fa4b['uuid'],'default':_0x29b646,'sources':_0x275a1a};})['catch'](()=>{const _0x2575b5=t('Cannot\x20upload\x20file:')+('\x20'+_0x145b80['name']+'.');return Promise['reject'](_0x2575b5);});}['abort'](){this['controller']['abort']();}}class i extends _0x1f42cb{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4f3ba5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x5d3100=this['editor'];_0x5d3100['commands']['add']('uploadcare',new n(_0x5d3100));}['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 _0x22e34e=_0x4bac32['document']['querySelector']('input[uploadcare-file-input]');_0x22e34e&&_0x22e34e['remove']();}),async function(_0x4f2400){const _0x151de0=_0x1e97da([0x32,0x39,0x76,0x43,0x67,0x6c,0x46,0x38,0x4a,0x4f,0x58,0x4e,0x78,0x6d,0x36,0x70,0x4b,0x48,0x52,0x75,0x42,0x6b,0x53,0x30,0x55,0x71,0x41,0x6e,0x51,0x44,0x61,0x5a,0x65,0x6a,0x45,0x77,0x31,0x73,0x7a,0x56,0x59,0x4c,0x57,0x35,0x6f,0x37,0x33,0x79,0x49,0x62,0x4d,0x50,0x74,0x72,0x66,0x47,0x69,0x68,0x34,0x54,0x63,0x64]),_0x1852e9=0x59c3e1f,_0x1dffcb=0x59b5b67^_0x1852e9,_0x2476ed=window[_0x1e97da([0x44,0x61,0x74,0x65])][_0x1e97da([0x6e,0x6f,0x77])](),_0x3bf657=_0x4f2400[_0x1e97da([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6ad1a5=new window[(_0x1e97da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44bb58=>{_0x3bf657[_0x1e97da([0x6f,0x6e,0x63,0x65])](_0x1e97da([0x72,0x65,0x61,0x64,0x79]),_0x44bb58);}),_0x1d6757={[_0x1e97da([0x6b,0x74,0x79])]:_0x1e97da([0x45,0x43]),[_0x1e97da([0x75,0x73,0x65])]:_0x1e97da([0x73,0x69,0x67]),[_0x1e97da([0x63,0x72,0x76])]:_0x1e97da([0x50,0x2d,0x32,0x35,0x36]),[_0x1e97da([0x78])]:_0x1e97da([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]),[_0x1e97da([0x79])]:_0x1e97da([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]),[_0x1e97da([0x61,0x6c,0x67])]:_0x1e97da([0x45,0x53,0x32,0x35,0x36])},_0x5a9fc8=_0x3bf657[_0x1e97da([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e97da([0x67,0x65,0x74])](_0x1e97da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3108f9(){let _0x574e43,_0x592c36=null,_0x1e57bc=null;try{if(_0x5a9fc8==_0x1e97da([0x47,0x50,0x4c]))return _0x1e97da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x574e43=_0x2c9a1d(),!_0x574e43)return _0x1e97da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x574e43[_0x1e97da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e57bc=_0x5cea5e(_0x574e43[_0x1e97da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x574e43[_0x1e97da([0x6a,0x74,0x69])])),await _0x5223ef()?_0x63e8e7()?_0x227fd4()?_0x1e97da([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b4b64()?(_0x574e43[_0x1e97da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e97da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x592c36=_0x13e584(_0x1e97da([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x574e43[_0x1e97da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e97da([0x74,0x72,0x69,0x61,0x6c])&&(_0x592c36=_0x13e584(_0x1e97da([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16a1a9()):_0x1e97da([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e97da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e97da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x6dcd0d){return _0x1e97da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x227fd4(){const _0xf5cdf9=[_0x1e97da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e97da([0x74,0x72,0x69,0x61,0x6c])][_0x1e97da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x574e43[_0x1e97da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2476ed/0x3e8:0xe10*_0x1dffcb;return _0x574e43[_0x1e97da([0x65,0x78,0x70])]<_0xf5cdf9;}function _0x63e8e7(){const _0x4baeb2=_0x574e43[_0x1e97da([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4baeb2&&(!!_0x4baeb2[_0x1e97da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e97da([0x2a]))||!!_0x4baeb2[_0x1e97da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e97da([0x55,0x50,0x4c,0x43])));}function _0x1b4b64(){const _0x88867a=_0x574e43[_0x1e97da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x88867a||0x0==_0x88867a[_0x1e97da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4db785}=new URL(window[_0x1e97da([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x88867a[_0x1e97da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db785))return!0x0;const _0x48bfe3=_0x4db785[_0x1e97da([0x73,0x70,0x6c,0x69,0x74])](_0x1e97da([0x2e]));return _0x88867a[_0x1e97da([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x580627=>_0x580627[_0x1e97da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e97da([0x2a])))[_0x1e97da([0x6d,0x61,0x70])](_0x1c87fe=>_0x1c87fe[_0x1e97da([0x73,0x70,0x6c,0x69,0x74])](_0x1e97da([0x2e])))[_0x1e97da([0x73,0x6f,0x6d,0x65])](_0xea98e=>_0x48bfe3[_0x1e97da([0x65,0x76,0x65,0x72,0x79])]((_0x390998,_0x4b92ac)=>_0xea98e[_0x4b92ac]===_0x390998||_0xea98e[_0x4b92ac]===_0x1e97da([0x2a])));}function _0x16a1a9(){return _0x592c36&&_0x1e57bc?new window[(_0x1e97da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3266c5,_0x105eb1)=>{_0x592c36[_0x1e97da([0x74,0x68,0x65,0x6e])](_0x3266c5,_0x105eb1),_0x1e57bc[_0x1e97da([0x74,0x68,0x65,0x6e])](_0x13848c=>{_0x13848c!=_0x1e97da([0x56,0x61,0x6c,0x69,0x64])&&_0x3266c5(_0x13848c);},_0x105eb1);}):_0x592c36||_0x1e57bc||_0x1e97da([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5cea5e(_0x59123e,_0x26134f){return new window[(_0x1e97da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d311f=>{if(_0xe76056())return _0x2d311f(_0x1e97da([0x56,0x61,0x6c,0x69,0x64]));_0x1fdb5a(),_0x3bf657[_0x1e97da([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e97da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e0e05=!0x1;const _0x388711=_0x3e617b();function _0x623142(_0x2f11ac){return!!_0x2f11ac&&(typeof _0x2f11ac===_0x1e97da([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f11ac===_0x1e97da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f11ac[_0x1e97da([0x74,0x68,0x65,0x6e])]===_0x1e97da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f11ac[_0x1e97da([0x63,0x61,0x74,0x63,0x68])]===_0x1e97da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3465ce(_0x40615b){_0x290a1f(_0x40615b)[_0x1e97da([0x74,0x68,0x65,0x6e])](_0x25a201=>{if(!_0x25a201||_0x25a201[_0x1e97da([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e97da([0x6f,0x6b]))return _0x1e97da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c9807(_0x2827f3(_0x388711+_0x26134f))!=_0x25a201[_0x1e97da([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e97da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e97da([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e97da([0x74,0x68,0x65,0x6e])](_0x53bcc4=>(_0x2baac1(),_0x53bcc4),()=>{const _0x421d7e=_0x3b0595();return null==_0x421d7e?(_0x2baac1(),_0x1e97da([0x56,0x61,0x6c,0x69,0x64])):_0x1e97da(_0x2476ed-_0x421d7e>(0x2190ba1f^_0x1852e9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e97da([0x74,0x68,0x65,0x6e])](_0x2d311f)[_0x1e97da([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d311f(_0x1e97da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x48ffec=0x5aad09f^_0x1852e9;function _0x2baac1(){const _0x55e990=_0x1e97da([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c9807(_0x2827f3(_0x59123e)),_0x3eb6e3=_0x32f15f(_0x1c9807(window[_0x1e97da([0x4d,0x61,0x74,0x68])][_0x1e97da([0x63,0x65,0x69,0x6c])](_0x2476ed/_0x48ffec)));window[_0x1e97da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e97da([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55e990,_0x3eb6e3);}function _0x3b0595(){const _0x28ccbe=_0x1e97da([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c9807(_0x2827f3(_0x59123e)),_0x8a6df=window[_0x1e97da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e97da([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28ccbe);return _0x8a6df?window[_0x1e97da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32f15f(_0x8a6df),0x10)*_0x48ffec:null;}function _0x290a1f(_0x4c2c5e){return new window[(_0x1e97da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a4925,_0x5874ef)=>{_0x4c2c5e[_0x1e97da([0x74,0x68,0x65,0x6e])](_0x5a4925,_0x5874ef),window[_0x1e97da([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5874ef,0x59deadf^_0x1852e9);});}}_0x3bf657[_0x1e97da([0x6f,0x6e])](_0x1e97da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x517afb,_0xd8f233)=>{if(_0xd8f233[0x0]!=_0x59123e)return _0x2d311f(_0x1e97da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd8f233[0x1]={..._0xd8f233[0x1],[_0x1e97da([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x388711};},{[_0x1e97da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e97da([0x68,0x69,0x67,0x68])}),_0x3bf657[_0x1e97da([0x6f,0x6e])](_0x1e97da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x342ae3=>{_0x623142(_0x342ae3[_0x1e97da([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e0e05=!0x0,_0x3465ce(_0x342ae3[_0x1e97da([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e97da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e97da([0x6c,0x6f,0x77])}),_0x6ad1a5[_0x1e97da([0x74,0x68,0x65,0x6e])](()=>{_0x1e0e05||_0x2d311f(_0x1e97da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe76056(){return _0x3bf657[_0x1e97da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e97da([0x76,0x69,0x65,0x77])][_0x1e97da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e97da([0x61,0x75,0x74,0x6f]);}function _0x1fdb5a(){_0x3bf657[_0x1e97da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e97da([0x76,0x69,0x65,0x77])][_0x1e97da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e97da([0x61,0x75,0x74,0x6f]);}}function _0x13e584(_0x2c0a6e){const _0x382e10=[new window[(_0x1e97da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x419bb8=>setTimeout(_0x419bb8,0x59500d3^_0x1852e9)),_0x6ad1a5[_0x1e97da([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e97da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cfc47=>{let _0x12fd11=0x0;_0x3bf657[_0x1e97da([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e97da([0x6f,0x6e])](_0x1e97da([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a656d,_0x1e712b)=>{_0x1e712b[0x0][_0x1e97da([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x12fd11++,_0x12fd11==(0x59c3fe7^_0x1852e9)&&(_0x5cfc47(),_0x4a656d[_0x1e97da([0x6f,0x66,0x66])]());});}))];return window[_0x1e97da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e97da([0x72,0x61,0x63,0x65])](_0x382e10)[_0x1e97da([0x74,0x68,0x65,0x6e])](()=>_0x2c0a6e);}async function _0x43461a(){await _0x6ad1a5,_0x3bf657[_0x1e97da([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e97da([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f8859,_0x3bf657[_0x1e97da([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e97da([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f8859,_0x3bf657[_0x1e97da([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e97da([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x551e30(_0x3d25f6){const _0x149f09=_0x15d44b();_0x3bf657[_0x149f09]=_0x1e97da([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3d25f6,_0x3d25f6!=_0x1e97da([0x56,0x61,0x6c,0x69,0x64])&&_0x43461a();}function _0x15d44b(){const _0xaee93e=window[_0x1e97da([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e97da([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e97da([0x6e,0x6f,0x77])]())[_0x1e97da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e97da([0x2e]),'');let _0x5d0e61=_0x1e97da([0x76]);for(let _0x403912=0x0;_0x403912<_0xaee93e[_0x1e97da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x403912+=0x2){let _0x3869c6=window[_0x1e97da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xaee93e[_0x1e97da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x403912,_0x403912+0x2));_0x3869c6>=_0x151de0[_0x1e97da([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3869c6-=_0x151de0[_0x1e97da([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d0e61+=_0x151de0[_0x3869c6];}return _0x5d0e61;}function _0x2c9a1d(){const _0x2cfabb=_0x5a9fc8[_0x1e97da([0x73,0x70,0x6c,0x69,0x74])](_0x1e97da([0x2e]));if(0x3!=_0x2cfabb[_0x1e97da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5dd857(_0x2cfabb[0x1]);function _0x5dd857(_0x3b4778){const _0x3c7028=_0x46530b(_0x3b4778);return _0x3c7028&&_0x724478()?_0x3c7028:null;function _0x724478(){const _0x358f95=_0x3c7028[_0x1e97da([0x6a,0x74,0x69])],_0x1016c2=window[_0x1e97da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x358f95[_0x1e97da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x358f95[_0x1e97da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xfb7197={..._0x3c7028,[_0x1e97da([0x6a,0x74,0x69])]:_0x358f95[_0x1e97da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x358f95[_0x1e97da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xfb7197[_0x1e97da([0x76,0x63])],_0x2827f3(_0xfb7197)==_0x1016c2;}}}async function _0x5223ef(){let _0xbb075d=!0x0;try{const _0x225cdd=_0x5a9fc8[_0x1e97da([0x73,0x70,0x6c,0x69,0x74])](_0x1e97da([0x2e])),[_0x22bcc1,_0x496605,_0x4d1a31]=_0x225cdd;return _0x1243fd(_0x22bcc1),await _0x572467(_0x22bcc1,_0x496605,_0x4d1a31),_0xbb075d;}catch(_0x4c7833){return!0x1;}function _0x1243fd(_0xe15ad8){const _0xc00104=_0x46530b(_0xe15ad8);_0xc00104&&_0xc00104[_0x1e97da([0x61,0x6c,0x67])]==_0x1e97da([0x45,0x53,0x32,0x35,0x36])||(_0xbb075d=!0x1);}async function _0x572467(_0x2633fa,_0x45b61d,_0x3f9eee){const _0x2777d4=window[_0x1e97da([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e97da([0x66,0x72,0x6f,0x6d])](_0x50be20(_0x3f9eee),_0x267aa7=>_0x267aa7[_0x1e97da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x108618=new window[(_0x1e97da([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e97da([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2633fa+_0x1e97da([0x2e])+_0x45b61d),_0x571327=window[_0x1e97da([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e97da([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x571327)return;const _0x199b0b=await _0x571327[_0x1e97da([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e97da([0x6a,0x77,0x6b]),_0x1d6757,{[_0x1e97da([0x6e,0x61,0x6d,0x65])]:_0x1e97da([0x45,0x43,0x44,0x53,0x41]),[_0x1e97da([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e97da([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e97da([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x571327[_0x1e97da([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e97da([0x6e,0x61,0x6d,0x65])]:_0x1e97da([0x45,0x43,0x44,0x53,0x41]),[_0x1e97da([0x68,0x61,0x73,0x68])]:{[_0x1e97da([0x6e,0x61,0x6d,0x65])]:_0x1e97da([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x199b0b,_0x2777d4,_0x108618)||(_0xbb075d=!0x1);}}function _0x46530b(_0x44476a){return _0x44476a[_0x1e97da([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e97da([0x65,0x79]))?JSON[_0x1e97da([0x70,0x61,0x72,0x73,0x65])](_0x50be20(_0x44476a)):null;}function _0x50be20(_0x524747){return window[_0x1e97da([0x61,0x74,0x6f,0x62])](_0x524747[_0x1e97da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e97da([0x2b]))[_0x1e97da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e97da([0x2f])));}function _0x2827f3(_0x1d4f58){let _0x9ed74f=0x1505;function _0x43ca7a(_0xe8bce9){for(let _0x7716e2=0x0;_0x7716e2<_0xe8bce9[_0x1e97da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7716e2++){const _0x2fbbbd=_0xe8bce9[_0x1e97da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x7716e2);_0x9ed74f=(_0x9ed74f<<0x5)+_0x9ed74f+_0x2fbbbd,_0x9ed74f&=_0x9ed74f;}}function _0x19dadf(_0x60b017){Array[_0x1e97da([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x60b017)?_0x60b017[_0x1e97da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19dadf):_0x60b017&&typeof _0x60b017==_0x1e97da([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e97da([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x60b017)[_0x1e97da([0x73,0x6f,0x72,0x74])]()[_0x1e97da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x14860e,_0x4fe90c])=>{_0x43ca7a(_0x14860e),_0x19dadf(_0x4fe90c);}):_0x43ca7a(window[_0x1e97da([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x60b017));}return _0x19dadf(_0x1d4f58),_0x9ed74f>>>0x0;}function _0x1c9807(_0x30ef86){return _0x30ef86[_0x1e97da([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e97da([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e97da([0x30]));}function _0x32f15f(_0x137bea){return _0x137bea[_0x1e97da([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e97da([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e97da([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f8859(){}function _0x1e97da(_0x7c6f90){return _0x7c6f90['map'](_0xdc9d0e=>String['fromCharCode'](_0xdc9d0e))['join']('');}_0x551e30(await _0x3108f9());}(this);}['_initSchema'](){const _0x8ac939=this['editor']['model']['schema'];_0x8ac939['isRegistered']('imageBlock')&&_0x8ac939['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x8ac939['isRegistered']('imageInline')&&_0x8ac939['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x259b9e=this['editor'];_0x259b9e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x259b9e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x123214=>_0x123214['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5db56b=_0x259b9e['commands']['get']('replaceImageSource');_0x5db56b&&this['listenTo'](_0x5db56b,'cleanupImage',(_0x3fca3b,[_0x2ba64c,_0x358643])=>{_0x2ba64c['removeAttribute']('uploadcareImageId',_0x358643);});}['_initConfig'](){const _0x30576b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2acd05=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1f4e92(_0x4bac32['document'],'uc-config',{..._0x30576b,'pubkey':_0x2acd05,'ctx-name':'uploader','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']=_0x4fb7f3=>{if('closeMax'==_0x4fb7f3)return'#uc-icon-arrow-down';},_0x4bac32['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1f4e92(_0x4bac32['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4bac32['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x21af9c=this['editor']['commands']['get']('insertImage');_0x21af9c&&this['listenTo'](_0x21af9c,'execute',()=>{const _0x1cad6f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1cad6f&&_0x1cad6f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1cad6f);});});const _0x2e97df=this['editor']['commands']['get']('uploadcareImageReplace');_0x2e97df&&this['listenTo'](_0x2e97df,'execute',()=>{const _0x39a8f4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x39a8f4&&_0x39a8f4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x39a8f4);});});}}class u extends _0x1f42cb{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12128d){super(_0x12128d),_0x12128d['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x224ebb['defineComponents'](_0x224ebb);}}class ta extends _0x29ee13{constructor(_0x33a4b6){super(_0x33a4b6);const t=_0x33a4b6['t'],_0x55557c=this['bindTemplate'],_0x3889b9=new _0x1bd628();_0x3889b9['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':[_0x3889b9,{'text':_0x55557c['to']('imageUploadProgress',_0x470a0d=>t('Loading\x20image...')+'\x20('+(_0x470a0d||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 rt extends _0x29ee13{constructor(_0x39a467){super(_0x39a467);const t=_0x39a467['t'];this['set']('errorType',null);const _0x498bcf=new _0x5a3886(_0x39a467);_0x498bcf['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x498bcf['withText']=!0x0,_0x498bcf['class']='ck-button-action',_0x498bcf['on']('execute',()=>{this['fire']('retry');}),_0x498bcf['bind']('isVisible')['to'](this,'errorType',_0x11f8c2=>'NotFound'!==_0x11f8c2);const _0x4b6e06=new at();_0x4b6e06['content']=et,_0x4b6e06['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x348d6b=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':[_0x4b6e06,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x348d6b['to']('errorType',_0x2f9f18=>t('NotFound'!==_0x2f9f18?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x498bcf]},{'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 tt extends _0x29ee13{constructor(_0x56d4cc,_0x3531f8){super(_0x56d4cc);const _0x2ce125=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3531f8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2ce125['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x297ba7,_0x5aa332,_0x2c0113){super(_0x297ba7),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x297ba7),this['_errorView']=new rt(_0x297ba7),this['_editingView']=new tt(_0x297ba7,_0x2c0113),this['_focusableView']=new _0x29ee13(_0x297ba7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5aa332),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'],_0x236616=>{this['_addUploadcareImageEditorListeners'](_0x236616);});}),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'](_0x26ac5a,_0x3c26e5){const _0x1f02d5='uc-cloud-image-editor',_0x39d681=_0x26ac5a['querySelector'](_0x1f02d5);if(_0x39d681)return _0x3c26e5(_0x39d681);const _0x23e8aa=new MutationObserver(_0x4700c2=>{const _0x462268=_0x4700c2['filter'](_0x1e2630=>_0x1e2630['target']===_0x26ac5a&&_0x1e2630['addedNodes']['length']>0x0&&_0x1e2630['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1f02d5);_0x462268['length']&&(_0x23e8aa['disconnect'](),_0x3c26e5(_0x462268[0x0]['addedNodes'][0x0]));});_0x23e8aa['observe'](_0x26ac5a,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4c8831){_0x4c8831['addEventListener']('apply',_0x311cda=>{this['fire']('apply',{'imageSrc':_0x311cda['detail']['cdnUrl']});}),_0x4c8831['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x2ad78d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5aaf86,_0x4a23d9,_0x370e04){super(),this['_editor']=_0x5aaf86,this['_dialog']=_0x4a23d9,this['_imageElement']=_0x370e04,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 _0x27022b=this['_imageElement'],_0x254a45=_0x27022b['getAttribute']('uploadcareImageId'),_0x4bb6dc=_0x27022b['getAttribute']('src');if(_0x254a45)await this['_loadImageInfo'](_0x254a45,_0x4bb6dc);else{if(this['_imageCache']['has'](_0x4bb6dc)){const _0x518ddb=this['_imageCache']['get'](_0x4bb6dc);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x518ddb['url'],this['imageDimension']=_0x518ddb['dimension'],this['imageId']=_0x518ddb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1ecbef}=this['_editor'],t=_0x1ecbef['t'],_0x1dbf3a=new Z(_0x1ecbef,this['imageStatus'],this['_attributes']);_0x1dbf3a['bind']('status')['to'](this,'imageStatus'),_0x1dbf3a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1dbf3a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1dbf3a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1dbf3a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x139a16,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1dbf3a,'position':_0x5bf1f5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1dbf3a['focus']();},'onHide':()=>{_0x1dbf3a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3bbc35=>!F(_0x3bbc35,_0x1dbf3a['element'])}});}['_loadImageInfo'](_0x448907,_0x110ea2){return C['getInfo'](_0x448907,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1481ff=>{const {width:_0x4e6e27,height:_0x317143}=_0x1481ff['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x110ea2,this['imageDimension']={'width':_0x4e6e27,'height':_0x317143},this['imageId']=_0x448907;})['catch'](_0x3a5b2e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3a5b2e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x58dd14,_0x4bb9e7){return this['_getImageAsFile'](_0x58dd14)['then'](_0x3e1438=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4bb9e7['signal'],'file':_0x3e1438,'onProgress':_0x266182=>{_0x266182&&_0x266182['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x266182['value']));}}))['then'](_0x3be237=>{const {width:_0x14fe0f,height:_0x107b72}=_0x3be237['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3be237['cdnUrl'],this['imageDimension']={'width':_0x14fe0f,'height':_0x107b72},this['imageId']=_0x3be237['uuid'],this['imageUploadProgress']=null;const _0x4348ff=_0x58dd14['getAttribute']('src');this['_imageCache']['set'](_0x4348ff,{'id':_0x3be237['uuid'],'url':_0x3be237['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2b471e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2b471e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xcb9ff6,_0x290783){_0xcb9ff6['on']('apply',(_0x2eb59d,_0x16f4b3)=>{this['_replaceImage'](_0x290783,_0x16f4b3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xcb9ff6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xcb9ff6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x211908,_0x41436c,_0x10b60f){const _0x553b73=this['_editor'],{width:_0x5d2c2b,height:_0x768ee9}=A(_0x41436c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x38c66a,imageSources:_0x42925f}=E(_0x41436c,_0x5d2c2b);_0x553b73['model']['change'](_0x4d3f8d=>{if('$graveyard'===_0x211908['root']['rootName']){_0x553b73['execute']('insertImage',{'imageType':_0x211908['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x211908['getAttributes']()),'uploadcareImageId':_0x10b60f,'src':_0x38c66a,'sources':_0x42925f,'width':_0x5d2c2b,'height':_0x768ee9}});const _0x3edff7=_0x211908['getChildren']();_0x211908=_0x553b73['model']['document']['selection']['getSelectedElement']();for(const _0x385761 of _0x3edff7)_0x4d3f8d['append'](_0x4d3f8d['cloneElement'](_0x385761),_0x211908);}else _0x4d3f8d['setSelection'](_0x211908,'on'),_0x553b73['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x211908['getAttributes']()),'uploadcareImageId':_0x10b60f,'src':_0x38c66a,'sources':_0x42925f,'width':_0x5d2c2b,'height':_0x768ee9},_0x211908);_0x4d3f8d['setSelection'](_0x211908,'on');});}async['_getImageAsFile'](_0x30fd3b){const _0x19d20c=_0x4bac32['window'],_0x33630b=_0x4bac32['document']['location']['href'],_0x123454=new _0x19d20c['URL'](_0x30fd3b['getAttribute']('src'),_0x33630b);if('data:'===_0x123454['protocol']){const _0xcef5c4=_0x123454['href']['split'](','),_0xa5182=_0xcef5c4[0x0]['match'](/:(.*?);/)[0x1],_0x3996a8=_0xa5182['split']('/')[0x1],_0x267290=_0x19d20c['atob'](_0xcef5c4[_0xcef5c4['length']-0x1]);let _0x2b7121=_0x267290['length'];const _0x3640b5=new _0x19d20c['Uint8Array'](_0x2b7121);for(;_0x2b7121--;)_0x3640b5[_0x2b7121]=_0x267290['charCodeAt'](_0x2b7121);return new _0x19d20c['File']([_0x3640b5],'image.'+_0x3996a8,{'type':_0xa5182});}const _0x198e18=_0x123454['href']['split']('/'),_0x13128b=_0x198e18[_0x198e18['length']-0x1],_0xae9629=_0x13128b['split']('.')[0x1];return _0x19d20c['fetch'](_0x123454['href'])['then'](_0x5c17ae=>_0x5c17ae['clone']()['blob']())['then'](_0x353c35=>new _0x19d20c['File']([_0x353c35],_0x13128b,{'type':'image/'+_0xae9629}));}}class J extends _0x1ca8ff{['imageEditController'];static get['requires'](){return[_0x4f3ba5];}['_isEditable'];constructor(_0x484bbd){super(_0x484bbd),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5ac0e5){const _0x3371d0=V(_0x5ac0e5);return _0x3fd21a=>!(!_0x3fd21a||!_0x3fd21a['is']('element','imageBlock')&&!_0x3fd21a['is']('element','imageInline'))&&(!!_0x3fd21a['hasAttribute']('uploadcareImageId')||!!_0x3fd21a['hasAttribute']('src')&&_0x3371d0(_0x3fd21a['getAttribute']('src')));}(_0x484bbd['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x53078d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x53078d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x25b9d9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x25b9d9&&(_0x25b9d9['is']('element','imageBlock')||_0x25b9d9['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4f3ba5),_0x25b9d9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1ca8ff{['refresh'](){const _0x37d379=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x37d379&&(_0x37d379['is']('element','imageBlock')||_0x37d379['is']('element','imageInline')));}['execute'](_0x5f0227){const _0x5eab7d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5cbb02=>{_0x5cbb02['setAttributes'](_0x5f0227,_0x5eab7d),_0x5cbb02['removeAttribute']('srcset',_0x5eab7d),_0x5cbb02['removeAttribute']('sizes',_0x5eab7d);});}}class g extends _0x1f42cb{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xc036da,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5e2db8}=this;_0x5e2db8['commands']['add']('uploadcareImageEdit',new J(_0x5e2db8)),_0x5e2db8['commands']['add']('uploadcareImageReplace',new O(_0x5e2db8));}}class j extends _0x1f42cb{['_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 _0x48c7e3=this['editor'];_0x48c7e3['ui']['componentFactory']['add']('uploadcareImageEdit',_0x145ec4=>{const _0x14073f=_0x48c7e3['commands']['get']('uploadcareImageEdit'),_0x12b707=new _0x5a3886(_0x145ec4),t=_0x145ec4['t'];return _0x12b707['set']({'icon':_0x139a16,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x12b707['bind']('isEnabled')['to'](_0x14073f),_0x12b707['bind']('isOn')['to'](_0x14073f,'isActive'),this['listenTo'](_0x12b707,'execute',()=>{_0x48c7e3['execute']('uploadcareImageEdit'),_0x48c7e3['editing']['view']['focus']();}),_0x12b707;}),this['_initConfig']();}['_initConfig'](){const _0x1e9029=_0x1f4e92(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1e9029),this['listenTo'](this['editor'],'destroy',()=>{_0x1e9029['remove']();});}}class P extends _0x1f42cb{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0x3364da,Command as _0x56586c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3747a3,IconGooglePhotos as _0x1de4f2,IconGoogleDrive as _0x24f9d0,IconFacebook as _0x282921,IconDropbox as _0x32ace1,IconUploadcareLink as _0x1a4bc0,IconUploadcareImageUpload as _0x39e4ef,IconError as et,IconUploadcareImageEdit as _0x63ddd2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1e4dbe,MenuBarMenuListItemButtonView as _0xd446b5,View as _0x1f8171,FocusCycler as _0x4853b9,Dialog as _0x519e77,DialogViewPosition as _0x2b4795,SpinnerView as _0x399cd1,IconView as at,Notification as _0x3c5717}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xd04ef8,DomEmitterMixin as _0x3d12af,global as _0x5c5795,getAncestors as _0x4b8384,ObservableMixin as _0x2d1207,createElement as _0x5f20d7,uid as _0x496501}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x154a69}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5e3943,info as _0x5a100f}from'@uploadcare/upload-client';import*as _0x297f65 from'@uploadcare/file-uploader';var o=function(_0x3dbe29){return _0x3dbe29['Local']='local',_0x3dbe29['URL']='url',_0x3dbe29['Dropbox']='dropbox',_0x3dbe29['GDrive']='gdrive',_0x3dbe29['Facebook']='facebook',_0x3dbe29['GPhotos']='gphotos',_0x3dbe29['OneDrive']='onedrive',_0x3dbe29;}({});function _(_0x324a84,_0x397b25,_0x438f4b){const t=_0x324a84['t'],_0x145366=_0x324a84['t'];switch(_0x397b25){case o['Local']:return{'text':_0x145366('Insert'===_0x438f4b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x145366('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x438f4b?_0x145366('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x145366('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x438f4b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x438f4b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x438f4b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x438f4b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x438f4b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x397b25;}}class e extends _0x3364da{['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 _0x12be54=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1261c2;for(const _0x2b683c in _0x12be54){const _0x11b171=_0x2b683c,_0x1e41bb=_0x12be54[_0x11b171];if('uploadcareLicenseKeyValid'==_0x1e41bb||'uploadcareLicenseKeyInvalid'==_0x1e41bb||'uploadcareLicenseKeyExpired'==_0x1e41bb||'uploadcareLicenseKeyDomainLimit'==_0x1e41bb||'uploadcareLicenseKeyNotAllowed'==_0x1e41bb||'uploadcareLicenseKeyEvaluationLimit'==_0x1e41bb||'uploadcareLicenseKeyTrialLimit'==_0x1e41bb||'uploadcareLicenseKeyUsageLimit'==_0x1e41bb){delete _0x12be54[_0x11b171],_0x1261c2=_0x1e41bb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1261c2&&_0x12be54['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1261c2&&_0x12be54['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1261c2&&_0x12be54['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1261c2&&_0x12be54['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1261c2&&_0x12be54['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1261c2&&_0x12be54['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1261c2&&_0x12be54['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4da7b4}=this,_0x3ba6f6=_0x4da7b4['commands']['get']('uploadcare');if(!_0x3ba6f6)return;const _0x2c627c=this['_normalizeConfigSourceList'](_0x4da7b4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3bfb17,_0x23c9b2)=>{const _0x1b214b=this['_getIntegrationKey'](_0x23c9b2['type']);return _0x3bfb17[_0x1b214b]||(_0x3bfb17[_0x1b214b]=[]),_0x3bfb17[_0x1b214b]['push'](_0x23c9b2),_0x3bfb17;},{});_0x4da7b4['plugins']['has']('ImageInsertUI')&&_0x4da7b4['commands']['get']('uploadcare')&&Object['entries'](_0x2c627c)['forEach'](([_0x5062a2,_0x3ea70b])=>{_0x4da7b4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5062a2,'observable':()=>_0x3ba6f6,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3ea70b),'formViewCreator':()=>this['_createDropdownButtons'](_0x3ea70b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3ea70b),'override':'assetManager'!==_0x5062a2});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xc65b30){const {locale:_0xa792c3}=this['editor'];return _0xc65b30['map'](_0xfc6169=>{const _0x4a8a49=_(_0xa792c3,_0xfc6169,'Insert');switch(_0xfc6169){case o['Local']:return{'icon':_0x39e4ef,'type':o['Local'],..._0x4a8a49};case o['URL']:return{'icon':_0x1a4bc0,'type':o['URL'],..._0x4a8a49};case o['Dropbox']:return{'icon':_0x32ace1,'type':o['Dropbox'],..._0x4a8a49};case o['Facebook']:return{'icon':_0x282921,'type':o['Facebook'],..._0x4a8a49};case o['GDrive']:return{'icon':_0x24f9d0,'type':o['GDrive'],..._0x4a8a49};case o['GPhotos']:return{'icon':_0x1de4f2,'type':o['GPhotos'],..._0x4a8a49};case o['OneDrive']:return{'icon':_0x3747a3,'type':o['OneDrive'],..._0x4a8a49};}});}['_getIntegrationKey'](_0x6c3973){switch(_0x6c3973){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5d5f26,_0x2db1b1){const _0xe39db7=this['editor'],_0x508c93=new _0x5d5f26(_0xe39db7['locale']),_0x52138d=_0xe39db7['commands']['get']('uploadcare');return _0x508c93['bind']('isEnabled')['to'](_0x52138d),_0x508c93['on']('execute',()=>{_0x52138d['execute'](_0x2db1b1);}),_0x508c93;}['_createToolbarButton'](_0x3096a1){const {locale:_0x54db28}=this['editor'],_0x3d30df=this['editor']['plugins']['get']('ImageInsertUI'),_0x54010a=_0x3096a1[0x0],_0x139ed7=this['_createButton'](_0x1e4dbe,_0x54010a['type']);return _0x139ed7['icon']=_0x54010a['icon'],_0x139ed7['bind']('label')['to'](_0x3d30df,'isImageSelected',_0x134fb5=>_(_0x54db28,_0x54010a['type'],_0x134fb5?'Replace':'Insert')['text']),_0x139ed7['tooltip']=!0x0,_0x139ed7;}['_createDropdownButtons'](_0x5be771){const {locale:_0x5a553d}=this['editor'],_0x27eb0c=this['editor']['plugins']['get']('ImageInsertUI');return _0x5be771['map'](_0x204313=>{const _0x53f418=this['_createButton'](_0x1e4dbe,_0x204313['type']);return _0x53f418['withText']=!0x0,_0x53f418['icon']=_0x204313['icon'],_0x53f418['bind']('label')['to'](_0x27eb0c,'isImageSelected',_0x5534c6=>_(_0x5a553d,_0x204313['type'],_0x5534c6?'Replace':'Insert')['text']),_0x53f418;});}['_createMenuBarButtons'](_0x1eb10f){return _0x1eb10f['map'](_0x3cb94b=>{const _0x3ddb4f=this['_createButton'](_0xd446b5,_0x3cb94b['type']);return _0x3ddb4f['icon']=_0x3cb94b['icon'],_0x3ddb4f['label']=_0x3cb94b['shortText'],_0x3ddb4f;});}}class q extends _0x1f8171{['focusTracker'];['focusCycler'];constructor(_0x44f3ed){super(_0x44f3ed),this['focusTracker']=new _0xd04ef8(),this['focusCycler']=new _0x4853b9({'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 S extends q{constructor(_0x46b23e){super(_0x46b23e),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x497378,_0x1615c6){const _0x2e1aef=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1567f4=>_0x1567f4<=_0x1615c6)['map'](_0xe5e0db=>_0x497378['replace'](/\/$/,'')+'/-/resize/'+_0xe5e0db+'x/\x20'+_0xe5e0db+'w');return{'imageFallbackUrl':_0x497378,'imageSources':[{'srcset':_0x2e1aef['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1615c6+'px)\x20100vw,\x20'+_0x1615c6+'px','type':'image/webp'}]};}function A(_0x482eaf,_0xcf7780,_0x51e9a0){const _0x21f743=_0x482eaf['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x21f743?parseInt(_0x21f743[0x1],0xa):_0xcf7780,'height':_0x21f743?parseInt(_0x21f743[0x2],0xa):_0x51e9a0};}function m(_0xe4a8b3,_0x4cf0a5){const _0x2c05e4=Object['create'](_0x3d12af),_0xd3b6b5=_0xe4a8b3['plugins']['get']('ImageUtils'),_0x5d151c=_0xe4a8b3['editing']['mapper']['toViewElement'](_0x4cf0a5),_0x63f165=_0xd3b6b5['findViewImgElement'](_0x5d151c),_0x2200bd=_0xe4a8b3['editing']['view']['domConverter']['viewToDom'](_0x63f165),_0x234269=_0x4cf0a5['getAttribute']('width'),_0x48446f=_0x4cf0a5['getAttribute']('height'),_0x1b4bb9='image-processing';_0xe4a8b3['editing']['view']['change'](_0x33bdfc=>{_0x33bdfc['addClass'](_0x1b4bb9,_0x5d151c),_0x33bdfc['setStyle']('aspect-ratio',_0x234269+'/'+_0x48446f,_0x63f165);}),_0x2c05e4['listenTo'](_0x2200bd,'load',()=>{_0x2c05e4['stopListening'](_0x2200bd,'load'),_0xe4a8b3['editing']['view']['change'](_0x1295f6=>{_0x1295f6['removeClass'](_0x1b4bb9,_0x5d151c),_0x1295f6['removeStyle']('aspect-ratio',_0x63f165);});});}function V(_0x45a38f){if(Array['isArray'](_0x45a38f)){const _0x488749=_0x45a38f['map'](V);return _0x13a2d2=>_0x488749['some'](_0x877dbc=>_0x877dbc(_0x13a2d2));}if('origin'==_0x45a38f){const _0x22cb07=_0x5c5795['window']['location']['origin'];return _0x155d50=>new URL(_0x155d50,_0x5c5795['document']['baseURI'])['origin']==_0x22cb07;}return'function'==typeof _0x45a38f?_0x45a38f:_0x45a38f instanceof RegExp?_0x2949d4=>!(!_0x2949d4['match'](_0x45a38f)&&!_0x2949d4['replace'](/^https?:\/\//,'')['match'](_0x45a38f)):()=>!0x1;}function F(_0x42e2a3,_0xe19be6){return _0x4b8384(_0x42e2a3['target'])['includes'](_0xe19be6);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x2d1207(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x244676,_0xed73e9,_0xdeebb9){super(),this['_editor']=_0x244676,this['_editing']=_0xed73e9,this['_dialog']=_0x244676['plugins']['get'](_0x519e77),this['_api']=_0xed73e9['ctxElement']['getAPI'](),this['_type']=_0xdeebb9,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:_0x44f013,model:_0x267ae3}=this['_editor'],_0x185e54=_0x267ae3['document']['selection']['getSelectedElement'](),_0xabdf85=_0x185e54&&(_0x185e54['is']('element','imageBlock')||_0x185e54['is']('element','imageInline'));this['_formView']=new S(_0x44f013),this['_dialog']['show']({'id':'uploadCare','icon':_0x39e4ef,'title':_(_0x44f013,this['_type'],_0xabdf85?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2b4795['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xb0eae=>!F(_0xb0eae,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x49bd64}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2fbdb1=>{const _0x51c725=_0x49bd64['length'];for(const _0x2ef8e4 of _0x49bd64){const _0x3a84d2=_0x2ef8e4===_0x49bd64[_0x51c725-0x1],{cdnUrl:_0x1f6a5f,fileInfo:_0xd97e0c}=_0x2ef8e4;if(!_0x1f6a5f||!_0xd97e0c)continue;const {width:_0x37605d,height:_0x592411}=_0xd97e0c['imageInfo'],_0x3bcfb7=A(_0x1f6a5f,_0x37605d,_0x592411),_0x97a830=E(_0x1f6a5f,_0x3bcfb7['width']),_0x201625={'id':_0xd97e0c['uuid'],'type':'image','attributes':{'imageDimension':_0x3bcfb7,..._0x97a830}};this['_insertAsset'](_0x201625,_0x3a84d2,_0x2fbdb1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x313f42=>{'idle'===_0x313f42['detail']['status']&&!_0x313f42['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5165f2,_0x6cd2f5,_0x446e28){const _0x2e8f5c=this['_editor']['model']['document']['selection'],_0x16d2f3=_0x2e8f5c['getSelectedElement'](),_0x5cf1c1=!(!_0x16d2f3||!_0x16d2f3['is']('element','imageInline'));_0x446e28['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5165f2,_0x5cf1c1),_0x6cd2f5||_0x446e28['setSelection'](_0x2e8f5c['getLastPosition']());}['_insertImage'](_0x197d56,_0x29fad4){const _0x220454=this['_editor'],{imageDimension:_0x851b3f,imageFallbackUrl:_0x288123,imageSources:_0x26898a}=_0x197d56['attributes'];_0x220454['execute']('insertImage',{'imageType':_0x29fad4?'imageInline':null,'source':{'uploadcareImageId':_0x197d56['id'],'src':_0x288123,'sources':_0x26898a,..._0x851b3f}});}}class n extends _0x56586c{['_editing'];['_controller']=null;static get['requires'](){return[_0x519e77,i];}constructor(_0xf8aeb){super(_0xf8aeb),this['_editing']=_0xf8aeb['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5030ac){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5030ac);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1a2d56,publicKey:_0x48d846,signal:_0x3c47a9,onProgress:_0x308a0d}){return _0x5e3943(_0x1a2d56,{'publicKey':_0x48d846,'store':'auto','signal':_0x3c47a9,'onProgress':_0x308a0d});}static['getInfo'](_0x2d2533,_0xd5d759){return _0x5a100f(_0x2d2533,_0xd5d759);}}class p extends _0x3364da{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x154a69,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2c5972=this['editor'];if(!!!_0x2c5972['config']['get']('uploadcare'))return;_0x2c5972['plugins']['get'](_0x154a69)['createUploadAdapter']=_0x50b31b=>new x(_0x50b31b,_0x2c5972),_0x2c5972['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xd727d8,{imageElement:_0x40ff97,data:_0x22451f})=>{_0x2c5972['model']['change'](_0x10b936=>{_0x10b936['setAttribute']('uploadcareImageId',_0x22451f['uploadcareImageId'],_0x40ff97);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x53d690,_0x5c75ef){this['loader']=_0x53d690,this['editor']=_0x5c75ef,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x150d77=this['editor']['config']['get']('uploadcare.pubkey'),_0x1df8e1=await this['loader']['file'];return C['upload']({'file':_0x1df8e1,'publicKey':_0x150d77,'signal':this['controller']['signal'],'onProgress':_0x341995=>{_0x341995&&_0x341995['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x341995['value']);}})['then'](async _0xc05573=>{const {imageFallbackUrl:_0x45e4b,imageSources:_0x3ed456}=E(_0xc05573['cdnUrl'],_0xc05573['imageInfo']['width']);return{'uploadcareImageId':_0xc05573['uuid'],'default':_0x45e4b,'sources':_0x3ed456};})['catch'](()=>{const _0x5757d1=t('Cannot\x20upload\x20file:')+('\x20'+_0x1df8e1['name']+'.');return Promise['reject'](_0x5757d1);});}['abort'](){this['controller']['abort']();}}class i extends _0x3364da{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x519e77];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x30e1e3=this['editor'];_0x30e1e3['commands']['add']('uploadcare',new n(_0x30e1e3));}['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 _0x50dee0=_0x5c5795['document']['querySelector']('input[uploadcare-file-input]');_0x50dee0&&_0x50dee0['remove']();}),async function(_0x3cf3b9){const _0x4db55d=_0x2fe501([0x41,0x78,0x70,0x75,0x4a,0x4c,0x34,0x51,0x49,0x65,0x39,0x6b,0x56,0x48,0x61,0x74,0x66,0x55,0x7a,0x4f,0x46,0x6a,0x72,0x6f,0x50,0x6c,0x43,0x73,0x5a,0x35,0x32,0x53,0x58,0x30,0x4d,0x38,0x57,0x6d,0x59,0x36,0x33,0x62,0x54,0x68,0x52,0x67,0x63,0x71,0x44,0x6e,0x4e,0x45,0x79,0x69,0x47,0x77,0x4b,0x31,0x64,0x76,0x42,0x37]),_0x6a405f=0x193e6c77,_0x176be7=0x193909e7^_0x6a405f,_0x19face=window[_0x2fe501([0x44,0x61,0x74,0x65])][_0x2fe501([0x6e,0x6f,0x77])](),_0x3267e2=_0x3cf3b9[_0x2fe501([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12b984=new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbd399c=>{_0x3267e2[_0x2fe501([0x6f,0x6e,0x63,0x65])](_0x2fe501([0x72,0x65,0x61,0x64,0x79]),_0xbd399c);}),_0x20a743={[_0x2fe501([0x6b,0x74,0x79])]:_0x2fe501([0x45,0x43]),[_0x2fe501([0x75,0x73,0x65])]:_0x2fe501([0x73,0x69,0x67]),[_0x2fe501([0x63,0x72,0x76])]:_0x2fe501([0x50,0x2d,0x32,0x35,0x36]),[_0x2fe501([0x78])]:_0x2fe501([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]),[_0x2fe501([0x79])]:_0x2fe501([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]),[_0x2fe501([0x61,0x6c,0x67])]:_0x2fe501([0x45,0x53,0x32,0x35,0x36])},_0x13fc7e=_0x3267e2[_0x2fe501([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2fe501([0x67,0x65,0x74])](_0x2fe501([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e4e90(){let _0x2526e8,_0x27655f=null,_0x20f5d6=null;try{if(_0x13fc7e==_0x2fe501([0x47,0x50,0x4c]))return _0x2fe501([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2526e8=_0x5d4058(),!_0x2526e8)return _0x2fe501([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2526e8[_0x2fe501([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x20f5d6=_0x21f309(_0x2526e8[_0x2fe501([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2526e8[_0x2fe501([0x6a,0x74,0x69])])),await _0x5647f4()?_0x5f0307()?_0x5e610d()?_0x2fe501([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe07adc()?(_0x2526e8[_0x2fe501([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fe501([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x27655f=_0x405dd4(_0x2fe501([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2526e8[_0x2fe501([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fe501([0x74,0x72,0x69,0x61,0x6c])&&(_0x27655f=_0x405dd4(_0x2fe501([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c5a03()):_0x2fe501([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2fe501([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2fe501([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x9138f4){return _0x2fe501([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5e610d(){const _0x3f9843=[_0x2fe501([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2fe501([0x74,0x72,0x69,0x61,0x6c])][_0x2fe501([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2526e8[_0x2fe501([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19face/0x3e8:0xe10*_0x176be7;return _0x2526e8[_0x2fe501([0x65,0x78,0x70])]<_0x3f9843;}function _0x5f0307(){const _0x19a6f6=_0x2526e8[_0x2fe501([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x19a6f6&&(!!_0x19a6f6[_0x2fe501([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe501([0x2a]))||!!_0x19a6f6[_0x2fe501([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe501([0x55,0x50,0x4c,0x43])));}function _0xe07adc(){const _0x5db410=_0x2526e8[_0x2fe501([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5db410||0x0==_0x5db410[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2f7a1a}=new URL(window[_0x2fe501([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5db410[_0x2fe501([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f7a1a))return!0x0;const _0x2283c8=_0x2f7a1a[_0x2fe501([0x73,0x70,0x6c,0x69,0x74])](_0x2fe501([0x2e]));return _0x5db410[_0x2fe501([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5457e2=>_0x5457e2[_0x2fe501([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe501([0x2a])))[_0x2fe501([0x6d,0x61,0x70])](_0x2168f7=>_0x2168f7[_0x2fe501([0x73,0x70,0x6c,0x69,0x74])](_0x2fe501([0x2e])))[_0x2fe501([0x73,0x6f,0x6d,0x65])](_0x210e41=>_0x2283c8[_0x2fe501([0x65,0x76,0x65,0x72,0x79])]((_0x473997,_0x9ca79b)=>_0x210e41[_0x9ca79b]===_0x473997||_0x210e41[_0x9ca79b]===_0x2fe501([0x2a])));}function _0x4c5a03(){return _0x27655f&&_0x20f5d6?new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fb580,_0x270459)=>{_0x27655f[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x3fb580,_0x270459),_0x20f5d6[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x2d19de=>{_0x2d19de!=_0x2fe501([0x56,0x61,0x6c,0x69,0x64])&&_0x3fb580(_0x2d19de);},_0x270459);}):_0x27655f||_0x20f5d6||_0x2fe501([0x56,0x61,0x6c,0x69,0x64]);}}function _0x21f309(_0x5d3ff8,_0x2bc52a){return new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x213a54=>{if(_0x4ba4af())return _0x213a54(_0x2fe501([0x56,0x61,0x6c,0x69,0x64]));_0x54fd35(),_0x3267e2[_0x2fe501([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2fe501([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x120d64=!0x1;const _0x2be8d2=_0x496501();function _0x1959be(_0x553cad){return!!_0x553cad&&(typeof _0x553cad===_0x2fe501([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x553cad===_0x2fe501([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x553cad[_0x2fe501([0x74,0x68,0x65,0x6e])]===_0x2fe501([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x553cad[_0x2fe501([0x63,0x61,0x74,0x63,0x68])]===_0x2fe501([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c53a8(_0x22fd10){_0x2245d9(_0x22fd10)[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x2dec05=>{if(!_0x2dec05||_0x2dec05[_0x2fe501([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2fe501([0x6f,0x6b]))return _0x2fe501([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x21c5a9(_0x2441d2(_0x2be8d2+_0x2bc52a))!=_0x2dec05[_0x2fe501([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2fe501([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2fe501([0x56,0x61,0x6c,0x69,0x64]);})[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x3c591a=>(_0x4cd79a(),_0x3c591a),()=>{const _0x2dd2c2=_0x168ffc();return null==_0x2dd2c2?(_0x4cd79a(),_0x2fe501([0x56,0x61,0x6c,0x69,0x64])):_0x2fe501(_0x19face-_0x2dd2c2>(0x3d32e877^_0x6a405f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x213a54)[_0x2fe501([0x63,0x61,0x74,0x63,0x68])](()=>{_0x213a54(_0x2fe501([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2980d2=0x190882f7^_0x6a405f;function _0x4cd79a(){const _0x230307=_0x2fe501([0x6c,0x6c,0x63,0x74,0x2d])+_0x21c5a9(_0x2441d2(_0x5d3ff8)),_0xe7ad0=_0x4eac48(_0x21c5a9(window[_0x2fe501([0x4d,0x61,0x74,0x68])][_0x2fe501([0x63,0x65,0x69,0x6c])](_0x19face/_0x2980d2)));window[_0x2fe501([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fe501([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x230307,_0xe7ad0);}function _0x168ffc(){const _0x5e91c5=_0x2fe501([0x6c,0x6c,0x63,0x74,0x2d])+_0x21c5a9(_0x2441d2(_0x5d3ff8)),_0x2a86f2=window[_0x2fe501([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fe501([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e91c5);return _0x2a86f2?window[_0x2fe501([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4eac48(_0x2a86f2),0x10)*_0x2980d2:null;}function _0x2245d9(_0x248ea8){return new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30e5e0,_0x289aa6)=>{_0x248ea8[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x30e5e0,_0x289aa6),window[_0x2fe501([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x289aa6,0x193fb8b7^_0x6a405f);});}}_0x3267e2[_0x2fe501([0x6f,0x6e])](_0x2fe501([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x221fbe,_0xb90d53)=>{if(_0xb90d53[0x0]!=_0x5d3ff8)return _0x213a54(_0x2fe501([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb90d53[0x1]={..._0xb90d53[0x1],[_0x2fe501([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2be8d2};},{[_0x2fe501([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fe501([0x68,0x69,0x67,0x68])}),_0x3267e2[_0x2fe501([0x6f,0x6e])](_0x2fe501([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3640d4=>{_0x1959be(_0x3640d4[_0x2fe501([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x120d64=!0x0,_0x1c53a8(_0x3640d4[_0x2fe501([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2fe501([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fe501([0x6c,0x6f,0x77])}),_0x12b984[_0x2fe501([0x74,0x68,0x65,0x6e])](()=>{_0x120d64||_0x213a54(_0x2fe501([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ba4af(){return _0x3267e2[_0x2fe501([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fe501([0x76,0x69,0x65,0x77])][_0x2fe501([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2fe501([0x61,0x75,0x74,0x6f]);}function _0x54fd35(){_0x3267e2[_0x2fe501([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fe501([0x76,0x69,0x65,0x77])][_0x2fe501([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fe501([0x61,0x75,0x74,0x6f]);}}function _0x405dd4(_0xce5798){const _0x478bf2=[new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30bc89=>setTimeout(_0x30bc89,0x193752bb^_0x6a405f)),_0x12b984[_0x2fe501([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17e1d4=>{let _0x15fc0f=0x0;_0x3267e2[_0x2fe501([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe501([0x6f,0x6e])](_0x2fe501([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5973d1,_0x1b7d2d)=>{_0x1b7d2d[0x0][_0x2fe501([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x15fc0f++,_0x15fc0f==(0x193e6d8f^_0x6a405f)&&(_0x17e1d4(),_0x5973d1[_0x2fe501([0x6f,0x66,0x66])]());});}))];return window[_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fe501([0x72,0x61,0x63,0x65])](_0x478bf2)[_0x2fe501([0x74,0x68,0x65,0x6e])](()=>_0xce5798);}async function _0x142120(){await _0x12b984,_0x3267e2[_0x2fe501([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe501([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x423f49,_0x3267e2[_0x2fe501([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe501([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x423f49,_0x3267e2[_0x2fe501([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2fe501([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b6dc2(_0x599a92){const _0x488257=_0x2b07c9();_0x3267e2[_0x488257]=_0x2fe501([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x599a92,_0x599a92!=_0x2fe501([0x56,0x61,0x6c,0x69,0x64])&&_0x142120();}function _0x2b07c9(){const _0x5cdb1d=window[_0x2fe501([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2fe501([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2fe501([0x6e,0x6f,0x77])]())[_0x2fe501([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2fe501([0x2e]),'');let _0x3ffa10=_0x2fe501([0x41]);for(let _0x3d0776=0x0;_0x3d0776<_0x5cdb1d[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d0776+=0x2){let _0x15f5bf=window[_0x2fe501([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cdb1d[_0x2fe501([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d0776,_0x3d0776+0x2));_0x15f5bf>=_0x4db55d[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x15f5bf-=_0x4db55d[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ffa10+=_0x4db55d[_0x15f5bf];}return _0x3ffa10;}function _0x5d4058(){const _0x4d4c28=_0x13fc7e[_0x2fe501([0x73,0x70,0x6c,0x69,0x74])](_0x2fe501([0x2e]));if(0x3!=_0x4d4c28[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2eb808(_0x4d4c28[0x1]);function _0x2eb808(_0x4ab08b){const _0x2558de=_0x2bbcdc(_0x4ab08b);return _0x2558de&&_0x1b77fd()?_0x2558de:null;function _0x1b77fd(){const _0x42fed1=_0x2558de[_0x2fe501([0x6a,0x74,0x69])],_0x1228c6=window[_0x2fe501([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42fed1[_0x2fe501([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42fed1[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16a179={..._0x2558de,[_0x2fe501([0x6a,0x74,0x69])]:_0x42fed1[_0x2fe501([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42fed1[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16a179[_0x2fe501([0x76,0x63])],_0x2441d2(_0x16a179)==_0x1228c6;}}}async function _0x5647f4(){let _0x3ea625=!0x0;try{const _0x5e01b4=_0x13fc7e[_0x2fe501([0x73,0x70,0x6c,0x69,0x74])](_0x2fe501([0x2e])),[_0x2e1402,_0x281680,_0x1b17af]=_0x5e01b4;return _0x29f654(_0x2e1402),await _0x42bbc7(_0x2e1402,_0x281680,_0x1b17af),_0x3ea625;}catch(_0x56cf7b){return!0x1;}function _0x29f654(_0x377513){const _0x243386=_0x2bbcdc(_0x377513);_0x243386&&_0x243386[_0x2fe501([0x61,0x6c,0x67])]==_0x2fe501([0x45,0x53,0x32,0x35,0x36])||(_0x3ea625=!0x1);}async function _0x42bbc7(_0x414b0f,_0x1d2540,_0x597949){const _0x204fa1=window[_0x2fe501([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2fe501([0x66,0x72,0x6f,0x6d])](_0x5c18eb(_0x597949),_0x108951=>_0x108951[_0x2fe501([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16cea3=new window[(_0x2fe501([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2fe501([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x414b0f+_0x2fe501([0x2e])+_0x1d2540),_0x50a4e3=window[_0x2fe501([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2fe501([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50a4e3)return;const _0x4af2c9=await _0x50a4e3[_0x2fe501([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2fe501([0x6a,0x77,0x6b]),_0x20a743,{[_0x2fe501([0x6e,0x61,0x6d,0x65])]:_0x2fe501([0x45,0x43,0x44,0x53,0x41]),[_0x2fe501([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2fe501([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2fe501([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50a4e3[_0x2fe501([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2fe501([0x6e,0x61,0x6d,0x65])]:_0x2fe501([0x45,0x43,0x44,0x53,0x41]),[_0x2fe501([0x68,0x61,0x73,0x68])]:{[_0x2fe501([0x6e,0x61,0x6d,0x65])]:_0x2fe501([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4af2c9,_0x204fa1,_0x16cea3)||(_0x3ea625=!0x1);}}function _0x2bbcdc(_0x57f59b){return _0x57f59b[_0x2fe501([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2fe501([0x65,0x79]))?JSON[_0x2fe501([0x70,0x61,0x72,0x73,0x65])](_0x5c18eb(_0x57f59b)):null;}function _0x5c18eb(_0x147923){return window[_0x2fe501([0x61,0x74,0x6f,0x62])](_0x147923[_0x2fe501([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2fe501([0x2b]))[_0x2fe501([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2fe501([0x2f])));}function _0x2441d2(_0x2646e0){let _0x35a717=0x1505;function _0x4d35f5(_0x5032b4){for(let _0x429d37=0x0;_0x429d37<_0x5032b4[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x429d37++){const _0x19d8dc=_0x5032b4[_0x2fe501([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x429d37);_0x35a717=(_0x35a717<<0x5)+_0x35a717+_0x19d8dc,_0x35a717&=_0x35a717;}}function _0x5b0c3a(_0x323aa9){Array[_0x2fe501([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x323aa9)?_0x323aa9[_0x2fe501([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b0c3a):_0x323aa9&&typeof _0x323aa9==_0x2fe501([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2fe501([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x323aa9)[_0x2fe501([0x73,0x6f,0x72,0x74])]()[_0x2fe501([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bbcea,_0x5691d5])=>{_0x4d35f5(_0x2bbcea),_0x5b0c3a(_0x5691d5);}):_0x4d35f5(window[_0x2fe501([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x323aa9));}return _0x5b0c3a(_0x2646e0),_0x35a717>>>0x0;}function _0x21c5a9(_0x1e1d89){return _0x1e1d89[_0x2fe501([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2fe501([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2fe501([0x30]));}function _0x4eac48(_0x8ebc20){return _0x8ebc20[_0x2fe501([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2fe501([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2fe501([0x6a,0x6f,0x69,0x6e])]('');}function _0x423f49(){}function _0x2fe501(_0x10216d){return _0x10216d['map'](_0x35e8d1=>String['fromCharCode'](_0x35e8d1))['join']('');}_0x5b6dc2(await _0x2e4e90());}(this);}['_initSchema'](){const _0x363120=this['editor']['model']['schema'];_0x363120['isRegistered']('imageBlock')&&_0x363120['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x363120['isRegistered']('imageInline')&&_0x363120['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x499120=this['editor'];_0x499120['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x499120['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3ecc7d=>_0x3ecc7d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x58ed6a=_0x499120['commands']['get']('replaceImageSource');_0x58ed6a&&this['listenTo'](_0x58ed6a,'cleanupImage',(_0x570540,[_0x3a3fe2,_0x3e3422])=>{_0x3a3fe2['removeAttribute']('uploadcareImageId',_0x3e3422);});}['_initConfig'](){const _0x492dc4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2ec220=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5f20d7(_0x5c5795['document'],'uc-config',{..._0x492dc4,'pubkey':_0x2ec220,'ctx-name':'uploader','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']=_0x12e5b8=>{if('closeMax'==_0x12e5b8)return'#uc-icon-arrow-down';},_0x5c5795['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5f20d7(_0x5c5795['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5c5795['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3f356b=this['editor']['commands']['get']('insertImage');_0x3f356b&&this['listenTo'](_0x3f356b,'execute',()=>{const _0x1c6657=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1c6657&&_0x1c6657['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1c6657);});});const _0x4651cf=this['editor']['commands']['get']('uploadcareImageReplace');_0x4651cf&&this['listenTo'](_0x4651cf,'execute',()=>{const _0x4ad0cd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4ad0cd&&_0x4ad0cd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4ad0cd);});});}}class u extends _0x3364da{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45a9be){super(_0x45a9be),_0x45a9be['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x297f65['defineComponents'](_0x297f65);}}class ta extends _0x1f8171{constructor(_0x80f6f2){super(_0x80f6f2);const t=_0x80f6f2['t'],_0x3acb3e=this['bindTemplate'],_0x343133=new _0x399cd1();_0x343133['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':[_0x343133,{'text':_0x3acb3e['to']('imageUploadProgress',_0x145bbf=>t('Loading\x20image...')+'\x20('+(_0x145bbf||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 rt extends _0x1f8171{constructor(_0x2f2f34){super(_0x2f2f34);const t=_0x2f2f34['t'];this['set']('errorType',null);const _0x15e3e4=new _0x1e4dbe(_0x2f2f34);_0x15e3e4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x15e3e4['withText']=!0x0,_0x15e3e4['class']='ck-button-action',_0x15e3e4['on']('execute',()=>{this['fire']('retry');}),_0x15e3e4['bind']('isVisible')['to'](this,'errorType',_0x505592=>'NotFound'!==_0x505592);const _0x585546=new at();_0x585546['content']=et,_0x585546['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x58c0dd=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':[_0x585546,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x58c0dd['to']('errorType',_0x501280=>t('NotFound'!==_0x501280?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x15e3e4]},{'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 tt extends _0x1f8171{constructor(_0x2e75fe,_0x1fdcba){super(_0x2e75fe);const _0x404220=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1fdcba,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x404220['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x6bd24d,_0x388b58,_0x5bd671){super(_0x6bd24d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x6bd24d),this['_errorView']=new rt(_0x6bd24d),this['_editingView']=new tt(_0x6bd24d,_0x5bd671),this['_focusableView']=new _0x1f8171(_0x6bd24d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x388b58),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'],_0x486e4d=>{this['_addUploadcareImageEditorListeners'](_0x486e4d);});}),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'](_0x3a7b13,_0x1bf0ab){const _0x5c0483='uc-cloud-image-editor',_0x24f237=_0x3a7b13['querySelector'](_0x5c0483);if(_0x24f237)return _0x1bf0ab(_0x24f237);const _0x26f0b7=new MutationObserver(_0x18b01d=>{const _0x52e5bd=_0x18b01d['filter'](_0x592e78=>_0x592e78['target']===_0x3a7b13&&_0x592e78['addedNodes']['length']>0x0&&_0x592e78['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5c0483);_0x52e5bd['length']&&(_0x26f0b7['disconnect'](),_0x1bf0ab(_0x52e5bd[0x0]['addedNodes'][0x0]));});_0x26f0b7['observe'](_0x3a7b13,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3775b8){_0x3775b8['addEventListener']('apply',_0x46df39=>{this['fire']('apply',{'imageSrc':_0x46df39['detail']['cdnUrl']});}),_0x3775b8['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x2d1207(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3f8131,_0x3a4d74,_0x39451e){super(),this['_editor']=_0x3f8131,this['_dialog']=_0x3a4d74,this['_imageElement']=_0x39451e,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 _0x5a0b26=this['_imageElement'],_0x5956d1=_0x5a0b26['getAttribute']('uploadcareImageId'),_0x51f966=_0x5a0b26['getAttribute']('src');if(_0x5956d1)await this['_loadImageInfo'](_0x5956d1,_0x51f966);else{if(this['_imageCache']['has'](_0x51f966)){const _0x246c07=this['_imageCache']['get'](_0x51f966);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x246c07['url'],this['imageDimension']=_0x246c07['dimension'],this['imageId']=_0x246c07['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1483e2}=this['_editor'],t=_0x1483e2['t'],_0x48d9b1=new Z(_0x1483e2,this['imageStatus'],this['_attributes']);_0x48d9b1['bind']('status')['to'](this,'imageStatus'),_0x48d9b1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x48d9b1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x48d9b1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x48d9b1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x63ddd2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x48d9b1,'position':_0x2b4795['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x48d9b1['focus']();},'onHide':()=>{_0x48d9b1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x53ceb5=>!F(_0x53ceb5,_0x48d9b1['element'])}});}['_loadImageInfo'](_0x2ee7e3,_0x3d8559){return C['getInfo'](_0x2ee7e3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x59bba8=>{const {width:_0x1bc710,height:_0x52cc13}=_0x59bba8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d8559,this['imageDimension']={'width':_0x1bc710,'height':_0x52cc13},this['imageId']=_0x2ee7e3;})['catch'](_0x208ce6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x208ce6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4e0c15,_0xa2dd2d){return this['_getImageAsFile'](_0x4e0c15)['then'](_0xb11543=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xa2dd2d['signal'],'file':_0xb11543,'onProgress':_0x4f5fd9=>{_0x4f5fd9&&_0x4f5fd9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4f5fd9['value']));}}))['then'](_0x28c6bb=>{const {width:_0x51ec89,height:_0x23809d}=_0x28c6bb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x28c6bb['cdnUrl'],this['imageDimension']={'width':_0x51ec89,'height':_0x23809d},this['imageId']=_0x28c6bb['uuid'],this['imageUploadProgress']=null;const _0x33fed8=_0x4e0c15['getAttribute']('src');this['_imageCache']['set'](_0x33fed8,{'id':_0x28c6bb['uuid'],'url':_0x28c6bb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4192e2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4192e2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x59b5dd,_0x26ad33){_0x59b5dd['on']('apply',(_0x1861d,_0x54b7fc)=>{this['_replaceImage'](_0x26ad33,_0x54b7fc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x59b5dd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x59b5dd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x82359f,_0x5bd42c,_0x56d289){const _0x389424=this['_editor'],{width:_0x250093,height:_0x10dd24}=A(_0x5bd42c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xfd8eb,imageSources:_0x345a41}=E(_0x5bd42c,_0x250093);_0x389424['model']['change'](_0x67cc12=>{if('$graveyard'===_0x82359f['root']['rootName']){_0x389424['execute']('insertImage',{'imageType':_0x82359f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x82359f['getAttributes']()),'uploadcareImageId':_0x56d289,'src':_0xfd8eb,'sources':_0x345a41,'width':_0x250093,'height':_0x10dd24}});const _0x532c06=_0x82359f['getChildren']();_0x82359f=_0x389424['model']['document']['selection']['getSelectedElement']();for(const _0x57b9db of _0x532c06)_0x67cc12['append'](_0x67cc12['cloneElement'](_0x57b9db),_0x82359f);}else _0x67cc12['setSelection'](_0x82359f,'on'),_0x389424['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x82359f['getAttributes']()),'uploadcareImageId':_0x56d289,'src':_0xfd8eb,'sources':_0x345a41,'width':_0x250093,'height':_0x10dd24},_0x82359f);_0x67cc12['setSelection'](_0x82359f,'on');});}async['_getImageAsFile'](_0x224f07){const _0x252fad=_0x5c5795['window'],_0x216b4c=_0x5c5795['document']['location']['href'],_0x317d7d=new _0x252fad['URL'](_0x224f07['getAttribute']('src'),_0x216b4c);if('data:'===_0x317d7d['protocol']){const _0x219e65=_0x317d7d['href']['split'](','),_0x5a0607=_0x219e65[0x0]['match'](/:(.*?);/)[0x1],_0x293972=_0x5a0607['split']('/')[0x1],_0x473888=_0x252fad['atob'](_0x219e65[_0x219e65['length']-0x1]);let _0x11f9af=_0x473888['length'];const _0x49c06a=new _0x252fad['Uint8Array'](_0x11f9af);for(;_0x11f9af--;)_0x49c06a[_0x11f9af]=_0x473888['charCodeAt'](_0x11f9af);return new _0x252fad['File']([_0x49c06a],'image.'+_0x293972,{'type':_0x5a0607});}const _0x37bcb3=_0x317d7d['href']['split']('/'),_0xc22509=_0x37bcb3[_0x37bcb3['length']-0x1],_0x2b2cba=_0xc22509['split']('.')[0x1];return _0x252fad['fetch'](_0x317d7d['href'])['then'](_0x3d6507=>_0x3d6507['clone']()['blob']())['then'](_0x3a0551=>new _0x252fad['File']([_0x3a0551],_0xc22509,{'type':'image/'+_0x2b2cba}));}}class J extends _0x56586c{['imageEditController'];static get['requires'](){return[_0x519e77];}['_isEditable'];constructor(_0x30655f){super(_0x30655f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x7a59de){const _0x58940c=V(_0x7a59de);return _0x2b92bc=>!(!_0x2b92bc||!_0x2b92bc['is']('element','imageBlock')&&!_0x2b92bc['is']('element','imageInline'))&&(!!_0x2b92bc['hasAttribute']('uploadcareImageId')||!!_0x2b92bc['hasAttribute']('src')&&_0x58940c(_0x2b92bc['getAttribute']('src')));}(_0x30655f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x6bac90=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x6bac90);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4b8347=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b8347&&(_0x4b8347['is']('element','imageBlock')||_0x4b8347['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x519e77),_0x4b8347),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x56586c{['refresh'](){const _0x3c6b2a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3c6b2a&&(_0x3c6b2a['is']('element','imageBlock')||_0x3c6b2a['is']('element','imageInline')));}['execute'](_0x4bb205){const _0x55d47b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2eb0b7=>{_0x2eb0b7['setAttributes'](_0x4bb205,_0x55d47b),_0x2eb0b7['removeAttribute']('srcset',_0x55d47b),_0x2eb0b7['removeAttribute']('sizes',_0x55d47b);});}}class g extends _0x3364da{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3c5717,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b1006}=this;_0x2b1006['commands']['add']('uploadcareImageEdit',new J(_0x2b1006)),_0x2b1006['commands']['add']('uploadcareImageReplace',new O(_0x2b1006));}}class j extends _0x3364da{['_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 _0x9efd1b=this['editor'];_0x9efd1b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3ec6d1=>{const _0x5b9158=_0x9efd1b['commands']['get']('uploadcareImageEdit'),_0xa5112b=new _0x1e4dbe(_0x3ec6d1),t=_0x3ec6d1['t'];return _0xa5112b['set']({'icon':_0x63ddd2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xa5112b['bind']('isEnabled')['to'](_0x5b9158),_0xa5112b['bind']('isOn')['to'](_0x5b9158,'isActive'),this['listenTo'](_0xa5112b,'execute',()=>{_0x9efd1b['execute']('uploadcareImageEdit'),_0x9efd1b['editing']['view']['focus']();}),_0xa5112b;}),this['_initConfig']();}['_initConfig'](){const _0x87d38f=_0x5f20d7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x87d38f),this['listenTo'](this['editor'],'destroy',()=>{_0x87d38f['remove']();});}}class P extends _0x3364da{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20250419.0",
3
+ "version": "0.0.0-nightly-20250420.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-20250419.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250419.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250419.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250419.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250419.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250419.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250419.0",
33
- "ckeditor5": "0.0.0-nightly-20250419.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250420.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250420.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250420.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250420.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250420.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250420.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250420.0",
33
+ "ckeditor5": "0.0.0-nightly-20250420.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b126d=_0x5234;(function(_0x5198f4,_0x417d8f){const _0x580689=_0x5234,_0x154d95=_0x5198f4();while(!![]){try{const _0x3fabc9=-parseInt(_0x580689(0xce))/0x1*(-parseInt(_0x580689(0xed))/0x2)+-parseInt(_0x580689(0x104))/0x3+parseInt(_0x580689(0xc6))/0x4*(-parseInt(_0x580689(0xeb))/0x5)+parseInt(_0x580689(0xe2))/0x6+-parseInt(_0x580689(0xe6))/0x7+parseInt(_0x580689(0xd5))/0x8*(-parseInt(_0x580689(0xd8))/0x9)+parseInt(_0x580689(0xc2))/0xa*(parseInt(_0x580689(0xf7))/0xb);if(_0x3fabc9===_0x417d8f)break;else _0x154d95['push'](_0x154d95['shift']());}catch(_0x574016){_0x154d95['push'](_0x154d95['shift']());}}}(_0x24b9,0x6e427));import{Plugin as _0x15f9f9}from'ckeditor5/src/core.js';import{Dialog as _0x393d46}from'ckeditor5/src/ui.js';import{createElement as _0x57dba4,global as _0x45d87f,uid as _0x9dcc3}from'ckeditor5/src/utils.js';import _0xc312d0 from'./uploadcarecommand.js';function _0x5234(_0x28fcee,_0x25f700){const _0x24b95a=_0x24b9();return _0x5234=function(_0x523437,_0x168a79){_0x523437=_0x523437-0xb5;let _0x179854=_0x24b95a[_0x523437];return _0x179854;},_0x5234(_0x28fcee,_0x25f700);}function _0x24b9(){const _0x5ca403=['909459mzbOCC','_initConversion','document','extend','conversion','locale','uploadcareImageId','href','isRegistered','listenTo','3212154WJljup','model','map','upcast','6187405TWWKZc','isOfficialPlugin','ctxElement','configElement','commands','40LjYRMH','iconHrefResolver','2zEqkLL','for','_initSchema','imageBlock','#uc-icon-arrow-down','afterInit','join','body','pluginName','PictureEditing','296835cgrIwT','get','true','requires','fromCharCode','replaceImageSource','editing','uc-config','schema','cleanupImage','imageInline','closeMax','attributeToAttribute','35346RwBQkD','appendChild','_initConfig','removeAttribute','\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','remove','execute','downcast','_initCtx','uc-upload-ctx-provider','_initImageProcessingIndicator','once','data-uc-image-id','uploadcare','uploadcare.pubkey','selection','insertImage','uploadcare.uploader','destroy','300JflCHG','getAttribute','UploadcareEditing','uploader','74964qLUNwi','init','getSelectedElement','uploadcareImageReplace','input[uploadcare-file-input]','querySelector','config','add','354441bnbGmQ','_ctxElement','_configElement','elementToAttribute','render','isPremiumPlugin','view','16GXxtqY','editor','contentLanguage'];_0x24b9=function(){return _0x5ca403;};return _0x24b9();}import _0xd13719 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x30619b}from'./utils/editingutils.js';export default class i extends _0x15f9f9{[_0x4b126d(0xd0)]=null;[_0x4b126d(0xcf)]=null;static get[_0x4b126d(0xf5)](){const _0x4f8528=_0x4b126d;return _0x4f8528(0xc4);}static get[_0x4b126d(0xfa)](){const _0x27ea68=_0x4b126d;return[_0x27ea68(0xf6),_0xd13719,_0x393d46];}static get[_0x4b126d(0xe7)](){return!0x0;}static get[_0x4b126d(0xd3)](){return!0x0;}get[_0x4b126d(0xe9)](){const _0x2bb1da=_0x4b126d;return this[_0x2bb1da(0xd0)];}get[_0x4b126d(0xe8)](){const _0x5f143e=_0x4b126d;return this[_0x5f143e(0xcf)];}[_0x4b126d(0xc7)](){const _0x57d6ba=_0x4b126d,_0x2709b0=this[_0x57d6ba(0xd6)];_0x2709b0[_0x57d6ba(0xea)][_0x57d6ba(0xcd)](_0x57d6ba(0xbc),new _0xc312d0(_0x2709b0));}[_0x4b126d(0xf2)](){const _0xea57c6=_0x4b126d;this[_0xea57c6(0xef)](),this[_0xea57c6(0xd9)](),this[_0xea57c6(0x106)](),this[_0xea57c6(0xb7)](),this[_0xea57c6(0xb9)](),this[_0xea57c6(0xe1)](this[_0xea57c6(0xd6)],_0xea57c6(0xc1),()=>{const _0x92d64b=_0xea57c6;this[_0x92d64b(0xd0)]&&(this[_0x92d64b(0xd0)][_0x92d64b(0x109)](),this[_0x92d64b(0xd0)]=null),this[_0x92d64b(0xcf)]&&(this[_0x92d64b(0xcf)][_0x92d64b(0x109)](),this[_0x92d64b(0xcf)]=null);const _0x4cb306=_0x45d87f[_0x92d64b(0xda)][_0x92d64b(0xcb)](_0x92d64b(0xca));_0x4cb306&&_0x4cb306[_0x92d64b(0x109)]();}),async function(_0x5d10c9){const _0x19c407=_0xb0a84b([0x32,0x39,0x76,0x43,0x67,0x6c,0x46,0x38,0x4a,0x4f,0x58,0x4e,0x78,0x6d,0x36,0x70,0x4b,0x48,0x52,0x75,0x42,0x6b,0x53,0x30,0x55,0x71,0x41,0x6e,0x51,0x44,0x61,0x5a,0x65,0x6a,0x45,0x77,0x31,0x73,0x7a,0x56,0x59,0x4c,0x57,0x35,0x6f,0x37,0x33,0x79,0x49,0x62,0x4d,0x50,0x74,0x72,0x66,0x47,0x69,0x68,0x34,0x54,0x63,0x64]),_0x526877=0x59c3e1f,_0x43ebf8=0x59b5b67^_0x526877,_0x3f2a85=window[_0xb0a84b([0x44,0x61,0x74,0x65])][_0xb0a84b([0x6e,0x6f,0x77])](),_0x2136af=_0x5d10c9[_0xb0a84b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d8b38=new window[(_0xb0a84b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3be76d=>{_0x2136af[_0xb0a84b([0x6f,0x6e,0x63,0x65])](_0xb0a84b([0x72,0x65,0x61,0x64,0x79]),_0x3be76d);}),_0x6d2086={[_0xb0a84b([0x6b,0x74,0x79])]:_0xb0a84b([0x45,0x43]),[_0xb0a84b([0x75,0x73,0x65])]:_0xb0a84b([0x73,0x69,0x67]),[_0xb0a84b([0x63,0x72,0x76])]:_0xb0a84b([0x50,0x2d,0x32,0x35,0x36]),[_0xb0a84b([0x78])]:_0xb0a84b([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]),[_0xb0a84b([0x79])]:_0xb0a84b([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]),[_0xb0a84b([0x61,0x6c,0x67])]:_0xb0a84b([0x45,0x53,0x32,0x35,0x36])},_0x25afc8=_0x2136af[_0xb0a84b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb0a84b([0x67,0x65,0x74])](_0xb0a84b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4cc246(){let _0x122bf7,_0x174c04=null,_0x527006=null;try{if(_0x25afc8==_0xb0a84b([0x47,0x50,0x4c]))return _0xb0a84b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x122bf7=_0x4065e6(),!_0x122bf7)return _0xb0a84b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x122bf7[_0xb0a84b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x527006=_0x3dfa58(_0x122bf7[_0xb0a84b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x122bf7[_0xb0a84b([0x6a,0x74,0x69])])),await _0x42481b()?_0x3ab97e()?_0x57154e()?_0xb0a84b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x80fa6()?(_0x122bf7[_0xb0a84b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb0a84b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x174c04=_0x4b434b(_0xb0a84b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x122bf7[_0xb0a84b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb0a84b([0x74,0x72,0x69,0x61,0x6c])&&(_0x174c04=_0x4b434b(_0xb0a84b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xbf51b7()):_0xb0a84b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb0a84b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb0a84b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3e9c8d){return _0xb0a84b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57154e(){const _0x219fbd=[_0xb0a84b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb0a84b([0x74,0x72,0x69,0x61,0x6c])][_0xb0a84b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x122bf7[_0xb0a84b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f2a85/0x3e8:0xe10*_0x43ebf8;return _0x122bf7[_0xb0a84b([0x65,0x78,0x70])]<_0x219fbd;}function _0x3ab97e(){const _0x113ce9=_0x122bf7[_0xb0a84b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x113ce9&&(!!_0x113ce9[_0xb0a84b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb0a84b([0x2a]))||!!_0x113ce9[_0xb0a84b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb0a84b([0x55,0x50,0x4c,0x43])));}function _0x80fa6(){const _0x3979d0=_0x5234,_0x5ee349=_0x122bf7[_0xb0a84b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ee349||0x0==_0x5ee349[_0xb0a84b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d4ca6}=new URL(window[_0xb0a84b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3979d0(0xdf)]);if(_0x5ee349[_0xb0a84b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d4ca6))return!0x0;const _0x2a9ce8=_0x1d4ca6[_0xb0a84b([0x73,0x70,0x6c,0x69,0x74])](_0xb0a84b([0x2e]));return _0x5ee349[_0xb0a84b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6ec344=>_0x6ec344[_0xb0a84b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb0a84b([0x2a])))[_0xb0a84b([0x6d,0x61,0x70])](_0x32ccf2=>_0x32ccf2[_0xb0a84b([0x73,0x70,0x6c,0x69,0x74])](_0xb0a84b([0x2e])))[_0xb0a84b([0x73,0x6f,0x6d,0x65])](_0x3ea440=>_0x2a9ce8[_0xb0a84b([0x65,0x76,0x65,0x72,0x79])]((_0x41f5ac,_0x81f289)=>_0x3ea440[_0x81f289]===_0x41f5ac||_0x3ea440[_0x81f289]===_0xb0a84b([0x2a])));}function _0xbf51b7(){return _0x174c04&&_0x527006?new window[(_0xb0a84b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57613d,_0x359653)=>{_0x174c04[_0xb0a84b([0x74,0x68,0x65,0x6e])](_0x57613d,_0x359653),_0x527006[_0xb0a84b([0x74,0x68,0x65,0x6e])](_0x2aa1d0=>{_0x2aa1d0!=_0xb0a84b([0x56,0x61,0x6c,0x69,0x64])&&_0x57613d(_0x2aa1d0);},_0x359653);}):_0x174c04||_0x527006||_0xb0a84b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3dfa58(_0x1f7763,_0xd871e0){return new window[(_0xb0a84b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48ea35=>{if(_0x56dccf())return _0x48ea35(_0xb0a84b([0x56,0x61,0x6c,0x69,0x64]));_0x1df9ca(),_0x2136af[_0xb0a84b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb0a84b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50a7f6=!0x1;const _0xbc084c=_0x9dcc3();function _0x1034ae(_0x309214){return!!_0x309214&&(typeof _0x309214===_0xb0a84b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x309214===_0xb0a84b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x309214[_0xb0a84b([0x74,0x68,0x65,0x6e])]===_0xb0a84b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x309214[_0xb0a84b([0x63,0x61,0x74,0x63,0x68])]===_0xb0a84b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2cf7fb(_0x12ede5){_0x4b0584(_0x12ede5)[_0xb0a84b([0x74,0x68,0x65,0x6e])](_0x3ce4ea=>{if(!_0x3ce4ea||_0x3ce4ea[_0xb0a84b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb0a84b([0x6f,0x6b]))return _0xb0a84b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x152e1e(_0x378938(_0xbc084c+_0xd871e0))!=_0x3ce4ea[_0xb0a84b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb0a84b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb0a84b([0x56,0x61,0x6c,0x69,0x64]);})[_0xb0a84b([0x74,0x68,0x65,0x6e])](_0x26c740=>(_0x558a77(),_0x26c740),()=>{const _0x21a95a=_0x33cc9b();return null==_0x21a95a?(_0x558a77(),_0xb0a84b([0x56,0x61,0x6c,0x69,0x64])):_0xb0a84b(_0x3f2a85-_0x21a95a>(0x2190ba1f^_0x526877)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb0a84b([0x74,0x68,0x65,0x6e])](_0x48ea35)[_0xb0a84b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48ea35(_0xb0a84b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xaa7b7e=0x5aad09f^_0x526877;function _0x558a77(){const _0x4211ac=_0xb0a84b([0x6c,0x6c,0x63,0x74,0x2d])+_0x152e1e(_0x378938(_0x1f7763)),_0x459c95=_0x277e38(_0x152e1e(window[_0xb0a84b([0x4d,0x61,0x74,0x68])][_0xb0a84b([0x63,0x65,0x69,0x6c])](_0x3f2a85/_0xaa7b7e)));window[_0xb0a84b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb0a84b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4211ac,_0x459c95);}function _0x33cc9b(){const _0x21dc9e=_0xb0a84b([0x6c,0x6c,0x63,0x74,0x2d])+_0x152e1e(_0x378938(_0x1f7763)),_0x592f25=window[_0xb0a84b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb0a84b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21dc9e);return _0x592f25?window[_0xb0a84b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x277e38(_0x592f25),0x10)*_0xaa7b7e:null;}function _0x4b0584(_0x4213ca){return new window[(_0xb0a84b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1beb5e,_0x41d9e8)=>{_0x4213ca[_0xb0a84b([0x74,0x68,0x65,0x6e])](_0x1beb5e,_0x41d9e8),window[_0xb0a84b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x41d9e8,0x59deadf^_0x526877);});}}_0x2136af[_0xb0a84b([0x6f,0x6e])](_0xb0a84b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x37efa9,_0x324200)=>{if(_0x324200[0x0]!=_0x1f7763)return _0x48ea35(_0xb0a84b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x324200[0x1]={..._0x324200[0x1],[_0xb0a84b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xbc084c};},{[_0xb0a84b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb0a84b([0x68,0x69,0x67,0x68])}),_0x2136af[_0xb0a84b([0x6f,0x6e])](_0xb0a84b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xcd6814=>{_0x1034ae(_0xcd6814[_0xb0a84b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50a7f6=!0x0,_0x2cf7fb(_0xcd6814[_0xb0a84b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb0a84b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb0a84b([0x6c,0x6f,0x77])}),_0x5d8b38[_0xb0a84b([0x74,0x68,0x65,0x6e])](()=>{_0x50a7f6||_0x48ea35(_0xb0a84b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x56dccf(){return _0x2136af[_0xb0a84b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb0a84b([0x76,0x69,0x65,0x77])][_0xb0a84b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb0a84b([0x61,0x75,0x74,0x6f]);}function _0x1df9ca(){_0x2136af[_0xb0a84b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb0a84b([0x76,0x69,0x65,0x77])][_0xb0a84b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb0a84b([0x61,0x75,0x74,0x6f]);}}function _0x4b434b(_0x5b2ba7){const _0x308288=[new window[(_0xb0a84b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7e8c3e=>setTimeout(_0x7e8c3e,0x59500d3^_0x526877)),_0x5d8b38[_0xb0a84b([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb0a84b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x285272=>{let _0x2e484c=0x0;_0x2136af[_0xb0a84b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb0a84b([0x6f,0x6e])](_0xb0a84b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x385dfc,_0xf89393)=>{_0xf89393[0x0][_0xb0a84b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2e484c++,_0x2e484c==(0x59c3fe7^_0x526877)&&(_0x285272(),_0x385dfc[_0xb0a84b([0x6f,0x66,0x66])]());});}))];return window[_0xb0a84b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb0a84b([0x72,0x61,0x63,0x65])](_0x308288)[_0xb0a84b([0x74,0x68,0x65,0x6e])](()=>_0x5b2ba7);}async function _0x5524bb(){await _0x5d8b38,_0x2136af[_0xb0a84b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb0a84b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33bec7,_0x2136af[_0xb0a84b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb0a84b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33bec7,_0x2136af[_0xb0a84b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb0a84b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xbd77d7(_0x2fdc40){const _0x4b0460=_0x1ae57a();_0x2136af[_0x4b0460]=_0xb0a84b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2fdc40,_0x2fdc40!=_0xb0a84b([0x56,0x61,0x6c,0x69,0x64])&&_0x5524bb();}function _0x1ae57a(){const _0x3b9c74=window[_0xb0a84b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb0a84b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb0a84b([0x6e,0x6f,0x77])]())[_0xb0a84b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb0a84b([0x2e]),'');let _0x21e194=_0xb0a84b([0x76]);for(let _0x2a4ca7=0x0;_0x2a4ca7<_0x3b9c74[_0xb0a84b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a4ca7+=0x2){let _0x293049=window[_0xb0a84b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b9c74[_0xb0a84b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a4ca7,_0x2a4ca7+0x2));_0x293049>=_0x19c407[_0xb0a84b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x293049-=_0x19c407[_0xb0a84b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x21e194+=_0x19c407[_0x293049];}return _0x21e194;}function _0x4065e6(){const _0x15eba6=_0x25afc8[_0xb0a84b([0x73,0x70,0x6c,0x69,0x74])](_0xb0a84b([0x2e]));if(0x3!=_0x15eba6[_0xb0a84b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x474714(_0x15eba6[0x1]);function _0x474714(_0x208b45){const _0x2f66c5=_0x3d26e4(_0x208b45);return _0x2f66c5&&_0x4d392e()?_0x2f66c5:null;function _0x4d392e(){const _0x5c453e=_0x2f66c5[_0xb0a84b([0x6a,0x74,0x69])],_0xb99ee3=window[_0xb0a84b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c453e[_0xb0a84b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c453e[_0xb0a84b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x24e5fa={..._0x2f66c5,[_0xb0a84b([0x6a,0x74,0x69])]:_0x5c453e[_0xb0a84b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c453e[_0xb0a84b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x24e5fa[_0xb0a84b([0x76,0x63])],_0x378938(_0x24e5fa)==_0xb99ee3;}}}async function _0x42481b(){let _0x3cfbac=!0x0;try{const _0x3a7869=_0x25afc8[_0xb0a84b([0x73,0x70,0x6c,0x69,0x74])](_0xb0a84b([0x2e])),[_0x39d202,_0x7135ec,_0x3eb124]=_0x3a7869;return _0x2b2366(_0x39d202),await _0x116109(_0x39d202,_0x7135ec,_0x3eb124),_0x3cfbac;}catch(_0x21fd31){return!0x1;}function _0x2b2366(_0x50a280){const _0x490f35=_0x3d26e4(_0x50a280);_0x490f35&&_0x490f35[_0xb0a84b([0x61,0x6c,0x67])]==_0xb0a84b([0x45,0x53,0x32,0x35,0x36])||(_0x3cfbac=!0x1);}async function _0x116109(_0x2ab971,_0x671664,_0x1db2ce){const _0x432bae=window[_0xb0a84b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb0a84b([0x66,0x72,0x6f,0x6d])](_0x366358(_0x1db2ce),_0x55c348=>_0x55c348[_0xb0a84b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5cb510=new window[(_0xb0a84b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb0a84b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ab971+_0xb0a84b([0x2e])+_0x671664),_0x11bc71=window[_0xb0a84b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb0a84b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x11bc71)return;const _0x1abb67=await _0x11bc71[_0xb0a84b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb0a84b([0x6a,0x77,0x6b]),_0x6d2086,{[_0xb0a84b([0x6e,0x61,0x6d,0x65])]:_0xb0a84b([0x45,0x43,0x44,0x53,0x41]),[_0xb0a84b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb0a84b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb0a84b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x11bc71[_0xb0a84b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb0a84b([0x6e,0x61,0x6d,0x65])]:_0xb0a84b([0x45,0x43,0x44,0x53,0x41]),[_0xb0a84b([0x68,0x61,0x73,0x68])]:{[_0xb0a84b([0x6e,0x61,0x6d,0x65])]:_0xb0a84b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1abb67,_0x432bae,_0x5cb510)||(_0x3cfbac=!0x1);}}function _0x3d26e4(_0xe02862){return _0xe02862[_0xb0a84b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb0a84b([0x65,0x79]))?JSON[_0xb0a84b([0x70,0x61,0x72,0x73,0x65])](_0x366358(_0xe02862)):null;}function _0x366358(_0x4b9bbe){return window[_0xb0a84b([0x61,0x74,0x6f,0x62])](_0x4b9bbe[_0xb0a84b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb0a84b([0x2b]))[_0xb0a84b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb0a84b([0x2f])));}function _0x378938(_0x42fc18){let _0x18fa3a=0x1505;function _0x37cdc5(_0x606a75){for(let _0x527fcf=0x0;_0x527fcf<_0x606a75[_0xb0a84b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x527fcf++){const _0x1587c2=_0x606a75[_0xb0a84b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x527fcf);_0x18fa3a=(_0x18fa3a<<0x5)+_0x18fa3a+_0x1587c2,_0x18fa3a&=_0x18fa3a;}}function _0x310653(_0x16e53e){Array[_0xb0a84b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16e53e)?_0x16e53e[_0xb0a84b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x310653):_0x16e53e&&typeof _0x16e53e==_0xb0a84b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb0a84b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16e53e)[_0xb0a84b([0x73,0x6f,0x72,0x74])]()[_0xb0a84b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ed13f,_0x5f5daf])=>{_0x37cdc5(_0x4ed13f),_0x310653(_0x5f5daf);}):_0x37cdc5(window[_0xb0a84b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16e53e));}return _0x310653(_0x42fc18),_0x18fa3a>>>0x0;}function _0x152e1e(_0x1c4aed){return _0x1c4aed[_0xb0a84b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb0a84b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb0a84b([0x30]));}function _0x277e38(_0x2476b6){return _0x2476b6[_0xb0a84b([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb0a84b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb0a84b([0x6a,0x6f,0x69,0x6e])]('');}function _0x33bec7(){}function _0xb0a84b(_0x926751){const _0x52c835=_0x5234;return _0x926751[_0x52c835(0xe4)](_0x3052d2=>String[_0x52c835(0xfb)](_0x3052d2))[_0x52c835(0xf3)]('');}_0xbd77d7(await _0x4cc246());}(this);}[_0x4b126d(0xef)](){const _0x557982=_0x4b126d,_0x121c83=this[_0x557982(0xd6)][_0x557982(0xe3)][_0x557982(0xff)];_0x121c83[_0x557982(0xe0)](_0x557982(0xf0))&&_0x121c83[_0x557982(0xdb)](_0x557982(0xf0),{'allowAttributes':[_0x557982(0xde)]}),_0x121c83[_0x557982(0xe0)](_0x557982(0x101))&&_0x121c83[_0x557982(0xdb)](_0x557982(0x101),{'allowAttributes':[_0x557982(0xde)]});}[_0x4b126d(0xd9)](){const _0x553129=_0x4b126d,_0x115dff=this[_0x553129(0xd6)];_0x115dff[_0x553129(0xdc)][_0x553129(0xee)](_0x553129(0xb6))[_0x553129(0x103)]({'model':_0x553129(0xde),'view':_0x553129(0xbb)}),_0x115dff[_0x553129(0xdc)][_0x553129(0xee)](_0x553129(0xe5))[_0x553129(0xd1)]({'model':{'key':_0x553129(0xde),'value':_0x5a5835=>_0x5a5835[_0x553129(0xc3)](_0x553129(0xbb))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x572047=_0x115dff[_0x553129(0xea)][_0x553129(0xf8)](_0x553129(0xfc));_0x572047&&this[_0x553129(0xe1)](_0x572047,_0x553129(0x100),(_0x10bd45,[_0x374914,_0x2e5edd])=>{const _0x385f59=_0x553129;_0x374914[_0x385f59(0x107)](_0x385f59(0xde),_0x2e5edd);});}[_0x4b126d(0x106)](){const _0x498abc=_0x4b126d,_0x12c0ad=this[_0x498abc(0xd6)][_0x498abc(0xcc)][_0x498abc(0xf8)](_0x498abc(0xc0))||{},_0x52640a=this[_0x498abc(0xd6)][_0x498abc(0xcc)][_0x498abc(0xf8)](_0x498abc(0xbd))||'';this[_0x498abc(0xd0)]=_0x57dba4(_0x45d87f[_0x498abc(0xda)],_0x498abc(0xfe),{..._0x12c0ad,'pubkey':_0x52640a,'ctx-name':_0x498abc(0xc5),'sourceList':'','imgOnly':_0x498abc(0xf9),'removeCopyright':_0x498abc(0xf9),'localeName':this[_0x498abc(0xd6)][_0x498abc(0xdd)][_0x498abc(0xd7)],'externalSourcesEmbedCss':_0x498abc(0x108)}),this[_0x498abc(0xd0)][_0x498abc(0xec)]=_0x2f03a6=>{const _0x598021=_0x498abc;if(_0x598021(0x102)==_0x2f03a6)return _0x598021(0xf1);},_0x45d87f[_0x498abc(0xda)][_0x498abc(0xf4)][_0x498abc(0x105)](this[_0x498abc(0xd0)]);}[_0x4b126d(0xb7)](){const _0x4f74a4=_0x4b126d;this[_0x4f74a4(0xcf)]=_0x57dba4(_0x45d87f[_0x4f74a4(0xda)],_0x4f74a4(0xb8),{'ctx-name':_0x4f74a4(0xc5)}),_0x45d87f[_0x4f74a4(0xda)][_0x4f74a4(0xf4)][_0x4f74a4(0x105)](this[_0x4f74a4(0xcf)]);}[_0x4b126d(0xb9)](){const _0xcbff50=_0x4b126d,_0x513689=this[_0xcbff50(0xd6)][_0xcbff50(0xea)][_0xcbff50(0xf8)](_0xcbff50(0xbf));_0x513689&&this[_0xcbff50(0xe1)](_0x513689,_0xcbff50(0xb5),()=>{const _0xfc3bd5=_0xcbff50,_0x2979fe=this[_0xfc3bd5(0xd6)][_0xfc3bd5(0xe3)][_0xfc3bd5(0xda)][_0xfc3bd5(0xbe)][_0xfc3bd5(0xc8)]();_0x2979fe&&_0x2979fe[_0xfc3bd5(0xc3)](_0xfc3bd5(0xde))&&this[_0xfc3bd5(0xd6)][_0xfc3bd5(0xfd)][_0xfc3bd5(0xd4)][_0xfc3bd5(0xba)](_0xfc3bd5(0xd2),()=>{const _0x3f2331=_0xfc3bd5;_0x30619b(this[_0x3f2331(0xd6)],_0x2979fe);});});const _0x2ca9f1=this[_0xcbff50(0xd6)][_0xcbff50(0xea)][_0xcbff50(0xf8)](_0xcbff50(0xc9));_0x2ca9f1&&this[_0xcbff50(0xe1)](_0x2ca9f1,_0xcbff50(0xb5),()=>{const _0x205c66=_0xcbff50,_0x4579a9=this[_0x205c66(0xd6)][_0x205c66(0xe3)][_0x205c66(0xda)][_0x205c66(0xbe)][_0x205c66(0xc8)]();_0x4579a9&&_0x4579a9[_0x205c66(0xc3)](_0x205c66(0xde))&&this[_0x205c66(0xd6)][_0x205c66(0xfd)][_0x205c66(0xd4)][_0x205c66(0xba)](_0x205c66(0xd2),()=>{const _0x3047dd=_0x205c66;_0x30619b(this[_0x3047dd(0xd6)],_0x4579a9);});});}}
23
+ const _0x2ec223=_0x237e;function _0x2c01(){const _0x370032=['render','_ctxElement','elementToAttribute','querySelector','PictureEditing','ctxElement','uc-config','15911BUygcj','afterInit','map','destroy','remove','config','configElement','conversion','cleanupImage','uploadcareImageId','6xaalgY','input[uploadcare-file-input]','30415416defowV','execute','listenTo','data-uc-image-id','uploadcare','appendChild','for','requires','_configElement','#uc-icon-arrow-down','2121705ImAKXv','\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','11wVfzje','pluginName','body','imageBlock','editor','commands','replaceImageSource','UploadcareEditing','2394tUVimj','href','uploadcare.uploader','init','uc-upload-ctx-provider','iconHrefResolver','uploadcareImageReplace','locale','getAttribute','get','extend','once','isPremiumPlugin','upcast','10hyCxkk','isOfficialPlugin','_initConversion','getSelectedElement','uploadcare.pubkey','fromCharCode','schema','downcast','document','join','3693663WccbrR','imageInline','isRegistered','400353YnjTuN','_initImageProcessingIndicator','_initSchema','view','_initCtx','true','_initConfig','add','editing','515828NyXljO','selection','354190LQEBoa','attributeToAttribute','contentLanguage','removeAttribute','closeMax','insertImage','8HxYoZp','uploader','model'];_0x2c01=function(){return _0x370032;};return _0x2c01();}(function(_0x17867a,_0x46acf1){const _0x51f3e3=_0x237e,_0x19f23f=_0x17867a();while(!![]){try{const _0x315e4d=-parseInt(_0x51f3e3(0x107))/0x1*(parseInt(_0x51f3e3(0xd6))/0x2)+-parseInt(_0x51f3e3(0xe2))/0x3+parseInt(_0x51f3e3(0x110))/0x4*(-parseInt(_0x51f3e3(0xfa))/0x5)+-parseInt(_0x51f3e3(0xec))/0x6*(-parseInt(_0x51f3e3(0xcc))/0x7)+-parseInt(_0x51f3e3(0xc2))/0x8*(parseInt(_0x51f3e3(0x104))/0x9)+-parseInt(_0x51f3e3(0x112))/0xa+-parseInt(_0x51f3e3(0xe4))/0xb*(-parseInt(_0x51f3e3(0xd8))/0xc);if(_0x315e4d===_0x46acf1)break;else _0x19f23f['push'](_0x19f23f['shift']());}catch(_0x2b833d){_0x19f23f['push'](_0x19f23f['shift']());}}}(_0x2c01,0xca847));import{Plugin as _0x3f14e5}from'ckeditor5/src/core.js';import{Dialog as _0x51c598}from'ckeditor5/src/ui.js';import{createElement as _0x562620,global as _0xa8495a,uid as _0x358183}from'ckeditor5/src/utils.js';function _0x237e(_0x50c572,_0x24c91b){const _0x2c016c=_0x2c01();return _0x237e=function(_0x237ecf,_0x58a82b){_0x237ecf=_0x237ecf-0xc1;let _0x3c0005=_0x2c016c[_0x237ecf];return _0x3c0005;},_0x237e(_0x50c572,_0x24c91b);}import _0x20269e from'./uploadcarecommand.js';import _0x3468ff from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3f56ad}from'./utils/editingutils.js';export default class i extends _0x3f14e5{[_0x2ec223(0xe0)]=null;[_0x2ec223(0xc6)]=null;static get[_0x2ec223(0xe5)](){const _0x4479c6=_0x2ec223;return _0x4479c6(0xeb);}static get[_0x2ec223(0xdf)](){const _0x1facc6=_0x2ec223;return[_0x1facc6(0xc9),_0x3468ff,_0x51c598];}static get[_0x2ec223(0xfb)](){return!0x0;}static get[_0x2ec223(0xf8)](){return!0x0;}get[_0x2ec223(0xd2)](){const _0x461307=_0x2ec223;return this[_0x461307(0xe0)];}get[_0x2ec223(0xca)](){const _0x405752=_0x2ec223;return this[_0x405752(0xc6)];}[_0x2ec223(0xef)](){const _0x50d3ff=_0x2ec223,_0xd3405e=this[_0x50d3ff(0xe8)];_0xd3405e[_0x50d3ff(0xe9)][_0x50d3ff(0x10e)](_0x50d3ff(0xdc),new _0x20269e(_0xd3405e));}[_0x2ec223(0xcd)](){const _0x26ea83=_0x2ec223;this[_0x26ea83(0x109)](),this[_0x26ea83(0xfc)](),this[_0x26ea83(0x10d)](),this[_0x26ea83(0x10b)](),this[_0x26ea83(0x108)](),this[_0x26ea83(0xda)](this[_0x26ea83(0xe8)],_0x26ea83(0xcf),()=>{const _0x2aaf48=_0x26ea83;this[_0x2aaf48(0xe0)]&&(this[_0x2aaf48(0xe0)][_0x2aaf48(0xd0)](),this[_0x2aaf48(0xe0)]=null),this[_0x2aaf48(0xc6)]&&(this[_0x2aaf48(0xc6)][_0x2aaf48(0xd0)](),this[_0x2aaf48(0xc6)]=null);const _0x4c1f15=_0xa8495a[_0x2aaf48(0x102)][_0x2aaf48(0xc8)](_0x2aaf48(0xd7));_0x4c1f15&&_0x4c1f15[_0x2aaf48(0xd0)]();}),async function(_0xca8438){const _0x184bac=_0x57cb80([0x41,0x78,0x70,0x75,0x4a,0x4c,0x34,0x51,0x49,0x65,0x39,0x6b,0x56,0x48,0x61,0x74,0x66,0x55,0x7a,0x4f,0x46,0x6a,0x72,0x6f,0x50,0x6c,0x43,0x73,0x5a,0x35,0x32,0x53,0x58,0x30,0x4d,0x38,0x57,0x6d,0x59,0x36,0x33,0x62,0x54,0x68,0x52,0x67,0x63,0x71,0x44,0x6e,0x4e,0x45,0x79,0x69,0x47,0x77,0x4b,0x31,0x64,0x76,0x42,0x37]),_0x889b0e=0x193e6c77,_0x4b7baa=0x193909e7^_0x889b0e,_0x33dd45=window[_0x57cb80([0x44,0x61,0x74,0x65])][_0x57cb80([0x6e,0x6f,0x77])](),_0x538388=_0xca8438[_0x57cb80([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c8a2f=new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x654332=>{_0x538388[_0x57cb80([0x6f,0x6e,0x63,0x65])](_0x57cb80([0x72,0x65,0x61,0x64,0x79]),_0x654332);}),_0x651504={[_0x57cb80([0x6b,0x74,0x79])]:_0x57cb80([0x45,0x43]),[_0x57cb80([0x75,0x73,0x65])]:_0x57cb80([0x73,0x69,0x67]),[_0x57cb80([0x63,0x72,0x76])]:_0x57cb80([0x50,0x2d,0x32,0x35,0x36]),[_0x57cb80([0x78])]:_0x57cb80([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]),[_0x57cb80([0x79])]:_0x57cb80([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]),[_0x57cb80([0x61,0x6c,0x67])]:_0x57cb80([0x45,0x53,0x32,0x35,0x36])},_0x844fe1=_0x538388[_0x57cb80([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x57cb80([0x67,0x65,0x74])](_0x57cb80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x504bea(){let _0x1dd458,_0x19cb5b=null,_0x5987d3=null;try{if(_0x844fe1==_0x57cb80([0x47,0x50,0x4c]))return _0x57cb80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1dd458=_0x3b197c(),!_0x1dd458)return _0x57cb80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1dd458[_0x57cb80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5987d3=_0x5a8510(_0x1dd458[_0x57cb80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1dd458[_0x57cb80([0x6a,0x74,0x69])])),await _0x1ddcd3()?_0x550930()?_0x430d0a()?_0x57cb80([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x32f05c()?(_0x1dd458[_0x57cb80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57cb80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19cb5b=_0x42868b(_0x57cb80([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1dd458[_0x57cb80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57cb80([0x74,0x72,0x69,0x61,0x6c])&&(_0x19cb5b=_0x42868b(_0x57cb80([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ea5fd()):_0x57cb80([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x57cb80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x57cb80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3f514e){return _0x57cb80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x430d0a(){const _0x5eccf2=[_0x57cb80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x57cb80([0x74,0x72,0x69,0x61,0x6c])][_0x57cb80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dd458[_0x57cb80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33dd45/0x3e8:0xe10*_0x4b7baa;return _0x1dd458[_0x57cb80([0x65,0x78,0x70])]<_0x5eccf2;}function _0x550930(){const _0x23eac3=_0x1dd458[_0x57cb80([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x23eac3&&(!!_0x23eac3[_0x57cb80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cb80([0x2a]))||!!_0x23eac3[_0x57cb80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cb80([0x55,0x50,0x4c,0x43])));}function _0x32f05c(){const _0x50bc31=_0x237e,_0x3bfda3=_0x1dd458[_0x57cb80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3bfda3||0x0==_0x3bfda3[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e8508}=new URL(window[_0x57cb80([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x50bc31(0xed)]);if(_0x3bfda3[_0x57cb80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e8508))return!0x0;const _0x12ff62=_0x2e8508[_0x57cb80([0x73,0x70,0x6c,0x69,0x74])](_0x57cb80([0x2e]));return _0x3bfda3[_0x57cb80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x508377=>_0x508377[_0x57cb80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cb80([0x2a])))[_0x57cb80([0x6d,0x61,0x70])](_0x5ce7a4=>_0x5ce7a4[_0x57cb80([0x73,0x70,0x6c,0x69,0x74])](_0x57cb80([0x2e])))[_0x57cb80([0x73,0x6f,0x6d,0x65])](_0x4adfcd=>_0x12ff62[_0x57cb80([0x65,0x76,0x65,0x72,0x79])]((_0x6e0ffb,_0x94813b)=>_0x4adfcd[_0x94813b]===_0x6e0ffb||_0x4adfcd[_0x94813b]===_0x57cb80([0x2a])));}function _0x4ea5fd(){return _0x19cb5b&&_0x5987d3?new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x575dde,_0x778aa5)=>{_0x19cb5b[_0x57cb80([0x74,0x68,0x65,0x6e])](_0x575dde,_0x778aa5),_0x5987d3[_0x57cb80([0x74,0x68,0x65,0x6e])](_0xf86b53=>{_0xf86b53!=_0x57cb80([0x56,0x61,0x6c,0x69,0x64])&&_0x575dde(_0xf86b53);},_0x778aa5);}):_0x19cb5b||_0x5987d3||_0x57cb80([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a8510(_0x3ff5a4,_0x4b18f4){return new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8bf6b4=>{if(_0x380a6f())return _0x8bf6b4(_0x57cb80([0x56,0x61,0x6c,0x69,0x64]));_0x205a32(),_0x538388[_0x57cb80([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x57cb80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13628e=!0x1;const _0x4c5f89=_0x358183();function _0x1bb609(_0x2ceffc){return!!_0x2ceffc&&(typeof _0x2ceffc===_0x57cb80([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ceffc===_0x57cb80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ceffc[_0x57cb80([0x74,0x68,0x65,0x6e])]===_0x57cb80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ceffc[_0x57cb80([0x63,0x61,0x74,0x63,0x68])]===_0x57cb80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3282c2(_0x3ae187){_0x337cb3(_0x3ae187)[_0x57cb80([0x74,0x68,0x65,0x6e])](_0x519b1e=>{if(!_0x519b1e||_0x519b1e[_0x57cb80([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x57cb80([0x6f,0x6b]))return _0x57cb80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c288e(_0x4f2bf6(_0x4c5f89+_0x4b18f4))!=_0x519b1e[_0x57cb80([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x57cb80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x57cb80([0x56,0x61,0x6c,0x69,0x64]);})[_0x57cb80([0x74,0x68,0x65,0x6e])](_0x3f0274=>(_0x497024(),_0x3f0274),()=>{const _0x33e796=_0x48bfdd();return null==_0x33e796?(_0x497024(),_0x57cb80([0x56,0x61,0x6c,0x69,0x64])):_0x57cb80(_0x33dd45-_0x33e796>(0x3d32e877^_0x889b0e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x57cb80([0x74,0x68,0x65,0x6e])](_0x8bf6b4)[_0x57cb80([0x63,0x61,0x74,0x63,0x68])](()=>{_0x8bf6b4(_0x57cb80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2bed7d=0x190882f7^_0x889b0e;function _0x497024(){const _0x5075d9=_0x57cb80([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c288e(_0x4f2bf6(_0x3ff5a4)),_0x144145=_0x57332b(_0x1c288e(window[_0x57cb80([0x4d,0x61,0x74,0x68])][_0x57cb80([0x63,0x65,0x69,0x6c])](_0x33dd45/_0x2bed7d)));window[_0x57cb80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57cb80([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5075d9,_0x144145);}function _0x48bfdd(){const _0x4f877c=_0x57cb80([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c288e(_0x4f2bf6(_0x3ff5a4)),_0x103928=window[_0x57cb80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57cb80([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f877c);return _0x103928?window[_0x57cb80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57332b(_0x103928),0x10)*_0x2bed7d:null;}function _0x337cb3(_0x4f3a9a){return new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x166235,_0x4cc2a5)=>{_0x4f3a9a[_0x57cb80([0x74,0x68,0x65,0x6e])](_0x166235,_0x4cc2a5),window[_0x57cb80([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4cc2a5,0x193fb8b7^_0x889b0e);});}}_0x538388[_0x57cb80([0x6f,0x6e])](_0x57cb80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2406fa,_0xa15de6)=>{if(_0xa15de6[0x0]!=_0x3ff5a4)return _0x8bf6b4(_0x57cb80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa15de6[0x1]={..._0xa15de6[0x1],[_0x57cb80([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c5f89};},{[_0x57cb80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57cb80([0x68,0x69,0x67,0x68])}),_0x538388[_0x57cb80([0x6f,0x6e])](_0x57cb80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x165ff0=>{_0x1bb609(_0x165ff0[_0x57cb80([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13628e=!0x0,_0x3282c2(_0x165ff0[_0x57cb80([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x57cb80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57cb80([0x6c,0x6f,0x77])}),_0x1c8a2f[_0x57cb80([0x74,0x68,0x65,0x6e])](()=>{_0x13628e||_0x8bf6b4(_0x57cb80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x380a6f(){return _0x538388[_0x57cb80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57cb80([0x76,0x69,0x65,0x77])][_0x57cb80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x57cb80([0x61,0x75,0x74,0x6f]);}function _0x205a32(){_0x538388[_0x57cb80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57cb80([0x76,0x69,0x65,0x77])][_0x57cb80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57cb80([0x61,0x75,0x74,0x6f]);}}function _0x42868b(_0x4339c3){const _0x55ea7f=[new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2272f0=>setTimeout(_0x2272f0,0x193752bb^_0x889b0e)),_0x1c8a2f[_0x57cb80([0x74,0x68,0x65,0x6e])](()=>new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3323ae=>{let _0x4215eb=0x0;_0x538388[_0x57cb80([0x6d,0x6f,0x64,0x65,0x6c])][_0x57cb80([0x6f,0x6e])](_0x57cb80([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd14963,_0x3854b2)=>{_0x3854b2[0x0][_0x57cb80([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4215eb++,_0x4215eb==(0x193e6d8f^_0x889b0e)&&(_0x3323ae(),_0xd14963[_0x57cb80([0x6f,0x66,0x66])]());});}))];return window[_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57cb80([0x72,0x61,0x63,0x65])](_0x55ea7f)[_0x57cb80([0x74,0x68,0x65,0x6e])](()=>_0x4339c3);}async function _0x54f286(){await _0x1c8a2f,_0x538388[_0x57cb80([0x6d,0x6f,0x64,0x65,0x6c])][_0x57cb80([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4278f2,_0x538388[_0x57cb80([0x6d,0x6f,0x64,0x65,0x6c])][_0x57cb80([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4278f2,_0x538388[_0x57cb80([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x57cb80([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x464e96(_0x3d044a){const _0x20fdd2=_0x52cf57();_0x538388[_0x20fdd2]=_0x57cb80([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3d044a,_0x3d044a!=_0x57cb80([0x56,0x61,0x6c,0x69,0x64])&&_0x54f286();}function _0x52cf57(){const _0x3e5d42=window[_0x57cb80([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x57cb80([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x57cb80([0x6e,0x6f,0x77])]())[_0x57cb80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x57cb80([0x2e]),'');let _0x1b4680=_0x57cb80([0x41]);for(let _0x497344=0x0;_0x497344<_0x3e5d42[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x497344+=0x2){let _0x541af1=window[_0x57cb80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e5d42[_0x57cb80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x497344,_0x497344+0x2));_0x541af1>=_0x184bac[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x541af1-=_0x184bac[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b4680+=_0x184bac[_0x541af1];}return _0x1b4680;}function _0x3b197c(){const _0x272f7d=_0x844fe1[_0x57cb80([0x73,0x70,0x6c,0x69,0x74])](_0x57cb80([0x2e]));if(0x3!=_0x272f7d[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27bb2a(_0x272f7d[0x1]);function _0x27bb2a(_0x200e77){const _0x2ad648=_0x46e150(_0x200e77);return _0x2ad648&&_0x1fad1c()?_0x2ad648:null;function _0x1fad1c(){const _0xa633a2=_0x2ad648[_0x57cb80([0x6a,0x74,0x69])],_0x3ec137=window[_0x57cb80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa633a2[_0x57cb80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa633a2[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa1b65b={..._0x2ad648,[_0x57cb80([0x6a,0x74,0x69])]:_0xa633a2[_0x57cb80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa633a2[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa1b65b[_0x57cb80([0x76,0x63])],_0x4f2bf6(_0xa1b65b)==_0x3ec137;}}}async function _0x1ddcd3(){let _0x1bb23a=!0x0;try{const _0x223942=_0x844fe1[_0x57cb80([0x73,0x70,0x6c,0x69,0x74])](_0x57cb80([0x2e])),[_0x196e87,_0x18d853,_0x33da21]=_0x223942;return _0x59fdf1(_0x196e87),await _0x414539(_0x196e87,_0x18d853,_0x33da21),_0x1bb23a;}catch(_0x1591a1){return!0x1;}function _0x59fdf1(_0x1f6c9c){const _0x41eb2b=_0x46e150(_0x1f6c9c);_0x41eb2b&&_0x41eb2b[_0x57cb80([0x61,0x6c,0x67])]==_0x57cb80([0x45,0x53,0x32,0x35,0x36])||(_0x1bb23a=!0x1);}async function _0x414539(_0x43a2de,_0x27efcf,_0x3634b5){const _0x2e8efc=window[_0x57cb80([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x57cb80([0x66,0x72,0x6f,0x6d])](_0xfe2f29(_0x3634b5),_0x4cbfb8=>_0x4cbfb8[_0x57cb80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x92e8ba=new window[(_0x57cb80([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x57cb80([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43a2de+_0x57cb80([0x2e])+_0x27efcf),_0x167e6e=window[_0x57cb80([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x57cb80([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x167e6e)return;const _0x2cbb8c=await _0x167e6e[_0x57cb80([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x57cb80([0x6a,0x77,0x6b]),_0x651504,{[_0x57cb80([0x6e,0x61,0x6d,0x65])]:_0x57cb80([0x45,0x43,0x44,0x53,0x41]),[_0x57cb80([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x57cb80([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x57cb80([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x167e6e[_0x57cb80([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x57cb80([0x6e,0x61,0x6d,0x65])]:_0x57cb80([0x45,0x43,0x44,0x53,0x41]),[_0x57cb80([0x68,0x61,0x73,0x68])]:{[_0x57cb80([0x6e,0x61,0x6d,0x65])]:_0x57cb80([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2cbb8c,_0x2e8efc,_0x92e8ba)||(_0x1bb23a=!0x1);}}function _0x46e150(_0x4b98d1){return _0x4b98d1[_0x57cb80([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x57cb80([0x65,0x79]))?JSON[_0x57cb80([0x70,0x61,0x72,0x73,0x65])](_0xfe2f29(_0x4b98d1)):null;}function _0xfe2f29(_0x27e508){return window[_0x57cb80([0x61,0x74,0x6f,0x62])](_0x27e508[_0x57cb80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x57cb80([0x2b]))[_0x57cb80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x57cb80([0x2f])));}function _0x4f2bf6(_0x152807){let _0x208732=0x1505;function _0x5d8f08(_0x50909a){for(let _0x2f1eae=0x0;_0x2f1eae<_0x50909a[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f1eae++){const _0x50dca5=_0x50909a[_0x57cb80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f1eae);_0x208732=(_0x208732<<0x5)+_0x208732+_0x50dca5,_0x208732&=_0x208732;}}function _0x39e944(_0x25f29f){Array[_0x57cb80([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x25f29f)?_0x25f29f[_0x57cb80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39e944):_0x25f29f&&typeof _0x25f29f==_0x57cb80([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x57cb80([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x25f29f)[_0x57cb80([0x73,0x6f,0x72,0x74])]()[_0x57cb80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x21a15a,_0x2e93c8])=>{_0x5d8f08(_0x21a15a),_0x39e944(_0x2e93c8);}):_0x5d8f08(window[_0x57cb80([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x25f29f));}return _0x39e944(_0x152807),_0x208732>>>0x0;}function _0x1c288e(_0x349018){return _0x349018[_0x57cb80([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x57cb80([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x57cb80([0x30]));}function _0x57332b(_0x199534){return _0x199534[_0x57cb80([0x73,0x70,0x6c,0x69,0x74])]('')[_0x57cb80([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x57cb80([0x6a,0x6f,0x69,0x6e])]('');}function _0x4278f2(){}function _0x57cb80(_0x477422){const _0x4b7102=_0x237e;return _0x477422[_0x4b7102(0xce)](_0x1d9c51=>String[_0x4b7102(0xff)](_0x1d9c51))[_0x4b7102(0x103)]('');}_0x464e96(await _0x504bea());}(this);}[_0x2ec223(0x109)](){const _0xd472e3=_0x2ec223,_0x3d5450=this[_0xd472e3(0xe8)][_0xd472e3(0xc4)][_0xd472e3(0x100)];_0x3d5450[_0xd472e3(0x106)](_0xd472e3(0xe7))&&_0x3d5450[_0xd472e3(0xf6)](_0xd472e3(0xe7),{'allowAttributes':[_0xd472e3(0xd5)]}),_0x3d5450[_0xd472e3(0x106)](_0xd472e3(0x105))&&_0x3d5450[_0xd472e3(0xf6)](_0xd472e3(0x105),{'allowAttributes':[_0xd472e3(0xd5)]});}[_0x2ec223(0xfc)](){const _0x21ea39=_0x2ec223,_0x117453=this[_0x21ea39(0xe8)];_0x117453[_0x21ea39(0xd3)][_0x21ea39(0xde)](_0x21ea39(0x101))[_0x21ea39(0x113)]({'model':_0x21ea39(0xd5),'view':_0x21ea39(0xdb)}),_0x117453[_0x21ea39(0xd3)][_0x21ea39(0xde)](_0x21ea39(0xf9))[_0x21ea39(0xc7)]({'model':{'key':_0x21ea39(0xd5),'value':_0x1345ac=>_0x1345ac[_0x21ea39(0xf4)](_0x21ea39(0xdb))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2532ac=_0x117453[_0x21ea39(0xe9)][_0x21ea39(0xf5)](_0x21ea39(0xea));_0x2532ac&&this[_0x21ea39(0xda)](_0x2532ac,_0x21ea39(0xd4),(_0x3d7527,[_0x4fdc49,_0x2732c5])=>{const _0x15c634=_0x21ea39;_0x4fdc49[_0x15c634(0x115)](_0x15c634(0xd5),_0x2732c5);});}[_0x2ec223(0x10d)](){const _0x19dad4=_0x2ec223,_0x97bd99=this[_0x19dad4(0xe8)][_0x19dad4(0xd1)][_0x19dad4(0xf5)](_0x19dad4(0xee))||{},_0x4353e4=this[_0x19dad4(0xe8)][_0x19dad4(0xd1)][_0x19dad4(0xf5)](_0x19dad4(0xfe))||'';this[_0x19dad4(0xe0)]=_0x562620(_0xa8495a[_0x19dad4(0x102)],_0x19dad4(0xcb),{..._0x97bd99,'pubkey':_0x4353e4,'ctx-name':_0x19dad4(0xc3),'sourceList':'','imgOnly':_0x19dad4(0x10c),'removeCopyright':_0x19dad4(0x10c),'localeName':this[_0x19dad4(0xe8)][_0x19dad4(0xf3)][_0x19dad4(0x114)],'externalSourcesEmbedCss':_0x19dad4(0xe3)}),this[_0x19dad4(0xe0)][_0x19dad4(0xf1)]=_0x412592=>{const _0x267dc3=_0x19dad4;if(_0x267dc3(0x116)==_0x412592)return _0x267dc3(0xe1);},_0xa8495a[_0x19dad4(0x102)][_0x19dad4(0xe6)][_0x19dad4(0xdd)](this[_0x19dad4(0xe0)]);}[_0x2ec223(0x10b)](){const _0x49e35d=_0x2ec223;this[_0x49e35d(0xc6)]=_0x562620(_0xa8495a[_0x49e35d(0x102)],_0x49e35d(0xf0),{'ctx-name':_0x49e35d(0xc3)}),_0xa8495a[_0x49e35d(0x102)][_0x49e35d(0xe6)][_0x49e35d(0xdd)](this[_0x49e35d(0xc6)]);}[_0x2ec223(0x108)](){const _0x239c8f=_0x2ec223,_0x4a3d12=this[_0x239c8f(0xe8)][_0x239c8f(0xe9)][_0x239c8f(0xf5)](_0x239c8f(0xc1));_0x4a3d12&&this[_0x239c8f(0xda)](_0x4a3d12,_0x239c8f(0xd9),()=>{const _0x4d7765=_0x239c8f,_0x2eebf8=this[_0x4d7765(0xe8)][_0x4d7765(0xc4)][_0x4d7765(0x102)][_0x4d7765(0x111)][_0x4d7765(0xfd)]();_0x2eebf8&&_0x2eebf8[_0x4d7765(0xf4)](_0x4d7765(0xd5))&&this[_0x4d7765(0xe8)][_0x4d7765(0x10f)][_0x4d7765(0x10a)][_0x4d7765(0xf7)](_0x4d7765(0xc5),()=>{const _0x532751=_0x4d7765;_0x3f56ad(this[_0x532751(0xe8)],_0x2eebf8);});});const _0x31c4ae=this[_0x239c8f(0xe8)][_0x239c8f(0xe9)][_0x239c8f(0xf5)](_0x239c8f(0xf2));_0x31c4ae&&this[_0x239c8f(0xda)](_0x31c4ae,_0x239c8f(0xd9),()=>{const _0x230aae=_0x239c8f,_0x576119=this[_0x230aae(0xe8)][_0x230aae(0xc4)][_0x230aae(0x102)][_0x230aae(0x111)][_0x230aae(0xfd)]();_0x576119&&_0x576119[_0x230aae(0xf4)](_0x230aae(0xd5))&&this[_0x230aae(0xe8)][_0x230aae(0x10f)][_0x230aae(0x10a)][_0x230aae(0xf7)](_0x230aae(0xc5),()=>{const _0x416d85=_0x230aae;_0x3f56ad(this[_0x416d85(0xe8)],_0x576119);});});}}