@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250308.0 → 0.0.0-nightly-20250309.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 _0xbc8058,Command as _0x336aec}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x6f68c2,IconGooglePhotos as _0x982ca5,IconGoogleDrive as _0x38a55d,IconFacebook as _0x350576,IconDropbox as _0xe1bfca,IconUploadcareLink as _0x4d4a27,IconUploadcareImageUpload as _0x384eed,IconError as et,IconUploadcareImageEdit as _0x52835b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3ed062,MenuBarMenuListItemButtonView as _0x4a72d5,View as _0x4d8b61,FocusCycler as _0x19f36c,Dialog as _0x5d37fd,DialogViewPosition as _0x44ea18,SpinnerView as _0x5e160b,IconView as at,Notification as _0x1260f9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x398b94,DomEmitterMixin as _0x1716a1,global as _0x14a388,getAncestors as _0x52e8f0,ObservableMixin as _0x14aa6c,createElement as _0x49f3d4,uid as _0x1cf6da}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x521633}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1b4860,info as _0x5dc61c}from'@uploadcare/upload-client';import*as _0xb5e1a from'@uploadcare/file-uploader';var o=function(_0x36ee28){return _0x36ee28['Local']='local',_0x36ee28['URL']='url',_0x36ee28['Dropbox']='dropbox',_0x36ee28['GDrive']='gdrive',_0x36ee28['Facebook']='facebook',_0x36ee28['GPhotos']='gphotos',_0x36ee28['OneDrive']='onedrive',_0x36ee28;}({});function _(_0x441f18,_0x367fef,_0x36c3a7){const t=_0x441f18['t'],_0x24b66b=_0x441f18['t'];switch(_0x367fef){case o['Local']:return{'text':_0x24b66b('Insert'===_0x36c3a7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x24b66b('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x36c3a7?_0x24b66b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x24b66b('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x36c3a7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x36c3a7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x36c3a7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x36c3a7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x36c3a7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x367fef;}}class e extends _0xbc8058{['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 _0x17d309=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b5784;for(const _0x2b3fae in _0x17d309){const _0xaad958=_0x2b3fae,_0x1dda0a=_0x17d309[_0xaad958];if('uploadcareLicenseKeyValid'==_0x1dda0a||'uploadcareLicenseKeyInvalid'==_0x1dda0a||'uploadcareLicenseKeyExpired'==_0x1dda0a||'uploadcareLicenseKeyDomainLimit'==_0x1dda0a||'uploadcareLicenseKeyNotAllowed'==_0x1dda0a||'uploadcareLicenseKeyEvaluationLimit'==_0x1dda0a||'uploadcareLicenseKeyTrialLimit'==_0x1dda0a||'uploadcareLicenseKeyUsageLimit'==_0x1dda0a){delete _0x17d309[_0xaad958],_0x4b5784=_0x1dda0a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4b5784&&_0x17d309['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4b5784&&_0x17d309['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4b5784&&_0x17d309['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4b5784&&_0x17d309['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4b5784&&_0x17d309['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4b5784&&_0x17d309['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4b5784&&_0x17d309['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x24d317}=this,_0x2f788f=_0x24d317['commands']['get']('uploadcare');if(!_0x2f788f)return;const _0x3f5c3d=this['_normalizeConfigSourceList'](_0x24d317['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5c7543,_0x24a1eb)=>{const _0x2f8905=this['_getIntegrationKey'](_0x24a1eb['type']);return _0x5c7543[_0x2f8905]||(_0x5c7543[_0x2f8905]=[]),_0x5c7543[_0x2f8905]['push'](_0x24a1eb),_0x5c7543;},{});_0x24d317['plugins']['has']('ImageInsertUI')&&_0x24d317['commands']['get']('uploadcare')&&Object['entries'](_0x3f5c3d)['forEach'](([_0x1477aa,_0x4b6fec])=>{_0x24d317['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1477aa,'observable':()=>_0x2f788f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4b6fec),'formViewCreator':()=>this['_createDropdownButtons'](_0x4b6fec),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4b6fec),'override':'assetManager'!==_0x1477aa});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x856182){const {locale:_0x50bdc7}=this['editor'];return _0x856182['map'](_0x304305=>{const _0x40f8ba=_(_0x50bdc7,_0x304305,'Insert');switch(_0x304305){case o['Local']:return{'icon':_0x384eed,'type':o['Local'],..._0x40f8ba};case o['URL']:return{'icon':_0x4d4a27,'type':o['URL'],..._0x40f8ba};case o['Dropbox']:return{'icon':_0xe1bfca,'type':o['Dropbox'],..._0x40f8ba};case o['Facebook']:return{'icon':_0x350576,'type':o['Facebook'],..._0x40f8ba};case o['GDrive']:return{'icon':_0x38a55d,'type':o['GDrive'],..._0x40f8ba};case o['GPhotos']:return{'icon':_0x982ca5,'type':o['GPhotos'],..._0x40f8ba};case o['OneDrive']:return{'icon':_0x6f68c2,'type':o['OneDrive'],..._0x40f8ba};}});}['_getIntegrationKey'](_0x35ad7f){switch(_0x35ad7f){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x47f40e,_0x440744){const _0x3b3a8d=this['editor'],_0x21fb29=new _0x47f40e(_0x3b3a8d['locale']),_0xd80ee1=_0x3b3a8d['commands']['get']('uploadcare');return _0x21fb29['bind']('isEnabled')['to'](_0xd80ee1),_0x21fb29['on']('execute',()=>{_0xd80ee1['execute'](_0x440744);}),_0x21fb29;}['_createToolbarButton'](_0x73a0e7){const {locale:_0x266dbd}=this['editor'],_0x425ac8=this['editor']['plugins']['get']('ImageInsertUI'),_0x293bbf=_0x73a0e7[0x0],_0x32743b=this['_createButton'](_0x3ed062,_0x293bbf['type']);return _0x32743b['icon']=_0x293bbf['icon'],_0x32743b['bind']('label')['to'](_0x425ac8,'isImageSelected',_0x5c6685=>_(_0x266dbd,_0x293bbf['type'],_0x5c6685?'Replace':'Insert')['text']),_0x32743b['tooltip']=!0x0,_0x32743b;}['_createDropdownButtons'](_0x3a43fe){const {locale:_0x313ebb}=this['editor'],_0x4d009b=this['editor']['plugins']['get']('ImageInsertUI');return _0x3a43fe['map'](_0x36064f=>{const _0x15c5ac=this['_createButton'](_0x3ed062,_0x36064f['type']);return _0x15c5ac['withText']=!0x0,_0x15c5ac['icon']=_0x36064f['icon'],_0x15c5ac['bind']('label')['to'](_0x4d009b,'isImageSelected',_0xa618dd=>_(_0x313ebb,_0x36064f['type'],_0xa618dd?'Replace':'Insert')['text']),_0x15c5ac;});}['_createMenuBarButtons'](_0x57d86f){return _0x57d86f['map'](_0x42915f=>{const _0x440de4=this['_createButton'](_0x4a72d5,_0x42915f['type']);return _0x440de4['icon']=_0x42915f['icon'],_0x440de4['label']=_0x42915f['shortText'],_0x440de4;});}}class q extends _0x4d8b61{['focusTracker'];['focusCycler'];constructor(_0x57bf66){super(_0x57bf66),this['focusTracker']=new _0x398b94(),this['focusCycler']=new _0x19f36c({'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(_0x2dd4be){super(_0x2dd4be),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(_0x26e49c,_0x5ba0fa){const _0x3ae4f4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x290254=>_0x290254<=_0x5ba0fa)['map'](_0x610f35=>_0x26e49c['replace'](/\/$/,'')+'/-/resize/'+_0x610f35+'x/\x20'+_0x610f35+'w');return{'imageFallbackUrl':_0x26e49c,'imageSources':[{'srcset':_0x3ae4f4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5ba0fa+'px)\x20100vw,\x20'+_0x5ba0fa+'px','type':'image/webp'}]};}function A(_0x2a1f6a,_0x55b7e8,_0x3878f2){const _0xef39c7=_0x2a1f6a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xef39c7?parseInt(_0xef39c7[0x1],0xa):_0x55b7e8,'height':_0xef39c7?parseInt(_0xef39c7[0x2],0xa):_0x3878f2};}function m(_0x39efc4,_0x31f797){const _0x4400b6=Object['create'](_0x1716a1),_0x2fb03c=_0x39efc4['plugins']['get']('ImageUtils'),_0x37d69d=_0x39efc4['editing']['mapper']['toViewElement'](_0x31f797),_0x1a2608=_0x2fb03c['findViewImgElement'](_0x37d69d),_0x5bd5e1=_0x39efc4['editing']['view']['domConverter']['viewToDom'](_0x1a2608),_0x456193=_0x31f797['getAttribute']('width'),_0x1f0ff7=_0x31f797['getAttribute']('height'),_0x5bd535='image-processing';_0x39efc4['editing']['view']['change'](_0x502ea4=>{_0x502ea4['addClass'](_0x5bd535,_0x37d69d),_0x502ea4['setStyle']('aspect-ratio',_0x456193+'/'+_0x1f0ff7,_0x1a2608);}),_0x4400b6['listenTo'](_0x5bd5e1,'load',()=>{_0x4400b6['stopListening'](_0x5bd5e1,'load'),_0x39efc4['editing']['view']['change'](_0x373871=>{_0x373871['removeClass'](_0x5bd535,_0x37d69d),_0x373871['removeStyle']('aspect-ratio',_0x1a2608);});});}function V(_0x2065ed){if(Array['isArray'](_0x2065ed)){const _0x4c97ed=_0x2065ed['map'](V);return _0x4afcfe=>_0x4c97ed['some'](_0x2bbfd9=>_0x2bbfd9(_0x4afcfe));}if('origin'==_0x2065ed){const _0x11a43b=_0x14a388['window']['location']['origin'];return _0x412280=>new URL(_0x412280,_0x14a388['document']['baseURI'])['origin']==_0x11a43b;}return'function'==typeof _0x2065ed?_0x2065ed:_0x2065ed instanceof RegExp?_0x67cd35=>!(!_0x67cd35['match'](_0x2065ed)&&!_0x67cd35['replace'](/^https?:\/\//,'')['match'](_0x2065ed)):()=>!0x1;}function F(_0x45e27c,_0xdf425b){return _0x52e8f0(_0x45e27c['target'])['includes'](_0xdf425b);}class l extends/* #__PURE__ -- @preserve */
24
- _0x14aa6c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4601ee,_0x4e9580,_0x5e7703){super(),this['_editor']=_0x4601ee,this['_editing']=_0x4e9580,this['_dialog']=_0x4601ee['plugins']['get'](_0x5d37fd),this['_api']=_0x4e9580['ctxElement']['getAPI'](),this['_type']=_0x5e7703,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:_0x39653b,model:_0x259088}=this['_editor'],_0x2ab26f=_0x259088['document']['selection']['getSelectedElement'](),_0x560f82=_0x2ab26f&&(_0x2ab26f['is']('element','imageBlock')||_0x2ab26f['is']('element','imageInline'));this['_formView']=new S(_0x39653b),this['_dialog']['show']({'id':'uploadCare','icon':_0x384eed,'title':_(_0x39653b,this['_type'],_0x560f82?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x44ea18['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x49054f=>!F(_0x49054f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3bb983}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x218673=>{const _0x8111a7=_0x3bb983['length'];for(const _0x248877 of _0x3bb983){const _0x545fec=_0x248877===_0x3bb983[_0x8111a7-0x1],{cdnUrl:_0x166a27,fileInfo:_0x739d13}=_0x248877;if(!_0x166a27||!_0x739d13)continue;const {width:_0x449e2f,height:_0x15958a}=_0x739d13['imageInfo'],_0xf7f3e6=A(_0x166a27,_0x449e2f,_0x15958a),_0x3012d8=E(_0x166a27,_0xf7f3e6['width']),_0x39e017={'id':_0x739d13['uuid'],'type':'image','attributes':{'imageDimension':_0xf7f3e6,..._0x3012d8}};this['_insertAsset'](_0x39e017,_0x545fec,_0x218673);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3e55e1=>{'idle'===_0x3e55e1['detail']['status']&&!_0x3e55e1['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4cdcc0,_0x366e1c,_0x140585){const _0x72fbbc=this['_editor']['model']['document']['selection'],_0x46537a=_0x72fbbc['getSelectedElement'](),_0x24d77b=!(!_0x46537a||!_0x46537a['is']('element','imageInline'));_0x140585['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4cdcc0,_0x24d77b),_0x366e1c||_0x140585['setSelection'](_0x72fbbc['getLastPosition']());}['_insertImage'](_0x19ee53,_0x224556){const _0x490626=this['_editor'],{imageDimension:_0x5c8e97,imageFallbackUrl:_0x2a65c7,imageSources:_0x5a9487}=_0x19ee53['attributes'];_0x490626['execute']('insertImage',{'imageType':_0x224556?'imageInline':null,'source':{'uploadcareImageId':_0x19ee53['id'],'src':_0x2a65c7,'sources':_0x5a9487,..._0x5c8e97}});}}class n extends _0x336aec{['_editing'];['_controller']=null;static get['requires'](){return[_0x5d37fd,i];}constructor(_0x4488da){super(_0x4488da),this['_editing']=_0x4488da['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x314999){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x314999);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x28dc2b,publicKey:_0x202d51,signal:_0x3903fe,onProgress:_0x2346c5}){return _0x1b4860(_0x28dc2b,{'publicKey':_0x202d51,'store':'auto','signal':_0x3903fe,'onProgress':_0x2346c5});}static['getInfo'](_0x465740,_0xe4d3c8){return _0x5dc61c(_0x465740,_0xe4d3c8);}}class p extends _0xbc8058{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x521633,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4843c7=this['editor'];if(!!!_0x4843c7['config']['get']('uploadcare'))return;_0x4843c7['plugins']['get'](_0x521633)['createUploadAdapter']=_0x6af875=>new x(_0x6af875,_0x4843c7),_0x4843c7['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x19c662,{imageElement:_0x15cd44,data:_0x32e5cb})=>{_0x4843c7['model']['change'](_0x51f31b=>{_0x51f31b['setAttribute']('uploadcareImageId',_0x32e5cb['uploadcareImageId'],_0x15cd44);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x12e888,_0x592c51){this['loader']=_0x12e888,this['editor']=_0x592c51,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3ea0ac=this['editor']['config']['get']('uploadcare.pubkey'),_0x465a67=await this['loader']['file'];return C['upload']({'file':_0x465a67,'publicKey':_0x3ea0ac,'signal':this['controller']['signal'],'onProgress':_0x36e56c=>{_0x36e56c&&_0x36e56c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x36e56c['value']);}})['then'](async _0x2388e4=>{const {imageFallbackUrl:_0xafae94,imageSources:_0x1028bb}=E(_0x2388e4['cdnUrl'],_0x2388e4['imageInfo']['width']);return{'uploadcareImageId':_0x2388e4['uuid'],'default':_0xafae94,'sources':_0x1028bb};})['catch'](()=>{const _0x807c4a=t('Cannot\x20upload\x20file:')+('\x20'+_0x465a67['name']+'.');return Promise['reject'](_0x807c4a);});}['abort'](){this['controller']['abort']();}}class i extends _0xbc8058{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x5d37fd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x35d14e=this['editor'];_0x35d14e['commands']['add']('uploadcare',new n(_0x35d14e));}['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 _0x44edf9=_0x14a388['document']['querySelector']('input[uploadcare-file-input]');_0x44edf9&&_0x44edf9['remove']();}),async function(_0x1ada3b){const _0x3aa87e=_0x12d5e9([0x33,0x66,0x6f,0x4e,0x63,0x6d,0x5a,0x58,0x46,0x37,0x4f,0x64,0x76,0x42,0x31,0x34,0x4b,0x79,0x49,0x59,0x54,0x4d,0x75,0x67,0x30,0x4a,0x56,0x69,0x4c,0x55,0x72,0x6e,0x6c,0x44,0x70,0x52,0x6b,0x51,0x71,0x7a,0x45,0x73,0x41,0x78,0x6a,0x53,0x32,0x36,0x68,0x38,0x50,0x57,0x77,0x61,0x43,0x65,0x47,0x48,0x39,0x74,0x35,0x62]),_0x539cd5=0x3aa37f3f,_0x378506=0x3aa41eb7^_0x539cd5,_0x4e00a6=window[_0x12d5e9([0x44,0x61,0x74,0x65])][_0x12d5e9([0x6e,0x6f,0x77])](),_0x5491ac=_0x1ada3b[_0x12d5e9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59096c=new window[(_0x12d5e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ad71f=>{_0x5491ac[_0x12d5e9([0x6f,0x6e,0x63,0x65])](_0x12d5e9([0x72,0x65,0x61,0x64,0x79]),_0x1ad71f);}),_0x579549={[_0x12d5e9([0x6b,0x74,0x79])]:_0x12d5e9([0x45,0x43]),[_0x12d5e9([0x75,0x73,0x65])]:_0x12d5e9([0x73,0x69,0x67]),[_0x12d5e9([0x63,0x72,0x76])]:_0x12d5e9([0x50,0x2d,0x32,0x35,0x36]),[_0x12d5e9([0x78])]:_0x12d5e9([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]),[_0x12d5e9([0x79])]:_0x12d5e9([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]),[_0x12d5e9([0x61,0x6c,0x67])]:_0x12d5e9([0x45,0x53,0x32,0x35,0x36])},_0x550b89=_0x5491ac[_0x12d5e9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x12d5e9([0x67,0x65,0x74])](_0x12d5e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23b041(){let _0xb0157d,_0x48449b=null,_0x4bb0d0=null;try{if(_0x550b89==_0x12d5e9([0x47,0x50,0x4c]))return _0x12d5e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb0157d=_0x133c6b(),!_0xb0157d)return _0x12d5e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb0157d[_0x12d5e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4bb0d0=_0x4afef3(_0xb0157d[_0x12d5e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb0157d[_0x12d5e9([0x6a,0x74,0x69])])),await _0x38605d()?_0x4fa37a()?_0x25f816()?_0x12d5e9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x718f2b()?(_0xb0157d[_0x12d5e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12d5e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x48449b=_0x21cddd(_0x12d5e9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xb0157d[_0x12d5e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12d5e9([0x74,0x72,0x69,0x61,0x6c])&&(_0x48449b=_0x21cddd(_0x12d5e9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x454336()):_0x12d5e9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x12d5e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x12d5e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4306a9){return _0x12d5e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x25f816(){const _0x3913f2=[_0x12d5e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x12d5e9([0x74,0x72,0x69,0x61,0x6c])][_0x12d5e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb0157d[_0x12d5e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4e00a6/0x3e8:0xe10*_0x378506;return _0xb0157d[_0x12d5e9([0x65,0x78,0x70])]<_0x3913f2;}function _0x4fa37a(){const _0x947ef3=_0xb0157d[_0x12d5e9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x947ef3&&(!!_0x947ef3[_0x12d5e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d5e9([0x2a]))||!!_0x947ef3[_0x12d5e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d5e9([0x55,0x50,0x4c,0x43])));}function _0x718f2b(){const _0x468138=_0xb0157d[_0x12d5e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x468138||0x0==_0x468138[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e0268}=new URL(window[_0x12d5e9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x468138[_0x12d5e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e0268))return!0x0;const _0x4f6a82=_0x4e0268[_0x12d5e9([0x73,0x70,0x6c,0x69,0x74])](_0x12d5e9([0x2e]));return _0x468138[_0x12d5e9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e7589=>_0x1e7589[_0x12d5e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d5e9([0x2a])))[_0x12d5e9([0x6d,0x61,0x70])](_0x1f09b7=>_0x1f09b7[_0x12d5e9([0x73,0x70,0x6c,0x69,0x74])](_0x12d5e9([0x2e])))[_0x12d5e9([0x73,0x6f,0x6d,0x65])](_0x2c2fda=>_0x4f6a82[_0x12d5e9([0x65,0x76,0x65,0x72,0x79])]((_0x44a8d0,_0x128247)=>_0x2c2fda[_0x128247]===_0x44a8d0||_0x2c2fda[_0x128247]===_0x12d5e9([0x2a])));}function _0x454336(){return _0x48449b&&_0x4bb0d0?new window[(_0x12d5e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f731b,_0x243872)=>{_0x48449b[_0x12d5e9([0x74,0x68,0x65,0x6e])](_0x4f731b,_0x243872),_0x4bb0d0[_0x12d5e9([0x74,0x68,0x65,0x6e])](_0x16c43b=>{_0x16c43b!=_0x12d5e9([0x56,0x61,0x6c,0x69,0x64])&&_0x4f731b(_0x16c43b);},_0x243872);}):_0x48449b||_0x4bb0d0||_0x12d5e9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4afef3(_0x3e46ee,_0x4b59c6){return new window[(_0x12d5e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3af72d=>{if(_0x27067d())return _0x3af72d(_0x12d5e9([0x56,0x61,0x6c,0x69,0x64]));_0x15fb28(),_0x5491ac[_0x12d5e9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x12d5e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b6fb4=!0x1;const _0x5c4255=_0x1cf6da();function _0x29f69e(_0x584b35){return!!_0x584b35&&(typeof _0x584b35===_0x12d5e9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x584b35===_0x12d5e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x584b35[_0x12d5e9([0x74,0x68,0x65,0x6e])]===_0x12d5e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x584b35[_0x12d5e9([0x63,0x61,0x74,0x63,0x68])]===_0x12d5e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x383da6(_0x19280f){_0x3486e8(_0x19280f)[_0x12d5e9([0x74,0x68,0x65,0x6e])](_0x4e57ce=>{if(!_0x4e57ce||_0x4e57ce[_0x12d5e9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x12d5e9([0x6f,0x6b]))return _0x12d5e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e3698(_0xf03971(_0x5c4255+_0x4b59c6))!=_0x4e57ce[_0x12d5e9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x12d5e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x12d5e9([0x56,0x61,0x6c,0x69,0x64]);})[_0x12d5e9([0x74,0x68,0x65,0x6e])](_0x1c0550=>(_0x19bfa6(),_0x1c0550),()=>{const _0x2e995d=_0x1f2b72();return null==_0x2e995d?(_0x19bfa6(),_0x12d5e9([0x56,0x61,0x6c,0x69,0x64])):_0x12d5e9(_0x4e00a6-_0x2e995d>(0x1eaffb3f^_0x539cd5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x12d5e9([0x74,0x68,0x65,0x6e])](_0x3af72d)[_0x12d5e9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3af72d(_0x12d5e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5df0ce=0x3a9591bf^_0x539cd5;function _0x19bfa6(){const _0x590e33=_0x12d5e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e3698(_0xf03971(_0x3e46ee)),_0x6514cc=_0x5abf32(_0x4e3698(window[_0x12d5e9([0x4d,0x61,0x74,0x68])][_0x12d5e9([0x63,0x65,0x69,0x6c])](_0x4e00a6/_0x5df0ce)));window[_0x12d5e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12d5e9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x590e33,_0x6514cc);}function _0x1f2b72(){const _0x34fdb6=_0x12d5e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e3698(_0xf03971(_0x3e46ee)),_0x57fb38=window[_0x12d5e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12d5e9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34fdb6);return _0x57fb38?window[_0x12d5e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5abf32(_0x57fb38),0x10)*_0x5df0ce:null;}function _0x3486e8(_0x2fc78a){return new window[(_0x12d5e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xed26d0,_0x3929c1)=>{_0x2fc78a[_0x12d5e9([0x74,0x68,0x65,0x6e])](_0xed26d0,_0x3929c1),window[_0x12d5e9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3929c1,0x3aa2abff^_0x539cd5);});}}_0x5491ac[_0x12d5e9([0x6f,0x6e])](_0x12d5e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f6bea,_0x22697c)=>{if(_0x22697c[0x0]!=_0x3e46ee)return _0x3af72d(_0x12d5e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22697c[0x1]={..._0x22697c[0x1],[_0x12d5e9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c4255};},{[_0x12d5e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12d5e9([0x68,0x69,0x67,0x68])}),_0x5491ac[_0x12d5e9([0x6f,0x6e])](_0x12d5e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9e71ac=>{_0x29f69e(_0x9e71ac[_0x12d5e9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b6fb4=!0x0,_0x383da6(_0x9e71ac[_0x12d5e9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x12d5e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12d5e9([0x6c,0x6f,0x77])}),_0x59096c[_0x12d5e9([0x74,0x68,0x65,0x6e])](()=>{_0x5b6fb4||_0x3af72d(_0x12d5e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27067d(){return _0x5491ac[_0x12d5e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12d5e9([0x76,0x69,0x65,0x77])][_0x12d5e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x12d5e9([0x61,0x75,0x74,0x6f]);}function _0x15fb28(){_0x5491ac[_0x12d5e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12d5e9([0x76,0x69,0x65,0x77])][_0x12d5e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x12d5e9([0x61,0x75,0x74,0x6f]);}}function _0x21cddd(_0x167177){const _0x41a953=[new window[(_0x12d5e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c9f79=>setTimeout(_0x2c9f79,0x3aaa41f3^_0x539cd5)),_0x59096c[_0x12d5e9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x12d5e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x250fc3=>{let _0x25c00a=0x0;_0x5491ac[_0x12d5e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x12d5e9([0x6f,0x6e])](_0x12d5e9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1960a0,_0x1fe53f)=>{_0x1fe53f[0x0][_0x12d5e9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x25c00a++,_0x25c00a==(0x3aa37ec7^_0x539cd5)&&(_0x250fc3(),_0x1960a0[_0x12d5e9([0x6f,0x66,0x66])]());});}))];return window[_0x12d5e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x12d5e9([0x72,0x61,0x63,0x65])](_0x41a953)[_0x12d5e9([0x74,0x68,0x65,0x6e])](()=>_0x167177);}async function _0x5d7bb6(){await _0x59096c,_0x5491ac[_0x12d5e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x12d5e9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf3e5d5,_0x5491ac[_0x12d5e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x12d5e9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf3e5d5,_0x5491ac[_0x12d5e9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x12d5e9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x24bb28(_0x5c57f5){const _0xdbc579=_0x3ab636();_0x5491ac[_0xdbc579]=_0x12d5e9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c57f5,_0x5c57f5!=_0x12d5e9([0x56,0x61,0x6c,0x69,0x64])&&_0x5d7bb6();}function _0x3ab636(){const _0x2ffaa3=window[_0x12d5e9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x12d5e9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x12d5e9([0x6e,0x6f,0x77])]())[_0x12d5e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x12d5e9([0x2e]),'');let _0x4f3d5a=_0x12d5e9([0x66]);for(let _0x30ae56=0x0;_0x30ae56<_0x2ffaa3[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30ae56+=0x2){let _0x1324f7=window[_0x12d5e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ffaa3[_0x12d5e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30ae56,_0x30ae56+0x2));_0x1324f7>=_0x3aa87e[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1324f7-=_0x3aa87e[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f3d5a+=_0x3aa87e[_0x1324f7];}return _0x4f3d5a;}function _0x133c6b(){const _0x426895=_0x550b89[_0x12d5e9([0x73,0x70,0x6c,0x69,0x74])](_0x12d5e9([0x2e]));if(0x3!=_0x426895[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x298d6d(_0x426895[0x1]);function _0x298d6d(_0xd8f292){const _0x39a21f=_0x375871(_0xd8f292);return _0x39a21f&&_0x4b02f1()?_0x39a21f:null;function _0x4b02f1(){const _0x48a807=_0x39a21f[_0x12d5e9([0x6a,0x74,0x69])],_0x19d0bc=window[_0x12d5e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48a807[_0x12d5e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48a807[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x421143={..._0x39a21f,[_0x12d5e9([0x6a,0x74,0x69])]:_0x48a807[_0x12d5e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48a807[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x421143[_0x12d5e9([0x76,0x63])],_0xf03971(_0x421143)==_0x19d0bc;}}}async function _0x38605d(){let _0x495c9=!0x0;try{const _0x4e6936=_0x550b89[_0x12d5e9([0x73,0x70,0x6c,0x69,0x74])](_0x12d5e9([0x2e])),[_0x4ac5d6,_0x4e4269,_0x2a2f3e]=_0x4e6936;return _0x22bc4a(_0x4ac5d6),await _0xcc07c2(_0x4ac5d6,_0x4e4269,_0x2a2f3e),_0x495c9;}catch(_0x4b5c0d){return!0x1;}function _0x22bc4a(_0x8e961d){const _0x17ccbd=_0x375871(_0x8e961d);_0x17ccbd&&_0x17ccbd[_0x12d5e9([0x61,0x6c,0x67])]==_0x12d5e9([0x45,0x53,0x32,0x35,0x36])||(_0x495c9=!0x1);}async function _0xcc07c2(_0x37700d,_0x16e210,_0x2fcf3c){const _0x1eea0e=window[_0x12d5e9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x12d5e9([0x66,0x72,0x6f,0x6d])](_0x420486(_0x2fcf3c),_0x402b27=>_0x402b27[_0x12d5e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4899e8=new window[(_0x12d5e9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x12d5e9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x37700d+_0x12d5e9([0x2e])+_0x16e210),_0x27cf78=window[_0x12d5e9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x12d5e9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27cf78)return;const _0x5763fa=await _0x27cf78[_0x12d5e9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x12d5e9([0x6a,0x77,0x6b]),_0x579549,{[_0x12d5e9([0x6e,0x61,0x6d,0x65])]:_0x12d5e9([0x45,0x43,0x44,0x53,0x41]),[_0x12d5e9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x12d5e9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x12d5e9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27cf78[_0x12d5e9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x12d5e9([0x6e,0x61,0x6d,0x65])]:_0x12d5e9([0x45,0x43,0x44,0x53,0x41]),[_0x12d5e9([0x68,0x61,0x73,0x68])]:{[_0x12d5e9([0x6e,0x61,0x6d,0x65])]:_0x12d5e9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5763fa,_0x1eea0e,_0x4899e8)||(_0x495c9=!0x1);}}function _0x375871(_0x2f8ff9){return _0x2f8ff9[_0x12d5e9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x12d5e9([0x65,0x79]))?JSON[_0x12d5e9([0x70,0x61,0x72,0x73,0x65])](_0x420486(_0x2f8ff9)):null;}function _0x420486(_0x464296){return window[_0x12d5e9([0x61,0x74,0x6f,0x62])](_0x464296[_0x12d5e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x12d5e9([0x2b]))[_0x12d5e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x12d5e9([0x2f])));}function _0xf03971(_0x21e918){let _0x1c5e34=0x1505;function _0x3030af(_0x5a7322){for(let _0x579fc6=0x0;_0x579fc6<_0x5a7322[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x579fc6++){const _0x63ad08=_0x5a7322[_0x12d5e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x579fc6);_0x1c5e34=(_0x1c5e34<<0x5)+_0x1c5e34+_0x63ad08,_0x1c5e34&=_0x1c5e34;}}function _0x138c25(_0x3b4898){Array[_0x12d5e9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b4898)?_0x3b4898[_0x12d5e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x138c25):_0x3b4898&&typeof _0x3b4898==_0x12d5e9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x12d5e9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b4898)[_0x12d5e9([0x73,0x6f,0x72,0x74])]()[_0x12d5e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c4016,_0x38f51e])=>{_0x3030af(_0x5c4016),_0x138c25(_0x38f51e);}):_0x3030af(window[_0x12d5e9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b4898));}return _0x138c25(_0x21e918),_0x1c5e34>>>0x0;}function _0x4e3698(_0x5e6410){return _0x5e6410[_0x12d5e9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x12d5e9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x12d5e9([0x30]));}function _0x5abf32(_0x5da6e7){return _0x5da6e7[_0x12d5e9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x12d5e9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x12d5e9([0x6a,0x6f,0x69,0x6e])]('');}function _0xf3e5d5(){}function _0x12d5e9(_0x3c761d){return _0x3c761d['map'](_0x3c6642=>String['fromCharCode'](_0x3c6642))['join']('');}_0x24bb28(await _0x23b041());}(this);}['_initSchema'](){const _0x107171=this['editor']['model']['schema'];_0x107171['isRegistered']('imageBlock')&&_0x107171['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x107171['isRegistered']('imageInline')&&_0x107171['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x54658c=this['editor'];_0x54658c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x54658c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x89e6bf=>_0x89e6bf['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1351eb=_0x54658c['commands']['get']('replaceImageSource');_0x1351eb&&this['listenTo'](_0x1351eb,'cleanupImage',(_0x4c1fbe,[_0x38a181,_0x383928])=>{_0x38a181['removeAttribute']('uploadcareImageId',_0x383928);});}['_initConfig'](){const _0x53fc05=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5e7964=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x49f3d4(_0x14a388['document'],'uc-config',{..._0x53fc05,'pubkey':_0x5e7964,'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']=_0x117417=>{if('closeMax'==_0x117417)return'#uc-icon-arrow-down';},_0x14a388['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x49f3d4(_0x14a388['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x14a388['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2fd604=this['editor']['commands']['get']('insertImage');_0x2fd604&&this['listenTo'](_0x2fd604,'execute',()=>{const _0xa5288=this['editor']['model']['document']['selection']['getSelectedElement']();_0xa5288&&_0xa5288['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xa5288);});});const _0x3c8016=this['editor']['commands']['get']('uploadcareImageReplace');_0x3c8016&&this['listenTo'](_0x3c8016,'execute',()=>{const _0x5829e0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5829e0&&_0x5829e0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5829e0);});});}}class u extends _0xbc8058{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x26e14f){super(_0x26e14f),_0x26e14f['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0xb5e1a['defineComponents'](_0xb5e1a);}}class ta extends _0x4d8b61{constructor(_0x1c7d3b){super(_0x1c7d3b);const t=_0x1c7d3b['t'],_0x207641=this['bindTemplate'],_0x208fc3=new _0x5e160b();_0x208fc3['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':[_0x208fc3,{'text':_0x207641['to']('imageUploadProgress',_0x42390a=>t('Loading\x20image...')+'\x20('+(_0x42390a||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 _0x4d8b61{constructor(_0x5aaffe){super(_0x5aaffe);const t=_0x5aaffe['t'];this['set']('errorType',null);const _0x4facf2=new _0x3ed062(_0x5aaffe);_0x4facf2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4facf2['withText']=!0x0,_0x4facf2['class']='ck-button-action',_0x4facf2['on']('execute',()=>{this['fire']('retry');}),_0x4facf2['bind']('isVisible')['to'](this,'errorType',_0xcd4f0a=>'NotFound'!==_0xcd4f0a);const _0x4b1123=new at();_0x4b1123['content']=et,_0x4b1123['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x271699=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':[_0x4b1123,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x271699['to']('errorType',_0x11d27d=>t('NotFound'!==_0x11d27d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4facf2]},{'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 _0x4d8b61{constructor(_0x469bcc,_0x554219){super(_0x469bcc);const _0x4da80c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x554219,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4da80c['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2b32d1,_0x3731b4,_0x4174af){super(_0x2b32d1),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2b32d1),this['_errorView']=new rt(_0x2b32d1),this['_editingView']=new tt(_0x2b32d1,_0x4174af),this['_focusableView']=new _0x4d8b61(_0x2b32d1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3731b4),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'],_0x4f0929=>{this['_addUploadcareImageEditorListeners'](_0x4f0929);});}),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'](_0x28f40b,_0x1d908b){const _0xcdb28c='uc-cloud-image-editor',_0x1b9e19=_0x28f40b['querySelector'](_0xcdb28c);if(_0x1b9e19)return _0x1d908b(_0x1b9e19);const _0xa781e3=new MutationObserver(_0x5b247a=>{const _0x5ad1aa=_0x5b247a['filter'](_0x59b888=>_0x59b888['target']===_0x28f40b&&_0x59b888['addedNodes']['length']>0x0&&_0x59b888['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xcdb28c);_0x5ad1aa['length']&&(_0xa781e3['disconnect'](),_0x1d908b(_0x5ad1aa[0x0]['addedNodes'][0x0]));});_0xa781e3['observe'](_0x28f40b,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2c2552){_0x2c2552['addEventListener']('apply',_0x39919f=>{this['fire']('apply',{'imageSrc':_0x39919f['detail']['cdnUrl']});}),_0x2c2552['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x14aa6c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x52a459,_0x736e0a,_0x40eba1){super(),this['_editor']=_0x52a459,this['_dialog']=_0x736e0a,this['_imageElement']=_0x40eba1,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 _0x49344b=this['_imageElement'],_0x18945f=_0x49344b['getAttribute']('uploadcareImageId'),_0x9439ba=_0x49344b['getAttribute']('src');if(_0x18945f)await this['_loadImageInfo'](_0x18945f,_0x9439ba);else{if(this['_imageCache']['has'](_0x9439ba)){const _0x29065a=this['_imageCache']['get'](_0x9439ba);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x29065a['url'],this['imageDimension']=_0x29065a['dimension'],this['imageId']=_0x29065a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1958e2}=this['_editor'],t=_0x1958e2['t'],_0x625fde=new Z(_0x1958e2,this['imageStatus'],this['_attributes']);_0x625fde['bind']('status')['to'](this,'imageStatus'),_0x625fde['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x625fde['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x625fde['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x625fde,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x52835b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x625fde,'position':_0x44ea18['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x625fde['focus']();},'onHide':()=>{_0x625fde['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x500cad=>!F(_0x500cad,_0x625fde['element'])}});}['_loadImageInfo'](_0x21f014,_0x45c2cb){return C['getInfo'](_0x21f014,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x158a49=>{const {width:_0x58a43e,height:_0x102cc3}=_0x158a49['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x45c2cb,this['imageDimension']={'width':_0x58a43e,'height':_0x102cc3},this['imageId']=_0x21f014;})['catch'](_0x1a85e9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1a85e9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x47f362,_0x38271d){return this['_getImageAsFile'](_0x47f362)['then'](_0x4b5460=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x38271d['signal'],'file':_0x4b5460,'onProgress':_0x360958=>{_0x360958&&_0x360958['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x360958['value']));}}))['then'](_0x1b429d=>{const {width:_0x3bd1ae,height:_0x2c18ce}=_0x1b429d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b429d['cdnUrl'],this['imageDimension']={'width':_0x3bd1ae,'height':_0x2c18ce},this['imageId']=_0x1b429d['uuid'],this['imageUploadProgress']=null;const _0x3ea6ba=_0x47f362['getAttribute']('src');this['_imageCache']['set'](_0x3ea6ba,{'id':_0x1b429d['uuid'],'url':_0x1b429d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1708d7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1708d7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x538632,_0x5299a9){_0x538632['on']('apply',(_0x4f59ec,_0x371b57)=>{this['_replaceImage'](_0x5299a9,_0x371b57['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x538632['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x538632['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x6dcee1,_0x5c7276,_0x3065d0){const _0xec03d6=this['_editor'],{width:_0x26801c,height:_0x3b85fe}=A(_0x5c7276,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5e282b,imageSources:_0x4c60dd}=E(_0x5c7276,_0x26801c);_0xec03d6['model']['change'](_0x4b0f81=>{if('$graveyard'===_0x6dcee1['root']['rootName']){_0xec03d6['execute']('insertImage',{'imageType':_0x6dcee1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x6dcee1['getAttributes']()),'uploadcareImageId':_0x3065d0,'src':_0x5e282b,'sources':_0x4c60dd,'width':_0x26801c,'height':_0x3b85fe}});const _0x408050=_0x6dcee1['getChildren']();_0x6dcee1=_0xec03d6['model']['document']['selection']['getSelectedElement']();for(const _0x11c1c2 of _0x408050)_0x4b0f81['append'](_0x4b0f81['cloneElement'](_0x11c1c2),_0x6dcee1);}else _0x4b0f81['setSelection'](_0x6dcee1,'on'),_0xec03d6['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x6dcee1['getAttributes']()),'uploadcareImageId':_0x3065d0,'src':_0x5e282b,'sources':_0x4c60dd,'width':_0x26801c,'height':_0x3b85fe},_0x6dcee1);_0x4b0f81['setSelection'](_0x6dcee1,'on');});}async['_getImageAsFile'](_0x33b761){const _0x1c96ca=_0x14a388['window'],_0x40e52f=_0x14a388['document']['location']['href'],_0x3744f7=new _0x1c96ca['URL'](_0x33b761['getAttribute']('src'),_0x40e52f);if('data:'===_0x3744f7['protocol']){const _0x5c7a6b=_0x3744f7['href']['split'](','),_0x1c014e=_0x5c7a6b[0x0]['match'](/:(.*?);/)[0x1],_0x180d87=_0x1c014e['split']('/')[0x1],_0x14e9a9=_0x1c96ca['atob'](_0x5c7a6b[_0x5c7a6b['length']-0x1]);let _0x465b89=_0x14e9a9['length'];const _0xc5e6f3=new _0x1c96ca['Uint8Array'](_0x465b89);for(;_0x465b89--;)_0xc5e6f3[_0x465b89]=_0x14e9a9['charCodeAt'](_0x465b89);return new _0x1c96ca['File']([_0xc5e6f3],'image.'+_0x180d87,{'type':_0x1c014e});}const _0x14148d=_0x3744f7['href']['split']('/'),_0x425df0=_0x14148d[_0x14148d['length']-0x1],_0x471cdb=_0x425df0['split']('.')[0x1];return _0x1c96ca['fetch'](_0x3744f7['href'])['then'](_0x5c6657=>_0x5c6657['clone']()['blob']())['then'](_0x259b1a=>new _0x1c96ca['File']([_0x259b1a],_0x425df0,{'type':'image/'+_0x471cdb}));}}class J extends _0x336aec{['imageEditController'];static get['requires'](){return[_0x5d37fd];}['_isEditable'];constructor(_0x490f3f){super(_0x490f3f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5ddf9c){const _0xcd568a=V(_0x5ddf9c);return _0x558ce1=>!(!_0x558ce1||!_0x558ce1['is']('element','imageBlock')&&!_0x558ce1['is']('element','imageInline'))&&(!!_0x558ce1['hasAttribute']('uploadcareImageId')||!!_0x558ce1['hasAttribute']('src')&&_0xcd568a(_0x558ce1['getAttribute']('src')));}(_0x490f3f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5c1b5f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5c1b5f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x40a191=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40a191&&(_0x40a191['is']('element','imageBlock')||_0x40a191['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x5d37fd),_0x40a191),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x336aec{['refresh'](){const _0x5ca9f3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5ca9f3&&(_0x5ca9f3['is']('element','imageBlock')||_0x5ca9f3['is']('element','imageInline')));}['execute'](_0x5505fd){const _0x1404b6=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xf6e6ef=>{_0xf6e6ef['setAttributes'](_0x5505fd,_0x1404b6),_0xf6e6ef['removeAttribute']('srcset',_0x1404b6),_0xf6e6ef['removeAttribute']('sizes',_0x1404b6);});}}class g extends _0xbc8058{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x1260f9,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x434573}=this;_0x434573['commands']['add']('uploadcareImageEdit',new J(_0x434573)),_0x434573['commands']['add']('uploadcareImageReplace',new O(_0x434573));}}class j extends _0xbc8058{['_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 _0x323be3=this['editor'];_0x323be3['ui']['componentFactory']['add']('uploadcareImageEdit',_0x267085=>{const _0x31a842=_0x323be3['commands']['get']('uploadcareImageEdit'),_0x119b63=new _0x3ed062(_0x267085),t=_0x267085['t'];return _0x119b63['set']({'icon':_0x52835b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x119b63['bind']('isEnabled')['to'](_0x31a842),_0x119b63['bind']('isOn')['to'](_0x31a842,'isActive'),this['listenTo'](_0x119b63,'execute',()=>{_0x323be3['execute']('uploadcareImageEdit'),_0x323be3['editing']['view']['focus']();}),_0x119b63;}),this['_initConfig']();}['_initConfig'](){const _0x117374=_0x49f3d4(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x117374),this['listenTo'](this['editor'],'destroy',()=>{_0x117374['remove']();});}}class P extends _0xbc8058{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 _0x1c8349,Command as _0x1d5748}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4754e1,IconGooglePhotos as _0x52d266,IconGoogleDrive as _0x178a9d,IconFacebook as _0x1891dc,IconDropbox as _0xbeb995,IconUploadcareLink as _0x574608,IconUploadcareImageUpload as _0x268501,IconError as et,IconUploadcareImageEdit as _0x4c7786}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1ed948,MenuBarMenuListItemButtonView as _0x360186,View as _0x1a7173,FocusCycler as _0x301802,Dialog as _0x2aa253,DialogViewPosition as _0x4983e0,SpinnerView as _0x176cf2,IconView as at,Notification as _0x2c6589}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1628a0,DomEmitterMixin as _0x322624,global as _0x591ddd,getAncestors as _0x1b4c6b,ObservableMixin as _0x40b747,createElement as _0x322e8b,uid as _0x3adbbf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x153ead}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2e72a9,info as _0x36bdb5}from'@uploadcare/upload-client';import*as _0x249c4b from'@uploadcare/file-uploader';var o=function(_0x37f753){return _0x37f753['Local']='local',_0x37f753['URL']='url',_0x37f753['Dropbox']='dropbox',_0x37f753['GDrive']='gdrive',_0x37f753['Facebook']='facebook',_0x37f753['GPhotos']='gphotos',_0x37f753['OneDrive']='onedrive',_0x37f753;}({});function _(_0xaeea1f,_0x2e89c0,_0x2851eb){const t=_0xaeea1f['t'],_0x5270b8=_0xaeea1f['t'];switch(_0x2e89c0){case o['Local']:return{'text':_0x5270b8('Insert'===_0x2851eb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5270b8('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x2851eb?_0x5270b8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5270b8('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x2851eb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x2851eb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x2851eb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x2851eb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x2851eb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2e89c0;}}class e extends _0x1c8349{['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 _0xfa6b0f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b96cb;for(const _0x3a2acc in _0xfa6b0f){const _0x2acaad=_0x3a2acc,_0x10071b=_0xfa6b0f[_0x2acaad];if('uploadcareLicenseKeyValid'==_0x10071b||'uploadcareLicenseKeyInvalid'==_0x10071b||'uploadcareLicenseKeyExpired'==_0x10071b||'uploadcareLicenseKeyDomainLimit'==_0x10071b||'uploadcareLicenseKeyNotAllowed'==_0x10071b||'uploadcareLicenseKeyEvaluationLimit'==_0x10071b||'uploadcareLicenseKeyTrialLimit'==_0x10071b||'uploadcareLicenseKeyUsageLimit'==_0x10071b){delete _0xfa6b0f[_0x2acaad],_0x3b96cb=_0x10071b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3b96cb&&_0xfa6b0f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3b96cb&&_0xfa6b0f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3b96cb&&_0xfa6b0f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3b96cb&&_0xfa6b0f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3b96cb&&_0xfa6b0f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3b96cb&&_0xfa6b0f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3b96cb&&_0xfa6b0f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x463c1d}=this,_0x408edf=_0x463c1d['commands']['get']('uploadcare');if(!_0x408edf)return;const _0xdf900=this['_normalizeConfigSourceList'](_0x463c1d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x206491,_0x4d62da)=>{const _0x4e2ac8=this['_getIntegrationKey'](_0x4d62da['type']);return _0x206491[_0x4e2ac8]||(_0x206491[_0x4e2ac8]=[]),_0x206491[_0x4e2ac8]['push'](_0x4d62da),_0x206491;},{});_0x463c1d['plugins']['has']('ImageInsertUI')&&_0x463c1d['commands']['get']('uploadcare')&&Object['entries'](_0xdf900)['forEach'](([_0x500fc9,_0x48efb4])=>{_0x463c1d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x500fc9,'observable':()=>_0x408edf,'buttonViewCreator':()=>this['_createToolbarButton'](_0x48efb4),'formViewCreator':()=>this['_createDropdownButtons'](_0x48efb4),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x48efb4),'override':'assetManager'!==_0x500fc9});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xc32d46){const {locale:_0x1c5402}=this['editor'];return _0xc32d46['map'](_0x26faf9=>{const _0x216937=_(_0x1c5402,_0x26faf9,'Insert');switch(_0x26faf9){case o['Local']:return{'icon':_0x268501,'type':o['Local'],..._0x216937};case o['URL']:return{'icon':_0x574608,'type':o['URL'],..._0x216937};case o['Dropbox']:return{'icon':_0xbeb995,'type':o['Dropbox'],..._0x216937};case o['Facebook']:return{'icon':_0x1891dc,'type':o['Facebook'],..._0x216937};case o['GDrive']:return{'icon':_0x178a9d,'type':o['GDrive'],..._0x216937};case o['GPhotos']:return{'icon':_0x52d266,'type':o['GPhotos'],..._0x216937};case o['OneDrive']:return{'icon':_0x4754e1,'type':o['OneDrive'],..._0x216937};}});}['_getIntegrationKey'](_0x14f7bd){switch(_0x14f7bd){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x18e029,_0x57fc7f){const _0x50e864=this['editor'],_0x45cf6b=new _0x18e029(_0x50e864['locale']),_0xd7c99=_0x50e864['commands']['get']('uploadcare');return _0x45cf6b['bind']('isEnabled')['to'](_0xd7c99),_0x45cf6b['on']('execute',()=>{_0xd7c99['execute'](_0x57fc7f);}),_0x45cf6b;}['_createToolbarButton'](_0x43598e){const {locale:_0x136269}=this['editor'],_0x5ad02e=this['editor']['plugins']['get']('ImageInsertUI'),_0x2918d3=_0x43598e[0x0],_0x4fd153=this['_createButton'](_0x1ed948,_0x2918d3['type']);return _0x4fd153['icon']=_0x2918d3['icon'],_0x4fd153['bind']('label')['to'](_0x5ad02e,'isImageSelected',_0x1a3873=>_(_0x136269,_0x2918d3['type'],_0x1a3873?'Replace':'Insert')['text']),_0x4fd153['tooltip']=!0x0,_0x4fd153;}['_createDropdownButtons'](_0x551fe5){const {locale:_0x27306d}=this['editor'],_0x23ad67=this['editor']['plugins']['get']('ImageInsertUI');return _0x551fe5['map'](_0x415660=>{const _0x773a09=this['_createButton'](_0x1ed948,_0x415660['type']);return _0x773a09['withText']=!0x0,_0x773a09['icon']=_0x415660['icon'],_0x773a09['bind']('label')['to'](_0x23ad67,'isImageSelected',_0x170e85=>_(_0x27306d,_0x415660['type'],_0x170e85?'Replace':'Insert')['text']),_0x773a09;});}['_createMenuBarButtons'](_0x252049){return _0x252049['map'](_0x868527=>{const _0x47b7a4=this['_createButton'](_0x360186,_0x868527['type']);return _0x47b7a4['icon']=_0x868527['icon'],_0x47b7a4['label']=_0x868527['shortText'],_0x47b7a4;});}}class q extends _0x1a7173{['focusTracker'];['focusCycler'];constructor(_0x4668bb){super(_0x4668bb),this['focusTracker']=new _0x1628a0(),this['focusCycler']=new _0x301802({'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(_0x1f2945){super(_0x1f2945),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(_0x3f1c4d,_0x178c82){const _0x203dfc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x189fbc=>_0x189fbc<=_0x178c82)['map'](_0xa6c45b=>_0x3f1c4d['replace'](/\/$/,'')+'/-/resize/'+_0xa6c45b+'x/\x20'+_0xa6c45b+'w');return{'imageFallbackUrl':_0x3f1c4d,'imageSources':[{'srcset':_0x203dfc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x178c82+'px)\x20100vw,\x20'+_0x178c82+'px','type':'image/webp'}]};}function A(_0x3de0e4,_0x5211ec,_0x18dc78){const _0x1047ce=_0x3de0e4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1047ce?parseInt(_0x1047ce[0x1],0xa):_0x5211ec,'height':_0x1047ce?parseInt(_0x1047ce[0x2],0xa):_0x18dc78};}function m(_0x99c817,_0x2c79c0){const _0x158bb1=Object['create'](_0x322624),_0xe8266a=_0x99c817['plugins']['get']('ImageUtils'),_0x34b025=_0x99c817['editing']['mapper']['toViewElement'](_0x2c79c0),_0x40cab6=_0xe8266a['findViewImgElement'](_0x34b025),_0x90fe5c=_0x99c817['editing']['view']['domConverter']['viewToDom'](_0x40cab6),_0x66dee5=_0x2c79c0['getAttribute']('width'),_0x116fca=_0x2c79c0['getAttribute']('height'),_0x2e455e='image-processing';_0x99c817['editing']['view']['change'](_0x33f66c=>{_0x33f66c['addClass'](_0x2e455e,_0x34b025),_0x33f66c['setStyle']('aspect-ratio',_0x66dee5+'/'+_0x116fca,_0x40cab6);}),_0x158bb1['listenTo'](_0x90fe5c,'load',()=>{_0x158bb1['stopListening'](_0x90fe5c,'load'),_0x99c817['editing']['view']['change'](_0x15b2b6=>{_0x15b2b6['removeClass'](_0x2e455e,_0x34b025),_0x15b2b6['removeStyle']('aspect-ratio',_0x40cab6);});});}function V(_0x583e87){if(Array['isArray'](_0x583e87)){const _0x49c9df=_0x583e87['map'](V);return _0x5e798c=>_0x49c9df['some'](_0x1484e4=>_0x1484e4(_0x5e798c));}if('origin'==_0x583e87){const _0x2abca6=_0x591ddd['window']['location']['origin'];return _0x2223b3=>new URL(_0x2223b3,_0x591ddd['document']['baseURI'])['origin']==_0x2abca6;}return'function'==typeof _0x583e87?_0x583e87:_0x583e87 instanceof RegExp?_0x22c994=>!(!_0x22c994['match'](_0x583e87)&&!_0x22c994['replace'](/^https?:\/\//,'')['match'](_0x583e87)):()=>!0x1;}function F(_0x4a5bf5,_0x35f64b){return _0x1b4c6b(_0x4a5bf5['target'])['includes'](_0x35f64b);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x40b747(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x44d3ad,_0x3d4659,_0x38d826){super(),this['_editor']=_0x44d3ad,this['_editing']=_0x3d4659,this['_dialog']=_0x44d3ad['plugins']['get'](_0x2aa253),this['_api']=_0x3d4659['ctxElement']['getAPI'](),this['_type']=_0x38d826,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:_0x4bf0d7,model:_0x133c80}=this['_editor'],_0x3f2fe0=_0x133c80['document']['selection']['getSelectedElement'](),_0x3c1377=_0x3f2fe0&&(_0x3f2fe0['is']('element','imageBlock')||_0x3f2fe0['is']('element','imageInline'));this['_formView']=new S(_0x4bf0d7),this['_dialog']['show']({'id':'uploadCare','icon':_0x268501,'title':_(_0x4bf0d7,this['_type'],_0x3c1377?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4983e0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x445cd1=>!F(_0x445cd1,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4b8727}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4e0df2=>{const _0x5f3d23=_0x4b8727['length'];for(const _0x3f09fa of _0x4b8727){const _0x5177df=_0x3f09fa===_0x4b8727[_0x5f3d23-0x1],{cdnUrl:_0x226b1d,fileInfo:_0x5a6573}=_0x3f09fa;if(!_0x226b1d||!_0x5a6573)continue;const {width:_0x4c1b40,height:_0x371223}=_0x5a6573['imageInfo'],_0x4a4814=A(_0x226b1d,_0x4c1b40,_0x371223),_0x312793=E(_0x226b1d,_0x4a4814['width']),_0x12a15={'id':_0x5a6573['uuid'],'type':'image','attributes':{'imageDimension':_0x4a4814,..._0x312793}};this['_insertAsset'](_0x12a15,_0x5177df,_0x4e0df2);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x35b47e=>{'idle'===_0x35b47e['detail']['status']&&!_0x35b47e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x482946,_0x14ce2d,_0x125bf2){const _0x5754f=this['_editor']['model']['document']['selection'],_0x4fc547=_0x5754f['getSelectedElement'](),_0x5c7e17=!(!_0x4fc547||!_0x4fc547['is']('element','imageInline'));_0x125bf2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x482946,_0x5c7e17),_0x14ce2d||_0x125bf2['setSelection'](_0x5754f['getLastPosition']());}['_insertImage'](_0x59f2c3,_0x2498a5){const _0x459a80=this['_editor'],{imageDimension:_0x48a4ac,imageFallbackUrl:_0x40af36,imageSources:_0x5d4b88}=_0x59f2c3['attributes'];_0x459a80['execute']('insertImage',{'imageType':_0x2498a5?'imageInline':null,'source':{'uploadcareImageId':_0x59f2c3['id'],'src':_0x40af36,'sources':_0x5d4b88,..._0x48a4ac}});}}class n extends _0x1d5748{['_editing'];['_controller']=null;static get['requires'](){return[_0x2aa253,i];}constructor(_0x500fb3){super(_0x500fb3),this['_editing']=_0x500fb3['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2d0b63){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2d0b63);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1b07b0,publicKey:_0x2b3ebc,signal:_0x482dd7,onProgress:_0x1e81fd}){return _0x2e72a9(_0x1b07b0,{'publicKey':_0x2b3ebc,'store':'auto','signal':_0x482dd7,'onProgress':_0x1e81fd});}static['getInfo'](_0x4de38d,_0x7a95d1){return _0x36bdb5(_0x4de38d,_0x7a95d1);}}class p extends _0x1c8349{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x153ead,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3a4935=this['editor'];if(!!!_0x3a4935['config']['get']('uploadcare'))return;_0x3a4935['plugins']['get'](_0x153ead)['createUploadAdapter']=_0x1fa182=>new x(_0x1fa182,_0x3a4935),_0x3a4935['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x391f53,{imageElement:_0x49687d,data:_0xe5edcc})=>{_0x3a4935['model']['change'](_0x48da5b=>{_0x48da5b['setAttribute']('uploadcareImageId',_0xe5edcc['uploadcareImageId'],_0x49687d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4c2a67,_0x407794){this['loader']=_0x4c2a67,this['editor']=_0x407794,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x278789=this['editor']['config']['get']('uploadcare.pubkey'),_0x411614=await this['loader']['file'];return C['upload']({'file':_0x411614,'publicKey':_0x278789,'signal':this['controller']['signal'],'onProgress':_0x5863c6=>{_0x5863c6&&_0x5863c6['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5863c6['value']);}})['then'](async _0x25ec0e=>{const {imageFallbackUrl:_0x3a2f27,imageSources:_0x55883f}=E(_0x25ec0e['cdnUrl'],_0x25ec0e['imageInfo']['width']);return{'uploadcareImageId':_0x25ec0e['uuid'],'default':_0x3a2f27,'sources':_0x55883f};})['catch'](()=>{const _0x8715a5=t('Cannot\x20upload\x20file:')+('\x20'+_0x411614['name']+'.');return Promise['reject'](_0x8715a5);});}['abort'](){this['controller']['abort']();}}class i extends _0x1c8349{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x2aa253];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2724a7=this['editor'];_0x2724a7['commands']['add']('uploadcare',new n(_0x2724a7));}['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 _0x4a3655=_0x591ddd['document']['querySelector']('input[uploadcare-file-input]');_0x4a3655&&_0x4a3655['remove']();}),async function(_0xcb3f6b){const _0x130f88=_0x43f978([0x39,0x76,0x63,0x4f,0x69,0x71,0x66,0x7a,0x41,0x52,0x62,0x58,0x74,0x4a,0x33,0x78,0x4c,0x45,0x55,0x67,0x50,0x75,0x6f,0x43,0x44,0x57,0x73,0x31,0x77,0x6d,0x30,0x51,0x4e,0x56,0x54,0x79,0x49,0x4b,0x35,0x70,0x37,0x38,0x53,0x6c,0x65,0x59,0x6e,0x61,0x36,0x72,0x5a,0x6b,0x47,0x64,0x6a,0x34,0x42,0x46,0x32,0x4d,0x48,0x68]),_0xc81876=0x4013f54c,_0xa4de59=0x401494ec^_0xc81876,_0x282967=window[_0x43f978([0x44,0x61,0x74,0x65])][_0x43f978([0x6e,0x6f,0x77])](),_0x2147ca=_0xcb3f6b[_0x43f978([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a8c43=new window[(_0x43f978([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51d2d2=>{_0x2147ca[_0x43f978([0x6f,0x6e,0x63,0x65])](_0x43f978([0x72,0x65,0x61,0x64,0x79]),_0x51d2d2);}),_0x763ec2={[_0x43f978([0x6b,0x74,0x79])]:_0x43f978([0x45,0x43]),[_0x43f978([0x75,0x73,0x65])]:_0x43f978([0x73,0x69,0x67]),[_0x43f978([0x63,0x72,0x76])]:_0x43f978([0x50,0x2d,0x32,0x35,0x36]),[_0x43f978([0x78])]:_0x43f978([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]),[_0x43f978([0x79])]:_0x43f978([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]),[_0x43f978([0x61,0x6c,0x67])]:_0x43f978([0x45,0x53,0x32,0x35,0x36])},_0x259c75=_0x2147ca[_0x43f978([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43f978([0x67,0x65,0x74])](_0x43f978([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x903bf8(){let _0x51441c,_0x32fa4a=null,_0x2f09af=null;try{if(_0x259c75==_0x43f978([0x47,0x50,0x4c]))return _0x43f978([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51441c=_0x125525(),!_0x51441c)return _0x43f978([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51441c[_0x43f978([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f09af=_0x28416e(_0x51441c[_0x43f978([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51441c[_0x43f978([0x6a,0x74,0x69])])),await _0x474533()?_0x20453b()?_0x50eb69()?_0x43f978([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x10f5ff()?(_0x51441c[_0x43f978([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43f978([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32fa4a=_0x2e68c3(_0x43f978([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51441c[_0x43f978([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43f978([0x74,0x72,0x69,0x61,0x6c])&&(_0x32fa4a=_0x2e68c3(_0x43f978([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5da541()):_0x43f978([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43f978([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43f978([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x382316){return _0x43f978([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50eb69(){const _0xa2e3c2=[_0x43f978([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43f978([0x74,0x72,0x69,0x61,0x6c])][_0x43f978([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51441c[_0x43f978([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x282967/0x3e8:0xe10*_0xa4de59;return _0x51441c[_0x43f978([0x65,0x78,0x70])]<_0xa2e3c2;}function _0x20453b(){const _0x2104e3=_0x51441c[_0x43f978([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2104e3&&(!!_0x2104e3[_0x43f978([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f978([0x2a]))||!!_0x2104e3[_0x43f978([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f978([0x55,0x50,0x4c,0x43])));}function _0x10f5ff(){const _0x2e6398=_0x51441c[_0x43f978([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e6398||0x0==_0x2e6398[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d01ff}=new URL(window[_0x43f978([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2e6398[_0x43f978([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d01ff))return!0x0;const _0x46e4b2=_0x1d01ff[_0x43f978([0x73,0x70,0x6c,0x69,0x74])](_0x43f978([0x2e]));return _0x2e6398[_0x43f978([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43329d=>_0x43329d[_0x43f978([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f978([0x2a])))[_0x43f978([0x6d,0x61,0x70])](_0x2979da=>_0x2979da[_0x43f978([0x73,0x70,0x6c,0x69,0x74])](_0x43f978([0x2e])))[_0x43f978([0x73,0x6f,0x6d,0x65])](_0x54f2d1=>_0x46e4b2[_0x43f978([0x65,0x76,0x65,0x72,0x79])]((_0x584879,_0x40ff0a)=>_0x54f2d1[_0x40ff0a]===_0x584879||_0x54f2d1[_0x40ff0a]===_0x43f978([0x2a])));}function _0x5da541(){return _0x32fa4a&&_0x2f09af?new window[(_0x43f978([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x414542,_0x1069f5)=>{_0x32fa4a[_0x43f978([0x74,0x68,0x65,0x6e])](_0x414542,_0x1069f5),_0x2f09af[_0x43f978([0x74,0x68,0x65,0x6e])](_0x2ab997=>{_0x2ab997!=_0x43f978([0x56,0x61,0x6c,0x69,0x64])&&_0x414542(_0x2ab997);},_0x1069f5);}):_0x32fa4a||_0x2f09af||_0x43f978([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28416e(_0x59bfca,_0x5e8af2){return new window[(_0x43f978([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cd914=>{if(_0x10acd6())return _0x4cd914(_0x43f978([0x56,0x61,0x6c,0x69,0x64]));_0x4d6945(),_0x2147ca[_0x43f978([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43f978([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d01dc=!0x1;const _0x584ce4=_0x3adbbf();function _0x5746ec(_0x5bfda7){return!!_0x5bfda7&&(typeof _0x5bfda7===_0x43f978([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5bfda7===_0x43f978([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5bfda7[_0x43f978([0x74,0x68,0x65,0x6e])]===_0x43f978([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5bfda7[_0x43f978([0x63,0x61,0x74,0x63,0x68])]===_0x43f978([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d2bba(_0x5dbeeb){_0x556911(_0x5dbeeb)[_0x43f978([0x74,0x68,0x65,0x6e])](_0x5b4755=>{if(!_0x5b4755||_0x5b4755[_0x43f978([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43f978([0x6f,0x6b]))return _0x43f978([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29ac85(_0x3e9349(_0x584ce4+_0x5e8af2))!=_0x5b4755[_0x43f978([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43f978([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43f978([0x56,0x61,0x6c,0x69,0x64]);})[_0x43f978([0x74,0x68,0x65,0x6e])](_0x4ae8e2=>(_0x1c4c90(),_0x4ae8e2),()=>{const _0x2a6a72=_0x3aa89c();return null==_0x2a6a72?(_0x1c4c90(),_0x43f978([0x56,0x61,0x6c,0x69,0x64])):_0x43f978(_0x282967-_0x2a6a72>(0x641f714c^_0xc81876)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43f978([0x74,0x68,0x65,0x6e])](_0x4cd914)[_0x43f978([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cd914(_0x43f978([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3321e8=0x40251bcc^_0xc81876;function _0x1c4c90(){const _0x42a0a6=_0x43f978([0x6c,0x6c,0x63,0x74,0x2d])+_0x29ac85(_0x3e9349(_0x59bfca)),_0x5792de=_0x5985f8(_0x29ac85(window[_0x43f978([0x4d,0x61,0x74,0x68])][_0x43f978([0x63,0x65,0x69,0x6c])](_0x282967/_0x3321e8)));window[_0x43f978([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43f978([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42a0a6,_0x5792de);}function _0x3aa89c(){const _0xb32883=_0x43f978([0x6c,0x6c,0x63,0x74,0x2d])+_0x29ac85(_0x3e9349(_0x59bfca)),_0x6e87a8=window[_0x43f978([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43f978([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb32883);return _0x6e87a8?window[_0x43f978([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5985f8(_0x6e87a8),0x10)*_0x3321e8:null;}function _0x556911(_0x4a9e55){return new window[(_0x43f978([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26efbf,_0x6eb864)=>{_0x4a9e55[_0x43f978([0x74,0x68,0x65,0x6e])](_0x26efbf,_0x6eb864),window[_0x43f978([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6eb864,0x4012218c^_0xc81876);});}}_0x2147ca[_0x43f978([0x6f,0x6e])](_0x43f978([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d5a3a,_0x238229)=>{if(_0x238229[0x0]!=_0x59bfca)return _0x4cd914(_0x43f978([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x238229[0x1]={..._0x238229[0x1],[_0x43f978([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x584ce4};},{[_0x43f978([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43f978([0x68,0x69,0x67,0x68])}),_0x2147ca[_0x43f978([0x6f,0x6e])](_0x43f978([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x24580f=>{_0x5746ec(_0x24580f[_0x43f978([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d01dc=!0x0,_0x3d2bba(_0x24580f[_0x43f978([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43f978([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43f978([0x6c,0x6f,0x77])}),_0x1a8c43[_0x43f978([0x74,0x68,0x65,0x6e])](()=>{_0x4d01dc||_0x4cd914(_0x43f978([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10acd6(){return _0x2147ca[_0x43f978([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43f978([0x76,0x69,0x65,0x77])][_0x43f978([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43f978([0x61,0x75,0x74,0x6f]);}function _0x4d6945(){_0x2147ca[_0x43f978([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43f978([0x76,0x69,0x65,0x77])][_0x43f978([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43f978([0x61,0x75,0x74,0x6f]);}}function _0x2e68c3(_0x1aa4a9){const _0x1a7a79=[new window[(_0x43f978([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f7732=>setTimeout(_0x4f7732,0x401acb80^_0xc81876)),_0x1a8c43[_0x43f978([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43f978([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f0cee=>{let _0x20acd4=0x0;_0x2147ca[_0x43f978([0x6d,0x6f,0x64,0x65,0x6c])][_0x43f978([0x6f,0x6e])](_0x43f978([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x36a049,_0x52cbd1)=>{_0x52cbd1[0x0][_0x43f978([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x20acd4++,_0x20acd4==(0x4013f4b4^_0xc81876)&&(_0x2f0cee(),_0x36a049[_0x43f978([0x6f,0x66,0x66])]());});}))];return window[_0x43f978([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43f978([0x72,0x61,0x63,0x65])](_0x1a7a79)[_0x43f978([0x74,0x68,0x65,0x6e])](()=>_0x1aa4a9);}async function _0x50ce9a(){await _0x1a8c43,_0x2147ca[_0x43f978([0x6d,0x6f,0x64,0x65,0x6c])][_0x43f978([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x57ed87,_0x2147ca[_0x43f978([0x6d,0x6f,0x64,0x65,0x6c])][_0x43f978([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x57ed87,_0x2147ca[_0x43f978([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43f978([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3cc1ae(_0x6f33d){const _0x91e84=_0x1398d1();_0x2147ca[_0x91e84]=_0x43f978([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6f33d,_0x6f33d!=_0x43f978([0x56,0x61,0x6c,0x69,0x64])&&_0x50ce9a();}function _0x1398d1(){const _0x209c6b=window[_0x43f978([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43f978([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43f978([0x6e,0x6f,0x77])]())[_0x43f978([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43f978([0x2e]),'');let _0x40f2ed=_0x43f978([0x76]);for(let _0x5b5648=0x0;_0x5b5648<_0x209c6b[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b5648+=0x2){let _0x409f31=window[_0x43f978([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x209c6b[_0x43f978([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b5648,_0x5b5648+0x2));_0x409f31>=_0x130f88[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x409f31-=_0x130f88[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x40f2ed+=_0x130f88[_0x409f31];}return _0x40f2ed;}function _0x125525(){const _0x56b097=_0x259c75[_0x43f978([0x73,0x70,0x6c,0x69,0x74])](_0x43f978([0x2e]));if(0x3!=_0x56b097[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5f040d(_0x56b097[0x1]);function _0x5f040d(_0x8970f7){const _0x5cd7ba=_0x56a384(_0x8970f7);return _0x5cd7ba&&_0x29b4ad()?_0x5cd7ba:null;function _0x29b4ad(){const _0x3f747b=_0x5cd7ba[_0x43f978([0x6a,0x74,0x69])],_0x2ae320=window[_0x43f978([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f747b[_0x43f978([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f747b[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x130b75={..._0x5cd7ba,[_0x43f978([0x6a,0x74,0x69])]:_0x3f747b[_0x43f978([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f747b[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x130b75[_0x43f978([0x76,0x63])],_0x3e9349(_0x130b75)==_0x2ae320;}}}async function _0x474533(){let _0x2d1472=!0x0;try{const _0x5e3651=_0x259c75[_0x43f978([0x73,0x70,0x6c,0x69,0x74])](_0x43f978([0x2e])),[_0x2cfd82,_0x48cae5,_0x386ba5]=_0x5e3651;return _0x2ff598(_0x2cfd82),await _0x24aee7(_0x2cfd82,_0x48cae5,_0x386ba5),_0x2d1472;}catch(_0x53e779){return!0x1;}function _0x2ff598(_0x584df6){const _0x2d0d60=_0x56a384(_0x584df6);_0x2d0d60&&_0x2d0d60[_0x43f978([0x61,0x6c,0x67])]==_0x43f978([0x45,0x53,0x32,0x35,0x36])||(_0x2d1472=!0x1);}async function _0x24aee7(_0x2b94d0,_0x5f35af,_0x2960c5){const _0x225660=window[_0x43f978([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43f978([0x66,0x72,0x6f,0x6d])](_0x5da824(_0x2960c5),_0xd2895b=>_0xd2895b[_0x43f978([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b2379=new window[(_0x43f978([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43f978([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b94d0+_0x43f978([0x2e])+_0x5f35af),_0x15dad8=window[_0x43f978([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43f978([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15dad8)return;const _0x4a4c8e=await _0x15dad8[_0x43f978([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43f978([0x6a,0x77,0x6b]),_0x763ec2,{[_0x43f978([0x6e,0x61,0x6d,0x65])]:_0x43f978([0x45,0x43,0x44,0x53,0x41]),[_0x43f978([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43f978([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43f978([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15dad8[_0x43f978([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43f978([0x6e,0x61,0x6d,0x65])]:_0x43f978([0x45,0x43,0x44,0x53,0x41]),[_0x43f978([0x68,0x61,0x73,0x68])]:{[_0x43f978([0x6e,0x61,0x6d,0x65])]:_0x43f978([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a4c8e,_0x225660,_0x5b2379)||(_0x2d1472=!0x1);}}function _0x56a384(_0x2f690d){return _0x2f690d[_0x43f978([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43f978([0x65,0x79]))?JSON[_0x43f978([0x70,0x61,0x72,0x73,0x65])](_0x5da824(_0x2f690d)):null;}function _0x5da824(_0x18151f){return window[_0x43f978([0x61,0x74,0x6f,0x62])](_0x18151f[_0x43f978([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43f978([0x2b]))[_0x43f978([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43f978([0x2f])));}function _0x3e9349(_0x5ec202){let _0xf19bfb=0x1505;function _0x36502c(_0xd02ad4){for(let _0x50a39f=0x0;_0x50a39f<_0xd02ad4[_0x43f978([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50a39f++){const _0x25f43d=_0xd02ad4[_0x43f978([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x50a39f);_0xf19bfb=(_0xf19bfb<<0x5)+_0xf19bfb+_0x25f43d,_0xf19bfb&=_0xf19bfb;}}function _0x301052(_0x3a6493){Array[_0x43f978([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a6493)?_0x3a6493[_0x43f978([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x301052):_0x3a6493&&typeof _0x3a6493==_0x43f978([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43f978([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a6493)[_0x43f978([0x73,0x6f,0x72,0x74])]()[_0x43f978([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49ca23,_0x1eb0d8])=>{_0x36502c(_0x49ca23),_0x301052(_0x1eb0d8);}):_0x36502c(window[_0x43f978([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a6493));}return _0x301052(_0x5ec202),_0xf19bfb>>>0x0;}function _0x29ac85(_0x580c11){return _0x580c11[_0x43f978([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43f978([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43f978([0x30]));}function _0x5985f8(_0x201098){return _0x201098[_0x43f978([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43f978([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43f978([0x6a,0x6f,0x69,0x6e])]('');}function _0x57ed87(){}function _0x43f978(_0x32aaaa){return _0x32aaaa['map'](_0x258d4f=>String['fromCharCode'](_0x258d4f))['join']('');}_0x3cc1ae(await _0x903bf8());}(this);}['_initSchema'](){const _0x4bddfa=this['editor']['model']['schema'];_0x4bddfa['isRegistered']('imageBlock')&&_0x4bddfa['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4bddfa['isRegistered']('imageInline')&&_0x4bddfa['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x481215=this['editor'];_0x481215['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x481215['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3a210c=>_0x3a210c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x51515e=_0x481215['commands']['get']('replaceImageSource');_0x51515e&&this['listenTo'](_0x51515e,'cleanupImage',(_0x4c8d09,[_0x133265,_0x14d7d2])=>{_0x133265['removeAttribute']('uploadcareImageId',_0x14d7d2);});}['_initConfig'](){const _0x496aea=this['editor']['config']['get']('uploadcare.uploader')||{},_0x59a191=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x322e8b(_0x591ddd['document'],'uc-config',{..._0x496aea,'pubkey':_0x59a191,'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']=_0x14795a=>{if('closeMax'==_0x14795a)return'#uc-icon-arrow-down';},_0x591ddd['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x322e8b(_0x591ddd['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x591ddd['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x519ebf=this['editor']['commands']['get']('insertImage');_0x519ebf&&this['listenTo'](_0x519ebf,'execute',()=>{const _0x309a4f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x309a4f&&_0x309a4f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x309a4f);});});const _0x1b20ed=this['editor']['commands']['get']('uploadcareImageReplace');_0x1b20ed&&this['listenTo'](_0x1b20ed,'execute',()=>{const _0x917ca6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x917ca6&&_0x917ca6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x917ca6);});});}}class u extends _0x1c8349{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f9540){super(_0x4f9540),_0x4f9540['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x249c4b['defineComponents'](_0x249c4b);}}class ta extends _0x1a7173{constructor(_0x49ff44){super(_0x49ff44);const t=_0x49ff44['t'],_0x59437c=this['bindTemplate'],_0x5d694e=new _0x176cf2();_0x5d694e['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':[_0x5d694e,{'text':_0x59437c['to']('imageUploadProgress',_0x3d9b50=>t('Loading\x20image...')+'\x20('+(_0x3d9b50||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 _0x1a7173{constructor(_0x207167){super(_0x207167);const t=_0x207167['t'];this['set']('errorType',null);const _0x44c14b=new _0x1ed948(_0x207167);_0x44c14b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x44c14b['withText']=!0x0,_0x44c14b['class']='ck-button-action',_0x44c14b['on']('execute',()=>{this['fire']('retry');}),_0x44c14b['bind']('isVisible')['to'](this,'errorType',_0x498d09=>'NotFound'!==_0x498d09);const _0x1dee1c=new at();_0x1dee1c['content']=et,_0x1dee1c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x56ffac=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':[_0x1dee1c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x56ffac['to']('errorType',_0x17a9c0=>t('NotFound'!==_0x17a9c0?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x44c14b]},{'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 _0x1a7173{constructor(_0x46ccba,_0x3b6687){super(_0x46ccba);const _0x3ebca2=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3b6687,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3ebca2['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3842ff,_0x3a46b8,_0xea5f54){super(_0x3842ff),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3842ff),this['_errorView']=new rt(_0x3842ff),this['_editingView']=new tt(_0x3842ff,_0xea5f54),this['_focusableView']=new _0x1a7173(_0x3842ff),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3a46b8),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'],_0x40fa95=>{this['_addUploadcareImageEditorListeners'](_0x40fa95);});}),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'](_0x5a27be,_0x2b1c2c){const _0x53ce9a='uc-cloud-image-editor',_0x1896a4=_0x5a27be['querySelector'](_0x53ce9a);if(_0x1896a4)return _0x2b1c2c(_0x1896a4);const _0x14d773=new MutationObserver(_0x18eba3=>{const _0x616cda=_0x18eba3['filter'](_0x41f900=>_0x41f900['target']===_0x5a27be&&_0x41f900['addedNodes']['length']>0x0&&_0x41f900['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x53ce9a);_0x616cda['length']&&(_0x14d773['disconnect'](),_0x2b1c2c(_0x616cda[0x0]['addedNodes'][0x0]));});_0x14d773['observe'](_0x5a27be,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4e2e8e){_0x4e2e8e['addEventListener']('apply',_0x3ded2a=>{this['fire']('apply',{'imageSrc':_0x3ded2a['detail']['cdnUrl']});}),_0x4e2e8e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x40b747(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x52e5c5,_0x1210e4,_0x46d65e){super(),this['_editor']=_0x52e5c5,this['_dialog']=_0x1210e4,this['_imageElement']=_0x46d65e,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 _0x5a646b=this['_imageElement'],_0x56c0fd=_0x5a646b['getAttribute']('uploadcareImageId'),_0x4218e1=_0x5a646b['getAttribute']('src');if(_0x56c0fd)await this['_loadImageInfo'](_0x56c0fd,_0x4218e1);else{if(this['_imageCache']['has'](_0x4218e1)){const _0x3261f1=this['_imageCache']['get'](_0x4218e1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3261f1['url'],this['imageDimension']=_0x3261f1['dimension'],this['imageId']=_0x3261f1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2f985e}=this['_editor'],t=_0x2f985e['t'],_0x1e712d=new Z(_0x2f985e,this['imageStatus'],this['_attributes']);_0x1e712d['bind']('status')['to'](this,'imageStatus'),_0x1e712d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1e712d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1e712d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1e712d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4c7786,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1e712d,'position':_0x4983e0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1e712d['focus']();},'onHide':()=>{_0x1e712d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x404269=>!F(_0x404269,_0x1e712d['element'])}});}['_loadImageInfo'](_0x378c7e,_0x8f83a7){return C['getInfo'](_0x378c7e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2b75db=>{const {width:_0x41c5ad,height:_0x43909b}=_0x2b75db['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x8f83a7,this['imageDimension']={'width':_0x41c5ad,'height':_0x43909b},this['imageId']=_0x378c7e;})['catch'](_0x1633ee=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1633ee['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4d74c4,_0x2d8d7b){return this['_getImageAsFile'](_0x4d74c4)['then'](_0x18eb68=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2d8d7b['signal'],'file':_0x18eb68,'onProgress':_0x2fcf04=>{_0x2fcf04&&_0x2fcf04['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2fcf04['value']));}}))['then'](_0x5cfbc4=>{const {width:_0x149640,height:_0x161c06}=_0x5cfbc4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5cfbc4['cdnUrl'],this['imageDimension']={'width':_0x149640,'height':_0x161c06},this['imageId']=_0x5cfbc4['uuid'],this['imageUploadProgress']=null;const _0x386f9c=_0x4d74c4['getAttribute']('src');this['_imageCache']['set'](_0x386f9c,{'id':_0x5cfbc4['uuid'],'url':_0x5cfbc4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2414fe=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2414fe['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4a654d,_0x6df450){_0x4a654d['on']('apply',(_0x33f28d,_0x1d8253)=>{this['_replaceImage'](_0x6df450,_0x1d8253['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4a654d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4a654d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x102cee,_0x1d8665,_0x5892de){const _0x136085=this['_editor'],{width:_0x1b0edc,height:_0x5cb106}=A(_0x1d8665,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x41ff52,imageSources:_0x139432}=E(_0x1d8665,_0x1b0edc);_0x136085['model']['change'](_0x58f61a=>{if('$graveyard'===_0x102cee['root']['rootName']){_0x136085['execute']('insertImage',{'imageType':_0x102cee['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x102cee['getAttributes']()),'uploadcareImageId':_0x5892de,'src':_0x41ff52,'sources':_0x139432,'width':_0x1b0edc,'height':_0x5cb106}});const _0x476fb2=_0x102cee['getChildren']();_0x102cee=_0x136085['model']['document']['selection']['getSelectedElement']();for(const _0x16ab57 of _0x476fb2)_0x58f61a['append'](_0x58f61a['cloneElement'](_0x16ab57),_0x102cee);}else _0x58f61a['setSelection'](_0x102cee,'on'),_0x136085['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x102cee['getAttributes']()),'uploadcareImageId':_0x5892de,'src':_0x41ff52,'sources':_0x139432,'width':_0x1b0edc,'height':_0x5cb106},_0x102cee);_0x58f61a['setSelection'](_0x102cee,'on');});}async['_getImageAsFile'](_0x77cd28){const _0x51644e=_0x591ddd['window'],_0x3ebe03=_0x591ddd['document']['location']['href'],_0x16b943=new _0x51644e['URL'](_0x77cd28['getAttribute']('src'),_0x3ebe03);if('data:'===_0x16b943['protocol']){const _0x3075d7=_0x16b943['href']['split'](','),_0x5e24bb=_0x3075d7[0x0]['match'](/:(.*?);/)[0x1],_0xc0c204=_0x5e24bb['split']('/')[0x1],_0x1e3fe5=_0x51644e['atob'](_0x3075d7[_0x3075d7['length']-0x1]);let _0x176ef5=_0x1e3fe5['length'];const _0x5ee83c=new _0x51644e['Uint8Array'](_0x176ef5);for(;_0x176ef5--;)_0x5ee83c[_0x176ef5]=_0x1e3fe5['charCodeAt'](_0x176ef5);return new _0x51644e['File']([_0x5ee83c],'image.'+_0xc0c204,{'type':_0x5e24bb});}const _0x545dbf=_0x16b943['href']['split']('/'),_0x1d05b9=_0x545dbf[_0x545dbf['length']-0x1],_0x614bb3=_0x1d05b9['split']('.')[0x1];return _0x51644e['fetch'](_0x16b943['href'])['then'](_0x443d44=>_0x443d44['clone']()['blob']())['then'](_0xdbcbc0=>new _0x51644e['File']([_0xdbcbc0],_0x1d05b9,{'type':'image/'+_0x614bb3}));}}class J extends _0x1d5748{['imageEditController'];static get['requires'](){return[_0x2aa253];}['_isEditable'];constructor(_0x211519){super(_0x211519),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3c8229){const _0x1a35bf=V(_0x3c8229);return _0x418775=>!(!_0x418775||!_0x418775['is']('element','imageBlock')&&!_0x418775['is']('element','imageInline'))&&(!!_0x418775['hasAttribute']('uploadcareImageId')||!!_0x418775['hasAttribute']('src')&&_0x1a35bf(_0x418775['getAttribute']('src')));}(_0x211519['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x27cf92=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x27cf92);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x9183d6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x9183d6&&(_0x9183d6['is']('element','imageBlock')||_0x9183d6['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x2aa253),_0x9183d6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1d5748{['refresh'](){const _0x2e9bc4=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2e9bc4&&(_0x2e9bc4['is']('element','imageBlock')||_0x2e9bc4['is']('element','imageInline')));}['execute'](_0x17d076){const _0x38b651=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x12c242=>{_0x12c242['setAttributes'](_0x17d076,_0x38b651),_0x12c242['removeAttribute']('srcset',_0x38b651),_0x12c242['removeAttribute']('sizes',_0x38b651);});}}class g extends _0x1c8349{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x2c6589,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xdc20f}=this;_0xdc20f['commands']['add']('uploadcareImageEdit',new J(_0xdc20f)),_0xdc20f['commands']['add']('uploadcareImageReplace',new O(_0xdc20f));}}class j extends _0x1c8349{['_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 _0x4999da=this['editor'];_0x4999da['ui']['componentFactory']['add']('uploadcareImageEdit',_0x535857=>{const _0x31e7b4=_0x4999da['commands']['get']('uploadcareImageEdit'),_0x58b3d3=new _0x1ed948(_0x535857),t=_0x535857['t'];return _0x58b3d3['set']({'icon':_0x4c7786,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x58b3d3['bind']('isEnabled')['to'](_0x31e7b4),_0x58b3d3['bind']('isOn')['to'](_0x31e7b4,'isActive'),this['listenTo'](_0x58b3d3,'execute',()=>{_0x4999da['execute']('uploadcareImageEdit'),_0x4999da['editing']['view']['focus']();}),_0x58b3d3;}),this['_initConfig']();}['_initConfig'](){const _0xfc9e73=_0x322e8b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xfc9e73),this['listenTo'](this['editor'],'destroy',()=>{_0xfc9e73['remove']();});}}class P extends _0x1c8349{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-20250308.0",
3
+ "version": "0.0.0-nightly-20250309.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-20250308.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250308.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250308.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250308.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250308.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250308.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250308.0",
33
- "ckeditor5": "0.0.0-nightly-20250308.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250309.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250309.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250309.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250309.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250309.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250309.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250309.0",
33
+ "ckeditor5": "0.0.0-nightly-20250309.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 _0x27d297=_0x2602;function _0x2602(_0x5e10bd,_0x169327){const _0x5e1052=_0x5e10();return _0x2602=function(_0x260246,_0x277a60){_0x260246=_0x260246-0xfb;let _0x4ed01e=_0x5e1052[_0x260246];return _0x4ed01e;},_0x2602(_0x5e10bd,_0x169327);}(function(_0x5d1ade,_0x427916){const _0x2ec551=_0x2602,_0x3dd788=_0x5d1ade();while(!![]){try{const _0x373c76=-parseInt(_0x2ec551(0x14d))/0x1+parseInt(_0x2ec551(0x135))/0x2+parseInt(_0x2ec551(0x140))/0x3*(-parseInt(_0x2ec551(0x10e))/0x4)+parseInt(_0x2ec551(0x13c))/0x5+parseInt(_0x2ec551(0x12a))/0x6+parseInt(_0x2ec551(0x147))/0x7+-parseInt(_0x2ec551(0x144))/0x8*(parseInt(_0x2ec551(0x123))/0x9);if(_0x373c76===_0x427916)break;else _0x3dd788['push'](_0x3dd788['shift']());}catch(_0x5aac13){_0x3dd788['push'](_0x3dd788['shift']());}}}(_0x5e10,0x50ebf));import{Plugin as _0x2f59cf}from'ckeditor5/src/core.js';import{Dialog as _0x3ddc25}from'ckeditor5/src/ui.js';import{createElement as _0x2b3f02,global as _0x3a49da,uid as _0x30767a}from'ckeditor5/src/utils.js';import _0x51d642 from'./uploadcarecommand.js';import _0x29d348 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4928a5}from'./utils/editingutils.js';function _0x5e10(){const _0x33c5f4=['querySelector','uc-upload-ctx-provider','_ctxElement','conversion','get','cleanupImage','uploadcareImageReplace','view','editing','init','add','downcast','imageBlock','5922LfdjlM','fromCharCode','upcast','isPremiumPlugin','pluginName','map','commands','2612706TmSZKB','replaceImageSource','PictureEditing','true','getSelectedElement','data-uc-image-id','uc-config','listenTo','for','extend','render','1215752qgGSoh','uploadcare','attributeToAttribute','document','config','destroy','imageInline','2346375rOWkXG','uploadcare.pubkey','_configElement','model','177yuQtdq','_initConfig','_initCtx','removeAttribute','16480PZUOYJ','uploader','editor','3468612BFrwVJ','once','closeMax','UploadcareEditing','ctxElement','uploadcare.uploader','131734jeQoKr','afterInit','selection','appendChild','_initConversion','requires','execute','isOfficialPlugin','getAttribute','isRegistered','configElement','remove','join','uploadcareImageId','href','\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','insertImage','body','_initImageProcessingIndicator','locale','12844ZUtghS','_initSchema','#uc-icon-arrow-down','contentLanguage','input[uploadcare-file-input]','iconHrefResolver','schema','elementToAttribute'];_0x5e10=function(){return _0x33c5f4;};return _0x5e10();}export default class i extends _0x2f59cf{[_0x27d297(0x13e)]=null;[_0x27d297(0x118)]=null;static get[_0x27d297(0x127)](){const _0x4da875=_0x27d297;return _0x4da875(0x14a);}static get[_0x27d297(0xff)](){const _0x490d45=_0x27d297;return[_0x490d45(0x12c),_0x29d348,_0x3ddc25];}static get[_0x27d297(0x101)](){return!0x0;}static get[_0x27d297(0x126)](){return!0x0;}get[_0x27d297(0x104)](){const _0x367296=_0x27d297;return this[_0x367296(0x13e)];}get[_0x27d297(0x14b)](){const _0x183d62=_0x27d297;return this[_0x183d62(0x118)];}[_0x27d297(0x11f)](){const _0x15a6d5=_0x27d297,_0x1b7409=this[_0x15a6d5(0x146)];_0x1b7409[_0x15a6d5(0x129)][_0x15a6d5(0x120)](_0x15a6d5(0x136),new _0x51d642(_0x1b7409));}[_0x27d297(0xfb)](){const _0x1e3a43=_0x27d297;this[_0x1e3a43(0x10f)](),this[_0x1e3a43(0xfe)](),this[_0x1e3a43(0x141)](),this[_0x1e3a43(0x142)](),this[_0x1e3a43(0x10c)](),this[_0x1e3a43(0x131)](this[_0x1e3a43(0x146)],_0x1e3a43(0x13a),()=>{const _0x2d2d02=_0x1e3a43;this[_0x2d2d02(0x13e)]&&(this[_0x2d2d02(0x13e)][_0x2d2d02(0x105)](),this[_0x2d2d02(0x13e)]=null),this[_0x2d2d02(0x118)]&&(this[_0x2d2d02(0x118)][_0x2d2d02(0x105)](),this[_0x2d2d02(0x118)]=null);const _0x13aaf5=_0x3a49da[_0x2d2d02(0x138)][_0x2d2d02(0x116)](_0x2d2d02(0x112));_0x13aaf5&&_0x13aaf5[_0x2d2d02(0x105)]();}),async function(_0x24553f){const _0x4457df=_0x52850f([0x33,0x66,0x6f,0x4e,0x63,0x6d,0x5a,0x58,0x46,0x37,0x4f,0x64,0x76,0x42,0x31,0x34,0x4b,0x79,0x49,0x59,0x54,0x4d,0x75,0x67,0x30,0x4a,0x56,0x69,0x4c,0x55,0x72,0x6e,0x6c,0x44,0x70,0x52,0x6b,0x51,0x71,0x7a,0x45,0x73,0x41,0x78,0x6a,0x53,0x32,0x36,0x68,0x38,0x50,0x57,0x77,0x61,0x43,0x65,0x47,0x48,0x39,0x74,0x35,0x62]),_0x5098a5=0x3aa37f3f,_0xd002e6=0x3aa41eb7^_0x5098a5,_0x58decd=window[_0x52850f([0x44,0x61,0x74,0x65])][_0x52850f([0x6e,0x6f,0x77])](),_0x373e75=_0x24553f[_0x52850f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12ca4e=new window[(_0x52850f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36d915=>{_0x373e75[_0x52850f([0x6f,0x6e,0x63,0x65])](_0x52850f([0x72,0x65,0x61,0x64,0x79]),_0x36d915);}),_0x7c1f54={[_0x52850f([0x6b,0x74,0x79])]:_0x52850f([0x45,0x43]),[_0x52850f([0x75,0x73,0x65])]:_0x52850f([0x73,0x69,0x67]),[_0x52850f([0x63,0x72,0x76])]:_0x52850f([0x50,0x2d,0x32,0x35,0x36]),[_0x52850f([0x78])]:_0x52850f([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]),[_0x52850f([0x79])]:_0x52850f([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]),[_0x52850f([0x61,0x6c,0x67])]:_0x52850f([0x45,0x53,0x32,0x35,0x36])},_0x16bd7a=_0x373e75[_0x52850f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52850f([0x67,0x65,0x74])](_0x52850f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x101738(){let _0x2d2d85,_0x5ce12a=null,_0x3f086f=null;try{if(_0x16bd7a==_0x52850f([0x47,0x50,0x4c]))return _0x52850f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2d2d85=_0x4d7570(),!_0x2d2d85)return _0x52850f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2d2d85[_0x52850f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f086f=_0x394fbe(_0x2d2d85[_0x52850f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2d2d85[_0x52850f([0x6a,0x74,0x69])])),await _0xeea0cc()?_0x196c3b()?_0x2a289c()?_0x52850f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22f2ab()?(_0x2d2d85[_0x52850f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52850f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ce12a=_0x1a3012(_0x52850f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2d2d85[_0x52850f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52850f([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ce12a=_0x1a3012(_0x52850f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a6d07()):_0x52850f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52850f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52850f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1754f3){return _0x52850f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a289c(){const _0x4ea04b=[_0x52850f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52850f([0x74,0x72,0x69,0x61,0x6c])][_0x52850f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d2d85[_0x52850f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58decd/0x3e8:0xe10*_0xd002e6;return _0x2d2d85[_0x52850f([0x65,0x78,0x70])]<_0x4ea04b;}function _0x196c3b(){const _0x1c971f=_0x2d2d85[_0x52850f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c971f&&(!!_0x1c971f[_0x52850f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52850f([0x2a]))||!!_0x1c971f[_0x52850f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52850f([0x55,0x50,0x4c,0x43])));}function _0x22f2ab(){const _0x15eadb=_0x2602,_0x54181d=_0x2d2d85[_0x52850f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x54181d||0x0==_0x54181d[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ea0eb}=new URL(window[_0x52850f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x15eadb(0x108)]);if(_0x54181d[_0x52850f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ea0eb))return!0x0;const _0x57e9cd=_0x1ea0eb[_0x52850f([0x73,0x70,0x6c,0x69,0x74])](_0x52850f([0x2e]));return _0x54181d[_0x52850f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x282d82=>_0x282d82[_0x52850f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52850f([0x2a])))[_0x52850f([0x6d,0x61,0x70])](_0xce9c22=>_0xce9c22[_0x52850f([0x73,0x70,0x6c,0x69,0x74])](_0x52850f([0x2e])))[_0x52850f([0x73,0x6f,0x6d,0x65])](_0x3d943c=>_0x57e9cd[_0x52850f([0x65,0x76,0x65,0x72,0x79])]((_0x193405,_0x55a101)=>_0x3d943c[_0x55a101]===_0x193405||_0x3d943c[_0x55a101]===_0x52850f([0x2a])));}function _0x2a6d07(){return _0x5ce12a&&_0x3f086f?new window[(_0x52850f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x362057,_0xbe9448)=>{_0x5ce12a[_0x52850f([0x74,0x68,0x65,0x6e])](_0x362057,_0xbe9448),_0x3f086f[_0x52850f([0x74,0x68,0x65,0x6e])](_0x2281a9=>{_0x2281a9!=_0x52850f([0x56,0x61,0x6c,0x69,0x64])&&_0x362057(_0x2281a9);},_0xbe9448);}):_0x5ce12a||_0x3f086f||_0x52850f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x394fbe(_0x2743a0,_0x288215){return new window[(_0x52850f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20fac3=>{if(_0x71beb2())return _0x20fac3(_0x52850f([0x56,0x61,0x6c,0x69,0x64]));_0x4eddad(),_0x373e75[_0x52850f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52850f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a6a30=!0x1;const _0x255539=_0x30767a();function _0x18ee3b(_0xfbe04c){return!!_0xfbe04c&&(typeof _0xfbe04c===_0x52850f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xfbe04c===_0x52850f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xfbe04c[_0x52850f([0x74,0x68,0x65,0x6e])]===_0x52850f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xfbe04c[_0x52850f([0x63,0x61,0x74,0x63,0x68])]===_0x52850f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27b8df(_0x248b85){_0x468774(_0x248b85)[_0x52850f([0x74,0x68,0x65,0x6e])](_0x5eabd7=>{if(!_0x5eabd7||_0x5eabd7[_0x52850f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52850f([0x6f,0x6b]))return _0x52850f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1945c1(_0x3ccf45(_0x255539+_0x288215))!=_0x5eabd7[_0x52850f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52850f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52850f([0x56,0x61,0x6c,0x69,0x64]);})[_0x52850f([0x74,0x68,0x65,0x6e])](_0x4abdc0=>(_0x11f2a4(),_0x4abdc0),()=>{const _0x841df8=_0x130437();return null==_0x841df8?(_0x11f2a4(),_0x52850f([0x56,0x61,0x6c,0x69,0x64])):_0x52850f(_0x58decd-_0x841df8>(0x1eaffb3f^_0x5098a5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52850f([0x74,0x68,0x65,0x6e])](_0x20fac3)[_0x52850f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x20fac3(_0x52850f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3646eb=0x3a9591bf^_0x5098a5;function _0x11f2a4(){const _0x15b99c=_0x52850f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1945c1(_0x3ccf45(_0x2743a0)),_0x9f2cdc=_0x5e3460(_0x1945c1(window[_0x52850f([0x4d,0x61,0x74,0x68])][_0x52850f([0x63,0x65,0x69,0x6c])](_0x58decd/_0x3646eb)));window[_0x52850f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52850f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15b99c,_0x9f2cdc);}function _0x130437(){const _0x451468=_0x52850f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1945c1(_0x3ccf45(_0x2743a0)),_0x548609=window[_0x52850f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52850f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x451468);return _0x548609?window[_0x52850f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e3460(_0x548609),0x10)*_0x3646eb:null;}function _0x468774(_0x4ba066){return new window[(_0x52850f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49b0c2,_0x186ea8)=>{_0x4ba066[_0x52850f([0x74,0x68,0x65,0x6e])](_0x49b0c2,_0x186ea8),window[_0x52850f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x186ea8,0x3aa2abff^_0x5098a5);});}}_0x373e75[_0x52850f([0x6f,0x6e])](_0x52850f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ead47,_0x490c44)=>{if(_0x490c44[0x0]!=_0x2743a0)return _0x20fac3(_0x52850f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x490c44[0x1]={..._0x490c44[0x1],[_0x52850f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x255539};},{[_0x52850f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52850f([0x68,0x69,0x67,0x68])}),_0x373e75[_0x52850f([0x6f,0x6e])](_0x52850f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x351df9=>{_0x18ee3b(_0x351df9[_0x52850f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a6a30=!0x0,_0x27b8df(_0x351df9[_0x52850f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52850f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52850f([0x6c,0x6f,0x77])}),_0x12ca4e[_0x52850f([0x74,0x68,0x65,0x6e])](()=>{_0x2a6a30||_0x20fac3(_0x52850f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x71beb2(){return _0x373e75[_0x52850f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52850f([0x76,0x69,0x65,0x77])][_0x52850f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52850f([0x61,0x75,0x74,0x6f]);}function _0x4eddad(){_0x373e75[_0x52850f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52850f([0x76,0x69,0x65,0x77])][_0x52850f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52850f([0x61,0x75,0x74,0x6f]);}}function _0x1a3012(_0x4d35ad){const _0x4ad196=[new window[(_0x52850f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4551b4=>setTimeout(_0x4551b4,0x3aaa41f3^_0x5098a5)),_0x12ca4e[_0x52850f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52850f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1718d8=>{let _0x147ab4=0x0;_0x373e75[_0x52850f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52850f([0x6f,0x6e])](_0x52850f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x307880,_0x1bd212)=>{_0x1bd212[0x0][_0x52850f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x147ab4++,_0x147ab4==(0x3aa37ec7^_0x5098a5)&&(_0x1718d8(),_0x307880[_0x52850f([0x6f,0x66,0x66])]());});}))];return window[_0x52850f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52850f([0x72,0x61,0x63,0x65])](_0x4ad196)[_0x52850f([0x74,0x68,0x65,0x6e])](()=>_0x4d35ad);}async function _0x800dfb(){await _0x12ca4e,_0x373e75[_0x52850f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52850f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58ccf4,_0x373e75[_0x52850f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52850f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58ccf4,_0x373e75[_0x52850f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52850f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b3e2c(_0x1dc7ee){const _0x495c2d=_0x16d3d0();_0x373e75[_0x495c2d]=_0x52850f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1dc7ee,_0x1dc7ee!=_0x52850f([0x56,0x61,0x6c,0x69,0x64])&&_0x800dfb();}function _0x16d3d0(){const _0x53e8c9=window[_0x52850f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52850f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52850f([0x6e,0x6f,0x77])]())[_0x52850f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52850f([0x2e]),'');let _0x2bc8dc=_0x52850f([0x66]);for(let _0xa04f60=0x0;_0xa04f60<_0x53e8c9[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa04f60+=0x2){let _0x27abd0=window[_0x52850f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53e8c9[_0x52850f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa04f60,_0xa04f60+0x2));_0x27abd0>=_0x4457df[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27abd0-=_0x4457df[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2bc8dc+=_0x4457df[_0x27abd0];}return _0x2bc8dc;}function _0x4d7570(){const _0x14a83c=_0x16bd7a[_0x52850f([0x73,0x70,0x6c,0x69,0x74])](_0x52850f([0x2e]));if(0x3!=_0x14a83c[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5719d1(_0x14a83c[0x1]);function _0x5719d1(_0x43c0d8){const _0x3d1a69=_0x3a7584(_0x43c0d8);return _0x3d1a69&&_0xf99985()?_0x3d1a69:null;function _0xf99985(){const _0x4b9312=_0x3d1a69[_0x52850f([0x6a,0x74,0x69])],_0x157364=window[_0x52850f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b9312[_0x52850f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b9312[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7c5204={..._0x3d1a69,[_0x52850f([0x6a,0x74,0x69])]:_0x4b9312[_0x52850f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b9312[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7c5204[_0x52850f([0x76,0x63])],_0x3ccf45(_0x7c5204)==_0x157364;}}}async function _0xeea0cc(){let _0x3aac35=!0x0;try{const _0x189190=_0x16bd7a[_0x52850f([0x73,0x70,0x6c,0x69,0x74])](_0x52850f([0x2e])),[_0x11e311,_0x21eb1f,_0x638139]=_0x189190;return _0x69c6a4(_0x11e311),await _0x5bcadf(_0x11e311,_0x21eb1f,_0x638139),_0x3aac35;}catch(_0x2813fd){return!0x1;}function _0x69c6a4(_0x14fe9d){const _0x542812=_0x3a7584(_0x14fe9d);_0x542812&&_0x542812[_0x52850f([0x61,0x6c,0x67])]==_0x52850f([0x45,0x53,0x32,0x35,0x36])||(_0x3aac35=!0x1);}async function _0x5bcadf(_0x2dcd32,_0x265e8f,_0x1bbacb){const _0x124719=window[_0x52850f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52850f([0x66,0x72,0x6f,0x6d])](_0x4009e(_0x1bbacb),_0x924b43=>_0x924b43[_0x52850f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4dd5a8=new window[(_0x52850f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52850f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2dcd32+_0x52850f([0x2e])+_0x265e8f),_0x36c65a=window[_0x52850f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52850f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x36c65a)return;const _0x1a5c49=await _0x36c65a[_0x52850f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52850f([0x6a,0x77,0x6b]),_0x7c1f54,{[_0x52850f([0x6e,0x61,0x6d,0x65])]:_0x52850f([0x45,0x43,0x44,0x53,0x41]),[_0x52850f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52850f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52850f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x36c65a[_0x52850f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52850f([0x6e,0x61,0x6d,0x65])]:_0x52850f([0x45,0x43,0x44,0x53,0x41]),[_0x52850f([0x68,0x61,0x73,0x68])]:{[_0x52850f([0x6e,0x61,0x6d,0x65])]:_0x52850f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a5c49,_0x124719,_0x4dd5a8)||(_0x3aac35=!0x1);}}function _0x3a7584(_0x484ecb){return _0x484ecb[_0x52850f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52850f([0x65,0x79]))?JSON[_0x52850f([0x70,0x61,0x72,0x73,0x65])](_0x4009e(_0x484ecb)):null;}function _0x4009e(_0xad7514){return window[_0x52850f([0x61,0x74,0x6f,0x62])](_0xad7514[_0x52850f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52850f([0x2b]))[_0x52850f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52850f([0x2f])));}function _0x3ccf45(_0x354700){let _0x22c845=0x1505;function _0x4a250d(_0x40991b){for(let _0x300329=0x0;_0x300329<_0x40991b[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x300329++){const _0x73f202=_0x40991b[_0x52850f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x300329);_0x22c845=(_0x22c845<<0x5)+_0x22c845+_0x73f202,_0x22c845&=_0x22c845;}}function _0x40b53b(_0x416ea9){Array[_0x52850f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x416ea9)?_0x416ea9[_0x52850f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x40b53b):_0x416ea9&&typeof _0x416ea9==_0x52850f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52850f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x416ea9)[_0x52850f([0x73,0x6f,0x72,0x74])]()[_0x52850f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x386189,_0xfe18fb])=>{_0x4a250d(_0x386189),_0x40b53b(_0xfe18fb);}):_0x4a250d(window[_0x52850f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x416ea9));}return _0x40b53b(_0x354700),_0x22c845>>>0x0;}function _0x1945c1(_0x508802){return _0x508802[_0x52850f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52850f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52850f([0x30]));}function _0x5e3460(_0xf928bf){return _0xf928bf[_0x52850f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52850f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52850f([0x6a,0x6f,0x69,0x6e])]('');}function _0x58ccf4(){}function _0x52850f(_0x16c000){const _0x276f56=_0x2602;return _0x16c000[_0x276f56(0x128)](_0x9fab96=>String[_0x276f56(0x124)](_0x9fab96))[_0x276f56(0x106)]('');}_0x3b3e2c(await _0x101738());}(this);}[_0x27d297(0x10f)](){const _0x34c061=_0x27d297,_0x468865=this[_0x34c061(0x146)][_0x34c061(0x13f)][_0x34c061(0x114)];_0x468865[_0x34c061(0x103)](_0x34c061(0x122))&&_0x468865[_0x34c061(0x133)](_0x34c061(0x122),{'allowAttributes':[_0x34c061(0x107)]}),_0x468865[_0x34c061(0x103)](_0x34c061(0x13b))&&_0x468865[_0x34c061(0x133)](_0x34c061(0x13b),{'allowAttributes':[_0x34c061(0x107)]});}[_0x27d297(0xfe)](){const _0x57a908=_0x27d297,_0x1f555a=this[_0x57a908(0x146)];_0x1f555a[_0x57a908(0x119)][_0x57a908(0x132)](_0x57a908(0x121))[_0x57a908(0x137)]({'model':_0x57a908(0x107),'view':_0x57a908(0x12f)}),_0x1f555a[_0x57a908(0x119)][_0x57a908(0x132)](_0x57a908(0x125))[_0x57a908(0x115)]({'model':{'key':_0x57a908(0x107),'value':_0x55cbd9=>_0x55cbd9[_0x57a908(0x102)](_0x57a908(0x12f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4732de=_0x1f555a[_0x57a908(0x129)][_0x57a908(0x11a)](_0x57a908(0x12b));_0x4732de&&this[_0x57a908(0x131)](_0x4732de,_0x57a908(0x11b),(_0x39bb5b,[_0x4d32bb,_0x59360e])=>{const _0x4f8395=_0x57a908;_0x4d32bb[_0x4f8395(0x143)](_0x4f8395(0x107),_0x59360e);});}[_0x27d297(0x141)](){const _0x289c88=_0x27d297,_0x215a21=this[_0x289c88(0x146)][_0x289c88(0x139)][_0x289c88(0x11a)](_0x289c88(0x14c))||{},_0x44cdde=this[_0x289c88(0x146)][_0x289c88(0x139)][_0x289c88(0x11a)](_0x289c88(0x13d))||'';this[_0x289c88(0x13e)]=_0x2b3f02(_0x3a49da[_0x289c88(0x138)],_0x289c88(0x130),{..._0x215a21,'pubkey':_0x44cdde,'ctx-name':_0x289c88(0x145),'sourceList':'','imgOnly':_0x289c88(0x12d),'removeCopyright':_0x289c88(0x12d),'localeName':this[_0x289c88(0x146)][_0x289c88(0x10d)][_0x289c88(0x111)],'externalSourcesEmbedCss':_0x289c88(0x109)}),this[_0x289c88(0x13e)][_0x289c88(0x113)]=_0x15978b=>{const _0x3a66e6=_0x289c88;if(_0x3a66e6(0x149)==_0x15978b)return _0x3a66e6(0x110);},_0x3a49da[_0x289c88(0x138)][_0x289c88(0x10b)][_0x289c88(0xfd)](this[_0x289c88(0x13e)]);}[_0x27d297(0x142)](){const _0x20267f=_0x27d297;this[_0x20267f(0x118)]=_0x2b3f02(_0x3a49da[_0x20267f(0x138)],_0x20267f(0x117),{'ctx-name':_0x20267f(0x145)}),_0x3a49da[_0x20267f(0x138)][_0x20267f(0x10b)][_0x20267f(0xfd)](this[_0x20267f(0x118)]);}[_0x27d297(0x10c)](){const _0x43ce2e=_0x27d297,_0x5a15d9=this[_0x43ce2e(0x146)][_0x43ce2e(0x129)][_0x43ce2e(0x11a)](_0x43ce2e(0x10a));_0x5a15d9&&this[_0x43ce2e(0x131)](_0x5a15d9,_0x43ce2e(0x100),()=>{const _0x44a524=_0x43ce2e,_0x1a8132=this[_0x44a524(0x146)][_0x44a524(0x13f)][_0x44a524(0x138)][_0x44a524(0xfc)][_0x44a524(0x12e)]();_0x1a8132&&_0x1a8132[_0x44a524(0x102)](_0x44a524(0x107))&&this[_0x44a524(0x146)][_0x44a524(0x11e)][_0x44a524(0x11d)][_0x44a524(0x148)](_0x44a524(0x134),()=>{const _0x5c7d25=_0x44a524;_0x4928a5(this[_0x5c7d25(0x146)],_0x1a8132);});});const _0x45a0f2=this[_0x43ce2e(0x146)][_0x43ce2e(0x129)][_0x43ce2e(0x11a)](_0x43ce2e(0x11c));_0x45a0f2&&this[_0x43ce2e(0x131)](_0x45a0f2,_0x43ce2e(0x100),()=>{const _0x178aa9=_0x43ce2e,_0x39a867=this[_0x178aa9(0x146)][_0x178aa9(0x13f)][_0x178aa9(0x138)][_0x178aa9(0xfc)][_0x178aa9(0x12e)]();_0x39a867&&_0x39a867[_0x178aa9(0x102)](_0x178aa9(0x107))&&this[_0x178aa9(0x146)][_0x178aa9(0x11e)][_0x178aa9(0x11d)][_0x178aa9(0x148)](_0x178aa9(0x134),()=>{const _0x5e9a34=_0x178aa9;_0x4928a5(this[_0x5e9a34(0x146)],_0x39a867);});});}}
23
+ function _0x1b15(_0x4a0276,_0x27cc0a){const _0x1ea50f=_0x1ea5();return _0x1b15=function(_0x1b15ae,_0x28e474){_0x1b15ae=_0x1b15ae-0xa6;let _0x55bbdf=_0x1ea50f[_0x1b15ae];return _0x55bbdf;},_0x1b15(_0x4a0276,_0x27cc0a);}const _0x28f58e=_0x1b15;(function(_0xaab85,_0x3bf0f0){const _0x1d23e0=_0x1b15,_0x2e6c56=_0xaab85();while(!![]){try{const _0x3e810a=parseInt(_0x1d23e0(0xe3))/0x1+-parseInt(_0x1d23e0(0xa9))/0x2+parseInt(_0x1d23e0(0xc3))/0x3+-parseInt(_0x1d23e0(0xc0))/0x4+parseInt(_0x1d23e0(0xeb))/0x5*(parseInt(_0x1d23e0(0xb1))/0x6)+-parseInt(_0x1d23e0(0xab))/0x7*(parseInt(_0x1d23e0(0xcd))/0x8)+parseInt(_0x1d23e0(0xe4))/0x9*(parseInt(_0x1d23e0(0xac))/0xa);if(_0x3e810a===_0x3bf0f0)break;else _0x2e6c56['push'](_0x2e6c56['shift']());}catch(_0x37ebac){_0x2e6c56['push'](_0x2e6c56['shift']());}}}(_0x1ea5,0x9bae8));import{Plugin as _0x26ca0b}from'ckeditor5/src/core.js';import{Dialog as _0xe8a498}from'ckeditor5/src/ui.js';import{createElement as _0x3a37b6,global as _0x491152,uid as _0x3b0b86}from'ckeditor5/src/utils.js';import _0x3aeb54 from'./uploadcarecommand.js';import _0x12139b from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4d9d90}from'./utils/editingutils.js';function _0x1ea5(){const _0x1de688=['381342sGJxdc','input[uploadcare-file-input]','selection','uploadcareImageReplace','view','model','uploadcareImageId','add','_initImageProcessingIndicator','replaceImageSource','42664SoIUEi','uploadcare.pubkey','ctxElement','_initConversion','uploadcare','execute','uploadcare.uploader','configElement','pluginName','upcast','editing','commands','contentLanguage','imageBlock','map','insertImage','_configElement','destroy','extend','for','get','uc-config','760442XOPyKL','54LpRRkB','elementToAttribute','uploader','isPremiumPlugin','render','true','_initConfig','2885DdGrEG','PictureEditing','cleanupImage','downcast','conversion','editor','isOfficialPlugin','document','afterInit','iconHrefResolver','imageInline','uc-upload-ctx-provider','_initCtx','\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','#uc-icon-arrow-down','querySelector','data-uc-image-id','join','1960802dIQcpz','attributeToAttribute','406IibCaE','2378320eWNfKT','init','once','locale','remove','8538TDAuex','removeAttribute','getSelectedElement','config','body','requires','appendChild','schema','_ctxElement','getAttribute','UploadcareEditing','isRegistered','fromCharCode','_initSchema','closeMax','4832928Wdsvlh','listenTo','href'];_0x1ea5=function(){return _0x1de688;};return _0x1ea5();}export default class i extends _0x26ca0b{[_0x28f58e(0xdd)]=null;[_0x28f58e(0xb9)]=null;static get[_0x28f58e(0xd5)](){const _0x555b7b=_0x28f58e;return _0x555b7b(0xbb);}static get[_0x28f58e(0xb6)](){const _0x328210=_0x28f58e;return[_0x328210(0xec),_0x12139b,_0xe8a498];}static get[_0x28f58e(0xf1)](){return!0x0;}static get[_0x28f58e(0xe7)](){return!0x0;}get[_0x28f58e(0xd4)](){const _0x5b9212=_0x28f58e;return this[_0x5b9212(0xdd)];}get[_0x28f58e(0xcf)](){const _0x3dc1b2=_0x28f58e;return this[_0x3dc1b2(0xb9)];}[_0x28f58e(0xad)](){const _0x276c6d=_0x28f58e,_0x4691a4=this[_0x276c6d(0xf0)];_0x4691a4[_0x276c6d(0xd8)][_0x276c6d(0xca)](_0x276c6d(0xd1),new _0x3aeb54(_0x4691a4));}[_0x28f58e(0xf3)](){const _0x15ff56=_0x28f58e;this[_0x15ff56(0xbe)](),this[_0x15ff56(0xd0)](),this[_0x15ff56(0xea)](),this[_0x15ff56(0xf7)](),this[_0x15ff56(0xcb)](),this[_0x15ff56(0xc1)](this[_0x15ff56(0xf0)],_0x15ff56(0xde),()=>{const _0xe12197=_0x15ff56;this[_0xe12197(0xdd)]&&(this[_0xe12197(0xdd)][_0xe12197(0xb0)](),this[_0xe12197(0xdd)]=null),this[_0xe12197(0xb9)]&&(this[_0xe12197(0xb9)][_0xe12197(0xb0)](),this[_0xe12197(0xb9)]=null);const _0x562100=_0x491152[_0xe12197(0xf2)][_0xe12197(0xa6)](_0xe12197(0xc4));_0x562100&&_0x562100[_0xe12197(0xb0)]();}),async function(_0x5a3877){const _0x20c3c3=_0x3904d1([0x39,0x76,0x63,0x4f,0x69,0x71,0x66,0x7a,0x41,0x52,0x62,0x58,0x74,0x4a,0x33,0x78,0x4c,0x45,0x55,0x67,0x50,0x75,0x6f,0x43,0x44,0x57,0x73,0x31,0x77,0x6d,0x30,0x51,0x4e,0x56,0x54,0x79,0x49,0x4b,0x35,0x70,0x37,0x38,0x53,0x6c,0x65,0x59,0x6e,0x61,0x36,0x72,0x5a,0x6b,0x47,0x64,0x6a,0x34,0x42,0x46,0x32,0x4d,0x48,0x68]),_0x2efd83=0x4013f54c,_0x1ddf82=0x401494ec^_0x2efd83,_0x3754a3=window[_0x3904d1([0x44,0x61,0x74,0x65])][_0x3904d1([0x6e,0x6f,0x77])](),_0x375b84=_0x5a3877[_0x3904d1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xde0272=new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eee2e=>{_0x375b84[_0x3904d1([0x6f,0x6e,0x63,0x65])](_0x3904d1([0x72,0x65,0x61,0x64,0x79]),_0x4eee2e);}),_0x9d6d68={[_0x3904d1([0x6b,0x74,0x79])]:_0x3904d1([0x45,0x43]),[_0x3904d1([0x75,0x73,0x65])]:_0x3904d1([0x73,0x69,0x67]),[_0x3904d1([0x63,0x72,0x76])]:_0x3904d1([0x50,0x2d,0x32,0x35,0x36]),[_0x3904d1([0x78])]:_0x3904d1([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]),[_0x3904d1([0x79])]:_0x3904d1([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]),[_0x3904d1([0x61,0x6c,0x67])]:_0x3904d1([0x45,0x53,0x32,0x35,0x36])},_0x48782f=_0x375b84[_0x3904d1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3904d1([0x67,0x65,0x74])](_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30fbf1(){let _0x7a694a,_0x57d7ab=null,_0x220ebc=null;try{if(_0x48782f==_0x3904d1([0x47,0x50,0x4c]))return _0x3904d1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7a694a=_0x3cc870(),!_0x7a694a)return _0x3904d1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7a694a[_0x3904d1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x220ebc=_0x219756(_0x7a694a[_0x3904d1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7a694a[_0x3904d1([0x6a,0x74,0x69])])),await _0x1aaa36()?_0xf44609()?_0x33d918()?_0x3904d1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x400aa5()?(_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3904d1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57d7ab=_0x7d4540(_0x3904d1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3904d1([0x74,0x72,0x69,0x61,0x6c])&&(_0x57d7ab=_0x7d4540(_0x3904d1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22ac0f()):_0x3904d1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3904d1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3904d1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x383776){return _0x3904d1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33d918(){const _0x35e18d=[_0x3904d1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3904d1([0x74,0x72,0x69,0x61,0x6c])][_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3754a3/0x3e8:0xe10*_0x1ddf82;return _0x7a694a[_0x3904d1([0x65,0x78,0x70])]<_0x35e18d;}function _0xf44609(){const _0x2bff7e=_0x7a694a[_0x3904d1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2bff7e&&(!!_0x2bff7e[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3904d1([0x2a]))||!!_0x2bff7e[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3904d1([0x55,0x50,0x4c,0x43])));}function _0x400aa5(){const _0x17ccc2=_0x1b15,_0x4cb422=_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4cb422||0x0==_0x4cb422[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4476ed}=new URL(window[_0x3904d1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x17ccc2(0xc2)]);if(_0x4cb422[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4476ed))return!0x0;const _0x40c480=_0x4476ed[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e]));return _0x4cb422[_0x3904d1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38ec10=>_0x38ec10[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3904d1([0x2a])))[_0x3904d1([0x6d,0x61,0x70])](_0x5f0a95=>_0x5f0a95[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e])))[_0x3904d1([0x73,0x6f,0x6d,0x65])](_0x408595=>_0x40c480[_0x3904d1([0x65,0x76,0x65,0x72,0x79])]((_0x49b92a,_0x3d8bb5)=>_0x408595[_0x3d8bb5]===_0x49b92a||_0x408595[_0x3d8bb5]===_0x3904d1([0x2a])));}function _0x22ac0f(){return _0x57d7ab&&_0x220ebc?new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe0bd43,_0x3cb21a)=>{_0x57d7ab[_0x3904d1([0x74,0x68,0x65,0x6e])](_0xe0bd43,_0x3cb21a),_0x220ebc[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x4b6bc2=>{_0x4b6bc2!=_0x3904d1([0x56,0x61,0x6c,0x69,0x64])&&_0xe0bd43(_0x4b6bc2);},_0x3cb21a);}):_0x57d7ab||_0x220ebc||_0x3904d1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x219756(_0x58b4b2,_0x5b4be3){return new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x469a67=>{if(_0x541d4c())return _0x469a67(_0x3904d1([0x56,0x61,0x6c,0x69,0x64]));_0x40a1c0(),_0x375b84[_0x3904d1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3904d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25d0cb=!0x1;const _0x549164=_0x3b0b86();function _0x4b2279(_0x899343){return!!_0x899343&&(typeof _0x899343===_0x3904d1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x899343===_0x3904d1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x899343[_0x3904d1([0x74,0x68,0x65,0x6e])]===_0x3904d1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x899343[_0x3904d1([0x63,0x61,0x74,0x63,0x68])]===_0x3904d1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe2c087(_0xc64b5f){_0x3281dc(_0xc64b5f)[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x2b0834=>{if(!_0x2b0834||_0x2b0834[_0x3904d1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3904d1([0x6f,0x6b]))return _0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30f182(_0x5989b8(_0x549164+_0x5b4be3))!=_0x2b0834[_0x3904d1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3904d1([0x56,0x61,0x6c,0x69,0x64]);})[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x13c24c=>(_0x3bf3dc(),_0x13c24c),()=>{const _0x2e6c3e=_0x1b138e();return null==_0x2e6c3e?(_0x3bf3dc(),_0x3904d1([0x56,0x61,0x6c,0x69,0x64])):_0x3904d1(_0x3754a3-_0x2e6c3e>(0x641f714c^_0x2efd83)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x469a67)[_0x3904d1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x469a67(_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e3224=0x40251bcc^_0x2efd83;function _0x3bf3dc(){const _0x3051bb=_0x3904d1([0x6c,0x6c,0x63,0x74,0x2d])+_0x30f182(_0x5989b8(_0x58b4b2)),_0x200fcb=_0x4e9709(_0x30f182(window[_0x3904d1([0x4d,0x61,0x74,0x68])][_0x3904d1([0x63,0x65,0x69,0x6c])](_0x3754a3/_0x5e3224)));window[_0x3904d1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3904d1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3051bb,_0x200fcb);}function _0x1b138e(){const _0x21da53=_0x3904d1([0x6c,0x6c,0x63,0x74,0x2d])+_0x30f182(_0x5989b8(_0x58b4b2)),_0x28d15f=window[_0x3904d1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3904d1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21da53);return _0x28d15f?window[_0x3904d1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e9709(_0x28d15f),0x10)*_0x5e3224:null;}function _0x3281dc(_0x56921b){return new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x70a6c2,_0x21fb65)=>{_0x56921b[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x70a6c2,_0x21fb65),window[_0x3904d1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21fb65,0x4012218c^_0x2efd83);});}}_0x375b84[_0x3904d1([0x6f,0x6e])](_0x3904d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x530987,_0x56e095)=>{if(_0x56e095[0x0]!=_0x58b4b2)return _0x469a67(_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x56e095[0x1]={..._0x56e095[0x1],[_0x3904d1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x549164};},{[_0x3904d1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3904d1([0x68,0x69,0x67,0x68])}),_0x375b84[_0x3904d1([0x6f,0x6e])](_0x3904d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e3869=>{_0x4b2279(_0x5e3869[_0x3904d1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25d0cb=!0x0,_0xe2c087(_0x5e3869[_0x3904d1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3904d1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3904d1([0x6c,0x6f,0x77])}),_0xde0272[_0x3904d1([0x74,0x68,0x65,0x6e])](()=>{_0x25d0cb||_0x469a67(_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x541d4c(){return _0x375b84[_0x3904d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3904d1([0x76,0x69,0x65,0x77])][_0x3904d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3904d1([0x61,0x75,0x74,0x6f]);}function _0x40a1c0(){_0x375b84[_0x3904d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3904d1([0x76,0x69,0x65,0x77])][_0x3904d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3904d1([0x61,0x75,0x74,0x6f]);}}function _0x7d4540(_0x5637a5){const _0x1a3db1=[new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56d17a=>setTimeout(_0x56d17a,0x401acb80^_0x2efd83)),_0xde0272[_0x3904d1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59232f=>{let _0x278cb1=0x0;_0x375b84[_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3904d1([0x6f,0x6e])](_0x3904d1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x7ab9b3,_0xc40b77)=>{_0xc40b77[0x0][_0x3904d1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x278cb1++,_0x278cb1==(0x4013f4b4^_0x2efd83)&&(_0x59232f(),_0x7ab9b3[_0x3904d1([0x6f,0x66,0x66])]());});}))];return window[_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3904d1([0x72,0x61,0x63,0x65])](_0x1a3db1)[_0x3904d1([0x74,0x68,0x65,0x6e])](()=>_0x5637a5);}async function _0x38e3f9(){await _0xde0272,_0x375b84[_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3904d1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25aefe,_0x375b84[_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3904d1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25aefe,_0x375b84[_0x3904d1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c0166(_0x3447c9){const _0x4722fd=_0x196c64();_0x375b84[_0x4722fd]=_0x3904d1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3447c9,_0x3447c9!=_0x3904d1([0x56,0x61,0x6c,0x69,0x64])&&_0x38e3f9();}function _0x196c64(){const _0x1c6f62=window[_0x3904d1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3904d1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3904d1([0x6e,0x6f,0x77])]())[_0x3904d1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3904d1([0x2e]),'');let _0x16e5d8=_0x3904d1([0x76]);for(let _0x4aee05=0x0;_0x4aee05<_0x1c6f62[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4aee05+=0x2){let _0x49ac90=window[_0x3904d1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c6f62[_0x3904d1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4aee05,_0x4aee05+0x2));_0x49ac90>=_0x20c3c3[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49ac90-=_0x20c3c3[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16e5d8+=_0x20c3c3[_0x49ac90];}return _0x16e5d8;}function _0x3cc870(){const _0x2767e4=_0x48782f[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e]));if(0x3!=_0x2767e4[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf015b6(_0x2767e4[0x1]);function _0xf015b6(_0x213296){const _0x477db4=_0x45aca7(_0x213296);return _0x477db4&&_0x11bfbf()?_0x477db4:null;function _0x11bfbf(){const _0x4def53=_0x477db4[_0x3904d1([0x6a,0x74,0x69])],_0xd94a93=window[_0x3904d1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4def53[_0x3904d1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4def53[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e2f56={..._0x477db4,[_0x3904d1([0x6a,0x74,0x69])]:_0x4def53[_0x3904d1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4def53[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e2f56[_0x3904d1([0x76,0x63])],_0x5989b8(_0x1e2f56)==_0xd94a93;}}}async function _0x1aaa36(){let _0x11f4e1=!0x0;try{const _0x1d5b34=_0x48782f[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e])),[_0x53b0c7,_0x191b71,_0xf6be8a]=_0x1d5b34;return _0xf2a31a(_0x53b0c7),await _0x1d75be(_0x53b0c7,_0x191b71,_0xf6be8a),_0x11f4e1;}catch(_0xd8b626){return!0x1;}function _0xf2a31a(_0x4944ea){const _0x1d40da=_0x45aca7(_0x4944ea);_0x1d40da&&_0x1d40da[_0x3904d1([0x61,0x6c,0x67])]==_0x3904d1([0x45,0x53,0x32,0x35,0x36])||(_0x11f4e1=!0x1);}async function _0x1d75be(_0x2d06f9,_0x142a21,_0xb970ba){const _0x20afb2=window[_0x3904d1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3904d1([0x66,0x72,0x6f,0x6d])](_0x3c9963(_0xb970ba),_0x50e599=>_0x50e599[_0x3904d1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39d1e5=new window[(_0x3904d1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3904d1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d06f9+_0x3904d1([0x2e])+_0x142a21),_0x530543=window[_0x3904d1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3904d1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x530543)return;const _0x2db45b=await _0x530543[_0x3904d1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3904d1([0x6a,0x77,0x6b]),_0x9d6d68,{[_0x3904d1([0x6e,0x61,0x6d,0x65])]:_0x3904d1([0x45,0x43,0x44,0x53,0x41]),[_0x3904d1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3904d1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3904d1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x530543[_0x3904d1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3904d1([0x6e,0x61,0x6d,0x65])]:_0x3904d1([0x45,0x43,0x44,0x53,0x41]),[_0x3904d1([0x68,0x61,0x73,0x68])]:{[_0x3904d1([0x6e,0x61,0x6d,0x65])]:_0x3904d1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2db45b,_0x20afb2,_0x39d1e5)||(_0x11f4e1=!0x1);}}function _0x45aca7(_0x32d513){return _0x32d513[_0x3904d1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3904d1([0x65,0x79]))?JSON[_0x3904d1([0x70,0x61,0x72,0x73,0x65])](_0x3c9963(_0x32d513)):null;}function _0x3c9963(_0x305e31){return window[_0x3904d1([0x61,0x74,0x6f,0x62])](_0x305e31[_0x3904d1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3904d1([0x2b]))[_0x3904d1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3904d1([0x2f])));}function _0x5989b8(_0x132df6){let _0x25063e=0x1505;function _0x4c4551(_0x27ec7d){for(let _0x5f53bb=0x0;_0x5f53bb<_0x27ec7d[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f53bb++){const _0x1b3cba=_0x27ec7d[_0x3904d1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5f53bb);_0x25063e=(_0x25063e<<0x5)+_0x25063e+_0x1b3cba,_0x25063e&=_0x25063e;}}function _0x31a022(_0x9a548f){Array[_0x3904d1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9a548f)?_0x9a548f[_0x3904d1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31a022):_0x9a548f&&typeof _0x9a548f==_0x3904d1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3904d1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9a548f)[_0x3904d1([0x73,0x6f,0x72,0x74])]()[_0x3904d1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c949f,_0x21b0d3])=>{_0x4c4551(_0x5c949f),_0x31a022(_0x21b0d3);}):_0x4c4551(window[_0x3904d1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9a548f));}return _0x31a022(_0x132df6),_0x25063e>>>0x0;}function _0x30f182(_0x74707e){return _0x74707e[_0x3904d1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3904d1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3904d1([0x30]));}function _0x4e9709(_0x226fdd){return _0x226fdd[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3904d1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3904d1([0x6a,0x6f,0x69,0x6e])]('');}function _0x25aefe(){}function _0x3904d1(_0x2f11fb){const _0x552439=_0x1b15;return _0x2f11fb[_0x552439(0xdb)](_0xe4c457=>String[_0x552439(0xbd)](_0xe4c457))[_0x552439(0xa8)]('');}_0x3c0166(await _0x30fbf1());}(this);}[_0x28f58e(0xbe)](){const _0x3aa3e1=_0x28f58e,_0xaad5d4=this[_0x3aa3e1(0xf0)][_0x3aa3e1(0xc8)][_0x3aa3e1(0xb8)];_0xaad5d4[_0x3aa3e1(0xbc)](_0x3aa3e1(0xda))&&_0xaad5d4[_0x3aa3e1(0xdf)](_0x3aa3e1(0xda),{'allowAttributes':[_0x3aa3e1(0xc9)]}),_0xaad5d4[_0x3aa3e1(0xbc)](_0x3aa3e1(0xf5))&&_0xaad5d4[_0x3aa3e1(0xdf)](_0x3aa3e1(0xf5),{'allowAttributes':[_0x3aa3e1(0xc9)]});}[_0x28f58e(0xd0)](){const _0xf9f8e6=_0x28f58e,_0x3e5e8c=this[_0xf9f8e6(0xf0)];_0x3e5e8c[_0xf9f8e6(0xef)][_0xf9f8e6(0xe0)](_0xf9f8e6(0xee))[_0xf9f8e6(0xaa)]({'model':_0xf9f8e6(0xc9),'view':_0xf9f8e6(0xa7)}),_0x3e5e8c[_0xf9f8e6(0xef)][_0xf9f8e6(0xe0)](_0xf9f8e6(0xd6))[_0xf9f8e6(0xe5)]({'model':{'key':_0xf9f8e6(0xc9),'value':_0x2e4aa0=>_0x2e4aa0[_0xf9f8e6(0xba)](_0xf9f8e6(0xa7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a2e2d=_0x3e5e8c[_0xf9f8e6(0xd8)][_0xf9f8e6(0xe1)](_0xf9f8e6(0xcc));_0x1a2e2d&&this[_0xf9f8e6(0xc1)](_0x1a2e2d,_0xf9f8e6(0xed),(_0x308c60,[_0x1783ad,_0x514753])=>{const _0x5b7ae1=_0xf9f8e6;_0x1783ad[_0x5b7ae1(0xb2)](_0x5b7ae1(0xc9),_0x514753);});}[_0x28f58e(0xea)](){const _0x39d8d6=_0x28f58e,_0x1d2dec=this[_0x39d8d6(0xf0)][_0x39d8d6(0xb4)][_0x39d8d6(0xe1)](_0x39d8d6(0xd3))||{},_0x10c221=this[_0x39d8d6(0xf0)][_0x39d8d6(0xb4)][_0x39d8d6(0xe1)](_0x39d8d6(0xce))||'';this[_0x39d8d6(0xdd)]=_0x3a37b6(_0x491152[_0x39d8d6(0xf2)],_0x39d8d6(0xe2),{..._0x1d2dec,'pubkey':_0x10c221,'ctx-name':_0x39d8d6(0xe6),'sourceList':'','imgOnly':_0x39d8d6(0xe9),'removeCopyright':_0x39d8d6(0xe9),'localeName':this[_0x39d8d6(0xf0)][_0x39d8d6(0xaf)][_0x39d8d6(0xd9)],'externalSourcesEmbedCss':_0x39d8d6(0xf8)}),this[_0x39d8d6(0xdd)][_0x39d8d6(0xf4)]=_0x4dd700=>{const _0x3027be=_0x39d8d6;if(_0x3027be(0xbf)==_0x4dd700)return _0x3027be(0xf9);},_0x491152[_0x39d8d6(0xf2)][_0x39d8d6(0xb5)][_0x39d8d6(0xb7)](this[_0x39d8d6(0xdd)]);}[_0x28f58e(0xf7)](){const _0x1c8126=_0x28f58e;this[_0x1c8126(0xb9)]=_0x3a37b6(_0x491152[_0x1c8126(0xf2)],_0x1c8126(0xf6),{'ctx-name':_0x1c8126(0xe6)}),_0x491152[_0x1c8126(0xf2)][_0x1c8126(0xb5)][_0x1c8126(0xb7)](this[_0x1c8126(0xb9)]);}[_0x28f58e(0xcb)](){const _0x4e79b7=_0x28f58e,_0x16c06a=this[_0x4e79b7(0xf0)][_0x4e79b7(0xd8)][_0x4e79b7(0xe1)](_0x4e79b7(0xdc));_0x16c06a&&this[_0x4e79b7(0xc1)](_0x16c06a,_0x4e79b7(0xd2),()=>{const _0x3e83bd=_0x4e79b7,_0xf4647a=this[_0x3e83bd(0xf0)][_0x3e83bd(0xc8)][_0x3e83bd(0xf2)][_0x3e83bd(0xc5)][_0x3e83bd(0xb3)]();_0xf4647a&&_0xf4647a[_0x3e83bd(0xba)](_0x3e83bd(0xc9))&&this[_0x3e83bd(0xf0)][_0x3e83bd(0xd7)][_0x3e83bd(0xc7)][_0x3e83bd(0xae)](_0x3e83bd(0xe8),()=>{const _0x14d4e2=_0x3e83bd;_0x4d9d90(this[_0x14d4e2(0xf0)],_0xf4647a);});});const _0x336b32=this[_0x4e79b7(0xf0)][_0x4e79b7(0xd8)][_0x4e79b7(0xe1)](_0x4e79b7(0xc6));_0x336b32&&this[_0x4e79b7(0xc1)](_0x336b32,_0x4e79b7(0xd2),()=>{const _0x4e7a42=_0x4e79b7,_0x1b0bb1=this[_0x4e7a42(0xf0)][_0x4e7a42(0xc8)][_0x4e7a42(0xf2)][_0x4e7a42(0xc5)][_0x4e7a42(0xb3)]();_0x1b0bb1&&_0x1b0bb1[_0x4e7a42(0xba)](_0x4e7a42(0xc9))&&this[_0x4e7a42(0xf0)][_0x4e7a42(0xd7)][_0x4e7a42(0xc7)][_0x4e7a42(0xae)](_0x4e7a42(0xe8),()=>{const _0x4d2737=_0x4e7a42;_0x4d9d90(this[_0x4d2737(0xf0)],_0x1b0bb1);});});}}