@ckeditor/ckeditor5-uploadcare 47.3.0-alpha.3 → 47.3.0-alpha.5

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 _0x3628de,Command as _0x3931bd}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x27d929,IconGooglePhotos as _0x1ffaa8,IconGoogleDrive as _0x239f46,IconFacebook as _0xe41d33,IconDropbox as _0x3b82a7,IconUploadcareLink as _0x27b88b,IconUploadcareImageUpload as _0x38ffe4,IconError as _0x3b8cdb,IconUploadcareImageEdit as _0x36eeea}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x126a15,MenuBarMenuListItemButtonView as _0x3582cf,View as _0x3e6592,FocusCycler as _0x2badcb,Dialog as _0x31a4f4,DialogViewPosition as _0x11c100,SpinnerView as _0x13b698,IconView as _0x33c19a,Notification as _0x5ccb66}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x570695,DomEmitterMixin as _0x57def1,global as _0x48470a,getAncestors as _0x5dc5e5,ObservableMixin as _0x84acfd,uid as _0x1f1623,createElement as _0x1d236f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x317ef6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5db266,info as _0x3d0df3}from'@uploadcare/upload-client';import*as _0x4d63ba from'@uploadcare/file-uploader';var i=function(_0x52d5ae){return _0x52d5ae['Local']='local',_0x52d5ae['URL']='url',_0x52d5ae['Dropbox']='dropbox',_0x52d5ae['GDrive']='gdrive',_0x52d5ae['Facebook']='facebook',_0x52d5ae['GPhotos']='gphotos',_0x52d5ae['OneDrive']='onedrive',_0x52d5ae;}({});function _(_0x89dcbe,_0xb115f9,_0x404e67){const t=_0x89dcbe['t'],_0xeaafb1=_0x89dcbe['t'];switch(_0xb115f9){case i['Local']:return{'text':_0xeaafb1('Insert'===_0x404e67?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xeaafb1('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x404e67?_0xeaafb1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xeaafb1('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x404e67?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x404e67?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x404e67?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x404e67?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x404e67?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xb115f9;}}class e extends _0x3628de{['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 _0x5ab670=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x542485;for(const _0x2a6611 in _0x5ab670){const _0x3614d9=_0x2a6611,_0x298c7e=_0x5ab670[_0x3614d9];if('uploadcareLicenseKeyValid'==_0x298c7e||'uploadcareLicenseKeyInvalid'==_0x298c7e||'uploadcareLicenseKeyExpired'==_0x298c7e||'uploadcareLicenseKeyDomainLimit'==_0x298c7e||'uploadcareLicenseKeyNotAllowed'==_0x298c7e||'uploadcareLicenseKeyEvaluationLimit'==_0x298c7e||'uploadcareLicenseKeyTrialLimit'==_0x298c7e||'uploadcareLicenseKeyUsageLimit'==_0x298c7e){delete _0x5ab670[_0x3614d9],_0x542485=_0x298c7e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x542485&&_0x5ab670['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x542485&&_0x5ab670['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x542485&&_0x5ab670['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x542485&&_0x5ab670['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x542485&&_0x5ab670['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x542485&&_0x5ab670['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x542485&&_0x5ab670['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5a9e75}=this,_0x3aafbb=_0x5a9e75['commands']['get']('uploadcare');if(!_0x3aafbb)return;const _0x1b05b5=this['_normalizeConfigSourceList'](_0x5a9e75['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5ae5e9,_0x5c828a)=>{const _0x192fe2=this['_getIntegrationKey'](_0x5c828a['type']);return _0x5ae5e9[_0x192fe2]||(_0x5ae5e9[_0x192fe2]=[]),_0x5ae5e9[_0x192fe2]['push'](_0x5c828a),_0x5ae5e9;},{});_0x5a9e75['plugins']['has']('ImageInsertUI')&&_0x5a9e75['commands']['get']('uploadcare')&&Object['entries'](_0x1b05b5)['forEach'](([_0x22a953,_0x29f5fe])=>{_0x5a9e75['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x22a953,'observable':()=>_0x3aafbb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x29f5fe),'formViewCreator':()=>this['_createDropdownButtons'](_0x29f5fe),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x29f5fe),'override':'assetManager'!==_0x22a953});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x143ca7){const {locale:_0x308947}=this['editor'];return _0x143ca7['map'](_0x3be499=>{const _0x179ae1=_(_0x308947,_0x3be499,'Insert');switch(_0x3be499){case i['Local']:return{'icon':_0x38ffe4,'type':i['Local'],..._0x179ae1};case i['URL']:return{'icon':_0x27b88b,'type':i['URL'],..._0x179ae1};case i['Dropbox']:return{'icon':_0x3b82a7,'type':i['Dropbox'],..._0x179ae1};case i['Facebook']:return{'icon':_0xe41d33,'type':i['Facebook'],..._0x179ae1};case i['GDrive']:return{'icon':_0x239f46,'type':i['GDrive'],..._0x179ae1};case i['GPhotos']:return{'icon':_0x1ffaa8,'type':i['GPhotos'],..._0x179ae1};case i['OneDrive']:return{'icon':_0x27d929,'type':i['OneDrive'],..._0x179ae1};}});}['_getIntegrationKey'](_0x21e645){switch(_0x21e645){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4869a9,_0x27c1ad){const _0x3c263=this['editor'],_0x57f022=new _0x4869a9(_0x3c263['locale']),_0x5770ee=_0x3c263['commands']['get']('uploadcare');return _0x57f022['bind']('isEnabled')['to'](_0x5770ee),_0x57f022['on']('execute',()=>{_0x5770ee['execute'](_0x27c1ad);}),_0x57f022;}['_createToolbarButton'](_0x54e757){const {locale:_0x253d4e}=this['editor'],_0x26927a=this['editor']['plugins']['get']('ImageInsertUI'),_0x2e155c=_0x54e757[0x0],_0xc4d88c=this['_createButton'](_0x126a15,_0x2e155c['type']);return _0xc4d88c['icon']=_0x2e155c['icon'],_0xc4d88c['bind']('label')['to'](_0x26927a,'isImageSelected',_0x225589=>_(_0x253d4e,_0x2e155c['type'],_0x225589?'Replace':'Insert')['text']),_0xc4d88c['tooltip']=!0x0,_0xc4d88c;}['_createDropdownButtons'](_0x2754bc){const {locale:_0x1e3978}=this['editor'],_0xc3c185=this['editor']['plugins']['get']('ImageInsertUI');return _0x2754bc['map'](_0x1461cc=>{const _0x1bbbcd=this['_createButton'](_0x126a15,_0x1461cc['type']);return _0x1bbbcd['withText']=!0x0,_0x1bbbcd['icon']=_0x1461cc['icon'],_0x1bbbcd['bind']('label')['to'](_0xc3c185,'isImageSelected',_0x5ecf0a=>_(_0x1e3978,_0x1461cc['type'],_0x5ecf0a?'Replace':'Insert')['text']),_0x1bbbcd;});}['_createMenuBarButtons'](_0x3b4b2a){return _0x3b4b2a['map'](_0x2331d2=>{const _0x14c762=this['_createButton'](_0x3582cf,_0x2331d2['type']);return _0x14c762['icon']=_0x2331d2['icon'],_0x14c762['label']=_0x2331d2['shortText'],_0x14c762;});}}class F extends _0x3e6592{['focusTracker'];['focusCycler'];constructor(_0x54f2be){super(_0x54f2be),this['focusTracker']=new _0x570695(),this['focusCycler']=new _0x2badcb({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x1b6a85,_0x4ee327){super(_0x1b6a85),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-'+_0x4ee327}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x251114,_0x205094){const _0x215b30=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x104e9a=>_0x104e9a<=_0x205094)['map'](_0x3f0f98=>_0x251114['replace'](/\/$/,'')+'/-/resize/'+_0x3f0f98+'x/\x20'+_0x3f0f98+'w');return{'imageFallbackUrl':_0x251114,'imageSources':[{'srcset':_0x215b30['join'](',\x20'),'sizes':'(max-width:\x20'+_0x205094+'px)\x20100vw,\x20'+_0x205094+'px','type':'image/webp'}]};}function S(_0x13274f,_0x41f0b6,_0x26e474){const _0x34b425=_0x13274f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x34b425?parseInt(_0x34b425[0x1],0xa):_0x41f0b6,'height':_0x34b425?parseInt(_0x34b425[0x2],0xa):_0x26e474};}function p(_0x1ccf1c,_0x229c43){const _0x3afdb7=new(_0x57def1())(),_0x2fbebe=_0x1ccf1c['plugins']['get']('ImageUtils'),_0x155247=_0x1ccf1c['editing']['mapper']['toViewElement'](_0x229c43),_0x53b26f=_0x2fbebe['findViewImgElement'](_0x155247),_0x27e357=_0x1ccf1c['editing']['view']['domConverter']['viewToDom'](_0x53b26f),_0x41d440=_0x229c43['getAttribute']('width'),_0x5db09f=_0x229c43['getAttribute']('height'),_0x382ff1='image-processing';_0x1ccf1c['editing']['view']['change'](_0x3cf48c=>{_0x3cf48c['addClass'](_0x382ff1,_0x155247),_0x3cf48c['setStyle']('aspect-ratio',_0x41d440+'/'+_0x5db09f,_0x53b26f);}),_0x3afdb7['listenTo'](_0x27e357,'load',()=>{_0x3afdb7['stopListening'](_0x27e357,'load'),_0x1ccf1c['editing']['view']['change'](_0xebecdd=>{_0xebecdd['removeClass'](_0x382ff1,_0x155247),_0xebecdd['removeStyle']('aspect-ratio',_0x53b26f);});});}function z(_0x55fc26){if(Array['isArray'](_0x55fc26)){const _0xecd00=_0x55fc26['map'](z);return _0x39ced3=>_0xecd00['some'](_0x1c5844=>_0x1c5844(_0x39ced3));}if('origin'==_0x55fc26){const _0x3959d4=_0x48470a['window']['location']['origin'];return _0xd8495=>new URL(_0xd8495,_0x48470a['document']['baseURI'])['origin']==_0x3959d4;}return'function'==typeof _0x55fc26?_0x55fc26:_0x55fc26 instanceof RegExp?_0x2ebbc6=>!(!_0x2ebbc6['match'](_0x55fc26)&&!_0x2ebbc6['replace'](/^https?:\/\//,'')['match'](_0x55fc26)):()=>!0x1;}function A(_0x1a2a1e,_0x195ecb){return _0x5dc5e5(_0x1a2a1e['target'])['includes'](_0x195ecb);}class n extends/* #__PURE__ -- @preserve */
24
- _0x84acfd(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2b5bd2,_0x5dd853,_0x521671){super(),this['_editor']=_0x2b5bd2,this['_editing']=_0x5dd853,this['_dialog']=_0x2b5bd2['plugins']['get'](_0x31a4f4),this['_api']=_0x5dd853['ctxElement']['getAPI'](),this['_type']=_0x521671,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:_0x378a71,model:_0x2c3d5d}=this['_editor'],_0x47fa95=_0x2c3d5d['document']['selection']['getSelectedElement'](),_0x8f1075=_0x47fa95&&(_0x47fa95['is']('element','imageBlock')||_0x47fa95['is']('element','imageInline'));this['_formView']=new x(_0x378a71,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x38ffe4,'title':_(_0x378a71,this['_type'],_0x8f1075?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x11c100['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2af1b0=>!A(_0x2af1b0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x36e738}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xe27221=>{const _0x274b24=_0x36e738['length'];for(const _0x3980c6 of _0x36e738){const _0xfd84fa=_0x3980c6===_0x36e738[_0x274b24-0x1],{cdnUrl:_0xbbae11,fileInfo:_0x1cb755}=_0x3980c6;if(!_0xbbae11||!_0x1cb755)continue;const {width:_0x292aa3,height:_0x2f12bb}=_0x1cb755['imageInfo'],_0x27af94=S(_0xbbae11,_0x292aa3,_0x2f12bb),_0x5c17e6=C(_0xbbae11,_0x27af94['width']),_0x1f20dd={'id':_0x1cb755['uuid'],'type':'image','attributes':{'imageDimension':_0x27af94,..._0x5c17e6}};this['_insertAsset'](_0x1f20dd,_0xfd84fa,_0xe27221);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x79ddcd=>{'idle'===_0x79ddcd['detail']['status']&&!_0x79ddcd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3e024c,_0x37016f,_0x224067){const _0x2835fe=this['_editor']['model']['document']['selection'],_0x5de5c7=_0x2835fe['getSelectedElement'](),_0x44c751=!(!_0x5de5c7||!_0x5de5c7['is']('element','imageInline'));_0x224067['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3e024c,_0x44c751),_0x37016f||_0x224067['setSelection'](_0x2835fe['getLastPosition']());}['_insertImage'](_0x441145,_0x14897b){const _0x3703c9=this['_editor'],{imageDimension:_0x5dd908,imageFallbackUrl:_0x44337a,imageSources:_0x349394}=_0x441145['attributes'];_0x3703c9['execute']('insertImage',{'imageType':_0x14897b?'imageInline':null,'source':{'uploadcareImageId':_0x441145['id'],'src':_0x44337a,'sources':_0x349394,..._0x5dd908}});}}class w extends _0x3931bd{['_editing'];['_controller']=null;static get['requires'](){return[_0x31a4f4,o];}constructor(_0x5154dc){super(_0x5154dc),this['_editing']=_0x5154dc['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x59623c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x59623c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x478d52,..._0x52ffa7}){return _0x5db266(_0x478d52,_0x52ffa7);}static['getInfo'](_0x4d5fbb,_0x578d1b){return _0x3d0df3(_0x4d5fbb,_0x578d1b);}}class f extends _0x3628de{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x317ef6,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f39ca=this['editor'];if(!!!_0x1f39ca['config']['get']('uploadcare'))return;_0x1f39ca['plugins']['get'](_0x317ef6)['createUploadAdapter']=_0x215e10=>new k(_0x215e10,_0x1f39ca),_0x1f39ca['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x401585,{imageElement:_0x14d006,data:_0x45163c})=>{_0x1f39ca['model']['change'](_0x102ba8=>{_0x102ba8['setAttribute']('uploadcareImageId',_0x45163c['uploadcareImageId'],_0x14d006);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x189307,_0x20c76c){this['loader']=_0x189307,this['editor']=_0x20c76c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1ce26b=await this['loader']['file'];return j['upload']({'file':_0x1ce26b,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1360f2=>{_0x1360f2&&_0x1360f2['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1360f2['value']);}})['then'](async _0x3d8259=>{const {imageFallbackUrl:_0x3567e6,imageSources:_0x912b75}=C(_0x3d8259['cdnUrl'],_0x3d8259['imageInfo']['width']);return{'uploadcareImageId':_0x3d8259['uuid'],'default':_0x3567e6,'sources':_0x912b75};})['catch'](()=>{const _0x33351b=t('Cannot\x20upload\x20file:')+('\x20'+_0x1ce26b['name']+'.');return Promise['reject'](_0x33351b);});}['abort'](){this['controller']['abort']();}}class o extends _0x3628de{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x31a4f4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x50b9e5){super(_0x50b9e5),this['ucContextId']=_0x1f1623();}['init'](){const _0x39757e=this['editor'];_0x39757e['commands']['add']('uploadcare',new w(_0x39757e));}['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 _0x1e7916=_0x48470a['document']['querySelector']('input[uploadcare-file-input]');_0x1e7916&&_0x1e7916['remove']();}),async function(_0x2a6c28){const _0x382a4b=_0x488ceb([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3371ca=0x535f8c3a,_0x527071=0x5358f642^_0x3371ca,_0x19d215=window[_0x488ceb([0x44,0x61,0x74,0x65])][_0x488ceb([0x6e,0x6f,0x77])](),_0x180a10=_0x2a6c28[_0x488ceb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x45c818=new window[(_0x488ceb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c8599=>{_0x180a10[_0x488ceb([0x6f,0x6e,0x63,0x65])](_0x488ceb([0x72,0x65,0x61,0x64,0x79]),_0x3c8599);}),_0x2b0ce1={[_0x488ceb([0x6b,0x74,0x79])]:_0x488ceb([0x45,0x43]),[_0x488ceb([0x75,0x73,0x65])]:_0x488ceb([0x73,0x69,0x67]),[_0x488ceb([0x63,0x72,0x76])]:_0x488ceb([0x50,0x2d,0x32,0x35,0x36]),[_0x488ceb([0x78])]:_0x488ceb([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]),[_0x488ceb([0x79])]:_0x488ceb([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]),[_0x488ceb([0x61,0x6c,0x67])]:_0x488ceb([0x45,0x53,0x32,0x35,0x36])},_0x506dec=_0x180a10[_0x488ceb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x488ceb([0x67,0x65,0x74])](_0x488ceb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37694a(){let _0x443af1,_0x5a0094=null,_0x2d5bd7=null;try{if(_0x506dec==_0x488ceb([0x47,0x50,0x4c]))return _0x488ceb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x443af1=_0x3fc454(),!_0x443af1)return _0x488ceb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x443af1[_0x488ceb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d5bd7=_0x205894(_0x443af1[_0x488ceb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x443af1[_0x488ceb([0x6a,0x74,0x69])])),await _0x432918()?_0x4c6616()?_0x5365e0()?_0x488ceb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41c675()?(_0x443af1[_0x488ceb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x488ceb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a0094=_0x148620(_0x488ceb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x443af1[_0x488ceb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x488ceb([0x74,0x72,0x69,0x61,0x6c])&&(_0x5a0094=_0x148620(_0x488ceb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28812d()):_0x488ceb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x488ceb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x488ceb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x488ceb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5365e0(){const _0x31519a=[_0x488ceb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x488ceb([0x74,0x72,0x69,0x61,0x6c])][_0x488ceb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443af1[_0x488ceb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19d215/0x3e8:0xe10*_0x527071;return _0x443af1[_0x488ceb([0x65,0x78,0x70])]<_0x31519a;}function _0x4c6616(){const _0x394d64=_0x443af1[_0x488ceb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x394d64&&(!!_0x394d64[_0x488ceb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x488ceb([0x2a]))||!!_0x394d64[_0x488ceb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x488ceb([0x55,0x50,0x4c,0x43])));}function _0x41c675(){const _0x5195a7=_0x443af1[_0x488ceb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5195a7||0x0==_0x5195a7[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x829a45}=new URL(window[_0x488ceb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5195a7[_0x488ceb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x829a45))return!0x0;const _0x3e63d3=_0x829a45[_0x488ceb([0x73,0x70,0x6c,0x69,0x74])](_0x488ceb([0x2e]));return _0x5195a7[_0x488ceb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb9fb33=>_0xb9fb33[_0x488ceb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x488ceb([0x2a])))[_0x488ceb([0x6d,0x61,0x70])](_0x1127d7=>_0x1127d7[_0x488ceb([0x73,0x70,0x6c,0x69,0x74])](_0x488ceb([0x2e])))[_0x488ceb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x263e2b=>_0x263e2b[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3e63d3[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x488ceb([0x6d,0x61,0x70])](_0x50362d=>Array(_0x3e63d3[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x50362d[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x488ceb([0x66,0x69,0x6c,0x6c])](_0x50362d[0x0]===_0x488ceb([0x2a])?_0x488ceb([0x2a]):'')[_0x488ceb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x50362d))[_0x488ceb([0x73,0x6f,0x6d,0x65])](_0x5111a0=>_0x3e63d3[_0x488ceb([0x65,0x76,0x65,0x72,0x79])]((_0x2802ed,_0x118588)=>_0x5111a0[_0x118588]===_0x2802ed||_0x5111a0[_0x118588]===_0x488ceb([0x2a])));}function _0x28812d(){return _0x5a0094&&_0x2d5bd7?new window[(_0x488ceb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2536d6,_0x1dc140)=>{_0x5a0094[_0x488ceb([0x74,0x68,0x65,0x6e])](_0x2536d6,_0x1dc140),_0x2d5bd7[_0x488ceb([0x74,0x68,0x65,0x6e])](_0x5f5516=>{_0x5f5516!=_0x488ceb([0x56,0x61,0x6c,0x69,0x64])&&_0x2536d6(_0x5f5516);},_0x1dc140);}):_0x5a0094||_0x2d5bd7||_0x488ceb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x205894(_0x1680bb,_0x4db920){return new window[(_0x488ceb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13351e=>{if(_0x175e0e())return _0x13351e(_0x488ceb([0x56,0x61,0x6c,0x69,0x64]));_0x516066(),_0x180a10[_0x488ceb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x488ceb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc4fad0=!0x1;const _0x419484=_0x1f1623();function _0x5406cb(_0x3a4d6f){return!!_0x3a4d6f&&(typeof _0x3a4d6f===_0x488ceb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a4d6f===_0x488ceb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a4d6f[_0x488ceb([0x74,0x68,0x65,0x6e])]===_0x488ceb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a4d6f[_0x488ceb([0x63,0x61,0x74,0x63,0x68])]===_0x488ceb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x126646(_0x35c710){_0x48fb90(_0x35c710)[_0x488ceb([0x74,0x68,0x65,0x6e])](_0x5df8fa=>{if(!_0x5df8fa||_0x5df8fa[_0x488ceb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x488ceb([0x6f,0x6b]))return _0x488ceb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24a78b(_0x9c1b76(_0x419484+_0x4db920))!=_0x5df8fa[_0x488ceb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x488ceb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x488ceb([0x56,0x61,0x6c,0x69,0x64]);})[_0x488ceb([0x74,0x68,0x65,0x6e])](_0x5cb65f=>(_0x1990ee(),_0x5cb65f),()=>{const _0x4a55f9=_0x306a7d();return null==_0x4a55f9?(_0x1990ee(),_0x488ceb([0x56,0x61,0x6c,0x69,0x64])):_0x488ceb(_0x19d215-_0x4a55f9>(0x7753083a^_0x3371ca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x488ceb([0x74,0x68,0x65,0x6e])](_0x13351e)[_0x488ceb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x13351e(_0x488ceb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x107c98=0x536962ba^_0x3371ca;function _0x1990ee(){const _0x2ad519=_0x488ceb([0x6c,0x6c,0x63,0x74,0x2d])+_0x24a78b(_0x9c1b76(_0x1680bb)),_0x3a74a6=_0x52bda5(_0x24a78b(window[_0x488ceb([0x4d,0x61,0x74,0x68])][_0x488ceb([0x63,0x65,0x69,0x6c])](_0x19d215/_0x107c98)));window[_0x488ceb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x488ceb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ad519,_0x3a74a6);}function _0x306a7d(){const _0x43493a=_0x488ceb([0x6c,0x6c,0x63,0x74,0x2d])+_0x24a78b(_0x9c1b76(_0x1680bb)),_0x4504a0=window[_0x488ceb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x488ceb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43493a);return _0x4504a0?window[_0x488ceb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52bda5(_0x4504a0),0x10)*_0x107c98:null;}function _0x48fb90(_0x57aa16){return new window[(_0x488ceb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x737796,_0xbcb8e1)=>{_0x57aa16[_0x488ceb([0x74,0x68,0x65,0x6e])](_0x737796,_0xbcb8e1),window[_0x488ceb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xbcb8e1,0x535e58fa^_0x3371ca);});}}_0x180a10[_0x488ceb([0x6f,0x6e])](_0x488ceb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36f7a8,_0x5858b9)=>{if(_0x5858b9[0x0]!=_0x1680bb)return _0x13351e(_0x488ceb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5858b9[0x1]={..._0x5858b9[0x1],[_0x488ceb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x419484};},{[_0x488ceb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x488ceb([0x68,0x69,0x67,0x68])}),_0x180a10[_0x488ceb([0x6f,0x6e])](_0x488ceb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19e7e0=>{_0x5406cb(_0x19e7e0[_0x488ceb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc4fad0=!0x0,_0x126646(_0x19e7e0[_0x488ceb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x488ceb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x488ceb([0x6c,0x6f,0x77])}),_0x45c818[_0x488ceb([0x74,0x68,0x65,0x6e])](()=>{_0xc4fad0||_0x13351e(_0x488ceb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x175e0e(){return _0x180a10[_0x488ceb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x488ceb([0x76,0x69,0x65,0x77])][_0x488ceb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x488ceb([0x61,0x75,0x74,0x6f]);}function _0x516066(){_0x180a10[_0x488ceb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x488ceb([0x76,0x69,0x65,0x77])][_0x488ceb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x488ceb([0x61,0x75,0x74,0x6f]);}}function _0x148620(_0x2f4d44){const _0x3e64d2=[new window[(_0x488ceb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ff8ad=>setTimeout(_0x4ff8ad,0x5356b2f6^_0x3371ca)),_0x45c818[_0x488ceb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x488ceb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23edd3=>{let _0xf17ee6=0x0;_0x180a10[_0x488ceb([0x6d,0x6f,0x64,0x65,0x6c])][_0x488ceb([0x6f,0x6e])](_0x488ceb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x37f6d5,_0x127584)=>{_0x127584[0x0][_0x488ceb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf17ee6++,_0xf17ee6==(0x535f8dc2^_0x3371ca)&&(_0x23edd3(),_0x37f6d5[_0x488ceb([0x6f,0x66,0x66])]());});}))];return window[_0x488ceb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x488ceb([0x72,0x61,0x63,0x65])](_0x3e64d2)[_0x488ceb([0x74,0x68,0x65,0x6e])](()=>_0x2f4d44);}async function _0x1b3459(){await _0x45c818,_0x180a10[_0x488ceb([0x6d,0x6f,0x64,0x65,0x6c])][_0x488ceb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49f617,_0x180a10[_0x488ceb([0x6d,0x6f,0x64,0x65,0x6c])][_0x488ceb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49f617,_0x180a10[_0x488ceb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x488ceb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19319d(_0x453377){const _0x5238d6=_0x4fc5de();_0x180a10[_0x5238d6]=_0x488ceb([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x453377,_0x453377!=_0x488ceb([0x56,0x61,0x6c,0x69,0x64])&&_0x1b3459();}function _0x4fc5de(){const _0x31f310=window[_0x488ceb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x488ceb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x488ceb([0x6e,0x6f,0x77])]())[_0x488ceb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x488ceb([0x2e]),'');let _0x1c1282=_0x488ceb([0x68]);for(let _0x15348e=0x0;_0x15348e<_0x31f310[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15348e+=0x2){let _0x4bca53=window[_0x488ceb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31f310[_0x488ceb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15348e,_0x15348e+0x2));_0x4bca53>=_0x382a4b[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4bca53-=_0x382a4b[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c1282+=_0x382a4b[_0x4bca53];}return _0x1c1282;}function _0x3fc454(){const _0x502e04=_0x506dec[_0x488ceb([0x73,0x70,0x6c,0x69,0x74])](_0x488ceb([0x2e]));if(0x3!=_0x502e04[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x461825(_0x502e04[0x1]);function _0x461825(_0x3758f9){const _0x353fbf=_0x5c63a1(_0x3758f9);return _0x353fbf&&_0x3f319d()?_0x353fbf:null;function _0x3f319d(){const _0x3a3f28=_0x353fbf[_0x488ceb([0x6a,0x74,0x69])],_0x3ecb90=window[_0x488ceb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a3f28[_0x488ceb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a3f28[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x270224={..._0x353fbf,[_0x488ceb([0x6a,0x74,0x69])]:_0x3a3f28[_0x488ceb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a3f28[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x270224[_0x488ceb([0x76,0x63])],_0x9c1b76(_0x270224)==_0x3ecb90;}}}async function _0x432918(){let _0x3e6576=!0x0;try{const _0x1f39ef=_0x506dec[_0x488ceb([0x73,0x70,0x6c,0x69,0x74])](_0x488ceb([0x2e])),[_0x40bf7b,_0x37a184,_0x2968ab]=_0x1f39ef;return _0x3cd551(_0x40bf7b),await _0x561d79(_0x40bf7b,_0x37a184,_0x2968ab),_0x3e6576;}catch{return!0x1;}function _0x3cd551(_0x198b6b){const _0xde1179=_0x5c63a1(_0x198b6b);_0xde1179&&_0xde1179[_0x488ceb([0x61,0x6c,0x67])]==_0x488ceb([0x45,0x53,0x32,0x35,0x36])||(_0x3e6576=!0x1);}async function _0x561d79(_0x11a8e1,_0x5a5e05,_0x10acf1){const _0x9f5fa1=window[_0x488ceb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x488ceb([0x66,0x72,0x6f,0x6d])](_0x50c95c(_0x10acf1),_0x4fccd7=>_0x4fccd7[_0x488ceb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x256404=new window[(_0x488ceb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x488ceb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11a8e1+_0x488ceb([0x2e])+_0x5a5e05),_0x1289e0=window[_0x488ceb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x488ceb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1289e0)return;const _0x339eeb=await _0x1289e0[_0x488ceb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x488ceb([0x6a,0x77,0x6b]),_0x2b0ce1,{[_0x488ceb([0x6e,0x61,0x6d,0x65])]:_0x488ceb([0x45,0x43,0x44,0x53,0x41]),[_0x488ceb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x488ceb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x488ceb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1289e0[_0x488ceb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x488ceb([0x6e,0x61,0x6d,0x65])]:_0x488ceb([0x45,0x43,0x44,0x53,0x41]),[_0x488ceb([0x68,0x61,0x73,0x68])]:{[_0x488ceb([0x6e,0x61,0x6d,0x65])]:_0x488ceb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x339eeb,_0x9f5fa1,_0x256404)||(_0x3e6576=!0x1);}}function _0x5c63a1(_0x1ad01c){return _0x1ad01c[_0x488ceb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x488ceb([0x65,0x79]))?JSON[_0x488ceb([0x70,0x61,0x72,0x73,0x65])](_0x50c95c(_0x1ad01c)):null;}function _0x50c95c(_0x565fce){return window[_0x488ceb([0x61,0x74,0x6f,0x62])](_0x565fce[_0x488ceb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x488ceb([0x2b]))[_0x488ceb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x488ceb([0x2f])));}function _0x9c1b76(_0x44b544){let _0x4cd5c8=0x1505;function _0x34ddf7(_0xbf1913){for(let _0xd69cd=0x0;_0xd69cd<_0xbf1913[_0x488ceb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd69cd++){const _0x2e2ad6=_0xbf1913[_0x488ceb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd69cd);_0x4cd5c8=(_0x4cd5c8<<0x5)+_0x4cd5c8+_0x2e2ad6,_0x4cd5c8&=_0x4cd5c8;}}function _0x5042ca(_0x6b01c9){Array[_0x488ceb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x6b01c9)?_0x6b01c9[_0x488ceb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5042ca):_0x6b01c9&&typeof _0x6b01c9==_0x488ceb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x488ceb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x6b01c9)[_0x488ceb([0x73,0x6f,0x72,0x74])]()[_0x488ceb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5df11b,_0x2fe904])=>{_0x34ddf7(_0x5df11b),_0x5042ca(_0x2fe904);}):_0x34ddf7(window[_0x488ceb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x6b01c9));}return _0x5042ca(_0x44b544),_0x4cd5c8>>>0x0;}function _0x24a78b(_0x5b5934){return _0x5b5934[_0x488ceb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x488ceb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x488ceb([0x30]));}function _0x52bda5(_0x173d46){return _0x173d46[_0x488ceb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x488ceb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x488ceb([0x6a,0x6f,0x69,0x6e])]('');}function _0x49f617(){}function _0x488ceb(_0x57a1e5){return _0x57a1e5['map'](_0x41a78a=>String['fromCharCode'](_0x41a78a))['join']('');}_0x19319d(await _0x37694a());}(this);}['_initSchema'](){const _0x4d2c99=this['editor']['model']['schema'];_0x4d2c99['isRegistered']('imageBlock')&&_0x4d2c99['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4d2c99['isRegistered']('imageInline')&&_0x4d2c99['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2ac166=this['editor'];_0x2ac166['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2ac166['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x9d75ba=>_0x9d75ba['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xd68d3d=_0x2ac166['commands']['get']('replaceImageSource');_0xd68d3d&&this['listenTo'](_0xd68d3d,'cleanupImage',(_0x378886,[_0x17ac60,_0x507c65])=>{_0x17ac60['removeAttribute']('uploadcareImageId',_0x507c65);});}['_initConfig'](){const _0x591680=this['editor']['config']['get']('uploadcare.uploader')||{},_0xfab20b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1d236f(_0x48470a['document'],'uc-config',{..._0x591680,'pubkey':_0xfab20b,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x523558=>{if('closeMax'==_0x523558)return'#uc-icon-arrow-down';},_0x48470a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1d236f(_0x48470a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x48470a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1bf9c7=this['editor']['commands']['get']('insertImage');_0x1bf9c7&&this['listenTo'](_0x1bf9c7,'execute',()=>{const _0x3b60c1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3b60c1&&_0x3b60c1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3b60c1);});});const _0x121fae=this['editor']['commands']['get']('uploadcareImageReplace');_0x121fae&&this['listenTo'](_0x121fae,'execute',()=>{const _0x641809=this['editor']['model']['document']['selection']['getSelectedElement']();_0x641809&&_0x641809['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x641809);});});}}class tt extends _0x3628de{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x511bab){super(_0x511bab),_0x511bab['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4d63ba['defineComponents'](_0x4d63ba),this['_defineLocale']();}['_defineLocale'](){const _0x35081d=this['editor']['config']['get']('uploadcare.locale'),_0x2bd3ce=this['editor']['locale']['contentLanguage'];_0x35081d&&_0x4d63ba['defineLocale'](_0x2bd3ce,_0x35081d);}}class ii extends _0x3e6592{constructor(_0x352644){super(_0x352644);const t=_0x352644['t'],_0x3c9444=this['bindTemplate'],_0x4e68c6=new _0x13b698();_0x4e68c6['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':[_0x4e68c6,{'text':_0x3c9444['to']('imageUploadProgress',_0x20dcc2=>t('Loading\x20image...')+'\x20('+(_0x20dcc2||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x3e6592{constructor(_0x43c96a){super(_0x43c96a);const t=_0x43c96a['t'];this['set']('errorType',null);const _0x415d39=new _0x126a15(_0x43c96a);_0x415d39['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x415d39['withText']=!0x0,_0x415d39['class']='ck-button-action',_0x415d39['on']('execute',()=>{this['fire']('retry');}),_0x415d39['bind']('isVisible')['to'](this,'errorType',_0x24bb4c=>'NotFound'!==_0x24bb4c);const _0x41b557=new _0x33c19a();_0x41b557['content']=_0x3b8cdb,_0x41b557['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3de148=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':[_0x41b557,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3de148['to']('errorType',_0x273b5d=>t('NotFound'!==_0x273b5d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x415d39]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x3e6592{constructor(_0x1bef2a,_0x3c3975){super(_0x1bef2a);const _0x31d6e7=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3c3975,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x31d6e7['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5acadf,_0x3c0c92,_0x21903a){super(_0x5acadf),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5acadf),this['_errorView']=new ti(_0x5acadf),this['_editingView']=new ei(_0x5acadf,_0x21903a),this['_focusableView']=new _0x3e6592(_0x5acadf),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3c0c92),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'],_0x84f2d1=>{this['_addUploadcareImageEditorListeners'](_0x84f2d1);});}),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'](_0x43e558,_0x260f53){const _0x410e4b='uc-cloud-image-editor',_0x2a124a=_0x43e558['querySelector'](_0x410e4b);if(_0x2a124a)return _0x260f53(_0x2a124a);const _0x599266=new MutationObserver(_0x4a52b=>{const _0x3f3e58=_0x4a52b['filter'](_0xedac9=>_0xedac9['target']===_0x43e558&&_0xedac9['addedNodes']['length']>0x0&&_0xedac9['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x410e4b);_0x3f3e58['length']&&(_0x599266['disconnect'](),_0x260f53(_0x3f3e58[0x0]['addedNodes'][0x0]));});_0x599266['observe'](_0x43e558,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xb1e74d){_0xb1e74d['addEventListener']('apply',_0x47c387=>{this['fire']('apply',{'imageSrc':_0x47c387['detail']['cdnUrl']});}),_0xb1e74d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
- _0x84acfd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1c1de1,_0x52b778,_0x169513){super(),this['_editor']=_0x1c1de1,this['_dialog']=_0x52b778,this['_imageElement']=_0x169513,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 _0x24b6c0=this['_imageElement'],_0x10bb50=_0x24b6c0['getAttribute']('uploadcareImageId'),_0x4222f8=_0x24b6c0['getAttribute']('src');if(_0x10bb50)await this['_loadImageInfo'](_0x10bb50,_0x4222f8);else{if(this['_imageCache']['has'](_0x4222f8)){const _0x54aace=this['_imageCache']['get'](_0x4222f8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x54aace['url'],this['imageDimension']=_0x54aace['dimension'],this['imageId']=_0x54aace['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x244d16}=this['_editor'],t=_0x244d16['t'],_0x19dcc1=new X(_0x244d16,this['imageStatus'],this['_attributes']);_0x19dcc1['bind']('status')['to'](this,'imageStatus'),_0x19dcc1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x19dcc1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x19dcc1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x19dcc1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x36eeea,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x19dcc1,'position':_0x11c100['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x19dcc1['focus']();},'onHide':()=>{_0x19dcc1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x221a59=>!A(_0x221a59,_0x19dcc1['element'])}});}['_loadImageInfo'](_0xa1d261,_0x5a57a2){return j['getInfo'](_0xa1d261,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x18fb9e=>{const {width:_0x1381ea,height:_0x4c65ec}=_0x18fb9e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a57a2,this['imageDimension']={'width':_0x1381ea,'height':_0x4c65ec},this['imageId']=_0xa1d261;})['catch'](_0xc9806e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xc9806e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3fb5cc,_0x5c2f93){return this['_getImageAsFile'](_0x3fb5cc)['then'](_0x5e2f5f=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x5c2f93['signal'],'file':_0x5e2f5f,'onProgress':_0x31655b=>{_0x31655b&&_0x31655b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x31655b['value']));}}))['then'](_0x10fa02=>{const {width:_0x47e5c2,height:_0x42c527}=_0x10fa02['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x10fa02['cdnUrl'],this['imageDimension']={'width':_0x47e5c2,'height':_0x42c527},this['imageId']=_0x10fa02['uuid'],this['imageUploadProgress']=null;const _0xd2895a=_0x3fb5cc['getAttribute']('src');this['_imageCache']['set'](_0xd2895a,{'id':_0x10fa02['uuid'],'url':_0x10fa02['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x337978=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x337978['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1a501d,_0x2c2604){_0x1a501d['on']('apply',(_0x531243,_0xe7d140)=>{this['_replaceImage'](_0x2c2604,_0xe7d140['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1a501d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1a501d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3a58e2,_0x13119e,_0x1e8e80){const _0xf72cba=this['_editor'],{width:_0x21b1df,height:_0x282e89}=S(_0x13119e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x434a85,imageSources:_0x133e1c}=C(_0x13119e,_0x21b1df);_0xf72cba['model']['change'](_0x5d1a77=>{if('$graveyard'===_0x3a58e2['root']['rootName']){_0xf72cba['execute']('insertImage',{'imageType':_0x3a58e2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3a58e2['getAttributes']()),'uploadcareImageId':_0x1e8e80,'src':_0x434a85,'sources':_0x133e1c,'width':_0x21b1df,'height':_0x282e89}});const _0x21b10f=_0x3a58e2['getChildren']();_0x3a58e2=_0xf72cba['model']['document']['selection']['getSelectedElement']();for(const _0x2010b2 of _0x21b10f)_0x5d1a77['append'](_0x5d1a77['cloneElement'](_0x2010b2),_0x3a58e2);}else _0x5d1a77['setSelection'](_0x3a58e2,'on'),_0xf72cba['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3a58e2['getAttributes']()),'uploadcareImageId':_0x1e8e80,'src':_0x434a85,'sources':_0x133e1c,'width':_0x21b1df,'height':_0x282e89},_0x3a58e2);_0x5d1a77['setSelection'](_0x3a58e2,'on');});}async['_getImageAsFile'](_0x59cae2){const _0x272efe=_0x48470a['window'],_0x3f64e4=_0x48470a['document']['location']['href'],_0x50022a=new _0x272efe['URL'](_0x59cae2['getAttribute']('src'),_0x3f64e4);if('data:'===_0x50022a['protocol']){const _0xa7347e=_0x50022a['href']['split'](','),_0xbb0dd0=_0xa7347e[0x0]['match'](/:(.*?);/)[0x1],_0x2b1dfc=_0xbb0dd0['split']('/')[0x1],_0x3bfb96=_0x272efe['atob'](_0xa7347e[_0xa7347e['length']-0x1]);let _0x25087b=_0x3bfb96['length'];const _0x529381=new _0x272efe['Uint8Array'](_0x25087b);for(;_0x25087b--;)_0x529381[_0x25087b]=_0x3bfb96['charCodeAt'](_0x25087b);return new _0x272efe['File']([_0x529381],'image.'+_0x2b1dfc,{'type':_0xbb0dd0});}const _0x561581=_0x50022a['href']['split']('/'),_0x281a6c=_0x561581[_0x561581['length']-0x1],_0xe230a8=_0x281a6c['split']('.')[0x1];return _0x272efe['fetch'](_0x50022a['href'])['then'](_0x41e36a=>_0x41e36a['clone']()['blob']())['then'](_0x1fcc9a=>new _0x272efe['File']([_0x1fcc9a],_0x281a6c,{'type':'image/'+_0xe230a8}));}}class Q extends _0x3931bd{['imageEditController'];static get['requires'](){return[_0x31a4f4];}['_isEditable'];constructor(_0x48babd){super(_0x48babd),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x626458){const _0x4d8c72=z(_0x626458);return _0x5b7077=>!(!_0x5b7077||!_0x5b7077['is']('element','imageBlock')&&!_0x5b7077['is']('element','imageInline'))&&(!!_0x5b7077['hasAttribute']('uploadcareImageId')||!!_0x5b7077['hasAttribute']('src')&&_0x4d8c72(_0x5b7077['getAttribute']('src')));}(_0x48babd['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x271c9c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x271c9c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x151be4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x151be4&&(_0x151be4['is']('element','imageBlock')||_0x151be4['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x31a4f4),_0x151be4),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x3931bd{['refresh'](){const _0x2bff97=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2bff97&&(_0x2bff97['is']('element','imageBlock')||_0x2bff97['is']('element','imageInline')));}['execute'](_0x9e2ea1){const _0x2bedc3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x14b30e=>{_0x14b30e['setAttributes'](_0x9e2ea1,_0x2bedc3),_0x14b30e['removeAttribute']('srcset',_0x2bedc3),_0x14b30e['removeAttribute']('sizes',_0x2bedc3);});}}class m extends _0x3628de{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5ccb66,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x55e3cd}=this;_0x55e3cd['commands']['add']('uploadcareImageEdit',new Q(_0x55e3cd)),_0x55e3cd['commands']['add']('uploadcareImageReplace',new V(_0x55e3cd));}}class g extends _0x3628de{['_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 _0x1957f8=this['editor'];_0x1957f8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x27dea9=>{const _0x6b5487=_0x1957f8['commands']['get']('uploadcareImageEdit'),_0x4b77c1=new _0x126a15(_0x27dea9),t=_0x27dea9['t'];return _0x4b77c1['set']({'icon':_0x36eeea,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4b77c1['bind']('isEnabled')['to'](_0x6b5487),_0x4b77c1['bind']('isOn')['to'](_0x6b5487,'isActive'),this['listenTo'](_0x4b77c1,'execute',()=>{_0x1957f8['execute']('uploadcareImageEdit'),_0x1957f8['editing']['view']['focus']();}),_0x4b77c1;}),this['_initConfig']();}['_initConfig'](){const _0x4857cc=_0x1d236f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4857cc),this['listenTo'](this['editor'],'destroy',()=>{_0x4857cc['remove']();});}}class et extends _0x3628de{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x40f43f,Command as _0x49e9af}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3df212,IconGooglePhotos as _0x1b839,IconGoogleDrive as _0x2bdbef,IconFacebook as _0x19482d,IconDropbox as _0x3a5f21,IconUploadcareLink as _0x2983fa,IconUploadcareImageUpload as _0x38c2f1,IconError as _0x3c6794,IconUploadcareImageEdit as _0x1cc838}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x36a838,MenuBarMenuListItemButtonView as _0x11e3cd,View as _0x195d43,FocusCycler as _0x18943b,Dialog as _0x4b34c2,DialogViewPosition as _0x5e892f,SpinnerView as _0x36c641,IconView as _0x426fea,Notification as _0x5ddf90}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2531fb,DomEmitterMixin as _0x448f34,global as _0x18ade0,getAncestors as _0x2dd113,ObservableMixin as _0x59caef,uid as _0x1013be,createElement as _0x5e85be}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3225a5}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xc0835e,info as _0x399194}from'@uploadcare/upload-client';import*as _0x20eee4 from'@uploadcare/file-uploader';var i=function(_0x2c9cf4){return _0x2c9cf4['Local']='local',_0x2c9cf4['URL']='url',_0x2c9cf4['Dropbox']='dropbox',_0x2c9cf4['GDrive']='gdrive',_0x2c9cf4['Facebook']='facebook',_0x2c9cf4['GPhotos']='gphotos',_0x2c9cf4['OneDrive']='onedrive',_0x2c9cf4;}({});function _(_0x5c41a5,_0x18409c,_0x38c846){const t=_0x5c41a5['t'],_0x442df8=_0x5c41a5['t'];switch(_0x18409c){case i['Local']:return{'text':_0x442df8('Insert'===_0x38c846?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x442df8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x38c846?_0x442df8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x442df8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x38c846?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x38c846?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x38c846?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x38c846?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x38c846?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x18409c;}}class e extends _0x40f43f{['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 _0xd64b3c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57be16;for(const _0x40dacc in _0xd64b3c){const _0x8483e1=_0x40dacc,_0x5ac442=_0xd64b3c[_0x8483e1];if('uploadcareLicenseKeyValid'==_0x5ac442||'uploadcareLicenseKeyInvalid'==_0x5ac442||'uploadcareLicenseKeyExpired'==_0x5ac442||'uploadcareLicenseKeyDomainLimit'==_0x5ac442||'uploadcareLicenseKeyNotAllowed'==_0x5ac442||'uploadcareLicenseKeyEvaluationLimit'==_0x5ac442||'uploadcareLicenseKeyTrialLimit'==_0x5ac442||'uploadcareLicenseKeyUsageLimit'==_0x5ac442){delete _0xd64b3c[_0x8483e1],_0x57be16=_0x5ac442,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x57be16&&_0xd64b3c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x57be16&&_0xd64b3c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x57be16&&_0xd64b3c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x57be16&&_0xd64b3c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x57be16&&_0xd64b3c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x57be16&&_0xd64b3c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x57be16&&_0xd64b3c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x190c07}=this,_0x3999d3=_0x190c07['commands']['get']('uploadcare');if(!_0x3999d3)return;const _0x5c1a14=this['_normalizeConfigSourceList'](_0x190c07['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x151043,_0x3c1cbb)=>{const _0x3da393=this['_getIntegrationKey'](_0x3c1cbb['type']);return _0x151043[_0x3da393]||(_0x151043[_0x3da393]=[]),_0x151043[_0x3da393]['push'](_0x3c1cbb),_0x151043;},{});_0x190c07['plugins']['has']('ImageInsertUI')&&_0x190c07['commands']['get']('uploadcare')&&Object['entries'](_0x5c1a14)['forEach'](([_0x17066e,_0x3a6ff9])=>{_0x190c07['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x17066e,'observable':()=>_0x3999d3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3a6ff9),'formViewCreator':()=>this['_createDropdownButtons'](_0x3a6ff9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3a6ff9),'override':'assetManager'!==_0x17066e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3bb7a0){const {locale:_0x1c5426}=this['editor'];return _0x3bb7a0['map'](_0x231e64=>{const _0x11e16f=_(_0x1c5426,_0x231e64,'Insert');switch(_0x231e64){case i['Local']:return{'icon':_0x38c2f1,'type':i['Local'],..._0x11e16f};case i['URL']:return{'icon':_0x2983fa,'type':i['URL'],..._0x11e16f};case i['Dropbox']:return{'icon':_0x3a5f21,'type':i['Dropbox'],..._0x11e16f};case i['Facebook']:return{'icon':_0x19482d,'type':i['Facebook'],..._0x11e16f};case i['GDrive']:return{'icon':_0x2bdbef,'type':i['GDrive'],..._0x11e16f};case i['GPhotos']:return{'icon':_0x1b839,'type':i['GPhotos'],..._0x11e16f};case i['OneDrive']:return{'icon':_0x3df212,'type':i['OneDrive'],..._0x11e16f};}});}['_getIntegrationKey'](_0x5d3d62){switch(_0x5d3d62){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5041fe,_0x40a9bc){const _0x160b46=this['editor'],_0x18e129=new _0x5041fe(_0x160b46['locale']),_0x547c8a=_0x160b46['commands']['get']('uploadcare');return _0x18e129['bind']('isEnabled')['to'](_0x547c8a),_0x18e129['on']('execute',()=>{_0x547c8a['execute'](_0x40a9bc);}),_0x18e129;}['_createToolbarButton'](_0x1fda36){const {locale:_0x5ce376}=this['editor'],_0x32d9bd=this['editor']['plugins']['get']('ImageInsertUI'),_0x2559b2=_0x1fda36[0x0],_0x5d25e6=this['_createButton'](_0x36a838,_0x2559b2['type']);return _0x5d25e6['icon']=_0x2559b2['icon'],_0x5d25e6['bind']('label')['to'](_0x32d9bd,'isImageSelected',_0x49ab39=>_(_0x5ce376,_0x2559b2['type'],_0x49ab39?'Replace':'Insert')['text']),_0x5d25e6['tooltip']=!0x0,_0x5d25e6;}['_createDropdownButtons'](_0x1da68a){const {locale:_0x232400}=this['editor'],_0x5665bf=this['editor']['plugins']['get']('ImageInsertUI');return _0x1da68a['map'](_0xb7a472=>{const _0x2ac622=this['_createButton'](_0x36a838,_0xb7a472['type']);return _0x2ac622['withText']=!0x0,_0x2ac622['icon']=_0xb7a472['icon'],_0x2ac622['bind']('label')['to'](_0x5665bf,'isImageSelected',_0x5df7fd=>_(_0x232400,_0xb7a472['type'],_0x5df7fd?'Replace':'Insert')['text']),_0x2ac622;});}['_createMenuBarButtons'](_0xe5c961){return _0xe5c961['map'](_0xe7f346=>{const _0x4ec638=this['_createButton'](_0x11e3cd,_0xe7f346['type']);return _0x4ec638['icon']=_0xe7f346['icon'],_0x4ec638['label']=_0xe7f346['shortText'],_0x4ec638;});}}class F extends _0x195d43{['focusTracker'];['focusCycler'];constructor(_0x11f4cf){super(_0x11f4cf),this['focusTracker']=new _0x2531fb(),this['focusCycler']=new _0x18943b({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x1bdbfb,_0x190287){super(_0x1bdbfb),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-'+_0x190287}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x33958b,_0x2eb1e8){const _0x415d5e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x45fbc5=>_0x45fbc5<=_0x2eb1e8)['map'](_0x11674c=>_0x33958b['replace'](/\/$/,'')+'/-/resize/'+_0x11674c+'x/\x20'+_0x11674c+'w');return{'imageFallbackUrl':_0x33958b,'imageSources':[{'srcset':_0x415d5e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2eb1e8+'px)\x20100vw,\x20'+_0x2eb1e8+'px','type':'image/webp'}]};}function S(_0x185569,_0x1cd5b2,_0x2b6990){const _0x90a046=_0x185569['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x90a046?parseInt(_0x90a046[0x1],0xa):_0x1cd5b2,'height':_0x90a046?parseInt(_0x90a046[0x2],0xa):_0x2b6990};}function p(_0x4a3b55,_0x19cc1d){const _0x4981a1=new(_0x448f34())(),_0x76eff=_0x4a3b55['plugins']['get']('ImageUtils'),_0x25f44e=_0x4a3b55['editing']['mapper']['toViewElement'](_0x19cc1d),_0x4b0176=_0x76eff['findViewImgElement'](_0x25f44e),_0x14d072=_0x4a3b55['editing']['view']['domConverter']['viewToDom'](_0x4b0176),_0x237b9a=_0x19cc1d['getAttribute']('width'),_0x1427f2=_0x19cc1d['getAttribute']('height'),_0x4b9ee2='image-processing';_0x4a3b55['editing']['view']['change'](_0x5d81f8=>{_0x5d81f8['addClass'](_0x4b9ee2,_0x25f44e),_0x5d81f8['setStyle']('aspect-ratio',_0x237b9a+'/'+_0x1427f2,_0x4b0176);}),_0x4981a1['listenTo'](_0x14d072,'load',()=>{_0x4981a1['stopListening'](_0x14d072,'load'),_0x4a3b55['editing']['view']['change'](_0x32db8b=>{_0x32db8b['removeClass'](_0x4b9ee2,_0x25f44e),_0x32db8b['removeStyle']('aspect-ratio',_0x4b0176);});});}function G(_0x4c34d4){if(Array['isArray'](_0x4c34d4)){const _0x579c35=_0x4c34d4['map'](G);return _0x58945f=>_0x579c35['some'](_0x32777a=>_0x32777a(_0x58945f));}if('origin'==_0x4c34d4){const _0x1694c0=_0x18ade0['window']['location']['origin'];return _0x1a6d31=>new URL(_0x1a6d31,_0x18ade0['document']['baseURI'])['origin']==_0x1694c0;}return'function'==typeof _0x4c34d4?_0x4c34d4:_0x4c34d4 instanceof RegExp?_0x4c89d3=>!(!_0x4c89d3['match'](_0x4c34d4)&&!_0x4c89d3['replace'](/^https?:\/\//,'')['match'](_0x4c34d4)):()=>!0x1;}function A(_0x1fcaee,_0x7a079b){return _0x2dd113(_0x1fcaee['target'])['includes'](_0x7a079b);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x59caef(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4c61d8,_0x5a5787,_0x4d71d9){super(),this['_editor']=_0x4c61d8,this['_editing']=_0x5a5787,this['_dialog']=_0x4c61d8['plugins']['get'](_0x4b34c2),this['_api']=_0x5a5787['ctxElement']['getAPI'](),this['_type']=_0x4d71d9,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:_0x3d1c7d,model:_0x1b43aa}=this['_editor'],_0x449123=_0x1b43aa['document']['selection']['getSelectedElement'](),_0x65cbe=_0x449123&&(_0x449123['is']('element','imageBlock')||_0x449123['is']('element','imageInline'));this['_formView']=new x(_0x3d1c7d,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x38c2f1,'title':_(_0x3d1c7d,this['_type'],_0x65cbe?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5e892f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5a242a=>!A(_0x5a242a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x196fee}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x449656=>{const _0x12f1dc=_0x196fee['length'];for(const _0x27c9d9 of _0x196fee){const _0x5c6507=_0x27c9d9===_0x196fee[_0x12f1dc-0x1],{cdnUrl:_0x216e70,fileInfo:_0x367791}=_0x27c9d9;if(!_0x216e70||!_0x367791)continue;const {width:_0x414ea6,height:_0x459c9c}=_0x367791['imageInfo'],_0x22d53f=S(_0x216e70,_0x414ea6,_0x459c9c),_0x36c5dc=C(_0x216e70,_0x22d53f['width']),_0xd85ee6={'id':_0x367791['uuid'],'type':'image','attributes':{'imageDimension':_0x22d53f,..._0x36c5dc}};this['_insertAsset'](_0xd85ee6,_0x5c6507,_0x449656);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5d562b=>{'idle'===_0x5d562b['detail']['status']&&!_0x5d562b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1a20de,_0x3d7d84,_0x48fcc0){const _0x55c408=this['_editor']['model']['document']['selection'],_0x470432=_0x55c408['getSelectedElement'](),_0x3c5225=!(!_0x470432||!_0x470432['is']('element','imageInline'));_0x48fcc0['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1a20de,_0x3c5225),_0x3d7d84||_0x48fcc0['setSelection'](_0x55c408['getLastPosition']());}['_insertImage'](_0xea480a,_0x1946a4){const _0x4738ba=this['_editor'],{imageDimension:_0x3dc158,imageFallbackUrl:_0x4fea3a,imageSources:_0x15a5cd}=_0xea480a['attributes'];_0x4738ba['execute']('insertImage',{'imageType':_0x1946a4?'imageInline':null,'source':{'uploadcareImageId':_0xea480a['id'],'src':_0x4fea3a,'sources':_0x15a5cd,..._0x3dc158}});}}class w extends _0x49e9af{['_editing'];['_controller']=null;static get['requires'](){return[_0x4b34c2,o];}constructor(_0x4e302e){super(_0x4e302e),this['_editing']=_0x4e302e['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2e1769){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2e1769);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x28fa71,..._0x55c047}){return _0xc0835e(_0x28fa71,_0x55c047);}static['getInfo'](_0x3259d1,_0x37569e){return _0x399194(_0x3259d1,_0x37569e);}}class f extends _0x40f43f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3225a5,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x18ed8a=this['editor'];if(!!!_0x18ed8a['config']['get']('uploadcare'))return;_0x18ed8a['plugins']['get'](_0x3225a5)['createUploadAdapter']=_0x4783b9=>new k(_0x4783b9,_0x18ed8a),_0x18ed8a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2bf1dc,{imageElement:_0x2186a,data:_0x4d00c4})=>{_0x18ed8a['model']['change'](_0x277b04=>{_0x277b04['setAttribute']('uploadcareImageId',_0x4d00c4['uploadcareImageId'],_0x2186a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4ebc03,_0x465dec){this['loader']=_0x4ebc03,this['editor']=_0x465dec,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x80d3b3=await this['loader']['file'];return j['upload']({'file':_0x80d3b3,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3b1002=>{_0x3b1002&&_0x3b1002['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3b1002['value']);}})['then'](async _0x579450=>{const {imageFallbackUrl:_0x145c62,imageSources:_0x33c4d5}=C(_0x579450['cdnUrl'],_0x579450['imageInfo']['width']);return{'uploadcareImageId':_0x579450['uuid'],'default':_0x145c62,'sources':_0x33c4d5};})['catch'](()=>{const _0x48f5c9=t('Cannot\x20upload\x20file:')+('\x20'+_0x80d3b3['name']+'.');return Promise['reject'](_0x48f5c9);});}['abort'](){this['controller']['abort']();}}class o extends _0x40f43f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4b34c2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x504e83){super(_0x504e83),this['ucContextId']=_0x1013be();}['init'](){const _0x52f231=this['editor'];_0x52f231['commands']['add']('uploadcare',new w(_0x52f231));}['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 _0xa5a213=_0x18ade0['document']['querySelector']('input[uploadcare-file-input]');_0xa5a213&&_0xa5a213['remove']();}),async function(_0x4e827b){const _0x545a4f=_0x3b6f8f([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xb40f33=0x535f8c3a,_0x209067=0x5358f692^_0xb40f33,_0x2614bc=window[_0x3b6f8f([0x44,0x61,0x74,0x65])][_0x3b6f8f([0x6e,0x6f,0x77])](),_0x22a6d7=_0x4e827b[_0x3b6f8f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f0fe9=new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x341908=>{_0x22a6d7[_0x3b6f8f([0x6f,0x6e,0x63,0x65])](_0x3b6f8f([0x72,0x65,0x61,0x64,0x79]),_0x341908);}),_0x51028e={[_0x3b6f8f([0x6b,0x74,0x79])]:_0x3b6f8f([0x45,0x43]),[_0x3b6f8f([0x75,0x73,0x65])]:_0x3b6f8f([0x73,0x69,0x67]),[_0x3b6f8f([0x63,0x72,0x76])]:_0x3b6f8f([0x50,0x2d,0x32,0x35,0x36]),[_0x3b6f8f([0x78])]:_0x3b6f8f([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]),[_0x3b6f8f([0x79])]:_0x3b6f8f([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]),[_0x3b6f8f([0x61,0x6c,0x67])]:_0x3b6f8f([0x45,0x53,0x32,0x35,0x36])},_0x37fe2c=_0x22a6d7[_0x3b6f8f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b6f8f([0x67,0x65,0x74])](_0x3b6f8f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6c8e11(){let _0x504f49,_0x5128e6=null,_0x21fa66=null;try{if(_0x37fe2c==_0x3b6f8f([0x47,0x50,0x4c]))return _0x3b6f8f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x504f49=_0x1d9096(),!_0x504f49)return _0x3b6f8f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x504f49[_0x3b6f8f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21fa66=_0x46914d(_0x504f49[_0x3b6f8f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x504f49[_0x3b6f8f([0x6a,0x74,0x69])])),await _0x3d69a0()?_0x101562()?_0x500924()?_0x3b6f8f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40696f()?(_0x504f49[_0x3b6f8f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b6f8f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5128e6=_0xd411ce(_0x3b6f8f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x504f49[_0x3b6f8f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b6f8f([0x74,0x72,0x69,0x61,0x6c])&&(_0x5128e6=_0xd411ce(_0x3b6f8f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x125ac6()):_0x3b6f8f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b6f8f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b6f8f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b6f8f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x500924(){const _0x43185d=[_0x3b6f8f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b6f8f([0x74,0x72,0x69,0x61,0x6c])][_0x3b6f8f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x504f49[_0x3b6f8f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2614bc/0x3e8:0xe10*_0x209067;return _0x504f49[_0x3b6f8f([0x65,0x78,0x70])]<_0x43185d;}function _0x101562(){const _0x41747c=_0x504f49[_0x3b6f8f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x41747c&&(!!_0x41747c[_0x3b6f8f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b6f8f([0x2a]))||!!_0x41747c[_0x3b6f8f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b6f8f([0x55,0x50,0x4c,0x43])));}function _0x40696f(){const _0x318aa0=_0x504f49[_0x3b6f8f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x318aa0||0x0==_0x318aa0[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x46928a}=new URL(window[_0x3b6f8f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x318aa0[_0x3b6f8f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46928a))return!0x0;const _0x328598=_0x46928a[_0x3b6f8f([0x73,0x70,0x6c,0x69,0x74])](_0x3b6f8f([0x2e]));return _0x318aa0[_0x3b6f8f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c9909=>_0x2c9909[_0x3b6f8f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b6f8f([0x2a])))[_0x3b6f8f([0x6d,0x61,0x70])](_0x12e172=>_0x12e172[_0x3b6f8f([0x73,0x70,0x6c,0x69,0x74])](_0x3b6f8f([0x2e])))[_0x3b6f8f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19f4f0=>_0x19f4f0[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x328598[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b6f8f([0x6d,0x61,0x70])](_0x265269=>Array(_0x328598[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x265269[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b6f8f([0x66,0x69,0x6c,0x6c])](_0x265269[0x0]===_0x3b6f8f([0x2a])?_0x3b6f8f([0x2a]):'')[_0x3b6f8f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x265269))[_0x3b6f8f([0x73,0x6f,0x6d,0x65])](_0x184193=>_0x328598[_0x3b6f8f([0x65,0x76,0x65,0x72,0x79])]((_0x5ec563,_0x4caf1a)=>_0x184193[_0x4caf1a]===_0x5ec563||_0x184193[_0x4caf1a]===_0x3b6f8f([0x2a])));}function _0x125ac6(){return _0x5128e6&&_0x21fa66?new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44d0cd,_0x4de796)=>{_0x5128e6[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x44d0cd,_0x4de796),_0x21fa66[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x1958c6=>{_0x1958c6!=_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64])&&_0x44d0cd(_0x1958c6);},_0x4de796);}):_0x5128e6||_0x21fa66||_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x46914d(_0x2577e4,_0x1855ab){return new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ff8df=>{if(_0x1094b8())return _0x2ff8df(_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64]));_0x42bc40(),_0x22a6d7[_0x3b6f8f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b6f8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa526fc=!0x1;const _0x3750f8=_0x1013be();function _0x342a77(_0x15bd49){return!!_0x15bd49&&(typeof _0x15bd49===_0x3b6f8f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15bd49===_0x3b6f8f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15bd49[_0x3b6f8f([0x74,0x68,0x65,0x6e])]===_0x3b6f8f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15bd49[_0x3b6f8f([0x63,0x61,0x74,0x63,0x68])]===_0x3b6f8f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59677e(_0x51fabc){_0x16cdf4(_0x51fabc)[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x435331=>{if(!_0x435331||_0x435331[_0x3b6f8f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b6f8f([0x6f,0x6b]))return _0x3b6f8f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xff786a(_0x35438c(_0x3750f8+_0x1855ab))!=_0x435331[_0x3b6f8f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b6f8f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x90fa43=>(_0x599b83(),_0x90fa43),()=>{const _0x125cdd=_0x5809f8();return null==_0x125cdd?(_0x599b83(),_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64])):_0x3b6f8f(_0x2614bc-_0x125cdd>(0x7753083a^_0xb40f33)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x2ff8df)[_0x3b6f8f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ff8df(_0x3b6f8f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6d21ed=0x536962ba^_0xb40f33;function _0x599b83(){const _0x258237=_0x3b6f8f([0x6c,0x6c,0x63,0x74,0x2d])+_0xff786a(_0x35438c(_0x2577e4)),_0x130ccc=_0x4b1ccb(_0xff786a(window[_0x3b6f8f([0x4d,0x61,0x74,0x68])][_0x3b6f8f([0x63,0x65,0x69,0x6c])](_0x2614bc/_0x6d21ed)));window[_0x3b6f8f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b6f8f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x258237,_0x130ccc);}function _0x5809f8(){const _0x57af48=_0x3b6f8f([0x6c,0x6c,0x63,0x74,0x2d])+_0xff786a(_0x35438c(_0x2577e4)),_0x8b950e=window[_0x3b6f8f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b6f8f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57af48);return _0x8b950e?window[_0x3b6f8f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b1ccb(_0x8b950e),0x10)*_0x6d21ed:null;}function _0x16cdf4(_0x5ae21b){return new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37140d,_0x2499af)=>{_0x5ae21b[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x37140d,_0x2499af),window[_0x3b6f8f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2499af,0x535e58fa^_0xb40f33);});}}_0x22a6d7[_0x3b6f8f([0x6f,0x6e])](_0x3b6f8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1fc711,_0x10d2dc)=>{if(_0x10d2dc[0x0]!=_0x2577e4)return _0x2ff8df(_0x3b6f8f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10d2dc[0x1]={..._0x10d2dc[0x1],[_0x3b6f8f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3750f8};},{[_0x3b6f8f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b6f8f([0x68,0x69,0x67,0x68])}),_0x22a6d7[_0x3b6f8f([0x6f,0x6e])](_0x3b6f8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3de52b=>{_0x342a77(_0x3de52b[_0x3b6f8f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa526fc=!0x0,_0x59677e(_0x3de52b[_0x3b6f8f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b6f8f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b6f8f([0x6c,0x6f,0x77])}),_0x4f0fe9[_0x3b6f8f([0x74,0x68,0x65,0x6e])](()=>{_0xa526fc||_0x2ff8df(_0x3b6f8f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1094b8(){return _0x22a6d7[_0x3b6f8f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b6f8f([0x76,0x69,0x65,0x77])][_0x3b6f8f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b6f8f([0x61,0x75,0x74,0x6f]);}function _0x42bc40(){_0x22a6d7[_0x3b6f8f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b6f8f([0x76,0x69,0x65,0x77])][_0x3b6f8f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b6f8f([0x61,0x75,0x74,0x6f]);}}function _0xd411ce(_0x3a26da){const _0x404e43=[new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d9fb3=>setTimeout(_0x4d9fb3,0x5356b2f6^_0xb40f33)),_0x4f0fe9[_0x3b6f8f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f86eb=>{let _0xb24734=0x0;_0x22a6d7[_0x3b6f8f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b6f8f([0x6f,0x6e])](_0x3b6f8f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38f3a9,_0x257def)=>{_0x257def[0x0][_0x3b6f8f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb24734++,_0xb24734==(0x535f8dc2^_0xb40f33)&&(_0x2f86eb(),_0x38f3a9[_0x3b6f8f([0x6f,0x66,0x66])]());});}))];return window[_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b6f8f([0x72,0x61,0x63,0x65])](_0x404e43)[_0x3b6f8f([0x74,0x68,0x65,0x6e])](()=>_0x3a26da);}async function _0x33996f(){await _0x4f0fe9,_0x22a6d7[_0x3b6f8f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b6f8f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e8d64,_0x22a6d7[_0x3b6f8f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b6f8f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e8d64,_0x22a6d7[_0x3b6f8f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b6f8f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c0906(_0x1d4d07){const _0x5e0408=_0x49853a();_0x22a6d7[_0x5e0408]=_0x3b6f8f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1d4d07,_0x1d4d07!=_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64])&&_0x33996f();}function _0x49853a(){const _0x112bc6=window[_0x3b6f8f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b6f8f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b6f8f([0x6e,0x6f,0x77])]())[_0x3b6f8f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b6f8f([0x2e]),'');let _0x5bffdb=_0x3b6f8f([0x68]);for(let _0x10be71=0x0;_0x10be71<_0x112bc6[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10be71+=0x2){let _0x10a2bd=window[_0x3b6f8f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x112bc6[_0x3b6f8f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10be71,_0x10be71+0x2));_0x10a2bd>=_0x545a4f[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x10a2bd-=_0x545a4f[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5bffdb+=_0x545a4f[_0x10a2bd];}return _0x5bffdb;}function _0x1d9096(){const _0x4753ce=_0x37fe2c[_0x3b6f8f([0x73,0x70,0x6c,0x69,0x74])](_0x3b6f8f([0x2e]));if(0x3!=_0x4753ce[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x140eee(_0x4753ce[0x1]);function _0x140eee(_0x345e5d){const _0x4f7448=_0x17f195(_0x345e5d);return _0x4f7448&&_0x53e970()?_0x4f7448:null;function _0x53e970(){const _0x41d135=_0x4f7448[_0x3b6f8f([0x6a,0x74,0x69])],_0x2d08b2=window[_0x3b6f8f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41d135[_0x3b6f8f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41d135[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b9585={..._0x4f7448,[_0x3b6f8f([0x6a,0x74,0x69])]:_0x41d135[_0x3b6f8f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41d135[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b9585[_0x3b6f8f([0x76,0x63])],_0x35438c(_0x2b9585)==_0x2d08b2;}}}async function _0x3d69a0(){let _0x4eb71c=!0x0;try{const _0x3b3c25=_0x37fe2c[_0x3b6f8f([0x73,0x70,0x6c,0x69,0x74])](_0x3b6f8f([0x2e])),[_0x1948eb,_0x2a76a9,_0x443ad3]=_0x3b3c25;return _0x43adb2(_0x1948eb),await _0x62cdac(_0x1948eb,_0x2a76a9,_0x443ad3),_0x4eb71c;}catch{return!0x1;}function _0x43adb2(_0x5d5cab){const _0x4bedc9=_0x17f195(_0x5d5cab);_0x4bedc9&&_0x4bedc9[_0x3b6f8f([0x61,0x6c,0x67])]==_0x3b6f8f([0x45,0x53,0x32,0x35,0x36])||(_0x4eb71c=!0x1);}async function _0x62cdac(_0x4ba9f8,_0x5121bb,_0x295e6e){const _0x5e1515=window[_0x3b6f8f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b6f8f([0x66,0x72,0x6f,0x6d])](_0xfedfd6(_0x295e6e),_0x5386e5=>_0x5386e5[_0x3b6f8f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcfacf=new window[(_0x3b6f8f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b6f8f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ba9f8+_0x3b6f8f([0x2e])+_0x5121bb),_0x9795c=window[_0x3b6f8f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b6f8f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9795c)return;const _0x23df5f=await _0x9795c[_0x3b6f8f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b6f8f([0x6a,0x77,0x6b]),_0x51028e,{[_0x3b6f8f([0x6e,0x61,0x6d,0x65])]:_0x3b6f8f([0x45,0x43,0x44,0x53,0x41]),[_0x3b6f8f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b6f8f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b6f8f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9795c[_0x3b6f8f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b6f8f([0x6e,0x61,0x6d,0x65])]:_0x3b6f8f([0x45,0x43,0x44,0x53,0x41]),[_0x3b6f8f([0x68,0x61,0x73,0x68])]:{[_0x3b6f8f([0x6e,0x61,0x6d,0x65])]:_0x3b6f8f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23df5f,_0x5e1515,_0xcfacf)||(_0x4eb71c=!0x1);}}function _0x17f195(_0x286233){return _0x286233[_0x3b6f8f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b6f8f([0x65,0x79]))?JSON[_0x3b6f8f([0x70,0x61,0x72,0x73,0x65])](_0xfedfd6(_0x286233)):null;}function _0xfedfd6(_0x4039a7){return window[_0x3b6f8f([0x61,0x74,0x6f,0x62])](_0x4039a7[_0x3b6f8f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b6f8f([0x2b]))[_0x3b6f8f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b6f8f([0x2f])));}function _0x35438c(_0x29aae4){let _0x5cb5cb=0x1505;function _0x3ff7fd(_0x45608f){for(let _0x2cd131=0x0;_0x2cd131<_0x45608f[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cd131++){const _0x261826=_0x45608f[_0x3b6f8f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2cd131);_0x5cb5cb=(_0x5cb5cb<<0x5)+_0x5cb5cb+_0x261826,_0x5cb5cb&=_0x5cb5cb;}}function _0x39e9d9(_0x10db22){Array[_0x3b6f8f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10db22)?_0x10db22[_0x3b6f8f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39e9d9):_0x10db22&&typeof _0x10db22==_0x3b6f8f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b6f8f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10db22)[_0x3b6f8f([0x73,0x6f,0x72,0x74])]()[_0x3b6f8f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x18533a,_0x573366])=>{_0x3ff7fd(_0x18533a),_0x39e9d9(_0x573366);}):_0x3ff7fd(window[_0x3b6f8f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10db22));}return _0x39e9d9(_0x29aae4),_0x5cb5cb>>>0x0;}function _0xff786a(_0x12752f){return _0x12752f[_0x3b6f8f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b6f8f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b6f8f([0x30]));}function _0x4b1ccb(_0x2b202a){return _0x2b202a[_0x3b6f8f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b6f8f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b6f8f([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e8d64(){}function _0x3b6f8f(_0x57a4a9){return _0x57a4a9['map'](_0x4b8537=>String['fromCharCode'](_0x4b8537))['join']('');}_0x1c0906(await _0x6c8e11());}(this);}['_initSchema'](){const _0x460939=this['editor']['model']['schema'];_0x460939['isRegistered']('imageBlock')&&_0x460939['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x460939['isRegistered']('imageInline')&&_0x460939['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x169ff9=this['editor'];_0x169ff9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x169ff9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4fc193=>_0x4fc193['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5146a3=_0x169ff9['commands']['get']('replaceImageSource');_0x5146a3&&this['listenTo'](_0x5146a3,'cleanupImage',(_0x262d33,[_0x587374,_0x6e830b])=>{_0x587374['removeAttribute']('uploadcareImageId',_0x6e830b);});}['_initConfig'](){const _0x17d163=this['editor']['config']['get']('uploadcare.uploader')||{},_0x56bfad=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5e85be(_0x18ade0['document'],'uc-config',{..._0x17d163,'pubkey':_0x56bfad,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x33bf52=>{if('closeMax'==_0x33bf52)return'#uc-icon-arrow-down';},_0x18ade0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5e85be(_0x18ade0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x18ade0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4424bf=this['editor']['commands']['get']('insertImage');_0x4424bf&&this['listenTo'](_0x4424bf,'execute',()=>{const _0x2ba8c8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2ba8c8&&_0x2ba8c8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2ba8c8);});});const _0x167ec5=this['editor']['commands']['get']('uploadcareImageReplace');_0x167ec5&&this['listenTo'](_0x167ec5,'execute',()=>{const _0x1fddbe=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1fddbe&&_0x1fddbe['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1fddbe);});});}}class tt extends _0x40f43f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5fdc71){super(_0x5fdc71),_0x5fdc71['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x20eee4['defineComponents'](_0x20eee4),this['_defineLocale']();}['_defineLocale'](){const _0x15dd11=this['editor']['config']['get']('uploadcare.locale'),_0xb30bc7=this['editor']['locale']['contentLanguage'];_0x15dd11&&_0x20eee4['defineLocale'](_0xb30bc7,_0x15dd11);}}class ii extends _0x195d43{constructor(_0x1850f7){super(_0x1850f7);const t=_0x1850f7['t'],_0x4bbd0b=this['bindTemplate'],_0x5b93bf=new _0x36c641();_0x5b93bf['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':[_0x5b93bf,{'text':_0x4bbd0b['to']('imageUploadProgress',_0x1c7151=>t('Loading\x20image...')+'\x20('+(_0x1c7151||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x195d43{constructor(_0x27fe78){super(_0x27fe78);const t=_0x27fe78['t'];this['set']('errorType',null);const _0x2ea6e1=new _0x36a838(_0x27fe78);_0x2ea6e1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2ea6e1['withText']=!0x0,_0x2ea6e1['class']='ck-button-action',_0x2ea6e1['on']('execute',()=>{this['fire']('retry');}),_0x2ea6e1['bind']('isVisible')['to'](this,'errorType',_0x3d07e0=>'NotFound'!==_0x3d07e0);const _0x5087ec=new _0x426fea();_0x5087ec['content']=_0x3c6794,_0x5087ec['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x252aa1=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':[_0x5087ec,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x252aa1['to']('errorType',_0x522f31=>t('NotFound'!==_0x522f31?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2ea6e1]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x195d43{constructor(_0x37b06f,_0x3080a1){super(_0x37b06f);const _0x15a1a2=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3080a1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x15a1a2['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x250ab0,_0x507cf8,_0x5ccf01){super(_0x250ab0),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x250ab0),this['_errorView']=new ti(_0x250ab0),this['_editingView']=new ei(_0x250ab0,_0x5ccf01),this['_focusableView']=new _0x195d43(_0x250ab0),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x507cf8),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'],_0x3cd386=>{this['_addUploadcareImageEditorListeners'](_0x3cd386);});}),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'](_0x3188e5,_0xd75330){const _0x430419='uc-cloud-image-editor',_0x1f9af5=_0x3188e5['querySelector'](_0x430419);if(_0x1f9af5)return _0xd75330(_0x1f9af5);const _0x5ce475=new MutationObserver(_0x2572d5=>{const _0x294761=_0x2572d5['filter'](_0x1e6540=>_0x1e6540['target']===_0x3188e5&&_0x1e6540['addedNodes']['length']>0x0&&_0x1e6540['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x430419);_0x294761['length']&&(_0x5ce475['disconnect'](),_0xd75330(_0x294761[0x0]['addedNodes'][0x0]));});_0x5ce475['observe'](_0x3188e5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x589b8b){_0x589b8b['addEventListener']('apply',_0x139cbc=>{this['fire']('apply',{'imageSrc':_0x139cbc['detail']['cdnUrl']});}),_0x589b8b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x59caef(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4433ad,_0x243c12,_0x2e81fa){super(),this['_editor']=_0x4433ad,this['_dialog']=_0x243c12,this['_imageElement']=_0x2e81fa,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 _0x313a70=this['_imageElement'],_0x1ef8da=_0x313a70['getAttribute']('uploadcareImageId'),_0x48eb00=_0x313a70['getAttribute']('src');if(_0x1ef8da)await this['_loadImageInfo'](_0x1ef8da,_0x48eb00);else{if(this['_imageCache']['has'](_0x48eb00)){const _0x21a9cc=this['_imageCache']['get'](_0x48eb00);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x21a9cc['url'],this['imageDimension']=_0x21a9cc['dimension'],this['imageId']=_0x21a9cc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x315397}=this['_editor'],t=_0x315397['t'],_0x1a1e36=new X(_0x315397,this['imageStatus'],this['_attributes']);_0x1a1e36['bind']('status')['to'](this,'imageStatus'),_0x1a1e36['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1a1e36['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1a1e36['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1a1e36,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1cc838,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1a1e36,'position':_0x5e892f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1a1e36['focus']();},'onHide':()=>{_0x1a1e36['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2d4548=>!A(_0x2d4548,_0x1a1e36['element'])}});}['_loadImageInfo'](_0x10006c,_0x31952e){return j['getInfo'](_0x10006c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3f7401=>{const {width:_0x467575,height:_0x512f7b}=_0x3f7401['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31952e,this['imageDimension']={'width':_0x467575,'height':_0x512f7b},this['imageId']=_0x10006c;})['catch'](_0x5eee6e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5eee6e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xf554b2,_0x145d0b){return this['_getImageAsFile'](_0xf554b2)['then'](_0xf7849=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x145d0b['signal'],'file':_0xf7849,'onProgress':_0x167c8c=>{_0x167c8c&&_0x167c8c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x167c8c['value']));}}))['then'](_0x2fc06b=>{const {width:_0x355d3f,height:_0x4c145c}=_0x2fc06b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2fc06b['cdnUrl'],this['imageDimension']={'width':_0x355d3f,'height':_0x4c145c},this['imageId']=_0x2fc06b['uuid'],this['imageUploadProgress']=null;const _0x251aba=_0xf554b2['getAttribute']('src');this['_imageCache']['set'](_0x251aba,{'id':_0x2fc06b['uuid'],'url':_0x2fc06b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x432bf2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x432bf2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4f6ad8,_0x4567d7){_0x4f6ad8['on']('apply',(_0x34b683,_0x2ba5b0)=>{this['_replaceImage'](_0x4567d7,_0x2ba5b0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4f6ad8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4f6ad8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x32bc1c,_0x21e320,_0x4ee75a){const _0x4f286d=this['_editor'],{width:_0x11b3c4,height:_0x34ad2c}=S(_0x21e320,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4c9778,imageSources:_0x16feb1}=C(_0x21e320,_0x11b3c4);_0x4f286d['model']['change'](_0x495deb=>{if('$graveyard'===_0x32bc1c['root']['rootName']){_0x4f286d['execute']('insertImage',{'imageType':_0x32bc1c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x32bc1c['getAttributes']()),'uploadcareImageId':_0x4ee75a,'src':_0x4c9778,'sources':_0x16feb1,'width':_0x11b3c4,'height':_0x34ad2c}});const _0x345205=_0x32bc1c['getChildren']();_0x32bc1c=_0x4f286d['model']['document']['selection']['getSelectedElement']();for(const _0x5c4041 of _0x345205)_0x495deb['append'](_0x495deb['cloneElement'](_0x5c4041),_0x32bc1c);}else _0x495deb['setSelection'](_0x32bc1c,'on'),_0x4f286d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x32bc1c['getAttributes']()),'uploadcareImageId':_0x4ee75a,'src':_0x4c9778,'sources':_0x16feb1,'width':_0x11b3c4,'height':_0x34ad2c},_0x32bc1c);_0x495deb['setSelection'](_0x32bc1c,'on');});}async['_getImageAsFile'](_0x4fed0d){const _0x203ab1=_0x18ade0['window'],_0x5d4205=_0x18ade0['document']['location']['href'],_0x473f75=new _0x203ab1['URL'](_0x4fed0d['getAttribute']('src'),_0x5d4205);if('data:'===_0x473f75['protocol']){const _0xebeffa=_0x473f75['href']['split'](','),_0x2aa735=_0xebeffa[0x0]['match'](/:(.*?);/)[0x1],_0x538d83=_0x2aa735['split']('/')[0x1],_0x2dc595=_0x203ab1['atob'](_0xebeffa[_0xebeffa['length']-0x1]);let _0x2522a5=_0x2dc595['length'];const _0x8f0a11=new _0x203ab1['Uint8Array'](_0x2522a5);for(;_0x2522a5--;)_0x8f0a11[_0x2522a5]=_0x2dc595['charCodeAt'](_0x2522a5);return new _0x203ab1['File']([_0x8f0a11],'image.'+_0x538d83,{'type':_0x2aa735});}const _0x5a1dac=_0x473f75['href']['split']('/'),_0x32d92f=_0x5a1dac[_0x5a1dac['length']-0x1],_0x2a126b=_0x32d92f['split']('.')[0x1];return _0x203ab1['fetch'](_0x473f75['href'])['then'](_0x3954c2=>_0x3954c2['clone']()['blob']())['then'](_0x3051f6=>new _0x203ab1['File']([_0x3051f6],_0x32d92f,{'type':'image/'+_0x2a126b}));}}class O extends _0x49e9af{['imageEditController'];static get['requires'](){return[_0x4b34c2];}['_isEditable'];constructor(_0x1a46b1){super(_0x1a46b1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x22b057){const _0x477e98=G(_0x22b057);return _0x1d7cf5=>!(!_0x1d7cf5||!_0x1d7cf5['is']('element','imageBlock')&&!_0x1d7cf5['is']('element','imageInline'))&&(!!_0x1d7cf5['hasAttribute']('uploadcareImageId')||!!_0x1d7cf5['hasAttribute']('src')&&_0x477e98(_0x1d7cf5['getAttribute']('src')));}(_0x1a46b1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5b225a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5b225a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x325935=this['editor']['model']['document']['selection']['getSelectedElement']();_0x325935&&(_0x325935['is']('element','imageBlock')||_0x325935['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4b34c2),_0x325935),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x49e9af{['refresh'](){const _0x492084=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x492084&&(_0x492084['is']('element','imageBlock')||_0x492084['is']('element','imageInline')));}['execute'](_0x2c04bb){const _0x4bc610=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5ede49=>{_0x5ede49['setAttributes'](_0x2c04bb,_0x4bc610),_0x5ede49['removeAttribute']('srcset',_0x4bc610),_0x5ede49['removeAttribute']('sizes',_0x4bc610);});}}class m extends _0x40f43f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5ddf90,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3107d4}=this;_0x3107d4['commands']['add']('uploadcareImageEdit',new O(_0x3107d4)),_0x3107d4['commands']['add']('uploadcareImageReplace',new R(_0x3107d4));}}class g extends _0x40f43f{['_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 _0x1ef6db=this['editor'];_0x1ef6db['ui']['componentFactory']['add']('uploadcareImageEdit',_0x32207f=>{const _0x490560=_0x1ef6db['commands']['get']('uploadcareImageEdit'),_0x5d9edf=new _0x36a838(_0x32207f),t=_0x32207f['t'];return _0x5d9edf['set']({'icon':_0x1cc838,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5d9edf['bind']('isEnabled')['to'](_0x490560),_0x5d9edf['bind']('isOn')['to'](_0x490560,'isActive'),this['listenTo'](_0x5d9edf,'execute',()=>{_0x1ef6db['execute']('uploadcareImageEdit'),_0x1ef6db['editing']['view']['focus']();}),_0x5d9edf;}),this['_initConfig']();}['_initConfig'](){const _0x3f087d=_0x5e85be(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3f087d),this['listenTo'](this['editor'],'destroy',()=>{_0x3f087d['remove']();});}}class et extends _0x40f43f{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "47.3.0-alpha.3",
3
+ "version": "47.3.0-alpha.5",
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": "47.3.0-alpha.3",
27
- "@ckeditor/ckeditor5-icons": "47.3.0-alpha.3",
28
- "@ckeditor/ckeditor5-image": "47.3.0-alpha.3",
29
- "@ckeditor/ckeditor5-theme-lark": "47.3.0-alpha.3",
30
- "@ckeditor/ckeditor5-ui": "47.3.0-alpha.3",
31
- "@ckeditor/ckeditor5-upload": "47.3.0-alpha.3",
32
- "@ckeditor/ckeditor5-utils": "47.3.0-alpha.3",
33
- "ckeditor5": "47.3.0-alpha.3",
26
+ "@ckeditor/ckeditor5-core": "47.3.0-alpha.5",
27
+ "@ckeditor/ckeditor5-icons": "47.3.0-alpha.5",
28
+ "@ckeditor/ckeditor5-image": "47.3.0-alpha.5",
29
+ "@ckeditor/ckeditor5-theme-lark": "47.3.0-alpha.5",
30
+ "@ckeditor/ckeditor5-ui": "47.3.0-alpha.5",
31
+ "@ckeditor/ckeditor5-upload": "47.3.0-alpha.5",
32
+ "@ckeditor/ckeditor5-utils": "47.3.0-alpha.5",
33
+ "ckeditor5": "47.3.0-alpha.5",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ae589=_0xb9ad;(function(_0x54ec6d,_0x5d9162){const _0x502aeb=_0xb9ad,_0x21fae4=_0x54ec6d();while(!![]){try{const _0x1a3170=parseInt(_0x502aeb(0xe7))/0x1+-parseInt(_0x502aeb(0xc5))/0x2+-parseInt(_0x502aeb(0x102))/0x3+-parseInt(_0x502aeb(0xbe))/0x4+-parseInt(_0x502aeb(0xdf))/0x5*(parseInt(_0x502aeb(0xbb))/0x6)+parseInt(_0x502aeb(0xbd))/0x7*(-parseInt(_0x502aeb(0x101))/0x8)+parseInt(_0x502aeb(0xc6))/0x9*(parseInt(_0x502aeb(0xb7))/0xa);if(_0x1a3170===_0x5d9162)break;else _0x21fae4['push'](_0x21fae4['shift']());}catch(_0x50e15e){_0x21fae4['push'](_0x21fae4['shift']());}}}(_0x15e4,0x73465));import{Plugin as _0x2d3f89}from'ckeditor5/src/core.js';function _0xb9ad(_0x3346fd,_0x12588d){const _0x15e4b2=_0x15e4();return _0xb9ad=function(_0xb9ad98,_0x43d31c){_0xb9ad98=_0xb9ad98-0xae;let _0x5db6a9=_0x15e4b2[_0xb9ad98];return _0x5db6a9;},_0xb9ad(_0x3346fd,_0x12588d);}import{Dialog as _0x24ca33}from'ckeditor5/src/ui.js';import{createElement as _0x256706,global as _0x55fafd,uid as _0x5d6555}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4eb190}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2095f4}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x426e71}from'./utils/editingutils.js';function _0x15e4(){const _0x442eca=['21954CiWcIH','extend','1083859sBpvUa','2875048zPAWPB','PictureEditing','config','render','uploadcare','isPremiumPlugin','getSelectedElement','317454rKExWY','18395577SuJbjd','_configElement','add','uploader-','view','uploadcareImageId','true','once','get','editing','init','iconHrefResolver','_ctxElement','UploadcareEditing','locale','downcast','ucContextId','join','commands','upcast','uc-upload-ctx-provider','editor','document','for','map','445uIWvrH','appendChild','_initConfig','#uc-icon-arrow-down','imageInline','contentLanguage','_initCtx','ctxElement','832852cQATGt','querySelector','attributeToAttribute','uploadcare.uploader','insertImage','input[uploadcare-file-input]','href','replaceImageSource','requires','destroy','_initSchema','uc-config','\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','_initConversion','execute','body','selection','model','cleanupImage','closeMax','afterInit','uploadcare.pubkey','getAttribute','uploadcareImageReplace','listenTo','fromCharCode','48tsyTxC','817434MSqdRl','remove','isOfficialPlugin','pluginName','removeAttribute','elementToAttribute','imageBlock','_initImageProcessingIndicator','conversion','data-uc-image-id','10xVQzge','schema','configElement','isRegistered'];_0x15e4=function(){return _0x442eca;};return _0x15e4();}export class UploadcareEditing extends _0x2d3f89{[_0x1ae589(0xc7)]=null;[_0x1ae589(0xd2)]=null;static get[_0x1ae589(0xb0)](){const _0x26a375=_0x1ae589;return _0x26a375(0xd3);}static get[_0x1ae589(0xef)](){const _0x2017aa=_0x1ae589;return[_0x2017aa(0xbf),_0x2095f4,_0x24ca33];}static get[_0x1ae589(0xaf)](){return!0x0;}static get[_0x1ae589(0xc3)](){return!0x0;}[_0x1ae589(0xd6)];get[_0x1ae589(0xb9)](){const _0x355f23=_0x1ae589;return this[_0x355f23(0xc7)];}get[_0x1ae589(0xe6)](){const _0x13c643=_0x1ae589;return this[_0x13c643(0xd2)];}constructor(_0x561c9a){const _0x49fd87=_0x1ae589;super(_0x561c9a),this[_0x49fd87(0xd6)]=_0x5d6555();}[_0x1ae589(0xd0)](){const _0x516a32=_0x1ae589,_0x1f046e=this[_0x516a32(0xdb)];_0x1f046e[_0x516a32(0xd8)][_0x516a32(0xc8)](_0x516a32(0xc2),new _0x4eb190(_0x1f046e));}[_0x1ae589(0xfb)](){const _0x40d7e3=_0x1ae589;this[_0x40d7e3(0xf1)](),this[_0x40d7e3(0xf4)](),this[_0x40d7e3(0xe1)](),this[_0x40d7e3(0xe5)](),this[_0x40d7e3(0xb4)](),this[_0x40d7e3(0xff)](this[_0x40d7e3(0xdb)],_0x40d7e3(0xf0),()=>{const _0x490e77=_0x40d7e3;this[_0x490e77(0xc7)]&&(this[_0x490e77(0xc7)][_0x490e77(0xae)](),this[_0x490e77(0xc7)]=null),this[_0x490e77(0xd2)]&&(this[_0x490e77(0xd2)][_0x490e77(0xae)](),this[_0x490e77(0xd2)]=null);const _0x49559b=_0x55fafd[_0x490e77(0xdc)][_0x490e77(0xe8)](_0x490e77(0xec));_0x49559b&&_0x49559b[_0x490e77(0xae)]();}),async function(_0xa50861){const _0x593ba6=_0x5ec48c([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x69faae=0x535f8c3a,_0x4fce47=0x5358f642^_0x69faae,_0x25f83c=window[_0x5ec48c([0x44,0x61,0x74,0x65])][_0x5ec48c([0x6e,0x6f,0x77])](),_0x2a1430=_0xa50861[_0x5ec48c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1fc6e1=new window[(_0x5ec48c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fe6f2=>{_0x2a1430[_0x5ec48c([0x6f,0x6e,0x63,0x65])](_0x5ec48c([0x72,0x65,0x61,0x64,0x79]),_0x4fe6f2);}),_0x92e777={[_0x5ec48c([0x6b,0x74,0x79])]:_0x5ec48c([0x45,0x43]),[_0x5ec48c([0x75,0x73,0x65])]:_0x5ec48c([0x73,0x69,0x67]),[_0x5ec48c([0x63,0x72,0x76])]:_0x5ec48c([0x50,0x2d,0x32,0x35,0x36]),[_0x5ec48c([0x78])]:_0x5ec48c([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]),[_0x5ec48c([0x79])]:_0x5ec48c([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]),[_0x5ec48c([0x61,0x6c,0x67])]:_0x5ec48c([0x45,0x53,0x32,0x35,0x36])},_0x3be18d=_0x2a1430[_0x5ec48c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ec48c([0x67,0x65,0x74])](_0x5ec48c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4f6db9(){let _0x5d5685,_0x37673d=null,_0x2e97b3=null;try{if(_0x3be18d==_0x5ec48c([0x47,0x50,0x4c]))return _0x5ec48c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d5685=_0x154748(),!_0x5d5685)return _0x5ec48c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5d5685[_0x5ec48c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e97b3=_0x1c4def(_0x5d5685[_0x5ec48c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d5685[_0x5ec48c([0x6a,0x74,0x69])])),await _0x451905()?_0x153d1b()?_0x16ed68()?_0x5ec48c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a8255()?(_0x5d5685[_0x5ec48c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ec48c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x37673d=_0x43c5f5(_0x5ec48c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d5685[_0x5ec48c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ec48c([0x74,0x72,0x69,0x61,0x6c])&&(_0x37673d=_0x43c5f5(_0x5ec48c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5525ae()):_0x5ec48c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ec48c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ec48c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ec48c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x16ed68(){const _0x11700d=[_0x5ec48c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ec48c([0x74,0x72,0x69,0x61,0x6c])][_0x5ec48c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d5685[_0x5ec48c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25f83c/0x3e8:0xe10*_0x4fce47;return _0x5d5685[_0x5ec48c([0x65,0x78,0x70])]<_0x11700d;}function _0x153d1b(){const _0x227c58=_0x5d5685[_0x5ec48c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x227c58&&(!!_0x227c58[_0x5ec48c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ec48c([0x2a]))||!!_0x227c58[_0x5ec48c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ec48c([0x55,0x50,0x4c,0x43])));}function _0x3a8255(){const _0x73c6e=_0xb9ad,_0xe0a6b=_0x5d5685[_0x5ec48c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe0a6b||0x0==_0xe0a6b[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x293a28}=new URL(window[_0x5ec48c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x73c6e(0xed)]);if(_0xe0a6b[_0x5ec48c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293a28))return!0x0;const _0x562527=_0x293a28[_0x5ec48c([0x73,0x70,0x6c,0x69,0x74])](_0x5ec48c([0x2e]));return _0xe0a6b[_0x5ec48c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c1585=>_0x2c1585[_0x5ec48c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ec48c([0x2a])))[_0x5ec48c([0x6d,0x61,0x70])](_0x4ec045=>_0x4ec045[_0x5ec48c([0x73,0x70,0x6c,0x69,0x74])](_0x5ec48c([0x2e])))[_0x5ec48c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5560bf=>_0x5560bf[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x562527[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ec48c([0x6d,0x61,0x70])](_0x2f4c6a=>Array(_0x562527[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2f4c6a[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ec48c([0x66,0x69,0x6c,0x6c])](_0x2f4c6a[0x0]===_0x5ec48c([0x2a])?_0x5ec48c([0x2a]):'')[_0x5ec48c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2f4c6a))[_0x5ec48c([0x73,0x6f,0x6d,0x65])](_0x5ddb75=>_0x562527[_0x5ec48c([0x65,0x76,0x65,0x72,0x79])]((_0x392fe2,_0x4e4f8f)=>_0x5ddb75[_0x4e4f8f]===_0x392fe2||_0x5ddb75[_0x4e4f8f]===_0x5ec48c([0x2a])));}function _0x5525ae(){return _0x37673d&&_0x2e97b3?new window[(_0x5ec48c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x558741,_0x22fc7e)=>{_0x37673d[_0x5ec48c([0x74,0x68,0x65,0x6e])](_0x558741,_0x22fc7e),_0x2e97b3[_0x5ec48c([0x74,0x68,0x65,0x6e])](_0x2003ff=>{_0x2003ff!=_0x5ec48c([0x56,0x61,0x6c,0x69,0x64])&&_0x558741(_0x2003ff);},_0x22fc7e);}):_0x37673d||_0x2e97b3||_0x5ec48c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c4def(_0x512c38,_0x1e3326){return new window[(_0x5ec48c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1656d9=>{if(_0x4f5da6())return _0x1656d9(_0x5ec48c([0x56,0x61,0x6c,0x69,0x64]));_0x2e25f8(),_0x2a1430[_0x5ec48c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ec48c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x100b93=!0x1;const _0x51b70a=_0x5d6555();function _0x2cc310(_0x6b1738){return!!_0x6b1738&&(typeof _0x6b1738===_0x5ec48c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6b1738===_0x5ec48c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6b1738[_0x5ec48c([0x74,0x68,0x65,0x6e])]===_0x5ec48c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6b1738[_0x5ec48c([0x63,0x61,0x74,0x63,0x68])]===_0x5ec48c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b9a56(_0xa75205){_0x209a64(_0xa75205)[_0x5ec48c([0x74,0x68,0x65,0x6e])](_0x379f9a=>{if(!_0x379f9a||_0x379f9a[_0x5ec48c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ec48c([0x6f,0x6b]))return _0x5ec48c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30fcdf(_0x4979b7(_0x51b70a+_0x1e3326))!=_0x379f9a[_0x5ec48c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ec48c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ec48c([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ec48c([0x74,0x68,0x65,0x6e])](_0x82d72f=>(_0x1bfa3c(),_0x82d72f),()=>{const _0x3a5493=_0x7dff0b();return null==_0x3a5493?(_0x1bfa3c(),_0x5ec48c([0x56,0x61,0x6c,0x69,0x64])):_0x5ec48c(_0x25f83c-_0x3a5493>(0x7753083a^_0x69faae)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ec48c([0x74,0x68,0x65,0x6e])](_0x1656d9)[_0x5ec48c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1656d9(_0x5ec48c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54ec09=0x536962ba^_0x69faae;function _0x1bfa3c(){const _0x3be837=_0x5ec48c([0x6c,0x6c,0x63,0x74,0x2d])+_0x30fcdf(_0x4979b7(_0x512c38)),_0x4c2074=_0x409d09(_0x30fcdf(window[_0x5ec48c([0x4d,0x61,0x74,0x68])][_0x5ec48c([0x63,0x65,0x69,0x6c])](_0x25f83c/_0x54ec09)));window[_0x5ec48c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ec48c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3be837,_0x4c2074);}function _0x7dff0b(){const _0x59757e=_0x5ec48c([0x6c,0x6c,0x63,0x74,0x2d])+_0x30fcdf(_0x4979b7(_0x512c38)),_0x476f88=window[_0x5ec48c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ec48c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59757e);return _0x476f88?window[_0x5ec48c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x409d09(_0x476f88),0x10)*_0x54ec09:null;}function _0x209a64(_0x27cbae){return new window[(_0x5ec48c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15ff38,_0x1a13f0)=>{_0x27cbae[_0x5ec48c([0x74,0x68,0x65,0x6e])](_0x15ff38,_0x1a13f0),window[_0x5ec48c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1a13f0,0x535e58fa^_0x69faae);});}}_0x2a1430[_0x5ec48c([0x6f,0x6e])](_0x5ec48c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc1ae9c,_0x34d20d)=>{if(_0x34d20d[0x0]!=_0x512c38)return _0x1656d9(_0x5ec48c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34d20d[0x1]={..._0x34d20d[0x1],[_0x5ec48c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51b70a};},{[_0x5ec48c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ec48c([0x68,0x69,0x67,0x68])}),_0x2a1430[_0x5ec48c([0x6f,0x6e])](_0x5ec48c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4da787=>{_0x2cc310(_0x4da787[_0x5ec48c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x100b93=!0x0,_0x5b9a56(_0x4da787[_0x5ec48c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ec48c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ec48c([0x6c,0x6f,0x77])}),_0x1fc6e1[_0x5ec48c([0x74,0x68,0x65,0x6e])](()=>{_0x100b93||_0x1656d9(_0x5ec48c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f5da6(){return _0x2a1430[_0x5ec48c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ec48c([0x76,0x69,0x65,0x77])][_0x5ec48c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ec48c([0x61,0x75,0x74,0x6f]);}function _0x2e25f8(){_0x2a1430[_0x5ec48c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ec48c([0x76,0x69,0x65,0x77])][_0x5ec48c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ec48c([0x61,0x75,0x74,0x6f]);}}function _0x43c5f5(_0x10c556){const _0x3eb9c6=[new window[(_0x5ec48c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a46e9=>setTimeout(_0x1a46e9,0x5356b2f6^_0x69faae)),_0x1fc6e1[_0x5ec48c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ec48c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40c8ea=>{let _0x5606c5=0x0;_0x2a1430[_0x5ec48c([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ec48c([0x6f,0x6e])](_0x5ec48c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3844bf,_0x396340)=>{_0x396340[0x0][_0x5ec48c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5606c5++,_0x5606c5==(0x535f8dc2^_0x69faae)&&(_0x40c8ea(),_0x3844bf[_0x5ec48c([0x6f,0x66,0x66])]());});}))];return window[_0x5ec48c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ec48c([0x72,0x61,0x63,0x65])](_0x3eb9c6)[_0x5ec48c([0x74,0x68,0x65,0x6e])](()=>_0x10c556);}async function _0x55eb7b(){await _0x1fc6e1,_0x2a1430[_0x5ec48c([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ec48c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x389f27,_0x2a1430[_0x5ec48c([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ec48c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x389f27,_0x2a1430[_0x5ec48c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ec48c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e8dcf(_0x39311d){const _0x4776bf=_0x48ee05();_0x2a1430[_0x4776bf]=_0x5ec48c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x39311d,_0x39311d!=_0x5ec48c([0x56,0x61,0x6c,0x69,0x64])&&_0x55eb7b();}function _0x48ee05(){const _0x4ef324=window[_0x5ec48c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ec48c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ec48c([0x6e,0x6f,0x77])]())[_0x5ec48c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ec48c([0x2e]),'');let _0x4a18fa=_0x5ec48c([0x68]);for(let _0x3b9c43=0x0;_0x3b9c43<_0x4ef324[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b9c43+=0x2){let _0x5136cf=window[_0x5ec48c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ef324[_0x5ec48c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b9c43,_0x3b9c43+0x2));_0x5136cf>=_0x593ba6[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5136cf-=_0x593ba6[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a18fa+=_0x593ba6[_0x5136cf];}return _0x4a18fa;}function _0x154748(){const _0x17f551=_0x3be18d[_0x5ec48c([0x73,0x70,0x6c,0x69,0x74])](_0x5ec48c([0x2e]));if(0x3!=_0x17f551[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d710e(_0x17f551[0x1]);function _0x1d710e(_0x3881b8){const _0x4df458=_0x3bf9de(_0x3881b8);return _0x4df458&&_0x191e55()?_0x4df458:null;function _0x191e55(){const _0x5afaac=_0x4df458[_0x5ec48c([0x6a,0x74,0x69])],_0x32b5e7=window[_0x5ec48c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5afaac[_0x5ec48c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5afaac[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57e900={..._0x4df458,[_0x5ec48c([0x6a,0x74,0x69])]:_0x5afaac[_0x5ec48c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5afaac[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57e900[_0x5ec48c([0x76,0x63])],_0x4979b7(_0x57e900)==_0x32b5e7;}}}async function _0x451905(){let _0x31a77a=!0x0;try{const _0x483e08=_0x3be18d[_0x5ec48c([0x73,0x70,0x6c,0x69,0x74])](_0x5ec48c([0x2e])),[_0x47013b,_0x502e81,_0x37a795]=_0x483e08;return _0x58839a(_0x47013b),await _0x2b80d3(_0x47013b,_0x502e81,_0x37a795),_0x31a77a;}catch{return!0x1;}function _0x58839a(_0x13148b){const _0x13681f=_0x3bf9de(_0x13148b);_0x13681f&&_0x13681f[_0x5ec48c([0x61,0x6c,0x67])]==_0x5ec48c([0x45,0x53,0x32,0x35,0x36])||(_0x31a77a=!0x1);}async function _0x2b80d3(_0x33c3cb,_0x5622c6,_0x461391){const _0x3f1b74=window[_0x5ec48c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ec48c([0x66,0x72,0x6f,0x6d])](_0x56e382(_0x461391),_0x174ee7=>_0x174ee7[_0x5ec48c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fbfb8=new window[(_0x5ec48c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ec48c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33c3cb+_0x5ec48c([0x2e])+_0x5622c6),_0x1552f8=window[_0x5ec48c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ec48c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1552f8)return;const _0x33a32a=await _0x1552f8[_0x5ec48c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ec48c([0x6a,0x77,0x6b]),_0x92e777,{[_0x5ec48c([0x6e,0x61,0x6d,0x65])]:_0x5ec48c([0x45,0x43,0x44,0x53,0x41]),[_0x5ec48c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ec48c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ec48c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1552f8[_0x5ec48c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ec48c([0x6e,0x61,0x6d,0x65])]:_0x5ec48c([0x45,0x43,0x44,0x53,0x41]),[_0x5ec48c([0x68,0x61,0x73,0x68])]:{[_0x5ec48c([0x6e,0x61,0x6d,0x65])]:_0x5ec48c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x33a32a,_0x3f1b74,_0x2fbfb8)||(_0x31a77a=!0x1);}}function _0x3bf9de(_0x5badca){return _0x5badca[_0x5ec48c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ec48c([0x65,0x79]))?JSON[_0x5ec48c([0x70,0x61,0x72,0x73,0x65])](_0x56e382(_0x5badca)):null;}function _0x56e382(_0x5e1cf8){return window[_0x5ec48c([0x61,0x74,0x6f,0x62])](_0x5e1cf8[_0x5ec48c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ec48c([0x2b]))[_0x5ec48c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ec48c([0x2f])));}function _0x4979b7(_0x4efcfd){let _0x320848=0x1505;function _0x28f7b2(_0x578cee){for(let _0x11effd=0x0;_0x11effd<_0x578cee[_0x5ec48c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11effd++){const _0x43213c=_0x578cee[_0x5ec48c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x11effd);_0x320848=(_0x320848<<0x5)+_0x320848+_0x43213c,_0x320848&=_0x320848;}}function _0x40a7ab(_0x14767d){Array[_0x5ec48c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x14767d)?_0x14767d[_0x5ec48c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x40a7ab):_0x14767d&&typeof _0x14767d==_0x5ec48c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ec48c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x14767d)[_0x5ec48c([0x73,0x6f,0x72,0x74])]()[_0x5ec48c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x8836a4,_0x14e296])=>{_0x28f7b2(_0x8836a4),_0x40a7ab(_0x14e296);}):_0x28f7b2(window[_0x5ec48c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x14767d));}return _0x40a7ab(_0x4efcfd),_0x320848>>>0x0;}function _0x30fcdf(_0x3755e8){return _0x3755e8[_0x5ec48c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ec48c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ec48c([0x30]));}function _0x409d09(_0x3f4e6f){return _0x3f4e6f[_0x5ec48c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ec48c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ec48c([0x6a,0x6f,0x69,0x6e])]('');}function _0x389f27(){}function _0x5ec48c(_0x1cacfd){const _0x387897=_0xb9ad;return _0x1cacfd[_0x387897(0xde)](_0x169eca=>String[_0x387897(0x100)](_0x169eca))[_0x387897(0xd7)]('');}_0x3e8dcf(await _0x4f6db9());}(this);}[_0x1ae589(0xf1)](){const _0x2e8190=_0x1ae589,_0x20a093=this[_0x2e8190(0xdb)][_0x2e8190(0xf8)][_0x2e8190(0xb8)];_0x20a093[_0x2e8190(0xba)](_0x2e8190(0xb3))&&_0x20a093[_0x2e8190(0xbc)](_0x2e8190(0xb3),{'allowAttributes':[_0x2e8190(0xcb)]}),_0x20a093[_0x2e8190(0xba)](_0x2e8190(0xe3))&&_0x20a093[_0x2e8190(0xbc)](_0x2e8190(0xe3),{'allowAttributes':[_0x2e8190(0xcb)]});}[_0x1ae589(0xf4)](){const _0x5782ef=_0x1ae589,_0x44dd1e=this[_0x5782ef(0xdb)];_0x44dd1e[_0x5782ef(0xb5)][_0x5782ef(0xdd)](_0x5782ef(0xd5))[_0x5782ef(0xe9)]({'model':_0x5782ef(0xcb),'view':_0x5782ef(0xb6)}),_0x44dd1e[_0x5782ef(0xb5)][_0x5782ef(0xdd)](_0x5782ef(0xd9))[_0x5782ef(0xb2)]({'model':{'key':_0x5782ef(0xcb),'value':_0x128a78=>_0x128a78[_0x5782ef(0xfd)](_0x5782ef(0xb6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x502a5b=_0x44dd1e[_0x5782ef(0xd8)][_0x5782ef(0xce)](_0x5782ef(0xee));_0x502a5b&&this[_0x5782ef(0xff)](_0x502a5b,_0x5782ef(0xf9),(_0x3e5f5c,[_0x176d3f,_0x44d20c])=>{const _0x54cef9=_0x5782ef;_0x176d3f[_0x54cef9(0xb1)](_0x54cef9(0xcb),_0x44d20c);});}[_0x1ae589(0xe1)](){const _0x2d1d33=_0x1ae589,_0x128f2c=this[_0x2d1d33(0xdb)][_0x2d1d33(0xc0)][_0x2d1d33(0xce)](_0x2d1d33(0xea))||{},_0x2a66dd=this[_0x2d1d33(0xdb)][_0x2d1d33(0xc0)][_0x2d1d33(0xce)](_0x2d1d33(0xfc))||'';this[_0x2d1d33(0xc7)]=_0x256706(_0x55fafd[_0x2d1d33(0xdc)],_0x2d1d33(0xf2),{..._0x128f2c,'pubkey':_0x2a66dd,'ctx-name':_0x2d1d33(0xc9)+this[_0x2d1d33(0xd6)],'sourceList':'','imgOnly':_0x2d1d33(0xcc),'removeCopyright':_0x2d1d33(0xcc),'localeName':this[_0x2d1d33(0xdb)][_0x2d1d33(0xd4)][_0x2d1d33(0xe4)],'externalSourcesEmbedCss':_0x2d1d33(0xf3)}),this[_0x2d1d33(0xc7)][_0x2d1d33(0xd1)]=_0x2b0caa=>{const _0x4471da=_0x2d1d33;if(_0x4471da(0xfa)==_0x2b0caa)return _0x4471da(0xe2);},_0x55fafd[_0x2d1d33(0xdc)][_0x2d1d33(0xf6)][_0x2d1d33(0xe0)](this[_0x2d1d33(0xc7)]);}[_0x1ae589(0xe5)](){const _0x75d549=_0x1ae589;this[_0x75d549(0xd2)]=_0x256706(_0x55fafd[_0x75d549(0xdc)],_0x75d549(0xda),{'ctx-name':_0x75d549(0xc9)+this[_0x75d549(0xd6)]}),_0x55fafd[_0x75d549(0xdc)][_0x75d549(0xf6)][_0x75d549(0xe0)](this[_0x75d549(0xd2)]);}[_0x1ae589(0xb4)](){const _0x3b99c8=_0x1ae589,_0x212c8d=this[_0x3b99c8(0xdb)][_0x3b99c8(0xd8)][_0x3b99c8(0xce)](_0x3b99c8(0xeb));_0x212c8d&&this[_0x3b99c8(0xff)](_0x212c8d,_0x3b99c8(0xf5),()=>{const _0x1637cd=_0x3b99c8,_0x2a556f=this[_0x1637cd(0xdb)][_0x1637cd(0xf8)][_0x1637cd(0xdc)][_0x1637cd(0xf7)][_0x1637cd(0xc4)]();_0x2a556f&&_0x2a556f[_0x1637cd(0xfd)](_0x1637cd(0xcb))&&this[_0x1637cd(0xdb)][_0x1637cd(0xcf)][_0x1637cd(0xca)][_0x1637cd(0xcd)](_0x1637cd(0xc1),()=>{const _0x3d74d8=_0x1637cd;_0x426e71(this[_0x3d74d8(0xdb)],_0x2a556f);});});const _0x3035f3=this[_0x3b99c8(0xdb)][_0x3b99c8(0xd8)][_0x3b99c8(0xce)](_0x3b99c8(0xfe));_0x3035f3&&this[_0x3b99c8(0xff)](_0x3035f3,_0x3b99c8(0xf5),()=>{const _0x382795=_0x3b99c8,_0x3768dd=this[_0x382795(0xdb)][_0x382795(0xf8)][_0x382795(0xdc)][_0x382795(0xf7)][_0x382795(0xc4)]();_0x3768dd&&_0x3768dd[_0x382795(0xfd)](_0x382795(0xcb))&&this[_0x382795(0xdb)][_0x382795(0xcf)][_0x382795(0xca)][_0x382795(0xcd)](_0x382795(0xc1),()=>{const _0x15c281=_0x382795;_0x426e71(this[_0x15c281(0xdb)],_0x3768dd);});});}}
23
+ const _0x427347=_0x2cad;(function(_0xe84eb4,_0x59a33a){const _0x42d434=_0x2cad,_0x5e7570=_0xe84eb4();while(!![]){try{const _0x307367=-parseInt(_0x42d434(0x1b4))/0x1*(-parseInt(_0x42d434(0x1cf))/0x2)+parseInt(_0x42d434(0x1b5))/0x3+parseInt(_0x42d434(0x1da))/0x4+-parseInt(_0x42d434(0x1d7))/0x5+parseInt(_0x42d434(0x1c0))/0x6*(-parseInt(_0x42d434(0x200))/0x7)+-parseInt(_0x42d434(0x1bc))/0x8*(-parseInt(_0x42d434(0x1f9))/0x9)+-parseInt(_0x42d434(0x1cd))/0xa;if(_0x307367===_0x59a33a)break;else _0x5e7570['push'](_0x5e7570['shift']());}catch(_0x1e100c){_0x5e7570['push'](_0x5e7570['shift']());}}}(_0x2a37,0x4416b));import{Plugin as _0x4ca206}from'ckeditor5/src/core.js';import{Dialog as _0x260926}from'ckeditor5/src/ui.js';import{createElement as _0x2176f1,global as _0x379515,uid as _0x1608db}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x484442}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xdc0d4a}from'./uploadcareuploadadapter.js';function _0x2cad(_0xebfec0,_0x46bfdc){const _0x2a378b=_0x2a37();return _0x2cad=function(_0x2cade7,_0x567e82){_0x2cade7=_0x2cade7-0x1b4;let _0x4cec12=_0x2a378b[_0x2cade7];return _0x4cec12;},_0x2cad(_0xebfec0,_0x46bfdc);}function _0x2a37(){const _0x2583ce=['_initImageProcessingIndicator','uc-config','iconHrefResolver','selection','isOfficialPlugin','_configElement','querySelector','2609800yVgUvs','imageBlock','_initConversion','665796nAFLUy','isRegistered','attributeToAttribute','destroy','conversion','uploadcareImageReplace','locale','elementToAttribute','#uc-icon-arrow-down','\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','get','requires','insertImage','ucContextId','_ctxElement','uploadcare.pubkey','schema','href','body','editing','for','init','listenTo','document','config','cleanupImage','imageInline','_initConfig','true','uploadcare.uploader','1223217onmLSm','PictureEditing','isPremiumPlugin','replaceImageSource','contentLanguage','commands','remove','7nACfOe','extend','getSelectedElement','data-uc-image-id','render','afterInit','input[uploadcare-file-input]','pluginName','_initSchema','213617VNNYRp','610716sCmKsa','uploader-','appendChild','uploadcare','closeMax','view','removeAttribute','8mpGhDm','upcast','join','execute','209298bRKweV','fromCharCode','configElement','ctxElement','getAttribute','uc-upload-ctx-provider','add','UploadcareEditing','once','editor','model','_initCtx','map','974340FMaWhq','uploadcareImageId','4DSWziL'];_0x2a37=function(){return _0x2583ce;};return _0x2a37();}import{showImageProcessingIndicator as _0x5058a4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x4ca206{[_0x427347(0x1d5)]=null;[_0x427347(0x1e9)]=null;static get[_0x427347(0x207)](){const _0x6869ba=_0x427347;return _0x6869ba(0x1c7);}static get[_0x427347(0x1e6)](){const _0x17eaf4=_0x427347;return[_0x17eaf4(0x1fa),_0xdc0d4a,_0x260926];}static get[_0x427347(0x1d4)](){return!0x0;}static get[_0x427347(0x1fb)](){return!0x0;}[_0x427347(0x1e8)];get[_0x427347(0x1c2)](){const _0x421da1=_0x427347;return this[_0x421da1(0x1d5)];}get[_0x427347(0x1c3)](){const _0x462e59=_0x427347;return this[_0x462e59(0x1e9)];}constructor(_0x8dbe4d){const _0x2d2a13=_0x427347;super(_0x8dbe4d),this[_0x2d2a13(0x1e8)]=_0x1608db();}[_0x427347(0x1f0)](){const _0x5886de=_0x427347,_0x5ad597=this[_0x5886de(0x1c9)];_0x5ad597[_0x5886de(0x1fe)][_0x5886de(0x1c6)](_0x5886de(0x1b8),new _0x484442(_0x5ad597));}[_0x427347(0x205)](){const _0x76761b=_0x427347;this[_0x76761b(0x208)](),this[_0x76761b(0x1d9)](),this[_0x76761b(0x1f6)](),this[_0x76761b(0x1cb)](),this[_0x76761b(0x1d0)](),this[_0x76761b(0x1f1)](this[_0x76761b(0x1c9)],_0x76761b(0x1dd),()=>{const _0x36a5c7=_0x76761b;this[_0x36a5c7(0x1d5)]&&(this[_0x36a5c7(0x1d5)][_0x36a5c7(0x1ff)](),this[_0x36a5c7(0x1d5)]=null),this[_0x36a5c7(0x1e9)]&&(this[_0x36a5c7(0x1e9)][_0x36a5c7(0x1ff)](),this[_0x36a5c7(0x1e9)]=null);const _0x1d187=_0x379515[_0x36a5c7(0x1f2)][_0x36a5c7(0x1d6)](_0x36a5c7(0x206));_0x1d187&&_0x1d187[_0x36a5c7(0x1ff)]();}),async function(_0x59f6f1){const _0x2964db=_0x27d09f([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x175d5e=0x535f8c3a,_0x1e2dec=0x5358f692^_0x175d5e,_0x4a758e=window[_0x27d09f([0x44,0x61,0x74,0x65])][_0x27d09f([0x6e,0x6f,0x77])](),_0x44f539=_0x59f6f1[_0x27d09f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58abbb=new window[(_0x27d09f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x583092=>{_0x44f539[_0x27d09f([0x6f,0x6e,0x63,0x65])](_0x27d09f([0x72,0x65,0x61,0x64,0x79]),_0x583092);}),_0x19bbf5={[_0x27d09f([0x6b,0x74,0x79])]:_0x27d09f([0x45,0x43]),[_0x27d09f([0x75,0x73,0x65])]:_0x27d09f([0x73,0x69,0x67]),[_0x27d09f([0x63,0x72,0x76])]:_0x27d09f([0x50,0x2d,0x32,0x35,0x36]),[_0x27d09f([0x78])]:_0x27d09f([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]),[_0x27d09f([0x79])]:_0x27d09f([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]),[_0x27d09f([0x61,0x6c,0x67])]:_0x27d09f([0x45,0x53,0x32,0x35,0x36])},_0x793fb6=_0x44f539[_0x27d09f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27d09f([0x67,0x65,0x74])](_0x27d09f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x512982(){let _0x5ba707,_0x21deb8=null,_0x245b9e=null;try{if(_0x793fb6==_0x27d09f([0x47,0x50,0x4c]))return _0x27d09f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ba707=_0x3a669e(),!_0x5ba707)return _0x27d09f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ba707[_0x27d09f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x245b9e=_0x11b4a3(_0x5ba707[_0x27d09f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ba707[_0x27d09f([0x6a,0x74,0x69])])),await _0x289baa()?_0x1dbab9()?_0x279ad3()?_0x27d09f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11e9e6()?(_0x5ba707[_0x27d09f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27d09f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21deb8=_0x3e1fa7(_0x27d09f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ba707[_0x27d09f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27d09f([0x74,0x72,0x69,0x61,0x6c])&&(_0x21deb8=_0x3e1fa7(_0x27d09f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31b2fb()):_0x27d09f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27d09f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27d09f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x27d09f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x279ad3(){const _0x37c042=[_0x27d09f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27d09f([0x74,0x72,0x69,0x61,0x6c])][_0x27d09f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ba707[_0x27d09f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a758e/0x3e8:0xe10*_0x1e2dec;return _0x5ba707[_0x27d09f([0x65,0x78,0x70])]<_0x37c042;}function _0x1dbab9(){const _0x391211=_0x5ba707[_0x27d09f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x391211&&(!!_0x391211[_0x27d09f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27d09f([0x2a]))||!!_0x391211[_0x27d09f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27d09f([0x55,0x50,0x4c,0x43])));}function _0x11e9e6(){const _0x327cc4=_0x2cad,_0x1205ad=_0x5ba707[_0x27d09f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1205ad||0x0==_0x1205ad[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2eb0ec}=new URL(window[_0x27d09f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x327cc4(0x1ec)]);if(_0x1205ad[_0x27d09f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eb0ec))return!0x0;const _0x45dc9c=_0x2eb0ec[_0x27d09f([0x73,0x70,0x6c,0x69,0x74])](_0x27d09f([0x2e]));return _0x1205ad[_0x27d09f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2408f2=>_0x2408f2[_0x27d09f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27d09f([0x2a])))[_0x27d09f([0x6d,0x61,0x70])](_0x187ca8=>_0x187ca8[_0x27d09f([0x73,0x70,0x6c,0x69,0x74])](_0x27d09f([0x2e])))[_0x27d09f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1bf44a=>_0x1bf44a[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x45dc9c[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27d09f([0x6d,0x61,0x70])](_0x2a2675=>Array(_0x45dc9c[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a2675[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27d09f([0x66,0x69,0x6c,0x6c])](_0x2a2675[0x0]===_0x27d09f([0x2a])?_0x27d09f([0x2a]):'')[_0x27d09f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a2675))[_0x27d09f([0x73,0x6f,0x6d,0x65])](_0x5a0a42=>_0x45dc9c[_0x27d09f([0x65,0x76,0x65,0x72,0x79])]((_0x1d0c23,_0x2a954e)=>_0x5a0a42[_0x2a954e]===_0x1d0c23||_0x5a0a42[_0x2a954e]===_0x27d09f([0x2a])));}function _0x31b2fb(){return _0x21deb8&&_0x245b9e?new window[(_0x27d09f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa2bc1f,_0x499890)=>{_0x21deb8[_0x27d09f([0x74,0x68,0x65,0x6e])](_0xa2bc1f,_0x499890),_0x245b9e[_0x27d09f([0x74,0x68,0x65,0x6e])](_0xc729e3=>{_0xc729e3!=_0x27d09f([0x56,0x61,0x6c,0x69,0x64])&&_0xa2bc1f(_0xc729e3);},_0x499890);}):_0x21deb8||_0x245b9e||_0x27d09f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x11b4a3(_0x160e52,_0x4875eb){return new window[(_0x27d09f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x216b2d=>{if(_0x302afd())return _0x216b2d(_0x27d09f([0x56,0x61,0x6c,0x69,0x64]));_0x1f1d8a(),_0x44f539[_0x27d09f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27d09f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43e5da=!0x1;const _0x38b20b=_0x1608db();function _0x3d9a46(_0x586f0a){return!!_0x586f0a&&(typeof _0x586f0a===_0x27d09f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x586f0a===_0x27d09f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x586f0a[_0x27d09f([0x74,0x68,0x65,0x6e])]===_0x27d09f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x586f0a[_0x27d09f([0x63,0x61,0x74,0x63,0x68])]===_0x27d09f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1aa25c(_0x198a90){_0x311b9c(_0x198a90)[_0x27d09f([0x74,0x68,0x65,0x6e])](_0x3585de=>{if(!_0x3585de||_0x3585de[_0x27d09f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27d09f([0x6f,0x6b]))return _0x27d09f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x36a805(_0x1cd12a(_0x38b20b+_0x4875eb))!=_0x3585de[_0x27d09f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27d09f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27d09f([0x56,0x61,0x6c,0x69,0x64]);})[_0x27d09f([0x74,0x68,0x65,0x6e])](_0x547b92=>(_0x12d3d3(),_0x547b92),()=>{const _0x410585=_0x1d118a();return null==_0x410585?(_0x12d3d3(),_0x27d09f([0x56,0x61,0x6c,0x69,0x64])):_0x27d09f(_0x4a758e-_0x410585>(0x7753083a^_0x175d5e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27d09f([0x74,0x68,0x65,0x6e])](_0x216b2d)[_0x27d09f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x216b2d(_0x27d09f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x115941=0x536962ba^_0x175d5e;function _0x12d3d3(){const _0x2eb73b=_0x27d09f([0x6c,0x6c,0x63,0x74,0x2d])+_0x36a805(_0x1cd12a(_0x160e52)),_0x2e5a2d=_0x436443(_0x36a805(window[_0x27d09f([0x4d,0x61,0x74,0x68])][_0x27d09f([0x63,0x65,0x69,0x6c])](_0x4a758e/_0x115941)));window[_0x27d09f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27d09f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2eb73b,_0x2e5a2d);}function _0x1d118a(){const _0x3f7438=_0x27d09f([0x6c,0x6c,0x63,0x74,0x2d])+_0x36a805(_0x1cd12a(_0x160e52)),_0x2fe3fb=window[_0x27d09f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27d09f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f7438);return _0x2fe3fb?window[_0x27d09f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x436443(_0x2fe3fb),0x10)*_0x115941:null;}function _0x311b9c(_0x803235){return new window[(_0x27d09f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x410256,_0x454155)=>{_0x803235[_0x27d09f([0x74,0x68,0x65,0x6e])](_0x410256,_0x454155),window[_0x27d09f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x454155,0x535e58fa^_0x175d5e);});}}_0x44f539[_0x27d09f([0x6f,0x6e])](_0x27d09f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x515b4e,_0xe76d07)=>{if(_0xe76d07[0x0]!=_0x160e52)return _0x216b2d(_0x27d09f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe76d07[0x1]={..._0xe76d07[0x1],[_0x27d09f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38b20b};},{[_0x27d09f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27d09f([0x68,0x69,0x67,0x68])}),_0x44f539[_0x27d09f([0x6f,0x6e])](_0x27d09f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x266224=>{_0x3d9a46(_0x266224[_0x27d09f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43e5da=!0x0,_0x1aa25c(_0x266224[_0x27d09f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27d09f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27d09f([0x6c,0x6f,0x77])}),_0x58abbb[_0x27d09f([0x74,0x68,0x65,0x6e])](()=>{_0x43e5da||_0x216b2d(_0x27d09f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x302afd(){return _0x44f539[_0x27d09f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27d09f([0x76,0x69,0x65,0x77])][_0x27d09f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27d09f([0x61,0x75,0x74,0x6f]);}function _0x1f1d8a(){_0x44f539[_0x27d09f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27d09f([0x76,0x69,0x65,0x77])][_0x27d09f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27d09f([0x61,0x75,0x74,0x6f]);}}function _0x3e1fa7(_0x2c37f6){const _0x4411c6=[new window[(_0x27d09f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x321c42=>setTimeout(_0x321c42,0x5356b2f6^_0x175d5e)),_0x58abbb[_0x27d09f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27d09f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x590d6b=>{let _0x1ae196=0x0;_0x44f539[_0x27d09f([0x6d,0x6f,0x64,0x65,0x6c])][_0x27d09f([0x6f,0x6e])](_0x27d09f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x258bee,_0x56e945)=>{_0x56e945[0x0][_0x27d09f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ae196++,_0x1ae196==(0x535f8dc2^_0x175d5e)&&(_0x590d6b(),_0x258bee[_0x27d09f([0x6f,0x66,0x66])]());});}))];return window[_0x27d09f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27d09f([0x72,0x61,0x63,0x65])](_0x4411c6)[_0x27d09f([0x74,0x68,0x65,0x6e])](()=>_0x2c37f6);}async function _0x309d74(){await _0x58abbb,_0x44f539[_0x27d09f([0x6d,0x6f,0x64,0x65,0x6c])][_0x27d09f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xaec94,_0x44f539[_0x27d09f([0x6d,0x6f,0x64,0x65,0x6c])][_0x27d09f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xaec94,_0x44f539[_0x27d09f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27d09f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x362575(_0x4f70e3){const _0x397a1b=_0x4ebd25();_0x44f539[_0x397a1b]=_0x27d09f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f70e3,_0x4f70e3!=_0x27d09f([0x56,0x61,0x6c,0x69,0x64])&&_0x309d74();}function _0x4ebd25(){const _0x425054=window[_0x27d09f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27d09f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27d09f([0x6e,0x6f,0x77])]())[_0x27d09f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27d09f([0x2e]),'');let _0x5aa9a2=_0x27d09f([0x68]);for(let _0x1eaf38=0x0;_0x1eaf38<_0x425054[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1eaf38+=0x2){let _0x45e547=window[_0x27d09f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x425054[_0x27d09f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1eaf38,_0x1eaf38+0x2));_0x45e547>=_0x2964db[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45e547-=_0x2964db[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5aa9a2+=_0x2964db[_0x45e547];}return _0x5aa9a2;}function _0x3a669e(){const _0x2a932c=_0x793fb6[_0x27d09f([0x73,0x70,0x6c,0x69,0x74])](_0x27d09f([0x2e]));if(0x3!=_0x2a932c[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a5e69(_0x2a932c[0x1]);function _0x1a5e69(_0x5f0187){const _0x17dc64=_0x3e88e9(_0x5f0187);return _0x17dc64&&_0x5bac4a()?_0x17dc64:null;function _0x5bac4a(){const _0x4a67d1=_0x17dc64[_0x27d09f([0x6a,0x74,0x69])],_0x3b1d12=window[_0x27d09f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a67d1[_0x27d09f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a67d1[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5b6f6d={..._0x17dc64,[_0x27d09f([0x6a,0x74,0x69])]:_0x4a67d1[_0x27d09f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a67d1[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5b6f6d[_0x27d09f([0x76,0x63])],_0x1cd12a(_0x5b6f6d)==_0x3b1d12;}}}async function _0x289baa(){let _0x2aa522=!0x0;try{const _0x1cdcb7=_0x793fb6[_0x27d09f([0x73,0x70,0x6c,0x69,0x74])](_0x27d09f([0x2e])),[_0x5ec165,_0x39b709,_0x318fd5]=_0x1cdcb7;return _0x5b076f(_0x5ec165),await _0x5a2655(_0x5ec165,_0x39b709,_0x318fd5),_0x2aa522;}catch{return!0x1;}function _0x5b076f(_0x1f2a17){const _0x12534c=_0x3e88e9(_0x1f2a17);_0x12534c&&_0x12534c[_0x27d09f([0x61,0x6c,0x67])]==_0x27d09f([0x45,0x53,0x32,0x35,0x36])||(_0x2aa522=!0x1);}async function _0x5a2655(_0x431660,_0x58d7b3,_0x178f90){const _0x5b106a=window[_0x27d09f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27d09f([0x66,0x72,0x6f,0x6d])](_0x530baa(_0x178f90),_0x5bd1b9=>_0x5bd1b9[_0x27d09f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x56313e=new window[(_0x27d09f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27d09f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x431660+_0x27d09f([0x2e])+_0x58d7b3),_0x3059db=window[_0x27d09f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27d09f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3059db)return;const _0x48c9f4=await _0x3059db[_0x27d09f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27d09f([0x6a,0x77,0x6b]),_0x19bbf5,{[_0x27d09f([0x6e,0x61,0x6d,0x65])]:_0x27d09f([0x45,0x43,0x44,0x53,0x41]),[_0x27d09f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27d09f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27d09f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3059db[_0x27d09f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27d09f([0x6e,0x61,0x6d,0x65])]:_0x27d09f([0x45,0x43,0x44,0x53,0x41]),[_0x27d09f([0x68,0x61,0x73,0x68])]:{[_0x27d09f([0x6e,0x61,0x6d,0x65])]:_0x27d09f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48c9f4,_0x5b106a,_0x56313e)||(_0x2aa522=!0x1);}}function _0x3e88e9(_0x11a056){return _0x11a056[_0x27d09f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27d09f([0x65,0x79]))?JSON[_0x27d09f([0x70,0x61,0x72,0x73,0x65])](_0x530baa(_0x11a056)):null;}function _0x530baa(_0x2746ce){return window[_0x27d09f([0x61,0x74,0x6f,0x62])](_0x2746ce[_0x27d09f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27d09f([0x2b]))[_0x27d09f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27d09f([0x2f])));}function _0x1cd12a(_0x382075){let _0x49fdac=0x1505;function _0x5537ee(_0x5e3f7f){for(let _0x55fb49=0x0;_0x55fb49<_0x5e3f7f[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55fb49++){const _0x478862=_0x5e3f7f[_0x27d09f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55fb49);_0x49fdac=(_0x49fdac<<0x5)+_0x49fdac+_0x478862,_0x49fdac&=_0x49fdac;}}function _0x186e7b(_0x565d46){Array[_0x27d09f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x565d46)?_0x565d46[_0x27d09f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x186e7b):_0x565d46&&typeof _0x565d46==_0x27d09f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27d09f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x565d46)[_0x27d09f([0x73,0x6f,0x72,0x74])]()[_0x27d09f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc7595,_0x3d9640])=>{_0x5537ee(_0xc7595),_0x186e7b(_0x3d9640);}):_0x5537ee(window[_0x27d09f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x565d46));}return _0x186e7b(_0x382075),_0x49fdac>>>0x0;}function _0x36a805(_0x26fc71){return _0x26fc71[_0x27d09f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27d09f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27d09f([0x30]));}function _0x436443(_0x1d86bf){return _0x1d86bf[_0x27d09f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27d09f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27d09f([0x6a,0x6f,0x69,0x6e])]('');}function _0xaec94(){}function _0x27d09f(_0x15b989){const _0x4ec9dd=_0x2cad;return _0x15b989[_0x4ec9dd(0x1cc)](_0x3a1f23=>String[_0x4ec9dd(0x1c1)](_0x3a1f23))[_0x4ec9dd(0x1be)]('');}_0x362575(await _0x512982());}(this);}[_0x427347(0x208)](){const _0x42796a=_0x427347,_0x311e14=this[_0x42796a(0x1c9)][_0x42796a(0x1ca)][_0x42796a(0x1eb)];_0x311e14[_0x42796a(0x1db)](_0x42796a(0x1d8))&&_0x311e14[_0x42796a(0x201)](_0x42796a(0x1d8),{'allowAttributes':[_0x42796a(0x1ce)]}),_0x311e14[_0x42796a(0x1db)](_0x42796a(0x1f5))&&_0x311e14[_0x42796a(0x201)](_0x42796a(0x1f5),{'allowAttributes':[_0x42796a(0x1ce)]});}[_0x427347(0x1d9)](){const _0x56fdff=_0x427347,_0xe8c4a3=this[_0x56fdff(0x1c9)];_0xe8c4a3[_0x56fdff(0x1de)][_0x56fdff(0x1ef)](_0x56fdff(0x1e4))[_0x56fdff(0x1dc)]({'model':_0x56fdff(0x1ce),'view':_0x56fdff(0x203)}),_0xe8c4a3[_0x56fdff(0x1de)][_0x56fdff(0x1ef)](_0x56fdff(0x1bd))[_0x56fdff(0x1e1)]({'model':{'key':_0x56fdff(0x1ce),'value':_0x5c6252=>_0x5c6252[_0x56fdff(0x1c4)](_0x56fdff(0x203))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x37afed=_0xe8c4a3[_0x56fdff(0x1fe)][_0x56fdff(0x1e5)](_0x56fdff(0x1fc));_0x37afed&&this[_0x56fdff(0x1f1)](_0x37afed,_0x56fdff(0x1f4),(_0x21bdfe,[_0x1b8089,_0x1346f3])=>{const _0x45e77f=_0x56fdff;_0x1b8089[_0x45e77f(0x1bb)](_0x45e77f(0x1ce),_0x1346f3);});}[_0x427347(0x1f6)](){const _0x585397=_0x427347,_0x553082=this[_0x585397(0x1c9)][_0x585397(0x1f3)][_0x585397(0x1e5)](_0x585397(0x1f8))||{},_0x3936e4=this[_0x585397(0x1c9)][_0x585397(0x1f3)][_0x585397(0x1e5)](_0x585397(0x1ea))||'';this[_0x585397(0x1d5)]=_0x2176f1(_0x379515[_0x585397(0x1f2)],_0x585397(0x1d1),{..._0x553082,'pubkey':_0x3936e4,'ctx-name':_0x585397(0x1b6)+this[_0x585397(0x1e8)],'sourceList':'','imgOnly':_0x585397(0x1f7),'removeCopyright':_0x585397(0x1f7),'localeName':this[_0x585397(0x1c9)][_0x585397(0x1e0)][_0x585397(0x1fd)],'externalSourcesEmbedCss':_0x585397(0x1e3)}),this[_0x585397(0x1d5)][_0x585397(0x1d2)]=_0x41ab2d=>{const _0x38e31b=_0x585397;if(_0x38e31b(0x1b9)==_0x41ab2d)return _0x38e31b(0x1e2);},_0x379515[_0x585397(0x1f2)][_0x585397(0x1ed)][_0x585397(0x1b7)](this[_0x585397(0x1d5)]);}[_0x427347(0x1cb)](){const _0x15bd6e=_0x427347;this[_0x15bd6e(0x1e9)]=_0x2176f1(_0x379515[_0x15bd6e(0x1f2)],_0x15bd6e(0x1c5),{'ctx-name':_0x15bd6e(0x1b6)+this[_0x15bd6e(0x1e8)]}),_0x379515[_0x15bd6e(0x1f2)][_0x15bd6e(0x1ed)][_0x15bd6e(0x1b7)](this[_0x15bd6e(0x1e9)]);}[_0x427347(0x1d0)](){const _0x5cb918=_0x427347,_0x1123d7=this[_0x5cb918(0x1c9)][_0x5cb918(0x1fe)][_0x5cb918(0x1e5)](_0x5cb918(0x1e7));_0x1123d7&&this[_0x5cb918(0x1f1)](_0x1123d7,_0x5cb918(0x1bf),()=>{const _0x4c099e=_0x5cb918,_0x208a45=this[_0x4c099e(0x1c9)][_0x4c099e(0x1ca)][_0x4c099e(0x1f2)][_0x4c099e(0x1d3)][_0x4c099e(0x202)]();_0x208a45&&_0x208a45[_0x4c099e(0x1c4)](_0x4c099e(0x1ce))&&this[_0x4c099e(0x1c9)][_0x4c099e(0x1ee)][_0x4c099e(0x1ba)][_0x4c099e(0x1c8)](_0x4c099e(0x204),()=>{const _0x5a8b1a=_0x4c099e;_0x5058a4(this[_0x5a8b1a(0x1c9)],_0x208a45);});});const _0x23bbc6=this[_0x5cb918(0x1c9)][_0x5cb918(0x1fe)][_0x5cb918(0x1e5)](_0x5cb918(0x1df));_0x23bbc6&&this[_0x5cb918(0x1f1)](_0x23bbc6,_0x5cb918(0x1bf),()=>{const _0x4ee5ff=_0x5cb918,_0x5a8675=this[_0x4ee5ff(0x1c9)][_0x4ee5ff(0x1ca)][_0x4ee5ff(0x1f2)][_0x4ee5ff(0x1d3)][_0x4ee5ff(0x202)]();_0x5a8675&&_0x5a8675[_0x4ee5ff(0x1c4)](_0x4ee5ff(0x1ce))&&this[_0x4ee5ff(0x1c9)][_0x4ee5ff(0x1ee)][_0x4ee5ff(0x1ba)][_0x4ee5ff(0x1c8)](_0x4ee5ff(0x204),()=>{const _0x4595af=_0x4ee5ff;_0x5058a4(this[_0x4595af(0x1c9)],_0x5a8675);});});}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x3bed64,ObservableMixin as _0x5f3dbc}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x33930c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x129b27}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x69d2c8}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x130b0f}from'../../utils/uploadutils.js';import{getImageUrls as _0x26df94,getImageDimension as _0x1429bf}from'../../utils/editingutils.js';import{isAncestor as _0x2df683}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x5f3dbc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x18ad52,_0x5736fc,_0x24b377){super(),this['_editor']=_0x18ad52,this['_dialog']=_0x5736fc,this['_imageElement']=_0x24b377,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 _0x3975dd=this['_imageElement'],_0x41fb64=_0x3975dd['getAttribute']('uploadcareImageId'),_0xd05ae7=_0x3975dd['getAttribute']('src');if(_0x41fb64)await this['_loadImageInfo'](_0x41fb64,_0xd05ae7);else{if(this['_imageCache']['has'](_0xd05ae7)){const _0x2a3839=this['_imageCache']['get'](_0xd05ae7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a3839['url'],this['imageDimension']=_0x2a3839['dimension'],this['imageId']=_0x2a3839['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x43beff}=this['_editor'],t=_0x43beff['t'],_0x54f821=new _0x69d2c8(_0x43beff,this['imageStatus'],this['_attributes']);_0x54f821['bind']('status')['to'](this,'imageStatus'),_0x54f821['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x54f821['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x54f821['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x54f821,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x129b27,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x54f821,'position':_0x33930c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x54f821['focus']();},'onHide':()=>{_0x54f821['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x355601=>!_0x2df683(_0x355601,_0x54f821['element'])}});}['_loadImageInfo'](_0xd22d8d,_0x5209dd){return _0x130b0f['getInfo'](_0xd22d8d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x102457=>{const {width:_0x21064c,height:_0x1c68df}=_0x102457['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5209dd,this['imageDimension']={'width':_0x21064c,'height':_0x1c68df},this['imageId']=_0xd22d8d;})['catch'](_0x6f4127=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x6f4127['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x679e4e,_0x427ed6){return this['_getImageAsFile'](_0x679e4e)['then'](_0x15da5c=>_0x130b0f['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x427ed6['signal'],'file':_0x15da5c,'onProgress':_0xbdbcf6=>{_0xbdbcf6&&_0xbdbcf6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xbdbcf6['value']));}}))['then'](_0x338bf7=>{const {width:_0x23dd29,height:_0x206ae0}=_0x338bf7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x338bf7['cdnUrl'],this['imageDimension']={'width':_0x23dd29,'height':_0x206ae0},this['imageId']=_0x338bf7['uuid'],this['imageUploadProgress']=null;const _0x5d2288=_0x679e4e['getAttribute']('src');this['_imageCache']['set'](_0x5d2288,{'id':_0x338bf7['uuid'],'url':_0x338bf7['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x459c0c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x459c0c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x372adf,_0x2abff0){_0x372adf['on']('apply',(_0x5aec4b,_0x38394e)=>{this['_replaceImage'](_0x2abff0,_0x38394e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x372adf['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x372adf['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2720f9,_0x1ba13b,_0x415450){const _0x1c9e6e=this['_editor'],{width:_0x84245e,height:_0x344fda}=_0x1429bf(_0x1ba13b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x42afd9,imageSources:_0x3b13e3}=_0x26df94(_0x1ba13b,_0x84245e);_0x1c9e6e['model']['change'](_0x402760=>{if('$graveyard'===_0x2720f9['root']['rootName']){_0x1c9e6e['execute']('insertImage',{'imageType':_0x2720f9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2720f9['getAttributes']()),'uploadcareImageId':_0x415450,'src':_0x42afd9,'sources':_0x3b13e3,'width':_0x84245e,'height':_0x344fda}});const _0x35fd8c=_0x2720f9['getChildren']();_0x2720f9=_0x1c9e6e['model']['document']['selection']['getSelectedElement']();for(const _0x5a60e7 of _0x35fd8c)_0x402760['append'](_0x402760['cloneElement'](_0x5a60e7),_0x2720f9);}else _0x402760['setSelection'](_0x2720f9,'on'),_0x1c9e6e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2720f9['getAttributes']()),'uploadcareImageId':_0x415450,'src':_0x42afd9,'sources':_0x3b13e3,'width':_0x84245e,'height':_0x344fda},_0x2720f9);_0x402760['setSelection'](_0x2720f9,'on');});}async['_getImageAsFile'](_0x7b3965){const _0x183229=_0x3bed64['window'],_0x1f708f=_0x3bed64['document']['location']['href'],_0x3b3cae=new _0x183229['URL'](_0x7b3965['getAttribute']('src'),_0x1f708f);if('data:'===_0x3b3cae['protocol']){const _0x45e079=_0x3b3cae['href']['split'](','),_0x49f741=_0x45e079[0x0]['match'](/:(.*?);/)[0x1],_0x2e85e5=_0x49f741['split']('/')[0x1],_0x1250f5=_0x183229['atob'](_0x45e079[_0x45e079['length']-0x1]);let _0x10d944=_0x1250f5['length'];const _0x1bb1a0=new _0x183229['Uint8Array'](_0x10d944);for(;_0x10d944--;)_0x1bb1a0[_0x10d944]=_0x1250f5['charCodeAt'](_0x10d944);return new _0x183229['File']([_0x1bb1a0],'image.'+_0x2e85e5,{'type':_0x49f741});}const _0xb5339f=_0x3b3cae['href']['split']('/'),_0x5b85dd=_0xb5339f[_0xb5339f['length']-0x1],_0x30b65a=_0x5b85dd['split']('.')[0x1];return _0x183229['fetch'](_0x3b3cae['href'])['then'](_0x7e7842=>_0x7e7842['clone']()['blob']())['then'](_0x44b241=>new _0x183229['File']([_0x44b241],_0x5b85dd,{'type':'image/'+_0x30b65a}));}}
23
+ import{global as _0x3056fa,ObservableMixin as _0x34fd01}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x7031d2}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1fbff9}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x2404ca}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x373025}from'../../utils/uploadutils.js';import{getImageUrls as _0x34352c,getImageDimension as _0x5289e4}from'../../utils/editingutils.js';import{isAncestor as _0x309d39}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x34fd01(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x586001,_0xb67705,_0x1bae0e){super(),this['_editor']=_0x586001,this['_dialog']=_0xb67705,this['_imageElement']=_0x1bae0e,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 _0x2b3d0d=this['_imageElement'],_0x368e51=_0x2b3d0d['getAttribute']('uploadcareImageId'),_0x5a665a=_0x2b3d0d['getAttribute']('src');if(_0x368e51)await this['_loadImageInfo'](_0x368e51,_0x5a665a);else{if(this['_imageCache']['has'](_0x5a665a)){const _0x4cacb3=this['_imageCache']['get'](_0x5a665a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4cacb3['url'],this['imageDimension']=_0x4cacb3['dimension'],this['imageId']=_0x4cacb3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x24c195}=this['_editor'],t=_0x24c195['t'],_0x52bfd0=new _0x2404ca(_0x24c195,this['imageStatus'],this['_attributes']);_0x52bfd0['bind']('status')['to'](this,'imageStatus'),_0x52bfd0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x52bfd0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x52bfd0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x52bfd0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1fbff9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x52bfd0,'position':_0x7031d2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x52bfd0['focus']();},'onHide':()=>{_0x52bfd0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x34583d=>!_0x309d39(_0x34583d,_0x52bfd0['element'])}});}['_loadImageInfo'](_0x5e5b48,_0x32b331){return _0x373025['getInfo'](_0x5e5b48,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x32ed6d=>{const {width:_0x363165,height:_0x3e92be}=_0x32ed6d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32b331,this['imageDimension']={'width':_0x363165,'height':_0x3e92be},this['imageId']=_0x5e5b48;})['catch'](_0x4259d3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4259d3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x334d0a,_0x31631f){return this['_getImageAsFile'](_0x334d0a)['then'](_0x1b061f=>_0x373025['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x31631f['signal'],'file':_0x1b061f,'onProgress':_0x1dcd45=>{_0x1dcd45&&_0x1dcd45['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1dcd45['value']));}}))['then'](_0x460b78=>{const {width:_0x196287,height:_0x199cc3}=_0x460b78['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x460b78['cdnUrl'],this['imageDimension']={'width':_0x196287,'height':_0x199cc3},this['imageId']=_0x460b78['uuid'],this['imageUploadProgress']=null;const _0x3939c5=_0x334d0a['getAttribute']('src');this['_imageCache']['set'](_0x3939c5,{'id':_0x460b78['uuid'],'url':_0x460b78['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5e7062=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5e7062['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x333224,_0x4839df){_0x333224['on']('apply',(_0x3cd92b,_0x2fc9f7)=>{this['_replaceImage'](_0x4839df,_0x2fc9f7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x333224['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x333224['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1020c9,_0x3d7f1d,_0x56ee68){const _0x276f2f=this['_editor'],{width:_0x32171c,height:_0x6dae5b}=_0x5289e4(_0x3d7f1d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2782c8,imageSources:_0x5221df}=_0x34352c(_0x3d7f1d,_0x32171c);_0x276f2f['model']['change'](_0x388208=>{if('$graveyard'===_0x1020c9['root']['rootName']){_0x276f2f['execute']('insertImage',{'imageType':_0x1020c9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1020c9['getAttributes']()),'uploadcareImageId':_0x56ee68,'src':_0x2782c8,'sources':_0x5221df,'width':_0x32171c,'height':_0x6dae5b}});const _0x156e68=_0x1020c9['getChildren']();_0x1020c9=_0x276f2f['model']['document']['selection']['getSelectedElement']();for(const _0x25e471 of _0x156e68)_0x388208['append'](_0x388208['cloneElement'](_0x25e471),_0x1020c9);}else _0x388208['setSelection'](_0x1020c9,'on'),_0x276f2f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1020c9['getAttributes']()),'uploadcareImageId':_0x56ee68,'src':_0x2782c8,'sources':_0x5221df,'width':_0x32171c,'height':_0x6dae5b},_0x1020c9);_0x388208['setSelection'](_0x1020c9,'on');});}async['_getImageAsFile'](_0x2b9e67){const _0x6e6912=_0x3056fa['window'],_0x268108=_0x3056fa['document']['location']['href'],_0x437e6e=new _0x6e6912['URL'](_0x2b9e67['getAttribute']('src'),_0x268108);if('data:'===_0x437e6e['protocol']){const _0x298701=_0x437e6e['href']['split'](','),_0x3b5298=_0x298701[0x0]['match'](/:(.*?);/)[0x1],_0xd41ff2=_0x3b5298['split']('/')[0x1],_0xca0ddf=_0x6e6912['atob'](_0x298701[_0x298701['length']-0x1]);let _0x9fbc0=_0xca0ddf['length'];const _0x5609f3=new _0x6e6912['Uint8Array'](_0x9fbc0);for(;_0x9fbc0--;)_0x5609f3[_0x9fbc0]=_0xca0ddf['charCodeAt'](_0x9fbc0);return new _0x6e6912['File']([_0x5609f3],'image.'+_0xd41ff2,{'type':_0x3b5298});}const _0x1c6724=_0x437e6e['href']['split']('/'),_0x2e73e3=_0x1c6724[_0x1c6724['length']-0x1],_0x4907fd=_0x2e73e3['split']('.')[0x1];return _0x6e6912['fetch'](_0x437e6e['href'])['then'](_0x36339a=>_0x36339a['clone']()['blob']())['then'](_0x11a3ec=>new _0x6e6912['File']([_0x11a3ec],_0x2e73e3,{'type':'image/'+_0x4907fd}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x291f(_0x42bd49,_0xab4f74){const _0x39c75b=_0x39c7();return _0x291f=function(_0x291f8a,_0x28a65b){_0x291f8a=_0x291f8a-0xb8;let _0x35587d=_0x39c75b[_0x291f8a];return _0x35587d;},_0x291f(_0x42bd49,_0xab4f74);}function _0x39c7(){const _0x28c506=['uc-light','5781940CKOCeb','setTemplate','image-edit','11006FLwqJZ','set','bindTemplate','ck-uploadcare-theme','182290VUaWAs','2886009VaPLfr','5618076Jguysz','uc-cloud-image-editor','6759712cUyCNa','2288796oqlKoM','imageSrc','134NGyNhE'];_0x39c7=function(){return _0x28c506;};return _0x39c7();}(function(_0x56672d,_0x474fde){const _0x1b1b82=_0x291f,_0x171756=_0x56672d();while(!![]){try{const _0x3acd31=parseInt(_0x1b1b82(0xc7))/0x1*(parseInt(_0x1b1b82(0xc2))/0x2)+-parseInt(_0x1b1b82(0xc0))/0x3+parseInt(_0x1b1b82(0xc4))/0x4+parseInt(_0x1b1b82(0xbb))/0x5+-parseInt(_0x1b1b82(0xbd))/0x6+-parseInt(_0x1b1b82(0xbc))/0x7+parseInt(_0x1b1b82(0xbf))/0x8;if(_0x3acd31===_0x474fde)break;else _0x171756['push'](_0x171756['shift']());}catch(_0x50b811){_0x171756['push'](_0x171756['shift']());}}}(_0x39c7,0xe89a8));import{View as _0x41b6b5}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x41b6b5{constructor(_0x595500,_0x293408){const _0xcd0a14=_0x291f;super(_0x595500);const _0x3172bc=this[_0xcd0a14(0xb9)];this[_0xcd0a14(0xb8)](_0xcd0a14(0xc1),''),this[_0xcd0a14(0xc5)]({'tag':_0xcd0a14(0xbe),'attributes':{..._0x293408,'class':[_0xcd0a14(0xc3),_0xcd0a14(0xba)],'ctx-name':_0xcd0a14(0xc6),'cdn-url':_0x3172bc['to'](_0xcd0a14(0xc1))}});}}
23
+ function _0x4a4b(){const _0x2626a1=['6348750iNyAfU','uc-light','6749416sObeap','setTemplate','ck-uploadcare-theme','10885329cPRpnT','1796660krKQRx','53628LQheyp','image-edit','396WGnJju','bindTemplate','12vMbZsA','24whANND','7gODMNL','set','12RkERBx','imageSrc','9JRJYNj','uc-cloud-image-editor','9944209TMIiuW','34292FZWPLU'];_0x4a4b=function(){return _0x2626a1;};return _0x4a4b();}function _0x4b14(_0x3fe128,_0x12d417){const _0x4a4bc5=_0x4a4b();return _0x4b14=function(_0x4b1475,_0x509e99){_0x4b1475=_0x4b1475-0x73;let _0x822b89=_0x4a4bc5[_0x4b1475];return _0x822b89;},_0x4b14(_0x3fe128,_0x12d417);}(function(_0x1ccf71,_0x37bb66){const _0x45338a=_0x4b14,_0x259a27=_0x1ccf71();while(!![]){try{const _0x3861b0=-parseInt(_0x45338a(0x82))/0x1*(-parseInt(_0x45338a(0x87))/0x2)+parseInt(_0x45338a(0x84))/0x3*(parseInt(_0x45338a(0x7a))/0x4)+parseInt(_0x45338a(0x81))/0x5*(-parseInt(_0x45338a(0x75))/0x6)+parseInt(_0x45338a(0x73))/0x7*(parseInt(_0x45338a(0x7d))/0x8)+-parseInt(_0x45338a(0x77))/0x9*(-parseInt(_0x45338a(0x7b))/0xa)+-parseInt(_0x45338a(0x79))/0xb+parseInt(_0x45338a(0x86))/0xc*(-parseInt(_0x45338a(0x80))/0xd);if(_0x3861b0===_0x37bb66)break;else _0x259a27['push'](_0x259a27['shift']());}catch(_0x42af3f){_0x259a27['push'](_0x259a27['shift']());}}}(_0x4a4b,0xc1c6c));import{View as _0x32acda}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x32acda{constructor(_0x1cbd4b,_0x3b0702){const _0x1a5d8f=_0x4b14;super(_0x1cbd4b);const _0x59aa42=this[_0x1a5d8f(0x85)];this[_0x1a5d8f(0x74)](_0x1a5d8f(0x76),''),this[_0x1a5d8f(0x7e)]({'tag':_0x1a5d8f(0x78),'attributes':{..._0x3b0702,'class':[_0x1a5d8f(0x7c),_0x1a5d8f(0x7f)],'ctx-name':_0x1a5d8f(0x83),'cdn-url':_0x59aa42['to'](_0x1a5d8f(0x76))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x133897}from'ckeditor5/src/icons.js';import{ButtonView as _0x3d0aef,IconView as _0x1bd44b,View as _0x3fd52f}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x3fd52f{constructor(_0x1fa533){super(_0x1fa533);const t=_0x1fa533['t'];this['set']('errorType',null);const _0x2fc395=new _0x3d0aef(_0x1fa533);_0x2fc395['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2fc395['withText']=!0x0,_0x2fc395['class']='ck-button-action',_0x2fc395['on']('execute',()=>{this['fire']('retry');}),_0x2fc395['bind']('isVisible')['to'](this,'errorType',_0x559331=>'NotFound'!==_0x559331);const _0x385ba1=new _0x1bd44b();_0x385ba1['content']=_0x133897,_0x385ba1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xaa1d4e=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':[_0x385ba1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xaa1d4e['to']('errorType',_0x4afb57=>t('NotFound'!==_0x4afb57?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2fc395]},{'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'}]}]}]});}}
23
+ import{IconError as _0x26544e}from'ckeditor5/src/icons.js';import{ButtonView as _0x9ad82b,IconView as _0x2c8613,View as _0x3215c2}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x3215c2{constructor(_0x126eb1){super(_0x126eb1);const t=_0x126eb1['t'];this['set']('errorType',null);const _0x373ee6=new _0x9ad82b(_0x126eb1);_0x373ee6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x373ee6['withText']=!0x0,_0x373ee6['class']='ck-button-action',_0x373ee6['on']('execute',()=>{this['fire']('retry');}),_0x373ee6['bind']('isVisible')['to'](this,'errorType',_0x2bedbd=>'NotFound'!==_0x2bedbd);const _0x10efe9=new _0x2c8613();_0x10efe9['content']=_0x26544e,_0x10efe9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xcc81e2=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':[_0x10efe9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xcc81e2['to']('errorType',_0x594aea=>t('NotFound'!==_0x594aea?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x373ee6]},{'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'}]}]}]});}}