@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250405.0 → 0.0.0-nightly-20250407.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 _0x3821fe,Command as _0x2599c5}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1e56a0,IconGooglePhotos as _0x462ccb,IconGoogleDrive as _0x49dc0b,IconFacebook as _0x363a91,IconDropbox as _0x56493e,IconUploadcareLink as _0x389ca9,IconUploadcareImageUpload as _0x37d42b,IconError as et,IconUploadcareImageEdit as _0x2ed8e7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x10db66,MenuBarMenuListItemButtonView as _0x247083,View as _0x4f2214,FocusCycler as _0x48036d,Dialog as _0x331fd4,DialogViewPosition as _0x3cdd97,SpinnerView as _0x30566d,IconView as at,Notification as _0x2f4b79}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xcd8aa2,DomEmitterMixin as _0xe46be2,global as _0x3aee88,getAncestors as _0x232906,ObservableMixin as _0x1186de,createElement as _0x4d9f06,uid as _0x773cde}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x56015f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4b9161,info as _0x5ae453}from'@uploadcare/upload-client';import*as _0x3c93ea from'@uploadcare/file-uploader';var o=function(_0x47b711){return _0x47b711['Local']='local',_0x47b711['URL']='url',_0x47b711['Dropbox']='dropbox',_0x47b711['GDrive']='gdrive',_0x47b711['Facebook']='facebook',_0x47b711['GPhotos']='gphotos',_0x47b711['OneDrive']='onedrive',_0x47b711;}({});function _(_0x1ba111,_0x1526a6,_0x4f9edf){const t=_0x1ba111['t'],_0x1c7790=_0x1ba111['t'];switch(_0x1526a6){case o['Local']:return{'text':_0x1c7790('Insert'===_0x4f9edf?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1c7790('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x4f9edf?_0x1c7790('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1c7790('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1526a6;}}class e extends _0x3821fe{['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 _0x23d3d4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x382b94;for(const _0x29df61 in _0x23d3d4){const _0x95bcd8=_0x29df61,_0x4262a8=_0x23d3d4[_0x95bcd8];if('uploadcareLicenseKeyValid'==_0x4262a8||'uploadcareLicenseKeyInvalid'==_0x4262a8||'uploadcareLicenseKeyExpired'==_0x4262a8||'uploadcareLicenseKeyDomainLimit'==_0x4262a8||'uploadcareLicenseKeyNotAllowed'==_0x4262a8||'uploadcareLicenseKeyEvaluationLimit'==_0x4262a8||'uploadcareLicenseKeyTrialLimit'==_0x4262a8||'uploadcareLicenseKeyUsageLimit'==_0x4262a8){delete _0x23d3d4[_0x95bcd8],_0x382b94=_0x4262a8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x382b94&&_0x23d3d4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x382b94&&_0x23d3d4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x382b94&&_0x23d3d4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x418d97}=this,_0x207e7f=_0x418d97['commands']['get']('uploadcare');if(!_0x207e7f)return;const _0xdf95d1=this['_normalizeConfigSourceList'](_0x418d97['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x41e37e,_0x311b60)=>{const _0x2ed41b=this['_getIntegrationKey'](_0x311b60['type']);return _0x41e37e[_0x2ed41b]||(_0x41e37e[_0x2ed41b]=[]),_0x41e37e[_0x2ed41b]['push'](_0x311b60),_0x41e37e;},{});_0x418d97['plugins']['has']('ImageInsertUI')&&_0x418d97['commands']['get']('uploadcare')&&Object['entries'](_0xdf95d1)['forEach'](([_0x318e2a,_0x47a71f])=>{_0x418d97['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x318e2a,'observable':()=>_0x207e7f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x47a71f),'formViewCreator':()=>this['_createDropdownButtons'](_0x47a71f),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x47a71f),'override':'assetManager'!==_0x318e2a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3ec817){const {locale:_0x3078c0}=this['editor'];return _0x3ec817['map'](_0x39ead8=>{const _0x3a5854=_(_0x3078c0,_0x39ead8,'Insert');switch(_0x39ead8){case o['Local']:return{'icon':_0x37d42b,'type':o['Local'],..._0x3a5854};case o['URL']:return{'icon':_0x389ca9,'type':o['URL'],..._0x3a5854};case o['Dropbox']:return{'icon':_0x56493e,'type':o['Dropbox'],..._0x3a5854};case o['Facebook']:return{'icon':_0x363a91,'type':o['Facebook'],..._0x3a5854};case o['GDrive']:return{'icon':_0x49dc0b,'type':o['GDrive'],..._0x3a5854};case o['GPhotos']:return{'icon':_0x462ccb,'type':o['GPhotos'],..._0x3a5854};case o['OneDrive']:return{'icon':_0x1e56a0,'type':o['OneDrive'],..._0x3a5854};}});}['_getIntegrationKey'](_0x31c355){switch(_0x31c355){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4eb859,_0x26f25b){const _0x3da41b=this['editor'],_0x585502=new _0x4eb859(_0x3da41b['locale']),_0x5d3744=_0x3da41b['commands']['get']('uploadcare');return _0x585502['bind']('isEnabled')['to'](_0x5d3744),_0x585502['on']('execute',()=>{_0x5d3744['execute'](_0x26f25b);}),_0x585502;}['_createToolbarButton'](_0x25652c){const {locale:_0x10d37a}=this['editor'],_0x4988b1=this['editor']['plugins']['get']('ImageInsertUI'),_0x51e5e0=_0x25652c[0x0],_0x44fac7=this['_createButton'](_0x10db66,_0x51e5e0['type']);return _0x44fac7['icon']=_0x51e5e0['icon'],_0x44fac7['bind']('label')['to'](_0x4988b1,'isImageSelected',_0x51a103=>_(_0x10d37a,_0x51e5e0['type'],_0x51a103?'Replace':'Insert')['text']),_0x44fac7['tooltip']=!0x0,_0x44fac7;}['_createDropdownButtons'](_0x5d5bb1){const {locale:_0x55c89a}=this['editor'],_0x146058=this['editor']['plugins']['get']('ImageInsertUI');return _0x5d5bb1['map'](_0x1879ff=>{const _0x99d8ee=this['_createButton'](_0x10db66,_0x1879ff['type']);return _0x99d8ee['withText']=!0x0,_0x99d8ee['icon']=_0x1879ff['icon'],_0x99d8ee['bind']('label')['to'](_0x146058,'isImageSelected',_0x15f4e2=>_(_0x55c89a,_0x1879ff['type'],_0x15f4e2?'Replace':'Insert')['text']),_0x99d8ee;});}['_createMenuBarButtons'](_0x37a275){return _0x37a275['map'](_0x1a17f7=>{const _0x178a0e=this['_createButton'](_0x247083,_0x1a17f7['type']);return _0x178a0e['icon']=_0x1a17f7['icon'],_0x178a0e['label']=_0x1a17f7['shortText'],_0x178a0e;});}}class q extends _0x4f2214{['focusTracker'];['focusCycler'];constructor(_0x4f89ad){super(_0x4f89ad),this['focusTracker']=new _0xcd8aa2(),this['focusCycler']=new _0x48036d({'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(_0x3e1ea6){super(_0x3e1ea6),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(_0x4dc376,_0x351491){const _0xb22fdc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x34ec7f=>_0x34ec7f<=_0x351491)['map'](_0x105cf6=>_0x4dc376['replace'](/\/$/,'')+'/-/resize/'+_0x105cf6+'x/\x20'+_0x105cf6+'w');return{'imageFallbackUrl':_0x4dc376,'imageSources':[{'srcset':_0xb22fdc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x351491+'px)\x20100vw,\x20'+_0x351491+'px','type':'image/webp'}]};}function A(_0x146afc,_0x43e1f6,_0x1c1b9c){const _0xf4ff4e=_0x146afc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xf4ff4e?parseInt(_0xf4ff4e[0x1],0xa):_0x43e1f6,'height':_0xf4ff4e?parseInt(_0xf4ff4e[0x2],0xa):_0x1c1b9c};}function m(_0x58f7ca,_0x1d49f1){const _0x11551b=Object['create'](_0xe46be2),_0x4b26a0=_0x58f7ca['plugins']['get']('ImageUtils'),_0x2a7912=_0x58f7ca['editing']['mapper']['toViewElement'](_0x1d49f1),_0x499f9a=_0x4b26a0['findViewImgElement'](_0x2a7912),_0x373a36=_0x58f7ca['editing']['view']['domConverter']['viewToDom'](_0x499f9a),_0x3a6af6=_0x1d49f1['getAttribute']('width'),_0x105489=_0x1d49f1['getAttribute']('height'),_0x4d9803='image-processing';_0x58f7ca['editing']['view']['change'](_0x19b565=>{_0x19b565['addClass'](_0x4d9803,_0x2a7912),_0x19b565['setStyle']('aspect-ratio',_0x3a6af6+'/'+_0x105489,_0x499f9a);}),_0x11551b['listenTo'](_0x373a36,'load',()=>{_0x11551b['stopListening'](_0x373a36,'load'),_0x58f7ca['editing']['view']['change'](_0x42b234=>{_0x42b234['removeClass'](_0x4d9803,_0x2a7912),_0x42b234['removeStyle']('aspect-ratio',_0x499f9a);});});}function V(_0x3b393d){if(Array['isArray'](_0x3b393d)){const _0x5e4291=_0x3b393d['map'](V);return _0x218c8e=>_0x5e4291['some'](_0x356c4d=>_0x356c4d(_0x218c8e));}if('origin'==_0x3b393d){const _0x5b7c27=_0x3aee88['window']['location']['origin'];return _0x51e801=>new URL(_0x51e801,_0x3aee88['document']['baseURI'])['origin']==_0x5b7c27;}return'function'==typeof _0x3b393d?_0x3b393d:_0x3b393d instanceof RegExp?_0x4e84b1=>!(!_0x4e84b1['match'](_0x3b393d)&&!_0x4e84b1['replace'](/^https?:\/\//,'')['match'](_0x3b393d)):()=>!0x1;}function F(_0xad2073,_0x931048){return _0x232906(_0xad2073['target'])['includes'](_0x931048);}class l extends/* #__PURE__ -- @preserve */
24
- _0x1186de(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5d0f57,_0x3b904d,_0x46d44f){super(),this['_editor']=_0x5d0f57,this['_editing']=_0x3b904d,this['_dialog']=_0x5d0f57['plugins']['get'](_0x331fd4),this['_api']=_0x3b904d['ctxElement']['getAPI'](),this['_type']=_0x46d44f,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:_0xbabeb,model:_0x550cd6}=this['_editor'],_0x2849bf=_0x550cd6['document']['selection']['getSelectedElement'](),_0x36a7d1=_0x2849bf&&(_0x2849bf['is']('element','imageBlock')||_0x2849bf['is']('element','imageInline'));this['_formView']=new S(_0xbabeb),this['_dialog']['show']({'id':'uploadCare','icon':_0x37d42b,'title':_(_0xbabeb,this['_type'],_0x36a7d1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3cdd97['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4f8f75=>!F(_0x4f8f75,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2f6e92}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4c584c=>{const _0x2aaa7c=_0x2f6e92['length'];for(const _0x34a4b5 of _0x2f6e92){const _0xd6404d=_0x34a4b5===_0x2f6e92[_0x2aaa7c-0x1],{cdnUrl:_0x1d77f5,fileInfo:_0x27903b}=_0x34a4b5;if(!_0x1d77f5||!_0x27903b)continue;const {width:_0x40cdc7,height:_0x36a07e}=_0x27903b['imageInfo'],_0x52c10d=A(_0x1d77f5,_0x40cdc7,_0x36a07e),_0x44f036=E(_0x1d77f5,_0x52c10d['width']),_0x79f4b4={'id':_0x27903b['uuid'],'type':'image','attributes':{'imageDimension':_0x52c10d,..._0x44f036}};this['_insertAsset'](_0x79f4b4,_0xd6404d,_0x4c584c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x101924=>{'idle'===_0x101924['detail']['status']&&!_0x101924['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x11fcea,_0x24870d,_0x5d51d9){const _0x2e3360=this['_editor']['model']['document']['selection'],_0x199421=_0x2e3360['getSelectedElement'](),_0x4c578c=!(!_0x199421||!_0x199421['is']('element','imageInline'));_0x5d51d9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x11fcea,_0x4c578c),_0x24870d||_0x5d51d9['setSelection'](_0x2e3360['getLastPosition']());}['_insertImage'](_0x1d674a,_0x47c9a2){const _0x447a80=this['_editor'],{imageDimension:_0x5d6006,imageFallbackUrl:_0x4e69c3,imageSources:_0x49206f}=_0x1d674a['attributes'];_0x447a80['execute']('insertImage',{'imageType':_0x47c9a2?'imageInline':null,'source':{'uploadcareImageId':_0x1d674a['id'],'src':_0x4e69c3,'sources':_0x49206f,..._0x5d6006}});}}class n extends _0x2599c5{['_editing'];['_controller']=null;static get['requires'](){return[_0x331fd4,i];}constructor(_0x213a2d){super(_0x213a2d),this['_editing']=_0x213a2d['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1d2f13){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1d2f13);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x491759,publicKey:_0x1fec8d,signal:_0x3193f7,onProgress:_0x476a92}){return _0x4b9161(_0x491759,{'publicKey':_0x1fec8d,'store':'auto','signal':_0x3193f7,'onProgress':_0x476a92});}static['getInfo'](_0x5626ea,_0x4aba35){return _0x5ae453(_0x5626ea,_0x4aba35);}}class p extends _0x3821fe{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x56015f,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2f086f=this['editor'];if(!!!_0x2f086f['config']['get']('uploadcare'))return;_0x2f086f['plugins']['get'](_0x56015f)['createUploadAdapter']=_0x530e9b=>new x(_0x530e9b,_0x2f086f),_0x2f086f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x278b03,{imageElement:_0x20f58b,data:_0x3d5a1b})=>{_0x2f086f['model']['change'](_0x1eacb4=>{_0x1eacb4['setAttribute']('uploadcareImageId',_0x3d5a1b['uploadcareImageId'],_0x20f58b);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2a97b8,_0xa862d8){this['loader']=_0x2a97b8,this['editor']=_0xa862d8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x21243d=this['editor']['config']['get']('uploadcare.pubkey'),_0xe7d062=await this['loader']['file'];return C['upload']({'file':_0xe7d062,'publicKey':_0x21243d,'signal':this['controller']['signal'],'onProgress':_0x5ce3b4=>{_0x5ce3b4&&_0x5ce3b4['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5ce3b4['value']);}})['then'](async _0x4e286b=>{const {imageFallbackUrl:_0x35d7c1,imageSources:_0x11fa58}=E(_0x4e286b['cdnUrl'],_0x4e286b['imageInfo']['width']);return{'uploadcareImageId':_0x4e286b['uuid'],'default':_0x35d7c1,'sources':_0x11fa58};})['catch'](()=>{const _0x1f80d7=t('Cannot\x20upload\x20file:')+('\x20'+_0xe7d062['name']+'.');return Promise['reject'](_0x1f80d7);});}['abort'](){this['controller']['abort']();}}class i extends _0x3821fe{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x331fd4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x7042f0=this['editor'];_0x7042f0['commands']['add']('uploadcare',new n(_0x7042f0));}['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 _0xe40678=_0x3aee88['document']['querySelector']('input[uploadcare-file-input]');_0xe40678&&_0xe40678['remove']();}),async function(_0x4bafa3){const _0xe96b6f=_0x3f05ff([0x72,0x5a,0x4a,0x6c,0x74,0x50,0x70,0x66,0x43,0x76,0x65,0x44,0x39,0x6f,0x47,0x59,0x69,0x54,0x42,0x6d,0x75,0x35,0x77,0x78,0x67,0x30,0x73,0x4d,0x32,0x38,0x6e,0x46,0x4b,0x56,0x7a,0x51,0x71,0x64,0x6a,0x36,0x79,0x41,0x62,0x6b,0x63,0x68,0x45,0x53,0x31,0x4f,0x61,0x58,0x48,0x34,0x33,0x49,0x4e,0x55,0x52,0x37,0x57,0x4c]),_0x3f764a=0x388f4fdc,_0x41db95=0x38882bf4^_0x3f764a,_0x3e203b=window[_0x3f05ff([0x44,0x61,0x74,0x65])][_0x3f05ff([0x6e,0x6f,0x77])](),_0x18b9fc=_0x4bafa3[_0x3f05ff([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30e593=new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x196fbc=>{_0x18b9fc[_0x3f05ff([0x6f,0x6e,0x63,0x65])](_0x3f05ff([0x72,0x65,0x61,0x64,0x79]),_0x196fbc);}),_0x291b13={[_0x3f05ff([0x6b,0x74,0x79])]:_0x3f05ff([0x45,0x43]),[_0x3f05ff([0x75,0x73,0x65])]:_0x3f05ff([0x73,0x69,0x67]),[_0x3f05ff([0x63,0x72,0x76])]:_0x3f05ff([0x50,0x2d,0x32,0x35,0x36]),[_0x3f05ff([0x78])]:_0x3f05ff([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]),[_0x3f05ff([0x79])]:_0x3f05ff([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]),[_0x3f05ff([0x61,0x6c,0x67])]:_0x3f05ff([0x45,0x53,0x32,0x35,0x36])},_0x2c74c9=_0x18b9fc[_0x3f05ff([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f05ff([0x67,0x65,0x74])](_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a7214(){let _0x30cfa7,_0x519544=null,_0x2a69f3=null;try{if(_0x2c74c9==_0x3f05ff([0x47,0x50,0x4c]))return _0x3f05ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30cfa7=_0x272658(),!_0x30cfa7)return _0x3f05ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30cfa7[_0x3f05ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a69f3=_0x51fe80(_0x30cfa7[_0x3f05ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30cfa7[_0x3f05ff([0x6a,0x74,0x69])])),await _0x44d927()?_0x377eac()?_0x3bcc98()?_0x3f05ff([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b5c12()?(_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f05ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x519544=_0x5781e1(_0x3f05ff([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f05ff([0x74,0x72,0x69,0x61,0x6c])&&(_0x519544=_0x5781e1(_0x3f05ff([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37a6c2()):_0x3f05ff([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f05ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f05ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x57d0f7){return _0x3f05ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3bcc98(){const _0x1b87f8=[_0x3f05ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f05ff([0x74,0x72,0x69,0x61,0x6c])][_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e203b/0x3e8:0xe10*_0x41db95;return _0x30cfa7[_0x3f05ff([0x65,0x78,0x70])]<_0x1b87f8;}function _0x377eac(){const _0x1e4c71=_0x30cfa7[_0x3f05ff([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1e4c71&&(!!_0x1e4c71[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f05ff([0x2a]))||!!_0x1e4c71[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f05ff([0x55,0x50,0x4c,0x43])));}function _0x3b5c12(){const _0x5291be=_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5291be||0x0==_0x5291be[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e67f1}=new URL(window[_0x3f05ff([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5291be[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e67f1))return!0x0;const _0x19b26d=_0x1e67f1[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e]));return _0x5291be[_0x3f05ff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44ee37=>_0x44ee37[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f05ff([0x2a])))[_0x3f05ff([0x6d,0x61,0x70])](_0x2ae65c=>_0x2ae65c[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e])))[_0x3f05ff([0x73,0x6f,0x6d,0x65])](_0xd3ee07=>_0x19b26d[_0x3f05ff([0x65,0x76,0x65,0x72,0x79])]((_0x2a5764,_0x5899bf)=>_0xd3ee07[_0x5899bf]===_0x2a5764||_0xd3ee07[_0x5899bf]===_0x3f05ff([0x2a])));}function _0x37a6c2(){return _0x519544&&_0x2a69f3?new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ad35f,_0x20bada)=>{_0x519544[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x1ad35f,_0x20bada),_0x2a69f3[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x4ecf1e=>{_0x4ecf1e!=_0x3f05ff([0x56,0x61,0x6c,0x69,0x64])&&_0x1ad35f(_0x4ecf1e);},_0x20bada);}):_0x519544||_0x2a69f3||_0x3f05ff([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51fe80(_0x592871,_0x485af2){return new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e7f5d=>{if(_0x2b84d3())return _0x4e7f5d(_0x3f05ff([0x56,0x61,0x6c,0x69,0x64]));_0xc4f58b(),_0x18b9fc[_0x3f05ff([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f05ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c03ff=!0x1;const _0x1c0b34=_0x773cde();function _0x5c769d(_0x233957){return!!_0x233957&&(typeof _0x233957===_0x3f05ff([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x233957===_0x3f05ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x233957[_0x3f05ff([0x74,0x68,0x65,0x6e])]===_0x3f05ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x233957[_0x3f05ff([0x63,0x61,0x74,0x63,0x68])]===_0x3f05ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5dd44e(_0x37e160){_0x3b54b9(_0x37e160)[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x557edd=>{if(!_0x557edd||_0x557edd[_0x3f05ff([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f05ff([0x6f,0x6b]))return _0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x47c454(_0x483ce5(_0x1c0b34+_0x485af2))!=_0x557edd[_0x3f05ff([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f05ff([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x47ef42=>(_0x4976d0(),_0x47ef42),()=>{const _0x4de38d=_0x3b03ce();return null==_0x4de38d?(_0x4976d0(),_0x3f05ff([0x56,0x61,0x6c,0x69,0x64])):_0x3f05ff(_0x3e203b-_0x4de38d>(0x1c83cbdc^_0x3f764a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x4e7f5d)[_0x3f05ff([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e7f5d(_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a7aba=0x38b9a15c^_0x3f764a;function _0x4976d0(){const _0x4e81b7=_0x3f05ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x47c454(_0x483ce5(_0x592871)),_0x36f6d7=_0x152932(_0x47c454(window[_0x3f05ff([0x4d,0x61,0x74,0x68])][_0x3f05ff([0x63,0x65,0x69,0x6c])](_0x3e203b/_0x4a7aba)));window[_0x3f05ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f05ff([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e81b7,_0x36f6d7);}function _0x3b03ce(){const _0x43f194=_0x3f05ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x47c454(_0x483ce5(_0x592871)),_0xd9bd39=window[_0x3f05ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f05ff([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43f194);return _0xd9bd39?window[_0x3f05ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x152932(_0xd9bd39),0x10)*_0x4a7aba:null;}function _0x3b54b9(_0x5dfd69){return new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xeae280,_0x1ba687)=>{_0x5dfd69[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0xeae280,_0x1ba687),window[_0x3f05ff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ba687,0x388e9b1c^_0x3f764a);});}}_0x18b9fc[_0x3f05ff([0x6f,0x6e])](_0x3f05ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f8b67,_0x57272d)=>{if(_0x57272d[0x0]!=_0x592871)return _0x4e7f5d(_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57272d[0x1]={..._0x57272d[0x1],[_0x3f05ff([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c0b34};},{[_0x3f05ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f05ff([0x68,0x69,0x67,0x68])}),_0x18b9fc[_0x3f05ff([0x6f,0x6e])](_0x3f05ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ec7b1=>{_0x5c769d(_0x1ec7b1[_0x3f05ff([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c03ff=!0x0,_0x5dd44e(_0x1ec7b1[_0x3f05ff([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f05ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f05ff([0x6c,0x6f,0x77])}),_0x30e593[_0x3f05ff([0x74,0x68,0x65,0x6e])](()=>{_0x3c03ff||_0x4e7f5d(_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b84d3(){return _0x18b9fc[_0x3f05ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f05ff([0x76,0x69,0x65,0x77])][_0x3f05ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f05ff([0x61,0x75,0x74,0x6f]);}function _0xc4f58b(){_0x18b9fc[_0x3f05ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f05ff([0x76,0x69,0x65,0x77])][_0x3f05ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f05ff([0x61,0x75,0x74,0x6f]);}}function _0x5781e1(_0x10db24){const _0x296cfd=[new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x302513=>setTimeout(_0x302513,0x38867110^_0x3f764a)),_0x30e593[_0x3f05ff([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c0222=>{let _0xc53160=0x0;_0x18b9fc[_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f05ff([0x6f,0x6e])](_0x3f05ff([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d1319,_0x4efcf7)=>{_0x4efcf7[0x0][_0x3f05ff([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc53160++,_0xc53160==(0x388f4e24^_0x3f764a)&&(_0x1c0222(),_0x2d1319[_0x3f05ff([0x6f,0x66,0x66])]());});}))];return window[_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f05ff([0x72,0x61,0x63,0x65])](_0x296cfd)[_0x3f05ff([0x74,0x68,0x65,0x6e])](()=>_0x10db24);}async function _0x3ed2f1(){await _0x30e593,_0x18b9fc[_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f05ff([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1948e5,_0x18b9fc[_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f05ff([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1948e5,_0x18b9fc[_0x3f05ff([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ade63(_0x519941){const _0x4e3f66=_0x2dcea0();_0x18b9fc[_0x4e3f66]=_0x3f05ff([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x519941,_0x519941!=_0x3f05ff([0x56,0x61,0x6c,0x69,0x64])&&_0x3ed2f1();}function _0x2dcea0(){const _0x56e884=window[_0x3f05ff([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f05ff([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f05ff([0x6e,0x6f,0x77])]())[_0x3f05ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f05ff([0x2e]),'');let _0x26ba18=_0x3f05ff([0x72]);for(let _0xaa2a95=0x0;_0xaa2a95<_0x56e884[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xaa2a95+=0x2){let _0x1e6cc9=window[_0x3f05ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56e884[_0x3f05ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xaa2a95,_0xaa2a95+0x2));_0x1e6cc9>=_0xe96b6f[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e6cc9-=_0xe96b6f[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26ba18+=_0xe96b6f[_0x1e6cc9];}return _0x26ba18;}function _0x272658(){const _0xed67e9=_0x2c74c9[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e]));if(0x3!=_0xed67e9[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa7c0d2(_0xed67e9[0x1]);function _0xa7c0d2(_0x102c84){const _0x23be28=_0x303954(_0x102c84);return _0x23be28&&_0x486f78()?_0x23be28:null;function _0x486f78(){const _0x27b8e1=_0x23be28[_0x3f05ff([0x6a,0x74,0x69])],_0x1fe08d=window[_0x3f05ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27b8e1[_0x3f05ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27b8e1[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3cd81d={..._0x23be28,[_0x3f05ff([0x6a,0x74,0x69])]:_0x27b8e1[_0x3f05ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27b8e1[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3cd81d[_0x3f05ff([0x76,0x63])],_0x483ce5(_0x3cd81d)==_0x1fe08d;}}}async function _0x44d927(){let _0x471544=!0x0;try{const _0x3625f3=_0x2c74c9[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e])),[_0x57b7ab,_0x2270b1,_0x516d27]=_0x3625f3;return _0x5ce0a9(_0x57b7ab),await _0x13d794(_0x57b7ab,_0x2270b1,_0x516d27),_0x471544;}catch(_0x1faf17){return!0x1;}function _0x5ce0a9(_0x44b4db){const _0x576f30=_0x303954(_0x44b4db);_0x576f30&&_0x576f30[_0x3f05ff([0x61,0x6c,0x67])]==_0x3f05ff([0x45,0x53,0x32,0x35,0x36])||(_0x471544=!0x1);}async function _0x13d794(_0xce3d48,_0x1aaf28,_0x49657f){const _0x49ee46=window[_0x3f05ff([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f05ff([0x66,0x72,0x6f,0x6d])](_0x3c8f30(_0x49657f),_0x550c86=>_0x550c86[_0x3f05ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f67c3=new window[(_0x3f05ff([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f05ff([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xce3d48+_0x3f05ff([0x2e])+_0x1aaf28),_0x1ea97d=window[_0x3f05ff([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f05ff([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ea97d)return;const _0x9de8c0=await _0x1ea97d[_0x3f05ff([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f05ff([0x6a,0x77,0x6b]),_0x291b13,{[_0x3f05ff([0x6e,0x61,0x6d,0x65])]:_0x3f05ff([0x45,0x43,0x44,0x53,0x41]),[_0x3f05ff([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f05ff([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f05ff([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ea97d[_0x3f05ff([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f05ff([0x6e,0x61,0x6d,0x65])]:_0x3f05ff([0x45,0x43,0x44,0x53,0x41]),[_0x3f05ff([0x68,0x61,0x73,0x68])]:{[_0x3f05ff([0x6e,0x61,0x6d,0x65])]:_0x3f05ff([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9de8c0,_0x49ee46,_0x1f67c3)||(_0x471544=!0x1);}}function _0x303954(_0x29c807){return _0x29c807[_0x3f05ff([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f05ff([0x65,0x79]))?JSON[_0x3f05ff([0x70,0x61,0x72,0x73,0x65])](_0x3c8f30(_0x29c807)):null;}function _0x3c8f30(_0x2c3019){return window[_0x3f05ff([0x61,0x74,0x6f,0x62])](_0x2c3019[_0x3f05ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f05ff([0x2b]))[_0x3f05ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f05ff([0x2f])));}function _0x483ce5(_0x187c3c){let _0x391d47=0x1505;function _0x147c03(_0x3cc82f){for(let _0x4df009=0x0;_0x4df009<_0x3cc82f[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4df009++){const _0x19ecf0=_0x3cc82f[_0x3f05ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4df009);_0x391d47=(_0x391d47<<0x5)+_0x391d47+_0x19ecf0,_0x391d47&=_0x391d47;}}function _0x38cea9(_0x5b155f){Array[_0x3f05ff([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b155f)?_0x5b155f[_0x3f05ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38cea9):_0x5b155f&&typeof _0x5b155f==_0x3f05ff([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f05ff([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b155f)[_0x3f05ff([0x73,0x6f,0x72,0x74])]()[_0x3f05ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x511a5e,_0x5bc8fa])=>{_0x147c03(_0x511a5e),_0x38cea9(_0x5bc8fa);}):_0x147c03(window[_0x3f05ff([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b155f));}return _0x38cea9(_0x187c3c),_0x391d47>>>0x0;}function _0x47c454(_0x3aea5d){return _0x3aea5d[_0x3f05ff([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f05ff([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f05ff([0x30]));}function _0x152932(_0x5154da){return _0x5154da[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f05ff([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f05ff([0x6a,0x6f,0x69,0x6e])]('');}function _0x1948e5(){}function _0x3f05ff(_0xc5d5e4){return _0xc5d5e4['map'](_0x101c86=>String['fromCharCode'](_0x101c86))['join']('');}_0x3ade63(await _0x2a7214());}(this);}['_initSchema'](){const _0xb9d63e=this['editor']['model']['schema'];_0xb9d63e['isRegistered']('imageBlock')&&_0xb9d63e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xb9d63e['isRegistered']('imageInline')&&_0xb9d63e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5a70ed=this['editor'];_0x5a70ed['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5a70ed['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x33a063=>_0x33a063['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f0a72=_0x5a70ed['commands']['get']('replaceImageSource');_0x2f0a72&&this['listenTo'](_0x2f0a72,'cleanupImage',(_0x5b02c8,[_0x269370,_0xf3bab3])=>{_0x269370['removeAttribute']('uploadcareImageId',_0xf3bab3);});}['_initConfig'](){const _0x23c5b8=this['editor']['config']['get']('uploadcare.uploader')||{},_0x29cda7=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4d9f06(_0x3aee88['document'],'uc-config',{..._0x23c5b8,'pubkey':_0x29cda7,'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']=_0xbd2bef=>{if('closeMax'==_0xbd2bef)return'#uc-icon-arrow-down';},_0x3aee88['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4d9f06(_0x3aee88['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3aee88['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5ef235=this['editor']['commands']['get']('insertImage');_0x5ef235&&this['listenTo'](_0x5ef235,'execute',()=>{const _0x4314d8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4314d8&&_0x4314d8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4314d8);});});const _0x28653a=this['editor']['commands']['get']('uploadcareImageReplace');_0x28653a&&this['listenTo'](_0x28653a,'execute',()=>{const _0x33d9d0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x33d9d0&&_0x33d9d0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x33d9d0);});});}}class u extends _0x3821fe{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b7b8f){super(_0x5b7b8f),_0x5b7b8f['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3c93ea['defineComponents'](_0x3c93ea);}}class ta extends _0x4f2214{constructor(_0x1fd0ba){super(_0x1fd0ba);const t=_0x1fd0ba['t'],_0x1b14ad=this['bindTemplate'],_0x300831=new _0x30566d();_0x300831['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':[_0x300831,{'text':_0x1b14ad['to']('imageUploadProgress',_0x252a33=>t('Loading\x20image...')+'\x20('+(_0x252a33||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 _0x4f2214{constructor(_0x2033be){super(_0x2033be);const t=_0x2033be['t'];this['set']('errorType',null);const _0x26bd98=new _0x10db66(_0x2033be);_0x26bd98['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x26bd98['withText']=!0x0,_0x26bd98['class']='ck-button-action',_0x26bd98['on']('execute',()=>{this['fire']('retry');}),_0x26bd98['bind']('isVisible')['to'](this,'errorType',_0x808174=>'NotFound'!==_0x808174);const _0x28cfd7=new at();_0x28cfd7['content']=et,_0x28cfd7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x242163=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':[_0x28cfd7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x242163['to']('errorType',_0x533639=>t('NotFound'!==_0x533639?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x26bd98]},{'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 _0x4f2214{constructor(_0x4f2f02,_0x141d88){super(_0x4f2f02);const _0x2c96f8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x141d88,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2c96f8['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1bf10d,_0x3f8052,_0x840525){super(_0x1bf10d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x1bf10d),this['_errorView']=new rt(_0x1bf10d),this['_editingView']=new tt(_0x1bf10d,_0x840525),this['_focusableView']=new _0x4f2214(_0x1bf10d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3f8052),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'],_0xc5c4a7=>{this['_addUploadcareImageEditorListeners'](_0xc5c4a7);});}),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'](_0x12a73d,_0x26acfe){const _0x43c8c7='uc-cloud-image-editor',_0x264a0e=_0x12a73d['querySelector'](_0x43c8c7);if(_0x264a0e)return _0x26acfe(_0x264a0e);const _0x58f613=new MutationObserver(_0x2a1dc7=>{const _0x293997=_0x2a1dc7['filter'](_0x528750=>_0x528750['target']===_0x12a73d&&_0x528750['addedNodes']['length']>0x0&&_0x528750['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43c8c7);_0x293997['length']&&(_0x58f613['disconnect'](),_0x26acfe(_0x293997[0x0]['addedNodes'][0x0]));});_0x58f613['observe'](_0x12a73d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x18dfc2){_0x18dfc2['addEventListener']('apply',_0x10a71e=>{this['fire']('apply',{'imageSrc':_0x10a71e['detail']['cdnUrl']});}),_0x18dfc2['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x1186de(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2bda3d,_0x4d0946,_0x3947ca){super(),this['_editor']=_0x2bda3d,this['_dialog']=_0x4d0946,this['_imageElement']=_0x3947ca,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 _0x185bcb=this['_imageElement'],_0x40343d=_0x185bcb['getAttribute']('uploadcareImageId'),_0x1f9795=_0x185bcb['getAttribute']('src');if(_0x40343d)await this['_loadImageInfo'](_0x40343d,_0x1f9795);else{if(this['_imageCache']['has'](_0x1f9795)){const _0x37eea5=this['_imageCache']['get'](_0x1f9795);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x37eea5['url'],this['imageDimension']=_0x37eea5['dimension'],this['imageId']=_0x37eea5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x164db9}=this['_editor'],t=_0x164db9['t'],_0x4507cb=new Z(_0x164db9,this['imageStatus'],this['_attributes']);_0x4507cb['bind']('status')['to'](this,'imageStatus'),_0x4507cb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4507cb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4507cb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4507cb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2ed8e7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4507cb,'position':_0x3cdd97['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4507cb['focus']();},'onHide':()=>{_0x4507cb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x18731a=>!F(_0x18731a,_0x4507cb['element'])}});}['_loadImageInfo'](_0x267102,_0x120218){return C['getInfo'](_0x267102,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x23ed9b=>{const {width:_0x50a296,height:_0x20d167}=_0x23ed9b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x120218,this['imageDimension']={'width':_0x50a296,'height':_0x20d167},this['imageId']=_0x267102;})['catch'](_0xea0a14=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xea0a14['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x58331b,_0x5735a8){return this['_getImageAsFile'](_0x58331b)['then'](_0x5a55d7=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5735a8['signal'],'file':_0x5a55d7,'onProgress':_0x166890=>{_0x166890&&_0x166890['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x166890['value']));}}))['then'](_0x344e12=>{const {width:_0x2695de,height:_0x2cf547}=_0x344e12['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x344e12['cdnUrl'],this['imageDimension']={'width':_0x2695de,'height':_0x2cf547},this['imageId']=_0x344e12['uuid'],this['imageUploadProgress']=null;const _0x1a00b0=_0x58331b['getAttribute']('src');this['_imageCache']['set'](_0x1a00b0,{'id':_0x344e12['uuid'],'url':_0x344e12['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x29fd77=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x29fd77['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x51c756,_0x55984d){_0x51c756['on']('apply',(_0x1e5a90,_0x4e10fe)=>{this['_replaceImage'](_0x55984d,_0x4e10fe['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x51c756['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x51c756['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x53789f,_0x101cf1,_0x39476d){const _0x4e8ed9=this['_editor'],{width:_0x4d1be0,height:_0x3b8647}=A(_0x101cf1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x492565,imageSources:_0x4f3147}=E(_0x101cf1,_0x4d1be0);_0x4e8ed9['model']['change'](_0x451eed=>{if('$graveyard'===_0x53789f['root']['rootName']){_0x4e8ed9['execute']('insertImage',{'imageType':_0x53789f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x53789f['getAttributes']()),'uploadcareImageId':_0x39476d,'src':_0x492565,'sources':_0x4f3147,'width':_0x4d1be0,'height':_0x3b8647}});const _0x424d70=_0x53789f['getChildren']();_0x53789f=_0x4e8ed9['model']['document']['selection']['getSelectedElement']();for(const _0x23cf9e of _0x424d70)_0x451eed['append'](_0x451eed['cloneElement'](_0x23cf9e),_0x53789f);}else _0x451eed['setSelection'](_0x53789f,'on'),_0x4e8ed9['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x53789f['getAttributes']()),'uploadcareImageId':_0x39476d,'src':_0x492565,'sources':_0x4f3147,'width':_0x4d1be0,'height':_0x3b8647},_0x53789f);_0x451eed['setSelection'](_0x53789f,'on');});}async['_getImageAsFile'](_0x4bcd97){const _0x3a3935=_0x3aee88['window'],_0x3ce1bd=_0x3aee88['document']['location']['href'],_0x20a0ba=new _0x3a3935['URL'](_0x4bcd97['getAttribute']('src'),_0x3ce1bd);if('data:'===_0x20a0ba['protocol']){const _0x3e1c2a=_0x20a0ba['href']['split'](','),_0x8c2589=_0x3e1c2a[0x0]['match'](/:(.*?);/)[0x1],_0x505502=_0x8c2589['split']('/')[0x1],_0xb7d65d=_0x3a3935['atob'](_0x3e1c2a[_0x3e1c2a['length']-0x1]);let _0x17703d=_0xb7d65d['length'];const _0x4d26e7=new _0x3a3935['Uint8Array'](_0x17703d);for(;_0x17703d--;)_0x4d26e7[_0x17703d]=_0xb7d65d['charCodeAt'](_0x17703d);return new _0x3a3935['File']([_0x4d26e7],'image.'+_0x505502,{'type':_0x8c2589});}const _0x8b937d=_0x20a0ba['href']['split']('/'),_0xfa1c6e=_0x8b937d[_0x8b937d['length']-0x1],_0x179c13=_0xfa1c6e['split']('.')[0x1];return _0x3a3935['fetch'](_0x20a0ba['href'])['then'](_0xa99a6e=>_0xa99a6e['clone']()['blob']())['then'](_0x1dcc4f=>new _0x3a3935['File']([_0x1dcc4f],_0xfa1c6e,{'type':'image/'+_0x179c13}));}}class J extends _0x2599c5{['imageEditController'];static get['requires'](){return[_0x331fd4];}['_isEditable'];constructor(_0x584366){super(_0x584366),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x48f057){const _0x123034=V(_0x48f057);return _0x5e13ce=>!(!_0x5e13ce||!_0x5e13ce['is']('element','imageBlock')&&!_0x5e13ce['is']('element','imageInline'))&&(!!_0x5e13ce['hasAttribute']('uploadcareImageId')||!!_0x5e13ce['hasAttribute']('src')&&_0x123034(_0x5e13ce['getAttribute']('src')));}(_0x584366['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x19ae8a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x19ae8a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x18b37d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x18b37d&&(_0x18b37d['is']('element','imageBlock')||_0x18b37d['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x331fd4),_0x18b37d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2599c5{['refresh'](){const _0x281d7e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x281d7e&&(_0x281d7e['is']('element','imageBlock')||_0x281d7e['is']('element','imageInline')));}['execute'](_0x2e9c5e){const _0x5cd146=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x40245c=>{_0x40245c['setAttributes'](_0x2e9c5e,_0x5cd146),_0x40245c['removeAttribute']('srcset',_0x5cd146),_0x40245c['removeAttribute']('sizes',_0x5cd146);});}}class g extends _0x3821fe{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x2f4b79,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2d25b5}=this;_0x2d25b5['commands']['add']('uploadcareImageEdit',new J(_0x2d25b5)),_0x2d25b5['commands']['add']('uploadcareImageReplace',new O(_0x2d25b5));}}class j extends _0x3821fe{['_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 _0x3d8c38=this['editor'];_0x3d8c38['ui']['componentFactory']['add']('uploadcareImageEdit',_0x7a44a=>{const _0x38861e=_0x3d8c38['commands']['get']('uploadcareImageEdit'),_0x4a6fc5=new _0x10db66(_0x7a44a),t=_0x7a44a['t'];return _0x4a6fc5['set']({'icon':_0x2ed8e7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4a6fc5['bind']('isEnabled')['to'](_0x38861e),_0x4a6fc5['bind']('isOn')['to'](_0x38861e,'isActive'),this['listenTo'](_0x4a6fc5,'execute',()=>{_0x3d8c38['execute']('uploadcareImageEdit'),_0x3d8c38['editing']['view']['focus']();}),_0x4a6fc5;}),this['_initConfig']();}['_initConfig'](){const _0x22c720=_0x4d9f06(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x22c720),this['listenTo'](this['editor'],'destroy',()=>{_0x22c720['remove']();});}}class P extends _0x3821fe{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 _0x158ad0,Command as _0x23c797}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1da223,IconGooglePhotos as _0x4821ea,IconGoogleDrive as _0x5e1d23,IconFacebook as _0x73a3a,IconDropbox as _0xa3caa9,IconUploadcareLink as _0x4fd177,IconUploadcareImageUpload as _0x48ad3c,IconError as et,IconUploadcareImageEdit as _0x2448e4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x580994,MenuBarMenuListItemButtonView as _0x2bfa1a,View as _0x3d46de,FocusCycler as _0x9c206a,Dialog as _0x3c3d76,DialogViewPosition as _0x56eec3,SpinnerView as _0x562916,IconView as at,Notification as _0x32da36}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x49f1ee,DomEmitterMixin as _0x238a1f,global as _0x5e7795,getAncestors as _0x5ef214,ObservableMixin as _0x39dab1,createElement as _0xaa7494,uid as _0x23a027}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x35d6dc}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3847fb,info as _0x3e0be5}from'@uploadcare/upload-client';import*as _0x401f88 from'@uploadcare/file-uploader';var o=function(_0x123af3){return _0x123af3['Local']='local',_0x123af3['URL']='url',_0x123af3['Dropbox']='dropbox',_0x123af3['GDrive']='gdrive',_0x123af3['Facebook']='facebook',_0x123af3['GPhotos']='gphotos',_0x123af3['OneDrive']='onedrive',_0x123af3;}({});function _(_0x320840,_0x51fd44,_0x4e4e8a){const t=_0x320840['t'],_0x17bfb7=_0x320840['t'];switch(_0x51fd44){case o['Local']:return{'text':_0x17bfb7('Insert'===_0x4e4e8a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x17bfb7('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x4e4e8a?_0x17bfb7('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x17bfb7('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x4e4e8a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x4e4e8a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x4e4e8a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x4e4e8a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x4e4e8a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x51fd44;}}class e extends _0x158ad0{['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 _0x2c2532=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x242847;for(const _0x265bfb in _0x2c2532){const _0x12b86d=_0x265bfb,_0x2a04cb=_0x2c2532[_0x12b86d];if('uploadcareLicenseKeyValid'==_0x2a04cb||'uploadcareLicenseKeyInvalid'==_0x2a04cb||'uploadcareLicenseKeyExpired'==_0x2a04cb||'uploadcareLicenseKeyDomainLimit'==_0x2a04cb||'uploadcareLicenseKeyNotAllowed'==_0x2a04cb||'uploadcareLicenseKeyEvaluationLimit'==_0x2a04cb||'uploadcareLicenseKeyTrialLimit'==_0x2a04cb||'uploadcareLicenseKeyUsageLimit'==_0x2a04cb){delete _0x2c2532[_0x12b86d],_0x242847=_0x2a04cb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x242847&&_0x2c2532['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x242847&&_0x2c2532['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x242847&&_0x2c2532['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x242847&&_0x2c2532['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x242847&&_0x2c2532['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x242847&&_0x2c2532['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x242847&&_0x2c2532['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x149db7}=this,_0x1194ca=_0x149db7['commands']['get']('uploadcare');if(!_0x1194ca)return;const _0x5e1ca5=this['_normalizeConfigSourceList'](_0x149db7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4caaeb,_0x2c3236)=>{const _0x482dd4=this['_getIntegrationKey'](_0x2c3236['type']);return _0x4caaeb[_0x482dd4]||(_0x4caaeb[_0x482dd4]=[]),_0x4caaeb[_0x482dd4]['push'](_0x2c3236),_0x4caaeb;},{});_0x149db7['plugins']['has']('ImageInsertUI')&&_0x149db7['commands']['get']('uploadcare')&&Object['entries'](_0x5e1ca5)['forEach'](([_0x15e8a1,_0x2d50a9])=>{_0x149db7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x15e8a1,'observable':()=>_0x1194ca,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2d50a9),'formViewCreator':()=>this['_createDropdownButtons'](_0x2d50a9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2d50a9),'override':'assetManager'!==_0x15e8a1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4f4771){const {locale:_0x4fb67a}=this['editor'];return _0x4f4771['map'](_0x14c5cb=>{const _0x45e415=_(_0x4fb67a,_0x14c5cb,'Insert');switch(_0x14c5cb){case o['Local']:return{'icon':_0x48ad3c,'type':o['Local'],..._0x45e415};case o['URL']:return{'icon':_0x4fd177,'type':o['URL'],..._0x45e415};case o['Dropbox']:return{'icon':_0xa3caa9,'type':o['Dropbox'],..._0x45e415};case o['Facebook']:return{'icon':_0x73a3a,'type':o['Facebook'],..._0x45e415};case o['GDrive']:return{'icon':_0x5e1d23,'type':o['GDrive'],..._0x45e415};case o['GPhotos']:return{'icon':_0x4821ea,'type':o['GPhotos'],..._0x45e415};case o['OneDrive']:return{'icon':_0x1da223,'type':o['OneDrive'],..._0x45e415};}});}['_getIntegrationKey'](_0x5be23d){switch(_0x5be23d){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4301a1,_0x49cd4f){const _0x4452b8=this['editor'],_0x227f7b=new _0x4301a1(_0x4452b8['locale']),_0x4795a0=_0x4452b8['commands']['get']('uploadcare');return _0x227f7b['bind']('isEnabled')['to'](_0x4795a0),_0x227f7b['on']('execute',()=>{_0x4795a0['execute'](_0x49cd4f);}),_0x227f7b;}['_createToolbarButton'](_0x49ac0c){const {locale:_0x31c6e5}=this['editor'],_0x1b84a5=this['editor']['plugins']['get']('ImageInsertUI'),_0x44aaa4=_0x49ac0c[0x0],_0x1abae3=this['_createButton'](_0x580994,_0x44aaa4['type']);return _0x1abae3['icon']=_0x44aaa4['icon'],_0x1abae3['bind']('label')['to'](_0x1b84a5,'isImageSelected',_0x1cc71a=>_(_0x31c6e5,_0x44aaa4['type'],_0x1cc71a?'Replace':'Insert')['text']),_0x1abae3['tooltip']=!0x0,_0x1abae3;}['_createDropdownButtons'](_0x1d55ee){const {locale:_0x459486}=this['editor'],_0x394236=this['editor']['plugins']['get']('ImageInsertUI');return _0x1d55ee['map'](_0x2ecbb4=>{const _0x47b31c=this['_createButton'](_0x580994,_0x2ecbb4['type']);return _0x47b31c['withText']=!0x0,_0x47b31c['icon']=_0x2ecbb4['icon'],_0x47b31c['bind']('label')['to'](_0x394236,'isImageSelected',_0x9d3389=>_(_0x459486,_0x2ecbb4['type'],_0x9d3389?'Replace':'Insert')['text']),_0x47b31c;});}['_createMenuBarButtons'](_0x5dfc7c){return _0x5dfc7c['map'](_0x17da5f=>{const _0x284760=this['_createButton'](_0x2bfa1a,_0x17da5f['type']);return _0x284760['icon']=_0x17da5f['icon'],_0x284760['label']=_0x17da5f['shortText'],_0x284760;});}}class q extends _0x3d46de{['focusTracker'];['focusCycler'];constructor(_0x575fa2){super(_0x575fa2),this['focusTracker']=new _0x49f1ee(),this['focusCycler']=new _0x9c206a({'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(_0xb590a3){super(_0xb590a3),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(_0x568fe6,_0x3e9c17){const _0x2ae62e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x54a5f7=>_0x54a5f7<=_0x3e9c17)['map'](_0x462560=>_0x568fe6['replace'](/\/$/,'')+'/-/resize/'+_0x462560+'x/\x20'+_0x462560+'w');return{'imageFallbackUrl':_0x568fe6,'imageSources':[{'srcset':_0x2ae62e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3e9c17+'px)\x20100vw,\x20'+_0x3e9c17+'px','type':'image/webp'}]};}function A(_0x3efb1a,_0x50b3b6,_0x1fd71e){const _0x2a9572=_0x3efb1a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2a9572?parseInt(_0x2a9572[0x1],0xa):_0x50b3b6,'height':_0x2a9572?parseInt(_0x2a9572[0x2],0xa):_0x1fd71e};}function m(_0x151ee6,_0x52db30){const _0x1cae09=Object['create'](_0x238a1f),_0x271cf0=_0x151ee6['plugins']['get']('ImageUtils'),_0x2196cc=_0x151ee6['editing']['mapper']['toViewElement'](_0x52db30),_0x148603=_0x271cf0['findViewImgElement'](_0x2196cc),_0x48a518=_0x151ee6['editing']['view']['domConverter']['viewToDom'](_0x148603),_0x30a394=_0x52db30['getAttribute']('width'),_0x3c78d1=_0x52db30['getAttribute']('height'),_0x2517c7='image-processing';_0x151ee6['editing']['view']['change'](_0x2d155f=>{_0x2d155f['addClass'](_0x2517c7,_0x2196cc),_0x2d155f['setStyle']('aspect-ratio',_0x30a394+'/'+_0x3c78d1,_0x148603);}),_0x1cae09['listenTo'](_0x48a518,'load',()=>{_0x1cae09['stopListening'](_0x48a518,'load'),_0x151ee6['editing']['view']['change'](_0x43a528=>{_0x43a528['removeClass'](_0x2517c7,_0x2196cc),_0x43a528['removeStyle']('aspect-ratio',_0x148603);});});}function V(_0x5d2e2f){if(Array['isArray'](_0x5d2e2f)){const _0x39cf8e=_0x5d2e2f['map'](V);return _0x46051c=>_0x39cf8e['some'](_0x5d316f=>_0x5d316f(_0x46051c));}if('origin'==_0x5d2e2f){const _0x1de048=_0x5e7795['window']['location']['origin'];return _0x2a53de=>new URL(_0x2a53de,_0x5e7795['document']['baseURI'])['origin']==_0x1de048;}return'function'==typeof _0x5d2e2f?_0x5d2e2f:_0x5d2e2f instanceof RegExp?_0x32b21f=>!(!_0x32b21f['match'](_0x5d2e2f)&&!_0x32b21f['replace'](/^https?:\/\//,'')['match'](_0x5d2e2f)):()=>!0x1;}function F(_0x2b7d99,_0x285401){return _0x5ef214(_0x2b7d99['target'])['includes'](_0x285401);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x39dab1(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5dac95,_0x27c141,_0x592397){super(),this['_editor']=_0x5dac95,this['_editing']=_0x27c141,this['_dialog']=_0x5dac95['plugins']['get'](_0x3c3d76),this['_api']=_0x27c141['ctxElement']['getAPI'](),this['_type']=_0x592397,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:_0x16995b,model:_0x1f7895}=this['_editor'],_0x4488ca=_0x1f7895['document']['selection']['getSelectedElement'](),_0x2acf0f=_0x4488ca&&(_0x4488ca['is']('element','imageBlock')||_0x4488ca['is']('element','imageInline'));this['_formView']=new S(_0x16995b),this['_dialog']['show']({'id':'uploadCare','icon':_0x48ad3c,'title':_(_0x16995b,this['_type'],_0x2acf0f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x56eec3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d08c0=>!F(_0x3d08c0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x129ffa}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1bf19f=>{const _0x595031=_0x129ffa['length'];for(const _0x4f949d of _0x129ffa){const _0x52463f=_0x4f949d===_0x129ffa[_0x595031-0x1],{cdnUrl:_0x3d1171,fileInfo:_0x34fd15}=_0x4f949d;if(!_0x3d1171||!_0x34fd15)continue;const {width:_0x40de05,height:_0x33dbb3}=_0x34fd15['imageInfo'],_0x24e82c=A(_0x3d1171,_0x40de05,_0x33dbb3),_0x5e0599=E(_0x3d1171,_0x24e82c['width']),_0x37fa64={'id':_0x34fd15['uuid'],'type':'image','attributes':{'imageDimension':_0x24e82c,..._0x5e0599}};this['_insertAsset'](_0x37fa64,_0x52463f,_0x1bf19f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x443d37=>{'idle'===_0x443d37['detail']['status']&&!_0x443d37['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2beea3,_0x47e9e9,_0x5579f2){const _0x516920=this['_editor']['model']['document']['selection'],_0x2fc47f=_0x516920['getSelectedElement'](),_0x555876=!(!_0x2fc47f||!_0x2fc47f['is']('element','imageInline'));_0x5579f2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2beea3,_0x555876),_0x47e9e9||_0x5579f2['setSelection'](_0x516920['getLastPosition']());}['_insertImage'](_0x14de3e,_0x3400d5){const _0x2f8e16=this['_editor'],{imageDimension:_0x3598fc,imageFallbackUrl:_0x4f2403,imageSources:_0x5c0598}=_0x14de3e['attributes'];_0x2f8e16['execute']('insertImage',{'imageType':_0x3400d5?'imageInline':null,'source':{'uploadcareImageId':_0x14de3e['id'],'src':_0x4f2403,'sources':_0x5c0598,..._0x3598fc}});}}class n extends _0x23c797{['_editing'];['_controller']=null;static get['requires'](){return[_0x3c3d76,i];}constructor(_0x4bb064){super(_0x4bb064),this['_editing']=_0x4bb064['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x274b8c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x274b8c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x13a298,publicKey:_0x1236f3,signal:_0x63908d,onProgress:_0x5b59ec}){return _0x3847fb(_0x13a298,{'publicKey':_0x1236f3,'store':'auto','signal':_0x63908d,'onProgress':_0x5b59ec});}static['getInfo'](_0x1cd5a1,_0xeadc3e){return _0x3e0be5(_0x1cd5a1,_0xeadc3e);}}class p extends _0x158ad0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x35d6dc,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x447a36=this['editor'];if(!!!_0x447a36['config']['get']('uploadcare'))return;_0x447a36['plugins']['get'](_0x35d6dc)['createUploadAdapter']=_0x478ae3=>new x(_0x478ae3,_0x447a36),_0x447a36['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x7a27dc,{imageElement:_0x504ba6,data:_0x585bd5})=>{_0x447a36['model']['change'](_0x5a6cc4=>{_0x5a6cc4['setAttribute']('uploadcareImageId',_0x585bd5['uploadcareImageId'],_0x504ba6);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4cea23,_0xc60d85){this['loader']=_0x4cea23,this['editor']=_0xc60d85,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2802b9=this['editor']['config']['get']('uploadcare.pubkey'),_0x37a0d4=await this['loader']['file'];return C['upload']({'file':_0x37a0d4,'publicKey':_0x2802b9,'signal':this['controller']['signal'],'onProgress':_0x2bd916=>{_0x2bd916&&_0x2bd916['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2bd916['value']);}})['then'](async _0x289121=>{const {imageFallbackUrl:_0x694856,imageSources:_0x27fd70}=E(_0x289121['cdnUrl'],_0x289121['imageInfo']['width']);return{'uploadcareImageId':_0x289121['uuid'],'default':_0x694856,'sources':_0x27fd70};})['catch'](()=>{const _0x3e6ffc=t('Cannot\x20upload\x20file:')+('\x20'+_0x37a0d4['name']+'.');return Promise['reject'](_0x3e6ffc);});}['abort'](){this['controller']['abort']();}}class i extends _0x158ad0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3c3d76];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x3dfbc2=this['editor'];_0x3dfbc2['commands']['add']('uploadcare',new n(_0x3dfbc2));}['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 _0x266654=_0x5e7795['document']['querySelector']('input[uploadcare-file-input]');_0x266654&&_0x266654['remove']();}),async function(_0x5a21fb){const _0x3709a6=_0x8296a9([0x47,0x38,0x55,0x49,0x43,0x52,0x4b,0x33,0x65,0x4c,0x53,0x32,0x6c,0x66,0x69,0x50,0x57,0x74,0x56,0x68,0x4a,0x36,0x44,0x76,0x59,0x48,0x63,0x31,0x6a,0x77,0x54,0x37,0x45,0x78,0x79,0x64,0x30,0x61,0x75,0x4d,0x6f,0x35,0x6d,0x41,0x6b,0x46,0x4e,0x51,0x4f,0x34,0x7a,0x58,0x39,0x42,0x67,0x70,0x5a,0x62,0x71,0x6e,0x72,0x73]),_0x10161a=0x1c670cf0,_0xfccc0a=0x1c6068a8^_0x10161a,_0x33372b=window[_0x8296a9([0x44,0x61,0x74,0x65])][_0x8296a9([0x6e,0x6f,0x77])](),_0x4a49e9=_0x5a21fb[_0x8296a9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a71df=new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x311c14=>{_0x4a49e9[_0x8296a9([0x6f,0x6e,0x63,0x65])](_0x8296a9([0x72,0x65,0x61,0x64,0x79]),_0x311c14);}),_0x127107={[_0x8296a9([0x6b,0x74,0x79])]:_0x8296a9([0x45,0x43]),[_0x8296a9([0x75,0x73,0x65])]:_0x8296a9([0x73,0x69,0x67]),[_0x8296a9([0x63,0x72,0x76])]:_0x8296a9([0x50,0x2d,0x32,0x35,0x36]),[_0x8296a9([0x78])]:_0x8296a9([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]),[_0x8296a9([0x79])]:_0x8296a9([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]),[_0x8296a9([0x61,0x6c,0x67])]:_0x8296a9([0x45,0x53,0x32,0x35,0x36])},_0x8bd996=_0x4a49e9[_0x8296a9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8296a9([0x67,0x65,0x74])](_0x8296a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x502415(){let _0x2053f7,_0x172fe5=null,_0x4baf37=null;try{if(_0x8bd996==_0x8296a9([0x47,0x50,0x4c]))return _0x8296a9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2053f7=_0x24da03(),!_0x2053f7)return _0x8296a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2053f7[_0x8296a9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4baf37=_0x582ea1(_0x2053f7[_0x8296a9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2053f7[_0x8296a9([0x6a,0x74,0x69])])),await _0x382149()?_0x3cf047()?_0x8a20e3()?_0x8296a9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3852ea()?(_0x2053f7[_0x8296a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8296a9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x172fe5=_0x355fdc(_0x8296a9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2053f7[_0x8296a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8296a9([0x74,0x72,0x69,0x61,0x6c])&&(_0x172fe5=_0x355fdc(_0x8296a9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c0673()):_0x8296a9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8296a9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8296a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x59d1d3){return _0x8296a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8a20e3(){const _0x5f31cb=[_0x8296a9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8296a9([0x74,0x72,0x69,0x61,0x6c])][_0x8296a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2053f7[_0x8296a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33372b/0x3e8:0xe10*_0xfccc0a;return _0x2053f7[_0x8296a9([0x65,0x78,0x70])]<_0x5f31cb;}function _0x3cf047(){const _0x365289=_0x2053f7[_0x8296a9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x365289&&(!!_0x365289[_0x8296a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8296a9([0x2a]))||!!_0x365289[_0x8296a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8296a9([0x55,0x50,0x4c,0x43])));}function _0x3852ea(){const _0x3e6017=_0x2053f7[_0x8296a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3e6017||0x0==_0x3e6017[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4baa22}=new URL(window[_0x8296a9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3e6017[_0x8296a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4baa22))return!0x0;const _0x42eaec=_0x4baa22[_0x8296a9([0x73,0x70,0x6c,0x69,0x74])](_0x8296a9([0x2e]));return _0x3e6017[_0x8296a9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x390e21=>_0x390e21[_0x8296a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8296a9([0x2a])))[_0x8296a9([0x6d,0x61,0x70])](_0x4bee48=>_0x4bee48[_0x8296a9([0x73,0x70,0x6c,0x69,0x74])](_0x8296a9([0x2e])))[_0x8296a9([0x73,0x6f,0x6d,0x65])](_0x1baf1e=>_0x42eaec[_0x8296a9([0x65,0x76,0x65,0x72,0x79])]((_0x14af9c,_0x47284d)=>_0x1baf1e[_0x47284d]===_0x14af9c||_0x1baf1e[_0x47284d]===_0x8296a9([0x2a])));}function _0x4c0673(){return _0x172fe5&&_0x4baf37?new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22f853,_0x5af66f)=>{_0x172fe5[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x22f853,_0x5af66f),_0x4baf37[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x140ca9=>{_0x140ca9!=_0x8296a9([0x56,0x61,0x6c,0x69,0x64])&&_0x22f853(_0x140ca9);},_0x5af66f);}):_0x172fe5||_0x4baf37||_0x8296a9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x582ea1(_0x3ff182,_0x463e63){return new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x314201=>{if(_0x3ad6c7())return _0x314201(_0x8296a9([0x56,0x61,0x6c,0x69,0x64]));_0xdd5cfc(),_0x4a49e9[_0x8296a9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8296a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x469661=!0x1;const _0x343ffb=_0x23a027();function _0x47cac0(_0x2211c7){return!!_0x2211c7&&(typeof _0x2211c7===_0x8296a9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2211c7===_0x8296a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2211c7[_0x8296a9([0x74,0x68,0x65,0x6e])]===_0x8296a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2211c7[_0x8296a9([0x63,0x61,0x74,0x63,0x68])]===_0x8296a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2bccc7(_0x30d912){_0x2fc30e(_0x30d912)[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x130669=>{if(!_0x130669||_0x130669[_0x8296a9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8296a9([0x6f,0x6b]))return _0x8296a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xbbd9aa(_0x174cdd(_0x343ffb+_0x463e63))!=_0x130669[_0x8296a9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8296a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8296a9([0x56,0x61,0x6c,0x69,0x64]);})[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x5c5563=>(_0x18d0e7(),_0x5c5563),()=>{const _0x31b690=_0x50badc();return null==_0x31b690?(_0x18d0e7(),_0x8296a9([0x56,0x61,0x6c,0x69,0x64])):_0x8296a9(_0x33372b-_0x31b690>(0x386b88f0^_0x10161a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x314201)[_0x8296a9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x314201(_0x8296a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3548c5=0x1c51e270^_0x10161a;function _0x18d0e7(){const _0x78812c=_0x8296a9([0x6c,0x6c,0x63,0x74,0x2d])+_0xbbd9aa(_0x174cdd(_0x3ff182)),_0x22bcab=_0x3dd361(_0xbbd9aa(window[_0x8296a9([0x4d,0x61,0x74,0x68])][_0x8296a9([0x63,0x65,0x69,0x6c])](_0x33372b/_0x3548c5)));window[_0x8296a9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8296a9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x78812c,_0x22bcab);}function _0x50badc(){const _0x654de=_0x8296a9([0x6c,0x6c,0x63,0x74,0x2d])+_0xbbd9aa(_0x174cdd(_0x3ff182)),_0x596381=window[_0x8296a9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8296a9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x654de);return _0x596381?window[_0x8296a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dd361(_0x596381),0x10)*_0x3548c5:null;}function _0x2fc30e(_0x234b76){return new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bded9,_0x36e4a0)=>{_0x234b76[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x4bded9,_0x36e4a0),window[_0x8296a9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36e4a0,0x1c66d830^_0x10161a);});}}_0x4a49e9[_0x8296a9([0x6f,0x6e])](_0x8296a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35d309,_0x37ed84)=>{if(_0x37ed84[0x0]!=_0x3ff182)return _0x314201(_0x8296a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37ed84[0x1]={..._0x37ed84[0x1],[_0x8296a9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x343ffb};},{[_0x8296a9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8296a9([0x68,0x69,0x67,0x68])}),_0x4a49e9[_0x8296a9([0x6f,0x6e])](_0x8296a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57e56e=>{_0x47cac0(_0x57e56e[_0x8296a9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x469661=!0x0,_0x2bccc7(_0x57e56e[_0x8296a9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8296a9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8296a9([0x6c,0x6f,0x77])}),_0x4a71df[_0x8296a9([0x74,0x68,0x65,0x6e])](()=>{_0x469661||_0x314201(_0x8296a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ad6c7(){return _0x4a49e9[_0x8296a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8296a9([0x76,0x69,0x65,0x77])][_0x8296a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8296a9([0x61,0x75,0x74,0x6f]);}function _0xdd5cfc(){_0x4a49e9[_0x8296a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8296a9([0x76,0x69,0x65,0x77])][_0x8296a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8296a9([0x61,0x75,0x74,0x6f]);}}function _0x355fdc(_0x28d36f){const _0x482c73=[new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b7956=>setTimeout(_0x1b7956,0x1c6e323c^_0x10161a)),_0x4a71df[_0x8296a9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x221728=>{let _0x4a829a=0x0;_0x4a49e9[_0x8296a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x8296a9([0x6f,0x6e])](_0x8296a9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a898a,_0x3c9696)=>{_0x3c9696[0x0][_0x8296a9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a829a++,_0x4a829a==(0x1c670d08^_0x10161a)&&(_0x221728(),_0x4a898a[_0x8296a9([0x6f,0x66,0x66])]());});}))];return window[_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8296a9([0x72,0x61,0x63,0x65])](_0x482c73)[_0x8296a9([0x74,0x68,0x65,0x6e])](()=>_0x28d36f);}async function _0x3b8336(){await _0x4a71df,_0x4a49e9[_0x8296a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x8296a9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x197e60,_0x4a49e9[_0x8296a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x8296a9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x197e60,_0x4a49e9[_0x8296a9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8296a9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d9114(_0x2fa3b0){const _0x49860b=_0x44c22a();_0x4a49e9[_0x49860b]=_0x8296a9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2fa3b0,_0x2fa3b0!=_0x8296a9([0x56,0x61,0x6c,0x69,0x64])&&_0x3b8336();}function _0x44c22a(){const _0x56186a=window[_0x8296a9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8296a9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8296a9([0x6e,0x6f,0x77])]())[_0x8296a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8296a9([0x2e]),'');let _0x36ecf9=_0x8296a9([0x47]);for(let _0x180fc8=0x0;_0x180fc8<_0x56186a[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x180fc8+=0x2){let _0x2f10cb=window[_0x8296a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56186a[_0x8296a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x180fc8,_0x180fc8+0x2));_0x2f10cb>=_0x3709a6[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f10cb-=_0x3709a6[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x36ecf9+=_0x3709a6[_0x2f10cb];}return _0x36ecf9;}function _0x24da03(){const _0x572f70=_0x8bd996[_0x8296a9([0x73,0x70,0x6c,0x69,0x74])](_0x8296a9([0x2e]));if(0x3!=_0x572f70[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d309d(_0x572f70[0x1]);function _0x3d309d(_0x20aa3e){const _0x1698c6=_0x3340ad(_0x20aa3e);return _0x1698c6&&_0x47b2df()?_0x1698c6:null;function _0x47b2df(){const _0x2262de=_0x1698c6[_0x8296a9([0x6a,0x74,0x69])],_0x5b32eb=window[_0x8296a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2262de[_0x8296a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2262de[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xda5f6d={..._0x1698c6,[_0x8296a9([0x6a,0x74,0x69])]:_0x2262de[_0x8296a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2262de[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xda5f6d[_0x8296a9([0x76,0x63])],_0x174cdd(_0xda5f6d)==_0x5b32eb;}}}async function _0x382149(){let _0xd3c05c=!0x0;try{const _0x2627dd=_0x8bd996[_0x8296a9([0x73,0x70,0x6c,0x69,0x74])](_0x8296a9([0x2e])),[_0xd9417f,_0x229c58,_0x401e21]=_0x2627dd;return _0x46edc9(_0xd9417f),await _0x32e203(_0xd9417f,_0x229c58,_0x401e21),_0xd3c05c;}catch(_0x443259){return!0x1;}function _0x46edc9(_0x33bc11){const _0x2fde79=_0x3340ad(_0x33bc11);_0x2fde79&&_0x2fde79[_0x8296a9([0x61,0x6c,0x67])]==_0x8296a9([0x45,0x53,0x32,0x35,0x36])||(_0xd3c05c=!0x1);}async function _0x32e203(_0x12b128,_0x36759e,_0x5605e1){const _0x55c241=window[_0x8296a9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8296a9([0x66,0x72,0x6f,0x6d])](_0x12d2ef(_0x5605e1),_0x302635=>_0x302635[_0x8296a9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11d423=new window[(_0x8296a9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8296a9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12b128+_0x8296a9([0x2e])+_0x36759e),_0x286c7d=window[_0x8296a9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8296a9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x286c7d)return;const _0x11ccaf=await _0x286c7d[_0x8296a9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8296a9([0x6a,0x77,0x6b]),_0x127107,{[_0x8296a9([0x6e,0x61,0x6d,0x65])]:_0x8296a9([0x45,0x43,0x44,0x53,0x41]),[_0x8296a9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8296a9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8296a9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x286c7d[_0x8296a9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8296a9([0x6e,0x61,0x6d,0x65])]:_0x8296a9([0x45,0x43,0x44,0x53,0x41]),[_0x8296a9([0x68,0x61,0x73,0x68])]:{[_0x8296a9([0x6e,0x61,0x6d,0x65])]:_0x8296a9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11ccaf,_0x55c241,_0x11d423)||(_0xd3c05c=!0x1);}}function _0x3340ad(_0x4004d4){return _0x4004d4[_0x8296a9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8296a9([0x65,0x79]))?JSON[_0x8296a9([0x70,0x61,0x72,0x73,0x65])](_0x12d2ef(_0x4004d4)):null;}function _0x12d2ef(_0x40af2c){return window[_0x8296a9([0x61,0x74,0x6f,0x62])](_0x40af2c[_0x8296a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8296a9([0x2b]))[_0x8296a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8296a9([0x2f])));}function _0x174cdd(_0x3a6e05){let _0x279025=0x1505;function _0x490e6e(_0x47b73d){for(let _0x476af7=0x0;_0x476af7<_0x47b73d[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x476af7++){const _0x294515=_0x47b73d[_0x8296a9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x476af7);_0x279025=(_0x279025<<0x5)+_0x279025+_0x294515,_0x279025&=_0x279025;}}function _0x299c44(_0x31337b){Array[_0x8296a9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31337b)?_0x31337b[_0x8296a9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x299c44):_0x31337b&&typeof _0x31337b==_0x8296a9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8296a9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31337b)[_0x8296a9([0x73,0x6f,0x72,0x74])]()[_0x8296a9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x302297,_0x3218dd])=>{_0x490e6e(_0x302297),_0x299c44(_0x3218dd);}):_0x490e6e(window[_0x8296a9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31337b));}return _0x299c44(_0x3a6e05),_0x279025>>>0x0;}function _0xbbd9aa(_0x37719b){return _0x37719b[_0x8296a9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8296a9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8296a9([0x30]));}function _0x3dd361(_0x43a973){return _0x43a973[_0x8296a9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8296a9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8296a9([0x6a,0x6f,0x69,0x6e])]('');}function _0x197e60(){}function _0x8296a9(_0x5aa047){return _0x5aa047['map'](_0x5db3c4=>String['fromCharCode'](_0x5db3c4))['join']('');}_0x1d9114(await _0x502415());}(this);}['_initSchema'](){const _0x2e6e7e=this['editor']['model']['schema'];_0x2e6e7e['isRegistered']('imageBlock')&&_0x2e6e7e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2e6e7e['isRegistered']('imageInline')&&_0x2e6e7e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5561ae=this['editor'];_0x5561ae['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5561ae['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x576d6a=>_0x576d6a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4be603=_0x5561ae['commands']['get']('replaceImageSource');_0x4be603&&this['listenTo'](_0x4be603,'cleanupImage',(_0x3f1f2f,[_0x44d766,_0xa486c])=>{_0x44d766['removeAttribute']('uploadcareImageId',_0xa486c);});}['_initConfig'](){const _0x23e14f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x40ac56=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xaa7494(_0x5e7795['document'],'uc-config',{..._0x23e14f,'pubkey':_0x40ac56,'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']=_0x257aec=>{if('closeMax'==_0x257aec)return'#uc-icon-arrow-down';},_0x5e7795['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xaa7494(_0x5e7795['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5e7795['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4cb1e9=this['editor']['commands']['get']('insertImage');_0x4cb1e9&&this['listenTo'](_0x4cb1e9,'execute',()=>{const _0x3396b9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3396b9&&_0x3396b9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3396b9);});});const _0x218e37=this['editor']['commands']['get']('uploadcareImageReplace');_0x218e37&&this['listenTo'](_0x218e37,'execute',()=>{const _0x1038a3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1038a3&&_0x1038a3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1038a3);});});}}class u extends _0x158ad0{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25c198){super(_0x25c198),_0x25c198['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x401f88['defineComponents'](_0x401f88);}}class ta extends _0x3d46de{constructor(_0xce959f){super(_0xce959f);const t=_0xce959f['t'],_0x292022=this['bindTemplate'],_0x3174b2=new _0x562916();_0x3174b2['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':[_0x3174b2,{'text':_0x292022['to']('imageUploadProgress',_0x32d1ea=>t('Loading\x20image...')+'\x20('+(_0x32d1ea||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 _0x3d46de{constructor(_0x3ca337){super(_0x3ca337);const t=_0x3ca337['t'];this['set']('errorType',null);const _0x34a5b7=new _0x580994(_0x3ca337);_0x34a5b7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x34a5b7['withText']=!0x0,_0x34a5b7['class']='ck-button-action',_0x34a5b7['on']('execute',()=>{this['fire']('retry');}),_0x34a5b7['bind']('isVisible')['to'](this,'errorType',_0x15d4b0=>'NotFound'!==_0x15d4b0);const _0x245eba=new at();_0x245eba['content']=et,_0x245eba['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4ecd84=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':[_0x245eba,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4ecd84['to']('errorType',_0x13f161=>t('NotFound'!==_0x13f161?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x34a5b7]},{'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 _0x3d46de{constructor(_0x296f64,_0x473018){super(_0x296f64);const _0x5842ab=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x473018,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5842ab['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x431bbc,_0x592470,_0x54a76d){super(_0x431bbc),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x431bbc),this['_errorView']=new rt(_0x431bbc),this['_editingView']=new tt(_0x431bbc,_0x54a76d),this['_focusableView']=new _0x3d46de(_0x431bbc),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x592470),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'],_0x58f25b=>{this['_addUploadcareImageEditorListeners'](_0x58f25b);});}),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'](_0x57b417,_0x25d5d8){const _0x43dbe0='uc-cloud-image-editor',_0x10ec43=_0x57b417['querySelector'](_0x43dbe0);if(_0x10ec43)return _0x25d5d8(_0x10ec43);const _0x89b62d=new MutationObserver(_0x356276=>{const _0x2baa28=_0x356276['filter'](_0x8c6fb0=>_0x8c6fb0['target']===_0x57b417&&_0x8c6fb0['addedNodes']['length']>0x0&&_0x8c6fb0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43dbe0);_0x2baa28['length']&&(_0x89b62d['disconnect'](),_0x25d5d8(_0x2baa28[0x0]['addedNodes'][0x0]));});_0x89b62d['observe'](_0x57b417,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x19d8de){_0x19d8de['addEventListener']('apply',_0x5b12ce=>{this['fire']('apply',{'imageSrc':_0x5b12ce['detail']['cdnUrl']});}),_0x19d8de['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x39dab1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xb798d3,_0x3c2783,_0x54e637){super(),this['_editor']=_0xb798d3,this['_dialog']=_0x3c2783,this['_imageElement']=_0x54e637,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 _0x16de84=this['_imageElement'],_0x172aba=_0x16de84['getAttribute']('uploadcareImageId'),_0x5062d4=_0x16de84['getAttribute']('src');if(_0x172aba)await this['_loadImageInfo'](_0x172aba,_0x5062d4);else{if(this['_imageCache']['has'](_0x5062d4)){const _0x3c360d=this['_imageCache']['get'](_0x5062d4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c360d['url'],this['imageDimension']=_0x3c360d['dimension'],this['imageId']=_0x3c360d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e8a69}=this['_editor'],t=_0x4e8a69['t'],_0x2fbdca=new Z(_0x4e8a69,this['imageStatus'],this['_attributes']);_0x2fbdca['bind']('status')['to'](this,'imageStatus'),_0x2fbdca['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2fbdca['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2fbdca['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2fbdca,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2448e4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2fbdca,'position':_0x56eec3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2fbdca['focus']();},'onHide':()=>{_0x2fbdca['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x591d0c=>!F(_0x591d0c,_0x2fbdca['element'])}});}['_loadImageInfo'](_0x5538c1,_0x53ebc6){return C['getInfo'](_0x5538c1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x566bf4=>{const {width:_0x14ef2f,height:_0x4b004a}=_0x566bf4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x53ebc6,this['imageDimension']={'width':_0x14ef2f,'height':_0x4b004a},this['imageId']=_0x5538c1;})['catch'](_0x5bd194=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5bd194['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x199561,_0x4ccbcd){return this['_getImageAsFile'](_0x199561)['then'](_0x5e6f77=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4ccbcd['signal'],'file':_0x5e6f77,'onProgress':_0x38315d=>{_0x38315d&&_0x38315d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x38315d['value']));}}))['then'](_0x5f3c67=>{const {width:_0x2d56e7,height:_0x805e82}=_0x5f3c67['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5f3c67['cdnUrl'],this['imageDimension']={'width':_0x2d56e7,'height':_0x805e82},this['imageId']=_0x5f3c67['uuid'],this['imageUploadProgress']=null;const _0xb08af6=_0x199561['getAttribute']('src');this['_imageCache']['set'](_0xb08af6,{'id':_0x5f3c67['uuid'],'url':_0x5f3c67['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1338b6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1338b6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xa8ad5f,_0x5daff6){_0xa8ad5f['on']('apply',(_0x1cdb49,_0x377ea4)=>{this['_replaceImage'](_0x5daff6,_0x377ea4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xa8ad5f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xa8ad5f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2d80e3,_0x26f22e,_0x1c6697){const _0x339a4a=this['_editor'],{width:_0x29309f,height:_0x3e8653}=A(_0x26f22e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x11b093,imageSources:_0x5bb91f}=E(_0x26f22e,_0x29309f);_0x339a4a['model']['change'](_0x10978d=>{if('$graveyard'===_0x2d80e3['root']['rootName']){_0x339a4a['execute']('insertImage',{'imageType':_0x2d80e3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2d80e3['getAttributes']()),'uploadcareImageId':_0x1c6697,'src':_0x11b093,'sources':_0x5bb91f,'width':_0x29309f,'height':_0x3e8653}});const _0x468a6d=_0x2d80e3['getChildren']();_0x2d80e3=_0x339a4a['model']['document']['selection']['getSelectedElement']();for(const _0x38b27f of _0x468a6d)_0x10978d['append'](_0x10978d['cloneElement'](_0x38b27f),_0x2d80e3);}else _0x10978d['setSelection'](_0x2d80e3,'on'),_0x339a4a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2d80e3['getAttributes']()),'uploadcareImageId':_0x1c6697,'src':_0x11b093,'sources':_0x5bb91f,'width':_0x29309f,'height':_0x3e8653},_0x2d80e3);_0x10978d['setSelection'](_0x2d80e3,'on');});}async['_getImageAsFile'](_0x9f7bf1){const _0x5abfeb=_0x5e7795['window'],_0x435214=_0x5e7795['document']['location']['href'],_0x2edfb4=new _0x5abfeb['URL'](_0x9f7bf1['getAttribute']('src'),_0x435214);if('data:'===_0x2edfb4['protocol']){const _0x505c72=_0x2edfb4['href']['split'](','),_0x53c658=_0x505c72[0x0]['match'](/:(.*?);/)[0x1],_0x1be401=_0x53c658['split']('/')[0x1],_0x4bdeff=_0x5abfeb['atob'](_0x505c72[_0x505c72['length']-0x1]);let _0x2322ed=_0x4bdeff['length'];const _0x2b9cfd=new _0x5abfeb['Uint8Array'](_0x2322ed);for(;_0x2322ed--;)_0x2b9cfd[_0x2322ed]=_0x4bdeff['charCodeAt'](_0x2322ed);return new _0x5abfeb['File']([_0x2b9cfd],'image.'+_0x1be401,{'type':_0x53c658});}const _0x4c1d36=_0x2edfb4['href']['split']('/'),_0x14628b=_0x4c1d36[_0x4c1d36['length']-0x1],_0x22e42a=_0x14628b['split']('.')[0x1];return _0x5abfeb['fetch'](_0x2edfb4['href'])['then'](_0x36311d=>_0x36311d['clone']()['blob']())['then'](_0x46fbae=>new _0x5abfeb['File']([_0x46fbae],_0x14628b,{'type':'image/'+_0x22e42a}));}}class J extends _0x23c797{['imageEditController'];static get['requires'](){return[_0x3c3d76];}['_isEditable'];constructor(_0xe4dbd9){super(_0xe4dbd9),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4af184){const _0x4e8d32=V(_0x4af184);return _0x2f4e0c=>!(!_0x2f4e0c||!_0x2f4e0c['is']('element','imageBlock')&&!_0x2f4e0c['is']('element','imageInline'))&&(!!_0x2f4e0c['hasAttribute']('uploadcareImageId')||!!_0x2f4e0c['hasAttribute']('src')&&_0x4e8d32(_0x2f4e0c['getAttribute']('src')));}(_0xe4dbd9['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1fd292=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1fd292);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5a2418=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5a2418&&(_0x5a2418['is']('element','imageBlock')||_0x5a2418['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3c3d76),_0x5a2418),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x23c797{['refresh'](){const _0x326184=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x326184&&(_0x326184['is']('element','imageBlock')||_0x326184['is']('element','imageInline')));}['execute'](_0x204d5b){const _0x340e49=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x14f9b5=>{_0x14f9b5['setAttributes'](_0x204d5b,_0x340e49),_0x14f9b5['removeAttribute']('srcset',_0x340e49),_0x14f9b5['removeAttribute']('sizes',_0x340e49);});}}class g extends _0x158ad0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x32da36,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x257c75}=this;_0x257c75['commands']['add']('uploadcareImageEdit',new J(_0x257c75)),_0x257c75['commands']['add']('uploadcareImageReplace',new O(_0x257c75));}}class j extends _0x158ad0{['_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 _0x481128=this['editor'];_0x481128['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2596e8=>{const _0x46e4b8=_0x481128['commands']['get']('uploadcareImageEdit'),_0x5ee97d=new _0x580994(_0x2596e8),t=_0x2596e8['t'];return _0x5ee97d['set']({'icon':_0x2448e4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5ee97d['bind']('isEnabled')['to'](_0x46e4b8),_0x5ee97d['bind']('isOn')['to'](_0x46e4b8,'isActive'),this['listenTo'](_0x5ee97d,'execute',()=>{_0x481128['execute']('uploadcareImageEdit'),_0x481128['editing']['view']['focus']();}),_0x5ee97d;}),this['_initConfig']();}['_initConfig'](){const _0x259c9e=_0xaa7494(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x259c9e),this['listenTo'](this['editor'],'destroy',()=>{_0x259c9e['remove']();});}}class P extends _0x158ad0{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-20250405.0",
3
+ "version": "0.0.0-nightly-20250407.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-20250405.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250405.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250405.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250405.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250405.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250405.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250405.0",
33
- "ckeditor5": "0.0.0-nightly-20250405.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250407.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250407.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250407.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250407.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250407.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250407.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250407.0",
33
+ "ckeditor5": "0.0.0-nightly-20250407.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 _0x158dfa=_0x74bb;(function(_0x31e19a,_0x58c30c){const _0x2f9414=_0x74bb,_0x5f2527=_0x31e19a();while(!![]){try{const _0x43bb5f=-parseInt(_0x2f9414(0x195))/0x1+parseInt(_0x2f9414(0x1cf))/0x2*(-parseInt(_0x2f9414(0x1cb))/0x3)+-parseInt(_0x2f9414(0x1e2))/0x4+-parseInt(_0x2f9414(0x197))/0x5+-parseInt(_0x2f9414(0x1a6))/0x6*(parseInt(_0x2f9414(0x1d1))/0x7)+-parseInt(_0x2f9414(0x19f))/0x8+parseInt(_0x2f9414(0x1af))/0x9;if(_0x43bb5f===_0x58c30c)break;else _0x5f2527['push'](_0x5f2527['shift']());}catch(_0x1d3759){_0x5f2527['push'](_0x5f2527['shift']());}}}(_0x28cf,0xcc6de));import{Plugin as _0x30045c}from'ckeditor5/src/core.js';function _0x74bb(_0x2bc4be,_0x20d424){const _0x28cfe2=_0x28cf();return _0x74bb=function(_0x74bb19,_0x511ab8){_0x74bb19=_0x74bb19-0x195;let _0x1eca15=_0x28cfe2[_0x74bb19];return _0x1eca15;},_0x74bb(_0x2bc4be,_0x20d424);}function _0x28cf(){const _0x5c2d7d=['elementToAttribute','8063620MZqNqh','extend','appendChild','getSelectedElement','\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','downcast','uploadcare.uploader','render','8826784pmViBo','_ctxElement','_configElement','uploader','uploadcare','uc-config','data-uc-image-id','494250JsSWZf','once','body','schema','isPremiumPlugin','contentLanguage','uploadcareImageId','#uc-icon-arrow-down','_initSchema','46956042fiAaZL','href','destroy','closeMax','editor','listenTo','_initConversion','requires','remove','view','attributeToAttribute','removeAttribute','querySelector','_initCtx','configElement','document','locale','UploadcareEditing','imageInline','replaceImageSource','fromCharCode','model','iconHrefResolver','config','join','insertImage','cleanupImage','editing','73230pBAtdX','add','pluginName','for','26UQYAzt','_initImageProcessingIndicator','35MnKlGG','_initConfig','uploadcare.pubkey','commands','imageBlock','uploadcareImageReplace','isRegistered','selection','afterInit','true','uc-upload-ctx-provider','execute','getAttribute','input[uploadcare-file-input]','upcast','get','map','2595120roixCz','conversion','PictureEditing','ctxElement','init','isOfficialPlugin','285939TuyjRs'];_0x28cf=function(){return _0x5c2d7d;};return _0x28cf();}import{Dialog as _0x42b765}from'ckeditor5/src/ui.js';import{createElement as _0x3459bd,global as _0x51c861,uid as _0x126b3e}from'ckeditor5/src/utils.js';import _0x1a4a4a from'./uploadcarecommand.js';import _0x4dc040 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x57ffc3}from'./utils/editingutils.js';export default class i extends _0x30045c{[_0x158dfa(0x1a1)]=null;[_0x158dfa(0x1a0)]=null;static get[_0x158dfa(0x1cd)](){const _0x206377=_0x158dfa;return _0x206377(0x1c0);}static get[_0x158dfa(0x1b6)](){const _0x155356=_0x158dfa;return[_0x155356(0x1e4),_0x4dc040,_0x42b765];}static get[_0x158dfa(0x1e7)](){return!0x0;}static get[_0x158dfa(0x1aa)](){return!0x0;}get[_0x158dfa(0x1bd)](){const _0x148e01=_0x158dfa;return this[_0x148e01(0x1a1)];}get[_0x158dfa(0x1e5)](){const _0x3fde3d=_0x158dfa;return this[_0x3fde3d(0x1a0)];}[_0x158dfa(0x1e6)](){const _0x11386d=_0x158dfa,_0x1fbbb1=this[_0x11386d(0x1b3)];_0x1fbbb1[_0x11386d(0x1d4)][_0x11386d(0x1cc)](_0x11386d(0x1a3),new _0x1a4a4a(_0x1fbbb1));}[_0x158dfa(0x1d9)](){const _0x12982e=_0x158dfa;this[_0x12982e(0x1ae)](),this[_0x12982e(0x1b5)](),this[_0x12982e(0x1d2)](),this[_0x12982e(0x1bc)](),this[_0x12982e(0x1d0)](),this[_0x12982e(0x1b4)](this[_0x12982e(0x1b3)],_0x12982e(0x1b1),()=>{const _0x2a33b8=_0x12982e;this[_0x2a33b8(0x1a1)]&&(this[_0x2a33b8(0x1a1)][_0x2a33b8(0x1b7)](),this[_0x2a33b8(0x1a1)]=null),this[_0x2a33b8(0x1a0)]&&(this[_0x2a33b8(0x1a0)][_0x2a33b8(0x1b7)](),this[_0x2a33b8(0x1a0)]=null);const _0xdd3fa4=_0x51c861[_0x2a33b8(0x1be)][_0x2a33b8(0x1bb)](_0x2a33b8(0x1de));_0xdd3fa4&&_0xdd3fa4[_0x2a33b8(0x1b7)]();}),async function(_0x524612){const _0x1326b9=_0x17b4d0([0x72,0x5a,0x4a,0x6c,0x74,0x50,0x70,0x66,0x43,0x76,0x65,0x44,0x39,0x6f,0x47,0x59,0x69,0x54,0x42,0x6d,0x75,0x35,0x77,0x78,0x67,0x30,0x73,0x4d,0x32,0x38,0x6e,0x46,0x4b,0x56,0x7a,0x51,0x71,0x64,0x6a,0x36,0x79,0x41,0x62,0x6b,0x63,0x68,0x45,0x53,0x31,0x4f,0x61,0x58,0x48,0x34,0x33,0x49,0x4e,0x55,0x52,0x37,0x57,0x4c]),_0x394ef9=0x388f4fdc,_0x55a920=0x38882bf4^_0x394ef9,_0xa98175=window[_0x17b4d0([0x44,0x61,0x74,0x65])][_0x17b4d0([0x6e,0x6f,0x77])](),_0x41ec64=_0x524612[_0x17b4d0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2df855=new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ccfaf=>{_0x41ec64[_0x17b4d0([0x6f,0x6e,0x63,0x65])](_0x17b4d0([0x72,0x65,0x61,0x64,0x79]),_0x5ccfaf);}),_0x311ecf={[_0x17b4d0([0x6b,0x74,0x79])]:_0x17b4d0([0x45,0x43]),[_0x17b4d0([0x75,0x73,0x65])]:_0x17b4d0([0x73,0x69,0x67]),[_0x17b4d0([0x63,0x72,0x76])]:_0x17b4d0([0x50,0x2d,0x32,0x35,0x36]),[_0x17b4d0([0x78])]:_0x17b4d0([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]),[_0x17b4d0([0x79])]:_0x17b4d0([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]),[_0x17b4d0([0x61,0x6c,0x67])]:_0x17b4d0([0x45,0x53,0x32,0x35,0x36])},_0x5670bb=_0x41ec64[_0x17b4d0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17b4d0([0x67,0x65,0x74])](_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39d40a(){let _0x3790fa,_0x5e89b0=null,_0x308b47=null;try{if(_0x5670bb==_0x17b4d0([0x47,0x50,0x4c]))return _0x17b4d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3790fa=_0xa701b2(),!_0x3790fa)return _0x17b4d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3790fa[_0x17b4d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x308b47=_0x33f7a2(_0x3790fa[_0x17b4d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3790fa[_0x17b4d0([0x6a,0x74,0x69])])),await _0x36a8c6()?_0x1e69cf()?_0x2535dd()?_0x17b4d0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb80cc0()?(_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17b4d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e89b0=_0x15b9d0(_0x17b4d0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17b4d0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e89b0=_0x15b9d0(_0x17b4d0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x29b790()):_0x17b4d0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17b4d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17b4d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1eb8ee){return _0x17b4d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2535dd(){const _0x510df3=[_0x17b4d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17b4d0([0x74,0x72,0x69,0x61,0x6c])][_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa98175/0x3e8:0xe10*_0x55a920;return _0x3790fa[_0x17b4d0([0x65,0x78,0x70])]<_0x510df3;}function _0x1e69cf(){const _0x5c01ac=_0x3790fa[_0x17b4d0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5c01ac&&(!!_0x5c01ac[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b4d0([0x2a]))||!!_0x5c01ac[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b4d0([0x55,0x50,0x4c,0x43])));}function _0xb80cc0(){const _0x554595=_0x74bb,_0x3c4a43=_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c4a43||0x0==_0x3c4a43[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x378983}=new URL(window[_0x17b4d0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x554595(0x1b0)]);if(_0x3c4a43[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x378983))return!0x0;const _0xd19c68=_0x378983[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e]));return _0x3c4a43[_0x17b4d0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19838f=>_0x19838f[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b4d0([0x2a])))[_0x17b4d0([0x6d,0x61,0x70])](_0x7f0831=>_0x7f0831[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e])))[_0x17b4d0([0x73,0x6f,0x6d,0x65])](_0x14caba=>_0xd19c68[_0x17b4d0([0x65,0x76,0x65,0x72,0x79])]((_0x9cc7ac,_0x20316e)=>_0x14caba[_0x20316e]===_0x9cc7ac||_0x14caba[_0x20316e]===_0x17b4d0([0x2a])));}function _0x29b790(){return _0x5e89b0&&_0x308b47?new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x171bf7,_0x4848d6)=>{_0x5e89b0[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x171bf7,_0x4848d6),_0x308b47[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x1b83ac=>{_0x1b83ac!=_0x17b4d0([0x56,0x61,0x6c,0x69,0x64])&&_0x171bf7(_0x1b83ac);},_0x4848d6);}):_0x5e89b0||_0x308b47||_0x17b4d0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33f7a2(_0x2fe638,_0x2bbc69){return new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5377f0=>{if(_0x100661())return _0x5377f0(_0x17b4d0([0x56,0x61,0x6c,0x69,0x64]));_0x5a4b62(),_0x41ec64[_0x17b4d0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17b4d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cca6b=!0x1;const _0x2f03b8=_0x126b3e();function _0x2b9880(_0x5a0b76){return!!_0x5a0b76&&(typeof _0x5a0b76===_0x17b4d0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a0b76===_0x17b4d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a0b76[_0x17b4d0([0x74,0x68,0x65,0x6e])]===_0x17b4d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a0b76[_0x17b4d0([0x63,0x61,0x74,0x63,0x68])]===_0x17b4d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5682a7(_0x317dec){_0xf89a04(_0x317dec)[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0xf9ae04=>{if(!_0xf9ae04||_0xf9ae04[_0x17b4d0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17b4d0([0x6f,0x6b]))return _0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f3d4f(_0x3a024e(_0x2f03b8+_0x2bbc69))!=_0xf9ae04[_0x17b4d0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17b4d0([0x56,0x61,0x6c,0x69,0x64]);})[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x43a0e8=>(_0x59bf6b(),_0x43a0e8),()=>{const _0xcc7764=_0x49d6f2();return null==_0xcc7764?(_0x59bf6b(),_0x17b4d0([0x56,0x61,0x6c,0x69,0x64])):_0x17b4d0(_0xa98175-_0xcc7764>(0x1c83cbdc^_0x394ef9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x5377f0)[_0x17b4d0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5377f0(_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1726f2=0x38b9a15c^_0x394ef9;function _0x59bf6b(){const _0x4ead88=_0x17b4d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f3d4f(_0x3a024e(_0x2fe638)),_0x3ccd1b=_0x12dfcc(_0x5f3d4f(window[_0x17b4d0([0x4d,0x61,0x74,0x68])][_0x17b4d0([0x63,0x65,0x69,0x6c])](_0xa98175/_0x1726f2)));window[_0x17b4d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17b4d0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ead88,_0x3ccd1b);}function _0x49d6f2(){const _0xfa7cb3=_0x17b4d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f3d4f(_0x3a024e(_0x2fe638)),_0x27ca71=window[_0x17b4d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17b4d0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfa7cb3);return _0x27ca71?window[_0x17b4d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12dfcc(_0x27ca71),0x10)*_0x1726f2:null;}function _0xf89a04(_0x784ace){return new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc15a6e,_0x423ce5)=>{_0x784ace[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0xc15a6e,_0x423ce5),window[_0x17b4d0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x423ce5,0x388e9b1c^_0x394ef9);});}}_0x41ec64[_0x17b4d0([0x6f,0x6e])](_0x17b4d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e05c6,_0xbf9e55)=>{if(_0xbf9e55[0x0]!=_0x2fe638)return _0x5377f0(_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbf9e55[0x1]={..._0xbf9e55[0x1],[_0x17b4d0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f03b8};},{[_0x17b4d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17b4d0([0x68,0x69,0x67,0x68])}),_0x41ec64[_0x17b4d0([0x6f,0x6e])](_0x17b4d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50537c=>{_0x2b9880(_0x50537c[_0x17b4d0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cca6b=!0x0,_0x5682a7(_0x50537c[_0x17b4d0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17b4d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17b4d0([0x6c,0x6f,0x77])}),_0x2df855[_0x17b4d0([0x74,0x68,0x65,0x6e])](()=>{_0x1cca6b||_0x5377f0(_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x100661(){return _0x41ec64[_0x17b4d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17b4d0([0x76,0x69,0x65,0x77])][_0x17b4d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17b4d0([0x61,0x75,0x74,0x6f]);}function _0x5a4b62(){_0x41ec64[_0x17b4d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17b4d0([0x76,0x69,0x65,0x77])][_0x17b4d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17b4d0([0x61,0x75,0x74,0x6f]);}}function _0x15b9d0(_0x2eeb8b){const _0x435189=[new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d2645=>setTimeout(_0x3d2645,0x38867110^_0x394ef9)),_0x2df855[_0x17b4d0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4133ee=>{let _0x1ce95d=0x0;_0x41ec64[_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b4d0([0x6f,0x6e])](_0x17b4d0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd66408,_0x2e4f4f)=>{_0x2e4f4f[0x0][_0x17b4d0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ce95d++,_0x1ce95d==(0x388f4e24^_0x394ef9)&&(_0x4133ee(),_0xd66408[_0x17b4d0([0x6f,0x66,0x66])]());});}))];return window[_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17b4d0([0x72,0x61,0x63,0x65])](_0x435189)[_0x17b4d0([0x74,0x68,0x65,0x6e])](()=>_0x2eeb8b);}async function _0x41d841(){await _0x2df855,_0x41ec64[_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b4d0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d0c92,_0x41ec64[_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b4d0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d0c92,_0x41ec64[_0x17b4d0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21752e(_0x59c178){const _0x11a70a=_0x4ac333();_0x41ec64[_0x11a70a]=_0x17b4d0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59c178,_0x59c178!=_0x17b4d0([0x56,0x61,0x6c,0x69,0x64])&&_0x41d841();}function _0x4ac333(){const _0x4c520b=window[_0x17b4d0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17b4d0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17b4d0([0x6e,0x6f,0x77])]())[_0x17b4d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17b4d0([0x2e]),'');let _0x335362=_0x17b4d0([0x72]);for(let _0xb62c23=0x0;_0xb62c23<_0x4c520b[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb62c23+=0x2){let _0x462291=window[_0x17b4d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c520b[_0x17b4d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb62c23,_0xb62c23+0x2));_0x462291>=_0x1326b9[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x462291-=_0x1326b9[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x335362+=_0x1326b9[_0x462291];}return _0x335362;}function _0xa701b2(){const _0x3e9b0d=_0x5670bb[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e]));if(0x3!=_0x3e9b0d[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c4849(_0x3e9b0d[0x1]);function _0x4c4849(_0x19842f){const _0x2dbf76=_0xe39e77(_0x19842f);return _0x2dbf76&&_0x3f4bb7()?_0x2dbf76:null;function _0x3f4bb7(){const _0x3b4f36=_0x2dbf76[_0x17b4d0([0x6a,0x74,0x69])],_0x4664bc=window[_0x17b4d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b4f36[_0x17b4d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b4f36[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28f1a1={..._0x2dbf76,[_0x17b4d0([0x6a,0x74,0x69])]:_0x3b4f36[_0x17b4d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b4f36[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28f1a1[_0x17b4d0([0x76,0x63])],_0x3a024e(_0x28f1a1)==_0x4664bc;}}}async function _0x36a8c6(){let _0x67f857=!0x0;try{const _0x22beb3=_0x5670bb[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e])),[_0x5f0171,_0x16be1a,_0x4d6acc]=_0x22beb3;return _0x51f06e(_0x5f0171),await _0x46dd0b(_0x5f0171,_0x16be1a,_0x4d6acc),_0x67f857;}catch(_0x331880){return!0x1;}function _0x51f06e(_0x2fbe64){const _0x43fbe0=_0xe39e77(_0x2fbe64);_0x43fbe0&&_0x43fbe0[_0x17b4d0([0x61,0x6c,0x67])]==_0x17b4d0([0x45,0x53,0x32,0x35,0x36])||(_0x67f857=!0x1);}async function _0x46dd0b(_0x47a5e6,_0x1146f9,_0x493b95){const _0x2a2146=window[_0x17b4d0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17b4d0([0x66,0x72,0x6f,0x6d])](_0x2e4935(_0x493b95),_0x4db50d=>_0x4db50d[_0x17b4d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x310cd0=new window[(_0x17b4d0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17b4d0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x47a5e6+_0x17b4d0([0x2e])+_0x1146f9),_0x6d8168=window[_0x17b4d0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17b4d0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6d8168)return;const _0x305b01=await _0x6d8168[_0x17b4d0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17b4d0([0x6a,0x77,0x6b]),_0x311ecf,{[_0x17b4d0([0x6e,0x61,0x6d,0x65])]:_0x17b4d0([0x45,0x43,0x44,0x53,0x41]),[_0x17b4d0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17b4d0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17b4d0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6d8168[_0x17b4d0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17b4d0([0x6e,0x61,0x6d,0x65])]:_0x17b4d0([0x45,0x43,0x44,0x53,0x41]),[_0x17b4d0([0x68,0x61,0x73,0x68])]:{[_0x17b4d0([0x6e,0x61,0x6d,0x65])]:_0x17b4d0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x305b01,_0x2a2146,_0x310cd0)||(_0x67f857=!0x1);}}function _0xe39e77(_0x4c19fa){return _0x4c19fa[_0x17b4d0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17b4d0([0x65,0x79]))?JSON[_0x17b4d0([0x70,0x61,0x72,0x73,0x65])](_0x2e4935(_0x4c19fa)):null;}function _0x2e4935(_0x468c0b){return window[_0x17b4d0([0x61,0x74,0x6f,0x62])](_0x468c0b[_0x17b4d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17b4d0([0x2b]))[_0x17b4d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17b4d0([0x2f])));}function _0x3a024e(_0x360da2){let _0x1693e7=0x1505;function _0x5934f4(_0x58e3dd){for(let _0x1ac9e8=0x0;_0x1ac9e8<_0x58e3dd[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ac9e8++){const _0x32adeb=_0x58e3dd[_0x17b4d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ac9e8);_0x1693e7=(_0x1693e7<<0x5)+_0x1693e7+_0x32adeb,_0x1693e7&=_0x1693e7;}}function _0x40bb54(_0x5b0f3e){Array[_0x17b4d0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b0f3e)?_0x5b0f3e[_0x17b4d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x40bb54):_0x5b0f3e&&typeof _0x5b0f3e==_0x17b4d0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17b4d0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b0f3e)[_0x17b4d0([0x73,0x6f,0x72,0x74])]()[_0x17b4d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x397610,_0x133c19])=>{_0x5934f4(_0x397610),_0x40bb54(_0x133c19);}):_0x5934f4(window[_0x17b4d0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b0f3e));}return _0x40bb54(_0x360da2),_0x1693e7>>>0x0;}function _0x5f3d4f(_0x1afec5){return _0x1afec5[_0x17b4d0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17b4d0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17b4d0([0x30]));}function _0x12dfcc(_0x41f519){return _0x41f519[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17b4d0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17b4d0([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d0c92(){}function _0x17b4d0(_0x2c4685){const _0x26524a=_0x74bb;return _0x2c4685[_0x26524a(0x1e1)](_0x466d48=>String[_0x26524a(0x1c3)](_0x466d48))[_0x26524a(0x1c7)]('');}_0x21752e(await _0x39d40a());}(this);}[_0x158dfa(0x1ae)](){const _0x359af0=_0x158dfa,_0x57f9b0=this[_0x359af0(0x1b3)][_0x359af0(0x1c4)][_0x359af0(0x1a9)];_0x57f9b0[_0x359af0(0x1d7)](_0x359af0(0x1d5))&&_0x57f9b0[_0x359af0(0x198)](_0x359af0(0x1d5),{'allowAttributes':[_0x359af0(0x1ac)]}),_0x57f9b0[_0x359af0(0x1d7)](_0x359af0(0x1c1))&&_0x57f9b0[_0x359af0(0x198)](_0x359af0(0x1c1),{'allowAttributes':[_0x359af0(0x1ac)]});}[_0x158dfa(0x1b5)](){const _0x38b5f5=_0x158dfa,_0x40add5=this[_0x38b5f5(0x1b3)];_0x40add5[_0x38b5f5(0x1e3)][_0x38b5f5(0x1ce)](_0x38b5f5(0x19c))[_0x38b5f5(0x1b9)]({'model':_0x38b5f5(0x1ac),'view':_0x38b5f5(0x1a5)}),_0x40add5[_0x38b5f5(0x1e3)][_0x38b5f5(0x1ce)](_0x38b5f5(0x1df))[_0x38b5f5(0x196)]({'model':{'key':_0x38b5f5(0x1ac),'value':_0x4ff925=>_0x4ff925[_0x38b5f5(0x1dd)](_0x38b5f5(0x1a5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x51c504=_0x40add5[_0x38b5f5(0x1d4)][_0x38b5f5(0x1e0)](_0x38b5f5(0x1c2));_0x51c504&&this[_0x38b5f5(0x1b4)](_0x51c504,_0x38b5f5(0x1c9),(_0x3befdd,[_0x533af3,_0x3c1b94])=>{const _0x2f4a1a=_0x38b5f5;_0x533af3[_0x2f4a1a(0x1ba)](_0x2f4a1a(0x1ac),_0x3c1b94);});}[_0x158dfa(0x1d2)](){const _0x2cbca1=_0x158dfa,_0x5475d1=this[_0x2cbca1(0x1b3)][_0x2cbca1(0x1c6)][_0x2cbca1(0x1e0)](_0x2cbca1(0x19d))||{},_0x14f1a0=this[_0x2cbca1(0x1b3)][_0x2cbca1(0x1c6)][_0x2cbca1(0x1e0)](_0x2cbca1(0x1d3))||'';this[_0x2cbca1(0x1a1)]=_0x3459bd(_0x51c861[_0x2cbca1(0x1be)],_0x2cbca1(0x1a4),{..._0x5475d1,'pubkey':_0x14f1a0,'ctx-name':_0x2cbca1(0x1a2),'sourceList':'','imgOnly':_0x2cbca1(0x1da),'removeCopyright':_0x2cbca1(0x1da),'localeName':this[_0x2cbca1(0x1b3)][_0x2cbca1(0x1bf)][_0x2cbca1(0x1ab)],'externalSourcesEmbedCss':_0x2cbca1(0x19b)}),this[_0x2cbca1(0x1a1)][_0x2cbca1(0x1c5)]=_0x2c347a=>{const _0xbb86d6=_0x2cbca1;if(_0xbb86d6(0x1b2)==_0x2c347a)return _0xbb86d6(0x1ad);},_0x51c861[_0x2cbca1(0x1be)][_0x2cbca1(0x1a8)][_0x2cbca1(0x199)](this[_0x2cbca1(0x1a1)]);}[_0x158dfa(0x1bc)](){const _0xe654f8=_0x158dfa;this[_0xe654f8(0x1a0)]=_0x3459bd(_0x51c861[_0xe654f8(0x1be)],_0xe654f8(0x1db),{'ctx-name':_0xe654f8(0x1a2)}),_0x51c861[_0xe654f8(0x1be)][_0xe654f8(0x1a8)][_0xe654f8(0x199)](this[_0xe654f8(0x1a0)]);}[_0x158dfa(0x1d0)](){const _0x22ee65=_0x158dfa,_0xe465f6=this[_0x22ee65(0x1b3)][_0x22ee65(0x1d4)][_0x22ee65(0x1e0)](_0x22ee65(0x1c8));_0xe465f6&&this[_0x22ee65(0x1b4)](_0xe465f6,_0x22ee65(0x1dc),()=>{const _0x109f95=_0x22ee65,_0x357a2e=this[_0x109f95(0x1b3)][_0x109f95(0x1c4)][_0x109f95(0x1be)][_0x109f95(0x1d8)][_0x109f95(0x19a)]();_0x357a2e&&_0x357a2e[_0x109f95(0x1dd)](_0x109f95(0x1ac))&&this[_0x109f95(0x1b3)][_0x109f95(0x1ca)][_0x109f95(0x1b8)][_0x109f95(0x1a7)](_0x109f95(0x19e),()=>{const _0xbf245=_0x109f95;_0x57ffc3(this[_0xbf245(0x1b3)],_0x357a2e);});});const _0x275464=this[_0x22ee65(0x1b3)][_0x22ee65(0x1d4)][_0x22ee65(0x1e0)](_0x22ee65(0x1d6));_0x275464&&this[_0x22ee65(0x1b4)](_0x275464,_0x22ee65(0x1dc),()=>{const _0x103584=_0x22ee65,_0x5e5d8c=this[_0x103584(0x1b3)][_0x103584(0x1c4)][_0x103584(0x1be)][_0x103584(0x1d8)][_0x103584(0x19a)]();_0x5e5d8c&&_0x5e5d8c[_0x103584(0x1dd)](_0x103584(0x1ac))&&this[_0x103584(0x1b3)][_0x103584(0x1ca)][_0x103584(0x1b8)][_0x103584(0x1a7)](_0x103584(0x19e),()=>{const _0x363227=_0x103584;_0x57ffc3(this[_0x363227(0x1b3)],_0x5e5d8c);});});}}
23
+ const _0x39cc0b=_0x5dc3;function _0x5dc3(_0xdd0440,_0x13f60d){const _0x4448fc=_0x4448();return _0x5dc3=function(_0x5dc325,_0x3853ac){_0x5dc325=_0x5dc325-0x159;let _0x39f8ae=_0x4448fc[_0x5dc325];return _0x39f8ae;},_0x5dc3(_0xdd0440,_0x13f60d);}(function(_0x504483,_0x2e47c3){const _0x451110=_0x5dc3,_0x10ff0d=_0x504483();while(!![]){try{const _0x1476f4=-parseInt(_0x451110(0x164))/0x1*(parseInt(_0x451110(0x187))/0x2)+parseInt(_0x451110(0x1a2))/0x3*(parseInt(_0x451110(0x18c))/0x4)+-parseInt(_0x451110(0x1a9))/0x5*(parseInt(_0x451110(0x161))/0x6)+-parseInt(_0x451110(0x171))/0x7*(-parseInt(_0x451110(0x199))/0x8)+parseInt(_0x451110(0x181))/0x9+-parseInt(_0x451110(0x1a3))/0xa+parseInt(_0x451110(0x197))/0xb;if(_0x1476f4===_0x2e47c3)break;else _0x10ff0d['push'](_0x10ff0d['shift']());}catch(_0x135b5b){_0x10ff0d['push'](_0x10ff0d['shift']());}}}(_0x4448,0xaa9fb));import{Plugin as _0x3cb402}from'ckeditor5/src/core.js';import{Dialog as _0x1a0360}from'ckeditor5/src/ui.js';import{createElement as _0x26bb89,global as _0x262662,uid as _0x583ff2}from'ckeditor5/src/utils.js';import _0x287718 from'./uploadcarecommand.js';import _0x389d18 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3cbfd5}from'./utils/editingutils.js';export default class i extends _0x3cb402{[_0x39cc0b(0x159)]=null;[_0x39cc0b(0x182)]=null;static get[_0x39cc0b(0x194)](){const _0x54e550=_0x39cc0b;return _0x54e550(0x175);}static get[_0x39cc0b(0x179)](){const _0x4ca333=_0x39cc0b;return[_0x4ca333(0x1aa),_0x389d18,_0x1a0360];}static get[_0x39cc0b(0x19f)](){return!0x0;}static get[_0x39cc0b(0x192)](){return!0x0;}get[_0x39cc0b(0x17a)](){const _0x3a9582=_0x39cc0b;return this[_0x3a9582(0x159)];}get[_0x39cc0b(0x166)](){const _0x460ab9=_0x39cc0b;return this[_0x460ab9(0x182)];}[_0x39cc0b(0x18a)](){const _0x3ca1cf=_0x39cc0b,_0x4b1cdb=this[_0x3ca1cf(0x1a0)];_0x4b1cdb[_0x3ca1cf(0x193)][_0x3ca1cf(0x16b)](_0x3ca1cf(0x15d),new _0x287718(_0x4b1cdb));}[_0x39cc0b(0x172)](){const _0x4e827b=_0x39cc0b;this[_0x4e827b(0x163)](),this[_0x4e827b(0x19c)](),this[_0x4e827b(0x19b)](),this[_0x4e827b(0x183)](),this[_0x4e827b(0x162)](),this[_0x4e827b(0x17f)](this[_0x4e827b(0x1a0)],_0x4e827b(0x17b),()=>{const _0x15e38e=_0x4e827b;this[_0x15e38e(0x159)]&&(this[_0x15e38e(0x159)][_0x15e38e(0x189)](),this[_0x15e38e(0x159)]=null),this[_0x15e38e(0x182)]&&(this[_0x15e38e(0x182)][_0x15e38e(0x189)](),this[_0x15e38e(0x182)]=null);const _0x2932c0=_0x262662[_0x15e38e(0x1ad)][_0x15e38e(0x178)](_0x15e38e(0x170));_0x2932c0&&_0x2932c0[_0x15e38e(0x189)]();}),async function(_0x1314eb){const _0x2e3dff=_0x30b87a([0x47,0x38,0x55,0x49,0x43,0x52,0x4b,0x33,0x65,0x4c,0x53,0x32,0x6c,0x66,0x69,0x50,0x57,0x74,0x56,0x68,0x4a,0x36,0x44,0x76,0x59,0x48,0x63,0x31,0x6a,0x77,0x54,0x37,0x45,0x78,0x79,0x64,0x30,0x61,0x75,0x4d,0x6f,0x35,0x6d,0x41,0x6b,0x46,0x4e,0x51,0x4f,0x34,0x7a,0x58,0x39,0x42,0x67,0x70,0x5a,0x62,0x71,0x6e,0x72,0x73]),_0x1eb1d7=0x1c670cf0,_0x51a93e=0x1c6068a8^_0x1eb1d7,_0x3fd774=window[_0x30b87a([0x44,0x61,0x74,0x65])][_0x30b87a([0x6e,0x6f,0x77])](),_0x35e4b3=_0x1314eb[_0x30b87a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xfd6f54=new window[(_0x30b87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c2462=>{_0x35e4b3[_0x30b87a([0x6f,0x6e,0x63,0x65])](_0x30b87a([0x72,0x65,0x61,0x64,0x79]),_0x1c2462);}),_0x2ddfee={[_0x30b87a([0x6b,0x74,0x79])]:_0x30b87a([0x45,0x43]),[_0x30b87a([0x75,0x73,0x65])]:_0x30b87a([0x73,0x69,0x67]),[_0x30b87a([0x63,0x72,0x76])]:_0x30b87a([0x50,0x2d,0x32,0x35,0x36]),[_0x30b87a([0x78])]:_0x30b87a([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]),[_0x30b87a([0x79])]:_0x30b87a([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]),[_0x30b87a([0x61,0x6c,0x67])]:_0x30b87a([0x45,0x53,0x32,0x35,0x36])},_0x2e90e8=_0x35e4b3[_0x30b87a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30b87a([0x67,0x65,0x74])](_0x30b87a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1856bc(){let _0x6c188d,_0x838e2d=null,_0x4dc530=null;try{if(_0x2e90e8==_0x30b87a([0x47,0x50,0x4c]))return _0x30b87a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6c188d=_0x45a06a(),!_0x6c188d)return _0x30b87a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6c188d[_0x30b87a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4dc530=_0x1dda26(_0x6c188d[_0x30b87a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6c188d[_0x30b87a([0x6a,0x74,0x69])])),await _0x1e515b()?_0x58f9d7()?_0x5b4e85()?_0x30b87a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x503a50()?(_0x6c188d[_0x30b87a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30b87a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x838e2d=_0x471f94(_0x30b87a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x6c188d[_0x30b87a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30b87a([0x74,0x72,0x69,0x61,0x6c])&&(_0x838e2d=_0x471f94(_0x30b87a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d14d7()):_0x30b87a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30b87a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30b87a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x572713){return _0x30b87a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5b4e85(){const _0x2de80b=[_0x30b87a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30b87a([0x74,0x72,0x69,0x61,0x6c])][_0x30b87a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6c188d[_0x30b87a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fd774/0x3e8:0xe10*_0x51a93e;return _0x6c188d[_0x30b87a([0x65,0x78,0x70])]<_0x2de80b;}function _0x58f9d7(){const _0x5bc23e=_0x6c188d[_0x30b87a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5bc23e&&(!!_0x5bc23e[_0x30b87a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b87a([0x2a]))||!!_0x5bc23e[_0x30b87a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b87a([0x55,0x50,0x4c,0x43])));}function _0x503a50(){const _0x560853=_0x5dc3,_0x2a4a08=_0x6c188d[_0x30b87a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2a4a08||0x0==_0x2a4a08[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x431a0d}=new URL(window[_0x30b87a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x560853(0x18f)]);if(_0x2a4a08[_0x30b87a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431a0d))return!0x0;const _0x12ff3a=_0x431a0d[_0x30b87a([0x73,0x70,0x6c,0x69,0x74])](_0x30b87a([0x2e]));return _0x2a4a08[_0x30b87a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c21df=>_0x4c21df[_0x30b87a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b87a([0x2a])))[_0x30b87a([0x6d,0x61,0x70])](_0x5e660e=>_0x5e660e[_0x30b87a([0x73,0x70,0x6c,0x69,0x74])](_0x30b87a([0x2e])))[_0x30b87a([0x73,0x6f,0x6d,0x65])](_0x474d4a=>_0x12ff3a[_0x30b87a([0x65,0x76,0x65,0x72,0x79])]((_0x269ed5,_0x20d5c5)=>_0x474d4a[_0x20d5c5]===_0x269ed5||_0x474d4a[_0x20d5c5]===_0x30b87a([0x2a])));}function _0x3d14d7(){return _0x838e2d&&_0x4dc530?new window[(_0x30b87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f69ee,_0x5716a7)=>{_0x838e2d[_0x30b87a([0x74,0x68,0x65,0x6e])](_0x4f69ee,_0x5716a7),_0x4dc530[_0x30b87a([0x74,0x68,0x65,0x6e])](_0x1e095b=>{_0x1e095b!=_0x30b87a([0x56,0x61,0x6c,0x69,0x64])&&_0x4f69ee(_0x1e095b);},_0x5716a7);}):_0x838e2d||_0x4dc530||_0x30b87a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1dda26(_0x26d193,_0x4acb49){return new window[(_0x30b87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e4be5=>{if(_0x1110ba())return _0x4e4be5(_0x30b87a([0x56,0x61,0x6c,0x69,0x64]));_0x2eb90f(),_0x35e4b3[_0x30b87a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30b87a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x456c16=!0x1;const _0x3cb8d7=_0x583ff2();function _0x27ed45(_0xd12f35){return!!_0xd12f35&&(typeof _0xd12f35===_0x30b87a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd12f35===_0x30b87a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd12f35[_0x30b87a([0x74,0x68,0x65,0x6e])]===_0x30b87a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd12f35[_0x30b87a([0x63,0x61,0x74,0x63,0x68])]===_0x30b87a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f16dd(_0xb88b91){_0x88a479(_0xb88b91)[_0x30b87a([0x74,0x68,0x65,0x6e])](_0x4ad1a8=>{if(!_0x4ad1a8||_0x4ad1a8[_0x30b87a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30b87a([0x6f,0x6b]))return _0x30b87a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4312ca(_0x14e058(_0x3cb8d7+_0x4acb49))!=_0x4ad1a8[_0x30b87a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30b87a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30b87a([0x56,0x61,0x6c,0x69,0x64]);})[_0x30b87a([0x74,0x68,0x65,0x6e])](_0x4e988d=>(_0xf46ca1(),_0x4e988d),()=>{const _0x4e9002=_0x566c0d();return null==_0x4e9002?(_0xf46ca1(),_0x30b87a([0x56,0x61,0x6c,0x69,0x64])):_0x30b87a(_0x3fd774-_0x4e9002>(0x386b88f0^_0x1eb1d7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30b87a([0x74,0x68,0x65,0x6e])](_0x4e4be5)[_0x30b87a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e4be5(_0x30b87a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5479f5=0x1c51e270^_0x1eb1d7;function _0xf46ca1(){const _0x1ef6e4=_0x30b87a([0x6c,0x6c,0x63,0x74,0x2d])+_0x4312ca(_0x14e058(_0x26d193)),_0x4a44dc=_0x1bd8b2(_0x4312ca(window[_0x30b87a([0x4d,0x61,0x74,0x68])][_0x30b87a([0x63,0x65,0x69,0x6c])](_0x3fd774/_0x5479f5)));window[_0x30b87a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30b87a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ef6e4,_0x4a44dc);}function _0x566c0d(){const _0x1510fc=_0x30b87a([0x6c,0x6c,0x63,0x74,0x2d])+_0x4312ca(_0x14e058(_0x26d193)),_0x35d6a5=window[_0x30b87a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30b87a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1510fc);return _0x35d6a5?window[_0x30b87a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bd8b2(_0x35d6a5),0x10)*_0x5479f5:null;}function _0x88a479(_0x505770){return new window[(_0x30b87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e22b4,_0x12a5c3)=>{_0x505770[_0x30b87a([0x74,0x68,0x65,0x6e])](_0x2e22b4,_0x12a5c3),window[_0x30b87a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12a5c3,0x1c66d830^_0x1eb1d7);});}}_0x35e4b3[_0x30b87a([0x6f,0x6e])](_0x30b87a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x373a91,_0x15cb7f)=>{if(_0x15cb7f[0x0]!=_0x26d193)return _0x4e4be5(_0x30b87a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x15cb7f[0x1]={..._0x15cb7f[0x1],[_0x30b87a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3cb8d7};},{[_0x30b87a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30b87a([0x68,0x69,0x67,0x68])}),_0x35e4b3[_0x30b87a([0x6f,0x6e])](_0x30b87a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38bc21=>{_0x27ed45(_0x38bc21[_0x30b87a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x456c16=!0x0,_0x3f16dd(_0x38bc21[_0x30b87a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30b87a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30b87a([0x6c,0x6f,0x77])}),_0xfd6f54[_0x30b87a([0x74,0x68,0x65,0x6e])](()=>{_0x456c16||_0x4e4be5(_0x30b87a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1110ba(){return _0x35e4b3[_0x30b87a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30b87a([0x76,0x69,0x65,0x77])][_0x30b87a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30b87a([0x61,0x75,0x74,0x6f]);}function _0x2eb90f(){_0x35e4b3[_0x30b87a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30b87a([0x76,0x69,0x65,0x77])][_0x30b87a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30b87a([0x61,0x75,0x74,0x6f]);}}function _0x471f94(_0x46e0f2){const _0x202c20=[new window[(_0x30b87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x221ea4=>setTimeout(_0x221ea4,0x1c6e323c^_0x1eb1d7)),_0xfd6f54[_0x30b87a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30b87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b7fbb=>{let _0x3d9c3d=0x0;_0x35e4b3[_0x30b87a([0x6d,0x6f,0x64,0x65,0x6c])][_0x30b87a([0x6f,0x6e])](_0x30b87a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d828b,_0x46c2ac)=>{_0x46c2ac[0x0][_0x30b87a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d9c3d++,_0x3d9c3d==(0x1c670d08^_0x1eb1d7)&&(_0x1b7fbb(),_0x3d828b[_0x30b87a([0x6f,0x66,0x66])]());});}))];return window[_0x30b87a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30b87a([0x72,0x61,0x63,0x65])](_0x202c20)[_0x30b87a([0x74,0x68,0x65,0x6e])](()=>_0x46e0f2);}async function _0x3c64fc(){await _0xfd6f54,_0x35e4b3[_0x30b87a([0x6d,0x6f,0x64,0x65,0x6c])][_0x30b87a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1596c5,_0x35e4b3[_0x30b87a([0x6d,0x6f,0x64,0x65,0x6c])][_0x30b87a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1596c5,_0x35e4b3[_0x30b87a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30b87a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x49660e(_0x1be33a){const _0x4cb852=_0x2274d6();_0x35e4b3[_0x4cb852]=_0x30b87a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1be33a,_0x1be33a!=_0x30b87a([0x56,0x61,0x6c,0x69,0x64])&&_0x3c64fc();}function _0x2274d6(){const _0x466dc5=window[_0x30b87a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30b87a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30b87a([0x6e,0x6f,0x77])]())[_0x30b87a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30b87a([0x2e]),'');let _0x32a31f=_0x30b87a([0x47]);for(let _0x99adf3=0x0;_0x99adf3<_0x466dc5[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x99adf3+=0x2){let _0x161eea=window[_0x30b87a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x466dc5[_0x30b87a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x99adf3,_0x99adf3+0x2));_0x161eea>=_0x2e3dff[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x161eea-=_0x2e3dff[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32a31f+=_0x2e3dff[_0x161eea];}return _0x32a31f;}function _0x45a06a(){const _0x511056=_0x2e90e8[_0x30b87a([0x73,0x70,0x6c,0x69,0x74])](_0x30b87a([0x2e]));if(0x3!=_0x511056[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c833a(_0x511056[0x1]);function _0x3c833a(_0x166020){const _0x5c8a5b=_0x49381(_0x166020);return _0x5c8a5b&&_0x171ac4()?_0x5c8a5b:null;function _0x171ac4(){const _0x274dfb=_0x5c8a5b[_0x30b87a([0x6a,0x74,0x69])],_0x1e5ca5=window[_0x30b87a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x274dfb[_0x30b87a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x274dfb[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5766de={..._0x5c8a5b,[_0x30b87a([0x6a,0x74,0x69])]:_0x274dfb[_0x30b87a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x274dfb[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5766de[_0x30b87a([0x76,0x63])],_0x14e058(_0x5766de)==_0x1e5ca5;}}}async function _0x1e515b(){let _0x4e02a7=!0x0;try{const _0x5862f5=_0x2e90e8[_0x30b87a([0x73,0x70,0x6c,0x69,0x74])](_0x30b87a([0x2e])),[_0x31e74b,_0xa9e4ef,_0x1f5e25]=_0x5862f5;return _0x591ac0(_0x31e74b),await _0x7f04c8(_0x31e74b,_0xa9e4ef,_0x1f5e25),_0x4e02a7;}catch(_0x52f1f9){return!0x1;}function _0x591ac0(_0x2a9ee9){const _0x58601a=_0x49381(_0x2a9ee9);_0x58601a&&_0x58601a[_0x30b87a([0x61,0x6c,0x67])]==_0x30b87a([0x45,0x53,0x32,0x35,0x36])||(_0x4e02a7=!0x1);}async function _0x7f04c8(_0x12374d,_0x17b884,_0x3e0fee){const _0x3897e3=window[_0x30b87a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30b87a([0x66,0x72,0x6f,0x6d])](_0x2b6cc2(_0x3e0fee),_0x5e65f4=>_0x5e65f4[_0x30b87a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1718ff=new window[(_0x30b87a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30b87a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12374d+_0x30b87a([0x2e])+_0x17b884),_0x334536=window[_0x30b87a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30b87a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x334536)return;const _0x489a4f=await _0x334536[_0x30b87a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30b87a([0x6a,0x77,0x6b]),_0x2ddfee,{[_0x30b87a([0x6e,0x61,0x6d,0x65])]:_0x30b87a([0x45,0x43,0x44,0x53,0x41]),[_0x30b87a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30b87a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30b87a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x334536[_0x30b87a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30b87a([0x6e,0x61,0x6d,0x65])]:_0x30b87a([0x45,0x43,0x44,0x53,0x41]),[_0x30b87a([0x68,0x61,0x73,0x68])]:{[_0x30b87a([0x6e,0x61,0x6d,0x65])]:_0x30b87a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x489a4f,_0x3897e3,_0x1718ff)||(_0x4e02a7=!0x1);}}function _0x49381(_0x4648cd){return _0x4648cd[_0x30b87a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30b87a([0x65,0x79]))?JSON[_0x30b87a([0x70,0x61,0x72,0x73,0x65])](_0x2b6cc2(_0x4648cd)):null;}function _0x2b6cc2(_0x29913c){return window[_0x30b87a([0x61,0x74,0x6f,0x62])](_0x29913c[_0x30b87a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30b87a([0x2b]))[_0x30b87a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30b87a([0x2f])));}function _0x14e058(_0x53c306){let _0x665ec6=0x1505;function _0x388a9b(_0x59d1b6){for(let _0x1041c1=0x0;_0x1041c1<_0x59d1b6[_0x30b87a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1041c1++){const _0x38bbb7=_0x59d1b6[_0x30b87a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1041c1);_0x665ec6=(_0x665ec6<<0x5)+_0x665ec6+_0x38bbb7,_0x665ec6&=_0x665ec6;}}function _0x3109a6(_0x30b9ed){Array[_0x30b87a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x30b9ed)?_0x30b9ed[_0x30b87a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3109a6):_0x30b9ed&&typeof _0x30b9ed==_0x30b87a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30b87a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x30b9ed)[_0x30b87a([0x73,0x6f,0x72,0x74])]()[_0x30b87a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2be2d5,_0xb9c157])=>{_0x388a9b(_0x2be2d5),_0x3109a6(_0xb9c157);}):_0x388a9b(window[_0x30b87a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x30b9ed));}return _0x3109a6(_0x53c306),_0x665ec6>>>0x0;}function _0x4312ca(_0x370153){return _0x370153[_0x30b87a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30b87a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30b87a([0x30]));}function _0x1bd8b2(_0x2133c6){return _0x2133c6[_0x30b87a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30b87a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30b87a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1596c5(){}function _0x30b87a(_0x274aea){const _0xcb7a97=_0x5dc3;return _0x274aea[_0xcb7a97(0x186)](_0x58e376=>String[_0xcb7a97(0x1a7)](_0x58e376))[_0xcb7a97(0x1ab)]('');}_0x49660e(await _0x1856bc());}(this);}[_0x39cc0b(0x163)](){const _0x5714d6=_0x39cc0b,_0x21cd21=this[_0x5714d6(0x1a0)][_0x5714d6(0x15b)][_0x5714d6(0x185)];_0x21cd21[_0x5714d6(0x15c)](_0x5714d6(0x18d))&&_0x21cd21[_0x5714d6(0x1ac)](_0x5714d6(0x18d),{'allowAttributes':[_0x5714d6(0x174)]}),_0x21cd21[_0x5714d6(0x15c)](_0x5714d6(0x167))&&_0x21cd21[_0x5714d6(0x1ac)](_0x5714d6(0x167),{'allowAttributes':[_0x5714d6(0x174)]});}[_0x39cc0b(0x19c)](){const _0x5d1ea8=_0x39cc0b,_0x871480=this[_0x5d1ea8(0x1a0)];_0x871480[_0x5d1ea8(0x16a)][_0x5d1ea8(0x173)](_0x5d1ea8(0x198))[_0x5d1ea8(0x1a4)]({'model':_0x5d1ea8(0x174),'view':_0x5d1ea8(0x190)}),_0x871480[_0x5d1ea8(0x16a)][_0x5d1ea8(0x173)](_0x5d1ea8(0x191))[_0x5d1ea8(0x188)]({'model':{'key':_0x5d1ea8(0x174),'value':_0x415627=>_0x415627[_0x5d1ea8(0x180)](_0x5d1ea8(0x190))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2a5942=_0x871480[_0x5d1ea8(0x193)][_0x5d1ea8(0x168)](_0x5d1ea8(0x19a));_0x2a5942&&this[_0x5d1ea8(0x17f)](_0x2a5942,_0x5d1ea8(0x16e),(_0x1c8a20,[_0x155807,_0x234ad0])=>{const _0x2b27c5=_0x5d1ea8;_0x155807[_0x2b27c5(0x1a6)](_0x2b27c5(0x174),_0x234ad0);});}[_0x39cc0b(0x19b)](){const _0x313fff=_0x39cc0b,_0x12ed69=this[_0x313fff(0x1a0)][_0x313fff(0x195)][_0x313fff(0x168)](_0x313fff(0x18b))||{},_0x4ed18f=this[_0x313fff(0x1a0)][_0x313fff(0x195)][_0x313fff(0x168)](_0x313fff(0x15a))||'';this[_0x313fff(0x159)]=_0x26bb89(_0x262662[_0x313fff(0x1ad)],_0x313fff(0x176),{..._0x12ed69,'pubkey':_0x4ed18f,'ctx-name':_0x313fff(0x1a1),'sourceList':'','imgOnly':_0x313fff(0x16c),'removeCopyright':_0x313fff(0x16c),'localeName':this[_0x313fff(0x1a0)][_0x313fff(0x177)][_0x313fff(0x160)],'externalSourcesEmbedCss':_0x313fff(0x17d)}),this[_0x313fff(0x159)][_0x313fff(0x169)]=_0x51b273=>{const _0x13ee18=_0x313fff;if(_0x13ee18(0x19d)==_0x51b273)return _0x13ee18(0x15f);},_0x262662[_0x313fff(0x1ad)][_0x313fff(0x184)][_0x313fff(0x18e)](this[_0x313fff(0x159)]);}[_0x39cc0b(0x183)](){const _0x3533c0=_0x39cc0b;this[_0x3533c0(0x182)]=_0x26bb89(_0x262662[_0x3533c0(0x1ad)],_0x3533c0(0x1a8),{'ctx-name':_0x3533c0(0x1a1)}),_0x262662[_0x3533c0(0x1ad)][_0x3533c0(0x184)][_0x3533c0(0x18e)](this[_0x3533c0(0x182)]);}[_0x39cc0b(0x162)](){const _0xddcb38=_0x39cc0b,_0x4c3faf=this[_0xddcb38(0x1a0)][_0xddcb38(0x193)][_0xddcb38(0x168)](_0xddcb38(0x19e));_0x4c3faf&&this[_0xddcb38(0x17f)](_0x4c3faf,_0xddcb38(0x15e),()=>{const _0x1fe5cb=_0xddcb38,_0xf27b6f=this[_0x1fe5cb(0x1a0)][_0x1fe5cb(0x15b)][_0x1fe5cb(0x1ad)][_0x1fe5cb(0x165)][_0x1fe5cb(0x17c)]();_0xf27b6f&&_0xf27b6f[_0x1fe5cb(0x180)](_0x1fe5cb(0x174))&&this[_0x1fe5cb(0x1a0)][_0x1fe5cb(0x17e)][_0x1fe5cb(0x16f)][_0x1fe5cb(0x1a5)](_0x1fe5cb(0x196),()=>{const _0x4044f4=_0x1fe5cb;_0x3cbfd5(this[_0x4044f4(0x1a0)],_0xf27b6f);});});const _0x1a0f2f=this[_0xddcb38(0x1a0)][_0xddcb38(0x193)][_0xddcb38(0x168)](_0xddcb38(0x16d));_0x1a0f2f&&this[_0xddcb38(0x17f)](_0x1a0f2f,_0xddcb38(0x15e),()=>{const _0x335122=_0xddcb38,_0x3797cc=this[_0x335122(0x1a0)][_0x335122(0x15b)][_0x335122(0x1ad)][_0x335122(0x165)][_0x335122(0x17c)]();_0x3797cc&&_0x3797cc[_0x335122(0x180)](_0x335122(0x174))&&this[_0x335122(0x1a0)][_0x335122(0x17e)][_0x335122(0x16f)][_0x335122(0x1a5)](_0x335122(0x196),()=>{const _0x2ed905=_0x335122;_0x3cbfd5(this[_0x2ed905(0x1a0)],_0x3797cc);});});}}function _0x4448(){const _0x4425f8=['8429020psLqfe','attributeToAttribute','once','removeAttribute','fromCharCode','uc-upload-ctx-provider','65LOJHtn','PictureEditing','join','extend','document','_configElement','uploadcare.pubkey','model','isRegistered','uploadcare','execute','#uc-icon-arrow-down','contentLanguage','1866YFXCgd','_initImageProcessingIndicator','_initSchema','153489knSXuE','selection','ctxElement','imageInline','get','iconHrefResolver','conversion','add','true','uploadcareImageReplace','cleanupImage','view','input[uploadcare-file-input]','8617qlfTpq','afterInit','for','uploadcareImageId','UploadcareEditing','uc-config','locale','querySelector','requires','configElement','destroy','getSelectedElement','\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','editing','listenTo','getAttribute','5718807dsvVLp','_ctxElement','_initCtx','body','schema','map','10arYcqf','elementToAttribute','remove','init','uploadcare.uploader','3372PfdKaf','imageBlock','appendChild','href','data-uc-image-id','upcast','isPremiumPlugin','commands','pluginName','config','render','6299172grsLyQ','downcast','6136tKYOnt','replaceImageSource','_initConfig','_initConversion','closeMax','insertImage','isOfficialPlugin','editor','uploader','573nmgOeU'];_0x4448=function(){return _0x4425f8;};return _0x4448();}