@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250914.0 → 0.0.0-nightly-20250915.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x48f386,Command as _0x291732}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x58ec5b,IconGooglePhotos as _0x110933,IconGoogleDrive as _0x26685b,IconFacebook as _0x23ce6d,IconDropbox as _0x5b44be,IconUploadcareLink as _0x1c9bd5,IconUploadcareImageUpload as _0xeaf068,IconError as _0x376cb5,IconUploadcareImageEdit as _0x1fb6d0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x568897,MenuBarMenuListItemButtonView as _0x91b269,View as _0xb07115,FocusCycler as _0x14daae,Dialog as _0x21ec2f,DialogViewPosition as _0x4add99,SpinnerView as _0x560b47,IconView as _0x4071f6,Notification as _0x3fbf88}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x135e85,DomEmitterMixin as _0x5cfe98,global as _0x1e0274,getAncestors as _0x3a8e82,ObservableMixin as _0x3e27cb,uid as _0x34a4a7,createElement as _0x38652a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x23478b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xbb5b2c,info as _0x7d880a}from'@uploadcare/upload-client';import*as _0x19fa08 from'@uploadcare/file-uploader';var i=function(_0x243d9c){return _0x243d9c['Local']='local',_0x243d9c['URL']='url',_0x243d9c['Dropbox']='dropbox',_0x243d9c['GDrive']='gdrive',_0x243d9c['Facebook']='facebook',_0x243d9c['GPhotos']='gphotos',_0x243d9c['OneDrive']='onedrive',_0x243d9c;}({});function _(_0x1bc0cc,_0x3a8d50,_0x1e9b92){const t=_0x1bc0cc['t'],_0x32d8d0=_0x1bc0cc['t'];switch(_0x3a8d50){case i['Local']:return{'text':_0x32d8d0('Insert'===_0x1e9b92?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x32d8d0('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1e9b92?_0x32d8d0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x32d8d0('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1e9b92?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1e9b92?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1e9b92?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1e9b92?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1e9b92?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3a8d50;}}class e extends _0x48f386{['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 _0x4903b6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f21ea;for(const _0x2ad8f6 in _0x4903b6){const _0x161e50=_0x2ad8f6,_0x4f5f38=_0x4903b6[_0x161e50];if('uploadcareLicenseKeyValid'==_0x4f5f38||'uploadcareLicenseKeyInvalid'==_0x4f5f38||'uploadcareLicenseKeyExpired'==_0x4f5f38||'uploadcareLicenseKeyDomainLimit'==_0x4f5f38||'uploadcareLicenseKeyNotAllowed'==_0x4f5f38||'uploadcareLicenseKeyEvaluationLimit'==_0x4f5f38||'uploadcareLicenseKeyTrialLimit'==_0x4f5f38||'uploadcareLicenseKeyUsageLimit'==_0x4f5f38){delete _0x4903b6[_0x161e50],_0x2f21ea=_0x4f5f38,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2f21ea&&_0x4903b6['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2f21ea&&_0x4903b6['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2f21ea&&_0x4903b6['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2f21ea&&_0x4903b6['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2f21ea&&_0x4903b6['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2f21ea&&_0x4903b6['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2f21ea&&_0x4903b6['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1a9dba}=this,_0x548cd3=_0x1a9dba['commands']['get']('uploadcare');if(!_0x548cd3)return;const _0x408f22=this['_normalizeConfigSourceList'](_0x1a9dba['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x6ba2a4,_0x5b3ec8)=>{const _0x175caa=this['_getIntegrationKey'](_0x5b3ec8['type']);return _0x6ba2a4[_0x175caa]||(_0x6ba2a4[_0x175caa]=[]),_0x6ba2a4[_0x175caa]['push'](_0x5b3ec8),_0x6ba2a4;},{});_0x1a9dba['plugins']['has']('ImageInsertUI')&&_0x1a9dba['commands']['get']('uploadcare')&&Object['entries'](_0x408f22)['forEach'](([_0x4874e5,_0x1f5fbb])=>{_0x1a9dba['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4874e5,'observable':()=>_0x548cd3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1f5fbb),'formViewCreator':()=>this['_createDropdownButtons'](_0x1f5fbb),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1f5fbb),'override':'assetManager'!==_0x4874e5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xbf0ae7){const {locale:_0xfdcac7}=this['editor'];return _0xbf0ae7['map'](_0x11c45a=>{const _0x242dd3=_(_0xfdcac7,_0x11c45a,'Insert');switch(_0x11c45a){case i['Local']:return{'icon':_0xeaf068,'type':i['Local'],..._0x242dd3};case i['URL']:return{'icon':_0x1c9bd5,'type':i['URL'],..._0x242dd3};case i['Dropbox']:return{'icon':_0x5b44be,'type':i['Dropbox'],..._0x242dd3};case i['Facebook']:return{'icon':_0x23ce6d,'type':i['Facebook'],..._0x242dd3};case i['GDrive']:return{'icon':_0x26685b,'type':i['GDrive'],..._0x242dd3};case i['GPhotos']:return{'icon':_0x110933,'type':i['GPhotos'],..._0x242dd3};case i['OneDrive']:return{'icon':_0x58ec5b,'type':i['OneDrive'],..._0x242dd3};}});}['_getIntegrationKey'](_0x37f690){switch(_0x37f690){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5255dd,_0xc4acec){const _0x4fea19=this['editor'],_0x2bdeed=new _0x5255dd(_0x4fea19['locale']),_0x2d358d=_0x4fea19['commands']['get']('uploadcare');return _0x2bdeed['bind']('isEnabled')['to'](_0x2d358d),_0x2bdeed['on']('execute',()=>{_0x2d358d['execute'](_0xc4acec);}),_0x2bdeed;}['_createToolbarButton'](_0x5d5d7f){const {locale:_0x5b4f1e}=this['editor'],_0x3a9544=this['editor']['plugins']['get']('ImageInsertUI'),_0x217443=_0x5d5d7f[0x0],_0x2e2df3=this['_createButton'](_0x568897,_0x217443['type']);return _0x2e2df3['icon']=_0x217443['icon'],_0x2e2df3['bind']('label')['to'](_0x3a9544,'isImageSelected',_0xcae182=>_(_0x5b4f1e,_0x217443['type'],_0xcae182?'Replace':'Insert')['text']),_0x2e2df3['tooltip']=!0x0,_0x2e2df3;}['_createDropdownButtons'](_0x142c87){const {locale:_0x8aa159}=this['editor'],_0x3b5b26=this['editor']['plugins']['get']('ImageInsertUI');return _0x142c87['map'](_0x577441=>{const _0x59d5fb=this['_createButton'](_0x568897,_0x577441['type']);return _0x59d5fb['withText']=!0x0,_0x59d5fb['icon']=_0x577441['icon'],_0x59d5fb['bind']('label')['to'](_0x3b5b26,'isImageSelected',_0x25bdd3=>_(_0x8aa159,_0x577441['type'],_0x25bdd3?'Replace':'Insert')['text']),_0x59d5fb;});}['_createMenuBarButtons'](_0x26e9da){return _0x26e9da['map'](_0x57649f=>{const _0x3f9437=this['_createButton'](_0x91b269,_0x57649f['type']);return _0x3f9437['icon']=_0x57649f['icon'],_0x3f9437['label']=_0x57649f['shortText'],_0x3f9437;});}}class W extends _0xb07115{['focusTracker'];['focusCycler'];constructor(_0x2eb029){super(_0x2eb029),this['focusTracker']=new _0x135e85(),this['focusCycler']=new _0x14daae({'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 R extends W{constructor(_0x408a18,_0xf3249c){super(_0x408a18),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-'+_0xf3249c}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x46dfb9,_0x4b120d){const _0x855524=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x248404=>_0x248404<=_0x4b120d)['map'](_0x41967a=>_0x46dfb9['replace'](/\/$/,'')+'/-/resize/'+_0x41967a+'x/\x20'+_0x41967a+'w');return{'imageFallbackUrl':_0x46dfb9,'imageSources':[{'srcset':_0x855524['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4b120d+'px)\x20100vw,\x20'+_0x4b120d+'px','type':'image/webp'}]};}function V(_0x59ea45,_0x536fe2,_0x308f3c){const _0x38f586=_0x59ea45['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x38f586?parseInt(_0x38f586[0x1],0xa):_0x536fe2,'height':_0x38f586?parseInt(_0x38f586[0x2],0xa):_0x308f3c};}function p(_0x3fb762,_0x3d1d90){const _0x1b0aae=new(_0x5cfe98())(),_0x5ce489=_0x3fb762['plugins']['get']('ImageUtils'),_0x3a2bc1=_0x3fb762['editing']['mapper']['toViewElement'](_0x3d1d90),_0x3ae199=_0x5ce489['findViewImgElement'](_0x3a2bc1),_0x11cd26=_0x3fb762['editing']['view']['domConverter']['viewToDom'](_0x3ae199),_0x212ffb=_0x3d1d90['getAttribute']('width'),_0x58eaa7=_0x3d1d90['getAttribute']('height'),_0x2b6ecb='image-processing';_0x3fb762['editing']['view']['change'](_0x2c8430=>{_0x2c8430['addClass'](_0x2b6ecb,_0x3a2bc1),_0x2c8430['setStyle']('aspect-ratio',_0x212ffb+'/'+_0x58eaa7,_0x3ae199);}),_0x1b0aae['listenTo'](_0x11cd26,'load',()=>{_0x1b0aae['stopListening'](_0x11cd26,'load'),_0x3fb762['editing']['view']['change'](_0x1ab682=>{_0x1ab682['removeClass'](_0x2b6ecb,_0x3a2bc1),_0x1ab682['removeStyle']('aspect-ratio',_0x3ae199);});});}function z(_0x75ff53){if(Array['isArray'](_0x75ff53)){const _0x2c85f4=_0x75ff53['map'](z);return _0x47d3f4=>_0x2c85f4['some'](_0x1e140d=>_0x1e140d(_0x47d3f4));}if('origin'==_0x75ff53){const _0x58bf83=_0x1e0274['window']['location']['origin'];return _0x150ebd=>new URL(_0x150ebd,_0x1e0274['document']['baseURI'])['origin']==_0x58bf83;}return'function'==typeof _0x75ff53?_0x75ff53:_0x75ff53 instanceof RegExp?_0x132dca=>!(!_0x132dca['match'](_0x75ff53)&&!_0x132dca['replace'](/^https?:\/\//,'')['match'](_0x75ff53)):()=>!0x1;}function Q(_0x403cb0,_0x5692be){return _0x3a8e82(_0x403cb0['target'])['includes'](_0x5692be);}class n extends/* #__PURE__ -- @preserve */
24
- _0x3e27cb(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4d65de,_0x42de4c,_0x178bf5){super(),this['_editor']=_0x4d65de,this['_editing']=_0x42de4c,this['_dialog']=_0x4d65de['plugins']['get'](_0x21ec2f),this['_api']=_0x42de4c['ctxElement']['getAPI'](),this['_type']=_0x178bf5,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:_0x16b752,model:_0x4f4b50}=this['_editor'],_0x14f405=_0x4f4b50['document']['selection']['getSelectedElement'](),_0x4eee66=_0x14f405&&(_0x14f405['is']('element','imageBlock')||_0x14f405['is']('element','imageInline'));this['_formView']=new R(_0x16b752,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xeaf068,'title':_(_0x16b752,this['_type'],_0x4eee66?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4add99['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x24cc2c=>!Q(_0x24cc2c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1313ce}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x8dab50=>{const _0x51cf29=_0x1313ce['length'];for(const _0x6aa77d of _0x1313ce){const _0x137dbd=_0x6aa77d===_0x1313ce[_0x51cf29-0x1],{cdnUrl:_0x55077e,fileInfo:_0x78fa98}=_0x6aa77d;if(!_0x55077e||!_0x78fa98)continue;const {width:_0x5784cc,height:_0x28811f}=_0x78fa98['imageInfo'],_0x4eb0ea=V(_0x55077e,_0x5784cc,_0x28811f),_0x587b1e=C(_0x55077e,_0x4eb0ea['width']),_0x4871e0={'id':_0x78fa98['uuid'],'type':'image','attributes':{'imageDimension':_0x4eb0ea,..._0x587b1e}};this['_insertAsset'](_0x4871e0,_0x137dbd,_0x8dab50);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x32def0=>{'idle'===_0x32def0['detail']['status']&&!_0x32def0['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1e5c32,_0x1c782a,_0xab1e){const _0x73ee9e=this['_editor']['model']['document']['selection'],_0x621ec8=_0x73ee9e['getSelectedElement'](),_0x26b812=!(!_0x621ec8||!_0x621ec8['is']('element','imageInline'));_0xab1e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1e5c32,_0x26b812),_0x1c782a||_0xab1e['setSelection'](_0x73ee9e['getLastPosition']());}['_insertImage'](_0x1f45ee,_0x5311d9){const _0xd0ee16=this['_editor'],{imageDimension:_0x5605df,imageFallbackUrl:_0x373831,imageSources:_0x374af3}=_0x1f45ee['attributes'];_0xd0ee16['execute']('insertImage',{'imageType':_0x5311d9?'imageInline':null,'source':{'uploadcareImageId':_0x1f45ee['id'],'src':_0x373831,'sources':_0x374af3,..._0x5605df}});}}class w extends _0x291732{['_editing'];['_controller']=null;static get['requires'](){return[_0x21ec2f,o];}constructor(_0x52581c){super(_0x52581c),this['_editing']=_0x52581c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x286db1){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x286db1);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5999a5,..._0x22b2fe}){return _0xbb5b2c(_0x5999a5,_0x22b2fe);}static['getInfo'](_0x561297,_0xa5465c){return _0x7d880a(_0x561297,_0xa5465c);}}class f extends _0x48f386{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x23478b,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x44b7b5=this['editor'];if(!!!_0x44b7b5['config']['get']('uploadcare'))return;_0x44b7b5['plugins']['get'](_0x23478b)['createUploadAdapter']=_0x15f5cb=>new k(_0x15f5cb,_0x44b7b5),_0x44b7b5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5d8ef0,{imageElement:_0x24dc3e,data:_0x473b39})=>{_0x44b7b5['model']['change'](_0x57cd8b=>{_0x57cd8b['setAttribute']('uploadcareImageId',_0x473b39['uploadcareImageId'],_0x24dc3e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x20626b,_0x1dc26e){this['loader']=_0x20626b,this['editor']=_0x1dc26e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4a246f=await this['loader']['file'];return j['upload']({'file':_0x4a246f,'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':_0x374346=>{_0x374346&&_0x374346['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x374346['value']);}})['then'](async _0x188fa3=>{const {imageFallbackUrl:_0x4f0a23,imageSources:_0x54d510}=C(_0x188fa3['cdnUrl'],_0x188fa3['imageInfo']['width']);return{'uploadcareImageId':_0x188fa3['uuid'],'default':_0x4f0a23,'sources':_0x54d510};})['catch'](()=>{const _0x442a29=t('Cannot\x20upload\x20file:')+('\x20'+_0x4a246f['name']+'.');return Promise['reject'](_0x442a29);});}['abort'](){this['controller']['abort']();}}class o extends _0x48f386{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x21ec2f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x29abc0){super(_0x29abc0),this['ucContextId']=_0x34a4a7();}['init'](){const _0x202662=this['editor'];_0x202662['commands']['add']('uploadcare',new w(_0x202662));}['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 _0x2fbfdf=_0x1e0274['document']['querySelector']('input[uploadcare-file-input]');_0x2fbfdf&&_0x2fbfdf['remove']();}),async function(_0x3e6706){const _0x15d5b3=_0x5d1cf6([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x28eb83=0x3d8d0df,_0x1ffa44=0x3dfa387^_0x28eb83,_0x55bf95=window[_0x5d1cf6([0x44,0x61,0x74,0x65])][_0x5d1cf6([0x6e,0x6f,0x77])](),_0x2e854f=_0x3e6706[_0x5d1cf6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3d8d35=new window[(_0x5d1cf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x495fdd=>{_0x2e854f[_0x5d1cf6([0x6f,0x6e,0x63,0x65])](_0x5d1cf6([0x72,0x65,0x61,0x64,0x79]),_0x495fdd);}),_0x1d69dd={[_0x5d1cf6([0x6b,0x74,0x79])]:_0x5d1cf6([0x45,0x43]),[_0x5d1cf6([0x75,0x73,0x65])]:_0x5d1cf6([0x73,0x69,0x67]),[_0x5d1cf6([0x63,0x72,0x76])]:_0x5d1cf6([0x50,0x2d,0x32,0x35,0x36]),[_0x5d1cf6([0x78])]:_0x5d1cf6([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]),[_0x5d1cf6([0x79])]:_0x5d1cf6([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]),[_0x5d1cf6([0x61,0x6c,0x67])]:_0x5d1cf6([0x45,0x53,0x32,0x35,0x36])},_0x5326ab=_0x2e854f[_0x5d1cf6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d1cf6([0x67,0x65,0x74])](_0x5d1cf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4486aa(){let _0x512f56,_0x2c0fbe=null,_0x208dac=null;try{if(_0x5326ab==_0x5d1cf6([0x47,0x50,0x4c]))return _0x5d1cf6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x512f56=_0x403f15(),!_0x512f56)return _0x5d1cf6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x512f56[_0x5d1cf6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x208dac=_0x26e36e(_0x512f56[_0x5d1cf6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x512f56[_0x5d1cf6([0x6a,0x74,0x69])])),await _0x36107e()?_0x4f2db4()?_0xff3c5e()?_0x5d1cf6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x450481()?(_0x512f56[_0x5d1cf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d1cf6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c0fbe=_0xd17487(_0x5d1cf6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x512f56[_0x5d1cf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d1cf6([0x74,0x72,0x69,0x61,0x6c])&&(_0x2c0fbe=_0xd17487(_0x5d1cf6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x133fd9()):_0x5d1cf6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d1cf6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d1cf6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d1cf6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xff3c5e(){const _0x490999=[_0x5d1cf6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d1cf6([0x74,0x72,0x69,0x61,0x6c])][_0x5d1cf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x512f56[_0x5d1cf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55bf95/0x3e8:0xe10*_0x1ffa44;return _0x512f56[_0x5d1cf6([0x65,0x78,0x70])]<_0x490999;}function _0x4f2db4(){const _0x372d29=_0x512f56[_0x5d1cf6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x372d29&&(!!_0x372d29[_0x5d1cf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1cf6([0x2a]))||!!_0x372d29[_0x5d1cf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1cf6([0x55,0x50,0x4c,0x43])));}function _0x450481(){const _0x3b090a=_0x512f56[_0x5d1cf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b090a||0x0==_0x3b090a[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e77a7}=new URL(window[_0x5d1cf6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b090a[_0x5d1cf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e77a7))return!0x0;const _0x59ae99=_0x5e77a7[_0x5d1cf6([0x73,0x70,0x6c,0x69,0x74])](_0x5d1cf6([0x2e]));return _0x3b090a[_0x5d1cf6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1adf6c=>_0x1adf6c[_0x5d1cf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1cf6([0x2a])))[_0x5d1cf6([0x6d,0x61,0x70])](_0x498bd6=>_0x498bd6[_0x5d1cf6([0x73,0x70,0x6c,0x69,0x74])](_0x5d1cf6([0x2e])))[_0x5d1cf6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd7add5=>_0xd7add5[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x59ae99[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d1cf6([0x6d,0x61,0x70])](_0x27c02e=>Array(_0x59ae99[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27c02e[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d1cf6([0x66,0x69,0x6c,0x6c])](_0x27c02e[0x0]===_0x5d1cf6([0x2a])?_0x5d1cf6([0x2a]):'')[_0x5d1cf6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27c02e))[_0x5d1cf6([0x73,0x6f,0x6d,0x65])](_0x1b6349=>_0x59ae99[_0x5d1cf6([0x65,0x76,0x65,0x72,0x79])]((_0x4bf041,_0x534d06)=>_0x1b6349[_0x534d06]===_0x4bf041||_0x1b6349[_0x534d06]===_0x5d1cf6([0x2a])));}function _0x133fd9(){return _0x2c0fbe&&_0x208dac?new window[(_0x5d1cf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x100bbf,_0x3615f3)=>{_0x2c0fbe[_0x5d1cf6([0x74,0x68,0x65,0x6e])](_0x100bbf,_0x3615f3),_0x208dac[_0x5d1cf6([0x74,0x68,0x65,0x6e])](_0x199236=>{_0x199236!=_0x5d1cf6([0x56,0x61,0x6c,0x69,0x64])&&_0x100bbf(_0x199236);},_0x3615f3);}):_0x2c0fbe||_0x208dac||_0x5d1cf6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26e36e(_0x43c4cc,_0x500d0){return new window[(_0x5d1cf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5fff=>{if(_0x2966a4())return _0x5c5fff(_0x5d1cf6([0x56,0x61,0x6c,0x69,0x64]));_0x1a2756(),_0x2e854f[_0x5d1cf6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d1cf6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x295008=!0x1;const _0x5029f1=_0x34a4a7();function _0x4b8692(_0x4b1cfa){return!!_0x4b1cfa&&(typeof _0x4b1cfa===_0x5d1cf6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b1cfa===_0x5d1cf6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b1cfa[_0x5d1cf6([0x74,0x68,0x65,0x6e])]===_0x5d1cf6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b1cfa[_0x5d1cf6([0x63,0x61,0x74,0x63,0x68])]===_0x5d1cf6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32543e(_0x162594){_0x41e8cb(_0x162594)[_0x5d1cf6([0x74,0x68,0x65,0x6e])](_0x3b33b0=>{if(!_0x3b33b0||_0x3b33b0[_0x5d1cf6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d1cf6([0x6f,0x6b]))return _0x5d1cf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x543591(_0x285f2d(_0x5029f1+_0x500d0))!=_0x3b33b0[_0x5d1cf6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d1cf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d1cf6([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d1cf6([0x74,0x68,0x65,0x6e])](_0x19e839=>(_0x2f75c2(),_0x19e839),()=>{const _0x495e3e=_0x553210();return null==_0x495e3e?(_0x2f75c2(),_0x5d1cf6([0x56,0x61,0x6c,0x69,0x64])):_0x5d1cf6(_0x55bf95-_0x495e3e>(0x27d454df^_0x28eb83)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d1cf6([0x74,0x68,0x65,0x6e])](_0x5c5fff)[_0x5d1cf6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c5fff(_0x5d1cf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e6317=0x3ee3e5f^_0x28eb83;function _0x2f75c2(){const _0x37e1fd=_0x5d1cf6([0x6c,0x6c,0x63,0x74,0x2d])+_0x543591(_0x285f2d(_0x43c4cc)),_0x267e02=_0x2be8b3(_0x543591(window[_0x5d1cf6([0x4d,0x61,0x74,0x68])][_0x5d1cf6([0x63,0x65,0x69,0x6c])](_0x55bf95/_0x5e6317)));window[_0x5d1cf6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d1cf6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37e1fd,_0x267e02);}function _0x553210(){const _0x54a733=_0x5d1cf6([0x6c,0x6c,0x63,0x74,0x2d])+_0x543591(_0x285f2d(_0x43c4cc)),_0x10a18b=window[_0x5d1cf6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d1cf6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54a733);return _0x10a18b?window[_0x5d1cf6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2be8b3(_0x10a18b),0x10)*_0x5e6317:null;}function _0x41e8cb(_0x1a4c81){return new window[(_0x5d1cf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bb203,_0x583566)=>{_0x1a4c81[_0x5d1cf6([0x74,0x68,0x65,0x6e])](_0x1bb203,_0x583566),window[_0x5d1cf6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x583566,0x3d9041f^_0x28eb83);});}}_0x2e854f[_0x5d1cf6([0x6f,0x6e])](_0x5d1cf6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x435a60,_0x7441ad)=>{if(_0x7441ad[0x0]!=_0x43c4cc)return _0x5c5fff(_0x5d1cf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x7441ad[0x1]={..._0x7441ad[0x1],[_0x5d1cf6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5029f1};},{[_0x5d1cf6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d1cf6([0x68,0x69,0x67,0x68])}),_0x2e854f[_0x5d1cf6([0x6f,0x6e])](_0x5d1cf6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2634e6=>{_0x4b8692(_0x2634e6[_0x5d1cf6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x295008=!0x0,_0x32543e(_0x2634e6[_0x5d1cf6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d1cf6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d1cf6([0x6c,0x6f,0x77])}),_0x3d8d35[_0x5d1cf6([0x74,0x68,0x65,0x6e])](()=>{_0x295008||_0x5c5fff(_0x5d1cf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2966a4(){return _0x2e854f[_0x5d1cf6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d1cf6([0x76,0x69,0x65,0x77])][_0x5d1cf6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d1cf6([0x61,0x75,0x74,0x6f]);}function _0x1a2756(){_0x2e854f[_0x5d1cf6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d1cf6([0x76,0x69,0x65,0x77])][_0x5d1cf6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d1cf6([0x61,0x75,0x74,0x6f]);}}function _0xd17487(_0x1a39e7){const _0x1ac0be=[new window[(_0x5d1cf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fb472=>setTimeout(_0x2fb472,0x3d1ee13^_0x28eb83)),_0x3d8d35[_0x5d1cf6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d1cf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x456b0e=>{let _0x38ef1a=0x0;_0x2e854f[_0x5d1cf6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d1cf6([0x6f,0x6e])](_0x5d1cf6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20856a,_0x414954)=>{_0x414954[0x0][_0x5d1cf6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38ef1a++,_0x38ef1a==(0x3d8d127^_0x28eb83)&&(_0x456b0e(),_0x20856a[_0x5d1cf6([0x6f,0x66,0x66])]());});}))];return window[_0x5d1cf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d1cf6([0x72,0x61,0x63,0x65])](_0x1ac0be)[_0x5d1cf6([0x74,0x68,0x65,0x6e])](()=>_0x1a39e7);}async function _0x10a1d2(){await _0x3d8d35,_0x2e854f[_0x5d1cf6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d1cf6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x292ee6,_0x2e854f[_0x5d1cf6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d1cf6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x292ee6,_0x2e854f[_0x5d1cf6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d1cf6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c06d0(_0x3f8705){const _0x19876d=_0x10f6f5();_0x2e854f[_0x19876d]=_0x5d1cf6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f8705,_0x3f8705!=_0x5d1cf6([0x56,0x61,0x6c,0x69,0x64])&&_0x10a1d2();}function _0x10f6f5(){const _0x363280=window[_0x5d1cf6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d1cf6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d1cf6([0x6e,0x6f,0x77])]())[_0x5d1cf6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d1cf6([0x2e]),'');let _0x236fa1=_0x5d1cf6([0x52]);for(let _0x27fc06=0x0;_0x27fc06<_0x363280[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27fc06+=0x2){let _0x3fe326=window[_0x5d1cf6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x363280[_0x5d1cf6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27fc06,_0x27fc06+0x2));_0x3fe326>=_0x15d5b3[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3fe326-=_0x15d5b3[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x236fa1+=_0x15d5b3[_0x3fe326];}return _0x236fa1;}function _0x403f15(){const _0x5cd00d=_0x5326ab[_0x5d1cf6([0x73,0x70,0x6c,0x69,0x74])](_0x5d1cf6([0x2e]));if(0x3!=_0x5cd00d[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x285b8e(_0x5cd00d[0x1]);function _0x285b8e(_0x579a84){const _0x56ac49=_0xecf4d2(_0x579a84);return _0x56ac49&&_0x16499b()?_0x56ac49:null;function _0x16499b(){const _0x57fc8a=_0x56ac49[_0x5d1cf6([0x6a,0x74,0x69])],_0x4f8bb7=window[_0x5d1cf6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57fc8a[_0x5d1cf6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57fc8a[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x345988={..._0x56ac49,[_0x5d1cf6([0x6a,0x74,0x69])]:_0x57fc8a[_0x5d1cf6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x57fc8a[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x345988[_0x5d1cf6([0x76,0x63])],_0x285f2d(_0x345988)==_0x4f8bb7;}}}async function _0x36107e(){let _0x2809c8=!0x0;try{const _0x24d92f=_0x5326ab[_0x5d1cf6([0x73,0x70,0x6c,0x69,0x74])](_0x5d1cf6([0x2e])),[_0x247a28,_0x4b96cf,_0x5593ab]=_0x24d92f;return _0x38def2(_0x247a28),await _0x15c7c6(_0x247a28,_0x4b96cf,_0x5593ab),_0x2809c8;}catch{return!0x1;}function _0x38def2(_0x3c5d95){const _0x16d867=_0xecf4d2(_0x3c5d95);_0x16d867&&_0x16d867[_0x5d1cf6([0x61,0x6c,0x67])]==_0x5d1cf6([0x45,0x53,0x32,0x35,0x36])||(_0x2809c8=!0x1);}async function _0x15c7c6(_0x4cf244,_0x11c8de,_0xc7b2c6){const _0x32f9f4=window[_0x5d1cf6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d1cf6([0x66,0x72,0x6f,0x6d])](_0x383d46(_0xc7b2c6),_0x5ba24d=>_0x5ba24d[_0x5d1cf6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45829f=new window[(_0x5d1cf6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d1cf6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4cf244+_0x5d1cf6([0x2e])+_0x11c8de),_0x1adf4f=window[_0x5d1cf6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d1cf6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1adf4f)return;const _0x1af464=await _0x1adf4f[_0x5d1cf6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d1cf6([0x6a,0x77,0x6b]),_0x1d69dd,{[_0x5d1cf6([0x6e,0x61,0x6d,0x65])]:_0x5d1cf6([0x45,0x43,0x44,0x53,0x41]),[_0x5d1cf6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d1cf6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d1cf6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1adf4f[_0x5d1cf6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d1cf6([0x6e,0x61,0x6d,0x65])]:_0x5d1cf6([0x45,0x43,0x44,0x53,0x41]),[_0x5d1cf6([0x68,0x61,0x73,0x68])]:{[_0x5d1cf6([0x6e,0x61,0x6d,0x65])]:_0x5d1cf6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1af464,_0x32f9f4,_0x45829f)||(_0x2809c8=!0x1);}}function _0xecf4d2(_0x43b7fc){return _0x43b7fc[_0x5d1cf6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d1cf6([0x65,0x79]))?JSON[_0x5d1cf6([0x70,0x61,0x72,0x73,0x65])](_0x383d46(_0x43b7fc)):null;}function _0x383d46(_0x4d5715){return window[_0x5d1cf6([0x61,0x74,0x6f,0x62])](_0x4d5715[_0x5d1cf6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d1cf6([0x2b]))[_0x5d1cf6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d1cf6([0x2f])));}function _0x285f2d(_0x59b60c){let _0x26dff5=0x1505;function _0x1dddb5(_0x2d8b2d){for(let _0x2704c8=0x0;_0x2704c8<_0x2d8b2d[_0x5d1cf6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2704c8++){const _0xc862c9=_0x2d8b2d[_0x5d1cf6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2704c8);_0x26dff5=(_0x26dff5<<0x5)+_0x26dff5+_0xc862c9,_0x26dff5&=_0x26dff5;}}function _0x4288c2(_0x41f59a){Array[_0x5d1cf6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41f59a)?_0x41f59a[_0x5d1cf6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4288c2):_0x41f59a&&typeof _0x41f59a==_0x5d1cf6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d1cf6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41f59a)[_0x5d1cf6([0x73,0x6f,0x72,0x74])]()[_0x5d1cf6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27dab6,_0x431104])=>{_0x1dddb5(_0x27dab6),_0x4288c2(_0x431104);}):_0x1dddb5(window[_0x5d1cf6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41f59a));}return _0x4288c2(_0x59b60c),_0x26dff5>>>0x0;}function _0x543591(_0x2f294f){return _0x2f294f[_0x5d1cf6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d1cf6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d1cf6([0x30]));}function _0x2be8b3(_0x242e11){return _0x242e11[_0x5d1cf6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d1cf6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d1cf6([0x6a,0x6f,0x69,0x6e])]('');}function _0x292ee6(){}function _0x5d1cf6(_0x3f4d5c){return _0x3f4d5c['map'](_0x1d7e77=>String['fromCharCode'](_0x1d7e77))['join']('');}_0x5c06d0(await _0x4486aa());}(this);}['_initSchema'](){const _0xeb1c02=this['editor']['model']['schema'];_0xeb1c02['isRegistered']('imageBlock')&&_0xeb1c02['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xeb1c02['isRegistered']('imageInline')&&_0xeb1c02['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4738e8=this['editor'];_0x4738e8['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4738e8['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5b0176=>_0x5b0176['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x165d50=_0x4738e8['commands']['get']('replaceImageSource');_0x165d50&&this['listenTo'](_0x165d50,'cleanupImage',(_0x41ecb9,[_0x2b487f,_0xd6563f])=>{_0x2b487f['removeAttribute']('uploadcareImageId',_0xd6563f);});}['_initConfig'](){const _0x5257eb=this['editor']['config']['get']('uploadcare.uploader')||{},_0x446fd7=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x38652a(_0x1e0274['document'],'uc-config',{..._0x5257eb,'pubkey':_0x446fd7,'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']=_0x26a3de=>{if('closeMax'==_0x26a3de)return'#uc-icon-arrow-down';},_0x1e0274['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x38652a(_0x1e0274['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1e0274['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x9f5cd3=this['editor']['commands']['get']('insertImage');_0x9f5cd3&&this['listenTo'](_0x9f5cd3,'execute',()=>{const _0x525cfb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x525cfb&&_0x525cfb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x525cfb);});});const _0xbdf96c=this['editor']['commands']['get']('uploadcareImageReplace');_0xbdf96c&&this['listenTo'](_0xbdf96c,'execute',()=>{const _0x17d917=this['editor']['model']['document']['selection']['getSelectedElement']();_0x17d917&&_0x17d917['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x17d917);});});}}class tt extends _0x48f386{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x195b63){super(_0x195b63),_0x195b63['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x19fa08['defineComponents'](_0x19fa08);}}class ii extends _0xb07115{constructor(_0x5b646b){super(_0x5b646b);const t=_0x5b646b['t'],_0x577f0a=this['bindTemplate'],_0x389418=new _0x560b47();_0x389418['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':[_0x389418,{'text':_0x577f0a['to']('imageUploadProgress',_0x39494c=>t('Loading\x20image...')+'\x20('+(_0x39494c||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 _0xb07115{constructor(_0x53d193){super(_0x53d193);const t=_0x53d193['t'];this['set']('errorType',null);const _0x398978=new _0x568897(_0x53d193);_0x398978['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x398978['withText']=!0x0,_0x398978['class']='ck-button-action',_0x398978['on']('execute',()=>{this['fire']('retry');}),_0x398978['bind']('isVisible')['to'](this,'errorType',_0xe4b4b2=>'NotFound'!==_0xe4b4b2);const _0x1f1ba4=new _0x4071f6();_0x1f1ba4['content']=_0x376cb5,_0x1f1ba4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x11ce87=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':[_0x1f1ba4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x11ce87['to']('errorType',_0x32e5c2=>t('NotFound'!==_0x32e5c2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x398978]},{'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 _0xb07115{constructor(_0x592452,_0x5160be){super(_0x592452);const _0x239c0c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5160be,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x239c0c['to']('imageSrc')}});}}class X extends W{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x16f619,_0x32c7a5,_0x301f52){super(_0x16f619),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x16f619),this['_errorView']=new ti(_0x16f619),this['_editingView']=new ei(_0x16f619,_0x301f52),this['_focusableView']=new _0xb07115(_0x16f619),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x32c7a5),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'],_0x37dee4=>{this['_addUploadcareImageEditorListeners'](_0x37dee4);});}),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'](_0x4eefb8,_0xec20dd){const _0x4042bd='uc-cloud-image-editor',_0x1dc01f=_0x4eefb8['querySelector'](_0x4042bd);if(_0x1dc01f)return _0xec20dd(_0x1dc01f);const _0x4f4346=new MutationObserver(_0x4c24be=>{const _0x38f4fe=_0x4c24be['filter'](_0x3b7212=>_0x3b7212['target']===_0x4eefb8&&_0x3b7212['addedNodes']['length']>0x0&&_0x3b7212['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4042bd);_0x38f4fe['length']&&(_0x4f4346['disconnect'](),_0xec20dd(_0x38f4fe[0x0]['addedNodes'][0x0]));});_0x4f4346['observe'](_0x4eefb8,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x564685){_0x564685['addEventListener']('apply',_0x1e3ee0=>{this['fire']('apply',{'imageSrc':_0x1e3ee0['detail']['cdnUrl']});}),_0x564685['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x3e27cb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4d9c3e,_0x204acc,_0x25ff61){super(),this['_editor']=_0x4d9c3e,this['_dialog']=_0x204acc,this['_imageElement']=_0x25ff61,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 _0x5365d2=this['_imageElement'],_0x6660fb=_0x5365d2['getAttribute']('uploadcareImageId'),_0x44c903=_0x5365d2['getAttribute']('src');if(_0x6660fb)await this['_loadImageInfo'](_0x6660fb,_0x44c903);else{if(this['_imageCache']['has'](_0x44c903)){const _0x10728d=this['_imageCache']['get'](_0x44c903);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x10728d['url'],this['imageDimension']=_0x10728d['dimension'],this['imageId']=_0x10728d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x27248a}=this['_editor'],t=_0x27248a['t'],_0x267eb0=new X(_0x27248a,this['imageStatus'],this['_attributes']);_0x267eb0['bind']('status')['to'](this,'imageStatus'),_0x267eb0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x267eb0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x267eb0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x267eb0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1fb6d0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x267eb0,'position':_0x4add99['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x267eb0['focus']();},'onHide':()=>{_0x267eb0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x46bf87=>!Q(_0x46bf87,_0x267eb0['element'])}});}['_loadImageInfo'](_0xdb1fd4,_0x1444f5){return j['getInfo'](_0xdb1fd4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x6c30ac=>{const {width:_0x4f4888,height:_0x43c1da}=_0x6c30ac['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1444f5,this['imageDimension']={'width':_0x4f4888,'height':_0x43c1da},this['imageId']=_0xdb1fd4;})['catch'](_0xed7af=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xed7af['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3a79e0,_0x549c6c){return this['_getImageAsFile'](_0x3a79e0)['then'](_0x150aa4=>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':_0x549c6c['signal'],'file':_0x150aa4,'onProgress':_0x18cd59=>{_0x18cd59&&_0x18cd59['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x18cd59['value']));}}))['then'](_0x1a8e2b=>{const {width:_0x51ca77,height:_0x204d7a}=_0x1a8e2b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a8e2b['cdnUrl'],this['imageDimension']={'width':_0x51ca77,'height':_0x204d7a},this['imageId']=_0x1a8e2b['uuid'],this['imageUploadProgress']=null;const _0x2942dc=_0x3a79e0['getAttribute']('src');this['_imageCache']['set'](_0x2942dc,{'id':_0x1a8e2b['uuid'],'url':_0x1a8e2b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x26d22=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x26d22['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5d4a95,_0x45d1d2){_0x5d4a95['on']('apply',(_0x3c3088,_0xcd5e7c)=>{this['_replaceImage'](_0x45d1d2,_0xcd5e7c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5d4a95['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5d4a95['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x20bb72,_0x23a8c4,_0x478c57){const _0x285a4e=this['_editor'],{width:_0x100ddb,height:_0xa1c882}=V(_0x23a8c4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4c0ce2,imageSources:_0xd9da81}=C(_0x23a8c4,_0x100ddb);_0x285a4e['model']['change'](_0x354ef1=>{if('$graveyard'===_0x20bb72['root']['rootName']){_0x285a4e['execute']('insertImage',{'imageType':_0x20bb72['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x20bb72['getAttributes']()),'uploadcareImageId':_0x478c57,'src':_0x4c0ce2,'sources':_0xd9da81,'width':_0x100ddb,'height':_0xa1c882}});const _0x1ef989=_0x20bb72['getChildren']();_0x20bb72=_0x285a4e['model']['document']['selection']['getSelectedElement']();for(const _0x215e77 of _0x1ef989)_0x354ef1['append'](_0x354ef1['cloneElement'](_0x215e77),_0x20bb72);}else _0x354ef1['setSelection'](_0x20bb72,'on'),_0x285a4e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x20bb72['getAttributes']()),'uploadcareImageId':_0x478c57,'src':_0x4c0ce2,'sources':_0xd9da81,'width':_0x100ddb,'height':_0xa1c882},_0x20bb72);_0x354ef1['setSelection'](_0x20bb72,'on');});}async['_getImageAsFile'](_0x55fb83){const _0x1a69d5=_0x1e0274['window'],_0x4bdd1a=_0x1e0274['document']['location']['href'],_0x2cd469=new _0x1a69d5['URL'](_0x55fb83['getAttribute']('src'),_0x4bdd1a);if('data:'===_0x2cd469['protocol']){const _0x1063e2=_0x2cd469['href']['split'](','),_0x32592a=_0x1063e2[0x0]['match'](/:(.*?);/)[0x1],_0x4aa773=_0x32592a['split']('/')[0x1],_0x46d87c=_0x1a69d5['atob'](_0x1063e2[_0x1063e2['length']-0x1]);let _0x3f4d53=_0x46d87c['length'];const _0x824f37=new _0x1a69d5['Uint8Array'](_0x3f4d53);for(;_0x3f4d53--;)_0x824f37[_0x3f4d53]=_0x46d87c['charCodeAt'](_0x3f4d53);return new _0x1a69d5['File']([_0x824f37],'image.'+_0x4aa773,{'type':_0x32592a});}const _0x5f35e5=_0x2cd469['href']['split']('/'),_0x28081f=_0x5f35e5[_0x5f35e5['length']-0x1],_0x56a751=_0x28081f['split']('.')[0x1];return _0x1a69d5['fetch'](_0x2cd469['href'])['then'](_0x1ee84c=>_0x1ee84c['clone']()['blob']())['then'](_0x796187=>new _0x1a69d5['File']([_0x796187],_0x28081f,{'type':'image/'+_0x56a751}));}}class N extends _0x291732{['imageEditController'];static get['requires'](){return[_0x21ec2f];}['_isEditable'];constructor(_0x5098eb){super(_0x5098eb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5042a0){const _0x7d8a67=z(_0x5042a0);return _0x5e5de3=>!(!_0x5e5de3||!_0x5e5de3['is']('element','imageBlock')&&!_0x5e5de3['is']('element','imageInline'))&&(!!_0x5e5de3['hasAttribute']('uploadcareImageId')||!!_0x5e5de3['hasAttribute']('src')&&_0x7d8a67(_0x5e5de3['getAttribute']('src')));}(_0x5098eb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5e0da7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5e0da7);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x685149=this['editor']['model']['document']['selection']['getSelectedElement']();_0x685149&&(_0x685149['is']('element','imageBlock')||_0x685149['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x21ec2f),_0x685149),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x291732{['refresh'](){const _0x3abac5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3abac5&&(_0x3abac5['is']('element','imageBlock')||_0x3abac5['is']('element','imageInline')));}['execute'](_0x511f96){const _0x22130a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x13010f=>{_0x13010f['setAttributes'](_0x511f96,_0x22130a),_0x13010f['removeAttribute']('srcset',_0x22130a),_0x13010f['removeAttribute']('sizes',_0x22130a);});}}class m extends _0x48f386{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3fbf88,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x37975c}=this;_0x37975c['commands']['add']('uploadcareImageEdit',new N(_0x37975c)),_0x37975c['commands']['add']('uploadcareImageReplace',new O(_0x37975c));}}class g extends _0x48f386{['_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 _0x4120f8=this['editor'];_0x4120f8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5a633c=>{const _0x4bab47=_0x4120f8['commands']['get']('uploadcareImageEdit'),_0x515d4d=new _0x568897(_0x5a633c),t=_0x5a633c['t'];return _0x515d4d['set']({'icon':_0x1fb6d0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x515d4d['bind']('isEnabled')['to'](_0x4bab47),_0x515d4d['bind']('isOn')['to'](_0x4bab47,'isActive'),this['listenTo'](_0x515d4d,'execute',()=>{_0x4120f8['execute']('uploadcareImageEdit'),_0x4120f8['editing']['view']['focus']();}),_0x515d4d;}),this['_initConfig']();}['_initConfig'](){const _0x32e3d5=_0x38652a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x32e3d5),this['listenTo'](this['editor'],'destroy',()=>{_0x32e3d5['remove']();});}}class et extends _0x48f386{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,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x55beb0,Command as _0x47fb62}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x384060,IconGooglePhotos as _0x28f6b8,IconGoogleDrive as _0x15817d,IconFacebook as _0x35492e,IconDropbox as _0x3667d3,IconUploadcareLink as _0x2d1f1b,IconUploadcareImageUpload as _0x5117c3,IconError as _0x15cce8,IconUploadcareImageEdit as _0x55f924}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1fa306,MenuBarMenuListItemButtonView as _0x3382fc,View as _0x16e777,FocusCycler as _0x317c7a,Dialog as _0x344a4e,DialogViewPosition as _0x2a6099,SpinnerView as _0x47ee8c,IconView as _0x217b19,Notification as _0x202a62}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4c7910,DomEmitterMixin as _0x59811b,global as _0x550573,getAncestors as _0x2bdeeb,ObservableMixin as _0x482c1e,uid as _0x328789,createElement as _0xae4d41}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x49022b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x39625c,info as _0x2b98d5}from'@uploadcare/upload-client';import*as _0x1f91f4 from'@uploadcare/file-uploader';var i=function(_0x36ffad){return _0x36ffad['Local']='local',_0x36ffad['URL']='url',_0x36ffad['Dropbox']='dropbox',_0x36ffad['GDrive']='gdrive',_0x36ffad['Facebook']='facebook',_0x36ffad['GPhotos']='gphotos',_0x36ffad['OneDrive']='onedrive',_0x36ffad;}({});function _(_0x2ec078,_0x563c67,_0x253b40){const t=_0x2ec078['t'],_0x3d8823=_0x2ec078['t'];switch(_0x563c67){case i['Local']:return{'text':_0x3d8823('Insert'===_0x253b40?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3d8823('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x253b40?_0x3d8823('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3d8823('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x253b40?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x253b40?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x253b40?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x253b40?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x253b40?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x563c67;}}class e extends _0x55beb0{['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 _0x1b05ad=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34eb2d;for(const _0x4c4b72 in _0x1b05ad){const _0x22fc53=_0x4c4b72,_0x5be70d=_0x1b05ad[_0x22fc53];if('uploadcareLicenseKeyValid'==_0x5be70d||'uploadcareLicenseKeyInvalid'==_0x5be70d||'uploadcareLicenseKeyExpired'==_0x5be70d||'uploadcareLicenseKeyDomainLimit'==_0x5be70d||'uploadcareLicenseKeyNotAllowed'==_0x5be70d||'uploadcareLicenseKeyEvaluationLimit'==_0x5be70d||'uploadcareLicenseKeyTrialLimit'==_0x5be70d||'uploadcareLicenseKeyUsageLimit'==_0x5be70d){delete _0x1b05ad[_0x22fc53],_0x34eb2d=_0x5be70d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x34eb2d&&_0x1b05ad['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x34eb2d&&_0x1b05ad['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x34eb2d&&_0x1b05ad['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x34eb2d&&_0x1b05ad['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x34eb2d&&_0x1b05ad['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x34eb2d&&_0x1b05ad['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x34eb2d&&_0x1b05ad['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x239731}=this,_0x2b4186=_0x239731['commands']['get']('uploadcare');if(!_0x2b4186)return;const _0xff9bab=this['_normalizeConfigSourceList'](_0x239731['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x25b2af,_0x398a38)=>{const _0x56d6f5=this['_getIntegrationKey'](_0x398a38['type']);return _0x25b2af[_0x56d6f5]||(_0x25b2af[_0x56d6f5]=[]),_0x25b2af[_0x56d6f5]['push'](_0x398a38),_0x25b2af;},{});_0x239731['plugins']['has']('ImageInsertUI')&&_0x239731['commands']['get']('uploadcare')&&Object['entries'](_0xff9bab)['forEach'](([_0x51d26b,_0x1c52d8])=>{_0x239731['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x51d26b,'observable':()=>_0x2b4186,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1c52d8),'formViewCreator':()=>this['_createDropdownButtons'](_0x1c52d8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1c52d8),'override':'assetManager'!==_0x51d26b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1929f2){const {locale:_0x370197}=this['editor'];return _0x1929f2['map'](_0x18e7ae=>{const _0x5b3f05=_(_0x370197,_0x18e7ae,'Insert');switch(_0x18e7ae){case i['Local']:return{'icon':_0x5117c3,'type':i['Local'],..._0x5b3f05};case i['URL']:return{'icon':_0x2d1f1b,'type':i['URL'],..._0x5b3f05};case i['Dropbox']:return{'icon':_0x3667d3,'type':i['Dropbox'],..._0x5b3f05};case i['Facebook']:return{'icon':_0x35492e,'type':i['Facebook'],..._0x5b3f05};case i['GDrive']:return{'icon':_0x15817d,'type':i['GDrive'],..._0x5b3f05};case i['GPhotos']:return{'icon':_0x28f6b8,'type':i['GPhotos'],..._0x5b3f05};case i['OneDrive']:return{'icon':_0x384060,'type':i['OneDrive'],..._0x5b3f05};}});}['_getIntegrationKey'](_0x33e520){switch(_0x33e520){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3169ce,_0x5bb6d5){const _0x2491ca=this['editor'],_0x3259a7=new _0x3169ce(_0x2491ca['locale']),_0x36c572=_0x2491ca['commands']['get']('uploadcare');return _0x3259a7['bind']('isEnabled')['to'](_0x36c572),_0x3259a7['on']('execute',()=>{_0x36c572['execute'](_0x5bb6d5);}),_0x3259a7;}['_createToolbarButton'](_0x922d14){const {locale:_0x2d86c3}=this['editor'],_0x439a73=this['editor']['plugins']['get']('ImageInsertUI'),_0x3f74b0=_0x922d14[0x0],_0x463a45=this['_createButton'](_0x1fa306,_0x3f74b0['type']);return _0x463a45['icon']=_0x3f74b0['icon'],_0x463a45['bind']('label')['to'](_0x439a73,'isImageSelected',_0x143460=>_(_0x2d86c3,_0x3f74b0['type'],_0x143460?'Replace':'Insert')['text']),_0x463a45['tooltip']=!0x0,_0x463a45;}['_createDropdownButtons'](_0x3294dc){const {locale:_0x313432}=this['editor'],_0x6505e3=this['editor']['plugins']['get']('ImageInsertUI');return _0x3294dc['map'](_0x3f8a40=>{const _0x2b4991=this['_createButton'](_0x1fa306,_0x3f8a40['type']);return _0x2b4991['withText']=!0x0,_0x2b4991['icon']=_0x3f8a40['icon'],_0x2b4991['bind']('label')['to'](_0x6505e3,'isImageSelected',_0xf539b7=>_(_0x313432,_0x3f8a40['type'],_0xf539b7?'Replace':'Insert')['text']),_0x2b4991;});}['_createMenuBarButtons'](_0x34bd14){return _0x34bd14['map'](_0x38eb27=>{const _0x5c88ef=this['_createButton'](_0x3382fc,_0x38eb27['type']);return _0x5c88ef['icon']=_0x38eb27['icon'],_0x5c88ef['label']=_0x38eb27['shortText'],_0x5c88ef;});}}class F extends _0x16e777{['focusTracker'];['focusCycler'];constructor(_0x331870){super(_0x331870),this['focusTracker']=new _0x4c7910(),this['focusCycler']=new _0x317c7a({'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(_0x428482,_0x40649f){super(_0x428482),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-'+_0x40649f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1784cd,_0x35ee09){const _0x3eb9c1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x26a04e=>_0x26a04e<=_0x35ee09)['map'](_0x237320=>_0x1784cd['replace'](/\/$/,'')+'/-/resize/'+_0x237320+'x/\x20'+_0x237320+'w');return{'imageFallbackUrl':_0x1784cd,'imageSources':[{'srcset':_0x3eb9c1['join'](',\x20'),'sizes':'(max-width:\x20'+_0x35ee09+'px)\x20100vw,\x20'+_0x35ee09+'px','type':'image/webp'}]};}function S(_0x5f0ffc,_0x154f72,_0x2b28aa){const _0x150eb0=_0x5f0ffc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x150eb0?parseInt(_0x150eb0[0x1],0xa):_0x154f72,'height':_0x150eb0?parseInt(_0x150eb0[0x2],0xa):_0x2b28aa};}function p(_0x5346c9,_0x2d00ec){const _0x3fd025=new(_0x59811b())(),_0x486921=_0x5346c9['plugins']['get']('ImageUtils'),_0x56d60c=_0x5346c9['editing']['mapper']['toViewElement'](_0x2d00ec),_0x5f1ce3=_0x486921['findViewImgElement'](_0x56d60c),_0x5ae342=_0x5346c9['editing']['view']['domConverter']['viewToDom'](_0x5f1ce3),_0x395972=_0x2d00ec['getAttribute']('width'),_0x334e46=_0x2d00ec['getAttribute']('height'),_0x399769='image-processing';_0x5346c9['editing']['view']['change'](_0x9819e=>{_0x9819e['addClass'](_0x399769,_0x56d60c),_0x9819e['setStyle']('aspect-ratio',_0x395972+'/'+_0x334e46,_0x5f1ce3);}),_0x3fd025['listenTo'](_0x5ae342,'load',()=>{_0x3fd025['stopListening'](_0x5ae342,'load'),_0x5346c9['editing']['view']['change'](_0x5bec93=>{_0x5bec93['removeClass'](_0x399769,_0x56d60c),_0x5bec93['removeStyle']('aspect-ratio',_0x5f1ce3);});});}function G(_0x51ea36){if(Array['isArray'](_0x51ea36)){const _0x3ca2a4=_0x51ea36['map'](G);return _0x3b94ae=>_0x3ca2a4['some'](_0x183419=>_0x183419(_0x3b94ae));}if('origin'==_0x51ea36){const _0x45fe07=_0x550573['window']['location']['origin'];return _0x5a4b25=>new URL(_0x5a4b25,_0x550573['document']['baseURI'])['origin']==_0x45fe07;}return'function'==typeof _0x51ea36?_0x51ea36:_0x51ea36 instanceof RegExp?_0x20745d=>!(!_0x20745d['match'](_0x51ea36)&&!_0x20745d['replace'](/^https?:\/\//,'')['match'](_0x51ea36)):()=>!0x1;}function A(_0x18475e,_0x1c00ec){return _0x2bdeeb(_0x18475e['target'])['includes'](_0x1c00ec);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x482c1e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1b7c6e,_0x311452,_0x296c2a){super(),this['_editor']=_0x1b7c6e,this['_editing']=_0x311452,this['_dialog']=_0x1b7c6e['plugins']['get'](_0x344a4e),this['_api']=_0x311452['ctxElement']['getAPI'](),this['_type']=_0x296c2a,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:_0xda629e,model:_0x5485e7}=this['_editor'],_0x3394ed=_0x5485e7['document']['selection']['getSelectedElement'](),_0x272cc5=_0x3394ed&&(_0x3394ed['is']('element','imageBlock')||_0x3394ed['is']('element','imageInline'));this['_formView']=new x(_0xda629e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5117c3,'title':_(_0xda629e,this['_type'],_0x272cc5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2a6099['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e8e31=>!A(_0x5e8e31,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1d1f46}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x9877e9=>{const _0xb809d3=_0x1d1f46['length'];for(const _0x48a73c of _0x1d1f46){const _0x2b74fd=_0x48a73c===_0x1d1f46[_0xb809d3-0x1],{cdnUrl:_0x729456,fileInfo:_0x5f12ea}=_0x48a73c;if(!_0x729456||!_0x5f12ea)continue;const {width:_0x2ab8ee,height:_0x424913}=_0x5f12ea['imageInfo'],_0x59e76f=S(_0x729456,_0x2ab8ee,_0x424913),_0x31f2fc=C(_0x729456,_0x59e76f['width']),_0x43348e={'id':_0x5f12ea['uuid'],'type':'image','attributes':{'imageDimension':_0x59e76f,..._0x31f2fc}};this['_insertAsset'](_0x43348e,_0x2b74fd,_0x9877e9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2725bd=>{'idle'===_0x2725bd['detail']['status']&&!_0x2725bd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3b3b09,_0x2946bd,_0x29ccbe){const _0x3e3a63=this['_editor']['model']['document']['selection'],_0x6ed403=_0x3e3a63['getSelectedElement'](),_0x3ccfa9=!(!_0x6ed403||!_0x6ed403['is']('element','imageInline'));_0x29ccbe['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3b3b09,_0x3ccfa9),_0x2946bd||_0x29ccbe['setSelection'](_0x3e3a63['getLastPosition']());}['_insertImage'](_0x4ce227,_0x40704f){const _0xe42f03=this['_editor'],{imageDimension:_0x46a75d,imageFallbackUrl:_0x3dc7a2,imageSources:_0x3f9c59}=_0x4ce227['attributes'];_0xe42f03['execute']('insertImage',{'imageType':_0x40704f?'imageInline':null,'source':{'uploadcareImageId':_0x4ce227['id'],'src':_0x3dc7a2,'sources':_0x3f9c59,..._0x46a75d}});}}class w extends _0x47fb62{['_editing'];['_controller']=null;static get['requires'](){return[_0x344a4e,o];}constructor(_0x3531ee){super(_0x3531ee),this['_editing']=_0x3531ee['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x10b478){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x10b478);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3add9e,..._0x507bae}){return _0x39625c(_0x3add9e,_0x507bae);}static['getInfo'](_0x2a0057,_0x140e6d){return _0x2b98d5(_0x2a0057,_0x140e6d);}}class f extends _0x55beb0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x49022b,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x556318=this['editor'];if(!!!_0x556318['config']['get']('uploadcare'))return;_0x556318['plugins']['get'](_0x49022b)['createUploadAdapter']=_0x3b5331=>new k(_0x3b5331,_0x556318),_0x556318['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x9d1634,{imageElement:_0x1a7fdb,data:_0x17f9f0})=>{_0x556318['model']['change'](_0x3e59e2=>{_0x3e59e2['setAttribute']('uploadcareImageId',_0x17f9f0['uploadcareImageId'],_0x1a7fdb);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x31e4b5,_0x499950){this['loader']=_0x31e4b5,this['editor']=_0x499950,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x56cc63=await this['loader']['file'];return j['upload']({'file':_0x56cc63,'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':_0x1a1f94=>{_0x1a1f94&&_0x1a1f94['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1a1f94['value']);}})['then'](async _0x5aeb63=>{const {imageFallbackUrl:_0x4a7b95,imageSources:_0x2681c2}=C(_0x5aeb63['cdnUrl'],_0x5aeb63['imageInfo']['width']);return{'uploadcareImageId':_0x5aeb63['uuid'],'default':_0x4a7b95,'sources':_0x2681c2};})['catch'](()=>{const _0x25a46e=t('Cannot\x20upload\x20file:')+('\x20'+_0x56cc63['name']+'.');return Promise['reject'](_0x25a46e);});}['abort'](){this['controller']['abort']();}}class o extends _0x55beb0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x344a4e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x285fe2){super(_0x285fe2),this['ucContextId']=_0x328789();}['init'](){const _0x21716c=this['editor'];_0x21716c['commands']['add']('uploadcare',new w(_0x21716c));}['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 _0x1ab8d8=_0x550573['document']['querySelector']('input[uploadcare-file-input]');_0x1ab8d8&&_0x1ab8d8['remove']();}),async function(_0x1d724a){const _0x5c1adf=_0x14b7b7([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x55228a=0x3d8d0df,_0x43102c=0x3dfa3af^_0x55228a,_0x4173e1=window[_0x14b7b7([0x44,0x61,0x74,0x65])][_0x14b7b7([0x6e,0x6f,0x77])](),_0x15b93a=_0x1d724a[_0x14b7b7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c6156=new window[(_0x14b7b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x561672=>{_0x15b93a[_0x14b7b7([0x6f,0x6e,0x63,0x65])](_0x14b7b7([0x72,0x65,0x61,0x64,0x79]),_0x561672);}),_0x51bc66={[_0x14b7b7([0x6b,0x74,0x79])]:_0x14b7b7([0x45,0x43]),[_0x14b7b7([0x75,0x73,0x65])]:_0x14b7b7([0x73,0x69,0x67]),[_0x14b7b7([0x63,0x72,0x76])]:_0x14b7b7([0x50,0x2d,0x32,0x35,0x36]),[_0x14b7b7([0x78])]:_0x14b7b7([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]),[_0x14b7b7([0x79])]:_0x14b7b7([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]),[_0x14b7b7([0x61,0x6c,0x67])]:_0x14b7b7([0x45,0x53,0x32,0x35,0x36])},_0x419794=_0x15b93a[_0x14b7b7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14b7b7([0x67,0x65,0x74])](_0x14b7b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x866736(){let _0x5a8318,_0x2cc234=null,_0x3eac7f=null;try{if(_0x419794==_0x14b7b7([0x47,0x50,0x4c]))return _0x14b7b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a8318=_0x297663(),!_0x5a8318)return _0x14b7b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a8318[_0x14b7b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3eac7f=_0x3fd64d(_0x5a8318[_0x14b7b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a8318[_0x14b7b7([0x6a,0x74,0x69])])),await _0x1eafc6()?_0x35bf88()?_0x2bbf38()?_0x14b7b7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x14a821()?(_0x5a8318[_0x14b7b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b7b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2cc234=_0x5df910(_0x14b7b7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a8318[_0x14b7b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b7b7([0x74,0x72,0x69,0x61,0x6c])&&(_0x2cc234=_0x5df910(_0x14b7b7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f9499()):_0x14b7b7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14b7b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14b7b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x14b7b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2bbf38(){const _0x1fd90e=[_0x14b7b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14b7b7([0x74,0x72,0x69,0x61,0x6c])][_0x14b7b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8318[_0x14b7b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4173e1/0x3e8:0xe10*_0x43102c;return _0x5a8318[_0x14b7b7([0x65,0x78,0x70])]<_0x1fd90e;}function _0x35bf88(){const _0x1a7bfb=_0x5a8318[_0x14b7b7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1a7bfb&&(!!_0x1a7bfb[_0x14b7b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b7b7([0x2a]))||!!_0x1a7bfb[_0x14b7b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b7b7([0x55,0x50,0x4c,0x43])));}function _0x14a821(){const _0x49ec11=_0x5a8318[_0x14b7b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x49ec11||0x0==_0x49ec11[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42f06f}=new URL(window[_0x14b7b7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x49ec11[_0x14b7b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42f06f))return!0x0;const _0x3d0dc2=_0x42f06f[_0x14b7b7([0x73,0x70,0x6c,0x69,0x74])](_0x14b7b7([0x2e]));return _0x49ec11[_0x14b7b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37d17e=>_0x37d17e[_0x14b7b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b7b7([0x2a])))[_0x14b7b7([0x6d,0x61,0x70])](_0x257b6a=>_0x257b6a[_0x14b7b7([0x73,0x70,0x6c,0x69,0x74])](_0x14b7b7([0x2e])))[_0x14b7b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11587d=>_0x11587d[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3d0dc2[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14b7b7([0x6d,0x61,0x70])](_0x452b64=>Array(_0x3d0dc2[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x452b64[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14b7b7([0x66,0x69,0x6c,0x6c])](_0x452b64[0x0]===_0x14b7b7([0x2a])?_0x14b7b7([0x2a]):'')[_0x14b7b7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x452b64))[_0x14b7b7([0x73,0x6f,0x6d,0x65])](_0x44ba26=>_0x3d0dc2[_0x14b7b7([0x65,0x76,0x65,0x72,0x79])]((_0x2bbbf0,_0x3f57cb)=>_0x44ba26[_0x3f57cb]===_0x2bbbf0||_0x44ba26[_0x3f57cb]===_0x14b7b7([0x2a])));}function _0x2f9499(){return _0x2cc234&&_0x3eac7f?new window[(_0x14b7b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d6605,_0x50cc87)=>{_0x2cc234[_0x14b7b7([0x74,0x68,0x65,0x6e])](_0x1d6605,_0x50cc87),_0x3eac7f[_0x14b7b7([0x74,0x68,0x65,0x6e])](_0x45d863=>{_0x45d863!=_0x14b7b7([0x56,0x61,0x6c,0x69,0x64])&&_0x1d6605(_0x45d863);},_0x50cc87);}):_0x2cc234||_0x3eac7f||_0x14b7b7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3fd64d(_0xbc1da2,_0x156cb8){return new window[(_0x14b7b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24c56b=>{if(_0x329e75())return _0x24c56b(_0x14b7b7([0x56,0x61,0x6c,0x69,0x64]));_0x59f81f(),_0x15b93a[_0x14b7b7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14b7b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15f239=!0x1;const _0x517cdf=_0x328789();function _0x818630(_0x4d7254){return!!_0x4d7254&&(typeof _0x4d7254===_0x14b7b7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d7254===_0x14b7b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d7254[_0x14b7b7([0x74,0x68,0x65,0x6e])]===_0x14b7b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d7254[_0x14b7b7([0x63,0x61,0x74,0x63,0x68])]===_0x14b7b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57c581(_0x38035d){_0x53e1ec(_0x38035d)[_0x14b7b7([0x74,0x68,0x65,0x6e])](_0xf77372=>{if(!_0xf77372||_0xf77372[_0x14b7b7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14b7b7([0x6f,0x6b]))return _0x14b7b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x459780(_0xc8aac(_0x517cdf+_0x156cb8))!=_0xf77372[_0x14b7b7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14b7b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14b7b7([0x56,0x61,0x6c,0x69,0x64]);})[_0x14b7b7([0x74,0x68,0x65,0x6e])](_0x5d435d=>(_0x3e5633(),_0x5d435d),()=>{const _0x1a5a1f=_0x19f84d();return null==_0x1a5a1f?(_0x3e5633(),_0x14b7b7([0x56,0x61,0x6c,0x69,0x64])):_0x14b7b7(_0x4173e1-_0x1a5a1f>(0x27d454df^_0x55228a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14b7b7([0x74,0x68,0x65,0x6e])](_0x24c56b)[_0x14b7b7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24c56b(_0x14b7b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4df476=0x3ee3e5f^_0x55228a;function _0x3e5633(){const _0x3fc696=_0x14b7b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x459780(_0xc8aac(_0xbc1da2)),_0x5d7e62=_0x15e57a(_0x459780(window[_0x14b7b7([0x4d,0x61,0x74,0x68])][_0x14b7b7([0x63,0x65,0x69,0x6c])](_0x4173e1/_0x4df476)));window[_0x14b7b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b7b7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fc696,_0x5d7e62);}function _0x19f84d(){const _0xc11b11=_0x14b7b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x459780(_0xc8aac(_0xbc1da2)),_0x1476a6=window[_0x14b7b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b7b7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc11b11);return _0x1476a6?window[_0x14b7b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15e57a(_0x1476a6),0x10)*_0x4df476:null;}function _0x53e1ec(_0x1993df){return new window[(_0x14b7b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ac184,_0x3a269e)=>{_0x1993df[_0x14b7b7([0x74,0x68,0x65,0x6e])](_0x2ac184,_0x3a269e),window[_0x14b7b7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a269e,0x3d9041f^_0x55228a);});}}_0x15b93a[_0x14b7b7([0x6f,0x6e])](_0x14b7b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59bdff,_0x5d4fc2)=>{if(_0x5d4fc2[0x0]!=_0xbc1da2)return _0x24c56b(_0x14b7b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d4fc2[0x1]={..._0x5d4fc2[0x1],[_0x14b7b7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x517cdf};},{[_0x14b7b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b7b7([0x68,0x69,0x67,0x68])}),_0x15b93a[_0x14b7b7([0x6f,0x6e])](_0x14b7b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4be736=>{_0x818630(_0x4be736[_0x14b7b7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15f239=!0x0,_0x57c581(_0x4be736[_0x14b7b7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14b7b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b7b7([0x6c,0x6f,0x77])}),_0x3c6156[_0x14b7b7([0x74,0x68,0x65,0x6e])](()=>{_0x15f239||_0x24c56b(_0x14b7b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x329e75(){return _0x15b93a[_0x14b7b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b7b7([0x76,0x69,0x65,0x77])][_0x14b7b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14b7b7([0x61,0x75,0x74,0x6f]);}function _0x59f81f(){_0x15b93a[_0x14b7b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b7b7([0x76,0x69,0x65,0x77])][_0x14b7b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14b7b7([0x61,0x75,0x74,0x6f]);}}function _0x5df910(_0x26e933){const _0x28d7ff=[new window[(_0x14b7b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ccab4=>setTimeout(_0x4ccab4,0x3d1ee13^_0x55228a)),_0x3c6156[_0x14b7b7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14b7b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cf6ee=>{let _0x191e50=0x0;_0x15b93a[_0x14b7b7([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b7b7([0x6f,0x6e])](_0x14b7b7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b3b55,_0x59bf16)=>{_0x59bf16[0x0][_0x14b7b7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x191e50++,_0x191e50==(0x3d8d127^_0x55228a)&&(_0x2cf6ee(),_0x2b3b55[_0x14b7b7([0x6f,0x66,0x66])]());});}))];return window[_0x14b7b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14b7b7([0x72,0x61,0x63,0x65])](_0x28d7ff)[_0x14b7b7([0x74,0x68,0x65,0x6e])](()=>_0x26e933);}async function _0x1bfe40(){await _0x3c6156,_0x15b93a[_0x14b7b7([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b7b7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18b6bf,_0x15b93a[_0x14b7b7([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b7b7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18b6bf,_0x15b93a[_0x14b7b7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14b7b7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x423fa1(_0x262d75){const _0x25cd91=_0x69e32f();_0x15b93a[_0x25cd91]=_0x14b7b7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x262d75,_0x262d75!=_0x14b7b7([0x56,0x61,0x6c,0x69,0x64])&&_0x1bfe40();}function _0x69e32f(){const _0x11cd15=window[_0x14b7b7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14b7b7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14b7b7([0x6e,0x6f,0x77])]())[_0x14b7b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14b7b7([0x2e]),'');let _0x788de9=_0x14b7b7([0x52]);for(let _0xcfe97f=0x0;_0xcfe97f<_0x11cd15[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcfe97f+=0x2){let _0x1a4f52=window[_0x14b7b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11cd15[_0x14b7b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcfe97f,_0xcfe97f+0x2));_0x1a4f52>=_0x5c1adf[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a4f52-=_0x5c1adf[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x788de9+=_0x5c1adf[_0x1a4f52];}return _0x788de9;}function _0x297663(){const _0x2aa95e=_0x419794[_0x14b7b7([0x73,0x70,0x6c,0x69,0x74])](_0x14b7b7([0x2e]));if(0x3!=_0x2aa95e[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41b8c0(_0x2aa95e[0x1]);function _0x41b8c0(_0x24fba6){const _0x10c48f=_0x429659(_0x24fba6);return _0x10c48f&&_0xa74a37()?_0x10c48f:null;function _0xa74a37(){const _0x18a9ee=_0x10c48f[_0x14b7b7([0x6a,0x74,0x69])],_0x3c5538=window[_0x14b7b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18a9ee[_0x14b7b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18a9ee[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1157a1={..._0x10c48f,[_0x14b7b7([0x6a,0x74,0x69])]:_0x18a9ee[_0x14b7b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18a9ee[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1157a1[_0x14b7b7([0x76,0x63])],_0xc8aac(_0x1157a1)==_0x3c5538;}}}async function _0x1eafc6(){let _0x1383a2=!0x0;try{const _0x37c6f=_0x419794[_0x14b7b7([0x73,0x70,0x6c,0x69,0x74])](_0x14b7b7([0x2e])),[_0x1634dd,_0x40bd97,_0x34ea64]=_0x37c6f;return _0x1d7d77(_0x1634dd),await _0xc53daa(_0x1634dd,_0x40bd97,_0x34ea64),_0x1383a2;}catch{return!0x1;}function _0x1d7d77(_0x261421){const _0x2f48be=_0x429659(_0x261421);_0x2f48be&&_0x2f48be[_0x14b7b7([0x61,0x6c,0x67])]==_0x14b7b7([0x45,0x53,0x32,0x35,0x36])||(_0x1383a2=!0x1);}async function _0xc53daa(_0x487e26,_0x24fb6e,_0x10876a){const _0x2e3854=window[_0x14b7b7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14b7b7([0x66,0x72,0x6f,0x6d])](_0x5023fc(_0x10876a),_0x32efcf=>_0x32efcf[_0x14b7b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x428bb5=new window[(_0x14b7b7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14b7b7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x487e26+_0x14b7b7([0x2e])+_0x24fb6e),_0x292c50=window[_0x14b7b7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14b7b7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x292c50)return;const _0x5cc853=await _0x292c50[_0x14b7b7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14b7b7([0x6a,0x77,0x6b]),_0x51bc66,{[_0x14b7b7([0x6e,0x61,0x6d,0x65])]:_0x14b7b7([0x45,0x43,0x44,0x53,0x41]),[_0x14b7b7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14b7b7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14b7b7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x292c50[_0x14b7b7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14b7b7([0x6e,0x61,0x6d,0x65])]:_0x14b7b7([0x45,0x43,0x44,0x53,0x41]),[_0x14b7b7([0x68,0x61,0x73,0x68])]:{[_0x14b7b7([0x6e,0x61,0x6d,0x65])]:_0x14b7b7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5cc853,_0x2e3854,_0x428bb5)||(_0x1383a2=!0x1);}}function _0x429659(_0xe0e846){return _0xe0e846[_0x14b7b7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14b7b7([0x65,0x79]))?JSON[_0x14b7b7([0x70,0x61,0x72,0x73,0x65])](_0x5023fc(_0xe0e846)):null;}function _0x5023fc(_0x894dbf){return window[_0x14b7b7([0x61,0x74,0x6f,0x62])](_0x894dbf[_0x14b7b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14b7b7([0x2b]))[_0x14b7b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14b7b7([0x2f])));}function _0xc8aac(_0x488d06){let _0x48dee8=0x1505;function _0x343464(_0x119031){for(let _0x1f24ff=0x0;_0x1f24ff<_0x119031[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f24ff++){const _0x3f9142=_0x119031[_0x14b7b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f24ff);_0x48dee8=(_0x48dee8<<0x5)+_0x48dee8+_0x3f9142,_0x48dee8&=_0x48dee8;}}function _0x2ea391(_0x262a50){Array[_0x14b7b7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x262a50)?_0x262a50[_0x14b7b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ea391):_0x262a50&&typeof _0x262a50==_0x14b7b7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14b7b7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x262a50)[_0x14b7b7([0x73,0x6f,0x72,0x74])]()[_0x14b7b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17a210,_0x4d84de])=>{_0x343464(_0x17a210),_0x2ea391(_0x4d84de);}):_0x343464(window[_0x14b7b7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x262a50));}return _0x2ea391(_0x488d06),_0x48dee8>>>0x0;}function _0x459780(_0x473f54){return _0x473f54[_0x14b7b7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14b7b7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14b7b7([0x30]));}function _0x15e57a(_0x2968ca){return _0x2968ca[_0x14b7b7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14b7b7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14b7b7([0x6a,0x6f,0x69,0x6e])]('');}function _0x18b6bf(){}function _0x14b7b7(_0x2a5463){return _0x2a5463['map'](_0x2098cb=>String['fromCharCode'](_0x2098cb))['join']('');}_0x423fa1(await _0x866736());}(this);}['_initSchema'](){const _0x13cf15=this['editor']['model']['schema'];_0x13cf15['isRegistered']('imageBlock')&&_0x13cf15['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x13cf15['isRegistered']('imageInline')&&_0x13cf15['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3763e5=this['editor'];_0x3763e5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3763e5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x315c44=>_0x315c44['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x53418=_0x3763e5['commands']['get']('replaceImageSource');_0x53418&&this['listenTo'](_0x53418,'cleanupImage',(_0x434c1e,[_0x111880,_0x1653e0])=>{_0x111880['removeAttribute']('uploadcareImageId',_0x1653e0);});}['_initConfig'](){const _0x2009a6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3d3b6e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xae4d41(_0x550573['document'],'uc-config',{..._0x2009a6,'pubkey':_0x3d3b6e,'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']=_0x540b20=>{if('closeMax'==_0x540b20)return'#uc-icon-arrow-down';},_0x550573['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xae4d41(_0x550573['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x550573['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x207e80=this['editor']['commands']['get']('insertImage');_0x207e80&&this['listenTo'](_0x207e80,'execute',()=>{const _0x46fac7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x46fac7&&_0x46fac7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x46fac7);});});const _0x29efe7=this['editor']['commands']['get']('uploadcareImageReplace');_0x29efe7&&this['listenTo'](_0x29efe7,'execute',()=>{const _0x2c9155=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2c9155&&_0x2c9155['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2c9155);});});}}class tt extends _0x55beb0{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x341116){super(_0x341116),_0x341116['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1f91f4['defineComponents'](_0x1f91f4);}}class ii extends _0x16e777{constructor(_0x11cc2a){super(_0x11cc2a);const t=_0x11cc2a['t'],_0x3013c1=this['bindTemplate'],_0x5893b8=new _0x47ee8c();_0x5893b8['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':[_0x5893b8,{'text':_0x3013c1['to']('imageUploadProgress',_0x2a44fb=>t('Loading\x20image...')+'\x20('+(_0x2a44fb||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 _0x16e777{constructor(_0x3eb5d7){super(_0x3eb5d7);const t=_0x3eb5d7['t'];this['set']('errorType',null);const _0x5f1f35=new _0x1fa306(_0x3eb5d7);_0x5f1f35['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5f1f35['withText']=!0x0,_0x5f1f35['class']='ck-button-action',_0x5f1f35['on']('execute',()=>{this['fire']('retry');}),_0x5f1f35['bind']('isVisible')['to'](this,'errorType',_0x1c11eb=>'NotFound'!==_0x1c11eb);const _0x873e43=new _0x217b19();_0x873e43['content']=_0x15cce8,_0x873e43['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4761e2=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':[_0x873e43,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4761e2['to']('errorType',_0x4a201b=>t('NotFound'!==_0x4a201b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5f1f35]},{'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 _0x16e777{constructor(_0x4a53d1,_0x4cc81f){super(_0x4a53d1);const _0x54d278=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4cc81f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x54d278['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2f5ea6,_0x108412,_0xf8f621){super(_0x2f5ea6),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2f5ea6),this['_errorView']=new ti(_0x2f5ea6),this['_editingView']=new ei(_0x2f5ea6,_0xf8f621),this['_focusableView']=new _0x16e777(_0x2f5ea6),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x108412),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'],_0x323fdb=>{this['_addUploadcareImageEditorListeners'](_0x323fdb);});}),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'](_0x344745,_0x36555a){const _0x5bdba3='uc-cloud-image-editor',_0x5b64c0=_0x344745['querySelector'](_0x5bdba3);if(_0x5b64c0)return _0x36555a(_0x5b64c0);const _0x52f6a5=new MutationObserver(_0x20083b=>{const _0x5dabc2=_0x20083b['filter'](_0x56eb28=>_0x56eb28['target']===_0x344745&&_0x56eb28['addedNodes']['length']>0x0&&_0x56eb28['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5bdba3);_0x5dabc2['length']&&(_0x52f6a5['disconnect'](),_0x36555a(_0x5dabc2[0x0]['addedNodes'][0x0]));});_0x52f6a5['observe'](_0x344745,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x575506){_0x575506['addEventListener']('apply',_0x57f1d2=>{this['fire']('apply',{'imageSrc':_0x57f1d2['detail']['cdnUrl']});}),_0x575506['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x482c1e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4d21b8,_0x4f3d8e,_0x3bdd4f){super(),this['_editor']=_0x4d21b8,this['_dialog']=_0x4f3d8e,this['_imageElement']=_0x3bdd4f,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 _0x3b07ef=this['_imageElement'],_0x2ba98f=_0x3b07ef['getAttribute']('uploadcareImageId'),_0xa8a625=_0x3b07ef['getAttribute']('src');if(_0x2ba98f)await this['_loadImageInfo'](_0x2ba98f,_0xa8a625);else{if(this['_imageCache']['has'](_0xa8a625)){const _0x4ecb43=this['_imageCache']['get'](_0xa8a625);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ecb43['url'],this['imageDimension']=_0x4ecb43['dimension'],this['imageId']=_0x4ecb43['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4ea4ad}=this['_editor'],t=_0x4ea4ad['t'],_0x596985=new X(_0x4ea4ad,this['imageStatus'],this['_attributes']);_0x596985['bind']('status')['to'](this,'imageStatus'),_0x596985['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x596985['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x596985['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x596985,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x55f924,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x596985,'position':_0x2a6099['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x596985['focus']();},'onHide':()=>{_0x596985['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x352d9e=>!A(_0x352d9e,_0x596985['element'])}});}['_loadImageInfo'](_0x2701e3,_0x2db6d4){return j['getInfo'](_0x2701e3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x33cceb=>{const {width:_0x31af0a,height:_0x55060c}=_0x33cceb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2db6d4,this['imageDimension']={'width':_0x31af0a,'height':_0x55060c},this['imageId']=_0x2701e3;})['catch'](_0x527a7b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x527a7b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x51c389,_0x28868d){return this['_getImageAsFile'](_0x51c389)['then'](_0x434868=>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':_0x28868d['signal'],'file':_0x434868,'onProgress':_0x1e18d9=>{_0x1e18d9&&_0x1e18d9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1e18d9['value']));}}))['then'](_0x4df9c7=>{const {width:_0x435408,height:_0x1ec28e}=_0x4df9c7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4df9c7['cdnUrl'],this['imageDimension']={'width':_0x435408,'height':_0x1ec28e},this['imageId']=_0x4df9c7['uuid'],this['imageUploadProgress']=null;const _0x49b1ea=_0x51c389['getAttribute']('src');this['_imageCache']['set'](_0x49b1ea,{'id':_0x4df9c7['uuid'],'url':_0x4df9c7['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4c9231=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4c9231['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x512141,_0x4b7701){_0x512141['on']('apply',(_0x173bc9,_0x1b147f)=>{this['_replaceImage'](_0x4b7701,_0x1b147f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x512141['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x512141['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x19e5d5,_0x48a13f,_0x1652d2){const _0x442bc0=this['_editor'],{width:_0x2efe9e,height:_0x448703}=S(_0x48a13f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4e9565,imageSources:_0x38514e}=C(_0x48a13f,_0x2efe9e);_0x442bc0['model']['change'](_0x260314=>{if('$graveyard'===_0x19e5d5['root']['rootName']){_0x442bc0['execute']('insertImage',{'imageType':_0x19e5d5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x19e5d5['getAttributes']()),'uploadcareImageId':_0x1652d2,'src':_0x4e9565,'sources':_0x38514e,'width':_0x2efe9e,'height':_0x448703}});const _0x1c8479=_0x19e5d5['getChildren']();_0x19e5d5=_0x442bc0['model']['document']['selection']['getSelectedElement']();for(const _0x3f0ed5 of _0x1c8479)_0x260314['append'](_0x260314['cloneElement'](_0x3f0ed5),_0x19e5d5);}else _0x260314['setSelection'](_0x19e5d5,'on'),_0x442bc0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x19e5d5['getAttributes']()),'uploadcareImageId':_0x1652d2,'src':_0x4e9565,'sources':_0x38514e,'width':_0x2efe9e,'height':_0x448703},_0x19e5d5);_0x260314['setSelection'](_0x19e5d5,'on');});}async['_getImageAsFile'](_0x15599e){const _0x30525a=_0x550573['window'],_0x5c40b9=_0x550573['document']['location']['href'],_0x61d0ce=new _0x30525a['URL'](_0x15599e['getAttribute']('src'),_0x5c40b9);if('data:'===_0x61d0ce['protocol']){const _0x154773=_0x61d0ce['href']['split'](','),_0x4ec98f=_0x154773[0x0]['match'](/:(.*?);/)[0x1],_0x3973ed=_0x4ec98f['split']('/')[0x1],_0x8ca096=_0x30525a['atob'](_0x154773[_0x154773['length']-0x1]);let _0x1c57a9=_0x8ca096['length'];const _0x130676=new _0x30525a['Uint8Array'](_0x1c57a9);for(;_0x1c57a9--;)_0x130676[_0x1c57a9]=_0x8ca096['charCodeAt'](_0x1c57a9);return new _0x30525a['File']([_0x130676],'image.'+_0x3973ed,{'type':_0x4ec98f});}const _0x36e7d4=_0x61d0ce['href']['split']('/'),_0x51f751=_0x36e7d4[_0x36e7d4['length']-0x1],_0x38875a=_0x51f751['split']('.')[0x1];return _0x30525a['fetch'](_0x61d0ce['href'])['then'](_0x154166=>_0x154166['clone']()['blob']())['then'](_0x213f04=>new _0x30525a['File']([_0x213f04],_0x51f751,{'type':'image/'+_0x38875a}));}}class O extends _0x47fb62{['imageEditController'];static get['requires'](){return[_0x344a4e];}['_isEditable'];constructor(_0x4eb6b8){super(_0x4eb6b8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3ea366){const _0x1658cb=G(_0x3ea366);return _0x161484=>!(!_0x161484||!_0x161484['is']('element','imageBlock')&&!_0x161484['is']('element','imageInline'))&&(!!_0x161484['hasAttribute']('uploadcareImageId')||!!_0x161484['hasAttribute']('src')&&_0x1658cb(_0x161484['getAttribute']('src')));}(_0x4eb6b8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x28eb24=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x28eb24);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xfe8706=this['editor']['model']['document']['selection']['getSelectedElement']();_0xfe8706&&(_0xfe8706['is']('element','imageBlock')||_0xfe8706['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x344a4e),_0xfe8706),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x47fb62{['refresh'](){const _0x1cb908=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1cb908&&(_0x1cb908['is']('element','imageBlock')||_0x1cb908['is']('element','imageInline')));}['execute'](_0x1eb753){const _0x1b1750=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3701ab=>{_0x3701ab['setAttributes'](_0x1eb753,_0x1b1750),_0x3701ab['removeAttribute']('srcset',_0x1b1750),_0x3701ab['removeAttribute']('sizes',_0x1b1750);});}}class m extends _0x55beb0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x202a62,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x41cfba}=this;_0x41cfba['commands']['add']('uploadcareImageEdit',new O(_0x41cfba)),_0x41cfba['commands']['add']('uploadcareImageReplace',new R(_0x41cfba));}}class g extends _0x55beb0{['_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 _0x1ddd4e=this['editor'];_0x1ddd4e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3c5104=>{const _0x1abc83=_0x1ddd4e['commands']['get']('uploadcareImageEdit'),_0x5d900a=new _0x1fa306(_0x3c5104),t=_0x3c5104['t'];return _0x5d900a['set']({'icon':_0x55f924,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5d900a['bind']('isEnabled')['to'](_0x1abc83),_0x5d900a['bind']('isOn')['to'](_0x1abc83,'isActive'),this['listenTo'](_0x5d900a,'execute',()=>{_0x1ddd4e['execute']('uploadcareImageEdit'),_0x1ddd4e['editing']['view']['focus']();}),_0x5d900a;}),this['_initConfig']();}['_initConfig'](){const _0x1f3fea=_0xae4d41(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1f3fea),this['listenTo'](this['editor'],'destroy',()=>{_0x1f3fea['remove']();});}}class et extends _0x55beb0{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": "0.0.0-nightly-20250914.0",
3
+ "version": "0.0.0-nightly-20250915.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250914.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250914.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250914.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250914.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250914.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250914.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250914.0",
33
- "ckeditor5": "0.0.0-nightly-20250914.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250915.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250915.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250915.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250915.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250915.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250915.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250915.0",
33
+ "ckeditor5": "0.0.0-nightly-20250915.0",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1dd04e=_0x5693;(function(_0x5812d7,_0x46cf7c){const _0x73af5a=_0x5693,_0x32d117=_0x5812d7();while(!![]){try{const _0x58d472=parseInt(_0x73af5a(0x1f2))/0x1*(parseInt(_0x73af5a(0x215))/0x2)+parseInt(_0x73af5a(0x1ec))/0x3*(-parseInt(_0x73af5a(0x1fd))/0x4)+-parseInt(_0x73af5a(0x1f6))/0x5*(parseInt(_0x73af5a(0x223))/0x6)+parseInt(_0x73af5a(0x1e8))/0x7*(parseInt(_0x73af5a(0x20b))/0x8)+parseInt(_0x73af5a(0x1e2))/0x9+-parseInt(_0x73af5a(0x20c))/0xa*(-parseInt(_0x73af5a(0x227))/0xb)+-parseInt(_0x73af5a(0x203))/0xc;if(_0x58d472===_0x46cf7c)break;else _0x32d117['push'](_0x32d117['shift']());}catch(_0x16f241){_0x32d117['push'](_0x32d117['shift']());}}}(_0x5a86,0x97afe));import{IconUploadcareImageUpload as _0x248cea}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x37b8ca}from'ckeditor5/src/utils.js';function _0x5a86(){const _0x30907d=['selection','stopDelegating','uuid','view','_insertAsset','2VqpbUT','getLastPosition','doneFlow','_initListeners','4868175LrFQUs','image','insertImage','setCurrentActivity','focus','width','show','4kAqGUV','setSelection','EDITOR_TOP_CENTER','initFlow','source-list','_formView','7300416FkScJG','destroy','_editor','imageInline','done-click','length','getOutputCollectionState','text','4266152pHITCJ','2734030xfwbpI','_initDialog','uploadCare','ucContextId','model','stopListening','execute','attributes','Insert','543890PLYODL','getAPI','editing','allEntries','Replace','getSelectedElement','plugins','addEventListener','configElement','status','_api','get','detail','idle','6nUKaRy','Local','_type','ctxElement','11XfntBh','_editing','hide','_insertImage','setAttribute','document','element','7766190aEDXgk','imageBlock','isOpen','removeAllFiles','linkHref','change','7VCjBiX','_dialog','removeSelectionAttribute','imageInfo','30477htLaoS'];_0x5a86=function(){return _0x30907d;};return _0x5a86();}import{Dialog as _0x2d044d,DialogViewPosition as _0x425ed6}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x4af5b8}from'./uploadcareformview.js';import{UploadcareSource as _0x24af5f}from'../uploadcareconfig.js';import{getTranslation as _0x4ead3e}from'../utils/common-translations.js';import{getImageUrls as _0xc73ee0,getImageDimension as _0x2569b7}from'../utils/editingutils.js';function _0x5693(_0x4ea7b3,_0x5d3367){const _0x5a8601=_0x5a86();return _0x5693=function(_0x569359,_0x4245e8){_0x569359=_0x569359-0x1e2;let _0x36942b=_0x5a8601[_0x569359];return _0x36942b;},_0x5693(_0x4ea7b3,_0x5d3367);}import{isAncestor as _0x24ebfd}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0x37b8ca(){[_0x1dd04e(0x205)];[_0x1dd04e(0x1e9)];[_0x1dd04e(0x228)];[_0x1dd04e(0x21f)];[_0x1dd04e(0x225)]=null;[_0x1dd04e(0x202)]=null;constructor(_0x5003b8,_0x21cef3,_0x20aa59){const _0x2f33cc=_0x1dd04e;super(),this[_0x2f33cc(0x205)]=_0x5003b8,this[_0x2f33cc(0x228)]=_0x21cef3,this[_0x2f33cc(0x1e9)]=_0x5003b8[_0x2f33cc(0x21b)][_0x2f33cc(0x220)](_0x2d044d),this[_0x2f33cc(0x21f)]=_0x21cef3[_0x2f33cc(0x226)][_0x2f33cc(0x216)](),this[_0x2f33cc(0x225)]=_0x20aa59,this[_0x2f33cc(0x228)][_0x2f33cc(0x21d)][_0x2f33cc(0x22b)](_0x2f33cc(0x201),this[_0x2f33cc(0x225)]),this[_0x2f33cc(0x20d)](),this[_0x2f33cc(0x1f5)](),this[_0x2f33cc(0x21f)][_0x2f33cc(0x200)]();}[_0x1dd04e(0x204)](){const _0x45599d=_0x1dd04e;this[_0x45599d(0x202)]&&(this[_0x45599d(0x202)][_0x45599d(0x204)](),this[_0x45599d(0x202)]=null),this[_0x45599d(0x21f)]&&this[_0x45599d(0x21f)][_0x45599d(0x1f4)](),this[_0x45599d(0x211)](),this[_0x45599d(0x1ee)]();}[_0x1dd04e(0x20d)](){const _0x35e971=_0x1dd04e,{locale:_0x493e3c,model:_0x5b6c4e}=this[_0x35e971(0x205)],_0xa1f90b=_0x5b6c4e[_0x35e971(0x22c)][_0x35e971(0x1ed)][_0x35e971(0x21a)](),_0x1c900d=_0xa1f90b&&(_0xa1f90b['is'](_0x35e971(0x22d),_0x35e971(0x1e3))||_0xa1f90b['is'](_0x35e971(0x22d),_0x35e971(0x206)));this[_0x35e971(0x202)]=new _0x4af5b8(_0x493e3c,this[_0x35e971(0x228)][_0x35e971(0x20f)]),this[_0x35e971(0x1e9)][_0x35e971(0x1fc)]({'id':_0x35e971(0x20e),'icon':_0x248cea,'title':_0x4ead3e(_0x493e3c,this[_0x35e971(0x225)],_0x1c900d?_0x35e971(0x219):_0x35e971(0x214))[_0x35e971(0x20a)],'content':this[_0x35e971(0x202)],'position':_0x425ed6[_0x35e971(0x1ff)],'isModal':!0x0,'onShow':()=>{const _0x5860d9=_0x35e971;this[_0x5860d9(0x202)][_0x5860d9(0x1fa)]();},'onHide':()=>{const _0x2fe3e4=_0x35e971;this[_0x2fe3e4(0x21f)][_0x2fe3e4(0x1e5)](),this[_0x2fe3e4(0x205)][_0x2fe3e4(0x217)][_0x2fe3e4(0x1f0)][_0x2fe3e4(0x1fa)](),this[_0x2fe3e4(0x204)]();},'keystrokeHandlerOptions':{'filter':_0xb79e47=>!_0x24ebfd(_0xb79e47,this[_0x35e971(0x202)][_0x35e971(0x22d)])}});}[_0x1dd04e(0x1f5)](){const _0x3d023e=_0x1dd04e;this[_0x3d023e(0x228)][_0x3d023e(0x226)][_0x3d023e(0x21c)](_0x3d023e(0x207),()=>{const _0x1010b7=_0x3d023e,{allEntries:_0x51ffda}=this[_0x1010b7(0x21f)][_0x1010b7(0x209)]();this[_0x1010b7(0x205)][_0x1010b7(0x210)][_0x1010b7(0x1e7)](_0x353a71=>{const _0x41cd0b=_0x1010b7,_0x489358=_0x51ffda[_0x41cd0b(0x208)];for(const _0x1ff5af of _0x51ffda){const _0x3e3a38=_0x1ff5af===_0x51ffda[_0x489358-0x1],{cdnUrl:_0x5b9fac,fileInfo:_0x20b5aa}=_0x1ff5af;if(!_0x5b9fac||!_0x20b5aa)continue;const {width:_0xbcf193,height:_0x243160}=_0x20b5aa[_0x41cd0b(0x1eb)],_0x33e9d4=_0x2569b7(_0x5b9fac,_0xbcf193,_0x243160),_0x47fba5=_0xc73ee0(_0x5b9fac,_0x33e9d4[_0x41cd0b(0x1fb)]),_0x5488f5={'id':_0x20b5aa[_0x41cd0b(0x1ef)],'type':_0x41cd0b(0x1f7),'attributes':{'imageDimension':_0x33e9d4,..._0x47fba5}};this[_0x41cd0b(0x1f1)](_0x5488f5,_0x3e3a38,_0x353a71);}}),this[_0x1010b7(0x1e9)][_0x1010b7(0x229)]();}),this[_0x3d023e(0x228)][_0x3d023e(0x226)][_0x3d023e(0x21c)](_0x3d023e(0x1e7),_0x308b4c=>{const _0x2f9296=_0x3d023e;_0x2f9296(0x222)===_0x308b4c[_0x2f9296(0x221)][_0x2f9296(0x21e)]&&!_0x308b4c[_0x2f9296(0x221)][_0x2f9296(0x218)][_0x2f9296(0x208)]&&this[_0x2f9296(0x1e9)][_0x2f9296(0x1e4)]&&(this[_0x2f9296(0x225)]===_0x24af5f[_0x2f9296(0x224)]?this[_0x2f9296(0x21f)][_0x2f9296(0x1f9)](_0x24af5f[_0x2f9296(0x224)]):this[_0x2f9296(0x21f)][_0x2f9296(0x200)]());});}[_0x1dd04e(0x1f1)](_0xeba5e9,_0x4fefaa,_0x414e9a){const _0x4895ee=_0x1dd04e,_0xd25280=this[_0x4895ee(0x205)][_0x4895ee(0x210)][_0x4895ee(0x22c)][_0x4895ee(0x1ed)],_0xa9f7cd=_0xd25280[_0x4895ee(0x21a)](),_0x59376d=!(!_0xa9f7cd||!_0xa9f7cd['is'](_0x4895ee(0x22d),_0x4895ee(0x206)));_0x414e9a[_0x4895ee(0x1ea)](_0x4895ee(0x1e6)),this[_0x4895ee(0x22a)](_0xeba5e9,_0x59376d),_0x4fefaa||_0x414e9a[_0x4895ee(0x1fe)](_0xd25280[_0x4895ee(0x1f3)]());}[_0x1dd04e(0x22a)](_0x2367ef,_0x3a0be4){const _0x3e64a0=_0x1dd04e,_0x109fb5=this[_0x3e64a0(0x205)],{imageDimension:_0x391240,imageFallbackUrl:_0x2d3a55,imageSources:_0x469ad5}=_0x2367ef[_0x3e64a0(0x213)];_0x109fb5[_0x3e64a0(0x212)](_0x3e64a0(0x1f8),{'imageType':_0x3a0be4?_0x3e64a0(0x206):null,'source':{'uploadcareImageId':_0x2367ef['id'],'src':_0x2d3a55,'sources':_0x469ad5,..._0x391240}});}}
23
+ function _0xf4c7(_0x4b8741,_0x1c96c1){const _0x3664ed=_0x3664();return _0xf4c7=function(_0xf4c73e,_0x29d3d5){_0xf4c73e=_0xf4c73e-0xae;let _0x360d82=_0x3664ed[_0xf4c73e];return _0x360d82;},_0xf4c7(_0x4b8741,_0x1c96c1);}function _0x3664(){const _0x172c26=['5944729KHZcVS','focus','getOutputCollectionState','attributes','configElement','addEventListener','view','setCurrentActivity','6480384jfJeFx','imageInline','done-click','_insertImage','getAPI','ucContextId','initFlow','_dialog','source-list','removeAllFiles','model','_formView','destroy','_editing','text','status','_initDialog','_api','getLastPosition','plugins','execute','408141KIaggs','element','318OeTTUF','4PuAwuU','doneFlow','uploadCare','ctxElement','2555115xeHYUB','setAttribute','idle','isOpen','Insert','6790614CKDFZs','_insertAsset','_editor','image','uuid','removeSelectionAttribute','getSelectedElement','selection','imageBlock','document','length','stopDelegating','410lhUwHE','stopListening','imageInfo','_type','Replace','1917025QXaMEi','editing','allEntries','2746ZoeVcA','change','linkHref','show','insertImage','get','Local','EDITOR_TOP_CENTER','detail','hide','width','_initListeners','setSelection'];_0x3664=function(){return _0x172c26;};return _0x3664();}const _0x463480=_0xf4c7;(function(_0x5d16bc,_0x425ae8){const _0x37bde4=_0xf4c7,_0x391c10=_0x5d16bc();while(!![]){try{const _0x5d823e=-parseInt(_0x37bde4(0xf0))/0x1*(-parseInt(_0x37bde4(0xc4))/0x2)+parseInt(_0x37bde4(0xf5))/0x3*(-parseInt(_0x37bde4(0xf1))/0x4)+parseInt(_0x37bde4(0xc1))/0x5+-parseInt(_0x37bde4(0xb0))/0x6+-parseInt(_0x37bde4(0xd1))/0x7+parseInt(_0x37bde4(0xd9))/0x8+-parseInt(_0x37bde4(0xee))/0x9*(-parseInt(_0x37bde4(0xbc))/0xa);if(_0x5d823e===_0x425ae8)break;else _0x391c10['push'](_0x391c10['shift']());}catch(_0x515160){_0x391c10['push'](_0x391c10['shift']());}}}(_0x3664,0xa050f));import{IconUploadcareImageUpload as _0x5a5605}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x586245}from'ckeditor5/src/utils.js';import{Dialog as _0x4b4b4c,DialogViewPosition as _0x34222d}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x7aeec3}from'./uploadcareformview.js';import{UploadcareSource as _0x4acf67}from'../uploadcareconfig.js';import{getTranslation as _0xae74d1}from'../utils/common-translations.js';import{getImageUrls as _0x2abe4c,getImageDimension as _0x133bea}from'../utils/editingutils.js';import{isAncestor as _0x19d967}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x586245(){[_0x463480(0xb2)];[_0x463480(0xe0)];[_0x463480(0xe6)];[_0x463480(0xea)];[_0x463480(0xbf)]=null;[_0x463480(0xe4)]=null;constructor(_0xb13f9d,_0x4f37f4,_0x1c81f6){const _0x26ec74=_0x463480;super(),this[_0x26ec74(0xb2)]=_0xb13f9d,this[_0x26ec74(0xe6)]=_0x4f37f4,this[_0x26ec74(0xe0)]=_0xb13f9d[_0x26ec74(0xec)][_0x26ec74(0xc9)](_0x4b4b4c),this[_0x26ec74(0xea)]=_0x4f37f4[_0x26ec74(0xf4)][_0x26ec74(0xdd)](),this[_0x26ec74(0xbf)]=_0x1c81f6,this[_0x26ec74(0xe6)][_0x26ec74(0xd5)][_0x26ec74(0xf6)](_0x26ec74(0xe1),this[_0x26ec74(0xbf)]),this[_0x26ec74(0xe9)](),this[_0x26ec74(0xcf)](),this[_0x26ec74(0xea)][_0x26ec74(0xdf)]();}[_0x463480(0xe5)](){const _0x2f4252=_0x463480;this[_0x2f4252(0xe4)]&&(this[_0x2f4252(0xe4)][_0x2f4252(0xe5)](),this[_0x2f4252(0xe4)]=null),this[_0x2f4252(0xea)]&&this[_0x2f4252(0xea)][_0x2f4252(0xf2)](),this[_0x2f4252(0xbd)](),this[_0x2f4252(0xbb)]();}[_0x463480(0xe9)](){const _0x330f1e=_0x463480,{locale:_0x3b4591,model:_0x4e51de}=this[_0x330f1e(0xb2)],_0x28a423=_0x4e51de[_0x330f1e(0xb9)][_0x330f1e(0xb7)][_0x330f1e(0xb6)](),_0x5a20e5=_0x28a423&&(_0x28a423['is'](_0x330f1e(0xef),_0x330f1e(0xb8))||_0x28a423['is'](_0x330f1e(0xef),_0x330f1e(0xda)));this[_0x330f1e(0xe4)]=new _0x7aeec3(_0x3b4591,this[_0x330f1e(0xe6)][_0x330f1e(0xde)]),this[_0x330f1e(0xe0)][_0x330f1e(0xc7)]({'id':_0x330f1e(0xf3),'icon':_0x5a5605,'title':_0xae74d1(_0x3b4591,this[_0x330f1e(0xbf)],_0x5a20e5?_0x330f1e(0xc0):_0x330f1e(0xaf))[_0x330f1e(0xe7)],'content':this[_0x330f1e(0xe4)],'position':_0x34222d[_0x330f1e(0xcb)],'isModal':!0x0,'onShow':()=>{const _0x4e4066=_0x330f1e;this[_0x4e4066(0xe4)][_0x4e4066(0xd2)]();},'onHide':()=>{const _0x1da6df=_0x330f1e;this[_0x1da6df(0xea)][_0x1da6df(0xe2)](),this[_0x1da6df(0xb2)][_0x1da6df(0xc2)][_0x1da6df(0xd7)][_0x1da6df(0xd2)](),this[_0x1da6df(0xe5)]();},'keystrokeHandlerOptions':{'filter':_0x27a95e=>!_0x19d967(_0x27a95e,this[_0x330f1e(0xe4)][_0x330f1e(0xef)])}});}[_0x463480(0xcf)](){const _0x54bfbd=_0x463480;this[_0x54bfbd(0xe6)][_0x54bfbd(0xf4)][_0x54bfbd(0xd6)](_0x54bfbd(0xdb),()=>{const _0x1ee6d7=_0x54bfbd,{allEntries:_0x51cf79}=this[_0x1ee6d7(0xea)][_0x1ee6d7(0xd3)]();this[_0x1ee6d7(0xb2)][_0x1ee6d7(0xe3)][_0x1ee6d7(0xc5)](_0x44b4fe=>{const _0x5a0e98=_0x1ee6d7,_0x339b5a=_0x51cf79[_0x5a0e98(0xba)];for(const _0x2023fa of _0x51cf79){const _0x2a86dd=_0x2023fa===_0x51cf79[_0x339b5a-0x1],{cdnUrl:_0x538ba8,fileInfo:_0x2dd7ff}=_0x2023fa;if(!_0x538ba8||!_0x2dd7ff)continue;const {width:_0x5b8637,height:_0x249bcc}=_0x2dd7ff[_0x5a0e98(0xbe)],_0x4e4f7b=_0x133bea(_0x538ba8,_0x5b8637,_0x249bcc),_0x452e1c=_0x2abe4c(_0x538ba8,_0x4e4f7b[_0x5a0e98(0xce)]),_0x320b36={'id':_0x2dd7ff[_0x5a0e98(0xb4)],'type':_0x5a0e98(0xb3),'attributes':{'imageDimension':_0x4e4f7b,..._0x452e1c}};this[_0x5a0e98(0xb1)](_0x320b36,_0x2a86dd,_0x44b4fe);}}),this[_0x1ee6d7(0xe0)][_0x1ee6d7(0xcd)]();}),this[_0x54bfbd(0xe6)][_0x54bfbd(0xf4)][_0x54bfbd(0xd6)](_0x54bfbd(0xc5),_0x45adf6=>{const _0x1edfc6=_0x54bfbd;_0x1edfc6(0xf7)===_0x45adf6[_0x1edfc6(0xcc)][_0x1edfc6(0xe8)]&&!_0x45adf6[_0x1edfc6(0xcc)][_0x1edfc6(0xc3)][_0x1edfc6(0xba)]&&this[_0x1edfc6(0xe0)][_0x1edfc6(0xae)]&&(this[_0x1edfc6(0xbf)]===_0x4acf67[_0x1edfc6(0xca)]?this[_0x1edfc6(0xea)][_0x1edfc6(0xd8)](_0x4acf67[_0x1edfc6(0xca)]):this[_0x1edfc6(0xea)][_0x1edfc6(0xdf)]());});}[_0x463480(0xb1)](_0x1ad351,_0x292268,_0xdc6d14){const _0x9b0e40=_0x463480,_0xfb5f53=this[_0x9b0e40(0xb2)][_0x9b0e40(0xe3)][_0x9b0e40(0xb9)][_0x9b0e40(0xb7)],_0x99c3c9=_0xfb5f53[_0x9b0e40(0xb6)](),_0x2bdab8=!(!_0x99c3c9||!_0x99c3c9['is'](_0x9b0e40(0xef),_0x9b0e40(0xda)));_0xdc6d14[_0x9b0e40(0xb5)](_0x9b0e40(0xc6)),this[_0x9b0e40(0xdc)](_0x1ad351,_0x2bdab8),_0x292268||_0xdc6d14[_0x9b0e40(0xd0)](_0xfb5f53[_0x9b0e40(0xeb)]());}[_0x463480(0xdc)](_0x3ffd20,_0x374ccd){const _0x510ae7=_0x463480,_0x5a2067=this[_0x510ae7(0xb2)],{imageDimension:_0x3682ed,imageFallbackUrl:_0x5b5324,imageSources:_0x4eff8d}=_0x3ffd20[_0x510ae7(0xd4)];_0x5a2067[_0x510ae7(0xed)](_0x510ae7(0xc8),{'imageType':_0x374ccd?_0x510ae7(0xda):null,'source':{'uploadcareImageId':_0x3ffd20['id'],'src':_0x5b5324,'sources':_0x4eff8d,..._0x3682ed}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xe6f54c=_0x4955;(function(_0x5595fc,_0x5ac448){var _0x1246f5=_0x4955,_0x52655a=_0x5595fc();while(!![]){try{var _0xdb5927=-parseInt(_0x1246f5(0x8c))/0x1+parseInt(_0x1246f5(0x87))/0x2+parseInt(_0x1246f5(0x89))/0x3+-parseInt(_0x1246f5(0x98))/0x4*(-parseInt(_0x1246f5(0x92))/0x5)+-parseInt(_0x1246f5(0x90))/0x6*(-parseInt(_0x1246f5(0x93))/0x7)+parseInt(_0x1246f5(0x88))/0x8*(-parseInt(_0x1246f5(0x8a))/0x9)+-parseInt(_0x1246f5(0x91))/0xa;if(_0xdb5927===_0x5ac448)break;else _0x52655a['push'](_0x52655a['shift']());}catch(_0x1e1556){_0x52655a['push'](_0x52655a['shift']());}}}(_0x3e91,0x6afe4));import{DialogFocusManagerView as _0x5c44db}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';function _0x4955(_0x279af5,_0x2c7a8e){var _0x3e912d=_0x3e91();return _0x4955=function(_0x4955b7,_0x5ec5e6){_0x4955b7=_0x4955b7-0x85;var _0x48a04b=_0x3e912d[_0x4955b7];return _0x48a04b;},_0x4955(_0x279af5,_0x2c7a8e);}export class UploadcareFormView extends _0x5c44db{constructor(_0x53b52a,_0x134c20){var _0x3a012e=_0x4955;super(_0x53b52a),this[_0x3a012e(0x85)]({'tag':_0x3a012e(0x96),'attributes':{'class':['ck',_0x3a012e(0x8f),_0x3a012e(0x97)],'tabindex':'-1'},'children':[{'tag':_0x3a012e(0x8b),'attributes':{'class':[_0x3a012e(0x94),_0x3a012e(0x95)],'ctx-name':_0x3a012e(0x8e)+_0x134c20}},this[_0x3a012e(0x8d)]()]});}[_0xe6f54c(0x99)](){var _0x9e270d=_0xe6f54c;this[_0x9e270d(0x86)][_0x9e270d(0x99)]();}}function _0x3e91(){var _0x16e86d=['581448rPKfwH','8TPLwmB','1502313rWYIpG','1400661sqkJhC','uc-file-uploader-inline','692899vqtTaZ','getFocusableElement','uploader-','ck-reset_all-excluded','18oUKDGx','11391050ldxhtb','515QMMMad','1775291FFFwfv','uc-light','ck-uploadcare-theme','div','ck-uploadcare-form','33924QhSoSe','focus','setTemplate','element'];_0x3e91=function(){return _0x16e86d;};return _0x3e91();}
23
+ var _0x58ee16=_0x2c82;(function(_0x46def0,_0x24670f){var _0x3d691c=_0x2c82,_0x2464da=_0x46def0();while(!![]){try{var _0x5a07f5=-parseInt(_0x3d691c(0x1fc))/0x1+-parseInt(_0x3d691c(0x1f8))/0x2*(parseInt(_0x3d691c(0x200))/0x3)+-parseInt(_0x3d691c(0x20a))/0x4*(parseInt(_0x3d691c(0x204))/0x5)+-parseInt(_0x3d691c(0x1f4))/0x6*(-parseInt(_0x3d691c(0x203))/0x7)+-parseInt(_0x3d691c(0x209))/0x8*(-parseInt(_0x3d691c(0x202))/0x9)+-parseInt(_0x3d691c(0x1fb))/0xa*(-parseInt(_0x3d691c(0x1f9))/0xb)+-parseInt(_0x3d691c(0x205))/0xc;if(_0x5a07f5===_0x24670f)break;else _0x2464da['push'](_0x2464da['shift']());}catch(_0x5dc712){_0x2464da['push'](_0x2464da['shift']());}}}(_0x3581,0x4d374));function _0x3581(){var _0x35932b=['element','uploader-','839982nrvioV','66PcYngm','div','842090vxzCsU','486216beLCEh','uc-light','ck-uploadcare-form','ck-reset_all-excluded','3JiFwdi','uc-file-uploader-inline','954qvdRDG','658OzMvXi','249655ZcpfAM','1465248GmCOVl','focus','setTemplate','getFocusableElement','41672zsQohG','20QPnCeQ','34266MCSDIt','ck-uploadcare-theme'];_0x3581=function(){return _0x35932b;};return _0x3581();}function _0x2c82(_0x288999,_0x1b83ef){var _0x3581b7=_0x3581();return _0x2c82=function(_0x2c8216,_0x55ab32){_0x2c8216=_0x2c8216-0x1f4;var _0x5b1faf=_0x3581b7[_0x2c8216];return _0x5b1faf;},_0x2c82(_0x288999,_0x1b83ef);}import{DialogFocusManagerView as _0x1bccba}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x1bccba{constructor(_0x733931,_0xeac637){var _0x5800f4=_0x2c82;super(_0x733931),this[_0x5800f4(0x207)]({'tag':_0x5800f4(0x1fa),'attributes':{'class':['ck',_0x5800f4(0x1ff),_0x5800f4(0x1fe)],'tabindex':'-1'},'children':[{'tag':_0x5800f4(0x201),'attributes':{'class':[_0x5800f4(0x1fd),_0x5800f4(0x1f5)],'ctx-name':_0x5800f4(0x1f7)+_0xeac637}},this[_0x5800f4(0x208)]()]});}[_0x58ee16(0x206)](){var _0x58de55=_0x58ee16;this[_0x58de55(0x1f6)][_0x58de55(0x206)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e3100=_0x1ff5;(function(_0x3a5428,_0xe341ee){const _0x3ea184=_0x1ff5,_0x550f05=_0x3a5428();while(!![]){try{const _0x10c05d=-parseInt(_0x3ea184(0x150))/0x1*(-parseInt(_0x3ea184(0x11e))/0x2)+parseInt(_0x3ea184(0x10e))/0x3*(-parseInt(_0x3ea184(0x113))/0x4)+parseInt(_0x3ea184(0xff))/0x5*(-parseInt(_0x3ea184(0x10b))/0x6)+-parseInt(_0x3ea184(0x13a))/0x7*(parseInt(_0x3ea184(0x125))/0x8)+-parseInt(_0x3ea184(0x104))/0x9*(-parseInt(_0x3ea184(0x12a))/0xa)+-parseInt(_0x3ea184(0x10f))/0xb+-parseInt(_0x3ea184(0x108))/0xc*(-parseInt(_0x3ea184(0x100))/0xd);if(_0x10c05d===_0xe341ee)break;else _0x550f05['push'](_0x550f05['shift']());}catch(_0x1fd15f){_0x550f05['push'](_0x550f05['shift']());}}}(_0x112b,0x3c0ad));function _0x1ff5(_0x2aaf4a,_0x1d36c3){const _0x112b4e=_0x112b();return _0x1ff5=function(_0x1ff567,_0x2ce7be){_0x1ff567=_0x1ff567-0xff;let _0xad5845=_0x112b4e[_0x1ff567];return _0xad5845;},_0x1ff5(_0x2aaf4a,_0x1d36c3);}import{Plugin as _0x18781a}from'ckeditor5/src/core.js';import{Dialog as _0x18bd7b}from'ckeditor5/src/ui.js';import{createElement as _0x5117b0,global as _0x185e88,uid as _0x25c1e8}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x51d1fd}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4661da}from'./uploadcareuploadadapter.js';function _0x112b(){const _0x54c92d=['render','input[uploadcare-file-input]','uc-config','destroy','href','getSelectedElement','3055577ICpvMg','uploadcareImageId','add','PictureEditing','fromCharCode','schema','requires','configElement','uc-upload-ctx-provider','_initSchema','once','view','config','_ctxElement','_initImageProcessingIndicator','isOfficialPlugin','execute','appendChild','isPremiumPlugin','extend','_configElement','afterInit','5573pLstOD','join','querySelector','editing','#uc-icon-arrow-down','map','model','25NzLSmd','13yecmle','ucContextId','init','listenTo','2284065ojIOrS','insertImage','document','contentLanguage','13113372DJhOUH','conversion','_initCtx','391836ArvFqc','uploadcare.uploader','iconHrefResolver','276666HDXLtr','146168QVqiTa','isRegistered','data-uc-image-id','imageBlock','16LFIvKi','imageInline','uploadcareImageReplace','closeMax','replaceImageSource','editor','removeAttribute','_initConversion','elementToAttribute','cleanupImage','pluginName','16Bfbvnn','\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','ctxElement','upcast','attributeToAttribute','commands','locale','8OjuWtq','uploader-','getAttribute','downcast','get','10oAzRft','remove','uploadcare.pubkey','selection','UploadcareEditing','body','_initConfig','for','true','uploadcare'];_0x112b=function(){return _0x54c92d;};return _0x112b();}import{showImageProcessingIndicator as _0x237a58}from'./utils/editingutils.js';export class UploadcareEditing extends _0x18781a{[_0x1e3100(0x14e)]=null;[_0x1e3100(0x147)]=null;static get[_0x1e3100(0x11d)](){const _0x13514d=_0x1e3100;return _0x13514d(0x12e);}static get[_0x1e3100(0x140)](){const _0x1d9430=_0x1e3100;return[_0x1d9430(0x13d),_0x4661da,_0x18bd7b];}static get[_0x1e3100(0x149)](){return!0x0;}static get[_0x1e3100(0x14c)](){return!0x0;}[_0x1e3100(0x101)];get[_0x1e3100(0x141)](){const _0x606a29=_0x1e3100;return this[_0x606a29(0x14e)];}get[_0x1e3100(0x120)](){const _0x4b74b8=_0x1e3100;return this[_0x4b74b8(0x147)];}constructor(_0x34db92){const _0x5b8574=_0x1e3100;super(_0x34db92),this[_0x5b8574(0x101)]=_0x25c1e8();}[_0x1e3100(0x102)](){const _0x514f7c=_0x1e3100,_0x28ed5c=this[_0x514f7c(0x118)];_0x28ed5c[_0x514f7c(0x123)][_0x514f7c(0x13c)](_0x514f7c(0x133),new _0x51d1fd(_0x28ed5c));}[_0x1e3100(0x14f)](){const _0x3bd602=_0x1e3100;this[_0x3bd602(0x143)](),this[_0x3bd602(0x11a)](),this[_0x3bd602(0x130)](),this[_0x3bd602(0x10a)](),this[_0x3bd602(0x148)](),this[_0x3bd602(0x103)](this[_0x3bd602(0x118)],_0x3bd602(0x137),()=>{const _0xe8b928=_0x3bd602;this[_0xe8b928(0x14e)]&&(this[_0xe8b928(0x14e)][_0xe8b928(0x12b)](),this[_0xe8b928(0x14e)]=null),this[_0xe8b928(0x147)]&&(this[_0xe8b928(0x147)][_0xe8b928(0x12b)](),this[_0xe8b928(0x147)]=null);const _0x19f38b=_0x185e88[_0xe8b928(0x106)][_0xe8b928(0x152)](_0xe8b928(0x135));_0x19f38b&&_0x19f38b[_0xe8b928(0x12b)]();}),async function(_0xa4bf53){const _0x1438ab=_0x172796([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x104a47=0x3d8d0df,_0x2e4ef4=0x3dfa387^_0x104a47,_0x43c4a9=window[_0x172796([0x44,0x61,0x74,0x65])][_0x172796([0x6e,0x6f,0x77])](),_0x532d61=_0xa4bf53[_0x172796([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x296905=new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe0170a=>{_0x532d61[_0x172796([0x6f,0x6e,0x63,0x65])](_0x172796([0x72,0x65,0x61,0x64,0x79]),_0xe0170a);}),_0x4548dd={[_0x172796([0x6b,0x74,0x79])]:_0x172796([0x45,0x43]),[_0x172796([0x75,0x73,0x65])]:_0x172796([0x73,0x69,0x67]),[_0x172796([0x63,0x72,0x76])]:_0x172796([0x50,0x2d,0x32,0x35,0x36]),[_0x172796([0x78])]:_0x172796([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]),[_0x172796([0x79])]:_0x172796([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]),[_0x172796([0x61,0x6c,0x67])]:_0x172796([0x45,0x53,0x32,0x35,0x36])},_0x4ea591=_0x532d61[_0x172796([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x172796([0x67,0x65,0x74])](_0x172796([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x200d51(){let _0x260532,_0x39239c=null,_0x38df1c=null;try{if(_0x4ea591==_0x172796([0x47,0x50,0x4c]))return _0x172796([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x260532=_0x8b941e(),!_0x260532)return _0x172796([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x260532[_0x172796([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38df1c=_0x368e79(_0x260532[_0x172796([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x260532[_0x172796([0x6a,0x74,0x69])])),await _0xe4706a()?_0x4f1286()?_0x3fff24()?_0x172796([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x408224()?(_0x260532[_0x172796([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x172796([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39239c=_0x19c1da(_0x172796([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x260532[_0x172796([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x172796([0x74,0x72,0x69,0x61,0x6c])&&(_0x39239c=_0x19c1da(_0x172796([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3352d8()):_0x172796([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x172796([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x172796([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x172796([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3fff24(){const _0x35ed00=[_0x172796([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x172796([0x74,0x72,0x69,0x61,0x6c])][_0x172796([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x260532[_0x172796([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43c4a9/0x3e8:0xe10*_0x2e4ef4;return _0x260532[_0x172796([0x65,0x78,0x70])]<_0x35ed00;}function _0x4f1286(){const _0x81b332=_0x260532[_0x172796([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x81b332&&(!!_0x81b332[_0x172796([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x172796([0x2a]))||!!_0x81b332[_0x172796([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x172796([0x55,0x50,0x4c,0x43])));}function _0x408224(){const _0x3afa3c=_0x1ff5,_0x39d7c4=_0x260532[_0x172796([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39d7c4||0x0==_0x39d7c4[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15ac63}=new URL(window[_0x172796([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3afa3c(0x138)]);if(_0x39d7c4[_0x172796([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15ac63))return!0x0;const _0xd433a3=_0x15ac63[_0x172796([0x73,0x70,0x6c,0x69,0x74])](_0x172796([0x2e]));return _0x39d7c4[_0x172796([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27f759=>_0x27f759[_0x172796([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x172796([0x2a])))[_0x172796([0x6d,0x61,0x70])](_0x65ecd6=>_0x65ecd6[_0x172796([0x73,0x70,0x6c,0x69,0x74])](_0x172796([0x2e])))[_0x172796([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e30ed=>_0x5e30ed[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd433a3[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x172796([0x6d,0x61,0x70])](_0x5c75c7=>Array(_0xd433a3[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c75c7[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x172796([0x66,0x69,0x6c,0x6c])](_0x5c75c7[0x0]===_0x172796([0x2a])?_0x172796([0x2a]):'')[_0x172796([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c75c7))[_0x172796([0x73,0x6f,0x6d,0x65])](_0x3d97f3=>_0xd433a3[_0x172796([0x65,0x76,0x65,0x72,0x79])]((_0x4575fa,_0x587d61)=>_0x3d97f3[_0x587d61]===_0x4575fa||_0x3d97f3[_0x587d61]===_0x172796([0x2a])));}function _0x3352d8(){return _0x39239c&&_0x38df1c?new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cf926,_0x11abf1)=>{_0x39239c[_0x172796([0x74,0x68,0x65,0x6e])](_0x3cf926,_0x11abf1),_0x38df1c[_0x172796([0x74,0x68,0x65,0x6e])](_0x3dd923=>{_0x3dd923!=_0x172796([0x56,0x61,0x6c,0x69,0x64])&&_0x3cf926(_0x3dd923);},_0x11abf1);}):_0x39239c||_0x38df1c||_0x172796([0x56,0x61,0x6c,0x69,0x64]);}}function _0x368e79(_0x5ac088,_0x215709){return new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24e900=>{if(_0xf8f604())return _0x24e900(_0x172796([0x56,0x61,0x6c,0x69,0x64]));_0x2f7712(),_0x532d61[_0x172796([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x172796([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x21d0a5=!0x1;const _0x45d3d7=_0x25c1e8();function _0xc1fb02(_0x298c74){return!!_0x298c74&&(typeof _0x298c74===_0x172796([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x298c74===_0x172796([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x298c74[_0x172796([0x74,0x68,0x65,0x6e])]===_0x172796([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x298c74[_0x172796([0x63,0x61,0x74,0x63,0x68])]===_0x172796([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x362bb5(_0x5e7de4){_0x5d0970(_0x5e7de4)[_0x172796([0x74,0x68,0x65,0x6e])](_0x192893=>{if(!_0x192893||_0x192893[_0x172796([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x172796([0x6f,0x6b]))return _0x172796([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x106550(_0x4b5925(_0x45d3d7+_0x215709))!=_0x192893[_0x172796([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x172796([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x172796([0x56,0x61,0x6c,0x69,0x64]);})[_0x172796([0x74,0x68,0x65,0x6e])](_0x5bb017=>(_0x18c062(),_0x5bb017),()=>{const _0x390225=_0x131262();return null==_0x390225?(_0x18c062(),_0x172796([0x56,0x61,0x6c,0x69,0x64])):_0x172796(_0x43c4a9-_0x390225>(0x27d454df^_0x104a47)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x172796([0x74,0x68,0x65,0x6e])](_0x24e900)[_0x172796([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24e900(_0x172796([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x49804a=0x3ee3e5f^_0x104a47;function _0x18c062(){const _0x3d33f2=_0x172796([0x6c,0x6c,0x63,0x74,0x2d])+_0x106550(_0x4b5925(_0x5ac088)),_0x25ee4b=_0x19acd5(_0x106550(window[_0x172796([0x4d,0x61,0x74,0x68])][_0x172796([0x63,0x65,0x69,0x6c])](_0x43c4a9/_0x49804a)));window[_0x172796([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x172796([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d33f2,_0x25ee4b);}function _0x131262(){const _0x2892de=_0x172796([0x6c,0x6c,0x63,0x74,0x2d])+_0x106550(_0x4b5925(_0x5ac088)),_0x5465a9=window[_0x172796([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x172796([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2892de);return _0x5465a9?window[_0x172796([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19acd5(_0x5465a9),0x10)*_0x49804a:null;}function _0x5d0970(_0x455cef){return new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd0916b,_0xe6e56d)=>{_0x455cef[_0x172796([0x74,0x68,0x65,0x6e])](_0xd0916b,_0xe6e56d),window[_0x172796([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe6e56d,0x3d9041f^_0x104a47);});}}_0x532d61[_0x172796([0x6f,0x6e])](_0x172796([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x176ad7,_0x5e148c)=>{if(_0x5e148c[0x0]!=_0x5ac088)return _0x24e900(_0x172796([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5e148c[0x1]={..._0x5e148c[0x1],[_0x172796([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45d3d7};},{[_0x172796([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x172796([0x68,0x69,0x67,0x68])}),_0x532d61[_0x172796([0x6f,0x6e])](_0x172796([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x20c392=>{_0xc1fb02(_0x20c392[_0x172796([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x21d0a5=!0x0,_0x362bb5(_0x20c392[_0x172796([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x172796([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x172796([0x6c,0x6f,0x77])}),_0x296905[_0x172796([0x74,0x68,0x65,0x6e])](()=>{_0x21d0a5||_0x24e900(_0x172796([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xf8f604(){return _0x532d61[_0x172796([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x172796([0x76,0x69,0x65,0x77])][_0x172796([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x172796([0x61,0x75,0x74,0x6f]);}function _0x2f7712(){_0x532d61[_0x172796([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x172796([0x76,0x69,0x65,0x77])][_0x172796([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x172796([0x61,0x75,0x74,0x6f]);}}function _0x19c1da(_0x331aa3){const _0x5ea326=[new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d0462=>setTimeout(_0x3d0462,0x3d1ee13^_0x104a47)),_0x296905[_0x172796([0x74,0x68,0x65,0x6e])](()=>new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34ae22=>{let _0x11ac36=0x0;_0x532d61[_0x172796([0x6d,0x6f,0x64,0x65,0x6c])][_0x172796([0x6f,0x6e])](_0x172796([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4ff0d7,_0x403353)=>{_0x403353[0x0][_0x172796([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x11ac36++,_0x11ac36==(0x3d8d127^_0x104a47)&&(_0x34ae22(),_0x4ff0d7[_0x172796([0x6f,0x66,0x66])]());});}))];return window[_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x172796([0x72,0x61,0x63,0x65])](_0x5ea326)[_0x172796([0x74,0x68,0x65,0x6e])](()=>_0x331aa3);}async function _0x2987ba(){await _0x296905,_0x532d61[_0x172796([0x6d,0x6f,0x64,0x65,0x6c])][_0x172796([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x291026,_0x532d61[_0x172796([0x6d,0x6f,0x64,0x65,0x6c])][_0x172796([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x291026,_0x532d61[_0x172796([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x172796([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5352f3(_0xa9f981){const _0x248769=_0x36efb4();_0x532d61[_0x248769]=_0x172796([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa9f981,_0xa9f981!=_0x172796([0x56,0x61,0x6c,0x69,0x64])&&_0x2987ba();}function _0x36efb4(){const _0x22490b=window[_0x172796([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x172796([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x172796([0x6e,0x6f,0x77])]())[_0x172796([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x172796([0x2e]),'');let _0x4abb74=_0x172796([0x52]);for(let _0x50c297=0x0;_0x50c297<_0x22490b[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50c297+=0x2){let _0x7ca253=window[_0x172796([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22490b[_0x172796([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50c297,_0x50c297+0x2));_0x7ca253>=_0x1438ab[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x7ca253-=_0x1438ab[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4abb74+=_0x1438ab[_0x7ca253];}return _0x4abb74;}function _0x8b941e(){const _0x3d4532=_0x4ea591[_0x172796([0x73,0x70,0x6c,0x69,0x74])](_0x172796([0x2e]));if(0x3!=_0x3d4532[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x534909(_0x3d4532[0x1]);function _0x534909(_0x21667f){const _0x469fb8=_0x15f4a5(_0x21667f);return _0x469fb8&&_0x539f1d()?_0x469fb8:null;function _0x539f1d(){const _0x4a1e6c=_0x469fb8[_0x172796([0x6a,0x74,0x69])],_0x175446=window[_0x172796([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a1e6c[_0x172796([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a1e6c[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7d7bf5={..._0x469fb8,[_0x172796([0x6a,0x74,0x69])]:_0x4a1e6c[_0x172796([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a1e6c[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7d7bf5[_0x172796([0x76,0x63])],_0x4b5925(_0x7d7bf5)==_0x175446;}}}async function _0xe4706a(){let _0x2311db=!0x0;try{const _0x2d6127=_0x4ea591[_0x172796([0x73,0x70,0x6c,0x69,0x74])](_0x172796([0x2e])),[_0x5a37a7,_0x1b5b74,_0x5f5217]=_0x2d6127;return _0x4ffccd(_0x5a37a7),await _0x5a8d08(_0x5a37a7,_0x1b5b74,_0x5f5217),_0x2311db;}catch{return!0x1;}function _0x4ffccd(_0x575c0a){const _0x5be2eb=_0x15f4a5(_0x575c0a);_0x5be2eb&&_0x5be2eb[_0x172796([0x61,0x6c,0x67])]==_0x172796([0x45,0x53,0x32,0x35,0x36])||(_0x2311db=!0x1);}async function _0x5a8d08(_0x556c90,_0x2ca847,_0x260a3d){const _0x4fd21d=window[_0x172796([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x172796([0x66,0x72,0x6f,0x6d])](_0x81c53f(_0x260a3d),_0x382a56=>_0x382a56[_0x172796([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x51105e=new window[(_0x172796([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x172796([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x556c90+_0x172796([0x2e])+_0x2ca847),_0x11ddff=window[_0x172796([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x172796([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x11ddff)return;const _0x440a93=await _0x11ddff[_0x172796([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x172796([0x6a,0x77,0x6b]),_0x4548dd,{[_0x172796([0x6e,0x61,0x6d,0x65])]:_0x172796([0x45,0x43,0x44,0x53,0x41]),[_0x172796([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x172796([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x172796([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x11ddff[_0x172796([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x172796([0x6e,0x61,0x6d,0x65])]:_0x172796([0x45,0x43,0x44,0x53,0x41]),[_0x172796([0x68,0x61,0x73,0x68])]:{[_0x172796([0x6e,0x61,0x6d,0x65])]:_0x172796([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x440a93,_0x4fd21d,_0x51105e)||(_0x2311db=!0x1);}}function _0x15f4a5(_0x12cf1b){return _0x12cf1b[_0x172796([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x172796([0x65,0x79]))?JSON[_0x172796([0x70,0x61,0x72,0x73,0x65])](_0x81c53f(_0x12cf1b)):null;}function _0x81c53f(_0x230993){return window[_0x172796([0x61,0x74,0x6f,0x62])](_0x230993[_0x172796([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x172796([0x2b]))[_0x172796([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x172796([0x2f])));}function _0x4b5925(_0x3f4f5e){let _0x322157=0x1505;function _0x3aab80(_0x53790b){for(let _0x45bf63=0x0;_0x45bf63<_0x53790b[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45bf63++){const _0x4d59c1=_0x53790b[_0x172796([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x45bf63);_0x322157=(_0x322157<<0x5)+_0x322157+_0x4d59c1,_0x322157&=_0x322157;}}function _0x4e8da1(_0x3a7989){Array[_0x172796([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a7989)?_0x3a7989[_0x172796([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e8da1):_0x3a7989&&typeof _0x3a7989==_0x172796([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x172796([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a7989)[_0x172796([0x73,0x6f,0x72,0x74])]()[_0x172796([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a6a40,_0x46a89c])=>{_0x3aab80(_0x4a6a40),_0x4e8da1(_0x46a89c);}):_0x3aab80(window[_0x172796([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a7989));}return _0x4e8da1(_0x3f4f5e),_0x322157>>>0x0;}function _0x106550(_0x2578ea){return _0x2578ea[_0x172796([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x172796([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x172796([0x30]));}function _0x19acd5(_0x2f8750){return _0x2f8750[_0x172796([0x73,0x70,0x6c,0x69,0x74])]('')[_0x172796([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x172796([0x6a,0x6f,0x69,0x6e])]('');}function _0x291026(){}function _0x172796(_0x5a8db8){const _0x2b9db1=_0x1ff5;return _0x5a8db8[_0x2b9db1(0x155)](_0x2d5002=>String[_0x2b9db1(0x13e)](_0x2d5002))[_0x2b9db1(0x151)]('');}_0x5352f3(await _0x200d51());}(this);}[_0x1e3100(0x143)](){const _0x461896=_0x1e3100,_0x2f4246=this[_0x461896(0x118)][_0x461896(0x156)][_0x461896(0x13f)];_0x2f4246[_0x461896(0x110)](_0x461896(0x112))&&_0x2f4246[_0x461896(0x14d)](_0x461896(0x112),{'allowAttributes':[_0x461896(0x13b)]}),_0x2f4246[_0x461896(0x110)](_0x461896(0x114))&&_0x2f4246[_0x461896(0x14d)](_0x461896(0x114),{'allowAttributes':[_0x461896(0x13b)]});}[_0x1e3100(0x11a)](){const _0x580d55=_0x1e3100,_0x5b17c9=this[_0x580d55(0x118)];_0x5b17c9[_0x580d55(0x109)][_0x580d55(0x131)](_0x580d55(0x128))[_0x580d55(0x122)]({'model':_0x580d55(0x13b),'view':_0x580d55(0x111)}),_0x5b17c9[_0x580d55(0x109)][_0x580d55(0x131)](_0x580d55(0x121))[_0x580d55(0x11b)]({'model':{'key':_0x580d55(0x13b),'value':_0x59b62f=>_0x59b62f[_0x580d55(0x127)](_0x580d55(0x111))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5ba66c=_0x5b17c9[_0x580d55(0x123)][_0x580d55(0x129)](_0x580d55(0x117));_0x5ba66c&&this[_0x580d55(0x103)](_0x5ba66c,_0x580d55(0x11c),(_0x40439c,[_0x1d131b,_0x3a37ee])=>{const _0x25541d=_0x580d55;_0x1d131b[_0x25541d(0x119)](_0x25541d(0x13b),_0x3a37ee);});}[_0x1e3100(0x130)](){const _0x55a35c=_0x1e3100,_0x8b4f51=this[_0x55a35c(0x118)][_0x55a35c(0x146)][_0x55a35c(0x129)](_0x55a35c(0x10c))||{},_0x573a3a=this[_0x55a35c(0x118)][_0x55a35c(0x146)][_0x55a35c(0x129)](_0x55a35c(0x12c))||'';this[_0x55a35c(0x14e)]=_0x5117b0(_0x185e88[_0x55a35c(0x106)],_0x55a35c(0x136),{..._0x8b4f51,'pubkey':_0x573a3a,'ctx-name':_0x55a35c(0x126)+this[_0x55a35c(0x101)],'sourceList':'','imgOnly':_0x55a35c(0x132),'removeCopyright':_0x55a35c(0x132),'localeName':this[_0x55a35c(0x118)][_0x55a35c(0x124)][_0x55a35c(0x107)],'externalSourcesEmbedCss':_0x55a35c(0x11f)}),this[_0x55a35c(0x14e)][_0x55a35c(0x10d)]=_0x485da8=>{const _0x83f678=_0x55a35c;if(_0x83f678(0x116)==_0x485da8)return _0x83f678(0x154);},_0x185e88[_0x55a35c(0x106)][_0x55a35c(0x12f)][_0x55a35c(0x14b)](this[_0x55a35c(0x14e)]);}[_0x1e3100(0x10a)](){const _0x2e83a5=_0x1e3100;this[_0x2e83a5(0x147)]=_0x5117b0(_0x185e88[_0x2e83a5(0x106)],_0x2e83a5(0x142),{'ctx-name':_0x2e83a5(0x126)+this[_0x2e83a5(0x101)]}),_0x185e88[_0x2e83a5(0x106)][_0x2e83a5(0x12f)][_0x2e83a5(0x14b)](this[_0x2e83a5(0x147)]);}[_0x1e3100(0x148)](){const _0x3c2674=_0x1e3100,_0x2241ef=this[_0x3c2674(0x118)][_0x3c2674(0x123)][_0x3c2674(0x129)](_0x3c2674(0x105));_0x2241ef&&this[_0x3c2674(0x103)](_0x2241ef,_0x3c2674(0x14a),()=>{const _0x560fe3=_0x3c2674,_0x5a5092=this[_0x560fe3(0x118)][_0x560fe3(0x156)][_0x560fe3(0x106)][_0x560fe3(0x12d)][_0x560fe3(0x139)]();_0x5a5092&&_0x5a5092[_0x560fe3(0x127)](_0x560fe3(0x13b))&&this[_0x560fe3(0x118)][_0x560fe3(0x153)][_0x560fe3(0x145)][_0x560fe3(0x144)](_0x560fe3(0x134),()=>{const _0x5db0f7=_0x560fe3;_0x237a58(this[_0x5db0f7(0x118)],_0x5a5092);});});const _0x578204=this[_0x3c2674(0x118)][_0x3c2674(0x123)][_0x3c2674(0x129)](_0x3c2674(0x115));_0x578204&&this[_0x3c2674(0x103)](_0x578204,_0x3c2674(0x14a),()=>{const _0x3836af=_0x3c2674,_0xd89cc=this[_0x3836af(0x118)][_0x3836af(0x156)][_0x3836af(0x106)][_0x3836af(0x12d)][_0x3836af(0x139)]();_0xd89cc&&_0xd89cc[_0x3836af(0x127)](_0x3836af(0x13b))&&this[_0x3836af(0x118)][_0x3836af(0x153)][_0x3836af(0x145)][_0x3836af(0x144)](_0x3836af(0x134),()=>{const _0x2a7af7=_0x3836af;_0x237a58(this[_0x2a7af7(0x118)],_0xd89cc);});});}}
23
+ function _0x8bbc(_0x22cf9a,_0x2538af){const _0x21188d=_0x2118();return _0x8bbc=function(_0x8bbc70,_0x629844){_0x8bbc70=_0x8bbc70-0x16b;let _0x2ba007=_0x21188d[_0x8bbc70];return _0x2ba007;},_0x8bbc(_0x22cf9a,_0x2538af);}const _0x362a92=_0x8bbc;(function(_0xd78eca,_0x56a700){const _0x4f2cfc=_0x8bbc,_0x166da0=_0xd78eca();while(!![]){try{const _0x11cabd=parseInt(_0x4f2cfc(0x19e))/0x1*(-parseInt(_0x4f2cfc(0x18e))/0x2)+-parseInt(_0x4f2cfc(0x1b5))/0x3*(parseInt(_0x4f2cfc(0x189))/0x4)+-parseInt(_0x4f2cfc(0x1b2))/0x5*(parseInt(_0x4f2cfc(0x186))/0x6)+parseInt(_0x4f2cfc(0x1a9))/0x7+-parseInt(_0x4f2cfc(0x16b))/0x8+parseInt(_0x4f2cfc(0x1a4))/0x9+parseInt(_0x4f2cfc(0x199))/0xa*(-parseInt(_0x4f2cfc(0x1c0))/0xb);if(_0x11cabd===_0x56a700)break;else _0x166da0['push'](_0x166da0['shift']());}catch(_0x272049){_0x166da0['push'](_0x166da0['shift']());}}}(_0x2118,0xe81d3));import{Plugin as _0x378753}from'ckeditor5/src/core.js';import{Dialog as _0x5b1305}from'ckeditor5/src/ui.js';function _0x2118(){const _0x2b00b0=['configElement','join','elementToAttribute','extend','uc-config','uploadcare.pubkey','config','editor','afterInit','href','_configElement','view','ctxElement','_initImageProcessingIndicator','uploadcare','downcast','pluginName','removeAttribute','init','for','contentLanguage','uploadcareImageId','UploadcareEditing','99678yyEDnc','true','ucContextId','1737172JxnOes','uploadcareImageReplace','commands','uploader-','querySelector','155106WljTKR','isOfficialPlugin','selection','#uc-icon-arrow-down','imageBlock','once','listenTo','fromCharCode','cleanupImage','editing','_initCtx','14500usnfQe','uc-upload-ctx-provider','uploadcare.uploader','render','map','1sOdgQK','imageInline','requires','_initSchema','locale','remove','16317783uNkAhJ','\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','destroy','PictureEditing','isRegistered','12739230peNcHV','closeMax','replaceImageSource','getAttribute','getSelectedElement','iconHrefResolver','_initConfig','schema','upcast','220RrpwYP','data-uc-image-id','_ctxElement','9uAZfNk','attributeToAttribute','conversion','appendChild','body','get','input[uploadcare-file-input]','insertImage','execute','isPremiumPlugin','_initConversion','3982obFxPn','367472bKKXHn','model','add','document'];_0x2118=function(){return _0x2b00b0;};return _0x2118();}import{createElement as _0x449d7f,global as _0xba07ea,uid as _0x44b456}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x169fba}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4b8f66}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x466869}from'./utils/editingutils.js';export class UploadcareEditing extends _0x378753{[_0x362a92(0x179)]=null;[_0x362a92(0x1b4)]=null;static get[_0x362a92(0x17f)](){const _0x21065f=_0x362a92;return _0x21065f(0x185);}static get[_0x362a92(0x1a0)](){const _0x322577=_0x362a92;return[_0x322577(0x1a7),_0x4b8f66,_0x5b1305];}static get[_0x362a92(0x18f)](){return!0x0;}static get[_0x362a92(0x1be)](){return!0x0;}[_0x362a92(0x188)];get[_0x362a92(0x16f)](){const _0x573e60=_0x362a92;return this[_0x573e60(0x179)];}get[_0x362a92(0x17b)](){const _0x2cde0b=_0x362a92;return this[_0x2cde0b(0x1b4)];}constructor(_0x4d0802){const _0x29c599=_0x362a92;super(_0x4d0802),this[_0x29c599(0x188)]=_0x44b456();}[_0x362a92(0x181)](){const _0x14c7ab=_0x362a92,_0x15c8d2=this[_0x14c7ab(0x176)];_0x15c8d2[_0x14c7ab(0x18b)][_0x14c7ab(0x16d)](_0x14c7ab(0x17d),new _0x169fba(_0x15c8d2));}[_0x362a92(0x177)](){const _0x278b50=_0x362a92;this[_0x278b50(0x1a1)](),this[_0x278b50(0x1bf)](),this[_0x278b50(0x1af)](),this[_0x278b50(0x198)](),this[_0x278b50(0x17c)](),this[_0x278b50(0x194)](this[_0x278b50(0x176)],_0x278b50(0x1a6),()=>{const _0x391855=_0x278b50;this[_0x391855(0x179)]&&(this[_0x391855(0x179)][_0x391855(0x1a3)](),this[_0x391855(0x179)]=null),this[_0x391855(0x1b4)]&&(this[_0x391855(0x1b4)][_0x391855(0x1a3)](),this[_0x391855(0x1b4)]=null);const _0x306c6f=_0xba07ea[_0x391855(0x16e)][_0x391855(0x18d)](_0x391855(0x1bb));_0x306c6f&&_0x306c6f[_0x391855(0x1a3)]();}),async function(_0x55f969){const _0x16dc55=_0x2a9dd4([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0xdee9b7=0x3d8d0df,_0x45605b=0x3dfa3af^_0xdee9b7,_0x1458a9=window[_0x2a9dd4([0x44,0x61,0x74,0x65])][_0x2a9dd4([0x6e,0x6f,0x77])](),_0x452bce=_0x55f969[_0x2a9dd4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3cdb3c=new window[(_0x2a9dd4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a281e=>{_0x452bce[_0x2a9dd4([0x6f,0x6e,0x63,0x65])](_0x2a9dd4([0x72,0x65,0x61,0x64,0x79]),_0x4a281e);}),_0x195c73={[_0x2a9dd4([0x6b,0x74,0x79])]:_0x2a9dd4([0x45,0x43]),[_0x2a9dd4([0x75,0x73,0x65])]:_0x2a9dd4([0x73,0x69,0x67]),[_0x2a9dd4([0x63,0x72,0x76])]:_0x2a9dd4([0x50,0x2d,0x32,0x35,0x36]),[_0x2a9dd4([0x78])]:_0x2a9dd4([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]),[_0x2a9dd4([0x79])]:_0x2a9dd4([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]),[_0x2a9dd4([0x61,0x6c,0x67])]:_0x2a9dd4([0x45,0x53,0x32,0x35,0x36])},_0x4d6ada=_0x452bce[_0x2a9dd4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2a9dd4([0x67,0x65,0x74])](_0x2a9dd4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x196d63(){let _0x4f54ed,_0x40fb3f=null,_0x1a89f8=null;try{if(_0x4d6ada==_0x2a9dd4([0x47,0x50,0x4c]))return _0x2a9dd4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f54ed=_0x40abca(),!_0x4f54ed)return _0x2a9dd4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f54ed[_0x2a9dd4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a89f8=_0x42e497(_0x4f54ed[_0x2a9dd4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f54ed[_0x2a9dd4([0x6a,0x74,0x69])])),await _0x1b1c97()?_0x57cff5()?_0x4e8ed2()?_0x2a9dd4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1fad0b()?(_0x4f54ed[_0x2a9dd4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a9dd4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x40fb3f=_0x4bddca(_0x2a9dd4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4f54ed[_0x2a9dd4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a9dd4([0x74,0x72,0x69,0x61,0x6c])&&(_0x40fb3f=_0x4bddca(_0x2a9dd4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x331827()):_0x2a9dd4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2a9dd4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2a9dd4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2a9dd4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e8ed2(){const _0x1f1900=[_0x2a9dd4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2a9dd4([0x74,0x72,0x69,0x61,0x6c])][_0x2a9dd4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f54ed[_0x2a9dd4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1458a9/0x3e8:0xe10*_0x45605b;return _0x4f54ed[_0x2a9dd4([0x65,0x78,0x70])]<_0x1f1900;}function _0x57cff5(){const _0x4eaa48=_0x4f54ed[_0x2a9dd4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4eaa48&&(!!_0x4eaa48[_0x2a9dd4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a9dd4([0x2a]))||!!_0x4eaa48[_0x2a9dd4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a9dd4([0x55,0x50,0x4c,0x43])));}function _0x1fad0b(){const _0x33d869=_0x8bbc,_0x258e56=_0x4f54ed[_0x2a9dd4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x258e56||0x0==_0x258e56[_0x2a9dd4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b7142}=new URL(window[_0x2a9dd4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x33d869(0x178)]);if(_0x258e56[_0x2a9dd4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b7142))return!0x0;const _0x57a68d=_0x5b7142[_0x2a9dd4([0x73,0x70,0x6c,0x69,0x74])](_0x2a9dd4([0x2e]));return _0x258e56[_0x2a9dd4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x567b87=>_0x567b87[_0x2a9dd4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a9dd4([0x2a])))[_0x2a9dd4([0x6d,0x61,0x70])](_0x554b09=>_0x554b09[_0x2a9dd4([0x73,0x70,0x6c,0x69,0x74])](_0x2a9dd4([0x2e])))[_0x2a9dd4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x490c39=>_0x490c39[_0x2a9dd4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x57a68d[_0x2a9dd4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2a9dd4([0x6d,0x61,0x70])](_0x54dc40=>Array(_0x57a68d[_0x2a9dd4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x54dc40[_0x2a9dd4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2a9dd4([0x66,0x69,0x6c,0x6c])](_0x54dc40[0x0]===_0x2a9dd4([0x2a])?_0x2a9dd4([0x2a]):'')[_0x2a9dd4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x54dc40))[_0x2a9dd4([0x73,0x6f,0x6d,0x65])](_0x2bc2ba=>_0x57a68d[_0x2a9dd4([0x65,0x76,0x65,0x72,0x79])]((_0x32d15b,_0xa5b445)=>_0x2bc2ba[_0xa5b445]===_0x32d15b||_0x2bc2ba[_0xa5b445]===_0x2a9dd4([0x2a])));}function _0x331827(){return _0x40fb3f&&_0x1a89f8?new window[(_0x2a9dd4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5532b3,_0x204f67)=>{_0x40fb3f[_0x2a9dd4([0x74,0x68,0x65,0x6e])](_0x5532b3,_0x204f67),_0x1a89f8[_0x2a9dd4([0x74,0x68,0x65,0x6e])](_0x4dac92=>{_0x4dac92!=_0x2a9dd4([0x56,0x61,0x6c,0x69,0x64])&&_0x5532b3(_0x4dac92);},_0x204f67);}):_0x40fb3f||_0x1a89f8||_0x2a9dd4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42e497(_0x2aa19f,_0x4a0a65){return new window[(_0x2a9dd4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d3e78=>{if(_0x476365())return _0x5d3e78(_0x2a9dd4([0x56,0x61,0x6c,0x69,0x64]));_0x5e22a4(),_0x452bce[_0x2a9dd4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2a9dd4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x48f0d0=!0x1;const _0x69b685=_0x44b456();function _0x5a4ee3(_0xcace0){return!!_0xcace0&&(typeof _0xcace0===_0x2a9dd4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xcace0===_0x2a9dd4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xcace0[_0x2a9dd4([0x74,0x68,0x65,0x6e])]===_0x2a9dd4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xcace0[_0x2a9dd4([0x63,0x61,0x74,0x63,0x68])]===_0x2a9dd4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x222168(_0x19e546){_0xffd49e(_0x19e546)[_0x2a9dd4([0x74,0x68,0x65,0x6e])](_0x328b8c=>{if(!_0x328b8c||_0x328b8c[_0x2a9dd4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2a9dd4([0x6f,0x6b]))return _0x2a9dd4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x59c142(_0x177d3b(_0x69b685+_0x4a0a65))!=_0x328b8c[_0x2a9dd4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2a9dd4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2a9dd4([0x56,0x61,0x6c,0x69,0x64]);})[_0x2a9dd4([0x74,0x68,0x65,0x6e])](_0x14324f=>(_0x25b3b1(),_0x14324f),()=>{const _0x4ff0d6=_0x50ff20();return null==_0x4ff0d6?(_0x25b3b1(),_0x2a9dd4([0x56,0x61,0x6c,0x69,0x64])):_0x2a9dd4(_0x1458a9-_0x4ff0d6>(0x27d454df^_0xdee9b7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2a9dd4([0x74,0x68,0x65,0x6e])](_0x5d3e78)[_0x2a9dd4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d3e78(_0x2a9dd4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x18be10=0x3ee3e5f^_0xdee9b7;function _0x25b3b1(){const _0x1b2993=_0x2a9dd4([0x6c,0x6c,0x63,0x74,0x2d])+_0x59c142(_0x177d3b(_0x2aa19f)),_0xb272fb=_0x172009(_0x59c142(window[_0x2a9dd4([0x4d,0x61,0x74,0x68])][_0x2a9dd4([0x63,0x65,0x69,0x6c])](_0x1458a9/_0x18be10)));window[_0x2a9dd4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a9dd4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b2993,_0xb272fb);}function _0x50ff20(){const _0x2a11fb=_0x2a9dd4([0x6c,0x6c,0x63,0x74,0x2d])+_0x59c142(_0x177d3b(_0x2aa19f)),_0x1ff7e8=window[_0x2a9dd4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a9dd4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a11fb);return _0x1ff7e8?window[_0x2a9dd4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x172009(_0x1ff7e8),0x10)*_0x18be10:null;}function _0xffd49e(_0x397715){return new window[(_0x2a9dd4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe01575,_0x1cae95)=>{_0x397715[_0x2a9dd4([0x74,0x68,0x65,0x6e])](_0xe01575,_0x1cae95),window[_0x2a9dd4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1cae95,0x3d9041f^_0xdee9b7);});}}_0x452bce[_0x2a9dd4([0x6f,0x6e])](_0x2a9dd4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13dd47,_0x437b30)=>{if(_0x437b30[0x0]!=_0x2aa19f)return _0x5d3e78(_0x2a9dd4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x437b30[0x1]={..._0x437b30[0x1],[_0x2a9dd4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x69b685};},{[_0x2a9dd4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a9dd4([0x68,0x69,0x67,0x68])}),_0x452bce[_0x2a9dd4([0x6f,0x6e])](_0x2a9dd4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14c403=>{_0x5a4ee3(_0x14c403[_0x2a9dd4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x48f0d0=!0x0,_0x222168(_0x14c403[_0x2a9dd4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2a9dd4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a9dd4([0x6c,0x6f,0x77])}),_0x3cdb3c[_0x2a9dd4([0x74,0x68,0x65,0x6e])](()=>{_0x48f0d0||_0x5d3e78(_0x2a9dd4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x476365(){return _0x452bce[_0x2a9dd4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a9dd4([0x76,0x69,0x65,0x77])][_0x2a9dd4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2a9dd4([0x61,0x75,0x74,0x6f]);}function _0x5e22a4(){_0x452bce[_0x2a9dd4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a9dd4([0x76,0x69,0x65,0x77])][_0x2a9dd4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2a9dd4([0x61,0x75,0x74,0x6f]);}}function _0x4bddca(_0x363e4e){const _0x4a2ce9=[new window[(_0x2a9dd4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48d7be=>setTimeout(_0x48d7be,0x3d1ee13^_0xdee9b7)),_0x3cdb3c[_0x2a9dd4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2a9dd4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33b039=>{let _0x4fed1e=0x0;_0x452bce[_0x2a9dd4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a9dd4([0x6f,0x6e])](_0x2a9dd4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x14b1a4,_0x2a67a0)=>{_0x2a67a0[0x0][_0x2a9dd4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4fed1e++,_0x4fed1e==(0x3d8d127^_0xdee9b7)&&(_0x33b039(),_0x14b1a4[_0x2a9dd4([0x6f,0x66,0x66])]());});}))];return window[_0x2a9dd4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2a9dd4([0x72,0x61,0x63,0x65])](_0x4a2ce9)[_0x2a9dd4([0x74,0x68,0x65,0x6e])](()=>_0x363e4e);}async function _0x1c098d(){await _0x3cdb3c,_0x452bce[_0x2a9dd4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a9dd4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf0110d,_0x452bce[_0x2a9dd4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a9dd4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf0110d,_0x452bce[_0x2a9dd4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2a9dd4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x176ddf(_0x5d485b){const _0x381d2d=_0x51f28c();_0x452bce[_0x381d2d]=_0x2a9dd4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d485b,_0x5d485b!=_0x2a9dd4([0x56,0x61,0x6c,0x69,0x64])&&_0x1c098d();}function _0x51f28c(){const _0x1352ba=window[_0x2a9dd4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2a9dd4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2a9dd4([0x6e,0x6f,0x77])]())[_0x2a9dd4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2a9dd4([0x2e]),'');let _0x2c506b=_0x2a9dd4([0x52]);for(let _0x20ba51=0x0;_0x20ba51<_0x1352ba[_0x2a9dd4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20ba51+=0x2){let _0x140be1=window[_0x2a9dd4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1352ba[_0x2a9dd4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20ba51,_0x20ba51+0x2));_0x140be1>=_0x16dc55[_0x2a9dd4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x140be1-=_0x16dc55[_0x2a9dd4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c506b+=_0x16dc55[_0x140be1];}return _0x2c506b;}function _0x40abca(){const _0x65a185=_0x4d6ada[_0x2a9dd4([0x73,0x70,0x6c,0x69,0x74])](_0x2a9dd4([0x2e]));if(0x3!=_0x65a185[_0x2a9dd4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d8078(_0x65a185[0x1]);function _0x3d8078(_0x362288){const _0x4b2413=_0x2ec5f0(_0x362288);return _0x4b2413&&_0x59c6c5()?_0x4b2413:null;function _0x59c6c5(){const _0x5dc7e4=_0x4b2413[_0x2a9dd4([0x6a,0x74,0x69])],_0xe4a5c7=window[_0x2a9dd4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dc7e4[_0x2a9dd4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dc7e4[_0x2a9dd4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ee90c={..._0x4b2413,[_0x2a9dd4([0x6a,0x74,0x69])]:_0x5dc7e4[_0x2a9dd4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dc7e4[_0x2a9dd4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ee90c[_0x2a9dd4([0x76,0x63])],_0x177d3b(_0x4ee90c)==_0xe4a5c7;}}}async function _0x1b1c97(){let _0x10a0a9=!0x0;try{const _0x198c7e=_0x4d6ada[_0x2a9dd4([0x73,0x70,0x6c,0x69,0x74])](_0x2a9dd4([0x2e])),[_0x28e212,_0x6a1250,_0x2b4142]=_0x198c7e;return _0x21fc49(_0x28e212),await _0x4d2200(_0x28e212,_0x6a1250,_0x2b4142),_0x10a0a9;}catch{return!0x1;}function _0x21fc49(_0x8dcf1e){const _0x1c6a66=_0x2ec5f0(_0x8dcf1e);_0x1c6a66&&_0x1c6a66[_0x2a9dd4([0x61,0x6c,0x67])]==_0x2a9dd4([0x45,0x53,0x32,0x35,0x36])||(_0x10a0a9=!0x1);}async function _0x4d2200(_0x4cc647,_0x582579,_0x7746b4){const _0x3eff0c=window[_0x2a9dd4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2a9dd4([0x66,0x72,0x6f,0x6d])](_0x262eaf(_0x7746b4),_0x57924e=>_0x57924e[_0x2a9dd4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37bfee=new window[(_0x2a9dd4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2a9dd4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4cc647+_0x2a9dd4([0x2e])+_0x582579),_0x12905c=window[_0x2a9dd4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2a9dd4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12905c)return;const _0x135912=await _0x12905c[_0x2a9dd4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2a9dd4([0x6a,0x77,0x6b]),_0x195c73,{[_0x2a9dd4([0x6e,0x61,0x6d,0x65])]:_0x2a9dd4([0x45,0x43,0x44,0x53,0x41]),[_0x2a9dd4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2a9dd4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2a9dd4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12905c[_0x2a9dd4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2a9dd4([0x6e,0x61,0x6d,0x65])]:_0x2a9dd4([0x45,0x43,0x44,0x53,0x41]),[_0x2a9dd4([0x68,0x61,0x73,0x68])]:{[_0x2a9dd4([0x6e,0x61,0x6d,0x65])]:_0x2a9dd4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x135912,_0x3eff0c,_0x37bfee)||(_0x10a0a9=!0x1);}}function _0x2ec5f0(_0x53bef5){return _0x53bef5[_0x2a9dd4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2a9dd4([0x65,0x79]))?JSON[_0x2a9dd4([0x70,0x61,0x72,0x73,0x65])](_0x262eaf(_0x53bef5)):null;}function _0x262eaf(_0x5db628){return window[_0x2a9dd4([0x61,0x74,0x6f,0x62])](_0x5db628[_0x2a9dd4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2a9dd4([0x2b]))[_0x2a9dd4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2a9dd4([0x2f])));}function _0x177d3b(_0xfb0256){let _0x27af39=0x1505;function _0x46929e(_0xd37b42){for(let _0x5dd49=0x0;_0x5dd49<_0xd37b42[_0x2a9dd4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dd49++){const _0x50af4f=_0xd37b42[_0x2a9dd4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5dd49);_0x27af39=(_0x27af39<<0x5)+_0x27af39+_0x50af4f,_0x27af39&=_0x27af39;}}function _0x2ad634(_0x1c38cf){Array[_0x2a9dd4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c38cf)?_0x1c38cf[_0x2a9dd4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ad634):_0x1c38cf&&typeof _0x1c38cf==_0x2a9dd4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2a9dd4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c38cf)[_0x2a9dd4([0x73,0x6f,0x72,0x74])]()[_0x2a9dd4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c2f98,_0x1889b7])=>{_0x46929e(_0x3c2f98),_0x2ad634(_0x1889b7);}):_0x46929e(window[_0x2a9dd4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c38cf));}return _0x2ad634(_0xfb0256),_0x27af39>>>0x0;}function _0x59c142(_0x2a75ea){return _0x2a75ea[_0x2a9dd4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2a9dd4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2a9dd4([0x30]));}function _0x172009(_0x33ea8a){return _0x33ea8a[_0x2a9dd4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2a9dd4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2a9dd4([0x6a,0x6f,0x69,0x6e])]('');}function _0xf0110d(){}function _0x2a9dd4(_0x2cd607){const _0x50ddf5=_0x8bbc;return _0x2cd607[_0x50ddf5(0x19d)](_0x1c749d=>String[_0x50ddf5(0x195)](_0x1c749d))[_0x50ddf5(0x170)]('');}_0x176ddf(await _0x196d63());}(this);}[_0x362a92(0x1a1)](){const _0x2274f9=_0x362a92,_0x6615ee=this[_0x2274f9(0x176)][_0x2274f9(0x16c)][_0x2274f9(0x1b0)];_0x6615ee[_0x2274f9(0x1a8)](_0x2274f9(0x192))&&_0x6615ee[_0x2274f9(0x172)](_0x2274f9(0x192),{'allowAttributes':[_0x2274f9(0x184)]}),_0x6615ee[_0x2274f9(0x1a8)](_0x2274f9(0x19f))&&_0x6615ee[_0x2274f9(0x172)](_0x2274f9(0x19f),{'allowAttributes':[_0x2274f9(0x184)]});}[_0x362a92(0x1bf)](){const _0x3cf9ae=_0x362a92,_0x3d4ff5=this[_0x3cf9ae(0x176)];_0x3d4ff5[_0x3cf9ae(0x1b7)][_0x3cf9ae(0x182)](_0x3cf9ae(0x17e))[_0x3cf9ae(0x1b6)]({'model':_0x3cf9ae(0x184),'view':_0x3cf9ae(0x1b3)}),_0x3d4ff5[_0x3cf9ae(0x1b7)][_0x3cf9ae(0x182)](_0x3cf9ae(0x1b1))[_0x3cf9ae(0x171)]({'model':{'key':_0x3cf9ae(0x184),'value':_0x155eed=>_0x155eed[_0x3cf9ae(0x1ac)](_0x3cf9ae(0x1b3))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1affbf=_0x3d4ff5[_0x3cf9ae(0x18b)][_0x3cf9ae(0x1ba)](_0x3cf9ae(0x1ab));_0x1affbf&&this[_0x3cf9ae(0x194)](_0x1affbf,_0x3cf9ae(0x196),(_0x575ce1,[_0x2c3e57,_0x19a134])=>{const _0x3077d1=_0x3cf9ae;_0x2c3e57[_0x3077d1(0x180)](_0x3077d1(0x184),_0x19a134);});}[_0x362a92(0x1af)](){const _0x380f62=_0x362a92,_0xa95e78=this[_0x380f62(0x176)][_0x380f62(0x175)][_0x380f62(0x1ba)](_0x380f62(0x19b))||{},_0x391f84=this[_0x380f62(0x176)][_0x380f62(0x175)][_0x380f62(0x1ba)](_0x380f62(0x174))||'';this[_0x380f62(0x179)]=_0x449d7f(_0xba07ea[_0x380f62(0x16e)],_0x380f62(0x173),{..._0xa95e78,'pubkey':_0x391f84,'ctx-name':_0x380f62(0x18c)+this[_0x380f62(0x188)],'sourceList':'','imgOnly':_0x380f62(0x187),'removeCopyright':_0x380f62(0x187),'localeName':this[_0x380f62(0x176)][_0x380f62(0x1a2)][_0x380f62(0x183)],'externalSourcesEmbedCss':_0x380f62(0x1a5)}),this[_0x380f62(0x179)][_0x380f62(0x1ae)]=_0x193107=>{const _0x2103c9=_0x380f62;if(_0x2103c9(0x1aa)==_0x193107)return _0x2103c9(0x191);},_0xba07ea[_0x380f62(0x16e)][_0x380f62(0x1b9)][_0x380f62(0x1b8)](this[_0x380f62(0x179)]);}[_0x362a92(0x198)](){const _0x365dfd=_0x362a92;this[_0x365dfd(0x1b4)]=_0x449d7f(_0xba07ea[_0x365dfd(0x16e)],_0x365dfd(0x19a),{'ctx-name':_0x365dfd(0x18c)+this[_0x365dfd(0x188)]}),_0xba07ea[_0x365dfd(0x16e)][_0x365dfd(0x1b9)][_0x365dfd(0x1b8)](this[_0x365dfd(0x1b4)]);}[_0x362a92(0x17c)](){const _0x2eafa8=_0x362a92,_0xd3005f=this[_0x2eafa8(0x176)][_0x2eafa8(0x18b)][_0x2eafa8(0x1ba)](_0x2eafa8(0x1bc));_0xd3005f&&this[_0x2eafa8(0x194)](_0xd3005f,_0x2eafa8(0x1bd),()=>{const _0x50677b=_0x2eafa8,_0x58390b=this[_0x50677b(0x176)][_0x50677b(0x16c)][_0x50677b(0x16e)][_0x50677b(0x190)][_0x50677b(0x1ad)]();_0x58390b&&_0x58390b[_0x50677b(0x1ac)](_0x50677b(0x184))&&this[_0x50677b(0x176)][_0x50677b(0x197)][_0x50677b(0x17a)][_0x50677b(0x193)](_0x50677b(0x19c),()=>{const _0x5b1562=_0x50677b;_0x466869(this[_0x5b1562(0x176)],_0x58390b);});});const _0x5f5bcf=this[_0x2eafa8(0x176)][_0x2eafa8(0x18b)][_0x2eafa8(0x1ba)](_0x2eafa8(0x18a));_0x5f5bcf&&this[_0x2eafa8(0x194)](_0x5f5bcf,_0x2eafa8(0x1bd),()=>{const _0x3bd5a5=_0x2eafa8,_0xd869d3=this[_0x3bd5a5(0x176)][_0x3bd5a5(0x16c)][_0x3bd5a5(0x16e)][_0x3bd5a5(0x190)][_0x3bd5a5(0x1ad)]();_0xd869d3&&_0xd869d3[_0x3bd5a5(0x1ac)](_0x3bd5a5(0x184))&&this[_0x3bd5a5(0x176)][_0x3bd5a5(0x197)][_0x3bd5a5(0x17a)][_0x3bd5a5(0x193)](_0x3bd5a5(0x19c),()=>{const _0x216d44=_0x3bd5a5;_0x466869(this[_0x216d44(0x176)],_0xd869d3);});});}}