@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250426.0 → 0.0.0-nightly-20250427.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 _0x5f2ca5,Command as _0x25bd5b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x30d35a,IconGooglePhotos as _0x46b9ac,IconGoogleDrive as _0x212cf9,IconFacebook as _0x44731e,IconDropbox as _0x3a6a1c,IconUploadcareLink as _0x33761f,IconUploadcareImageUpload as _0x4511ff,IconError as et,IconUploadcareImageEdit as _0x342982}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2bcd8c,MenuBarMenuListItemButtonView as _0x720412,View as _0x54a04d,FocusCycler as _0x283405,Dialog as _0x379873,DialogViewPosition as _0x1196a8,SpinnerView as _0x212bd3,IconView as at,Notification as _0x49229f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3809b1,DomEmitterMixin as _0x461a94,global as _0x58cf09,getAncestors as _0x1be4a7,ObservableMixin as _0x1217d7,createElement as _0x5765dc,uid as _0xfb74c7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4f9740}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x587a8d,info as _0x4001e1}from'@uploadcare/upload-client';import*as _0xaeee05 from'@uploadcare/file-uploader';var o=function(_0x203d7e){return _0x203d7e['Local']='local',_0x203d7e['URL']='url',_0x203d7e['Dropbox']='dropbox',_0x203d7e['GDrive']='gdrive',_0x203d7e['Facebook']='facebook',_0x203d7e['GPhotos']='gphotos',_0x203d7e['OneDrive']='onedrive',_0x203d7e;}({});function _(_0x566192,_0x1288b2,_0x4c1dce){const t=_0x566192['t'],_0x5b7447=_0x566192['t'];switch(_0x1288b2){case o['Local']:return{'text':_0x5b7447('Insert'===_0x4c1dce?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5b7447('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x4c1dce?_0x5b7447('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5b7447('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x4c1dce?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x4c1dce?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x4c1dce?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x4c1dce?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x4c1dce?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1288b2;}}class e extends _0x5f2ca5{['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 _0x2fe772=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5ab807;for(const _0x3b031d in _0x2fe772){const _0x38b906=_0x3b031d,_0x25a176=_0x2fe772[_0x38b906];if('uploadcareLicenseKeyValid'==_0x25a176||'uploadcareLicenseKeyInvalid'==_0x25a176||'uploadcareLicenseKeyExpired'==_0x25a176||'uploadcareLicenseKeyDomainLimit'==_0x25a176||'uploadcareLicenseKeyNotAllowed'==_0x25a176||'uploadcareLicenseKeyEvaluationLimit'==_0x25a176||'uploadcareLicenseKeyTrialLimit'==_0x25a176||'uploadcareLicenseKeyUsageLimit'==_0x25a176){delete _0x2fe772[_0x38b906],_0x5ab807=_0x25a176,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5ab807&&_0x2fe772['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5ab807&&_0x2fe772['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5ab807&&_0x2fe772['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5ab807&&_0x2fe772['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5ab807&&_0x2fe772['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5ab807&&_0x2fe772['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5ab807&&_0x2fe772['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4aa31c}=this,_0x1c72e7=_0x4aa31c['commands']['get']('uploadcare');if(!_0x1c72e7)return;const _0x2b6c1a=this['_normalizeConfigSourceList'](_0x4aa31c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x43b254,_0x4fa78b)=>{const _0x1fe1dc=this['_getIntegrationKey'](_0x4fa78b['type']);return _0x43b254[_0x1fe1dc]||(_0x43b254[_0x1fe1dc]=[]),_0x43b254[_0x1fe1dc]['push'](_0x4fa78b),_0x43b254;},{});_0x4aa31c['plugins']['has']('ImageInsertUI')&&_0x4aa31c['commands']['get']('uploadcare')&&Object['entries'](_0x2b6c1a)['forEach'](([_0x2d3610,_0x13f476])=>{_0x4aa31c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2d3610,'observable':()=>_0x1c72e7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x13f476),'formViewCreator':()=>this['_createDropdownButtons'](_0x13f476),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x13f476),'override':'assetManager'!==_0x2d3610});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x540c42){const {locale:_0x4adad0}=this['editor'];return _0x540c42['map'](_0x548d8a=>{const _0x3f91ed=_(_0x4adad0,_0x548d8a,'Insert');switch(_0x548d8a){case o['Local']:return{'icon':_0x4511ff,'type':o['Local'],..._0x3f91ed};case o['URL']:return{'icon':_0x33761f,'type':o['URL'],..._0x3f91ed};case o['Dropbox']:return{'icon':_0x3a6a1c,'type':o['Dropbox'],..._0x3f91ed};case o['Facebook']:return{'icon':_0x44731e,'type':o['Facebook'],..._0x3f91ed};case o['GDrive']:return{'icon':_0x212cf9,'type':o['GDrive'],..._0x3f91ed};case o['GPhotos']:return{'icon':_0x46b9ac,'type':o['GPhotos'],..._0x3f91ed};case o['OneDrive']:return{'icon':_0x30d35a,'type':o['OneDrive'],..._0x3f91ed};}});}['_getIntegrationKey'](_0x2f091c){switch(_0x2f091c){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x48560e,_0x2c4ffe){const _0x56d07d=this['editor'],_0x45a472=new _0x48560e(_0x56d07d['locale']),_0x360407=_0x56d07d['commands']['get']('uploadcare');return _0x45a472['bind']('isEnabled')['to'](_0x360407),_0x45a472['on']('execute',()=>{_0x360407['execute'](_0x2c4ffe);}),_0x45a472;}['_createToolbarButton'](_0x11ff05){const {locale:_0x4c9133}=this['editor'],_0x3c870a=this['editor']['plugins']['get']('ImageInsertUI'),_0x5a23a6=_0x11ff05[0x0],_0x1f0554=this['_createButton'](_0x2bcd8c,_0x5a23a6['type']);return _0x1f0554['icon']=_0x5a23a6['icon'],_0x1f0554['bind']('label')['to'](_0x3c870a,'isImageSelected',_0x472f74=>_(_0x4c9133,_0x5a23a6['type'],_0x472f74?'Replace':'Insert')['text']),_0x1f0554['tooltip']=!0x0,_0x1f0554;}['_createDropdownButtons'](_0x5ec4ce){const {locale:_0x53a451}=this['editor'],_0x471482=this['editor']['plugins']['get']('ImageInsertUI');return _0x5ec4ce['map'](_0x26027f=>{const _0x19e289=this['_createButton'](_0x2bcd8c,_0x26027f['type']);return _0x19e289['withText']=!0x0,_0x19e289['icon']=_0x26027f['icon'],_0x19e289['bind']('label')['to'](_0x471482,'isImageSelected',_0x25d269=>_(_0x53a451,_0x26027f['type'],_0x25d269?'Replace':'Insert')['text']),_0x19e289;});}['_createMenuBarButtons'](_0x4b31ee){return _0x4b31ee['map'](_0xab9a45=>{const _0x2701f3=this['_createButton'](_0x720412,_0xab9a45['type']);return _0x2701f3['icon']=_0xab9a45['icon'],_0x2701f3['label']=_0xab9a45['shortText'],_0x2701f3;});}}class q extends _0x54a04d{['focusTracker'];['focusCycler'];constructor(_0x464023){super(_0x464023),this['focusTracker']=new _0x3809b1(),this['focusCycler']=new _0x283405({'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(_0x5833cc){super(_0x5833cc),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(_0x1994b9,_0x1358c1){const _0x560463=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x205ab8=>_0x205ab8<=_0x1358c1)['map'](_0x135bf2=>_0x1994b9['replace'](/\/$/,'')+'/-/resize/'+_0x135bf2+'x/\x20'+_0x135bf2+'w');return{'imageFallbackUrl':_0x1994b9,'imageSources':[{'srcset':_0x560463['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1358c1+'px)\x20100vw,\x20'+_0x1358c1+'px','type':'image/webp'}]};}function A(_0xa00986,_0x173ba2,_0x269d59){const _0x43a667=_0xa00986['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x43a667?parseInt(_0x43a667[0x1],0xa):_0x173ba2,'height':_0x43a667?parseInt(_0x43a667[0x2],0xa):_0x269d59};}function m(_0x47ba5e,_0xfb17df){const _0x2871bd=Object['create'](_0x461a94),_0x349aca=_0x47ba5e['plugins']['get']('ImageUtils'),_0x3a87e0=_0x47ba5e['editing']['mapper']['toViewElement'](_0xfb17df),_0x3ebad7=_0x349aca['findViewImgElement'](_0x3a87e0),_0xabbb52=_0x47ba5e['editing']['view']['domConverter']['viewToDom'](_0x3ebad7),_0x1e1297=_0xfb17df['getAttribute']('width'),_0x2255da=_0xfb17df['getAttribute']('height'),_0x4709f0='image-processing';_0x47ba5e['editing']['view']['change'](_0x3ca5cd=>{_0x3ca5cd['addClass'](_0x4709f0,_0x3a87e0),_0x3ca5cd['setStyle']('aspect-ratio',_0x1e1297+'/'+_0x2255da,_0x3ebad7);}),_0x2871bd['listenTo'](_0xabbb52,'load',()=>{_0x2871bd['stopListening'](_0xabbb52,'load'),_0x47ba5e['editing']['view']['change'](_0xbdc9=>{_0xbdc9['removeClass'](_0x4709f0,_0x3a87e0),_0xbdc9['removeStyle']('aspect-ratio',_0x3ebad7);});});}function V(_0x3feb41){if(Array['isArray'](_0x3feb41)){const _0x229a59=_0x3feb41['map'](V);return _0x4cc8ac=>_0x229a59['some'](_0x58a057=>_0x58a057(_0x4cc8ac));}if('origin'==_0x3feb41){const _0x336854=_0x58cf09['window']['location']['origin'];return _0x22d23f=>new URL(_0x22d23f,_0x58cf09['document']['baseURI'])['origin']==_0x336854;}return'function'==typeof _0x3feb41?_0x3feb41:_0x3feb41 instanceof RegExp?_0x2701b2=>!(!_0x2701b2['match'](_0x3feb41)&&!_0x2701b2['replace'](/^https?:\/\//,'')['match'](_0x3feb41)):()=>!0x1;}function F(_0x295b22,_0x3208c2){return _0x1be4a7(_0x295b22['target'])['includes'](_0x3208c2);}class l extends/* #__PURE__ -- @preserve */
24
- _0x1217d7(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x56a38b,_0x3a43cb,_0x1734f9){super(),this['_editor']=_0x56a38b,this['_editing']=_0x3a43cb,this['_dialog']=_0x56a38b['plugins']['get'](_0x379873),this['_api']=_0x3a43cb['ctxElement']['getAPI'](),this['_type']=_0x1734f9,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:_0x442374,model:_0x58694d}=this['_editor'],_0x1e8580=_0x58694d['document']['selection']['getSelectedElement'](),_0x46b0c0=_0x1e8580&&(_0x1e8580['is']('element','imageBlock')||_0x1e8580['is']('element','imageInline'));this['_formView']=new S(_0x442374),this['_dialog']['show']({'id':'uploadCare','icon':_0x4511ff,'title':_(_0x442374,this['_type'],_0x46b0c0?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1196a8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1205dc=>!F(_0x1205dc,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x41e4cf}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xf37c5c=>{const _0x25baf9=_0x41e4cf['length'];for(const _0x3ba3de of _0x41e4cf){const _0x1e1829=_0x3ba3de===_0x41e4cf[_0x25baf9-0x1],{cdnUrl:_0x3aaaf1,fileInfo:_0xf2bbb1}=_0x3ba3de;if(!_0x3aaaf1||!_0xf2bbb1)continue;const {width:_0x466945,height:_0x96a28f}=_0xf2bbb1['imageInfo'],_0x404331=A(_0x3aaaf1,_0x466945,_0x96a28f),_0x524ef1=E(_0x3aaaf1,_0x404331['width']),_0x5742bf={'id':_0xf2bbb1['uuid'],'type':'image','attributes':{'imageDimension':_0x404331,..._0x524ef1}};this['_insertAsset'](_0x5742bf,_0x1e1829,_0xf37c5c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x423e3e=>{'idle'===_0x423e3e['detail']['status']&&!_0x423e3e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x484968,_0x5b2835,_0x2578bc){const _0x46dfd1=this['_editor']['model']['document']['selection'],_0x52f74a=_0x46dfd1['getSelectedElement'](),_0x3c7fe4=!(!_0x52f74a||!_0x52f74a['is']('element','imageInline'));_0x2578bc['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x484968,_0x3c7fe4),_0x5b2835||_0x2578bc['setSelection'](_0x46dfd1['getLastPosition']());}['_insertImage'](_0x3f4e1f,_0x210b99){const _0x5afc60=this['_editor'],{imageDimension:_0x4b16da,imageFallbackUrl:_0x21a75f,imageSources:_0x39458c}=_0x3f4e1f['attributes'];_0x5afc60['execute']('insertImage',{'imageType':_0x210b99?'imageInline':null,'source':{'uploadcareImageId':_0x3f4e1f['id'],'src':_0x21a75f,'sources':_0x39458c,..._0x4b16da}});}}class n extends _0x25bd5b{['_editing'];['_controller']=null;static get['requires'](){return[_0x379873,i];}constructor(_0x3ab738){super(_0x3ab738),this['_editing']=_0x3ab738['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2a7306){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2a7306);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x973b1c,publicKey:_0x3a39fb,signal:_0x39b49c,onProgress:_0x46ed82}){return _0x587a8d(_0x973b1c,{'publicKey':_0x3a39fb,'store':'auto','signal':_0x39b49c,'onProgress':_0x46ed82});}static['getInfo'](_0x6bd6ad,_0x1faac2){return _0x4001e1(_0x6bd6ad,_0x1faac2);}}class p extends _0x5f2ca5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4f9740,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x527630=this['editor'];if(!!!_0x527630['config']['get']('uploadcare'))return;_0x527630['plugins']['get'](_0x4f9740)['createUploadAdapter']=_0x6b0a77=>new x(_0x6b0a77,_0x527630),_0x527630['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5e89d4,{imageElement:_0x566785,data:_0x42eb7c})=>{_0x527630['model']['change'](_0x194a34=>{_0x194a34['setAttribute']('uploadcareImageId',_0x42eb7c['uploadcareImageId'],_0x566785);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x5efc83,_0x49ffae){this['loader']=_0x5efc83,this['editor']=_0x49ffae,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4fd02c=this['editor']['config']['get']('uploadcare.pubkey'),_0x89e559=await this['loader']['file'];return C['upload']({'file':_0x89e559,'publicKey':_0x4fd02c,'signal':this['controller']['signal'],'onProgress':_0x3e26c0=>{_0x3e26c0&&_0x3e26c0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3e26c0['value']);}})['then'](async _0x1ec975=>{const {imageFallbackUrl:_0x4660f3,imageSources:_0x5f7cd5}=E(_0x1ec975['cdnUrl'],_0x1ec975['imageInfo']['width']);return{'uploadcareImageId':_0x1ec975['uuid'],'default':_0x4660f3,'sources':_0x5f7cd5};})['catch'](()=>{const _0x261683=t('Cannot\x20upload\x20file:')+('\x20'+_0x89e559['name']+'.');return Promise['reject'](_0x261683);});}['abort'](){this['controller']['abort']();}}class i extends _0x5f2ca5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x379873];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x38e82f=this['editor'];_0x38e82f['commands']['add']('uploadcare',new n(_0x38e82f));}['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 _0x369a5b=_0x58cf09['document']['querySelector']('input[uploadcare-file-input]');_0x369a5b&&_0x369a5b['remove']();}),async function(_0x4b7252){const _0x2b80b5=_0x392972([0x72,0x36,0x7a,0x50,0x63,0x71,0x4f,0x75,0x51,0x6f,0x59,0x6e,0x52,0x48,0x4e,0x6b,0x49,0x55,0x74,0x30,0x35,0x34,0x64,0x43,0x65,0x69,0x47,0x45,0x61,0x73,0x79,0x6d,0x41,0x54,0x42,0x68,0x6a,0x62,0x4a,0x77,0x31,0x4b,0x37,0x46,0x66,0x5a,0x4d,0x53,0x39,0x70,0x78,0x33,0x76,0x32,0x58,0x56,0x6c,0x67,0x38,0x57,0x4c,0x44]),_0x569c89=0x6b248b60,_0xb6b024=0x6b23ed40^_0x569c89,_0x3189f6=window[_0x392972([0x44,0x61,0x74,0x65])][_0x392972([0x6e,0x6f,0x77])](),_0x3f06ec=_0x4b7252[_0x392972([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b6169=new window[(_0x392972([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32804d=>{_0x3f06ec[_0x392972([0x6f,0x6e,0x63,0x65])](_0x392972([0x72,0x65,0x61,0x64,0x79]),_0x32804d);}),_0xadb27b={[_0x392972([0x6b,0x74,0x79])]:_0x392972([0x45,0x43]),[_0x392972([0x75,0x73,0x65])]:_0x392972([0x73,0x69,0x67]),[_0x392972([0x63,0x72,0x76])]:_0x392972([0x50,0x2d,0x32,0x35,0x36]),[_0x392972([0x78])]:_0x392972([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]),[_0x392972([0x79])]:_0x392972([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]),[_0x392972([0x61,0x6c,0x67])]:_0x392972([0x45,0x53,0x32,0x35,0x36])},_0x3bb7de=_0x3f06ec[_0x392972([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x392972([0x67,0x65,0x74])](_0x392972([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x426de1(){let _0x2726ea,_0x520594=null,_0x4ffc66=null;try{if(_0x3bb7de==_0x392972([0x47,0x50,0x4c]))return _0x392972([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2726ea=_0x4d29df(),!_0x2726ea)return _0x392972([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2726ea[_0x392972([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ffc66=_0x511c14(_0x2726ea[_0x392972([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2726ea[_0x392972([0x6a,0x74,0x69])])),await _0xc7de1e()?_0x6d5c0f()?_0x723ce1()?_0x392972([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a582f()?(_0x2726ea[_0x392972([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x392972([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x520594=_0x220fb4(_0x392972([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2726ea[_0x392972([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x392972([0x74,0x72,0x69,0x61,0x6c])&&(_0x520594=_0x220fb4(_0x392972([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2473e6()):_0x392972([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x392972([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x392972([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5488f7){return _0x392972([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x723ce1(){const _0x484b3c=[_0x392972([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x392972([0x74,0x72,0x69,0x61,0x6c])][_0x392972([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2726ea[_0x392972([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3189f6/0x3e8:0xe10*_0xb6b024;return _0x2726ea[_0x392972([0x65,0x78,0x70])]<_0x484b3c;}function _0x6d5c0f(){const _0x5d127b=_0x2726ea[_0x392972([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5d127b&&(!!_0x5d127b[_0x392972([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x392972([0x2a]))||!!_0x5d127b[_0x392972([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x392972([0x55,0x50,0x4c,0x43])));}function _0x5a582f(){const _0x2824ce=_0x2726ea[_0x392972([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2824ce||0x0==_0x2824ce[_0x392972([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2404bf}=new URL(window[_0x392972([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2824ce[_0x392972([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2404bf))return!0x0;const _0x16ff4c=_0x2404bf[_0x392972([0x73,0x70,0x6c,0x69,0x74])](_0x392972([0x2e]));return _0x2824ce[_0x392972([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2dc689=>_0x2dc689[_0x392972([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x392972([0x2a])))[_0x392972([0x6d,0x61,0x70])](_0xb8465=>_0xb8465[_0x392972([0x73,0x70,0x6c,0x69,0x74])](_0x392972([0x2e])))[_0x392972([0x73,0x6f,0x6d,0x65])](_0xf21366=>_0x16ff4c[_0x392972([0x65,0x76,0x65,0x72,0x79])]((_0x425c85,_0x22613f)=>_0xf21366[_0x22613f]===_0x425c85||_0xf21366[_0x22613f]===_0x392972([0x2a])));}function _0x2473e6(){return _0x520594&&_0x4ffc66?new window[(_0x392972([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32c05e,_0x6e6161)=>{_0x520594[_0x392972([0x74,0x68,0x65,0x6e])](_0x32c05e,_0x6e6161),_0x4ffc66[_0x392972([0x74,0x68,0x65,0x6e])](_0x3a103f=>{_0x3a103f!=_0x392972([0x56,0x61,0x6c,0x69,0x64])&&_0x32c05e(_0x3a103f);},_0x6e6161);}):_0x520594||_0x4ffc66||_0x392972([0x56,0x61,0x6c,0x69,0x64]);}}function _0x511c14(_0x265398,_0x545384){return new window[(_0x392972([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b3191=>{if(_0x217454())return _0x5b3191(_0x392972([0x56,0x61,0x6c,0x69,0x64]));_0x5861cc(),_0x3f06ec[_0x392972([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x392972([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3963ef=!0x1;const _0x57ba4b=_0xfb74c7();function _0x408bd5(_0x572469){return!!_0x572469&&(typeof _0x572469===_0x392972([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x572469===_0x392972([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x572469[_0x392972([0x74,0x68,0x65,0x6e])]===_0x392972([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x572469[_0x392972([0x63,0x61,0x74,0x63,0x68])]===_0x392972([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x20fe8b(_0x4e49b5){_0x5c51c4(_0x4e49b5)[_0x392972([0x74,0x68,0x65,0x6e])](_0x57d5be=>{if(!_0x57d5be||_0x57d5be[_0x392972([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x392972([0x6f,0x6b]))return _0x392972([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x998129(_0x2da9c8(_0x57ba4b+_0x545384))!=_0x57d5be[_0x392972([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x392972([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x392972([0x56,0x61,0x6c,0x69,0x64]);})[_0x392972([0x74,0x68,0x65,0x6e])](_0x11fdcf=>(_0x47815f(),_0x11fdcf),()=>{const _0x53a356=_0x166dad();return null==_0x53a356?(_0x47815f(),_0x392972([0x56,0x61,0x6c,0x69,0x64])):_0x392972(_0x3189f6-_0x53a356>(0x4f280f60^_0x569c89)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x392972([0x74,0x68,0x65,0x6e])](_0x5b3191)[_0x392972([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b3191(_0x392972([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f0e79=0x6b1265e0^_0x569c89;function _0x47815f(){const _0x11faba=_0x392972([0x6c,0x6c,0x63,0x74,0x2d])+_0x998129(_0x2da9c8(_0x265398)),_0x593b47=_0x2e881b(_0x998129(window[_0x392972([0x4d,0x61,0x74,0x68])][_0x392972([0x63,0x65,0x69,0x6c])](_0x3189f6/_0x3f0e79)));window[_0x392972([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x392972([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11faba,_0x593b47);}function _0x166dad(){const _0x19bed3=_0x392972([0x6c,0x6c,0x63,0x74,0x2d])+_0x998129(_0x2da9c8(_0x265398)),_0x542a4c=window[_0x392972([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x392972([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19bed3);return _0x542a4c?window[_0x392972([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e881b(_0x542a4c),0x10)*_0x3f0e79:null;}function _0x5c51c4(_0x585f15){return new window[(_0x392972([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29785f,_0x326993)=>{_0x585f15[_0x392972([0x74,0x68,0x65,0x6e])](_0x29785f,_0x326993),window[_0x392972([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x326993,0x6b255fa0^_0x569c89);});}}_0x3f06ec[_0x392972([0x6f,0x6e])](_0x392972([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2120b4,_0x3c9eca)=>{if(_0x3c9eca[0x0]!=_0x265398)return _0x5b3191(_0x392972([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c9eca[0x1]={..._0x3c9eca[0x1],[_0x392972([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x57ba4b};},{[_0x392972([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x392972([0x68,0x69,0x67,0x68])}),_0x3f06ec[_0x392972([0x6f,0x6e])](_0x392972([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2cc854=>{_0x408bd5(_0x2cc854[_0x392972([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3963ef=!0x0,_0x20fe8b(_0x2cc854[_0x392972([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x392972([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x392972([0x6c,0x6f,0x77])}),_0x4b6169[_0x392972([0x74,0x68,0x65,0x6e])](()=>{_0x3963ef||_0x5b3191(_0x392972([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x217454(){return _0x3f06ec[_0x392972([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x392972([0x76,0x69,0x65,0x77])][_0x392972([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x392972([0x61,0x75,0x74,0x6f]);}function _0x5861cc(){_0x3f06ec[_0x392972([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x392972([0x76,0x69,0x65,0x77])][_0x392972([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x392972([0x61,0x75,0x74,0x6f]);}}function _0x220fb4(_0x10565c){const _0x963565=[new window[(_0x392972([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3340d1=>setTimeout(_0x3340d1,0x6b2db5ac^_0x569c89)),_0x4b6169[_0x392972([0x74,0x68,0x65,0x6e])](()=>new window[(_0x392972([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x191183=>{let _0x47bbf5=0x0;_0x3f06ec[_0x392972([0x6d,0x6f,0x64,0x65,0x6c])][_0x392972([0x6f,0x6e])](_0x392972([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2135d5,_0x498973)=>{_0x498973[0x0][_0x392972([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x47bbf5++,_0x47bbf5==(0x6b248a98^_0x569c89)&&(_0x191183(),_0x2135d5[_0x392972([0x6f,0x66,0x66])]());});}))];return window[_0x392972([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x392972([0x72,0x61,0x63,0x65])](_0x963565)[_0x392972([0x74,0x68,0x65,0x6e])](()=>_0x10565c);}async function _0x519756(){await _0x4b6169,_0x3f06ec[_0x392972([0x6d,0x6f,0x64,0x65,0x6c])][_0x392972([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x236e22,_0x3f06ec[_0x392972([0x6d,0x6f,0x64,0x65,0x6c])][_0x392972([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x236e22,_0x3f06ec[_0x392972([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x392972([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ae15f(_0x72fd66){const _0xa65df7=_0x1886c3();_0x3f06ec[_0xa65df7]=_0x392972([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x72fd66,_0x72fd66!=_0x392972([0x56,0x61,0x6c,0x69,0x64])&&_0x519756();}function _0x1886c3(){const _0x13fc8c=window[_0x392972([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x392972([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x392972([0x6e,0x6f,0x77])]())[_0x392972([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x392972([0x2e]),'');let _0x2f4c28=_0x392972([0x72]);for(let _0xaafb73=0x0;_0xaafb73<_0x13fc8c[_0x392972([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xaafb73+=0x2){let _0x459c25=window[_0x392972([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13fc8c[_0x392972([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xaafb73,_0xaafb73+0x2));_0x459c25>=_0x2b80b5[_0x392972([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x459c25-=_0x2b80b5[_0x392972([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f4c28+=_0x2b80b5[_0x459c25];}return _0x2f4c28;}function _0x4d29df(){const _0x58a4a7=_0x3bb7de[_0x392972([0x73,0x70,0x6c,0x69,0x74])](_0x392972([0x2e]));if(0x3!=_0x58a4a7[_0x392972([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x25a0f4(_0x58a4a7[0x1]);function _0x25a0f4(_0x3546a3){const _0x26331e=_0x161fd1(_0x3546a3);return _0x26331e&&_0x3b6975()?_0x26331e:null;function _0x3b6975(){const _0x5530d3=_0x26331e[_0x392972([0x6a,0x74,0x69])],_0x1afb27=window[_0x392972([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5530d3[_0x392972([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5530d3[_0x392972([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51db74={..._0x26331e,[_0x392972([0x6a,0x74,0x69])]:_0x5530d3[_0x392972([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5530d3[_0x392972([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51db74[_0x392972([0x76,0x63])],_0x2da9c8(_0x51db74)==_0x1afb27;}}}async function _0xc7de1e(){let _0x3d3fa5=!0x0;try{const _0x4dee1d=_0x3bb7de[_0x392972([0x73,0x70,0x6c,0x69,0x74])](_0x392972([0x2e])),[_0x5733e1,_0x190a66,_0x1b2bb4]=_0x4dee1d;return _0x28f69c(_0x5733e1),await _0x5dc7c3(_0x5733e1,_0x190a66,_0x1b2bb4),_0x3d3fa5;}catch(_0x41aed0){return!0x1;}function _0x28f69c(_0x11e378){const _0x1dac31=_0x161fd1(_0x11e378);_0x1dac31&&_0x1dac31[_0x392972([0x61,0x6c,0x67])]==_0x392972([0x45,0x53,0x32,0x35,0x36])||(_0x3d3fa5=!0x1);}async function _0x5dc7c3(_0x19033b,_0x58678e,_0x414268){const _0x5e9f73=window[_0x392972([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x392972([0x66,0x72,0x6f,0x6d])](_0x5834b9(_0x414268),_0x3e2553=>_0x3e2553[_0x392972([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f6888=new window[(_0x392972([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x392972([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19033b+_0x392972([0x2e])+_0x58678e),_0x48db4d=window[_0x392972([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x392972([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48db4d)return;const _0xf43856=await _0x48db4d[_0x392972([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x392972([0x6a,0x77,0x6b]),_0xadb27b,{[_0x392972([0x6e,0x61,0x6d,0x65])]:_0x392972([0x45,0x43,0x44,0x53,0x41]),[_0x392972([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x392972([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x392972([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48db4d[_0x392972([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x392972([0x6e,0x61,0x6d,0x65])]:_0x392972([0x45,0x43,0x44,0x53,0x41]),[_0x392972([0x68,0x61,0x73,0x68])]:{[_0x392972([0x6e,0x61,0x6d,0x65])]:_0x392972([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf43856,_0x5e9f73,_0x1f6888)||(_0x3d3fa5=!0x1);}}function _0x161fd1(_0x2732f8){return _0x2732f8[_0x392972([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x392972([0x65,0x79]))?JSON[_0x392972([0x70,0x61,0x72,0x73,0x65])](_0x5834b9(_0x2732f8)):null;}function _0x5834b9(_0x4e7d68){return window[_0x392972([0x61,0x74,0x6f,0x62])](_0x4e7d68[_0x392972([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x392972([0x2b]))[_0x392972([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x392972([0x2f])));}function _0x2da9c8(_0x3a5d61){let _0x511c54=0x1505;function _0x50fb9c(_0x507546){for(let _0x1219c6=0x0;_0x1219c6<_0x507546[_0x392972([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1219c6++){const _0x32e824=_0x507546[_0x392972([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1219c6);_0x511c54=(_0x511c54<<0x5)+_0x511c54+_0x32e824,_0x511c54&=_0x511c54;}}function _0x462a8a(_0x1853d8){Array[_0x392972([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1853d8)?_0x1853d8[_0x392972([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x462a8a):_0x1853d8&&typeof _0x1853d8==_0x392972([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x392972([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1853d8)[_0x392972([0x73,0x6f,0x72,0x74])]()[_0x392972([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x870866,_0x50a733])=>{_0x50fb9c(_0x870866),_0x462a8a(_0x50a733);}):_0x50fb9c(window[_0x392972([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1853d8));}return _0x462a8a(_0x3a5d61),_0x511c54>>>0x0;}function _0x998129(_0x4b7cf2){return _0x4b7cf2[_0x392972([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x392972([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x392972([0x30]));}function _0x2e881b(_0x53b004){return _0x53b004[_0x392972([0x73,0x70,0x6c,0x69,0x74])]('')[_0x392972([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x392972([0x6a,0x6f,0x69,0x6e])]('');}function _0x236e22(){}function _0x392972(_0x49a489){return _0x49a489['map'](_0x469ee3=>String['fromCharCode'](_0x469ee3))['join']('');}_0x2ae15f(await _0x426de1());}(this);}['_initSchema'](){const _0x4025aa=this['editor']['model']['schema'];_0x4025aa['isRegistered']('imageBlock')&&_0x4025aa['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4025aa['isRegistered']('imageInline')&&_0x4025aa['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1418b3=this['editor'];_0x1418b3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1418b3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xd59baa=>_0xd59baa['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x585482=_0x1418b3['commands']['get']('replaceImageSource');_0x585482&&this['listenTo'](_0x585482,'cleanupImage',(_0xdad21a,[_0x3aa123,_0x4e8469])=>{_0x3aa123['removeAttribute']('uploadcareImageId',_0x4e8469);});}['_initConfig'](){const _0x1e37b5=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1ece8f=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5765dc(_0x58cf09['document'],'uc-config',{..._0x1e37b5,'pubkey':_0x1ece8f,'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']=_0x56f201=>{if('closeMax'==_0x56f201)return'#uc-icon-arrow-down';},_0x58cf09['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5765dc(_0x58cf09['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x58cf09['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x7a2fb7=this['editor']['commands']['get']('insertImage');_0x7a2fb7&&this['listenTo'](_0x7a2fb7,'execute',()=>{const _0x2f5ffc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2f5ffc&&_0x2f5ffc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2f5ffc);});});const _0x592524=this['editor']['commands']['get']('uploadcareImageReplace');_0x592524&&this['listenTo'](_0x592524,'execute',()=>{const _0x5e76bc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e76bc&&_0x5e76bc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5e76bc);});});}}class u extends _0x5f2ca5{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36c801){super(_0x36c801),_0x36c801['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0xaeee05['defineComponents'](_0xaeee05);}}class ta extends _0x54a04d{constructor(_0x54d21e){super(_0x54d21e);const t=_0x54d21e['t'],_0x438ca0=this['bindTemplate'],_0x509695=new _0x212bd3();_0x509695['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':[_0x509695,{'text':_0x438ca0['to']('imageUploadProgress',_0x643775=>t('Loading\x20image...')+'\x20('+(_0x643775||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 _0x54a04d{constructor(_0x5acad5){super(_0x5acad5);const t=_0x5acad5['t'];this['set']('errorType',null);const _0x397705=new _0x2bcd8c(_0x5acad5);_0x397705['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x397705['withText']=!0x0,_0x397705['class']='ck-button-action',_0x397705['on']('execute',()=>{this['fire']('retry');}),_0x397705['bind']('isVisible')['to'](this,'errorType',_0x4f2a71=>'NotFound'!==_0x4f2a71);const _0x3b0440=new at();_0x3b0440['content']=et,_0x3b0440['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x129957=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':[_0x3b0440,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x129957['to']('errorType',_0x366f95=>t('NotFound'!==_0x366f95?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x397705]},{'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 _0x54a04d{constructor(_0x3e501e,_0x552457){super(_0x3e501e);const _0x3be659=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x552457,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3be659['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x218838,_0x14440b,_0x3340b0){super(_0x218838),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x218838),this['_errorView']=new rt(_0x218838),this['_editingView']=new tt(_0x218838,_0x3340b0),this['_focusableView']=new _0x54a04d(_0x218838),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x14440b),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'],_0x163b14=>{this['_addUploadcareImageEditorListeners'](_0x163b14);});}),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'](_0x3d55bb,_0x39a7d9){const _0x4eadf6='uc-cloud-image-editor',_0x39e2c3=_0x3d55bb['querySelector'](_0x4eadf6);if(_0x39e2c3)return _0x39a7d9(_0x39e2c3);const _0x12986c=new MutationObserver(_0x83b7d7=>{const _0x318ffe=_0x83b7d7['filter'](_0x2de4f6=>_0x2de4f6['target']===_0x3d55bb&&_0x2de4f6['addedNodes']['length']>0x0&&_0x2de4f6['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4eadf6);_0x318ffe['length']&&(_0x12986c['disconnect'](),_0x39a7d9(_0x318ffe[0x0]['addedNodes'][0x0]));});_0x12986c['observe'](_0x3d55bb,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4bb857){_0x4bb857['addEventListener']('apply',_0x304769=>{this['fire']('apply',{'imageSrc':_0x304769['detail']['cdnUrl']});}),_0x4bb857['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x1217d7(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x37723a,_0x5669c1,_0x4e21d0){super(),this['_editor']=_0x37723a,this['_dialog']=_0x5669c1,this['_imageElement']=_0x4e21d0,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 _0x120eb3=this['_imageElement'],_0x591770=_0x120eb3['getAttribute']('uploadcareImageId'),_0xc53a77=_0x120eb3['getAttribute']('src');if(_0x591770)await this['_loadImageInfo'](_0x591770,_0xc53a77);else{if(this['_imageCache']['has'](_0xc53a77)){const _0x47cffe=this['_imageCache']['get'](_0xc53a77);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47cffe['url'],this['imageDimension']=_0x47cffe['dimension'],this['imageId']=_0x47cffe['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5e8cce}=this['_editor'],t=_0x5e8cce['t'],_0x3c1a65=new Z(_0x5e8cce,this['imageStatus'],this['_attributes']);_0x3c1a65['bind']('status')['to'](this,'imageStatus'),_0x3c1a65['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3c1a65['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3c1a65['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3c1a65,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x342982,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3c1a65,'position':_0x1196a8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3c1a65['focus']();},'onHide':()=>{_0x3c1a65['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x127d96=>!F(_0x127d96,_0x3c1a65['element'])}});}['_loadImageInfo'](_0x5a1f28,_0xeb5160){return C['getInfo'](_0x5a1f28,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x342f9a=>{const {width:_0xf0e24,height:_0x50be23}=_0x342f9a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xeb5160,this['imageDimension']={'width':_0xf0e24,'height':_0x50be23},this['imageId']=_0x5a1f28;})['catch'](_0x24d9c2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x24d9c2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2a7e6e,_0xcc34df){return this['_getImageAsFile'](_0x2a7e6e)['then'](_0x2a4c0e=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xcc34df['signal'],'file':_0x2a4c0e,'onProgress':_0x383dac=>{_0x383dac&&_0x383dac['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x383dac['value']));}}))['then'](_0xd43f38=>{const {width:_0x13a43e,height:_0x46ce05}=_0xd43f38['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xd43f38['cdnUrl'],this['imageDimension']={'width':_0x13a43e,'height':_0x46ce05},this['imageId']=_0xd43f38['uuid'],this['imageUploadProgress']=null;const _0x3ba33e=_0x2a7e6e['getAttribute']('src');this['_imageCache']['set'](_0x3ba33e,{'id':_0xd43f38['uuid'],'url':_0xd43f38['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x214eb2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x214eb2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xc656cd,_0x5a68bf){_0xc656cd['on']('apply',(_0xdb7338,_0x56c726)=>{this['_replaceImage'](_0x5a68bf,_0x56c726['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xc656cd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xc656cd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3e10d2,_0x34de3d,_0x12c1bb){const _0x1030fe=this['_editor'],{width:_0x24510f,height:_0x360676}=A(_0x34de3d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1eca91,imageSources:_0x36b4da}=E(_0x34de3d,_0x24510f);_0x1030fe['model']['change'](_0x363510=>{if('$graveyard'===_0x3e10d2['root']['rootName']){_0x1030fe['execute']('insertImage',{'imageType':_0x3e10d2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3e10d2['getAttributes']()),'uploadcareImageId':_0x12c1bb,'src':_0x1eca91,'sources':_0x36b4da,'width':_0x24510f,'height':_0x360676}});const _0x41b4ab=_0x3e10d2['getChildren']();_0x3e10d2=_0x1030fe['model']['document']['selection']['getSelectedElement']();for(const _0x34810c of _0x41b4ab)_0x363510['append'](_0x363510['cloneElement'](_0x34810c),_0x3e10d2);}else _0x363510['setSelection'](_0x3e10d2,'on'),_0x1030fe['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3e10d2['getAttributes']()),'uploadcareImageId':_0x12c1bb,'src':_0x1eca91,'sources':_0x36b4da,'width':_0x24510f,'height':_0x360676},_0x3e10d2);_0x363510['setSelection'](_0x3e10d2,'on');});}async['_getImageAsFile'](_0x5f4853){const _0x4a4210=_0x58cf09['window'],_0x12f31c=_0x58cf09['document']['location']['href'],_0x550ae9=new _0x4a4210['URL'](_0x5f4853['getAttribute']('src'),_0x12f31c);if('data:'===_0x550ae9['protocol']){const _0x536672=_0x550ae9['href']['split'](','),_0x16f10a=_0x536672[0x0]['match'](/:(.*?);/)[0x1],_0x3b75b1=_0x16f10a['split']('/')[0x1],_0x46c5ea=_0x4a4210['atob'](_0x536672[_0x536672['length']-0x1]);let _0x23c109=_0x46c5ea['length'];const _0x4afca5=new _0x4a4210['Uint8Array'](_0x23c109);for(;_0x23c109--;)_0x4afca5[_0x23c109]=_0x46c5ea['charCodeAt'](_0x23c109);return new _0x4a4210['File']([_0x4afca5],'image.'+_0x3b75b1,{'type':_0x16f10a});}const _0x19d5aa=_0x550ae9['href']['split']('/'),_0x2bacd0=_0x19d5aa[_0x19d5aa['length']-0x1],_0x5dc6dd=_0x2bacd0['split']('.')[0x1];return _0x4a4210['fetch'](_0x550ae9['href'])['then'](_0x31c150=>_0x31c150['clone']()['blob']())['then'](_0x21ea81=>new _0x4a4210['File']([_0x21ea81],_0x2bacd0,{'type':'image/'+_0x5dc6dd}));}}class J extends _0x25bd5b{['imageEditController'];static get['requires'](){return[_0x379873];}['_isEditable'];constructor(_0x4495df){super(_0x4495df),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2344c6){const _0x5bff9f=V(_0x2344c6);return _0x55d60e=>!(!_0x55d60e||!_0x55d60e['is']('element','imageBlock')&&!_0x55d60e['is']('element','imageInline'))&&(!!_0x55d60e['hasAttribute']('uploadcareImageId')||!!_0x55d60e['hasAttribute']('src')&&_0x5bff9f(_0x55d60e['getAttribute']('src')));}(_0x4495df['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x514f3e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x514f3e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x58720d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58720d&&(_0x58720d['is']('element','imageBlock')||_0x58720d['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x379873),_0x58720d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x25bd5b{['refresh'](){const _0x3bea82=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3bea82&&(_0x3bea82['is']('element','imageBlock')||_0x3bea82['is']('element','imageInline')));}['execute'](_0xb45ac1){const _0x45c14e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x10415d=>{_0x10415d['setAttributes'](_0xb45ac1,_0x45c14e),_0x10415d['removeAttribute']('srcset',_0x45c14e),_0x10415d['removeAttribute']('sizes',_0x45c14e);});}}class g extends _0x5f2ca5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x49229f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x27caf0}=this;_0x27caf0['commands']['add']('uploadcareImageEdit',new J(_0x27caf0)),_0x27caf0['commands']['add']('uploadcareImageReplace',new O(_0x27caf0));}}class j extends _0x5f2ca5{['_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 _0x1cd7ba=this['editor'];_0x1cd7ba['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2edc01=>{const _0x52f7bf=_0x1cd7ba['commands']['get']('uploadcareImageEdit'),_0x9258cf=new _0x2bcd8c(_0x2edc01),t=_0x2edc01['t'];return _0x9258cf['set']({'icon':_0x342982,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x9258cf['bind']('isEnabled')['to'](_0x52f7bf),_0x9258cf['bind']('isOn')['to'](_0x52f7bf,'isActive'),this['listenTo'](_0x9258cf,'execute',()=>{_0x1cd7ba['execute']('uploadcareImageEdit'),_0x1cd7ba['editing']['view']['focus']();}),_0x9258cf;}),this['_initConfig']();}['_initConfig'](){const _0x1eabdc=_0x5765dc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1eabdc),this['listenTo'](this['editor'],'destroy',()=>{_0x1eabdc['remove']();});}}class P extends _0x5f2ca5{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 _0x32e6eb,Command as _0x2254c4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x33ad9d,IconGooglePhotos as _0x506853,IconGoogleDrive as _0x23721f,IconFacebook as _0x29baae,IconDropbox as _0xea7bec,IconUploadcareLink as _0x193ea5,IconUploadcareImageUpload as _0x602986,IconError as et,IconUploadcareImageEdit as _0x2bb978}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x56a80d,MenuBarMenuListItemButtonView as _0x415625,View as _0x52e0f3,FocusCycler as _0x2930d0,Dialog as _0x173b80,DialogViewPosition as _0x45ce82,SpinnerView as _0x27ec92,IconView as at,Notification as _0x5f5e05}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3f116f,DomEmitterMixin as _0x1fa29e,global as _0x2f4c76,getAncestors as _0x219828,ObservableMixin as _0x923871,createElement as _0x48642c,uid as _0x5d43fc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5d9644}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xc2975a,info as _0x3c09f2}from'@uploadcare/upload-client';import*as _0x14d9fd from'@uploadcare/file-uploader';var o=function(_0x4c08d2){return _0x4c08d2['Local']='local',_0x4c08d2['URL']='url',_0x4c08d2['Dropbox']='dropbox',_0x4c08d2['GDrive']='gdrive',_0x4c08d2['Facebook']='facebook',_0x4c08d2['GPhotos']='gphotos',_0x4c08d2['OneDrive']='onedrive',_0x4c08d2;}({});function _(_0x5b569e,_0x3432f6,_0x22b76c){const t=_0x5b569e['t'],_0x2ed9c9=_0x5b569e['t'];switch(_0x3432f6){case o['Local']:return{'text':_0x2ed9c9('Insert'===_0x22b76c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2ed9c9('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x22b76c?_0x2ed9c9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2ed9c9('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x22b76c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x22b76c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x22b76c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x22b76c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x22b76c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3432f6;}}class e extends _0x32e6eb{['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 _0x1a459c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb0421;for(const _0x2307dc in _0x1a459c){const _0x21810f=_0x2307dc,_0x36710e=_0x1a459c[_0x21810f];if('uploadcareLicenseKeyValid'==_0x36710e||'uploadcareLicenseKeyInvalid'==_0x36710e||'uploadcareLicenseKeyExpired'==_0x36710e||'uploadcareLicenseKeyDomainLimit'==_0x36710e||'uploadcareLicenseKeyNotAllowed'==_0x36710e||'uploadcareLicenseKeyEvaluationLimit'==_0x36710e||'uploadcareLicenseKeyTrialLimit'==_0x36710e||'uploadcareLicenseKeyUsageLimit'==_0x36710e){delete _0x1a459c[_0x21810f],_0xb0421=_0x36710e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xb0421&&_0x1a459c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xb0421&&_0x1a459c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xb0421&&_0x1a459c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xb0421&&_0x1a459c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xb0421&&_0x1a459c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xb0421&&_0x1a459c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xb0421&&_0x1a459c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2e5ae8}=this,_0x3bd253=_0x2e5ae8['commands']['get']('uploadcare');if(!_0x3bd253)return;const _0x30fdcf=this['_normalizeConfigSourceList'](_0x2e5ae8['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x50c6d6,_0x24d754)=>{const _0x43a50c=this['_getIntegrationKey'](_0x24d754['type']);return _0x50c6d6[_0x43a50c]||(_0x50c6d6[_0x43a50c]=[]),_0x50c6d6[_0x43a50c]['push'](_0x24d754),_0x50c6d6;},{});_0x2e5ae8['plugins']['has']('ImageInsertUI')&&_0x2e5ae8['commands']['get']('uploadcare')&&Object['entries'](_0x30fdcf)['forEach'](([_0x25e7be,_0x1eb66d])=>{_0x2e5ae8['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x25e7be,'observable':()=>_0x3bd253,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1eb66d),'formViewCreator':()=>this['_createDropdownButtons'](_0x1eb66d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1eb66d),'override':'assetManager'!==_0x25e7be});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x839319){const {locale:_0xa6559}=this['editor'];return _0x839319['map'](_0x12e320=>{const _0xa71c76=_(_0xa6559,_0x12e320,'Insert');switch(_0x12e320){case o['Local']:return{'icon':_0x602986,'type':o['Local'],..._0xa71c76};case o['URL']:return{'icon':_0x193ea5,'type':o['URL'],..._0xa71c76};case o['Dropbox']:return{'icon':_0xea7bec,'type':o['Dropbox'],..._0xa71c76};case o['Facebook']:return{'icon':_0x29baae,'type':o['Facebook'],..._0xa71c76};case o['GDrive']:return{'icon':_0x23721f,'type':o['GDrive'],..._0xa71c76};case o['GPhotos']:return{'icon':_0x506853,'type':o['GPhotos'],..._0xa71c76};case o['OneDrive']:return{'icon':_0x33ad9d,'type':o['OneDrive'],..._0xa71c76};}});}['_getIntegrationKey'](_0x4f17f8){switch(_0x4f17f8){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4f143e,_0x3c05c7){const _0x38e4a6=this['editor'],_0x5b2856=new _0x4f143e(_0x38e4a6['locale']),_0x18dc08=_0x38e4a6['commands']['get']('uploadcare');return _0x5b2856['bind']('isEnabled')['to'](_0x18dc08),_0x5b2856['on']('execute',()=>{_0x18dc08['execute'](_0x3c05c7);}),_0x5b2856;}['_createToolbarButton'](_0x3f0381){const {locale:_0x34bed6}=this['editor'],_0x4fbf18=this['editor']['plugins']['get']('ImageInsertUI'),_0x9064d1=_0x3f0381[0x0],_0xf2e9a6=this['_createButton'](_0x56a80d,_0x9064d1['type']);return _0xf2e9a6['icon']=_0x9064d1['icon'],_0xf2e9a6['bind']('label')['to'](_0x4fbf18,'isImageSelected',_0xdba9cf=>_(_0x34bed6,_0x9064d1['type'],_0xdba9cf?'Replace':'Insert')['text']),_0xf2e9a6['tooltip']=!0x0,_0xf2e9a6;}['_createDropdownButtons'](_0x5362c3){const {locale:_0x2d1d69}=this['editor'],_0x13bad1=this['editor']['plugins']['get']('ImageInsertUI');return _0x5362c3['map'](_0x196048=>{const _0x4d0e16=this['_createButton'](_0x56a80d,_0x196048['type']);return _0x4d0e16['withText']=!0x0,_0x4d0e16['icon']=_0x196048['icon'],_0x4d0e16['bind']('label')['to'](_0x13bad1,'isImageSelected',_0x7e9b80=>_(_0x2d1d69,_0x196048['type'],_0x7e9b80?'Replace':'Insert')['text']),_0x4d0e16;});}['_createMenuBarButtons'](_0x1f374a){return _0x1f374a['map'](_0x59d680=>{const _0x464a92=this['_createButton'](_0x415625,_0x59d680['type']);return _0x464a92['icon']=_0x59d680['icon'],_0x464a92['label']=_0x59d680['shortText'],_0x464a92;});}}class q extends _0x52e0f3{['focusTracker'];['focusCycler'];constructor(_0x4c8ea8){super(_0x4c8ea8),this['focusTracker']=new _0x3f116f(),this['focusCycler']=new _0x2930d0({'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(_0x57f42a){super(_0x57f42a),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(_0x16bef2,_0x3973e7){const _0xcf6534=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4caed5=>_0x4caed5<=_0x3973e7)['map'](_0x3c6c03=>_0x16bef2['replace'](/\/$/,'')+'/-/resize/'+_0x3c6c03+'x/\x20'+_0x3c6c03+'w');return{'imageFallbackUrl':_0x16bef2,'imageSources':[{'srcset':_0xcf6534['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3973e7+'px)\x20100vw,\x20'+_0x3973e7+'px','type':'image/webp'}]};}function A(_0xd3183b,_0x3299ab,_0x3ec3d1){const _0x3e1340=_0xd3183b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3e1340?parseInt(_0x3e1340[0x1],0xa):_0x3299ab,'height':_0x3e1340?parseInt(_0x3e1340[0x2],0xa):_0x3ec3d1};}function m(_0x2bfa5e,_0x1ba44a){const _0x2424d2=Object['create'](_0x1fa29e),_0x25c581=_0x2bfa5e['plugins']['get']('ImageUtils'),_0x193417=_0x2bfa5e['editing']['mapper']['toViewElement'](_0x1ba44a),_0x2c1813=_0x25c581['findViewImgElement'](_0x193417),_0x543ccd=_0x2bfa5e['editing']['view']['domConverter']['viewToDom'](_0x2c1813),_0x5e1beb=_0x1ba44a['getAttribute']('width'),_0x2985a0=_0x1ba44a['getAttribute']('height'),_0x2b4fbf='image-processing';_0x2bfa5e['editing']['view']['change'](_0x10969d=>{_0x10969d['addClass'](_0x2b4fbf,_0x193417),_0x10969d['setStyle']('aspect-ratio',_0x5e1beb+'/'+_0x2985a0,_0x2c1813);}),_0x2424d2['listenTo'](_0x543ccd,'load',()=>{_0x2424d2['stopListening'](_0x543ccd,'load'),_0x2bfa5e['editing']['view']['change'](_0x1415cd=>{_0x1415cd['removeClass'](_0x2b4fbf,_0x193417),_0x1415cd['removeStyle']('aspect-ratio',_0x2c1813);});});}function V(_0xc342ae){if(Array['isArray'](_0xc342ae)){const _0x496f83=_0xc342ae['map'](V);return _0x1fdf9d=>_0x496f83['some'](_0x54e5cb=>_0x54e5cb(_0x1fdf9d));}if('origin'==_0xc342ae){const _0x11db1f=_0x2f4c76['window']['location']['origin'];return _0x3dd31a=>new URL(_0x3dd31a,_0x2f4c76['document']['baseURI'])['origin']==_0x11db1f;}return'function'==typeof _0xc342ae?_0xc342ae:_0xc342ae instanceof RegExp?_0x2c4ec4=>!(!_0x2c4ec4['match'](_0xc342ae)&&!_0x2c4ec4['replace'](/^https?:\/\//,'')['match'](_0xc342ae)):()=>!0x1;}function F(_0x20049d,_0x801c46){return _0x219828(_0x20049d['target'])['includes'](_0x801c46);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x923871(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3ad2e5,_0x4d083d,_0x5c873a){super(),this['_editor']=_0x3ad2e5,this['_editing']=_0x4d083d,this['_dialog']=_0x3ad2e5['plugins']['get'](_0x173b80),this['_api']=_0x4d083d['ctxElement']['getAPI'](),this['_type']=_0x5c873a,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:_0x1c74cd,model:_0xa4113}=this['_editor'],_0x164b60=_0xa4113['document']['selection']['getSelectedElement'](),_0xd8b204=_0x164b60&&(_0x164b60['is']('element','imageBlock')||_0x164b60['is']('element','imageInline'));this['_formView']=new S(_0x1c74cd),this['_dialog']['show']({'id':'uploadCare','icon':_0x602986,'title':_(_0x1c74cd,this['_type'],_0xd8b204?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x45ce82['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x11630f=>!F(_0x11630f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3d2a8a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xe89c39=>{const _0x27ce13=_0x3d2a8a['length'];for(const _0x35c35e of _0x3d2a8a){const _0x36e3b8=_0x35c35e===_0x3d2a8a[_0x27ce13-0x1],{cdnUrl:_0x22a29c,fileInfo:_0x1fb589}=_0x35c35e;if(!_0x22a29c||!_0x1fb589)continue;const {width:_0x1cb881,height:_0x174cb9}=_0x1fb589['imageInfo'],_0x2e987=A(_0x22a29c,_0x1cb881,_0x174cb9),_0x399b66=E(_0x22a29c,_0x2e987['width']),_0x460703={'id':_0x1fb589['uuid'],'type':'image','attributes':{'imageDimension':_0x2e987,..._0x399b66}};this['_insertAsset'](_0x460703,_0x36e3b8,_0xe89c39);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3cf1e4=>{'idle'===_0x3cf1e4['detail']['status']&&!_0x3cf1e4['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x59af87,_0x2a899f,_0x39b9a6){const _0xd32dc2=this['_editor']['model']['document']['selection'],_0x4837e2=_0xd32dc2['getSelectedElement'](),_0xab8c13=!(!_0x4837e2||!_0x4837e2['is']('element','imageInline'));_0x39b9a6['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x59af87,_0xab8c13),_0x2a899f||_0x39b9a6['setSelection'](_0xd32dc2['getLastPosition']());}['_insertImage'](_0x25b6d7,_0x1fae78){const _0xb2f759=this['_editor'],{imageDimension:_0x3aeaae,imageFallbackUrl:_0x4e2e9e,imageSources:_0x2046a1}=_0x25b6d7['attributes'];_0xb2f759['execute']('insertImage',{'imageType':_0x1fae78?'imageInline':null,'source':{'uploadcareImageId':_0x25b6d7['id'],'src':_0x4e2e9e,'sources':_0x2046a1,..._0x3aeaae}});}}class n extends _0x2254c4{['_editing'];['_controller']=null;static get['requires'](){return[_0x173b80,i];}constructor(_0x12765e){super(_0x12765e),this['_editing']=_0x12765e['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x8353f2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x8353f2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x2edd01,publicKey:_0x3e292e,signal:_0x4ce8fd,onProgress:_0x4cc14e}){return _0xc2975a(_0x2edd01,{'publicKey':_0x3e292e,'store':'auto','signal':_0x4ce8fd,'onProgress':_0x4cc14e});}static['getInfo'](_0x5e488e,_0x2dc7c2){return _0x3c09f2(_0x5e488e,_0x2dc7c2);}}class p extends _0x32e6eb{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5d9644,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x19113d=this['editor'];if(!!!_0x19113d['config']['get']('uploadcare'))return;_0x19113d['plugins']['get'](_0x5d9644)['createUploadAdapter']=_0x20cd52=>new x(_0x20cd52,_0x19113d),_0x19113d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x30ba65,{imageElement:_0x56e3b5,data:_0x29bb06})=>{_0x19113d['model']['change'](_0x332716=>{_0x332716['setAttribute']('uploadcareImageId',_0x29bb06['uploadcareImageId'],_0x56e3b5);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x463ba9,_0x489f7c){this['loader']=_0x463ba9,this['editor']=_0x489f7c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5a33ca=this['editor']['config']['get']('uploadcare.pubkey'),_0x84cea8=await this['loader']['file'];return C['upload']({'file':_0x84cea8,'publicKey':_0x5a33ca,'signal':this['controller']['signal'],'onProgress':_0x1a98f2=>{_0x1a98f2&&_0x1a98f2['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1a98f2['value']);}})['then'](async _0x444b48=>{const {imageFallbackUrl:_0x392ad2,imageSources:_0x5c233a}=E(_0x444b48['cdnUrl'],_0x444b48['imageInfo']['width']);return{'uploadcareImageId':_0x444b48['uuid'],'default':_0x392ad2,'sources':_0x5c233a};})['catch'](()=>{const _0x5379fc=t('Cannot\x20upload\x20file:')+('\x20'+_0x84cea8['name']+'.');return Promise['reject'](_0x5379fc);});}['abort'](){this['controller']['abort']();}}class i extends _0x32e6eb{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x173b80];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x24d092=this['editor'];_0x24d092['commands']['add']('uploadcare',new n(_0x24d092));}['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 _0x39c9a0=_0x2f4c76['document']['querySelector']('input[uploadcare-file-input]');_0x39c9a0&&_0x39c9a0['remove']();}),async function(_0x4f1262){const _0x21e2e9=_0x5d832a([0x42,0x75,0x4d,0x4c,0x52,0x73,0x49,0x36,0x6e,0x64,0x63,0x33,0x47,0x54,0x57,0x67,0x6d,0x6f,0x31,0x6c,0x61,0x7a,0x70,0x53,0x45,0x44,0x34,0x30,0x72,0x74,0x6b,0x6a,0x66,0x50,0x48,0x79,0x77,0x38,0x55,0x59,0x35,0x41,0x46,0x43,0x76,0x5a,0x4b,0x4e,0x39,0x58,0x51,0x78,0x56,0x62,0x32,0x68,0x4a,0x65,0x4f,0x37,0x71,0x69]),_0x5e4ccc=0x21da0d71,_0xb2ef8f=0x21dd6b49^_0x5e4ccc,_0x3227c4=window[_0x5d832a([0x44,0x61,0x74,0x65])][_0x5d832a([0x6e,0x6f,0x77])](),_0x2451cd=_0x4f1262[_0x5d832a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b1a1d=new window[(_0x5d832a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x451aff=>{_0x2451cd[_0x5d832a([0x6f,0x6e,0x63,0x65])](_0x5d832a([0x72,0x65,0x61,0x64,0x79]),_0x451aff);}),_0x206d51={[_0x5d832a([0x6b,0x74,0x79])]:_0x5d832a([0x45,0x43]),[_0x5d832a([0x75,0x73,0x65])]:_0x5d832a([0x73,0x69,0x67]),[_0x5d832a([0x63,0x72,0x76])]:_0x5d832a([0x50,0x2d,0x32,0x35,0x36]),[_0x5d832a([0x78])]:_0x5d832a([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]),[_0x5d832a([0x79])]:_0x5d832a([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]),[_0x5d832a([0x61,0x6c,0x67])]:_0x5d832a([0x45,0x53,0x32,0x35,0x36])},_0x4457ad=_0x2451cd[_0x5d832a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d832a([0x67,0x65,0x74])](_0x5d832a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x206b35(){let _0x35caaa,_0x47aaca=null,_0x1c7014=null;try{if(_0x4457ad==_0x5d832a([0x47,0x50,0x4c]))return _0x5d832a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35caaa=_0x198dcd(),!_0x35caaa)return _0x5d832a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35caaa[_0x5d832a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c7014=_0x2fc43d(_0x35caaa[_0x5d832a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35caaa[_0x5d832a([0x6a,0x74,0x69])])),await _0x3bc753()?_0x231913()?_0x2ddf83()?_0x5d832a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5f4a7f()?(_0x35caaa[_0x5d832a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d832a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x47aaca=_0x55f159(_0x5d832a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x35caaa[_0x5d832a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d832a([0x74,0x72,0x69,0x61,0x6c])&&(_0x47aaca=_0x55f159(_0x5d832a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2459af()):_0x5d832a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d832a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d832a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x16ac51){return _0x5d832a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ddf83(){const _0xe56259=[_0x5d832a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d832a([0x74,0x72,0x69,0x61,0x6c])][_0x5d832a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35caaa[_0x5d832a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3227c4/0x3e8:0xe10*_0xb2ef8f;return _0x35caaa[_0x5d832a([0x65,0x78,0x70])]<_0xe56259;}function _0x231913(){const _0x382867=_0x35caaa[_0x5d832a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x382867&&(!!_0x382867[_0x5d832a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d832a([0x2a]))||!!_0x382867[_0x5d832a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d832a([0x55,0x50,0x4c,0x43])));}function _0x5f4a7f(){const _0x4454fe=_0x35caaa[_0x5d832a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4454fe||0x0==_0x4454fe[_0x5d832a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b0c72}=new URL(window[_0x5d832a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4454fe[_0x5d832a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b0c72))return!0x0;const _0x568706=_0x4b0c72[_0x5d832a([0x73,0x70,0x6c,0x69,0x74])](_0x5d832a([0x2e]));return _0x4454fe[_0x5d832a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36cc37=>_0x36cc37[_0x5d832a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d832a([0x2a])))[_0x5d832a([0x6d,0x61,0x70])](_0xc87dd7=>_0xc87dd7[_0x5d832a([0x73,0x70,0x6c,0x69,0x74])](_0x5d832a([0x2e])))[_0x5d832a([0x73,0x6f,0x6d,0x65])](_0x276184=>_0x568706[_0x5d832a([0x65,0x76,0x65,0x72,0x79])]((_0x5e7a38,_0x230d7d)=>_0x276184[_0x230d7d]===_0x5e7a38||_0x276184[_0x230d7d]===_0x5d832a([0x2a])));}function _0x2459af(){return _0x47aaca&&_0x1c7014?new window[(_0x5d832a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e45e5,_0x42079b)=>{_0x47aaca[_0x5d832a([0x74,0x68,0x65,0x6e])](_0x5e45e5,_0x42079b),_0x1c7014[_0x5d832a([0x74,0x68,0x65,0x6e])](_0x52e9a3=>{_0x52e9a3!=_0x5d832a([0x56,0x61,0x6c,0x69,0x64])&&_0x5e45e5(_0x52e9a3);},_0x42079b);}):_0x47aaca||_0x1c7014||_0x5d832a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2fc43d(_0x22263e,_0x223fc7){return new window[(_0x5d832a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x117dc3=>{if(_0x137d75())return _0x117dc3(_0x5d832a([0x56,0x61,0x6c,0x69,0x64]));_0x26a639(),_0x2451cd[_0x5d832a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d832a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11bde0=!0x1;const _0x41f9d3=_0x5d43fc();function _0x4dc6a1(_0x51adfd){return!!_0x51adfd&&(typeof _0x51adfd===_0x5d832a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51adfd===_0x5d832a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51adfd[_0x5d832a([0x74,0x68,0x65,0x6e])]===_0x5d832a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51adfd[_0x5d832a([0x63,0x61,0x74,0x63,0x68])]===_0x5d832a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x585546(_0x3be9d2){_0x155b77(_0x3be9d2)[_0x5d832a([0x74,0x68,0x65,0x6e])](_0x8817a9=>{if(!_0x8817a9||_0x8817a9[_0x5d832a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d832a([0x6f,0x6b]))return _0x5d832a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1954ea(_0x376b53(_0x41f9d3+_0x223fc7))!=_0x8817a9[_0x5d832a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d832a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d832a([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d832a([0x74,0x68,0x65,0x6e])](_0x3ba261=>(_0x21440f(),_0x3ba261),()=>{const _0x38a55b=_0x1e5eca();return null==_0x38a55b?(_0x21440f(),_0x5d832a([0x56,0x61,0x6c,0x69,0x64])):_0x5d832a(_0x3227c4-_0x38a55b>(0x5d68971^_0x5e4ccc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d832a([0x74,0x68,0x65,0x6e])](_0x117dc3)[_0x5d832a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x117dc3(_0x5d832a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x116862=0x21ece3f1^_0x5e4ccc;function _0x21440f(){const _0xe13c8b=_0x5d832a([0x6c,0x6c,0x63,0x74,0x2d])+_0x1954ea(_0x376b53(_0x22263e)),_0x2e89e1=_0x1a64a9(_0x1954ea(window[_0x5d832a([0x4d,0x61,0x74,0x68])][_0x5d832a([0x63,0x65,0x69,0x6c])](_0x3227c4/_0x116862)));window[_0x5d832a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d832a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe13c8b,_0x2e89e1);}function _0x1e5eca(){const _0x3b47e5=_0x5d832a([0x6c,0x6c,0x63,0x74,0x2d])+_0x1954ea(_0x376b53(_0x22263e)),_0x29894d=window[_0x5d832a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d832a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b47e5);return _0x29894d?window[_0x5d832a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a64a9(_0x29894d),0x10)*_0x116862:null;}function _0x155b77(_0xd0fd99){return new window[(_0x5d832a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55146c,_0x4694e3)=>{_0xd0fd99[_0x5d832a([0x74,0x68,0x65,0x6e])](_0x55146c,_0x4694e3),window[_0x5d832a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4694e3,0x21dbd9b1^_0x5e4ccc);});}}_0x2451cd[_0x5d832a([0x6f,0x6e])](_0x5d832a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2bbf7e,_0x9ffb8d)=>{if(_0x9ffb8d[0x0]!=_0x22263e)return _0x117dc3(_0x5d832a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x9ffb8d[0x1]={..._0x9ffb8d[0x1],[_0x5d832a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41f9d3};},{[_0x5d832a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d832a([0x68,0x69,0x67,0x68])}),_0x2451cd[_0x5d832a([0x6f,0x6e])](_0x5d832a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x588deb=>{_0x4dc6a1(_0x588deb[_0x5d832a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11bde0=!0x0,_0x585546(_0x588deb[_0x5d832a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d832a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d832a([0x6c,0x6f,0x77])}),_0x5b1a1d[_0x5d832a([0x74,0x68,0x65,0x6e])](()=>{_0x11bde0||_0x117dc3(_0x5d832a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x137d75(){return _0x2451cd[_0x5d832a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d832a([0x76,0x69,0x65,0x77])][_0x5d832a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d832a([0x61,0x75,0x74,0x6f]);}function _0x26a639(){_0x2451cd[_0x5d832a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d832a([0x76,0x69,0x65,0x77])][_0x5d832a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d832a([0x61,0x75,0x74,0x6f]);}}function _0x55f159(_0x45d39e){const _0xe70a53=[new window[(_0x5d832a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bb7af=>setTimeout(_0x2bb7af,0x21d333bd^_0x5e4ccc)),_0x5b1a1d[_0x5d832a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d832a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd5cf37=>{let _0x37e4ff=0x0;_0x2451cd[_0x5d832a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d832a([0x6f,0x6e])](_0x5d832a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x144bc8,_0x371cf4)=>{_0x371cf4[0x0][_0x5d832a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x37e4ff++,_0x37e4ff==(0x21da0c89^_0x5e4ccc)&&(_0xd5cf37(),_0x144bc8[_0x5d832a([0x6f,0x66,0x66])]());});}))];return window[_0x5d832a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d832a([0x72,0x61,0x63,0x65])](_0xe70a53)[_0x5d832a([0x74,0x68,0x65,0x6e])](()=>_0x45d39e);}async function _0x1023fe(){await _0x5b1a1d,_0x2451cd[_0x5d832a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d832a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f289e,_0x2451cd[_0x5d832a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d832a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f289e,_0x2451cd[_0x5d832a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d832a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xcf1a49(_0x2067bf){const _0x420375=_0x392f91();_0x2451cd[_0x420375]=_0x5d832a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2067bf,_0x2067bf!=_0x5d832a([0x56,0x61,0x6c,0x69,0x64])&&_0x1023fe();}function _0x392f91(){const _0x43c25d=window[_0x5d832a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d832a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d832a([0x6e,0x6f,0x77])]())[_0x5d832a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d832a([0x2e]),'');let _0x3a57b9=_0x5d832a([0x42]);for(let _0x3b1320=0x0;_0x3b1320<_0x43c25d[_0x5d832a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b1320+=0x2){let _0x530370=window[_0x5d832a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43c25d[_0x5d832a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b1320,_0x3b1320+0x2));_0x530370>=_0x21e2e9[_0x5d832a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x530370-=_0x21e2e9[_0x5d832a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a57b9+=_0x21e2e9[_0x530370];}return _0x3a57b9;}function _0x198dcd(){const _0x4ca601=_0x4457ad[_0x5d832a([0x73,0x70,0x6c,0x69,0x74])](_0x5d832a([0x2e]));if(0x3!=_0x4ca601[_0x5d832a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x20466c(_0x4ca601[0x1]);function _0x20466c(_0x220d6b){const _0x48c4cd=_0x1a6c2d(_0x220d6b);return _0x48c4cd&&_0x40da78()?_0x48c4cd:null;function _0x40da78(){const _0x18d9d4=_0x48c4cd[_0x5d832a([0x6a,0x74,0x69])],_0x2bfa8b=window[_0x5d832a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18d9d4[_0x5d832a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18d9d4[_0x5d832a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3089bb={..._0x48c4cd,[_0x5d832a([0x6a,0x74,0x69])]:_0x18d9d4[_0x5d832a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18d9d4[_0x5d832a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3089bb[_0x5d832a([0x76,0x63])],_0x376b53(_0x3089bb)==_0x2bfa8b;}}}async function _0x3bc753(){let _0x39fa1c=!0x0;try{const _0x9c511c=_0x4457ad[_0x5d832a([0x73,0x70,0x6c,0x69,0x74])](_0x5d832a([0x2e])),[_0x5505a0,_0xe39c9e,_0x492fb3]=_0x9c511c;return _0x5c8cf6(_0x5505a0),await _0xcd4145(_0x5505a0,_0xe39c9e,_0x492fb3),_0x39fa1c;}catch(_0x2f3112){return!0x1;}function _0x5c8cf6(_0x184520){const _0x2856f0=_0x1a6c2d(_0x184520);_0x2856f0&&_0x2856f0[_0x5d832a([0x61,0x6c,0x67])]==_0x5d832a([0x45,0x53,0x32,0x35,0x36])||(_0x39fa1c=!0x1);}async function _0xcd4145(_0x513aac,_0x5eae78,_0x58b242){const _0x4fb0db=window[_0x5d832a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d832a([0x66,0x72,0x6f,0x6d])](_0x271fa4(_0x58b242),_0x3ccd8d=>_0x3ccd8d[_0x5d832a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ed286=new window[(_0x5d832a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d832a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x513aac+_0x5d832a([0x2e])+_0x5eae78),_0x483326=window[_0x5d832a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d832a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x483326)return;const _0x1c58ea=await _0x483326[_0x5d832a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d832a([0x6a,0x77,0x6b]),_0x206d51,{[_0x5d832a([0x6e,0x61,0x6d,0x65])]:_0x5d832a([0x45,0x43,0x44,0x53,0x41]),[_0x5d832a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d832a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d832a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x483326[_0x5d832a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d832a([0x6e,0x61,0x6d,0x65])]:_0x5d832a([0x45,0x43,0x44,0x53,0x41]),[_0x5d832a([0x68,0x61,0x73,0x68])]:{[_0x5d832a([0x6e,0x61,0x6d,0x65])]:_0x5d832a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c58ea,_0x4fb0db,_0x3ed286)||(_0x39fa1c=!0x1);}}function _0x1a6c2d(_0x4a2d38){return _0x4a2d38[_0x5d832a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d832a([0x65,0x79]))?JSON[_0x5d832a([0x70,0x61,0x72,0x73,0x65])](_0x271fa4(_0x4a2d38)):null;}function _0x271fa4(_0x2cc110){return window[_0x5d832a([0x61,0x74,0x6f,0x62])](_0x2cc110[_0x5d832a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d832a([0x2b]))[_0x5d832a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d832a([0x2f])));}function _0x376b53(_0x359479){let _0x4db6b2=0x1505;function _0x11b515(_0x37672a){for(let _0x318cd6=0x0;_0x318cd6<_0x37672a[_0x5d832a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x318cd6++){const _0x9cd258=_0x37672a[_0x5d832a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x318cd6);_0x4db6b2=(_0x4db6b2<<0x5)+_0x4db6b2+_0x9cd258,_0x4db6b2&=_0x4db6b2;}}function _0x4b893e(_0x43b1e7){Array[_0x5d832a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43b1e7)?_0x43b1e7[_0x5d832a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b893e):_0x43b1e7&&typeof _0x43b1e7==_0x5d832a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d832a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43b1e7)[_0x5d832a([0x73,0x6f,0x72,0x74])]()[_0x5d832a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d8b6d,_0x3503b2])=>{_0x11b515(_0x5d8b6d),_0x4b893e(_0x3503b2);}):_0x11b515(window[_0x5d832a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43b1e7));}return _0x4b893e(_0x359479),_0x4db6b2>>>0x0;}function _0x1954ea(_0x7b90f5){return _0x7b90f5[_0x5d832a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d832a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d832a([0x30]));}function _0x1a64a9(_0x4c1e60){return _0x4c1e60[_0x5d832a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d832a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d832a([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f289e(){}function _0x5d832a(_0x179d1e){return _0x179d1e['map'](_0x30d3e1=>String['fromCharCode'](_0x30d3e1))['join']('');}_0xcf1a49(await _0x206b35());}(this);}['_initSchema'](){const _0x4655b4=this['editor']['model']['schema'];_0x4655b4['isRegistered']('imageBlock')&&_0x4655b4['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4655b4['isRegistered']('imageInline')&&_0x4655b4['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x573ee5=this['editor'];_0x573ee5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x573ee5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x14ccb6=>_0x14ccb6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x251e44=_0x573ee5['commands']['get']('replaceImageSource');_0x251e44&&this['listenTo'](_0x251e44,'cleanupImage',(_0x4ba70d,[_0x10e54f,_0x36fca8])=>{_0x10e54f['removeAttribute']('uploadcareImageId',_0x36fca8);});}['_initConfig'](){const _0x41048e=this['editor']['config']['get']('uploadcare.uploader')||{},_0x339ad=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x48642c(_0x2f4c76['document'],'uc-config',{..._0x41048e,'pubkey':_0x339ad,'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']=_0x4af805=>{if('closeMax'==_0x4af805)return'#uc-icon-arrow-down';},_0x2f4c76['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x48642c(_0x2f4c76['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x2f4c76['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5d4630=this['editor']['commands']['get']('insertImage');_0x5d4630&&this['listenTo'](_0x5d4630,'execute',()=>{const _0xb9a157=this['editor']['model']['document']['selection']['getSelectedElement']();_0xb9a157&&_0xb9a157['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xb9a157);});});const _0x5a60b1=this['editor']['commands']['get']('uploadcareImageReplace');_0x5a60b1&&this['listenTo'](_0x5a60b1,'execute',()=>{const _0x3e025f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3e025f&&_0x3e025f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3e025f);});});}}class u extends _0x32e6eb{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x456d07){super(_0x456d07),_0x456d07['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x14d9fd['defineComponents'](_0x14d9fd);}}class ta extends _0x52e0f3{constructor(_0x550a41){super(_0x550a41);const t=_0x550a41['t'],_0x59381a=this['bindTemplate'],_0x39cb5f=new _0x27ec92();_0x39cb5f['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':[_0x39cb5f,{'text':_0x59381a['to']('imageUploadProgress',_0x5b2e5a=>t('Loading\x20image...')+'\x20('+(_0x5b2e5a||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 _0x52e0f3{constructor(_0x19c2c3){super(_0x19c2c3);const t=_0x19c2c3['t'];this['set']('errorType',null);const _0xaedeb5=new _0x56a80d(_0x19c2c3);_0xaedeb5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xaedeb5['withText']=!0x0,_0xaedeb5['class']='ck-button-action',_0xaedeb5['on']('execute',()=>{this['fire']('retry');}),_0xaedeb5['bind']('isVisible')['to'](this,'errorType',_0x3451c8=>'NotFound'!==_0x3451c8);const _0x340a15=new at();_0x340a15['content']=et,_0x340a15['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4e60f8=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':[_0x340a15,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4e60f8['to']('errorType',_0x15e0c3=>t('NotFound'!==_0x15e0c3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xaedeb5]},{'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 _0x52e0f3{constructor(_0x11f050,_0x5a2713){super(_0x11f050);const _0x21216a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5a2713,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x21216a['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x28a2a1,_0x3ea108,_0x1ac769){super(_0x28a2a1),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x28a2a1),this['_errorView']=new rt(_0x28a2a1),this['_editingView']=new tt(_0x28a2a1,_0x1ac769),this['_focusableView']=new _0x52e0f3(_0x28a2a1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3ea108),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'],_0xf0ae6a=>{this['_addUploadcareImageEditorListeners'](_0xf0ae6a);});}),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'](_0x1894da,_0x20e0bb){const _0x2c5494='uc-cloud-image-editor',_0xf7466f=_0x1894da['querySelector'](_0x2c5494);if(_0xf7466f)return _0x20e0bb(_0xf7466f);const _0x20b8b6=new MutationObserver(_0x2d482a=>{const _0x316979=_0x2d482a['filter'](_0x96665=>_0x96665['target']===_0x1894da&&_0x96665['addedNodes']['length']>0x0&&_0x96665['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2c5494);_0x316979['length']&&(_0x20b8b6['disconnect'](),_0x20e0bb(_0x316979[0x0]['addedNodes'][0x0]));});_0x20b8b6['observe'](_0x1894da,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x463fea){_0x463fea['addEventListener']('apply',_0x583387=>{this['fire']('apply',{'imageSrc':_0x583387['detail']['cdnUrl']});}),_0x463fea['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x923871(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x384e67,_0x1617f4,_0x1bff84){super(),this['_editor']=_0x384e67,this['_dialog']=_0x1617f4,this['_imageElement']=_0x1bff84,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 _0x4811ae=this['_imageElement'],_0x7701ce=_0x4811ae['getAttribute']('uploadcareImageId'),_0x1eba8c=_0x4811ae['getAttribute']('src');if(_0x7701ce)await this['_loadImageInfo'](_0x7701ce,_0x1eba8c);else{if(this['_imageCache']['has'](_0x1eba8c)){const _0x7ce603=this['_imageCache']['get'](_0x1eba8c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x7ce603['url'],this['imageDimension']=_0x7ce603['dimension'],this['imageId']=_0x7ce603['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x37f758}=this['_editor'],t=_0x37f758['t'],_0x4f4282=new Z(_0x37f758,this['imageStatus'],this['_attributes']);_0x4f4282['bind']('status')['to'](this,'imageStatus'),_0x4f4282['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4f4282['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4f4282['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4f4282,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2bb978,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4f4282,'position':_0x45ce82['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4f4282['focus']();},'onHide':()=>{_0x4f4282['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3338f8=>!F(_0x3338f8,_0x4f4282['element'])}});}['_loadImageInfo'](_0x3bf087,_0x57e0c8){return C['getInfo'](_0x3bf087,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4dbf42=>{const {width:_0x448ced,height:_0xbf18c1}=_0x4dbf42['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x57e0c8,this['imageDimension']={'width':_0x448ced,'height':_0xbf18c1},this['imageId']=_0x3bf087;})['catch'](_0x211ecd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x211ecd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x461978,_0x2f1957){return this['_getImageAsFile'](_0x461978)['then'](_0x3b94eb=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2f1957['signal'],'file':_0x3b94eb,'onProgress':_0x28f6ef=>{_0x28f6ef&&_0x28f6ef['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x28f6ef['value']));}}))['then'](_0x13650f=>{const {width:_0x20e49b,height:_0x517fb6}=_0x13650f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13650f['cdnUrl'],this['imageDimension']={'width':_0x20e49b,'height':_0x517fb6},this['imageId']=_0x13650f['uuid'],this['imageUploadProgress']=null;const _0x52f5aa=_0x461978['getAttribute']('src');this['_imageCache']['set'](_0x52f5aa,{'id':_0x13650f['uuid'],'url':_0x13650f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x573b93=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x573b93['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x329e61,_0x4b26af){_0x329e61['on']('apply',(_0x4954ee,_0x181a1f)=>{this['_replaceImage'](_0x4b26af,_0x181a1f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x329e61['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x329e61['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x229b7d,_0x4cf32c,_0x17ae05){const _0x12afe3=this['_editor'],{width:_0x490c2b,height:_0x6af43e}=A(_0x4cf32c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2f9043,imageSources:_0x371edd}=E(_0x4cf32c,_0x490c2b);_0x12afe3['model']['change'](_0x336a45=>{if('$graveyard'===_0x229b7d['root']['rootName']){_0x12afe3['execute']('insertImage',{'imageType':_0x229b7d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x229b7d['getAttributes']()),'uploadcareImageId':_0x17ae05,'src':_0x2f9043,'sources':_0x371edd,'width':_0x490c2b,'height':_0x6af43e}});const _0x1caa8f=_0x229b7d['getChildren']();_0x229b7d=_0x12afe3['model']['document']['selection']['getSelectedElement']();for(const _0x3ce46d of _0x1caa8f)_0x336a45['append'](_0x336a45['cloneElement'](_0x3ce46d),_0x229b7d);}else _0x336a45['setSelection'](_0x229b7d,'on'),_0x12afe3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x229b7d['getAttributes']()),'uploadcareImageId':_0x17ae05,'src':_0x2f9043,'sources':_0x371edd,'width':_0x490c2b,'height':_0x6af43e},_0x229b7d);_0x336a45['setSelection'](_0x229b7d,'on');});}async['_getImageAsFile'](_0x5b596a){const _0x5bea27=_0x2f4c76['window'],_0x566694=_0x2f4c76['document']['location']['href'],_0x8d6c08=new _0x5bea27['URL'](_0x5b596a['getAttribute']('src'),_0x566694);if('data:'===_0x8d6c08['protocol']){const _0x359bb7=_0x8d6c08['href']['split'](','),_0x1a6c6f=_0x359bb7[0x0]['match'](/:(.*?);/)[0x1],_0x5a8e5f=_0x1a6c6f['split']('/')[0x1],_0xcf12b4=_0x5bea27['atob'](_0x359bb7[_0x359bb7['length']-0x1]);let _0x54fb51=_0xcf12b4['length'];const _0x8c2dd0=new _0x5bea27['Uint8Array'](_0x54fb51);for(;_0x54fb51--;)_0x8c2dd0[_0x54fb51]=_0xcf12b4['charCodeAt'](_0x54fb51);return new _0x5bea27['File']([_0x8c2dd0],'image.'+_0x5a8e5f,{'type':_0x1a6c6f});}const _0x3ab016=_0x8d6c08['href']['split']('/'),_0x2b6f59=_0x3ab016[_0x3ab016['length']-0x1],_0x461c96=_0x2b6f59['split']('.')[0x1];return _0x5bea27['fetch'](_0x8d6c08['href'])['then'](_0x24cf4e=>_0x24cf4e['clone']()['blob']())['then'](_0x53ac29=>new _0x5bea27['File']([_0x53ac29],_0x2b6f59,{'type':'image/'+_0x461c96}));}}class J extends _0x2254c4{['imageEditController'];static get['requires'](){return[_0x173b80];}['_isEditable'];constructor(_0xcfca0){super(_0xcfca0),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x55c3c2){const _0x1056a8=V(_0x55c3c2);return _0x2937a9=>!(!_0x2937a9||!_0x2937a9['is']('element','imageBlock')&&!_0x2937a9['is']('element','imageInline'))&&(!!_0x2937a9['hasAttribute']('uploadcareImageId')||!!_0x2937a9['hasAttribute']('src')&&_0x1056a8(_0x2937a9['getAttribute']('src')));}(_0xcfca0['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2cce57=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2cce57);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1a8b4d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a8b4d&&(_0x1a8b4d['is']('element','imageBlock')||_0x1a8b4d['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x173b80),_0x1a8b4d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2254c4{['refresh'](){const _0xbbb9c6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xbbb9c6&&(_0xbbb9c6['is']('element','imageBlock')||_0xbbb9c6['is']('element','imageInline')));}['execute'](_0x396c3c){const _0x45f3fa=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2ca35a=>{_0x2ca35a['setAttributes'](_0x396c3c,_0x45f3fa),_0x2ca35a['removeAttribute']('srcset',_0x45f3fa),_0x2ca35a['removeAttribute']('sizes',_0x45f3fa);});}}class g extends _0x32e6eb{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x5f5e05,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x8ca618}=this;_0x8ca618['commands']['add']('uploadcareImageEdit',new J(_0x8ca618)),_0x8ca618['commands']['add']('uploadcareImageReplace',new O(_0x8ca618));}}class j extends _0x32e6eb{['_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 _0x43e5b8=this['editor'];_0x43e5b8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2a6139=>{const _0x204b73=_0x43e5b8['commands']['get']('uploadcareImageEdit'),_0x193278=new _0x56a80d(_0x2a6139),t=_0x2a6139['t'];return _0x193278['set']({'icon':_0x2bb978,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x193278['bind']('isEnabled')['to'](_0x204b73),_0x193278['bind']('isOn')['to'](_0x204b73,'isActive'),this['listenTo'](_0x193278,'execute',()=>{_0x43e5b8['execute']('uploadcareImageEdit'),_0x43e5b8['editing']['view']['focus']();}),_0x193278;}),this['_initConfig']();}['_initConfig'](){const _0x4a2ac6=_0x48642c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4a2ac6),this['listenTo'](this['editor'],'destroy',()=>{_0x4a2ac6['remove']();});}}class P extends _0x32e6eb{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-20250426.0",
3
+ "version": "0.0.0-nightly-20250427.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-20250426.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250426.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250426.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250426.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250426.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250426.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250426.0",
33
- "ckeditor5": "0.0.0-nightly-20250426.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250427.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250427.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250427.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250427.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250427.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250427.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250427.0",
33
+ "ckeditor5": "0.0.0-nightly-20250427.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 _0xc042f5=_0x52d0;(function(_0x5b14c2,_0x5c22b8){const _0x436c52=_0x52d0,_0x350f60=_0x5b14c2();while(!![]){try{const _0x342747=parseInt(_0x436c52(0x192))/0x1*(-parseInt(_0x436c52(0x147))/0x2)+-parseInt(_0x436c52(0x190))/0x3*(-parseInt(_0x436c52(0x166))/0x4)+parseInt(_0x436c52(0x174))/0x5+-parseInt(_0x436c52(0x171))/0x6*(-parseInt(_0x436c52(0x169))/0x7)+-parseInt(_0x436c52(0x197))/0x8+parseInt(_0x436c52(0x159))/0x9+-parseInt(_0x436c52(0x164))/0xa;if(_0x342747===_0x5c22b8)break;else _0x350f60['push'](_0x350f60['shift']());}catch(_0x48fa14){_0x350f60['push'](_0x350f60['shift']());}}}(_0x5246,0x37b30));function _0x5246(){const _0x2cb4f9=['map','configElement','schema','true','uploadcareImageId','join','editing','3804720CiCwuk','isPremiumPlugin','7724lAgPGz','document','_initSchema','33453RePpXg','config','downcast','cleanupImage','remove','_initConfig','PictureEditing','imageInline','366qTYcCz','elementToAttribute','pluginName','1658510hxbSIH','_configElement','_initImageProcessingIndicator','UploadcareEditing','closeMax','input[uploadcare-file-input]','uploader','isOfficialPlugin','getSelectedElement','conversion','uploadcareImageReplace','contentLanguage','querySelector','_initConversion','fromCharCode','iconHrefResolver','href','locale','extend','requires','destroy','execute','_ctxElement','selection','attributeToAttribute','appendChild','render','model','417WiFuOS','add','5KvJQdk','getAttribute','afterInit','isRegistered','data-uc-image-id','2298648qEFmGF','for','\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','commands','19388bykIgu','_initCtx','uc-config','removeAttribute','imageBlock','replaceImageSource','uploadcare.pubkey','#uc-icon-arrow-down','get','ctxElement','view','uc-upload-ctx-provider','init','insertImage','body','editor','uploadcare','upcast','475083YQwxaQ','listenTo','uploadcare.uploader','once'];_0x5246=function(){return _0x2cb4f9;};return _0x5246();}import{Plugin as _0x28d09c}from'ckeditor5/src/core.js';import{Dialog as _0x2f03f7}from'ckeditor5/src/ui.js';import{createElement as _0x1adf8e,global as _0x19386e,uid as _0x33a6de}from'ckeditor5/src/utils.js';function _0x52d0(_0x23b3a5,_0x2911a5){const _0x52462a=_0x5246();return _0x52d0=function(_0x52d020,_0xc30a85){_0x52d020=_0x52d020-0x144;let _0xee4f4a=_0x52462a[_0x52d020];return _0xee4f4a;},_0x52d0(_0x23b3a5,_0x2911a5);}import _0x45be82 from'./uploadcarecommand.js';import _0x46cda6 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x45e451}from'./utils/editingutils.js';export default class i extends _0x28d09c{[_0xc042f5(0x175)]=null;[_0xc042f5(0x18a)]=null;static get[_0xc042f5(0x173)](){const _0x52cf49=_0xc042f5;return _0x52cf49(0x177);}static get[_0xc042f5(0x187)](){const _0x5c6860=_0xc042f5;return[_0x5c6860(0x16f),_0x46cda6,_0x2f03f7];}static get[_0xc042f5(0x17b)](){return!0x0;}static get[_0xc042f5(0x165)](){return!0x0;}get[_0xc042f5(0x15e)](){const _0x3f6f87=_0xc042f5;return this[_0x3f6f87(0x175)];}get[_0xc042f5(0x150)](){const _0x4bfcd1=_0xc042f5;return this[_0x4bfcd1(0x18a)];}[_0xc042f5(0x153)](){const _0x4c3c4a=_0xc042f5,_0x234557=this[_0x4c3c4a(0x156)];_0x234557[_0x4c3c4a(0x146)][_0x4c3c4a(0x191)](_0x4c3c4a(0x157),new _0x45be82(_0x234557));}[_0xc042f5(0x194)](){const _0x4d96b8=_0xc042f5;this[_0x4d96b8(0x168)](),this[_0x4d96b8(0x181)](),this[_0x4d96b8(0x16e)](),this[_0x4d96b8(0x148)](),this[_0x4d96b8(0x176)](),this[_0x4d96b8(0x15a)](this[_0x4d96b8(0x156)],_0x4d96b8(0x188),()=>{const _0x254517=_0x4d96b8;this[_0x254517(0x175)]&&(this[_0x254517(0x175)][_0x254517(0x16d)](),this[_0x254517(0x175)]=null),this[_0x254517(0x18a)]&&(this[_0x254517(0x18a)][_0x254517(0x16d)](),this[_0x254517(0x18a)]=null);const _0x346418=_0x19386e[_0x254517(0x167)][_0x254517(0x180)](_0x254517(0x179));_0x346418&&_0x346418[_0x254517(0x16d)]();}),async function(_0x30b94c){const _0x21cb30=_0x1f4ca4([0x72,0x36,0x7a,0x50,0x63,0x71,0x4f,0x75,0x51,0x6f,0x59,0x6e,0x52,0x48,0x4e,0x6b,0x49,0x55,0x74,0x30,0x35,0x34,0x64,0x43,0x65,0x69,0x47,0x45,0x61,0x73,0x79,0x6d,0x41,0x54,0x42,0x68,0x6a,0x62,0x4a,0x77,0x31,0x4b,0x37,0x46,0x66,0x5a,0x4d,0x53,0x39,0x70,0x78,0x33,0x76,0x32,0x58,0x56,0x6c,0x67,0x38,0x57,0x4c,0x44]),_0x2e9031=0x6b248b60,_0x5b620b=0x6b23ed40^_0x2e9031,_0x36c73d=window[_0x1f4ca4([0x44,0x61,0x74,0x65])][_0x1f4ca4([0x6e,0x6f,0x77])](),_0xe6d8d3=_0x30b94c[_0x1f4ca4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x8a4d=new window[(_0x1f4ca4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19316a=>{_0xe6d8d3[_0x1f4ca4([0x6f,0x6e,0x63,0x65])](_0x1f4ca4([0x72,0x65,0x61,0x64,0x79]),_0x19316a);}),_0x5a831c={[_0x1f4ca4([0x6b,0x74,0x79])]:_0x1f4ca4([0x45,0x43]),[_0x1f4ca4([0x75,0x73,0x65])]:_0x1f4ca4([0x73,0x69,0x67]),[_0x1f4ca4([0x63,0x72,0x76])]:_0x1f4ca4([0x50,0x2d,0x32,0x35,0x36]),[_0x1f4ca4([0x78])]:_0x1f4ca4([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]),[_0x1f4ca4([0x79])]:_0x1f4ca4([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]),[_0x1f4ca4([0x61,0x6c,0x67])]:_0x1f4ca4([0x45,0x53,0x32,0x35,0x36])},_0x2d61bc=_0xe6d8d3[_0x1f4ca4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f4ca4([0x67,0x65,0x74])](_0x1f4ca4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e9882(){let _0x46e619,_0x341d5a=null,_0x560a36=null;try{if(_0x2d61bc==_0x1f4ca4([0x47,0x50,0x4c]))return _0x1f4ca4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x46e619=_0x538915(),!_0x46e619)return _0x1f4ca4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x46e619[_0x1f4ca4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x560a36=_0x332e9e(_0x46e619[_0x1f4ca4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x46e619[_0x1f4ca4([0x6a,0x74,0x69])])),await _0x2294fd()?_0x5e2916()?_0x2d7c87()?_0x1f4ca4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2659c6()?(_0x46e619[_0x1f4ca4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f4ca4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x341d5a=_0x458a74(_0x1f4ca4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x46e619[_0x1f4ca4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f4ca4([0x74,0x72,0x69,0x61,0x6c])&&(_0x341d5a=_0x458a74(_0x1f4ca4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28b6a7()):_0x1f4ca4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f4ca4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f4ca4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x58caed){return _0x1f4ca4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d7c87(){const _0x5d4f8e=[_0x1f4ca4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f4ca4([0x74,0x72,0x69,0x61,0x6c])][_0x1f4ca4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46e619[_0x1f4ca4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36c73d/0x3e8:0xe10*_0x5b620b;return _0x46e619[_0x1f4ca4([0x65,0x78,0x70])]<_0x5d4f8e;}function _0x5e2916(){const _0x1e37f7=_0x46e619[_0x1f4ca4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1e37f7&&(!!_0x1e37f7[_0x1f4ca4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f4ca4([0x2a]))||!!_0x1e37f7[_0x1f4ca4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f4ca4([0x55,0x50,0x4c,0x43])));}function _0x2659c6(){const _0x5d0164=_0x52d0,_0x416eb8=_0x46e619[_0x1f4ca4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x416eb8||0x0==_0x416eb8[_0x1f4ca4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4020c3}=new URL(window[_0x1f4ca4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5d0164(0x184)]);if(_0x416eb8[_0x1f4ca4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4020c3))return!0x0;const _0x30de84=_0x4020c3[_0x1f4ca4([0x73,0x70,0x6c,0x69,0x74])](_0x1f4ca4([0x2e]));return _0x416eb8[_0x1f4ca4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13874d=>_0x13874d[_0x1f4ca4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f4ca4([0x2a])))[_0x1f4ca4([0x6d,0x61,0x70])](_0x492833=>_0x492833[_0x1f4ca4([0x73,0x70,0x6c,0x69,0x74])](_0x1f4ca4([0x2e])))[_0x1f4ca4([0x73,0x6f,0x6d,0x65])](_0x4d681f=>_0x30de84[_0x1f4ca4([0x65,0x76,0x65,0x72,0x79])]((_0x19b93c,_0x5e5e91)=>_0x4d681f[_0x5e5e91]===_0x19b93c||_0x4d681f[_0x5e5e91]===_0x1f4ca4([0x2a])));}function _0x28b6a7(){return _0x341d5a&&_0x560a36?new window[(_0x1f4ca4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3334c7,_0x15b705)=>{_0x341d5a[_0x1f4ca4([0x74,0x68,0x65,0x6e])](_0x3334c7,_0x15b705),_0x560a36[_0x1f4ca4([0x74,0x68,0x65,0x6e])](_0x38c6a5=>{_0x38c6a5!=_0x1f4ca4([0x56,0x61,0x6c,0x69,0x64])&&_0x3334c7(_0x38c6a5);},_0x15b705);}):_0x341d5a||_0x560a36||_0x1f4ca4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x332e9e(_0x4cca11,_0x2cdc6){return new window[(_0x1f4ca4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32d2e2=>{if(_0x48ccf4())return _0x32d2e2(_0x1f4ca4([0x56,0x61,0x6c,0x69,0x64]));_0x2db17f(),_0xe6d8d3[_0x1f4ca4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f4ca4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x514d92=!0x1;const _0x2cd537=_0x33a6de();function _0x176c0d(_0x548e6e){return!!_0x548e6e&&(typeof _0x548e6e===_0x1f4ca4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x548e6e===_0x1f4ca4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x548e6e[_0x1f4ca4([0x74,0x68,0x65,0x6e])]===_0x1f4ca4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x548e6e[_0x1f4ca4([0x63,0x61,0x74,0x63,0x68])]===_0x1f4ca4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x22da55(_0x496f56){_0x4791e4(_0x496f56)[_0x1f4ca4([0x74,0x68,0x65,0x6e])](_0x231b62=>{if(!_0x231b62||_0x231b62[_0x1f4ca4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f4ca4([0x6f,0x6b]))return _0x1f4ca4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x22b9b1(_0x4f8237(_0x2cd537+_0x2cdc6))!=_0x231b62[_0x1f4ca4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f4ca4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f4ca4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f4ca4([0x74,0x68,0x65,0x6e])](_0x334a5a=>(_0x2713b4(),_0x334a5a),()=>{const _0x3f3f92=_0x5943cd();return null==_0x3f3f92?(_0x2713b4(),_0x1f4ca4([0x56,0x61,0x6c,0x69,0x64])):_0x1f4ca4(_0x36c73d-_0x3f3f92>(0x4f280f60^_0x2e9031)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f4ca4([0x74,0x68,0x65,0x6e])](_0x32d2e2)[_0x1f4ca4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x32d2e2(_0x1f4ca4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x28bbd7=0x6b1265e0^_0x2e9031;function _0x2713b4(){const _0x1c71b0=_0x1f4ca4([0x6c,0x6c,0x63,0x74,0x2d])+_0x22b9b1(_0x4f8237(_0x4cca11)),_0x487099=_0x37a0f0(_0x22b9b1(window[_0x1f4ca4([0x4d,0x61,0x74,0x68])][_0x1f4ca4([0x63,0x65,0x69,0x6c])](_0x36c73d/_0x28bbd7)));window[_0x1f4ca4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f4ca4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c71b0,_0x487099);}function _0x5943cd(){const _0x5b3d2b=_0x1f4ca4([0x6c,0x6c,0x63,0x74,0x2d])+_0x22b9b1(_0x4f8237(_0x4cca11)),_0x12b0d5=window[_0x1f4ca4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f4ca4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b3d2b);return _0x12b0d5?window[_0x1f4ca4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37a0f0(_0x12b0d5),0x10)*_0x28bbd7:null;}function _0x4791e4(_0x24ad65){return new window[(_0x1f4ca4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59b455,_0x509c53)=>{_0x24ad65[_0x1f4ca4([0x74,0x68,0x65,0x6e])](_0x59b455,_0x509c53),window[_0x1f4ca4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x509c53,0x6b255fa0^_0x2e9031);});}}_0xe6d8d3[_0x1f4ca4([0x6f,0x6e])](_0x1f4ca4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51aad3,_0x3df17e)=>{if(_0x3df17e[0x0]!=_0x4cca11)return _0x32d2e2(_0x1f4ca4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3df17e[0x1]={..._0x3df17e[0x1],[_0x1f4ca4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2cd537};},{[_0x1f4ca4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f4ca4([0x68,0x69,0x67,0x68])}),_0xe6d8d3[_0x1f4ca4([0x6f,0x6e])](_0x1f4ca4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4afc5b=>{_0x176c0d(_0x4afc5b[_0x1f4ca4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x514d92=!0x0,_0x22da55(_0x4afc5b[_0x1f4ca4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f4ca4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f4ca4([0x6c,0x6f,0x77])}),_0x8a4d[_0x1f4ca4([0x74,0x68,0x65,0x6e])](()=>{_0x514d92||_0x32d2e2(_0x1f4ca4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x48ccf4(){return _0xe6d8d3[_0x1f4ca4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f4ca4([0x76,0x69,0x65,0x77])][_0x1f4ca4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f4ca4([0x61,0x75,0x74,0x6f]);}function _0x2db17f(){_0xe6d8d3[_0x1f4ca4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f4ca4([0x76,0x69,0x65,0x77])][_0x1f4ca4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f4ca4([0x61,0x75,0x74,0x6f]);}}function _0x458a74(_0x4c2f0f){const _0x251d6c=[new window[(_0x1f4ca4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ed962=>setTimeout(_0x1ed962,0x6b2db5ac^_0x2e9031)),_0x8a4d[_0x1f4ca4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f4ca4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d1781=>{let _0x4d2aa3=0x0;_0xe6d8d3[_0x1f4ca4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f4ca4([0x6f,0x6e])](_0x1f4ca4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xaba36e,_0x37344e)=>{_0x37344e[0x0][_0x1f4ca4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4d2aa3++,_0x4d2aa3==(0x6b248a98^_0x2e9031)&&(_0x5d1781(),_0xaba36e[_0x1f4ca4([0x6f,0x66,0x66])]());});}))];return window[_0x1f4ca4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f4ca4([0x72,0x61,0x63,0x65])](_0x251d6c)[_0x1f4ca4([0x74,0x68,0x65,0x6e])](()=>_0x4c2f0f);}async function _0x3f9a95(){await _0x8a4d,_0xe6d8d3[_0x1f4ca4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f4ca4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c8b7e,_0xe6d8d3[_0x1f4ca4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f4ca4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c8b7e,_0xe6d8d3[_0x1f4ca4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f4ca4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f11b0(_0x29b3e7){const _0x29b119=_0x1a3cc6();_0xe6d8d3[_0x29b119]=_0x1f4ca4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x29b3e7,_0x29b3e7!=_0x1f4ca4([0x56,0x61,0x6c,0x69,0x64])&&_0x3f9a95();}function _0x1a3cc6(){const _0x29781d=window[_0x1f4ca4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f4ca4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f4ca4([0x6e,0x6f,0x77])]())[_0x1f4ca4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f4ca4([0x2e]),'');let _0x282daa=_0x1f4ca4([0x72]);for(let _0x3d0329=0x0;_0x3d0329<_0x29781d[_0x1f4ca4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d0329+=0x2){let _0xb1cefc=window[_0x1f4ca4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29781d[_0x1f4ca4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d0329,_0x3d0329+0x2));_0xb1cefc>=_0x21cb30[_0x1f4ca4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb1cefc-=_0x21cb30[_0x1f4ca4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x282daa+=_0x21cb30[_0xb1cefc];}return _0x282daa;}function _0x538915(){const _0x2eebf2=_0x2d61bc[_0x1f4ca4([0x73,0x70,0x6c,0x69,0x74])](_0x1f4ca4([0x2e]));if(0x3!=_0x2eebf2[_0x1f4ca4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4ec4cd(_0x2eebf2[0x1]);function _0x4ec4cd(_0x3062f2){const _0x36f107=_0x1262e6(_0x3062f2);return _0x36f107&&_0x3c91cc()?_0x36f107:null;function _0x3c91cc(){const _0x259348=_0x36f107[_0x1f4ca4([0x6a,0x74,0x69])],_0x1fb9cb=window[_0x1f4ca4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x259348[_0x1f4ca4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x259348[_0x1f4ca4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3c4a9e={..._0x36f107,[_0x1f4ca4([0x6a,0x74,0x69])]:_0x259348[_0x1f4ca4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x259348[_0x1f4ca4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3c4a9e[_0x1f4ca4([0x76,0x63])],_0x4f8237(_0x3c4a9e)==_0x1fb9cb;}}}async function _0x2294fd(){let _0x118054=!0x0;try{const _0xb00738=_0x2d61bc[_0x1f4ca4([0x73,0x70,0x6c,0x69,0x74])](_0x1f4ca4([0x2e])),[_0x1d7fd1,_0x3e2d20,_0x4a1540]=_0xb00738;return _0x7b7eee(_0x1d7fd1),await _0x47e65f(_0x1d7fd1,_0x3e2d20,_0x4a1540),_0x118054;}catch(_0x2647c0){return!0x1;}function _0x7b7eee(_0x49fa52){const _0x9c24f3=_0x1262e6(_0x49fa52);_0x9c24f3&&_0x9c24f3[_0x1f4ca4([0x61,0x6c,0x67])]==_0x1f4ca4([0x45,0x53,0x32,0x35,0x36])||(_0x118054=!0x1);}async function _0x47e65f(_0x5b42e2,_0x44c9c0,_0x49b6d2){const _0x4f72ff=window[_0x1f4ca4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f4ca4([0x66,0x72,0x6f,0x6d])](_0x46e688(_0x49b6d2),_0x43ce57=>_0x43ce57[_0x1f4ca4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c23e5=new window[(_0x1f4ca4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f4ca4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b42e2+_0x1f4ca4([0x2e])+_0x44c9c0),_0x360b1e=window[_0x1f4ca4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f4ca4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x360b1e)return;const _0x1c9a6d=await _0x360b1e[_0x1f4ca4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f4ca4([0x6a,0x77,0x6b]),_0x5a831c,{[_0x1f4ca4([0x6e,0x61,0x6d,0x65])]:_0x1f4ca4([0x45,0x43,0x44,0x53,0x41]),[_0x1f4ca4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f4ca4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f4ca4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x360b1e[_0x1f4ca4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f4ca4([0x6e,0x61,0x6d,0x65])]:_0x1f4ca4([0x45,0x43,0x44,0x53,0x41]),[_0x1f4ca4([0x68,0x61,0x73,0x68])]:{[_0x1f4ca4([0x6e,0x61,0x6d,0x65])]:_0x1f4ca4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c9a6d,_0x4f72ff,_0x4c23e5)||(_0x118054=!0x1);}}function _0x1262e6(_0x32a674){return _0x32a674[_0x1f4ca4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f4ca4([0x65,0x79]))?JSON[_0x1f4ca4([0x70,0x61,0x72,0x73,0x65])](_0x46e688(_0x32a674)):null;}function _0x46e688(_0x2a2a64){return window[_0x1f4ca4([0x61,0x74,0x6f,0x62])](_0x2a2a64[_0x1f4ca4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f4ca4([0x2b]))[_0x1f4ca4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f4ca4([0x2f])));}function _0x4f8237(_0x227b5e){let _0xdd140=0x1505;function _0x41f3f2(_0x2bab45){for(let _0x2b7f15=0x0;_0x2b7f15<_0x2bab45[_0x1f4ca4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b7f15++){const _0x21bf8c=_0x2bab45[_0x1f4ca4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b7f15);_0xdd140=(_0xdd140<<0x5)+_0xdd140+_0x21bf8c,_0xdd140&=_0xdd140;}}function _0xafcf96(_0xee81a0){Array[_0x1f4ca4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xee81a0)?_0xee81a0[_0x1f4ca4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xafcf96):_0xee81a0&&typeof _0xee81a0==_0x1f4ca4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f4ca4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xee81a0)[_0x1f4ca4([0x73,0x6f,0x72,0x74])]()[_0x1f4ca4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x95db3a,_0x2dfa48])=>{_0x41f3f2(_0x95db3a),_0xafcf96(_0x2dfa48);}):_0x41f3f2(window[_0x1f4ca4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xee81a0));}return _0xafcf96(_0x227b5e),_0xdd140>>>0x0;}function _0x22b9b1(_0x448c9a){return _0x448c9a[_0x1f4ca4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f4ca4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f4ca4([0x30]));}function _0x37a0f0(_0x1d1385){return _0x1d1385[_0x1f4ca4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f4ca4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f4ca4([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c8b7e(){}function _0x1f4ca4(_0x56929d){const _0x2608e0=_0x52d0;return _0x56929d[_0x2608e0(0x15d)](_0xd98beb=>String[_0x2608e0(0x182)](_0xd98beb))[_0x2608e0(0x162)]('');}_0x2f11b0(await _0x5e9882());}(this);}[_0xc042f5(0x168)](){const _0xa20d4c=_0xc042f5,_0x15d132=this[_0xa20d4c(0x156)][_0xa20d4c(0x18f)][_0xa20d4c(0x15f)];_0x15d132[_0xa20d4c(0x195)](_0xa20d4c(0x14b))&&_0x15d132[_0xa20d4c(0x186)](_0xa20d4c(0x14b),{'allowAttributes':[_0xa20d4c(0x161)]}),_0x15d132[_0xa20d4c(0x195)](_0xa20d4c(0x170))&&_0x15d132[_0xa20d4c(0x186)](_0xa20d4c(0x170),{'allowAttributes':[_0xa20d4c(0x161)]});}[_0xc042f5(0x181)](){const _0x4ada9e=_0xc042f5,_0x49eba9=this[_0x4ada9e(0x156)];_0x49eba9[_0x4ada9e(0x17d)][_0x4ada9e(0x144)](_0x4ada9e(0x16b))[_0x4ada9e(0x18c)]({'model':_0x4ada9e(0x161),'view':_0x4ada9e(0x196)}),_0x49eba9[_0x4ada9e(0x17d)][_0x4ada9e(0x144)](_0x4ada9e(0x158))[_0x4ada9e(0x172)]({'model':{'key':_0x4ada9e(0x161),'value':_0x1ae091=>_0x1ae091[_0x4ada9e(0x193)](_0x4ada9e(0x196))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2961bd=_0x49eba9[_0x4ada9e(0x146)][_0x4ada9e(0x14f)](_0x4ada9e(0x14c));_0x2961bd&&this[_0x4ada9e(0x15a)](_0x2961bd,_0x4ada9e(0x16c),(_0x3b35d3,[_0x429352,_0x55eadb])=>{const _0x2f8df1=_0x4ada9e;_0x429352[_0x2f8df1(0x14a)](_0x2f8df1(0x161),_0x55eadb);});}[_0xc042f5(0x16e)](){const _0x2e657f=_0xc042f5,_0xfccd4b=this[_0x2e657f(0x156)][_0x2e657f(0x16a)][_0x2e657f(0x14f)](_0x2e657f(0x15b))||{},_0x5bfb81=this[_0x2e657f(0x156)][_0x2e657f(0x16a)][_0x2e657f(0x14f)](_0x2e657f(0x14d))||'';this[_0x2e657f(0x175)]=_0x1adf8e(_0x19386e[_0x2e657f(0x167)],_0x2e657f(0x149),{..._0xfccd4b,'pubkey':_0x5bfb81,'ctx-name':_0x2e657f(0x17a),'sourceList':'','imgOnly':_0x2e657f(0x160),'removeCopyright':_0x2e657f(0x160),'localeName':this[_0x2e657f(0x156)][_0x2e657f(0x185)][_0x2e657f(0x17f)],'externalSourcesEmbedCss':_0x2e657f(0x145)}),this[_0x2e657f(0x175)][_0x2e657f(0x183)]=_0x2dfd84=>{const _0x54453b=_0x2e657f;if(_0x54453b(0x178)==_0x2dfd84)return _0x54453b(0x14e);},_0x19386e[_0x2e657f(0x167)][_0x2e657f(0x155)][_0x2e657f(0x18d)](this[_0x2e657f(0x175)]);}[_0xc042f5(0x148)](){const _0x5684eb=_0xc042f5;this[_0x5684eb(0x18a)]=_0x1adf8e(_0x19386e[_0x5684eb(0x167)],_0x5684eb(0x152),{'ctx-name':_0x5684eb(0x17a)}),_0x19386e[_0x5684eb(0x167)][_0x5684eb(0x155)][_0x5684eb(0x18d)](this[_0x5684eb(0x18a)]);}[_0xc042f5(0x176)](){const _0x31ab5d=_0xc042f5,_0x3b6e07=this[_0x31ab5d(0x156)][_0x31ab5d(0x146)][_0x31ab5d(0x14f)](_0x31ab5d(0x154));_0x3b6e07&&this[_0x31ab5d(0x15a)](_0x3b6e07,_0x31ab5d(0x189),()=>{const _0x1113bd=_0x31ab5d,_0x41e0c9=this[_0x1113bd(0x156)][_0x1113bd(0x18f)][_0x1113bd(0x167)][_0x1113bd(0x18b)][_0x1113bd(0x17c)]();_0x41e0c9&&_0x41e0c9[_0x1113bd(0x193)](_0x1113bd(0x161))&&this[_0x1113bd(0x156)][_0x1113bd(0x163)][_0x1113bd(0x151)][_0x1113bd(0x15c)](_0x1113bd(0x18e),()=>{const _0x2e44c1=_0x1113bd;_0x45e451(this[_0x2e44c1(0x156)],_0x41e0c9);});});const _0xcd5a4a=this[_0x31ab5d(0x156)][_0x31ab5d(0x146)][_0x31ab5d(0x14f)](_0x31ab5d(0x17e));_0xcd5a4a&&this[_0x31ab5d(0x15a)](_0xcd5a4a,_0x31ab5d(0x189),()=>{const _0x11e5eb=_0x31ab5d,_0x493a81=this[_0x11e5eb(0x156)][_0x11e5eb(0x18f)][_0x11e5eb(0x167)][_0x11e5eb(0x18b)][_0x11e5eb(0x17c)]();_0x493a81&&_0x493a81[_0x11e5eb(0x193)](_0x11e5eb(0x161))&&this[_0x11e5eb(0x156)][_0x11e5eb(0x163)][_0x11e5eb(0x151)][_0x11e5eb(0x15c)](_0x11e5eb(0x18e),()=>{const _0x5d4abb=_0x11e5eb;_0x45e451(this[_0x5d4abb(0x156)],_0x493a81);});});}}
23
+ const _0x377737=_0x3c3a;(function(_0x4e0b3d,_0x4caeb1){const _0x562c1d=_0x3c3a,_0x40c2db=_0x4e0b3d();while(!![]){try{const _0x488520=-parseInt(_0x562c1d(0x88))/0x1*(parseInt(_0x562c1d(0x97))/0x2)+parseInt(_0x562c1d(0xd6))/0x3*(parseInt(_0x562c1d(0x89))/0x4)+-parseInt(_0x562c1d(0xa9))/0x5*(-parseInt(_0x562c1d(0xc9))/0x6)+-parseInt(_0x562c1d(0xad))/0x7*(-parseInt(_0x562c1d(0x99))/0x8)+-parseInt(_0x562c1d(0x82))/0x9+parseInt(_0x562c1d(0xa8))/0xa*(-parseInt(_0x562c1d(0x90))/0xb)+-parseInt(_0x562c1d(0xd5))/0xc*(-parseInt(_0x562c1d(0xb1))/0xd);if(_0x488520===_0x4caeb1)break;else _0x40c2db['push'](_0x40c2db['shift']());}catch(_0x14ac60){_0x40c2db['push'](_0x40c2db['shift']());}}}(_0x3c09,0x857b4));import{Plugin as _0x29a8bb}from'ckeditor5/src/core.js';function _0x3c09(){const _0x29e0ce=['configElement','377bceXRE','removeAttribute','selection','config','locale','pluginName','attributeToAttribute','_initConversion','uploadcare','editor','requires','getAttribute','downcast','querySelector','isOfficialPlugin','uc-upload-ctx-provider','true','UploadcareEditing','listenTo','map','add','uploadcareImageId','remove','editing','4644546fpBjnu','insertImage','extend','appendChild','conversion','imageInline','uploadcare.pubkey','_initCtx','iconHrefResolver','_ctxElement','document','PictureEditing','870708NrhdOJ','614877DmKxYu','\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','for','8778213ChnqvK','init','uploadcareImageReplace','join','_configElement','once','35744kbWZHc','4EcqaTj','closeMax','_initImageProcessingIndicator','uc-config','data-uc-image-id','view','cleanupImage','11MZTfny','execute','body','afterInit','imageBlock','schema','href','54Kwevrh','fromCharCode','376RKRlrB','destroy','get','getSelectedElement','uploadcare.uploader','model','#uc-icon-arrow-down','uploader','_initConfig','render','commands','_initSchema','isPremiumPlugin','isRegistered','contentLanguage','7089230LHfWgT','5iDoyIX','input[uploadcare-file-input]','elementToAttribute','ctxElement','16807VBwehS','replaceImageSource','upcast'];_0x3c09=function(){return _0x29e0ce;};return _0x3c09();}import{Dialog as _0x39662e}from'ckeditor5/src/ui.js';import{createElement as _0x347204,global as _0x20eaf8,uid as _0x17b948}from'ckeditor5/src/utils.js';import _0x2056fc from'./uploadcarecommand.js';import _0xd2082e from'./uploadcareuploadadapter.js';function _0x3c3a(_0x29638b,_0x12948e){const _0x3c096e=_0x3c09();return _0x3c3a=function(_0x3c3a4f,_0x415a2b){_0x3c3a4f=_0x3c3a4f-0x81;let _0x144f37=_0x3c096e[_0x3c3a4f];return _0x144f37;},_0x3c3a(_0x29638b,_0x12948e);}import{showImageProcessingIndicator as _0x4dc92a}from'./utils/editingutils.js';export default class i extends _0x29a8bb{[_0x377737(0x86)]=null;[_0x377737(0xd2)]=null;static get[_0x377737(0xb6)](){const _0x5123eb=_0x377737;return _0x5123eb(0xc2);}static get[_0x377737(0xbb)](){const _0x439a1c=_0x377737;return[_0x439a1c(0xd4),_0xd2082e,_0x39662e];}static get[_0x377737(0xbf)](){return!0x0;}static get[_0x377737(0xa5)](){return!0x0;}get[_0x377737(0xb0)](){const _0x4354a1=_0x377737;return this[_0x4354a1(0x86)];}get[_0x377737(0xac)](){const _0x2a1028=_0x377737;return this[_0x2a1028(0xd2)];}[_0x377737(0x83)](){const _0x5b6067=_0x377737,_0xb63964=this[_0x5b6067(0xba)];_0xb63964[_0x5b6067(0xa3)][_0x5b6067(0xc5)](_0x5b6067(0xb9),new _0x2056fc(_0xb63964));}[_0x377737(0x93)](){const _0x138ef8=_0x377737;this[_0x138ef8(0xa4)](),this[_0x138ef8(0xb8)](),this[_0x138ef8(0xa1)](),this[_0x138ef8(0xd0)](),this[_0x138ef8(0x8b)](),this[_0x138ef8(0xc3)](this[_0x138ef8(0xba)],_0x138ef8(0x9a),()=>{const _0x406965=_0x138ef8;this[_0x406965(0x86)]&&(this[_0x406965(0x86)][_0x406965(0xc7)](),this[_0x406965(0x86)]=null),this[_0x406965(0xd2)]&&(this[_0x406965(0xd2)][_0x406965(0xc7)](),this[_0x406965(0xd2)]=null);const _0x4c7584=_0x20eaf8[_0x406965(0xd3)][_0x406965(0xbe)](_0x406965(0xaa));_0x4c7584&&_0x4c7584[_0x406965(0xc7)]();}),async function(_0x32cf23){const _0x23d21d=_0x5885e8([0x42,0x75,0x4d,0x4c,0x52,0x73,0x49,0x36,0x6e,0x64,0x63,0x33,0x47,0x54,0x57,0x67,0x6d,0x6f,0x31,0x6c,0x61,0x7a,0x70,0x53,0x45,0x44,0x34,0x30,0x72,0x74,0x6b,0x6a,0x66,0x50,0x48,0x79,0x77,0x38,0x55,0x59,0x35,0x41,0x46,0x43,0x76,0x5a,0x4b,0x4e,0x39,0x58,0x51,0x78,0x56,0x62,0x32,0x68,0x4a,0x65,0x4f,0x37,0x71,0x69]),_0x5a15ca=0x21da0d71,_0x204e37=0x21dd6b49^_0x5a15ca,_0x522c9f=window[_0x5885e8([0x44,0x61,0x74,0x65])][_0x5885e8([0x6e,0x6f,0x77])](),_0x6d7ad2=_0x32cf23[_0x5885e8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1573f4=new window[(_0x5885e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d81e8=>{_0x6d7ad2[_0x5885e8([0x6f,0x6e,0x63,0x65])](_0x5885e8([0x72,0x65,0x61,0x64,0x79]),_0x3d81e8);}),_0x25528f={[_0x5885e8([0x6b,0x74,0x79])]:_0x5885e8([0x45,0x43]),[_0x5885e8([0x75,0x73,0x65])]:_0x5885e8([0x73,0x69,0x67]),[_0x5885e8([0x63,0x72,0x76])]:_0x5885e8([0x50,0x2d,0x32,0x35,0x36]),[_0x5885e8([0x78])]:_0x5885e8([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]),[_0x5885e8([0x79])]:_0x5885e8([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]),[_0x5885e8([0x61,0x6c,0x67])]:_0x5885e8([0x45,0x53,0x32,0x35,0x36])},_0x5792d8=_0x6d7ad2[_0x5885e8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5885e8([0x67,0x65,0x74])](_0x5885e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x433670(){let _0x3500bf,_0xebd080=null,_0x44e278=null;try{if(_0x5792d8==_0x5885e8([0x47,0x50,0x4c]))return _0x5885e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3500bf=_0x3f6a45(),!_0x3500bf)return _0x5885e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3500bf[_0x5885e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x44e278=_0x61d4b2(_0x3500bf[_0x5885e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3500bf[_0x5885e8([0x6a,0x74,0x69])])),await _0x262e9b()?_0x1fe6cd()?_0x2f9a85()?_0x5885e8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x16332d()?(_0x3500bf[_0x5885e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5885e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xebd080=_0xf68683(_0x5885e8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3500bf[_0x5885e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5885e8([0x74,0x72,0x69,0x61,0x6c])&&(_0xebd080=_0xf68683(_0x5885e8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3fdbcc()):_0x5885e8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5885e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5885e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x233941){return _0x5885e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f9a85(){const _0xdea72a=[_0x5885e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5885e8([0x74,0x72,0x69,0x61,0x6c])][_0x5885e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3500bf[_0x5885e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x522c9f/0x3e8:0xe10*_0x204e37;return _0x3500bf[_0x5885e8([0x65,0x78,0x70])]<_0xdea72a;}function _0x1fe6cd(){const _0xe4a9b1=_0x3500bf[_0x5885e8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xe4a9b1&&(!!_0xe4a9b1[_0x5885e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5885e8([0x2a]))||!!_0xe4a9b1[_0x5885e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5885e8([0x55,0x50,0x4c,0x43])));}function _0x16332d(){const _0x2ecdc7=_0x3c3a,_0x2d3924=_0x3500bf[_0x5885e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d3924||0x0==_0x2d3924[_0x5885e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5440c7}=new URL(window[_0x5885e8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2ecdc7(0x96)]);if(_0x2d3924[_0x5885e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5440c7))return!0x0;const _0x3d3fe7=_0x5440c7[_0x5885e8([0x73,0x70,0x6c,0x69,0x74])](_0x5885e8([0x2e]));return _0x2d3924[_0x5885e8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3de7b9=>_0x3de7b9[_0x5885e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5885e8([0x2a])))[_0x5885e8([0x6d,0x61,0x70])](_0x464e11=>_0x464e11[_0x5885e8([0x73,0x70,0x6c,0x69,0x74])](_0x5885e8([0x2e])))[_0x5885e8([0x73,0x6f,0x6d,0x65])](_0x2d9850=>_0x3d3fe7[_0x5885e8([0x65,0x76,0x65,0x72,0x79])]((_0x2aeb9a,_0x3fe339)=>_0x2d9850[_0x3fe339]===_0x2aeb9a||_0x2d9850[_0x3fe339]===_0x5885e8([0x2a])));}function _0x3fdbcc(){return _0xebd080&&_0x44e278?new window[(_0x5885e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b779d,_0x583727)=>{_0xebd080[_0x5885e8([0x74,0x68,0x65,0x6e])](_0x2b779d,_0x583727),_0x44e278[_0x5885e8([0x74,0x68,0x65,0x6e])](_0x396dd2=>{_0x396dd2!=_0x5885e8([0x56,0x61,0x6c,0x69,0x64])&&_0x2b779d(_0x396dd2);},_0x583727);}):_0xebd080||_0x44e278||_0x5885e8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x61d4b2(_0x471b46,_0x32d56e){return new window[(_0x5885e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5543bf=>{if(_0x5c0393())return _0x5543bf(_0x5885e8([0x56,0x61,0x6c,0x69,0x64]));_0x1330a1(),_0x6d7ad2[_0x5885e8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5885e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e019d=!0x1;const _0xc79b5d=_0x17b948();function _0x5b05d3(_0x33fe5e){return!!_0x33fe5e&&(typeof _0x33fe5e===_0x5885e8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x33fe5e===_0x5885e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x33fe5e[_0x5885e8([0x74,0x68,0x65,0x6e])]===_0x5885e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x33fe5e[_0x5885e8([0x63,0x61,0x74,0x63,0x68])]===_0x5885e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf9aa9e(_0x1b3a3a){_0x4198ba(_0x1b3a3a)[_0x5885e8([0x74,0x68,0x65,0x6e])](_0x84352=>{if(!_0x84352||_0x84352[_0x5885e8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5885e8([0x6f,0x6b]))return _0x5885e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b2d85(_0x3f1cf1(_0xc79b5d+_0x32d56e))!=_0x84352[_0x5885e8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5885e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5885e8([0x56,0x61,0x6c,0x69,0x64]);})[_0x5885e8([0x74,0x68,0x65,0x6e])](_0x1b1d6f=>(_0x1beed1(),_0x1b1d6f),()=>{const _0x4331ee=_0x4d4abf();return null==_0x4331ee?(_0x1beed1(),_0x5885e8([0x56,0x61,0x6c,0x69,0x64])):_0x5885e8(_0x522c9f-_0x4331ee>(0x5d68971^_0x5a15ca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5885e8([0x74,0x68,0x65,0x6e])](_0x5543bf)[_0x5885e8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5543bf(_0x5885e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41c697=0x21ece3f1^_0x5a15ca;function _0x1beed1(){const _0x1644ab=_0x5885e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b2d85(_0x3f1cf1(_0x471b46)),_0x57f184=_0x307500(_0x5b2d85(window[_0x5885e8([0x4d,0x61,0x74,0x68])][_0x5885e8([0x63,0x65,0x69,0x6c])](_0x522c9f/_0x41c697)));window[_0x5885e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5885e8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1644ab,_0x57f184);}function _0x4d4abf(){const _0x1570e8=_0x5885e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b2d85(_0x3f1cf1(_0x471b46)),_0x4a1a52=window[_0x5885e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5885e8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1570e8);return _0x4a1a52?window[_0x5885e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x307500(_0x4a1a52),0x10)*_0x41c697:null;}function _0x4198ba(_0x326711){return new window[(_0x5885e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x140b6f,_0x413543)=>{_0x326711[_0x5885e8([0x74,0x68,0x65,0x6e])](_0x140b6f,_0x413543),window[_0x5885e8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x413543,0x21dbd9b1^_0x5a15ca);});}}_0x6d7ad2[_0x5885e8([0x6f,0x6e])](_0x5885e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1cf9ad,_0x173e41)=>{if(_0x173e41[0x0]!=_0x471b46)return _0x5543bf(_0x5885e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x173e41[0x1]={..._0x173e41[0x1],[_0x5885e8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc79b5d};},{[_0x5885e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5885e8([0x68,0x69,0x67,0x68])}),_0x6d7ad2[_0x5885e8([0x6f,0x6e])](_0x5885e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1abcc9=>{_0x5b05d3(_0x1abcc9[_0x5885e8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e019d=!0x0,_0xf9aa9e(_0x1abcc9[_0x5885e8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5885e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5885e8([0x6c,0x6f,0x77])}),_0x1573f4[_0x5885e8([0x74,0x68,0x65,0x6e])](()=>{_0x1e019d||_0x5543bf(_0x5885e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c0393(){return _0x6d7ad2[_0x5885e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5885e8([0x76,0x69,0x65,0x77])][_0x5885e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5885e8([0x61,0x75,0x74,0x6f]);}function _0x1330a1(){_0x6d7ad2[_0x5885e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5885e8([0x76,0x69,0x65,0x77])][_0x5885e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5885e8([0x61,0x75,0x74,0x6f]);}}function _0xf68683(_0x3ed85a){const _0x56120f=[new window[(_0x5885e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x199535=>setTimeout(_0x199535,0x21d333bd^_0x5a15ca)),_0x1573f4[_0x5885e8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5885e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x783027=>{let _0x573e1b=0x0;_0x6d7ad2[_0x5885e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5885e8([0x6f,0x6e])](_0x5885e8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4467b8,_0x58f19d)=>{_0x58f19d[0x0][_0x5885e8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x573e1b++,_0x573e1b==(0x21da0c89^_0x5a15ca)&&(_0x783027(),_0x4467b8[_0x5885e8([0x6f,0x66,0x66])]());});}))];return window[_0x5885e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5885e8([0x72,0x61,0x63,0x65])](_0x56120f)[_0x5885e8([0x74,0x68,0x65,0x6e])](()=>_0x3ed85a);}async function _0x347651(){await _0x1573f4,_0x6d7ad2[_0x5885e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5885e8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ea8bd,_0x6d7ad2[_0x5885e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5885e8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ea8bd,_0x6d7ad2[_0x5885e8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5885e8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x235198(_0x5254fe){const _0x1c3c69=_0x4cf288();_0x6d7ad2[_0x1c3c69]=_0x5885e8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5254fe,_0x5254fe!=_0x5885e8([0x56,0x61,0x6c,0x69,0x64])&&_0x347651();}function _0x4cf288(){const _0x4ad30e=window[_0x5885e8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5885e8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5885e8([0x6e,0x6f,0x77])]())[_0x5885e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5885e8([0x2e]),'');let _0x1bf3fa=_0x5885e8([0x42]);for(let _0x1e9895=0x0;_0x1e9895<_0x4ad30e[_0x5885e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e9895+=0x2){let _0x36a474=window[_0x5885e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ad30e[_0x5885e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e9895,_0x1e9895+0x2));_0x36a474>=_0x23d21d[_0x5885e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36a474-=_0x23d21d[_0x5885e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1bf3fa+=_0x23d21d[_0x36a474];}return _0x1bf3fa;}function _0x3f6a45(){const _0x5ece4b=_0x5792d8[_0x5885e8([0x73,0x70,0x6c,0x69,0x74])](_0x5885e8([0x2e]));if(0x3!=_0x5ece4b[_0x5885e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x55329b(_0x5ece4b[0x1]);function _0x55329b(_0xfb5860){const _0x3f00b2=_0x28dff5(_0xfb5860);return _0x3f00b2&&_0x2cb2e7()?_0x3f00b2:null;function _0x2cb2e7(){const _0x2ba6c5=_0x3f00b2[_0x5885e8([0x6a,0x74,0x69])],_0x47853b=window[_0x5885e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ba6c5[_0x5885e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ba6c5[_0x5885e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9793f5={..._0x3f00b2,[_0x5885e8([0x6a,0x74,0x69])]:_0x2ba6c5[_0x5885e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ba6c5[_0x5885e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9793f5[_0x5885e8([0x76,0x63])],_0x3f1cf1(_0x9793f5)==_0x47853b;}}}async function _0x262e9b(){let _0x2d6748=!0x0;try{const _0x46bbc6=_0x5792d8[_0x5885e8([0x73,0x70,0x6c,0x69,0x74])](_0x5885e8([0x2e])),[_0x498a6f,_0x3cd1e9,_0x26b56b]=_0x46bbc6;return _0x12608d(_0x498a6f),await _0x391769(_0x498a6f,_0x3cd1e9,_0x26b56b),_0x2d6748;}catch(_0x562a9a){return!0x1;}function _0x12608d(_0x1a6657){const _0x45a98c=_0x28dff5(_0x1a6657);_0x45a98c&&_0x45a98c[_0x5885e8([0x61,0x6c,0x67])]==_0x5885e8([0x45,0x53,0x32,0x35,0x36])||(_0x2d6748=!0x1);}async function _0x391769(_0x97f1f4,_0x4b7ae4,_0x4e497a){const _0x4327e4=window[_0x5885e8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5885e8([0x66,0x72,0x6f,0x6d])](_0x316127(_0x4e497a),_0x360fd2=>_0x360fd2[_0x5885e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x216a01=new window[(_0x5885e8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5885e8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x97f1f4+_0x5885e8([0x2e])+_0x4b7ae4),_0x4f8cc6=window[_0x5885e8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5885e8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f8cc6)return;const _0x4e3e3e=await _0x4f8cc6[_0x5885e8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5885e8([0x6a,0x77,0x6b]),_0x25528f,{[_0x5885e8([0x6e,0x61,0x6d,0x65])]:_0x5885e8([0x45,0x43,0x44,0x53,0x41]),[_0x5885e8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5885e8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5885e8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f8cc6[_0x5885e8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5885e8([0x6e,0x61,0x6d,0x65])]:_0x5885e8([0x45,0x43,0x44,0x53,0x41]),[_0x5885e8([0x68,0x61,0x73,0x68])]:{[_0x5885e8([0x6e,0x61,0x6d,0x65])]:_0x5885e8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e3e3e,_0x4327e4,_0x216a01)||(_0x2d6748=!0x1);}}function _0x28dff5(_0x33a3ad){return _0x33a3ad[_0x5885e8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5885e8([0x65,0x79]))?JSON[_0x5885e8([0x70,0x61,0x72,0x73,0x65])](_0x316127(_0x33a3ad)):null;}function _0x316127(_0x3975f8){return window[_0x5885e8([0x61,0x74,0x6f,0x62])](_0x3975f8[_0x5885e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5885e8([0x2b]))[_0x5885e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5885e8([0x2f])));}function _0x3f1cf1(_0x22af46){let _0x4c51d9=0x1505;function _0x15b83c(_0x267a30){for(let _0x4e0633=0x0;_0x4e0633<_0x267a30[_0x5885e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e0633++){const _0xe94fc3=_0x267a30[_0x5885e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e0633);_0x4c51d9=(_0x4c51d9<<0x5)+_0x4c51d9+_0xe94fc3,_0x4c51d9&=_0x4c51d9;}}function _0x278d4a(_0x4618d4){Array[_0x5885e8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4618d4)?_0x4618d4[_0x5885e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x278d4a):_0x4618d4&&typeof _0x4618d4==_0x5885e8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5885e8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4618d4)[_0x5885e8([0x73,0x6f,0x72,0x74])]()[_0x5885e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x495550,_0x490631])=>{_0x15b83c(_0x495550),_0x278d4a(_0x490631);}):_0x15b83c(window[_0x5885e8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4618d4));}return _0x278d4a(_0x22af46),_0x4c51d9>>>0x0;}function _0x5b2d85(_0x4e21c8){return _0x4e21c8[_0x5885e8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5885e8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5885e8([0x30]));}function _0x307500(_0x1ebdd2){return _0x1ebdd2[_0x5885e8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5885e8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5885e8([0x6a,0x6f,0x69,0x6e])]('');}function _0x1ea8bd(){}function _0x5885e8(_0x31e187){const _0x586a39=_0x3c3a;return _0x31e187[_0x586a39(0xc4)](_0x55a815=>String[_0x586a39(0x98)](_0x55a815))[_0x586a39(0x85)]('');}_0x235198(await _0x433670());}(this);}[_0x377737(0xa4)](){const _0x3e6aba=_0x377737,_0x482672=this[_0x3e6aba(0xba)][_0x3e6aba(0x9e)][_0x3e6aba(0x95)];_0x482672[_0x3e6aba(0xa6)](_0x3e6aba(0x94))&&_0x482672[_0x3e6aba(0xcb)](_0x3e6aba(0x94),{'allowAttributes':[_0x3e6aba(0xc6)]}),_0x482672[_0x3e6aba(0xa6)](_0x3e6aba(0xce))&&_0x482672[_0x3e6aba(0xcb)](_0x3e6aba(0xce),{'allowAttributes':[_0x3e6aba(0xc6)]});}[_0x377737(0xb8)](){const _0x24ff07=_0x377737,_0x23bb77=this[_0x24ff07(0xba)];_0x23bb77[_0x24ff07(0xcd)][_0x24ff07(0x81)](_0x24ff07(0xbd))[_0x24ff07(0xb7)]({'model':_0x24ff07(0xc6),'view':_0x24ff07(0x8d)}),_0x23bb77[_0x24ff07(0xcd)][_0x24ff07(0x81)](_0x24ff07(0xaf))[_0x24ff07(0xab)]({'model':{'key':_0x24ff07(0xc6),'value':_0x187f01=>_0x187f01[_0x24ff07(0xbc)](_0x24ff07(0x8d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xbab416=_0x23bb77[_0x24ff07(0xa3)][_0x24ff07(0x9b)](_0x24ff07(0xae));_0xbab416&&this[_0x24ff07(0xc3)](_0xbab416,_0x24ff07(0x8f),(_0x2a4d59,[_0x11fc83,_0x2c3ba3])=>{const _0x29f234=_0x24ff07;_0x11fc83[_0x29f234(0xb2)](_0x29f234(0xc6),_0x2c3ba3);});}[_0x377737(0xa1)](){const _0x46b77b=_0x377737,_0x392474=this[_0x46b77b(0xba)][_0x46b77b(0xb4)][_0x46b77b(0x9b)](_0x46b77b(0x9d))||{},_0x3c21bb=this[_0x46b77b(0xba)][_0x46b77b(0xb4)][_0x46b77b(0x9b)](_0x46b77b(0xcf))||'';this[_0x46b77b(0x86)]=_0x347204(_0x20eaf8[_0x46b77b(0xd3)],_0x46b77b(0x8c),{..._0x392474,'pubkey':_0x3c21bb,'ctx-name':_0x46b77b(0xa0),'sourceList':'','imgOnly':_0x46b77b(0xc1),'removeCopyright':_0x46b77b(0xc1),'localeName':this[_0x46b77b(0xba)][_0x46b77b(0xb5)][_0x46b77b(0xa7)],'externalSourcesEmbedCss':_0x46b77b(0xd7)}),this[_0x46b77b(0x86)][_0x46b77b(0xd1)]=_0x44add4=>{const _0x23cd59=_0x46b77b;if(_0x23cd59(0x8a)==_0x44add4)return _0x23cd59(0x9f);},_0x20eaf8[_0x46b77b(0xd3)][_0x46b77b(0x92)][_0x46b77b(0xcc)](this[_0x46b77b(0x86)]);}[_0x377737(0xd0)](){const _0x2ac938=_0x377737;this[_0x2ac938(0xd2)]=_0x347204(_0x20eaf8[_0x2ac938(0xd3)],_0x2ac938(0xc0),{'ctx-name':_0x2ac938(0xa0)}),_0x20eaf8[_0x2ac938(0xd3)][_0x2ac938(0x92)][_0x2ac938(0xcc)](this[_0x2ac938(0xd2)]);}[_0x377737(0x8b)](){const _0x7b332d=_0x377737,_0x372430=this[_0x7b332d(0xba)][_0x7b332d(0xa3)][_0x7b332d(0x9b)](_0x7b332d(0xca));_0x372430&&this[_0x7b332d(0xc3)](_0x372430,_0x7b332d(0x91),()=>{const _0x1679cc=_0x7b332d,_0x479242=this[_0x1679cc(0xba)][_0x1679cc(0x9e)][_0x1679cc(0xd3)][_0x1679cc(0xb3)][_0x1679cc(0x9c)]();_0x479242&&_0x479242[_0x1679cc(0xbc)](_0x1679cc(0xc6))&&this[_0x1679cc(0xba)][_0x1679cc(0xc8)][_0x1679cc(0x8e)][_0x1679cc(0x87)](_0x1679cc(0xa2),()=>{const _0x25556d=_0x1679cc;_0x4dc92a(this[_0x25556d(0xba)],_0x479242);});});const _0x2f8426=this[_0x7b332d(0xba)][_0x7b332d(0xa3)][_0x7b332d(0x9b)](_0x7b332d(0x84));_0x2f8426&&this[_0x7b332d(0xc3)](_0x2f8426,_0x7b332d(0x91),()=>{const _0x59ca11=_0x7b332d,_0x13a935=this[_0x59ca11(0xba)][_0x59ca11(0x9e)][_0x59ca11(0xd3)][_0x59ca11(0xb3)][_0x59ca11(0x9c)]();_0x13a935&&_0x13a935[_0x59ca11(0xbc)](_0x59ca11(0xc6))&&this[_0x59ca11(0xba)][_0x59ca11(0xc8)][_0x59ca11(0x8e)][_0x59ca11(0x87)](_0x59ca11(0xa2),()=>{const _0x3cfbfa=_0x59ca11;_0x4dc92a(this[_0x3cfbfa(0xba)],_0x13a935);});});}}